(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{46330:function(t,e,n){"use strict";n.d(e,{KV:function(){return i}}),t=n.hmd(t);var r=n(70718);function i(){return"[object process]"===Object.prototype.toString.call("undefined"!==typeof r?r:0)}},75056:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnvPrefix=e.ConsoleText=e.ConsoleColor=void 0,function(t){t.Reset="\x1b[0m",t.Cyan="\x1b[36m",t.Red="\x1b[31m",t.Green="\x1b[32m"}(e.ConsoleColor||(e.ConsoleColor={})),function(t){t.ErrorTitle="\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:"}(e.ConsoleText||(e.ConsoleText={})),function(t){t.App="APP_"}(e.EnvPrefix||(e.EnvPrefix={}))},53946:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.envBoolean=e.envNumber=e.envString=e.envEnum=void 0;var r=n(75056);e.envEnum=function(t,e,n){return function(){if("string"===typeof t&&Object.values(e).includes(t))return t;if("string"===typeof n&&Object.values(e).includes(n))return n;throw new Error("".concat(r.ConsoleColor.Green,"\u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c").concat(r.ConsoleColor.Reset," - \u043e\u0434\u043d\u043e \u0438\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 ").concat(Object.values(e)," | ").concat(r.ConsoleColor.Red,"\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438").concat(r.ConsoleColor.Reset," - ").concat(t))}},e.envString=function(t,e){return function(){if("string"===typeof t&&""!==t)return t;if("string"===typeof e&&""!==e)return e;throw new Error("".concat(r.ConsoleColor.Green,"\u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c").concat(r.ConsoleColor.Reset," - \u0442\u0438\u043f String | ").concat(r.ConsoleColor.Red,"\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438").concat(r.ConsoleColor.Reset," - ").concat(typeof t))}},e.envNumber=function(t,e){return function(){if(("string"===typeof t||"number"===typeof t)&&!Number.isNaN(Number(t)))return Number(t);if("number"===typeof e&&!Number.isNaN(e))return e;throw new Error("".concat(r.ConsoleColor.Green,"\u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c").concat(r.ConsoleColor.Reset," - \u0442\u0438\u043f Number | ").concat(r.ConsoleColor.Red,"\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438").concat(r.ConsoleColor.Reset," - ").concat(typeof t))}},e.envBoolean=function(t,e){return function(){if("true"===t)return!0;if("false"===t)return!1;if("boolean"===typeof t)return t;if("boolean"===typeof e)return e;throw new Error("".concat(r.ConsoleColor.Green,"\u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c").concat(r.ConsoleColor.Reset," - \u0442\u0438\u043f Boolean | ").concat(r.ConsoleColor.Red,"\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438").concat(r.ConsoleColor.Reset," - ").concat(typeof t))}}},27690:function(t,e,n){"use strict";var r=n(27024);Object.defineProperty(e,"__esModule",{value:!0}),e.createEmptyOrInvalidEnvsErrorLog=void 0;var i=n(75056);function o(t){var e=r(t,2),n=e[0],o=e[1];return"".concat(i.ConsoleColor.Cyan).concat(n,": ").concat(o).concat(i.ConsoleColor.Reset)}e.createEmptyOrInvalidEnvsErrorLog=function(t){return["\n",i.ConsoleText.ErrorTitle,Object.entries(t).map(o).join("\n"),"\n"].join("\n")}},1745:function(t,e,n){"use strict";var r=n(70718);Object.defineProperty(e,"__esModule",{value:!0}),e.validateAndCreate=void 0;var i=n(75056),o=n(27690);e.validateAndCreate=function(t){var e={},n={};for(var a in t)try{if(!a.startsWith(i.EnvPrefix.App))throw new Error("\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 ".concat(i.EnvPrefix.App));var s=t[a]();n[a]=s}catch(c){c instanceof Error&&(e[a]=c.message)}if(Object.keys(e).length){var u=o.createEmptyOrInvalidEnvsErrorLog(e);if("undefined"!==typeof window)throw console.error(u),new Error(u);console.error(u),r.exit(1)}return n}},8638:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(1745),e),i(n(27690),e),i(n(53946),e),i(n(75056),e),i(n(10029),e)},10029:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMimeTypesList=e.defaultPwa=e.defaultSocial=e.defaultReferrerPolicy=e.defaultColorScheme=e.defaultThemeColor=e.defaultViewport=e.defaultFaviconUrl=void 0,e.defaultFaviconUrl="https://ps-static.cdn-tinkoff.ru/static/common/favicon.png",e.defaultViewport="width=device-width, initial-scale=1",e.defaultThemeColor="#ffdd2d",e.defaultColorScheme="light only",e.defaultReferrerPolicy="strict-origin",e.defaultSocial={siteName:"\u0422-\u0411\u0430\u043d\u043a",siteTwitter:"https://\u0445.com/tbank_ru",type:"website",locale:"ru_RU",cardTwitter:"summary_large_image",appIdVk:"VK-RTRG-218928-gWfNz"},e.defaultPwa={manifest:"/manifest.json",serviceWorker:"/sw.js",icons:[{href:"https://tbank.ru/apple-touch-icon-57x57.png",rel:"apple-touch-icon",sizes:"57x57"},{href:"https://tbank.ru/apple-touch-icon-60x60.png",rel:"apple-touch-icon",sizes:"60x60"},{href:"https://tbank.ru/apple-touch-icon-72x72.png",rel:"apple-touch-icon",sizes:"72x72"},{href:"https://tbank.ru/apple-touch-icon-76x76.png",rel:"apple-touch-icon",sizes:"76x76"},{href:"https://tbank.ru/apple-touch-icon-114x114.png",rel:"apple-touch-icon",sizes:"114x114"},{href:"https://tbank.ru/apple-touch-icon-120x120.png",rel:"apple-touch-icon",sizes:"120x120"},{href:"https://tbank.ru/apple-touch-icon-144x144.png",rel:"apple-touch-icon",sizes:"144x144"},{href:"https://tbank.ru/apple-touch-icon-152x152.png",rel:"apple-touch-icon",sizes:"152x152"},{href:"https://tbank.ru/apple-touch-icon-180x180.png",rel:"apple-touch-icon",sizes:"180x180"},{href:"https://tbank.ru/android-chrome-192x192.png",rel:"android-touch-icon",sizes:"192x192",type:"image/png"},{href:"https://tbank.ru/favicon-16x16.png",rel:"icon",sizes:"16x16"},{href:"https://tbank.ru/favicon-16x16.png",rel:"icon",sizes:"16x16"},{href:"https://tbank.ru/favicon-32x32.png",rel:"icon",sizes:"32x32"},{href:"https://tbank.ru/favicon-96x96.png",rel:"icon",sizes:"96x96"},{rel:"icon",type:"image/png",href:"https://tbank.ru/android-chrome-192x192.png",sizes:"192x192"},{rel:"icon",href:"https://static.tinkoff.ru/dist/portal-new/images/favicon.ico",type:"image/x-icon"},{rel:"mask-icon",href:"https://tbank.ru/safari-pinned-tab.svg",color:"#333333"}]},function(t){t.eot="application/vnd.ms-fontobject",t.otf="font/otf",t.ttf="font/ttf",t.woff="font/woff",t.woff2="font/woff2"}(e.FontMimeTypesList||(e.FontMimeTypesList={}))},78458:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(895),e),i(n(36090),e),i(n(21933),e)},21933:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},36090:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeadProject=void 0;var i=r(n(51387)),o=n(895),a=n(9971);e.HeadProject=function(t){var e,n=t.title,r=t.description,s=t.favicon,u=t.pwa,c=t.fonts,l=t.canonical,f=t.keywords,h=t.social,d=t.colorScheme,p=t.themeColor,v=t.viewport,y=t.wrapper,m=t.referrerPolicy,g=t.preload,b=t.formatDetection,w=t.verification,S=null!==u&&void 0!==u?u:o.defaultPwa,_=null!==s&&void 0!==s?s:o.defaultFaviconUrl,k=null!==d&&void 0!==d?d:o.defaultColorScheme,x=null!==p&&void 0!==p?p:o.defaultThemeColor,E=Object.assign(Object.assign({},h),o.defaultSocial),C=function(t,e){return i.default.createElement("link",Object.assign({key:e},t))},A=function(t){return i.default.createElement("link",{rel:"preload",href:t.href,type:t.type,as:"font"})},P=function(t){return i.default.createElement("link",{rel:"preload",href:t,as:"image"})};return i.default.createElement(y,null,i.default.createElement("meta",{charSet:"utf-8"}),i.default.createElement("meta",{name:"referrer",content:null!==m&&void 0!==m?m:o.defaultReferrerPolicy}),i.default.createElement("meta",{name:"viewport",content:null!==v&&void 0!==v?v:o.defaultViewport}),i.default.createElement("title",null,n),i.default.createElement("meta",{name:"description",content:r}),(null===f||void 0===f?void 0:f.length)&&i.default.createElement("meta",{name:"keywords",content:f.join(", ")}),i.default.createElement("link",{rel:"icon",href:_}),l&&i.default.createElement("link",{rel:"canonical",href:l}),b&&i.default.createElement("meta",{name:"format-detection",content:b}),"object"===typeof g&&function(t){var e,n;return i.default.createElement(i.default.Fragment,null,null===(e=null===t||void 0===t?void 0:t.fonts)||void 0===e?void 0:e.map(A),null===(n=null===t||void 0===t?void 0:t.images)||void 0===n?void 0:n.map(P))}(g),i.default.createElement("meta",{name:"color-scheme",content:k}),i.default.createElement("meta",{name:"theme-color",content:x}),"object"===typeof S&&function(t){var e=t.manifest,n=t.serviceWorker,r=t.icons;return i.default.createElement(i.default.Fragment,null,i.default.createElement("link",{rel:"manifest",href:e}),r.map(C),i.default.createElement("script",{dangerouslySetInnerHTML:{__html:a.createRegisterServiceWorkerScript(n)}}))}(S),Array.isArray(c)&&function(t){return i.default.createElement(i.default.Fragment,null,t.map((function(t,e){return i.default.createElement("link",{key:e,href:t,rel:"preconnect"})})),t.map((function(t,e){return i.default.createElement("link",{key:e,href:t,rel:"stylesheet"})})))}(c),i.default.createElement("meta",{property:"og:title",content:E.title}),i.default.createElement("meta",{property:"og:description",content:E.description}),i.default.createElement("meta",{property:"og:image",content:E.image}),i.default.createElement("meta",{property:"og:image:alt",content:E.imageAlt}),i.default.createElement("meta",{property:"og:url",content:E.url}),i.default.createElement("meta",{property:"og:site_name",content:E.siteName}),i.default.createElement("meta",{property:"og:type",content:E.type}),i.default.createElement("meta",{property:"og:locale",content:E.locale}),i.default.createElement("meta",{property:"vk:image",content:E.imageVk}),i.default.createElement("meta",{name:"twitter:title",content:E.title}),i.default.createElement("meta",{name:"twitter:description",content:E.description}),i.default.createElement("meta",{name:"twitter:image",content:E.imageTwitter}),i.default.createElement("meta",{name:"twitter:image:alt",content:E.imageAltTwitter}),i.default.createElement("meta",{name:"twitter:site",content:E.siteTwitter}),i.default.createElement("meta",{name:"twitter:card",content:E.cardTwitter}),i.default.createElement("meta",{property:"fb:app_id",content:E.appIdFb}),E.appIdVk&&(e=E.appIdVk,i.default.createElement(i.default.Fragment,null,i.default.createElement("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:a.createVkPixelSnippet(e)}}),i.default.createElement("noscript",null,i.default.createElement("img",{src:"https://vk.com/rtrg?p=".concat(E.appIdVk),style:{position:"fixed",left:"-999px"},alt:""})))),(null===w||void 0===w?void 0:w.yandex)&&i.default.createElement("meta",{name:"yandex-verification",content:w.yandex}),(null===w||void 0===w?void 0:w.google)&&i.default.createElement("meta",{name:"google-site-verification",content:w.google}))}},9971:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createVkPixelSnippet=e.createRegisterServiceWorkerScript=void 0,e.createRegisterServiceWorkerScript=function(t){return"if (typeof window !== 'undefined') {\n window.addEventListener('load', function() { \n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.register('".concat(t,"').catch(console.error);\n }\n });\n }")},e.createVkPixelSnippet=function(t){return'\n !function(){\n var t = document.createElement("script");\n t.type="text/javascript",\n t.async=!0,\n t.src="https://vk.com/js/api/openapi.js?162",\n t.onload = function() {\n var VK = window.VK;\n if (!VK) return;\n VK.Retargeting.Init("'.concat(t,'"),\n VK.Retargeting.Hit()\n },document.head.appendChild(t)}();\n ')}},78397:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.STARTUP_HANDLER_INITIALIZATION_ERROR_MESSAGE=e.STARTUP_HANDLER_UNDEFINED_ERROR_MESSAGE=e.BASE_URL_EXTRACT_ERROR=e.SYNTAX_ERROR=e.NETWORK_ERROR_MESSAGE=e.REQUEST_ERROR_MESSAGE=e.RESPONSE_OK_STATUS=e.HEALTH_CHECK_ERROR_CODE_TO=e.HEALTH_CHECK_ERROR_CODE_FROM=e.HEALTH_CHECK_SUCCESS_CODE_TO=e.HEALTH_CHECK_SUCCESS_CODE_FROM=e.GET_HTTP_METHOD=e.defaultPropValues=e.FrontendErrorCode=e.baseStyles=void 0,e.baseStyles={documentBody:{display:"block",margin:0,padding:0,fontFamily:"'Open Sans', 'Segoe UI', '-apple-system', 'Roboto', 'Helvetica', 'Arial', sans-serif"},overlay:{position:"fixed",left:0,top:0,bottom:0,right:0,background:"#000",zIndex:999999},modal:{background:"#000",color:"#fff",overflow:"hidden",boxSizing:"border-box",padding:"32px 20px",width:"calc(100vw - 2 * 10px)",maxWidth:"500px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",borderRadius:"30px",maxHeight:"calc(100vh - 69px * 2)",display:"flex",flexDirection:"column",zIndex:2,fontWeight:400,fontSize:"16px",lineHeight:"25px",textAlign:"center",whiteSpace:"break-spaces"},body:{display:"flex",flexDirection:"column",alignItems:"center"},image:{width:"130px",height:"128px",marginBottom:"16px"},title:{fontWeight:700,fontSize:"20px",lineHeight:"28px",color:"#fff",margin:0},description:{margin:0,marginTop:"20px"},errorInfo:{opacity:.5,fontSize:"0.9em",margin:0,marginTop:"20px"},button:{color:"#fff",background:"#000",margin:"24px auto 0",height:"40px",padding:"0 24px",boxSizing:"border-box",borderRadius:"20px",fontWeight:600,fontSize:"16px",lineHeight:"21px",display:"flex",justifyContent:"center",alignItems:"center",userSelect:"none",whiteSpace:"nowrap",width:"fit-content"}},function(t){t.StaticAvailabilityError="F2998",t.SyntaxError="F2999",t.UnexpectedEOF="F2997",t.UnexpectedEndOfScript="F2996",t.DomContentLoadTimeoutError="F2995",t.CssLoadError="F2994"}(n||(e.FrontendErrorCode=n={})),e.defaultPropValues={staticCheckFile:"/healthz.json",errors:{staticAvailabilityError:{code:n.StaticAvailabilityError,title:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435\xa0\u0442\u0430\u043a",description:"\u041c\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u043c \u043e\xa0\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0438\xa0\u0440\u0435\u0448\u0430\u0435\u043c\xa0\u0435\u0435. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0437\u0430\u0439\u0442\u0438 \u043f\u043e\u0437\u0436\u0435"},syntaxError:{code:n.SyntaxError,title:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435\xa0\u0442\u0430\u043a",description:"\u0421\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\xa0\u043e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435\xa0\u043d\u0430\u043c",buttonText:"\u0425\u043e\u0440\u043e\u0448\u043e",subErrors:[{patterns:["Unexpected EOF"],code:n.UnexpectedEOF,title:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435\xa0\u0442\u0430\u043a",description:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u043e\u0437\u0436\u0435"},{patterns:["Unexpected end of script"],code:n.UnexpectedEndOfScript,title:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435\xa0\u0442\u0430\u043a",description:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u043e\u0437\u0436\u0435"}]},domContentLoadTimeoutError:{code:n.DomContentLoadTimeoutError,title:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435\xa0\u0442\u0430\u043a",description:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u043e\u0437\u0436\u0435",timeoutMS:1e4,silentCapture:!0},cssLoadError:{code:n.CssLoadError,title:"\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435\xa0\u0442\u0430\u043a",description:"\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u043e\u0437\u0436\u0435"}}},e.GET_HTTP_METHOD="GET",e.HEALTH_CHECK_SUCCESS_CODE_FROM=200,e.HEALTH_CHECK_SUCCESS_CODE_TO=299,e.HEALTH_CHECK_ERROR_CODE_FROM=400,e.HEALTH_CHECK_ERROR_CODE_TO=599,e.RESPONSE_OK_STATUS={status:"OK"},e.REQUEST_ERROR_MESSAGE="\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435:",e.NETWORK_ERROR_MESSAGE="\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435:",e.SYNTAX_ERROR="syntaxerror",e.BASE_URL_EXTRACT_ERROR="\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0438\u0437\u0432\u043b\u0435\u0447\u044c \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0438\u0437",e.STARTUP_HANDLER_UNDEFINED_ERROR_MESSAGE="startupErrorHandler \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d",e.STARTUP_HANDLER_INITIALIZATION_ERROR_MESSAGE="\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c startupErrorHandler"},32447:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeadScriptStartupErrorHandler=void 0;var i=r(n(51387)),o=n(26472),a=n(78397);e.HeadScriptStartupErrorHandler=function(t){var e=t.wrapper,n=t.appStaticUrl,r=t.customStyles,s=t.errors,u=void 0===s?a.defaultPropValues.errors:s,c=t.staticCheckImage,l=t.catchFromDomainPrefixes,f=t.staticAvailabilityErrorHandlerEnabled,h=void 0===f||f,d=t.syntaxErrorHandlerEnabled,p=void 0===d||d,v=t.domContentLoadTimeoutErrorHandlerEnabled,y=void 0!==v&&v,m=t.cssLoadErrorHandlerEnabled,g=void 0!==m&&m;c||(c="".concat((0,o.extractBaseUrl)(n)).concat(a.defaultPropValues.staticCheckFile));return i.default.createElement(e,null,i.default.createElement("style",{dangerouslySetInnerHTML:{__html:(0,o.generateStyles)({customStyles:r})}}),i.default.createElement("script",{src:"".concat(n,"/libs/startup-error-handler/bundle.min.js"),crossOrigin:"anonymous"}),i.default.createElement("script",{dangerouslySetInnerHTML:{__html:function(t){var e=JSON.stringify(t);return"\n if (typeof window.startupErrorHandler === 'undefined') {\n console.error('".concat(a.STARTUP_HANDLER_UNDEFINED_ERROR_MESSAGE,"');\n } else if (typeof window.startupErrorHandler.init !== 'function') {\n console.error('").concat(a.STARTUP_HANDLER_INITIALIZATION_ERROR_MESSAGE,"');\n } else {\n window.startupErrorHandler.init(").concat(e,");\n }\n ")}({staticCheckImage:c,errors:u,catchFromDomainPrefixes:l,staticAvailabilityErrorHandlerEnabled:h,syntaxErrorHandlerEnabled:p,domContentLoadTimeoutErrorHandlerEnabled:y,cssLoadErrorHandlerEnabled:g})}}))}},35192:function(t,e,n){"use strict";var r=n(21136),i=n(77897),o=n(37914),a=n(68525),s=n(60821);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return o(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.StaticAvailabilityError=void 0;var c=function(t){i(n,t);var e=u(n);function n(t,i){var o;return r(this,n),(o=e.call(this,t)).message=t,o.httpCode=i,o}return n}(s(Error));e.StaticAvailabilityError=c},72178:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.HeadScriptStartupErrorHandler=void 0;var o=n(32447);Object.defineProperty(e,"HeadScriptStartupErrorHandler",{enumerable:!0,get:function(){return o.HeadScriptStartupErrorHandler}}),i(n(47336),e)},47336:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},26472:function(t,e,n){"use strict";var r=n(50391),i=n(27024);function o(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=u.HEALTH_CHECK_SUCCESS_CODE_FROM&&n.status<=u.HEALTH_CHECK_SUCCESS_CODE_TO?e(!1,u.RESPONSE_OK_STATUS):e(new c.StaticAvailabilityError("".concat(u.REQUEST_ERROR_MESSAGE," ").concat(n.status),n.status),u.RESPONSE_OK_STATUS)},n.onerror=function(){e(new c.StaticAvailabilityError(u.NETWORK_ERROR_MESSAGE),u.RESPONSE_OK_STATUS)},n.send()};e.isCheckAvailabilityNetworkError=function(t){return!!(t.httpCode&&t.httpCode>=u.HEALTH_CHECK_ERROR_CODE_FROM&&t.httpCode<=u.HEALTH_CHECK_ERROR_CODE_TO)};e.isErrorEvent=function(t){return t instanceof ErrorEvent};e.isEvent=function(t){return t instanceof Event};e.isSyntaxError=function(t){return t.message.toLowerCase().includes(u.SYNTAX_ERROR)};e.isCssLoadError=function(t){return Boolean(t.target instanceof HTMLLinkElement&&t.target.href&&t.target.href.toLowerCase().endsWith(".css"))};e.isDomainPrefixMatched=function(t,e){return!e||!e.length||e.some((function(e){return t.startsWith(e)}))};e.getSubErrorConfig=function(t,e){var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.patterns.some((function(e){return-1!==t.search(e)})))return i}}catch(a){r.e(a)}finally{r.f()}};e.generateStyles=function(t){var e=t.customStyles;return Object.entries(u.baseStyles).map((function(t){var n=i(t,2),r=n[0],o=n[1];return".".concat(r,"{").concat(f(Object.assign(Object.assign({},o),null===e||void 0===e?void 0:e[r])),"}")})).join("")};var l=new RegExp(/[A-Z]/g),f=function(t){return Object.keys(t).reduce((function(e,n){var r=n.replace(l,(function(t){return"-".concat(t.toLowerCase())})),i=t[n].toString();return"".concat(e).concat(r,":").concat(i,";")}),"")};e.delay=function(t){return s(void 0,void 0,void 0,r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){return e(t)}),t)})));case 1:case"end":return e.stop()}}),e)})))}},54143:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.BaseComponent=void 0;var o=function(){function t(){r(this,t),this.tag="untagged"}return i(t,[{key:"bindGameObject",value:function(t){this.gameObject=t}},{key:"onAddToGameObject",value:function(t){}},{key:"onAddToWorld",value:function(t){}}]),t}();e.BaseComponent=o},2070:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.HealthComponent=void 0;var c=n(54143),l=n(12815),f=n(99030),h=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).callbackCollector=t,i.observableData=new f.ObservableData({health:0,minHealth:0,maxHealth:0}),i}return i(n,[{key:"destroy",value:function(){this.callbackCollector.execute()}},{key:"subscribeOnChangeHealth",value:function(t){this.callbackCollector.add(this.observableData.subscribeOnDataChanged(t))}},{key:"unsubscribeOnChangeHealth",value:function(t){this.observableData.unsubscribe(t)}},{key:"health",get:function(){return this.observableData.data.health},set:function(t){var e=this.observableData.data,n=e.minHealth,r=e.maxHealth;this.observableData.setValue("health",l.NumberUtils.clamp(n,r,t))}},{key:"max",get:function(){return this.observableData.data.maxHealth},set:function(t){this.observableData.setValue("maxHealth",l.NumberUtils.clamp(this.observableData.data.minHealth,1/0,t))}},{key:"addHealth",value:function(t){var e=this.observableData.data,n=e.health,r=e.minHealth,i=e.maxHealth;this.observableData.setValue("health",l.NumberUtils.clamp(r,i,n+t))}},{key:"isDead",value:function(){return this.observableData.data.health===this.observableData.data.minHealth}}]),n}(c.BaseComponent);e.HealthComponent=h},45894:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.Movement2dComponent=void 0;var c=n(54143),l=n(92413),f=n(31199),h=n(92234),d=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).vector2dFactory=t,i.velocity=0,i.acceleration=0,i.direction2d=i.vector2dFactory(0,0),i}return i(n,[{key:"onAddToGameObject",value:function(){this.transformComponent=this.gameObject.getComponent(f.Transform2dComponent)}},{key:"update",value:function(t){this.velocity+=this.acceleration,this.transformComponent.x+=this.direction2d.x*this.velocity*t,this.transformComponent.y+=this.direction2d.y*this.velocity*t}},{key:"bindDirection",set:function(t){this.direction2d=t}},{key:"direction",get:function(){return this.direction2d.clone()},set:function(t){this.direction2d.x=t.x,this.direction2d.y=t.y}},{key:"dirX",get:function(){return this.direction2d.x},set:function(t){this.direction2d.x=t}},{key:"dirY",get:function(){return this.direction2d.y},set:function(t){this.direction2d.y=t}},{key:"directionFromAngle",set:function(t){l.Vector2Utils.fromAngle(this.direction2d,t)}},{key:"getMovementDuration",value:function(t,e){return 0===e?null:t*h.STANDARD_DELTA_MS/e}}]),n}(c.BaseComponent);e.Movement2dComponent=d},38850:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.Movement3dComponent=void 0;var c=n(54143),l=n(6707),f=n(92234),h=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).vector3dFactory=t,i.velocity=0,i.acceleration=0,i.direction3d=i.vector3dFactory(0,0,0),i}return i(n,[{key:"onAddToGameObject",value:function(){this.transformComponent=this.gameObject.getComponent(l.Transform3dComponent)}},{key:"update",value:function(t){this.velocity+=this.acceleration,this.transformComponent.x+=this.direction3d.x*this.velocity*t,this.transformComponent.y+=this.direction3d.y*this.velocity*t,this.transformComponent.z+=this.direction3d.z*this.velocity*t}},{key:"bindDirection",set:function(t){this.direction3d=t}},{key:"direction",get:function(){return this.direction3d.clone()},set:function(t){this.direction3d.x=t.x,this.direction3d.y=t.y,this.direction3d.z=t.z}},{key:"dirX",get:function(){return this.direction3d.x},set:function(t){this.direction3d.x=t}},{key:"dirY",get:function(){return this.direction3d.y},set:function(t){this.direction3d.y=t}},{key:"dirZ",get:function(){return this.direction3d.z},set:function(t){this.direction3d.z=t}},{key:"getMovementDuration",value:function(t,e){return 0===e?null:t*f.STANDARD_DELTA_MS/e}}]),n}(c.BaseComponent);e.Movement3dComponent=h},10316:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.TimerComponent=void 0;var c=n(63449),l=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).engine=t,i.isStarted=!1,i.timeMS=0,i}return i(n,[{key:"setTime",value:function(t){this.timeMS=t}},{key:"startTimer",value:function(){this.isStarted=!0}},{key:"stopTimer",value:function(){this.isStarted=!1}},{key:"update",value:function(t,e){0!==this.timeMS&&this.isStarted&&(this.timeMS=Math.max(0,this.timeMS-e),0===this.timeMS&&this.stopTimer())}},{key:"getFormattedTime",value:function(){return c.FormatUtils.formatGameTime(this.timeMS)}},{key:"getTimeMS",value:function(){return this.timeMS}}]),n}(n(54143).BaseComponent);e.TimerComponent=l},31199:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.Transform2dComponent=void 0;var c=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).vector2dFactory=t,i.position2d=i.vector2dFactory(0,0),i.scale2d=i.vector2dFactory(0,0),i.rotation2d=0,i}return i(n,[{key:"bindPosition",set:function(t){this.position2d=t}},{key:"position",get:function(){return this.position2d.clone()},set:function(t){this.position2d.x=t.x,this.position2d.y=t.y}},{key:"x",get:function(){return this.position2d.x},set:function(t){this.position2d.x=t}},{key:"y",get:function(){return this.position2d.y},set:function(t){this.position2d.y=t}},{key:"bindScale",set:function(t){this.scale2d=t}},{key:"scale",get:function(){return this.scale2d.clone()},set:function(t){this.scale2d.x=t.x,this.scale2d.y=t.y}},{key:"scaleX",get:function(){return this.scale2d.x},set:function(t){this.scale2d.x=t}},{key:"scaleY",get:function(){return this.scale2d.y},set:function(t){this.scale2d.y=t}},{key:"rotation",get:function(){return this.rotation2d},set:function(t){this.rotation2d=t}},{key:"bindRotation",set:function(t){this.rotation2d=t}}]),n}(n(54143).BaseComponent);e.Transform2dComponent=c},6707:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.Transform3dComponent=void 0;var c=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).vector3dFactory=t,i.position3d=i.vector3dFactory(0,0,0),i.scale3d=i.vector3dFactory(0,0,0),i.rotation3d=i.vector3dFactory(0,0,0),i}return i(n,[{key:"bindPosition",set:function(t){this.position3d=t}},{key:"position",get:function(){return this.position3d.clone()},set:function(t){this.position3d.x=t.x,this.position3d.y=t.y,this.position3d.z=t.z}},{key:"x",get:function(){return this.position3d.x},set:function(t){this.position3d.x=t}},{key:"y",get:function(){return this.position3d.y},set:function(t){this.position3d.y=t}},{key:"z",get:function(){return this.position3d.z},set:function(t){this.position3d.z=t}},{key:"bindScale",set:function(t){this.scale3d=t}},{key:"scale",get:function(){return this.scale3d.clone()},set:function(t){this.scale3d.x=t.x,this.scale3d.y=t.y,this.scale3d.z=t.z}},{key:"scaleX",get:function(){return this.scale3d.x},set:function(t){this.scale3d.x=t}},{key:"scaleY",get:function(){return this.scale3d.y},set:function(t){this.scale3d.y=t}},{key:"scaleZ",get:function(){return this.scale3d.z},set:function(t){this.scale3d.z=t}},{key:"rotation",get:function(){return this.rotation3d.clone()},set:function(t){this.rotation3d.x=t.x,this.rotation3d.y=t.y,this.rotation3d.z=t.z}},{key:"rotationX",get:function(){return this.rotation3d.x},set:function(t){this.rotation3d.x=t}},{key:"rotationY",get:function(){return this.rotation3d.y},set:function(t){this.rotation3d.y=t}},{key:"rotationZ",get:function(){return this.rotation3d.z},set:function(t){this.rotation3d.z=t}},{key:"bindRotation",set:function(t){this.rotation3d=t}}]),n}(n(54143).BaseComponent);e.Transform3dComponent=c},62214:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},46384:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.TimerComponent=e.Transform3dComponent=e.Transform2dComponent=e.Movement3dComponent=e.Movement2dComponent=e.HealthComponent=void 0;var o=n(2070);Object.defineProperty(e,"HealthComponent",{enumerable:!0,get:function(){return o.HealthComponent}});var a=n(45894);Object.defineProperty(e,"Movement2dComponent",{enumerable:!0,get:function(){return a.Movement2dComponent}});var s=n(38850);Object.defineProperty(e,"Movement3dComponent",{enumerable:!0,get:function(){return s.Movement3dComponent}});var u=n(31199);Object.defineProperty(e,"Transform2dComponent",{enumerable:!0,get:function(){return u.Transform2dComponent}});var c=n(6707);Object.defineProperty(e,"Transform3dComponent",{enumerable:!0,get:function(){return c.Transform3dComponent}});var l=n(10316);Object.defineProperty(e,"TimerComponent",{enumerable:!0,get:function(){return l.TimerComponent}}),i(n(62214),e)},92234:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.IDLE_RAF_ID=e.STANDARD_DELTA_MS=e.Directions=void 0,function(t){t[t.UP=-Math.PI/2]="UP",t[t.DOWN=Math.PI/2]="DOWN",t[t.LEFT=-Math.PI]="LEFT",t[t.RIGHT=Math.PI]="RIGHT"}(n||(e.Directions=n={})),e.STANDARD_DELTA_MS=1e3/60,e.IDLE_RAF_ID=-1},10288:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.GCSEngine=void 0;var i=n(92413),o=n(75022),a=n(92234),s=function t(e,n,i,o,a){var s=this;r(this,t),this.world=e,this.time=n,this.scripts=i,this.renderer=o,this.gameLifeCycle=a,this.destroy=function(){var t,e;null===(e=(t=s.gameLifeCycle).destroy)||void 0===e||e.call(t)},this.clear=function(){s.world.clear(),s.scripts.clear(),s.renderer.clear(),s.gameLifeCycle.reset()},this.pause=function(){var t,e;null===(e=(t=s.gameLifeCycle).pause)||void 0===e||e.call(t)},this.resume=function(){var t,e;null===(e=(t=s.gameLifeCycle).resume)||void 0===e||e.call(t)},this.start=function(){var t,e;s.gameLifeCycle.gameLoop.addEntity(s.time,s.world,s.scripts,s.renderer),null===(e=(t=s.gameLifeCycle).start)||void 0===e||e.call(t)},this.stop=function(){var t,e;null===(e=(t=s.gameLifeCycle).stop)||void 0===e||e.call(t)}};e.GCSEngine=s,s.Vector2Utils=i.Vector2Utils,s.EventEmitter=o.EventEmitter,s.Directions=a.Directions},69649:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.GameLoopEvents=void 0,function(t){t.Start="Start",t.Pause="Pause",t.Resume="Resume",t.Stop="Stop"}(n||(e.GameLoopEvents=n={}))},62870:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.GameLifeCycle=void 0;var o=n(69649),a=n(67677),s=function(){function t(e,n,i){r(this,t),this.gameState=e,this.gameStateEvents=n,this.gameLoop=i}return i(t,[{key:"destroy",value:function(){var t,e;null===(e=(t=this.gameLoop).destroy)||void 0===e||e.call(t),this.gameState.setState(a.GameLoopState.Idle)}},{key:"pause",value:function(){var t,e;this.gameState.isUpdatingState()&&(this.gameState.setState(a.GameLoopState.Paused),this.gameStateEvents.emitEvent(o.GameLoopEvents.Pause),null===(e=(t=this.gameLoop).pause)||void 0===e||e.call(t))}},{key:"resume",value:function(){var t,e;this.gameState.isPausedState()&&(this.gameState.setState(a.GameLoopState.Updating),this.gameStateEvents.emitEvent(o.GameLoopEvents.Resume),null===(e=(t=this.gameLoop).resume)||void 0===e||e.call(t))}},{key:"start",value:function(){var t,e;(this.gameState.isIdleState()||this.gameState.isStoppedState())&&(this.gameState.setState(a.GameLoopState.Updating),this.gameStateEvents.emitEvent(o.GameLoopEvents.Start),null===(e=(t=this.gameLoop).start)||void 0===e||e.call(t))}},{key:"stop",value:function(){var t,e;this.gameState.isUpdatingState()&&(this.gameState.setState(a.GameLoopState.Stopped),this.gameStateEvents.emitEvent(o.GameLoopEvents.Stop),null===(e=(t=this.gameLoop).stop)||void 0===e||e.call(t))}},{key:"reset",value:function(){var t,e;null===(e=(t=this.gameLoop).stop)||void 0===e||e.call(t),this.gameState.setState(a.GameLoopState.Idle)}}]),t}();e.GameLifeCycle=s},59491:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(58763),a=n(77897),s=n(37914),u=n(68525);function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.GameLoop=void 0;var l=function(t){a(n,t);var e=c(n);function n(t){var i;return r(this,n),(i=e.call(this)).tickerUpdate=function(t,e){i.update(t,e)},i.ticker=t(i.tickerUpdate),i}return i(n,[{key:"addEntity",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r0}))}},{key:"setTimeout",value:function(t,e){this.timeoutList.push({cb:t,time:e})}},{key:"clearTimeout",value:function(t){this.timeoutList=this.timeoutList.filter((function(e){return e.cb!==t}))}}]),t}();e.Timeouts=o},2973:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.GameObject=void 0;var c=function(t){o(n,t);var e=u(n);function n(){var t;return r(this,n),(t=e.call(this)).tag="untagged",t.isMarkedAsDestroyed=!1,t.gameWorld=null,t}return i(n,[{key:"world",get:function(){if(null===this.gameWorld)throw new Error("GameObject: GameWorld is null");return this.gameWorld}},{key:"addComponent",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r=10||t<0?t.toString():"0"+t}}]),t}();e.FormatUtils=a},34275:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.GameLifeCycleEntityContainer=void 0;var o=n(75618),a=function(){function t(){r(this,t),this.entityMap=new o.KeyUniqValuesVault,this.updatableEntityList=[]}return i(t,[{key:"size",get:function(){return this.entityMap.size}},{key:"entityList",get:function(){return this.entityMap.valuesList}},{key:"getEntityByKey",value:function(t){return this.entityMap.getValue(t)}},{key:"getEntity",value:function(t,e){return this.entityMap.getValue(t,e)}},{key:"pushEntity",value:function(t,e){this.entityMap.addValue(t,e),e.update&&this.updatableEntityList.push(e)}},{key:"dropEntityByKey",value:function(t){var e=this.entityMap.dropKey(t);e.forEach((function(t){var e;null===(e=t.destroy)||void 0===e||e.call(t)})),this.updatableEntityList=this.updatableEntityList.filter((function(t){return!e.includes(t)}))}},{key:"dropEntity",value:function(t,e){var n=this.entityMap.dropSetValue(t,e);n.forEach((function(t){var e;null===(e=t.destroy)||void 0===e||e.call(t)})),this.updatableEntityList=this.updatableEntityList.filter((function(t){return!n.includes(t)}))}},{key:"getEntityCount",value:function(t){return this.entityMap.getValueCountByKey(t)}},{key:"start",value:function(){this.entityList.forEach((function(t){var e;return null===(e=t.start)||void 0===e?void 0:e.call(t)}))}},{key:"stop",value:function(){this.entityList.forEach((function(t){var e;return null===(e=t.stop)||void 0===e?void 0:e.call(t)}))}},{key:"update",value:function(t,e){this.updatableEntityList.forEach((function(n){var r;return null===(r=n.update)||void 0===r?void 0:r.call(n,t,e)}))}},{key:"destroy",value:function(){this.entityList.forEach((function(t){var e;return null===(e=t.destroy)||void 0===e?void 0:e.call(t)})),this.entityMap.clear(),this.entityMap=new o.KeyUniqValuesVault,this.updatableEntityList=[]}},{key:"pause",value:function(){this.entityList.forEach((function(t){var e;return null===(e=t.pause)||void 0===e?void 0:e.call(t)}))}},{key:"resume",value:function(){this.entityList.forEach((function(t){var e;return null===(e=t.resume)||void 0===e?void 0:e.call(t)}))}}]),t}();e.GameLifeCycleEntityContainer=a},12815:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.NumberUtils=void 0;var o=function(){function t(){r(this,t)}return i(t,null,[{key:"clamp",value:function(t,e,n){return Math.min(Math.max(n,t),e)}},{key:"inRange",value:function(t,e,n){return n>=t&&n<=e}},{key:"calcPercentage",value:function(e,n){return t.clamp(0,100,e/Math.max(n,1)*100)}},{key:"lerp",value:function(t,e,n){return(1-n)*t+n*e}},{key:"roundWith2Precision",value:function(t){return Math.round(100*(t+Number.EPSILON))/100}},{key:"getDecimalPart",value:function(t){if(Number.isInteger(t))return 0;var e=t.toString().split(".")[1];return Number(e)}}]),t}();e.NumberUtils=o},99030:function(t,e,n){"use strict";var r=n(49601),i=n(21136),o=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.ObservableData=void 0;var a=n(75022),s=function(){function t(e){var n=this;i(this,t),this.eventName="dataChanged",this.getData=function(){return n.data},this.setData=function(t){n.data=t,n.emitData()},this.setValue=function(t,e){n.data[t]=e,n.emitData()},this.subscribeOnDataChanged=function(t){var e=function(){t(n.data)};return n.emitter.on(n.eventName,e),function(){return n.emitter.off(n.eventName,e)}},this.emitter=new a.EventEmitter,this.data=e}return o(t,[{key:"unsubscribe",value:function(t){this.emitter.off(this.eventName,t)}},{key:"emitData",value:function(){Array.isArray(this.data)?this.data=r(this.data):this.data=Object.assign({},this.data),this.emitter.emit(this.eventName)}}]),t}();e.ObservableData=s},87495:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.Ticker=void 0;var o=n(92234),a=function(){function t(){r(this,t),this.lastTime=null,this.isStarted=!1,this.deltaBetweenFrames=0,this.globalWindow=globalThis.window||null,this.rafId=o.IDLE_RAF_ID}return i(t,[{key:"init",value:function(t){this.callback=t}},{key:"FPS",get:function(){return this.isWrongDeltaBetweenFrames()?0:1/this.deltaBetweenFrames*1e3}},{key:"deltaMS",get:function(){return this.deltaBetweenFrames}},{key:"elapsedDelta",get:function(){return this.isWrongDeltaBetweenFrames()?0:this.deltaBetweenFrames/o.STANDARD_DELTA_MS}},{key:"started",get:function(){return this.isStarted}},{key:"start",value:function(){var t=this;if(!this.isStarted){this.isStarted=!0;this.requestAnimationFrame((function e(){t.isStarted&&(t.deltaBetweenFrames=t.getDeltaBetweenFrames(),t.isWrongDeltaBetweenFrames()||t.callback(t.elapsedDelta,t.deltaBetweenFrames),t.requestAnimationFrame(e))}))}}},{key:"stop",value:function(){var t;this.isStarted&&(null===(t=this.globalWindow)||void 0===t||t.cancelAnimationFrame(this.rafId),this.rafId=o.IDLE_RAF_ID,this.lastTime=null,this.isStarted=!1,this.deltaBetweenFrames=0)}},{key:"getDeltaBetweenFrames",value:function(){if(null===this.globalWindow)return 0;if(!this.started)return 0;if(null===this.lastTime)return this.lastTime=this.globalWindow.performance.now(),0;var t=this.globalWindow.performance.now();if(void 0===t)return 0;var e=t-this.lastTime;return this.lastTime=t,e}},{key:"isWrongDeltaBetweenFrames",value:function(){return this.deltaBetweenFrames<=0}},{key:"requestAnimationFrame",value:function(t){var e;this.rafId=(null===(e=this.globalWindow)||void 0===e?void 0:e.requestAnimationFrame(t))||o.IDLE_RAF_ID}}]),t}();e.Ticker=a},75618:function(t,e,n){"use strict";var r=n(49601),i=n(21136),o=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.KeyUniqValuesVault=void 0;var a=function(){function t(){i(this,t),this.vault=new Map}return o(t,[{key:"addValue",value:function(t,e){var n;this.vault.has(t)?null===(n=this.vault.get(t))||void 0===n||n.add(e):this.vault.set(t,new Set([e]))}},{key:"dropKey",value:function(t){return this.dropValue(t)}},{key:"dropSetValue",value:function(t,e){return this.dropValue(t,e)}},{key:"dropValue",value:function(t,e){var n=this.vault.get(t);return n?e?n.size<=1?this.vault.delete(t)?Array.from(n):[]:n.delete(e)?[e]:[]:this.vault.delete(t)?Array.from(n):[]:[]}},{key:"getValue",value:function(t,e){var n=Array.from(this.vault.get(t)||[]);if(0!==n.length)return e?n.find((function(t){return t===e})):n[0]}},{key:"getValueByKey",value:function(t){var e=this.vault.get(t);return e?Array.from(e):void 0}},{key:"getValueCountByKey",value:function(t){var e=this.getValueByKey(t);return e?e.length:0}},{key:"clear",value:function(){this.vault.clear()}},{key:"size",get:function(){return this.vault.size}},{key:"valuesList",get:function(){return Array.from(this.vault.values()).flat().reduce((function(t,e){return t.push.apply(t,r(e.values())),t}),[])}},{key:"clone",value:function(){return new Map(this.vault)}},{key:"getVault",value:function(){return this.vault}}]),t}();e.KeyUniqValuesVault=a},7802:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.Vector2=void 0;var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;r(this,t),this.x=e,this.y=n}return i(t,[{key:"clone",value:function(){return new t(this.x,this.y)}}],[{key:"fromVector2d",value:function(e){return new t(e.x,e.y)}}]),t}();e.Vector2=o},92413:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.Vector2Utils=void 0;var o=function(){function t(){r(this,t)}return i(t,null,[{key:"distance",value:function(e,n){return Math.sqrt(t.squaredDistance(e,n))}},{key:"squaredDistance",value:function(t,e){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}},{key:"add",value:function(t,e){var n=t.clone();return n.x+=e.x,n.y+=e.y,n}},{key:"subtract",value:function(t,e){var n=t.clone();return n.x-=e.x,n.y-=e.y,n}},{key:"fromAngle",value:function(t,e){return t.x=Math.cos(e),t.y=Math.sin(e),t}},{key:"getAngleBetweenVectors",value:function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}}]),t}();e.Vector2Utils=o},45296:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.Vector3=void 0;var o=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r(this,t),this.x=e,this.y=n,this.z=i}return i(t,[{key:"clone",value:function(){return new t(this.x,this.y,this.z)}}],[{key:"fromVector2d",value:function(e){return new t(e.x,e.y,e.z)}}]),t}();e.Vector3=o},96349:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractStorage=void 0;e.AbstractStorage=function t(){r(this,t)}},94518:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.NullStorage=void 0;var c=function(t){o(n,t);var e=u(n);function n(){return r(this,n),e.apply(this,arguments)}return i(n,[{key:"getLength",value:function(){console.error(new Error("Storage.getLength(): storage is undefined"))}},{key:"clear",value:function(){console.error(new Error("Storage.clear(): storage undefined"))}},{key:"getItem",value:function(){console.error(new Error("Storage.getItem(): storage undefined"))}},{key:"getItemObject",value:function(){console.error(new Error("Storage.getItemObject(): storage undefined"))}},{key:"key",value:function(){console.error(new Error("Storage.key(): storage undefined"))}},{key:"removeItem",value:function(){console.error(new Error("Storage.removeItem(): storage undefined"))}},{key:"setItem",value:function(){console.error(new Error("Storage.setItem(): storage undefined"))}},{key:"setItemObject",value:function(){console.error(new Error("Storage.setItemObject(): storage undefined"))}}]),n}(n(96349).AbstractStorage);e.NullStorage=c},73176:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(77897),a=n(37914),s=n(68525);function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.RealStorage=void 0;var c=function(t){o(n,t);var e=u(n);function n(t){var i;return r(this,n),(i=e.call(this)).storage=t.storage,i.onError=t.onError,i}return i(n,[{key:"getLength",value:function(){return this.storage.length}},{key:"clear",value:function(){return this.storage.clear()}},{key:"getItem",value:function(t){try{return this.storage.getItem(t)}catch(e){return this.onError(e),null}}},{key:"getItemObject",value:function(t){try{var e=this.getItem(t);return null!==e?JSON.parse(e):e}catch(n){return this.onError(n),null}}},{key:"key",value:function(t){return this.storage.key(t)}},{key:"removeItem",value:function(t){return this.storage.removeItem(t)}},{key:"setItem",value:function(t,e){try{this.storage.setItem(t,e)}catch(n){this.onError(n)}}},{key:"setItemObject",value:function(t,e){try{this.setItem(t,JSON.stringify(e))}catch(n){this.onError(n)}}}]),n}(n(96349).AbstractStorage);e.RealStorage=c},92455:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.initSessionStorage=e.initLocalStorage=void 0;var r=n(73176),i=n(94518),o=n(99899),a=n(83060),s=n(18065),u=function(t){var e=function(e){if(t.onError)return t.onError(e);console.error(e)};if(s.isServer)return new i.NullStorage;var n=a.getWindowStorage(t.storageType,e);return n?new r.RealStorage({storage:n,onError:e}):new i.NullStorage};e.initLocalStorage=function(t){return u(Object.assign(Object.assign({},t),{storageType:o.StorageType.localStorage}))};e.initSessionStorage=function(t){return u(Object.assign(Object.assign({},t),{storageType:o.StorageType.sessionStorage}))}},18065:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isServer=void 0,e.isServer="undefined"===typeof window},48247:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(99899),e),i(n(92455),e),i(n(94518),e),i(n(73176),e),i(n(96349),e)},99899:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StorageType=void 0,function(t){t.localStorage="localStorage",t.sessionStorage="sessionStorage"}(e.StorageType||(e.StorageType={}))},83060:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWindowStorage=void 0;e.getWindowStorage=function(t,e){try{var n="specialsStorageCheck";return window[t].setItem(n,"true"),window[t].removeItem(n),window[t]}catch(r){return e(r),null}}},56848:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultQueries=e.isServer=void 0,e.isServer="undefined"===typeof window,e.defaultQueries={isMobile:"(max-width: 767px)",isTablet:"(min-width: 768px) and (max-width: 1356px)",isDesktop:"(min-width: 1360px)",isMobileMedium:"(max-width: 413px)",isMobileLarge:"(min-width: 414px) and (max-width: 767px)",isTabletMedium:"(min-width: 768px) and (max-width: 1023px)",isTabletLarge:"(min-width: 1024px) and (max-width: 1356px)",isDesktopMedium:"(min-width: 1360px) and (max-width: 1919px)",isDesktopLarge:"(min-width: 1920px)"}},25934:function(t,e,n){"use strict";var r=n(27024);Object.defineProperty(e,"__esModule",{value:!0}),e.useMatchMedia=void 0;var i=n(51387),o=n(56848),a=n(12389);e.useMatchMedia=function(t){var e=(0,a.getQueries)(t);if(o.isServer)return(0,a.createDefaultValues)(e);var n=(0,a.entries)(e),s=n.map((function(t){var e=r(t,2)[1];return window.matchMedia(e)})),u=function(){return s.map((function(t){return t.matches}))},c=(0,i.useState)(u),l=r(c,2),f=l[0],h=l[1];return(0,i.useLayoutEffect)((function(){var t=function(){return h(u)};return s.forEach((function(e){(0,a.subscribe)(e,t)})),function(){s.forEach((function(e){(0,a.unsubscribe)(e,t)}))}}),[]),n.reduce((function(t,e,n){return t[r(e,1)[0]]=f[n],t}),{})}},3013:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(25934),e),i(n(56848),e),i(n(12389),e),i(n(59415),e)},59415:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},12389:function(t,e,n){"use strict";var r=n(27024);Object.defineProperty(e,"__esModule",{value:!0}),e.unsubscribe=e.subscribe=e.getQueries=e.createDefaultValues=e.entries=void 0;var i=n(56848);function o(t){return Object.entries(t)}e.entries=o,e.createDefaultValues=function(t){return o(t).reduce((function(t,e){return t[r(e,1)[0]]=!1,t}),{})},e.getQueries=function(t){return t||i.defaultQueries},e.subscribe=function(t,e){if("function"===typeof t.addEventListener)return t.addEventListener("change",e);if("function"===typeof t.addListener)return t.addListener(e);throw new Error("\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 MediaListener")},e.unsubscribe=function(t,e){if("function"===typeof t.removeEventListener)return t.removeEventListener("change",e);if("function"===typeof t.removeListener)return t.removeListener(e);throw new Error("\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 MediaListener")}},9347:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_SPAWN_CHANCE=e.MIN_SPAWN_CHANCE=e.END_SCRIPT_TIME=e.START_SCRIPT_TIME=e.GRAVITY_DEFAULT_MULTIPLIER=e.DEFAULT_SPAWN_POSITION=e.DEFAULT_DIRECTION_CONFIG=e.DEFAULT_LIFE_TIME_CONFIG=void 0,e.DEFAULT_LIFE_TIME_CONFIG={value:Number.POSITIVE_INFINITY},e.DEFAULT_DIRECTION_CONFIG={minAngle:0,maxAngle:360},e.DEFAULT_SPAWN_POSITION={x:0,y:0},e.GRAVITY_DEFAULT_MULTIPLIER=100,e.START_SCRIPT_TIME=0,e.END_SCRIPT_TIME=100,e.MIN_SPAWN_CHANCE=0,e.MAX_SPAWN_CHANCE=100},14732:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(31529);Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigManager=void 0;var a=n(54643),s=n(9347),u=n(41035),c=function(){function t(e,n){r(this,t),o(this,"viewFactory",void 0),o(this,"config",void 0),o(this,"eventEmitter",void 0),this.viewFactory=n,this.config=(0,a.cloneDeep)(e),this.eventEmitter=new u.EventEmitter}return i(t,[{key:"fullConfig",get:function(){return(0,a.cloneDeep)(this.config)},set:function(t){this.config=(0,a.cloneDeep)(t)}},{key:"emitterConfig",get:function(){return(0,a.cloneDeep)(this.config.emitterConfig)},set:function(t){this.config.emitterConfig=(0,a.cloneDeep)(t)}},{key:"particleConfig",get:function(){return(0,a.cloneDeep)(this.config.particleConfig)},set:function(t){this.config.particleConfig=(0,a.cloneDeep)(t)}},{key:"view",get:function(){return this.viewFactory},set:function(t){this.viewFactory=t,this.eventEmitter.emit("viewChanged",t)}},{key:"spawnInterval",get:function(){return this.config.emitterConfig.spawnInterval},set:function(t){this.config.emitterConfig.spawnInterval=t}},{key:"spawnTime",get:function(){return this.config.emitterConfig.spawnTime},set:function(t){this.config.emitterConfig.spawnTime=t}},{key:"spawnTimeout",get:function(){return this.config.emitterConfig.spawnTimeout},set:function(t){this.config.emitterConfig.spawnTimeout=t}},{key:"spawnParticlesPerWave",get:function(){return this.config.emitterConfig.spawnParticlesPerWave},set:function(t){this.config.emitterConfig.spawnParticlesPerWave=t}},{key:"maxParticles",get:function(){return this.config.emitterConfig.maxParticles},set:function(t){this.config.emitterConfig.maxParticles=t}},{key:"spawnChance",get:function(){return this.config.emitterConfig.spawnChance},set:function(t){this.config.emitterConfig.spawnChance=t}},{key:"autoStart",get:function(){return this.config.emitterConfig.autoStart}},{key:"lifeTime",get:function(){return this.config.particleConfig.lifeTime?this.config.particleConfig.lifeTime:s.DEFAULT_LIFE_TIME_CONFIG},set:function(t){this.config.particleConfig.lifeTime=void 0!==t?(0,a.cloneDeep)(t):s.DEFAULT_LIFE_TIME_CONFIG}},{key:"speed",get:function(){return this.config.particleConfig.speed},set:function(t){this.config.particleConfig.speed=(0,a.cloneDeep)(t)}},{key:"direction",get:function(){return this.config.particleConfig.direction||s.DEFAULT_DIRECTION_CONFIG},set:function(t){this.config.particleConfig.direction=(0,a.cloneDeep)(t||s.DEFAULT_DIRECTION_CONFIG)}},{key:"path",get:function(){return this.config.particleConfig.path},set:function(t){this.config.particleConfig.path=(0,a.cloneDeep)(t)}},{key:"alpha",get:function(){return this.config.particleConfig.alpha},set:function(t){this.config.particleConfig.alpha=(0,a.cloneDeep)(t)}},{key:"scale",get:function(){return this.config.particleConfig.scale},set:function(t){this.config.particleConfig.scale=(0,a.cloneDeep)(t)}},{key:"gravity",get:function(){return this.config.particleConfig.gravity},set:function(t){this.config.particleConfig.gravity=(0,a.cloneDeep)(t)}},{key:"rotation",get:function(){return this.config.particleConfig.rotation},set:function(t){this.config.particleConfig.rotation=(0,a.cloneDeep)(t)}},{key:"spawnPosition",get:function(){return this.config.particleConfig.spawnPosition||s.DEFAULT_SPAWN_POSITION},set:function(t){this.config.particleConfig.spawnPosition=(0,a.cloneDeep)(t||s.DEFAULT_SPAWN_POSITION)}},{key:"spawnShape",get:function(){return this.config.particleConfig.spawnShape},set:function(t){this.config.particleConfig.spawnShape=(0,a.cloneDeep)(t)}},{key:"color",get:function(){return this.config.particleConfig.color},set:function(t){this.config.particleConfig.color=(0,a.cloneDeep)(t)}},{key:"subscribeToViewChange",value:function(t){this.eventEmitter.on("viewChanged",t)}}]),t}();e.ConfigManager=c},1089:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(31529);Object.defineProperty(e,"__esModule",{value:!0}),e.ParticleContainer=void 0;var a=n(16493),s=n(4291),u=n(37647),c=n(66793),l=n(95110),f=n(90733),h=n(58205),d=n(59429),p=n(40746),v=n(85022),y=function(){function t(e,n,i){var a=this;r(this,t),o(this,"viewContainer",void 0),o(this,"config",void 0),o(this,"shapePointGenerator",void 0),o(this,"particleHead",void 0),o(this,"availableParticleHead",void 0),o(this,"containerParticlesCount",void 0),this.viewContainer=e,this.config=n,this.shapePointGenerator=i,this.particleHead=null,this.availableParticleHead=null,this.containerParticlesCount=0,this.config.subscribeToViewChange((function(){a.getParticlesArray().forEach((function(t){t.isDestroyAfterDeath=!0})),a.clearPool()}))}return i(t,[{key:"getParticlesArray",value:function(){for(var t=[],e=this.particleHead;null!==e;)t.push(e),e=e.next;return t}},{key:"getPoolParticlesArray",value:function(){for(var t=[],e=this.availableParticleHead;null!==e;)t.push(e),e=e.next;return t}},{key:"getParticlesCount",value:function(){return this.containerParticlesCount}},{key:"update",value:function(t,e){this.containerParticlesCount=0;for(var n=this.particleHead;null!==n;)(0,p.wasParticleRemoved)(n)?((0,f.removeParticle)(this.viewContainer,n),n=this.removeActiveParticle(n,!1)):(0,a.isParticleDead)(n)?(0,v.isNeedRemoveParticle)(n)?((0,f.removeParticle)(this.viewContainer,n),n=this.removeActiveParticle(n,!1)):((0,u.noUseParticle)(n),n=this.removeActiveParticle(n,!0)):(0,s.isParticleInUse)(n)?((0,h.updateParticle)(n,t,e),this.containerParticlesCount++,n=n.next):((0,u.noUseParticle)(n),n=this.removeActiveParticle(n,!0))}},{key:"clear",value:function(){for(var t=this.particleHead;null!==t;){(0,u.noUseParticle)(t);var e=t;t=t.next,e.next=null,e.prev=null,(0,v.isNeedRemoveParticle)(e)?(0,f.removeParticle)(this.viewContainer,e):this.addParticleToPool(e)}this.particleHead=null,this.containerParticlesCount=0}},{key:"clearViewContainer",value:function(){for(var t=this.particleHead;null!==t;)(0,f.removeParticle)(this.viewContainer,t),t=t.next;this.particleHead=null,this.clearPool(),this.containerParticlesCount=0}},{key:"clearPool",value:function(){for(var t=this.availableParticleHead;null!==t;)(0,f.removeParticle)(this.viewContainer,t),t=t.next;this.availableParticleHead=null}},{key:"createParticle",value:function(t){var e=this.getParticleFromPool()||(0,c.createUnusedParticle)(this.viewContainer,(0,l.createView)(this.config.view));return(0,d.useParticle)(e,this.config,this.shapePointGenerator,t),this.addParticleInUsedParticles(e),this.containerParticlesCount++,e}},{key:"fillPool",value:function(t){for(var e=0;e=l.getSpawnTime())return 0===l.container.getParticlesCount()&&l.stopTime(),l.updateReport(0,0),l.lastUpdateReport;var r=l.currentTime-(l.prevSpawnTime+l.currentSpawnInterval);if(r>=0){var i=l.createParticlesBetweenFrames(r);return l.prevSpawnTime+=l.currentSpawnInterval*i,l.currentSpawnInterval=l.getNextSpawnTime(),l.updateReport(i,r),l.lastUpdateReport}return l.updateReport(0,0),l.lastUpdateReport})),this.ticker=new u.Ticker(this.handleUpdate),this.config=new s.ConfigManager(i,n),this.shapePointGenerator=new h.ShapePointGenerator,this.container=new a.ParticleContainer(e,this.config,this.shapePointGenerator),this.currentTime=0,this.currentSpawnInterval=this.getNextSpawnTime(),this.prevSpawnTime=0,this.lastUpdateReport={currentTime:0,prevSpawnTime:0,particleCreatedCount:0,spawnTimeDelta:0},this.resetTime(),this.extraOptions=c||{},(void 0===this.config.autoStart||this.config.autoStart)&&this.startEmit()}return i(t,[{key:"emitOnce",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.getAvailableForEmitParticlesCount(t),n=0;n=0&&this.createParticlesBetweenFrames(0)}},{key:"pauseEmit",value:function(){this.ticker.stop()}},{key:"resumeEmit",value:function(){this.ticker.start()}},{key:"stopEmit",value:function(){this.stopTime(),this.clean()}},{key:"restart",value:function(){this.stopEmit(),this.startEmit()}},{key:"clean",value:function(){this.container.clear()}},{key:"destroy",value:function(){this.container.clearViewContainer(),this.ticker.stop()}},{key:"isEmitActive",value:function(){return this.ticker.started}},{key:"update",value:function(t,e){return this.handleUpdate(t,e)}},{key:"updateContainer",value:function(t,e){this.container.update(t,e)}},{key:"getParticlesCount",value:function(){return this.container.getParticlesCount()}},{key:"getParticles",value:function(){return this.container.getParticlesArray()}},{key:"fillPool",value:function(t){this.container.fillPool(t)}},{key:"clearPool",value:function(){this.container.clearPool()}},{key:"createParticlesBetweenFrames",value:function(t){for(var e=this.currentSpawnInterval||1,n=Math.floor(t/e)+1,r=0;r0&&(0,f.updateParticle)(a,t/(e||1),t)}this.shapePointGenerator.refresh()}},{key:"updateReport",value:function(t,e){this.lastUpdateReport.currentTime=this.currentTime,this.lastUpdateReport.prevSpawnTime=this.prevSpawnTime,this.lastUpdateReport.particleCreatedCount=t,this.lastUpdateReport.spawnTimeDelta=e}}]),t}();e.ParticleEmitter=p},70290:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDeltaBehavior=e.isScriptBehavior=e.isVectorBehavior=e.isScalarBehavior=void 0;var r=n(82123);e.isScalarBehavior=function(t){return t.type===r.BaseBehaviorType.Scalar},e.isVectorBehavior=function(t){return t.type===r.BaseBehaviorType.Vector},e.isScriptBehavior=function(t){return t.type===r.BaseBehaviorType.Script},e.isDeltaBehavior=function(t){return t.type===r.BaseBehaviorType.Delta}},82123:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBehaviorType=void 0,function(t){t.Scalar="Scalar",t.Vector="Vector",t.Script="Script",t.Delta="Delta"}(n||(e.BaseBehaviorType=n={}))},76571:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeltaBehaviorValue=e.getDeltaBehavior=void 0;var r=n(82123),i=n(79190);e.getDeltaBehavior=function(t){return{value:t.value*(0,i.getMultiplierValue)(t.multiplier||1),delta:t.delta,type:r.BaseBehaviorType.Delta}},e.getDeltaBehaviorValue=function(t,e){return t.value+=t.delta*e,t.value}},32473:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDeltaBehaviorConfig=void 0,e.isDeltaBehaviorConfig=function(t){return"delta"in t}},34372:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScalarBehaviorValue=e.getStaticBehaviorValue=e.getScalarBehavior=void 0;var r=n(47702),i=n(57269),o=n(82123),a=n(79190),s=r.NumberUtils.lerp;e.getScalarBehavior=function(t){return{startValue:t.start*(0,a.getMultiplierValue)(t.multiplier||1),endValue:t.end*(0,a.getMultiplierValue)(t.multiplier||1),easing:t.easing?i.EASING_FUNCTIONS[t.easing]:null,type:o.BaseBehaviorType.Scalar}},e.getStaticBehaviorValue=function(t){return t.value*(0,a.getMultiplierValue)(t.multiplier||1)},e.getScalarBehaviorValue=function(t,e){return null!==t.easing?s(t.startValue,t.endValue,t.easing(e)):s(t.startValue,t.endValue,e)}},73263:function(t,e){"use strict";function n(t){return"start"in t&&"end"in t}function r(t){return"value"in t&&!("script"in t)&&!("delta"in t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isScalarBehaviorConfig=e.isScalarStaticBehaviorConfig=e.isScalarTransitionBehaviorConfig=void 0,e.isScalarTransitionBehaviorConfig=n,e.isScalarStaticBehaviorConfig=r,e.isScalarBehaviorConfig=function(t){return n(t)||r(t)}},75206:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNumberScriptBehaviorValue=void 0;var r=n(9347),i=n(64324),o=n(47702),a=n(81019),s=o.NumberUtils.lerp,u=i.ArrayUtils.last,c=i.ArrayUtils.first;e.getNumberScriptBehaviorValue=function(t,e){var n=t.script;if(e===r.START_SCRIPT_TIME)return c(n).value;if(e===r.END_SCRIPT_TIME)return u(n).value;for(var i=t.lastValueIndex;i=n[i-1].time&&e=n[i-1].time&&eo.END_SCRIPT_TIME})))throw new Error("\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442 0 \u0434\u043e 100");var e=i.ArrayUtils.first(t.script);e.time!==o.START_SCRIPT_TIME&&t.script.push({time:o.START_SCRIPT_TIME,value:e.value});var n=i.ArrayUtils.last(t.script);return n.time!==o.END_SCRIPT_TIME&&t.script.push({time:o.END_SCRIPT_TIME,value:n.value}),{script:t.script.map((function(t){return{value:t.value,time:t.time/o.END_SCRIPT_TIME}})).sort((function(t,e){return t.time-e.time})),lastValueIndex:1,isInterpolate:void 0===t.isInterpolate||!0===t.isInterpolate,type:r.BaseBehaviorType.Script}},e.getProgressBetweenScriptItems=function(t,e,n){return(t-e)/(n-e||1)}},22478:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isScriptBehaviorConfig=void 0,e.isScriptBehaviorConfig=function(t){return"script"in t}},62149:function(t,e,n){"use strict";var r=n(31529);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=n[i-1].time&&e1){var n=this.pseudoRandom.generateIntegerNumber(1,e.length-1);this.pointCache.x=this.pseudoRandom.generateFloatNumber(e[n-1].x,e[n].x),this.pointCache.y=this.pseudoRandom.generateFloatNumber(e[n-1].y,e[n].y)}else this.pointCache.x=0,this.pointCache.y=0}}]),t}();e.ShapePointGenerator=h},22526:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSpawnPolygonalShape=e.isSpawnTorusShape=e.isSpawnRectangleShape=e.isSpawnPointShape=void 0;var r=n(55397);e.isSpawnPointShape=function(t){return t.type===r.SpawnShapeType.Point},e.isSpawnRectangleShape=function(t){return t.type===r.SpawnShapeType.Rectangle},e.isSpawnTorusShape=function(t){return t.type===r.SpawnShapeType.Torus},e.isSpawnPolygonalShape=function(t){return t.type===r.SpawnShapeType.Chain}},55397:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.SpawnShapeType=void 0,function(t){t.Point="Point",t.Rectangle="Rectangle",t.Torus="Torus",t.Chain="Chain"}(n||(e.SpawnShapeType=n={}))},96279:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.globalWindow=void 0,e.globalWindow=globalThis.window||null},61211:function(t,e,n){"use strict";e.Yh=e.ze=e.Vo=void 0;var r=n(25214);Object.defineProperty(e,"Vo",{enumerable:!0,get:function(){return r.ParticleEmitter}});var i=n(41026);var o=n(16493);var a=n(4291);var s=n(37647);Object.defineProperty(e,"ze",{enumerable:!0,get:function(){return s.noUseParticle}});var u=n(22478);var c=n(6534);var l=n(73263);var f=n(32473);var h=n(29610);var d=n(43896);var p=n(7972);var v=n(11193);var y=n(45794);var m=n(89589);var g=n(55397);Object.defineProperty(e,"Yh",{enumerable:!0,get:function(){return g.SpawnShapeType}});var b=n(22526);var w=n(26228);var S=n(57269);var _=n(9347)},41026:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRangeValue=void 0,e.isRangeValue=function(t){return"number"!==typeof t&&("min"in t&&"max"in t)}},64324:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayUtils=void 0;var o=function(){function t(){r(this,t)}return i(t,null,[{key:"last",value:function(t){return t[t.length-1]}},{key:"first",value:function(t){return t[0]}},{key:"range",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t>e?Array.from({length:(t-e)/Math.abs(n)+1},(function(e,r){return t-r*Math.abs(n)})):Array.from({length:(e-t)/Math.abs(n)+1},(function(e,r){return t+r*Math.abs(n)}))}},{key:"clone",value:function(t){return t.slice()}}]),t}();e.ArrayUtils=o},41035:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(31529);Object.defineProperty(e,"__esModule",{value:!0}),e.EventEmitter=void 0;var a=function(){function t(){r(this,t),o(this,"events",new Map)}return i(t,[{key:"on",value:function(t,e){this.events.has(t)||this.events.set(t,[]),this.events.get(t).push(e)}},{key:"off",value:function(t,e){var n=this.events.get(t);n&&this.events.set(t,n.filter((function(t){return t!==e})))}},{key:"emit",value:function(t,e){var n=this.events.get(t);n&&n.forEach((function(t){return t(e)}))}}]),t}();e.EventEmitter=a},47702:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.NumberUtils=void 0;var o=function(){function t(){r(this,t)}return i(t,null,[{key:"clamp",value:function(t,e,n){return Math.min(Math.max(n,t),e)}},{key:"inRange",value:function(t,e,n){return n>=t&&n<=e}},{key:"calcPercentage",value:function(e,n){return t.clamp(0,100,e/Math.max(n,1)*100)}},{key:"lerp",value:function(t,e,n){return(1-n)*t+n*e}},{key:"hexToRgb",value:function(t){var e=t.replace(/^#/,""),n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:255&n}}},{key:"rgbToHex",value:function(t,e,n){return"#"+((1<<24)+(t<<16)+(e<<8)+n>>0).toString(16).slice(1).toUpperCase()}},{key:"lerpColor",value:function(e,n,r){var i=t.hexToRgb(e),o=t.hexToRgb(n),a=t.lerp(i.r,o.r,r),s=t.lerp(i.g,o.g,r),u=t.lerp(i.b,o.b,r);return t.rgbToHex(a,s,u)}},{key:"degreesToRadians",value:function(e){return t.normalizedDegrees(e)*Math.PI/180}},{key:"radiansToDegrees",value:function(e){return t.normalizedDegrees(e*(180/Math.PI))}},{key:"roundWith2Precision",value:function(t){return Math.round(100*(t+Number.EPSILON))/100}},{key:"getDecimalPart",value:function(t){if(Number.isInteger(t))return 0;var e=t.toString().split(".")[1];return Number(e)}},{key:"getOrderedMinMax",value:function(t,e){return t>e?[e,t]:[t,e]}},{key:"normalizedDegrees",value:function(t){return(t%360+360)%360}}]),t}();e.NumberUtils=o},3498:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=n(31529);Object.defineProperty(e,"__esModule",{value:!0}),e.Ticker=e.STANDARD_DELTA_MS=void 0;var a=n(96279);e.STANDARD_DELTA_MS=1e3/60;var s=function(){function t(e){r(this,t),o(this,"lastTime",void 0),o(this,"isStarted",void 0),o(this,"deltaBetweenFrames",void 0),o(this,"callback",void 0),o(this,"rafId",void 0),this.lastTime=null,this.isStarted=!1,this.deltaBetweenFrames=0,this.callback=e,this.rafId=-1}return i(t,[{key:"FPS",get:function(){return this.isWrongDeltaBetweenFrames()?0:1/this.deltaBetweenFrames*1e3}},{key:"deltaMS",get:function(){return this.deltaBetweenFrames}},{key:"elapsedDelta",get:function(){return this.isWrongDeltaBetweenFrames()?0:this.deltaBetweenFrames/e.STANDARD_DELTA_MS}},{key:"started",get:function(){return this.isStarted}},{key:"setCallback",value:function(t){this.callback=t}},{key:"start",value:function(){var t=this;if(!this.isStarted){this.isStarted=!0;this.requestAnimationFrame((function e(){t.isStarted&&(t.deltaBetweenFrames=t.getDeltaBetweenFrames(),t.isWrongDeltaBetweenFrames()||t.callback(t.elapsedDelta,t.deltaBetweenFrames),t.requestAnimationFrame(e))}))}}},{key:"stop",value:function(){var t;this.isStarted&&(null===(t=a.globalWindow)||void 0===t||t.cancelAnimationFrame(this.rafId),this.lastTime=null,this.isStarted=!1,this.deltaBetweenFrames=0)}},{key:"getDeltaBetweenFrames",value:function(){if(null===a.globalWindow)return 0;if(!this.started)return 0;if(null===this.lastTime)return this.lastTime=a.globalWindow.performance.now(),0;var t=a.globalWindow.performance.now();if(void 0===t)return 0;var e=t-this.lastTime;return this.lastTime=t,e}},{key:"isWrongDeltaBetweenFrames",value:function(){return this.deltaBetweenFrames<=0}},{key:"requestAnimationFrame",value:function(t){var e;this.rafId=(null===(e=a.globalWindow)||void 0===e?void 0:e.requestAnimationFrame(t))||-1}}]),t}();e.Ticker=s},92007:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.Vector2Utils=void 0;var o=n(47702),a=function(){function t(){r(this,t)}return i(t,null,[{key:"distance",value:function(e,n){return Math.sqrt(t.squaredDistance(e,n))}},{key:"squaredDistance",value:function(t,e){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)}},{key:"add",value:function(t,e){return{x:t.x+e.x,y:t.y+e.y}}},{key:"subtract",value:function(t,e){return{x:t.x-e.x,y:t.y-e.y}}},{key:"angleInDegreesToPoint",value:function(e){return t.angleInRadToPoint(o.NumberUtils.degreesToRadians(e))}},{key:"angleInRadToPoint",value:function(t){return{x:Math.cos(t),y:Math.sin(t)}}},{key:"rotate",value:function(t,e){var n=Math.sin(e),r=Math.cos(e);return{x:t.x*r-t.y*n,y:t.x*n+t.y*r}}},{key:"pointToAngleInDegrees",value:function(t){var e=Math.atan2(t.y,t.x)*(180/Math.PI);return e<0&&(e+=360),e}}]),t}();e.Vector2Utils=a},54643:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cloneDeep=void 0,e.cloneDeep=function t(e){if(null===e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map((function(e){return t(e)}));var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}},57269:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EASING_FUNCTIONS=void 0;var n=Math.pow,r=Math.sqrt,i=Math.sin,o=Math.cos,a=Math.PI,s=1.70158,u=1.525*s,c=s+1,l=2*a/3,f=2*a/4.5,h=function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375};e.EASING_FUNCTIONS={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-n(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-n(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-n(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-n(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-n(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-n(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-n(-2*t+2,5)/2},easeInSine:function(t){return 1-o(t*a/2)},easeOutSine:function(t){return i(t*a/2)},easeInOutSine:function(t){return-(o(a*t)-1)/2},easeInExpo:function(t){return 0===t?0:n(2,10*t-10)},easeOutExpo:function(t){return 1===t?1:1-n(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:t<.5?n(2,20*t-10)/2:(2-n(2,-20*t+10))/2},easeInCirc:function(t){return 1-r(1-n(t,2))},easeOutCirc:function(t){return r(1-n(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-r(1-n(2*t,2)))/2:(r(1-n(-2*t+2,2))+1)/2},easeInBack:function(t){return c*t*t*t-s*t*t},easeOutBack:function(t){return 1+c*n(t-1,3)+s*n(t-1,2)},easeInOutBack:function(t){return t<.5?n(2*t,2)*(7.189819*t-u)/2:(n(2*t-2,2)*((u+1)*(2*t-2)+u)+2)/2},easeInElastic:function(t){return 0===t?0:1===t?1:-n(2,10*t-10)*i((10*t-10.75)*l)},easeOutElastic:function(t){return 0===t?0:1===t?1:n(2,-10*t)*i((10*t-.75)*l)+1},easeInOutElastic:function(t){return 0===t?0:1===t?1:t<.5?-n(2,20*t-10)*i((20*t-11.125)*f)/2:n(2,-20*t+10)*i((20*t-11.125)*f)/2+1},easeInBounce:function(t){return 1-h(1-t)},easeOutBounce:h,easeInOutBounce:function(t){return t<.5?(1-h(1-2*t))/2:(1+h(2*t-1))/2}}},26228:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.EasingName=void 0,function(t){t.linear="linear",t.easeInQuad="easeInQuad",t.easeOutQuad="easeOutQuad",t.easeInOutQuad="easeInOutQuad",t.easeInCubic="easeInCubic",t.easeOutCubic="easeOutCubic",t.easeInOutCubic="easeInOutCubic",t.easeInQuart="easeInQuart",t.easeOutQuart="easeOutQuart",t.easeInOutQuart="easeInOutQuart",t.easeInQuint="easeInQuint",t.easeOutQuint="easeOutQuint",t.easeInOutQuint="easeInOutQuint",t.easeInSine="easeInSine",t.easeOutSine="easeOutSine",t.easeInOutSine="easeInOutSine",t.easeInExpo="easeInExpo",t.easeOutExpo="easeOutExpo",t.easeInOutExpo="easeInOutExpo",t.easeInCirc="easeInCirc",t.easeOutCirc="easeOutCirc",t.easeInOutCirc="easeInOutCirc",t.easeInBack="easeInBack",t.easeOutBack="easeOutBack",t.easeInOutBack="easeInOutBack",t.easeInElastic="easeInElastic",t.easeOutElastic="easeOutElastic",t.easeInOutElastic="easeInOutElastic",t.easeInBounce="easeInBounce",t.easeOutBounce="easeOutBounce",t.easeInOutBounce="easeInOutBounce"}(n||(e.EasingName=n={}))},79190:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMultiplierValue=void 0;var r=n(41026),i=n(88570);e.getMultiplierValue=function(t){return(0,r.isRangeValue)(t)?i.realRandom.generateFloatNumber(t.min,t.max):t}},87497:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=void 0;var n=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],r=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(n).join("|"),"g");e.parsePath=function(t){var e=t.match(r);if(null===e)throw new Error("Path string is not valid function");for(var i=e.length-1;i>=0;--i)n.indexOf(e[i])>=0&&(e[i]="Math.".concat(e[i]));return t=e.join(""),new Function("x","return ".concat(t,";"))}},29126:function(t,e,n){"use strict";var r=n(27024),i=n(21136),o=n(12050),a=n(53118),s=n(77897),u=n(37914),c=n(68525),l=n(31529);function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.PseudoRandom=void 0;var h=n(47702),d=function(t){s(n,t);var e=f(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i(this,n),r=e.call(this),l(a(r),"prevValue",void 0),l(a(r),"callsCounter",void 0),l(a(r),"randomSeed",void 0),r.init(t,o),r}return o(n,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.reset(),this.randomSeed=Math.abs(Math.trunc(t)),this.callsCounter=e,this.prevValue=this.randomSeed,this.initByCallsCounter()}},{key:"setRandomSeed",value:function(t){this.randomSeed=t,this.reset()}},{key:"setCallsCounter",value:function(t){this.reset(),this.callsCounter=t,this.initByCallsCounter()}},{key:"reset",value:function(){this.callsCounter=0,this.prevValue=this.randomSeed}},{key:"getCallsCounter",value:function(){return this.callsCounter}},{key:"generateIntegerNumber",value:function(t,e){var n=h.NumberUtils.getOrderedMinMax(t,e),i=r(n,2),o=i[0],a=i[1];return Math.floor(this.generateFloatNumber(o,a))}},{key:"generateFloatNumber",value:function(t,e){var n=h.NumberUtils.getOrderedMinMax(t,e),i=r(n,2),o=i[0],a=i[1];return o>=0&&o<1&&a>=0&&a<1?this.random()/2147483646*(a-o)+o:this.random()/2147483646*(a-o+1)+o}},{key:"random",value:function(){return this.prevValue=16807*this.prevValue%2147483647,this.callsCounter++,this.prevValue}},{key:"initByCallsCounter",value:function(){for(var t=0;t3&&void 0!==arguments[3])||arguments[3];return o.ArrayUtils.range(0,t-1).map((function(){return i?r.generateIntegerNumber(e,n):r.generateFloatNumber(e,n)}))}},{key:"getRandomArrayIndex",value:function(t){return this.generateIntegerNumber(0,t.length-1)}},{key:"generateRandomHexColor",value:function(){return"#".concat(Math.floor(16777215*this.generateFloatNumber(0,1)).toString(16).padEnd(6,"0"))}},{key:"shuffle",value:function(t){for(var e=o.ArrayUtils.clone(t),n=e.length-1;n>0;n--){var r=this.generateIntegerNumber(0,n),i=[e[r],e[n]];e[n]=i[0],e[r]=i[1]}return e}}]),t}();e.AbstractRandom=a},88570:function(t,e,n){"use strict";var r=n(27024),i=n(21136),o=n(12050),a=n(77897),s=n(37914),u=n(68525);function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.realRandom=e.RealRandom=void 0;var l=n(47702),f=function(t){a(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return o(n,[{key:"generateIntegerNumber",value:function(t,e){var n=l.NumberUtils.getOrderedMinMax(t,e),i=r(n,2),o=i[0],a=i[1];return Math.floor(this.generateFloatNumber(o,a))}},{key:"generateFloatNumber",value:function(t,e){var n=l.NumberUtils.getOrderedMinMax(t,e),i=r(n,2),o=i[0],a=i[1];return o>=0&&o<1&&a>=0&&a<1?Math.random()*(a-o)+o:Math.random()*(a-o+1)+o}}]),n}(n(13025).AbstractRandom);e.RealRandom=f,e.realRandom=new f},24234:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN=e.INVALID_SESSION_ERROR_CODE=e.SSO_CLIENT_API_OPTIONS=e.SSO_API_OPTIONS=e.PROJECT_API_OPTIONS=e.PROJECT_USER_AUTH_OPTIONS=void 0,e.PROJECT_USER_AUTH_OPTIONS={query:{authTokenQueryName:"auth_token",completeUriQueryName:"complete_uri",postCompleteRedirectUriQueryName:"post_complete_redirect_uri"},pages:{projectPostLoginPage:"/"}},e.PROJECT_API_OPTIONS={userInfoUrl:"/v1/users/info",logoutUrl:"/v1/auth/logout",loginUrl:"/v1/auth/login",cookies:{authStatusCookieName:"spec_auth_status"}},e.SSO_API_OPTIONS={pingUrl:"/auth/ping",logoutUrl:"/auth/logout"},e.SSO_CLIENT_API_OPTIONS={validateUrl:"/validate",completeUrl:"/complete"},e.INVALID_SESSION_ERROR_CODE="B4001",e.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN=["session_state","state","auth"]},63853:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(24234),e),i(n(52856),e),i(n(86178),e),i(n(24529),e),i(n(93350),e),i(n(5009),e),i(n(54376),e),i(n(50634),e),i(n(59481),e),i(n(1381),e),i(n(35922),e),i(n(26342),e),i(n(76122),e),i(n(8009),e),i(n(13463),e),i(n(9479),e),i(n(77732),e),i(n(75781),e),i(n(35271),e),i(n(34195),e),i(n(88034),e),i(n(6481),e),i(n(93464),e)},26342:function(t,e,n){"use strict";var r=n(27024),i=n(50391),o=n(21136),a=n(12050);function s(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=t.forceLogin,n=void 0!==e&&e;return c(this,void 0,void 0,i.mark((function t(){var e,r,o,a,s;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.notifySubscribers({status:l.ProjectUserAuthStatus.Loading,error:void 0,data:void 0}),t.prev=1,!(e=this.getAuthTokenFromQuery())){t.next=15;break}return this.clearAuthTokenQueryParam(),t.prev=5,t.next=8,this.ssoClientApi.validate();case 8:t.next=15;break;case 10:if(t.prev=10,t.t0=t.catch(5),!this.isUnauthorizedError(t.t0)){t.next=15;break}return this.redirectToSsoClientLinkAuthPage(e),t.abrupt("return");case 15:return t.next=17,this.legacyAuthAdapter.prepareAuth();case 17:if(r=t.sent,!(a=n||this.needStartLogin())){t.next=24;break}return t.next=22,this.projectApi.login(r);case 22:o=t.sent,this.clearAuthQueryParams();case 24:if(!a&&!this.projectApi.hasAuthStatusCookie()){t.next=38;break}return t.prev=25,t.next=28,this.projectApi.userInfo();case 28:return s=t.sent,this.notifySubscribers({status:l.ProjectUserAuthStatus.LoggedIn,error:void 0,data:{userInfo:s,login:o}}),t.abrupt("return");case 33:return t.prev=33,t.t1=t.catch(25),this.isInvalidSessionError(t.t1)?this.notifySubscribers({status:l.ProjectUserAuthStatus.Guest,data:void 0,error:void 0}):this.notifySubscribers({status:l.ProjectUserAuthStatus.Error,data:void 0,error:t.t1}),t.abrupt("return");case 38:return this.notifySubscribers({status:l.ProjectUserAuthStatus.Guest,error:void 0,data:void 0}),t.abrupt("return");case 42:return t.prev=42,t.t2=t.catch(1),this.notifySubscribers({status:l.ProjectUserAuthStatus.Error,data:void 0,error:t.t2}),t.abrupt("return");case 46:case"end":return t.stop()}}),t,this,[[1,42],[5,10],[25,33]])})))}},{key:"redirectToSsoClientLinkAuthPage",value:function(t){var e=this.createSsoClientLinkAuthPageUrl();this.addThemeDefaultQuery(e),this.addAuthTokenQuery(e,t),this.addCompleteUriQuery(e),this.addPostCompleteRedirectUriQuery(e),this.window.location.href=e.toString()}},{key:"addQueryFromCurrentUrlExceptAuthToken",value:function(t){var e,n=this.options.query,i=s(new URL(this.window.location.href).searchParams);try{for(i.s();!(e=i.n()).done;){var o=r(e.value,2),a=o[0],u=o[1];a!==n.authTokenQueryName&&t.searchParams.append(a,u)}}catch(c){i.e(c)}finally{i.f()}}},{key:"addCompleteUriQuery",value:function(t){var e=this.options.query;t.searchParams.append(e.completeUriQueryName,this.window.location.origin+"/authorization/complete")}},{key:"addPostCompleteRedirectUriQuery",value:function(t){var e=this.options,n=e.query,r=e.pages,i=new URL(this.window.location.origin+r.projectPostLoginPage);i.searchParams.append("auth","true"),this.addQueryFromCurrentUrlExceptAuthToken(i),t.searchParams.append(n.postCompleteRedirectUriQueryName,i.toString())}},{key:"addThemeDefaultQuery",value:function(t){t.searchParams.append("theme","default")}},{key:"addAuthTokenQuery",value:function(t,e){var n=this.options.query;t.searchParams.append(n.authTokenQueryName,e)}},{key:"createSsoClientLinkAuthPageUrl",value:function(){return new URL(this.window.location.origin+"/authorization/authorize")}},{key:"notifySubscribers",value:function(t){this.subscribers.forEach((function(e){return e(t)}))}},{key:"needStartLogin",value:function(){return"true"===new URLSearchParams(this.window.location.search).get("auth")}},{key:"clearAuthQueryParams",value:function(){var t=new URL(this.window.location.href);d.QUERY_PARAMS_FOR_REPLACE_AFTER_LOGIN.forEach((function(e){t.searchParams.delete(e)})),this.window.history.replaceState(null,"",t.toString())}},{key:"clearAuthTokenQueryParam",value:function(){var t=new URL(this.window.location.href);t.searchParams.delete(this.options.query.authTokenQueryName),this.window.history.replaceState(null,"",t.toString())}},{key:"getAuthTokenFromQuery",value:function(){return new URLSearchParams(this.window.location.search).get(this.options.query.authTokenQueryName)}},{key:"isInvalidSessionError",value:function(t){return h.HttpErrorProject.isHttpErrorProject(t)&&[d.INVALID_SESSION_ERROR_CODE].includes(t.errorCode)}},{key:"isUnauthorizedError",value:function(t){return t instanceof h.HttpErrorBackend&&t.response.httpCode===f.HttpStatus.UNAUTHORIZED}}]),t}();e.ProjectUserAuth=p},76122:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectUserAuthStatus=void 0,function(t){t.Loading="Loading",t.LoggedIn="LoggedIn",t.Error="Error",t.Guest="Guest"}(e.ProjectUserAuthStatus||(e.ProjectUserAuthStatus={}))},8009:function(t,e,n){"use strict";var r=n(21136),i=n(12050),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectUserAuthCreator=void 0;var a=o(n(72342)),s=n(24234),u=n(6481),c=n(35922),l=n(26342),f=n(86178),h=n(54376),d=n(9479),p=n(13463),v=n(77732),y=n(75781),m=n(35271),g=n(88034),b=n(34212),w=function(){function t(){r(this,t)}return i(t,null,[{key:"create",value:function(e){var n=e.ssoApi,r=e.ssoClientApi,i=e.projectApi,o=e.srcOrigin,a=e.options,s=t.createSsoClientApi(r);return new l.ProjectUserAuth(t.buildOptions(a),window,t.createProjectApi(i),s,t.createSsoApi(n),t.createIframeEventManager(o),t.createLegacyAuthAdapter(s))}},{key:"createIframeEventManager",value:function(t){return new u.IframeEventManager({srcOrigin:t},window)}},{key:"createProjectApi",value:function(e){return e instanceof y.ProjectApiBase?e:new p.ProjectApi(t.createHttpClient(e),s.PROJECT_API_OPTIONS,document)}},{key:"createSsoClientApi",value:function(e){return e instanceof m.SsoClientApiBase?e:new d.SsoClientApi(t.createHttpClient(e),s.SSO_CLIENT_API_OPTIONS)}},{key:"createSsoApi",value:function(e){return e instanceof g.SsoApiBase?e:new v.SsoApi(t.createHttpClient(e),s.SSO_API_OPTIONS)}},{key:"createHttpClient",value:function(t){return new f.HttpClient(new c.AxiosHttpAdapter(a.default.create({baseURL:t})),new h.HttpRetry)}},{key:"createLegacyAuthAdapter",value:function(t){return new b.LegacyAuthAdapter(window,t)}},{key:"buildOptions",value:function(t){return{query:Object.assign(Object.assign({},s.PROJECT_USER_AUTH_OPTIONS.query),(null===t||void 0===t?void 0:t.query)||{}),pages:Object.assign(Object.assign({},s.PROJECT_USER_AUTH_OPTIONS.pages),(null===t||void 0===t?void 0:t.pages)||{})}}}]),t}();e.ProjectUserAuthCreator=w},34212:function(t,e,n){"use strict";var r=n(50391),i=n(21136),o=n(12050),a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyAuthAdapter=void 0;var s=function(){function t(e,n){i(this,t),this.window=e,this.ssoClientApi=n}return o(t,[{key:"prepareAuth",value:function(){return a(this,void 0,void 0,r.mark((function t(){var e,n,i,o,a,s;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=new URLSearchParams(this.window.location.search),n=e.get("code"),i=e.get("state"),o=e.get("session_state"),i&&o&&n){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,this.ssoClientApi.complete({state:i,session_state:o,code:n});case 8:return a=t.sent,(s=new URL(this.window.location.href)).searchParams.append("auth","true"),s.searchParams.delete("code"),this.window.history.replaceState(null,"",s.toString()),t.abrupt("return",a);case 14:case"end":return t.stop()}}),t,this)})))}}]),t}();e.LegacyAuthAdapter=s},96521:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IframeEvent=void 0,function(t){t.LoginCompleted="spec:project-user-auth:login-completed"}(e.IframeEvent||(e.IframeEvent={}))},6481:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.IframeEventManager=void 0;var o=n(96521),a=function(){function t(e,n){r(this,t),this.options=e,this.window=n}return i(t,[{key:"onReceiveMessageFromIframe",value:function(t){var e=this,n=function(n){e.isSameOrigin(n)&&e.isMessageByProjectUserAuthenticator(n)&&t({type:n.data.type})};return this.window.addEventListener("message",n),function(){return e.window.removeEventListener("message",n)}}},{key:"isLoginCompletedEvent",value:function(t){return Boolean(t.type===o.IframeEvent.LoginCompleted)}},{key:"isSameOrigin",value:function(t){return this.normalizeOrigin(t.origin)===this.normalizeOrigin(this.options.srcOrigin)}},{key:"isMessageByProjectUserAuthenticator",value:function(t){var e;return Boolean((null===(e=null===t||void 0===t?void 0:t.data)||void 0===e?void 0:e.type)&&Object.values(o.IframeEvent).includes(t.data.type))}},{key:"normalizeOrigin",value:function(t){return t.replace(/\/$/,"")}}]),t}();e.IframeEventManager=a},93464:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},13463:function(t,e,n){"use strict";var r=n(50391),i=n(21136),o=n(12050),a=n(77897),s=n(37914),u=n(68525);function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}var l=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectApi=void 0;var f=function(t){a(n,t);var e=c(n);function n(t,r,o){var a;return i(this,n),(a=e.call(this)).httpClient=t,a.options=r,a.document=o,a}return o(n,[{key:"hasAuthStatusCookie",value:function(){return this.document.cookie.includes(this.options.cookies.authStatusCookieName)}},{key:"logout",value:function(){return l(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpClient.post({url:this.options.logoutUrl});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"login",value:function(t){return l(this,void 0,void 0,r.mark((function e(){var n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.httpClient.post({url:this.options.loginUrl,body:t?{accessTokenSso:t}:void 0});case 2:return n=e.sent,e.abrupt("return",n.payload);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"userInfo",value:function(){return l(this,void 0,void 0,r.mark((function t(){var e;return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpClient.get({url:this.options.userInfoUrl});case 2:return e=t.sent,t.abrupt("return",e.payload);case 4:case"end":return t.stop()}}),t,this)})))}}]),n}(n(75781).ProjectApiBase);e.ProjectApi=f},75781:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.ProjectApiBase=void 0;e.ProjectApiBase=function t(){r(this,t)}},77732:function(t,e,n){"use strict";var r=n(50391),i=n(21136),o=n(12050),a=n(77897),s=n(37914),u=n(68525);function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}var l=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SsoApi=void 0;var f=function(t){a(n,t);var e=c(n);function n(t,r){var o;return i(this,n),(o=e.call(this)).httpClient=t,o.options=r,o}return o(n,[{key:"ping",value:function(){return l(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpClient.post({url:this.options.pingUrl,withCredentials:!0});case 2:case"end":return t.stop()}}),t,this)})))}},{key:"logout",value:function(){return l(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpClient.post({url:this.options.logoutUrl,withCredentials:!0});case 2:case"end":return t.stop()}}),t,this)})))}}]),n}(n(88034).SsoApiBase);e.SsoApi=f},88034:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.SsoApiBase=void 0;e.SsoApiBase=function t(){r(this,t)}},9479:function(t,e,n){"use strict";var r=n(50391),i=n(21136),o=n(12050),a=n(77897),s=n(37914),u=n(68525);function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}var l=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.SsoClientApi=void 0;var f=function(t){a(n,t);var e=c(n);function n(t,r){var o;return i(this,n),(o=e.call(this)).httpClient=t,o.options=r,o}return o(n,[{key:"validate",value:function(){return l(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpClient.get({url:this.options.validateUrl,withCredentials:!0});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"complete",value:function(t){return l(this,void 0,void 0,r.mark((function e(){var n,i;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.httpClient.get({url:this.options.completeUrl,withCredentials:!0,query:t});case 2:return n=e.sent,i=n.access_token,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})))}}]),n}(n(35271).SsoClientApiBase);e.SsoClientApi=f},35271:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.SsoClientApiBase=void 0;e.SsoClientApiBase=function t(){r(this,t)}},34195:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},86178:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=void 0;var o=function(){function t(e,n){r(this,t),this.httpAdapter=e,this.httpRetry=n}return i(t,[{key:"get",value:function(t){return this.withRetry(Object.assign({method:"GET"},t))}},{key:"post",value:function(t){return this.withRetry(Object.assign({method:"POST"},t))}},{key:"patch",value:function(t){return this.withRetry(Object.assign({method:"PATCH"},t))}},{key:"put",value:function(t){return this.withRetry(Object.assign({method:"PUT"},t))}},{key:"delete",value:function(t){return this.withRetry(Object.assign({method:"DELETE"},t))}},{key:"subscribe",value:function(t,e){return this.httpAdapter.subscribe(t,e)}},{key:"withRetry",value:function(t){var e=this;return this.httpRetry.retry({retryConfigData:t.retry,makeHttpRequestCallback:function(n){return e.httpAdapter.request(Object.assign(Object.assign({},t),{headers:Object.assign(Object.assign({},t.headers),n)}))},signal:t.signal})}}]),t}();e.HttpClient=o},24529:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},93350:function(t,e,n){"use strict";var r=n(12050),i=n(21136),o=n(77897),a=n(37914),s=n(68525),u=n(60821);function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.HttpErrorProject=e.HttpErrorBackend=e.HttpErrorNoResponse=e.HttpErrorUnknown=void 0;var l=function(t){o(n,t);var e=c(n);function n(t,r){var o;return i(this,n),(o=e.call(this,t)).error=r,o}return n}(u(Error));e.HttpErrorUnknown=l;var f=function(t){o(n,t);var e=c(n);function n(t,r){var o;return i(this,n),(o=e.call(this,t)).request=r,o}return n}(u(Error));e.HttpErrorNoResponse=f;var h=function(t){o(n,t);var e=c(n);function n(t,r){var o;return i(this,n),(o=e.call(this,t)).response=r,o}return r(n,null,[{key:"isHttpErrorBackend",value:function(t){return!!t&&(Object.prototype.hasOwnProperty.call(t,"response")&&Object.prototype.hasOwnProperty.call(t.response,"httpCode"))}}]),n}(u(Error));e.HttpErrorBackend=h;var d=function(t){o(n,t);var e=c(n);function n(t,r){var o;return i(this,n),(o=e.call(this,t)).httpCode=r.httpCode,o.errorCode=r.errorCode,o.errorPayload=r.errorPayload,o.errorMessage=r.errorMessage,o.timestamp=r.timestamp,o.requestId=r.requestId,o}return r(n,null,[{key:"isHttpErrorProject",value:function(t){return!!t&&["httpCode","errorCode","errorMessage","timestamp"].every((function(e){return Object.prototype.hasOwnProperty.call(t,e)}))}}]),n}(u(Error));e.HttpErrorProject=d},5009:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpStatus=void 0,function(t){t[t.CONTINUE=100]="CONTINUE",t[t.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",t[t.PROCESSING=102]="PROCESSING",t[t.EARLYHINTS=103]="EARLYHINTS",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.RESET_CONTENT=205]="RESET_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.AMBIGUOUS=300]="AMBIGUOUS",t[t.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",t[t.FOUND=302]="FOUND",t[t.SEE_OTHER=303]="SEE_OTHER",t[t.NOT_MODIFIED=304]="NOT_MODIFIED",t[t.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",t[t.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",t[t.URI_TOO_LONG=414]="URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",t[t.MISDIRECTED=421]="MISDIRECTED",t[t.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",t[t.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",t[t.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(e.HttpStatus||(e.HttpStatus={}))},59481:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_RETRY_CONFIG=e.RETRY_ABLE_HTTP_STATUSES=e.IDEMPOTENCY_HEADER_KEY=void 0;var r=n(5009);e.IDEMPOTENCY_HEADER_KEY="X-Idempotency-Key",e.RETRY_ABLE_HTTP_STATUSES=[r.HttpStatus.INTERNAL_SERVER_ERROR,r.HttpStatus.TOO_MANY_REQUESTS],e.DEFAULT_RETRY_CONFIG={timeBetweenRetryExponent:1.3,delayInMs:100,retryMaxLimit:3}},54376:function(t,e,n){"use strict";var r=n(50391),i=n(31529),o=n(21136),a=n(12050),s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpRetry=void 0;var u=n(93350),c=n(59481),l=n(52856),f=function(){function t(){o(this,t)}return a(t,[{key:"retry",value:function(e){var n=e.retryConfigData,o=e.makeHttpRequestCallback,a=e.onRetry,f=e.signal;return s(this,void 0,void 0,r.mark((function e(){var h,d,p;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=function(e,n){return s(this,void 0,void 0,r.mark((function s(){var h;return r.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!(e>0)){r.next=5;break}return h=t.calculateTimeToWait(e,n.delayInMs,n.timeBetweenRetryExponent),r.next=5,l.wait(h);case 5:return r.next=7,o(i({},c.IDEMPOTENCY_HEADER_KEY,d));case 7:return r.abrupt("return",r.sent);case 10:if(r.prev=10,r.t0=r.catch(0),!(null===f||void 0===f?void 0:f.aborted)){r.next=14;break}throw r.t0;case 14:if(!(eo.length-16&&(i.default.randomFillSync(o),a=0);return o.slice(a,a+=16)}();return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return s[t[e+0]]+s[t[e+1]]+s[t[e+2]]+s[t[e+3]]+"-"+s[t[e+4]]+s[t[e+5]]+"-"+s[t[e+6]]+s[t[e+7]]+"-"+s[t[e+8]]+s[t[e+9]]+"-"+s[t[e+10]]+s[t[e+11]]+s[t[e+12]]+s[t[e+13]]+s[t[e+14]]+s[t[e+15]]}(t)};var o=new Uint8Array(256),a=o.length;for(var s=[],u=0;u<256;++u)s.push((u+256).toString(16).slice(1))},54701:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wait=void 0,e.wait=function(t){return new Promise((function(e){return setTimeout(e,t)}))}},83840:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoaderType=e.RequestStatus=void 0,function(t){t.Loading="loading",t.Success="success",t.Error="error"}(e.RequestStatus||(e.RequestStatus={})),function(t){t.Remote="remote",t.Local="local"}(e.LoaderType||(e.LoaderType={}))},4412:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourcesLoaderContext=void 0;var r=n(51387);e.ResourcesLoaderContext=r.createContext({})},79611:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useResourcesLoaderContext=void 0;var r=n(51387),i=n(4412);e.useResourcesLoaderContext=function(){return r.useContext(i.ResourcesLoaderContext)}},9270:function(t,e,n){"use strict";var r=n(21136),i=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.Resources=void 0;var o=function(){function t(e){var n=e.data;r(this,t),this.data=n}return i(t,[{key:"getData",value:function(){return this.data}}]),t}();e.Resources=o},51564:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(68791),e),i(n(83840),e),i(n(9270),e),i(n(79611),e),i(n(16432),e),i(n(38729),e)},16432:function(t,e,n){"use strict";var r=n(50391),i=n(27024),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e},u=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.ResourcesLoader=void 0;var c=s(n(51387)),l=n(83840),f=n(4412);e.ResourcesLoader=function(t){var e=function(t){var e=c.useState((function(){return t.type===l.LoaderType.Local?{status:l.RequestStatus.Success,data:t.data,error:void 0}:{status:l.RequestStatus.Loading,data:void 0,error:void 0}})),n=i(e,2),o=n[0],a=n[1],s=function(e){"function"===typeof t.onLoad&&t.onLoad(e)};t.type===l.LoaderType.Local&&s(t.data);return c.useEffect((function(){t.type===l.LoaderType.Remote&&function(t){return u(this,void 0,void 0,r.mark((function e(){var n;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(t,"?t=").concat(Date.now()));case 2:return n=e.sent,e.next=5,n.json();case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))}(t.url).then((function(t){s(t),a({status:l.RequestStatus.Success,data:t,error:void 0})})).catch((function(t){console.log(t),a({status:l.RequestStatus.Error,error:t,data:void 0})}))}),[]),o}(t);if(e.status===l.RequestStatus.Success)return c.default.createElement(f.ResourcesLoaderContext.Provider,{value:e.data},t.children);if(t.type===l.LoaderType.Remote){if(t.loading&&e.status===l.RequestStatus.Loading)return t.loading;if(t.error&&e.status===l.RequestStatus.Error)return t.error}return null}},68791:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},38729:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createResourcesLoaderPropsRemote=e.createResourcesLoaderPropsLocal=void 0;var r=n(83840);e.createResourcesLoaderPropsLocal=function(t,e){return{type:r.LoaderType.Local,data:t,onLoad:e}},e.createResourcesLoaderPropsRemote=function(t,e){return{type:r.LoaderType.Remote,url:t,onLoad:e}}},34834:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultRedirectUri=e.SecretCodeStatus=void 0,function(t){t.Enabled="Enabled",t.Disabled="Disabled"}(e.SecretCodeStatus||(e.SecretCodeStatus={})),e.defaultRedirectUri="https://tbank.ru"},44532:function(t,e,n){"use strict";var r=n(27024),i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return o(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.SecretCodeChecker=void 0;var s=a(n(51387)),u=n(44629),c=n(34834);e.SecretCodeChecker=function(t){var e=s.useState(!1),n=r(e,2),i=n[0],o=n[1];return s.useEffect((function(){if(u.isSecretCodeEnabled(t)){var e=t.getSecretCodeParams(),n=e.deps,r=e.config;if(n.localStorage.getItem(r.key)===r.code)return u.replaceSecretCodeFromQueryString(r,n),o(!0);if(new URLSearchParams(n.window.location.search).get(r.key)===r.code)return u.saveSecretCodeToLocalStorage(r,n),u.replaceSecretCodeFromQueryString(r,n),o(!0);n.window.location.href=r.redirectUrl||c.defaultRedirectUri}}),[t]),u.isSecretCodeEnabled(t)?i?s.default.createElement(s.default.Fragment,null,t.children):null:s.default.createElement(s.default.Fragment,null,t.children)}},21994:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(44532),e),i(n(34834),e),i(n(36406),e),i(n(44629),e)},36406:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},44629:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSecretCodePropsDisabled=e.createSecretCodePropsEnabled=e.saveSecretCodeToLocalStorage=e.replaceSecretCodeFromQueryString=e.isSecretCodeEnabled=void 0;var r=n(34834);e.isSecretCodeEnabled=function(t){return t.status===r.SecretCodeStatus.Enabled},e.replaceSecretCodeFromQueryString=function(t,e){var n=e.window,r=e.shallowUrlReplace,i=new URL(n.location.href);i.searchParams.has(t.key)&&(i.searchParams.delete(t.key),r?r(i):n.history.replaceState(null,document.title,i.toString()))},e.saveSecretCodeToLocalStorage=function(t,e){e.localStorage.setItem(t.key,t.code)},e.createSecretCodePropsEnabled=function(t){return{status:r.SecretCodeStatus.Enabled,getSecretCodeParams:t}},e.createSecretCodePropsDisabled=function(){return{status:r.SecretCodeStatus.Disabled}}},44993:function(t,e){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.PAYLOAD_KEY=e.Severity=e.MASKED_PARAMS_SENTRY_LOGS=void 0,e.MASKED_PARAMS_SENTRY_LOGS=["token","sessionid","sessionId","state","session_state","code"],function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(n||(e.Severity=n={})),e.PAYLOAD_KEY="payload"},42203:function(t,e,n){"use strict";var r=n(31529),i=n(21136),o=n(12050);Object.defineProperty(e,"__esModule",{value:!0}),e.SentryBrowser=void 0;var a=n(96575),s=n(44993),u=function(){function t(e,n,o,a){var u=this;i(this,t),this.sentry=e,this.payloadFormatter=n,this.extrasFormatter=o,this.breadcrumbsFormatter=a,this.captureExceptionAsEvent=!0,this.captureException=function(t){var e=t.trackingId,n=t.error,i=t.message,o=t.payload,a=t.isMaskingDisabled,c=a?o:u.payloadFormatter.mask({payload:o,privateKeys:u.privateKeys}),l=n||new Error(i);return u.sentry.configureScope((function(t){var n;t.setLevel(s.Severity.Error),t.setExtras(u.getPreparedExtras((r(n={error:l,trackingId:e,message:i},u.getPayloadKey(),c),r(n,"isMaskingDisabled",a),n)))})),u.captureExceptionAsEvent?u.sentry.captureEvent({message:i}):u.sentry.captureException(l)},this.captureEvent=function(t){var e=t.trackingId,n=t.message,i=t.payload,o=t.isMaskingDisabled,a=o?i:u.payloadFormatter.mask({payload:i,privateKeys:u.privateKeys});return u.sentry.configureScope((function(t){var i;t.setLevel(s.Severity.Info),t.setExtras(u.getPreparedExtras((r(i={trackingId:e,message:n},u.getPayloadKey(),a),r(i,"isMaskingDisabled",o),i)))})),u.sentry.captureEvent({message:n})},this.captureExceptionAndThrowError=function(t,e){throw u.captureException({message:t,error:e}),e},this.createCaptureExceptionAndThrowError=function(t){return function(e){return u.captureExceptionAndThrowError(t,e)}}}return o(t,[{key:"init",value:function(t){var e=t.sentryOptions,n=t.privateKeys,r=void 0===n?s.MASKED_PARAMS_SENTRY_LOGS:n,i=t.captureExceptionAsEvent,o=void 0===i||i,a=t.formattersOptions;this.privateKeys=r,this.captureExceptionAsEvent=o,this.formattersOptions=a,this.sentry.init(Object.assign(Object.assign({},e),{beforeSend:this.beforeSendPrepare(),beforeBreadcrumb:this.beforeBreadcrumbPrepare()}))}},{key:"beforeSendPrepare",value:function(){var t=this;return function(e){var n;return(null===(n=e.extra)||void 0===n?void 0:n.isMaskingDisabled)?e:t.payloadFormatter.mask({payload:e,privateKeys:t.privateKeys})}}},{key:"beforeBreadcrumbPrepare",value:function(){var t=this;return function(e,n){var r,i,o,a,s,u,c,l,f,h=(null===(r=t.formattersOptions)||void 0===r?void 0:r.breadcrumbs)?t.breadcrumbsFormatter.format(e):e;if((null===(i=t.formattersOptions)||void 0===i?void 0:i.breadcrumbsResponse)&&"xhr"===e.category){var d={method:null===(a=null===(o=n.xhr)||void 0===o?void 0:o.__sentry_xhr__)||void 0===a?void 0:a.method,status_code:null===(u=null===(s=n.xhr)||void 0===s?void 0:s.__sentry_xhr__)||void 0===u?void 0:u.status_code,url:null===(l=null===(c=n.xhr)||void 0===c?void 0:c.__sentry_xhr__)||void 0===l?void 0:l.url,response:t.breadcrumbsFormatter.formatResponse(null===(f=n.xhr)||void 0===f?void 0:f.response)};return Object.assign(Object.assign({},h),{data:d})}return h}}},{key:"getPreparedExtras",value:function(t){var e;return(null===(e=this.formattersOptions)||void 0===e?void 0:e.extras)?this.extrasFormatter.format(t):t}},{key:"getPayloadKey",value:function(){var t,e=null===(t=this.formattersOptions)||void 0===t?void 0:t.payloadPostfix;return e?"".concat(s.PAYLOAD_KEY).concat(e[0].toUpperCase()).concat(e.substring(1)):s.PAYLOAD_KEY}}],[{key:"getRealOrFake",value:function(t){return t.sentryBrowser?t.sentryBrowser:new a.SentryBrowserFake}}]),t}();e.SentryBrowser=u},60568:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.SentryBrowserAbstract=void 0;e.SentryBrowserAbstract=function t(){r(this,t)}},96575:function(t,e,n){"use strict";var r=n(21136);Object.defineProperty(e,"__esModule",{value:!0}),e.SentryBrowserFake=void 0;e.SentryBrowserFake=function t(){r(this,t),this.init=function(t){console.error("SentryBrowser init not implemented")},this.captureException=function(t){return console.error("SentryBrowser captureException not implemented"),null},this.captureEvent=function(t){return console.error("SentryBrowser captureEvent not implemented"),null},this.captureExceptionAndThrowError=function(t,e){console.error("SentryBrowser captureExceptionAndThrowError not implemented")},this.createCaptureExceptionAndThrowError=function(t){console.error("SentryBrowser createCaptureExceptionAndThrowError not implemented")}}},5501:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeadScriptSentryBrowser=void 0;var i=r(n(51387));function o(t){var e=JSON.stringify(t);return"\n if (typeof window.sentryBrowser === 'undefined') {\n console.error('sentryBrowser \u043d\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d');\n } else if (typeof window.sentryBrowser.init !== 'function') {\n console.error('\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c sentryBrowser');\n } else {\n window.sentryBrowser.init(".concat(e,");\n }\n ")}e.HeadScriptSentryBrowser=function(t){var e=t.wrapper,n=t.appStaticUrl,r=t.sentryBrowserParams;return i.default.createElement(e,null,i.default.createElement("script",{src:"".concat(n,"/libs/sentry-browser/bundle.min.js"),crossOrigin:"anonymous"}),i.default.createElement("script",{dangerouslySetInnerHTML:{__html:o(r)}}))}},74645:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(5501),e),i(n(42203),e),i(n(60568),e),i(n(44993),e),i(n(71347),e)},71347:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},71856:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(2735),e),i(n(55450),e)},55450:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseLinkTemplate=void 0;var i=r(n(39926));e.parseLinkTemplate=function(t){var e=i.default.parse(t,{delimiter:";"});return{text:e.text,href:e.href}}},2735:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n0;this._trackingResolve(t),t.ready.then(this._readyResolve),t.extend(this._stateAcc),n&&this._listeners.change&&this._listeners.change.forEach((function(n){n(t.state,e._stateAcc)})),this._listeners=Object.create(null)},t.prototype.addPixels=function(t){return this.tracking?this.tracking.addPixels(t):this.trackingReady.then((function(e){return e.addPixels(t)}))},t.prototype.resolve=function(t){var e=this;return Promise.resolve(t).then((function(t){return e.setTracking(t),t}))},Object.defineProperty(t.prototype,"state",{get:function(){return this.tracking?this.tracking.state:this._stateAcc},enumerable:!1,configurable:!0}),t.prototype.callUtil=function(t){for(var e,n=[],i=1;i0){var p=((s-n)*c+(u-i)*l)/f;h*=p,d*=p}var v={x:n+h,y:i+d},y=h*h+d*d;return(0,r.isPointIntersectsCircle)(v,t)&&y<=f&&h*c+d*l>=0}},41244:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPointIntersectsCircle=void 0,e.isPointIntersectsCircle=function(t,e){if(0===e.radius)return!1;var n=e.x-t.x,r=e.y-t.y;return n*n+r*r<=e.radius*e.radius}},42221:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRectIntersectsCircle=void 0;var r=n(7116);e.isRectIntersectsCircle=function(t,e){var n=Math.abs(e.x-(t.x+t.width/2)),i=Math.abs(e.y-(t.y+t.height/2));return!(n>t.width/2+e.radius)&&(!(i>t.height/2+e.radius)&&(n<=t.width/2||(i<=t.height/2||(0,r.squaredDistance)(n,t.width/2,i,t.height/2)<=Math.pow(e.radius,2))))}},43308:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRectIntersectsRect=void 0,e.isRectIntersectsRect=function(t,e){return t.xe.x&&t.ye.y}},5789:function(t,e){"use strict";var n={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},r={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},i=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],o={CSS:{},springs:{}};function a(t,e,n){return Math.min(Math.max(t,e),n)}function s(t,e){return t.indexOf(e)>-1}function u(t,e){return t.apply(null,e)}var c={arr:function(t){return Array.isArray(t)},obj:function(t){return s(Object.prototype.toString.call(t),"Object")},pth:function(t){return c.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||c.svg(t)},str:function(t){return"string"===typeof t},fnc:function(t){return"function"===typeof t},und:function(t){return"undefined"===typeof t},nil:function(t){return c.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return c.hex(t)||c.rgb(t)||c.hsl(t)},key:function(t){return!n.hasOwnProperty(t)&&!r.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function l(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function f(t,e){var n=l(t),r=a(c.und(n[0])?1:n[0],.1,100),i=a(c.und(n[1])?100:n[1],.1,100),s=a(c.und(n[2])?10:n[2],.1,100),u=a(c.und(n[3])?0:n[3],.1,100),f=Math.sqrt(i/r),h=s/(2*Math.sqrt(i*r)),d=h<1?f*Math.sqrt(1-h*h):0,p=h<1?(h*f-u)/d:-u+f;function v(t){var n=e?e*t/1e3:t;return n=h<1?Math.exp(-n*h*f)*(1*Math.cos(d*n)+p*Math.sin(d*n)):(1+p*n)*Math.exp(-n*f),0===t||1===t?t:1-n}return e?v:function(){var e=o.springs[t];if(e)return e;for(var n=1/6,r=0,i=0;;)if(1===v(r+=n)){if(++i>=16)break}else i=0;var a=r*n*1e3;return o.springs[t]=a,a}}function h(t){return void 0===t&&(t=10),function(e){return Math.ceil(a(e,1e-6,1)*t)*(1/t)}}var d=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function r(t){return 3*t}function i(t,i,o){return((e(i,o)*t+n(i,o))*t+r(i))*t}function o(t,i,o){return 3*e(i,o)*t*t+2*n(i,o)*t+r(i)}return function(e,n,r,a){if(0<=e&&e<=1&&0<=r&&r<=1){var s=new Float32Array(11);if(e!==n||r!==a)for(var u=0;u<11;++u)s[u]=i(u*t,e,r);return function(t){return e===n&&r===a||0===t||1===t?t:i(c(t),n,a)}}function c(n){for(var a=0,u=1;10!==u&&s[u]<=n;++u)a+=t;--u;var c=a+(n-s[u])/(s[u+1]-s[u])*t,l=o(c,e,r);return l>=.001?function(t,e,n,r){for(var a=0;a<4;++a){var s=o(e,n,r);if(0===s)return e;e-=(i(e,n,r)-t)/s}return e}(n,c,e,r):0===l?c:function(t,e,n,r,o){var a,s,u=0;do{(a=i(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(a)>1e-7&&++u<10);return s}(n,a,a+t,e,r)}}}(),p=function(){var t={linear:function(){return function(t){return t}}},e={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var n=a(t,1,10),r=a(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}};return["Quad","Cubic","Quart","Quint","Expo"].forEach((function(t,n){e[t]=function(){return function(t){return Math.pow(t,n+2)}}})),Object.keys(e).forEach((function(n){var r=e[n];t["easeIn"+n]=r,t["easeOut"+n]=function(t,e){return function(n){return 1-r(t,e)(1-n)}},t["easeInOut"+n]=function(t,e){return function(n){return n<.5?r(t,e)(2*n)/2:1-r(t,e)(-2*n+2)/2}},t["easeOutIn"+n]=function(t,e){return function(n){return n<.5?(1-r(t,e)(1-2*n))/2:(r(t,e)(2*n-1)+1)/2}}})),t}();function v(t,e){if(c.fnc(t))return t;var n=t.split("(")[0],r=p[n],i=l(t);switch(n){case"spring":return f(t,e);case"cubicBezier":return u(d,i);case"steps":return u(h,i);default:return u(r,i)}}function y(t){try{return document.querySelectorAll(t)}catch(e){return}}function m(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==a)e=n=r=s;else{var l=s<.5?s*(1+a):s+a-s*a,f=2*s-l;e=c(f,l,o+1/3),n=c(f,l,o),r=c(f,l,o-1/3)}return"rgba("+255*e+","+255*n+","+255*r+","+u+")"}(t):void 0}function E(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function C(t,e){return c.fnc(t)?t(e.target,e.id,e.total):t}function A(t,e){return t.getAttribute(e)}function P(t,e,n){if(w([n,"deg","rad","turn"],E(e)))return e;var r=o.CSS[e+n];if(!c.und(r))return r;var i=document.createElement(t.tagName),a=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;a.appendChild(i),i.style.position="absolute",i.style.width=100+n;var s=100/i.offsetWidth;a.removeChild(i);var u=s*parseFloat(e);return o.CSS[e+n]=u,u}function T(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?P(t,i,n):i}}function O(t,e){return c.dom(t)&&!c.inp(t)&&(!c.nil(A(t,e))||c.svg(t)&&t[e])?"attribute":c.dom(t)&&w(i,e)?"transform":c.dom(t)&&"transform"!==e&&T(t,e)?"css":null!=t[e]?"object":void 0}function M(t){if(c.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;e=r.exec(n);)i.set(e[1],e[2]);return i}}function R(t,e,n,r){var i=s(e,"scale")?1:0+function(t){return s(t,"translate")||"perspective"===t?"px":s(t,"rotate")||s(t,"skew")?"deg":void 0}(e),o=M(t).get(e)||i;return n&&(n.transforms.list.set(e,o),n.transforms.last=e),r?P(t,o,r):o}function I(t,e,n,r){switch(O(t,e)){case"transform":return R(t,e,r,n);case"css":return T(t,e,n);case"attribute":return A(t,e);default:return t[e]||0}}function j(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=E(t)||0,i=parseFloat(e),o=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function B(t,e){if(c.col(t))return x(t);if(/\s/g.test(t))return t;var n=E(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function D(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function L(t){for(var e,n=t.points,r=0,i=0;i0&&(r+=D(e,o)),e=o}return r}function N(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*A(t,"r")}(t);case"rect":return function(t){return 2*A(t,"width")+2*A(t,"height")}(t);case"line":return function(t){return D({x:A(t,"x1"),y:A(t,"y1")},{x:A(t,"x2"),y:A(t,"y2")})}(t);case"polyline":return L(t);case"polygon":return function(t){var e=t.points;return L(t)+D(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function F(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;c.svg(e)&&c.svg(e.parentNode);)e=e.parentNode;return e}(t),i=r.getBoundingClientRect(),o=A(r,"viewBox"),a=i.width,s=i.height,u=n.viewBox||(o?o.split(" "):[0,0,a,s]);return{el:r,viewBox:u,x:u[0]/1,y:u[1]/1,w:a,h:s,vW:u[2],vH:u[3]}}function G(t,e,n){function r(n){void 0===n&&(n=0);var r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var i=F(t.el,t.svg),o=r(),a=r(-1),s=r(1),u=n?1:i.w/i.vW,c=n?1:i.h/i.vH;switch(t.property){case"x":return(o.x-i.x)*u;case"y":return(o.y-i.y)*c;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function U(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=B(c.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:c.str(t)||e?r.split(n):[]}}function V(t){return m(t?g(c.arr(t)?t.map(b):b(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function H(t){var e=V(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:M(t)}}}))}function W(t,e){var n=S(e);if(/^spring/.test(n.easing)&&(n.duration=f(n.easing)),c.arr(t)){var r=t.length;2===r&&!c.obj(t[0])?t={value:t}:c.fnc(e.duration)||(n.duration=e.duration/r)}var i=c.arr(t)?t:[t];return i.map((function(t,n){var r=c.obj(t)&&!c.pth(t)?t:{value:t};return c.und(r.delay)&&(r.delay=n?0:e.delay),c.und(r.endDelay)&&(r.endDelay=n===i.length-1?e.endDelay:0),r})).map((function(t){return k(t,n)}))}function z(t,e){var n=[],r=e.keyframes;for(var i in r&&(e=k(function(t){for(var e=m(g(t.map((function(t){return Object.keys(t)}))),(function(t){return c.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),n={},r=function(r){var i=e[r];n[i]=t.map((function(t){var e={};for(var n in t)c.key(n)?n==i&&(e.value=t[n]):e[n]=t[n];return e}))},i=0;i0?requestAnimationFrame(e):void 0}return"undefined"!==typeof document&&document.addEventListener("visibilitychange",(function(){et.suspendWhenDocumentHidden&&(tt()?t=cancelAnimationFrame(t):(Z.forEach((function(t){return t._onDocumentVisibility()})),$()))})),function(){t||tt()&&et.suspendWhenDocumentHidden||!(Z.length>0)||(t=requestAnimationFrame(e))}}();function tt(){return!!document&&document.hidden}function et(t){void 0===t&&(t={});var e,i=0,o=0,s=0,u=0,c=null;function l(t){var e=window.Promise&&new Promise((function(t){return c=t}));return t.finished=e,e}var f=function(t){var e=_(n,t),i=_(r,t),o=z(i,t),a=H(t.targets),s=X(a,o),u=J(s,i),c=Q;return Q++,k(e,{id:c,children:[],animatables:a,animations:s,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}(t);l(f);function h(){var t=f.direction;"alternate"!==t&&(f.direction="normal"!==t?"normal":"reverse"),f.reversed=!f.reversed,e.forEach((function(t){return t.reversed=f.reversed}))}function d(t){return f.reversed?f.duration-t:t}function p(){i=0,o=d(f.currentTime)*(1/et.speed)}function v(t,e){e&&e.seek(t-e.timelineOffset)}function y(t){for(var e=0,n=f.animations,r=n.length;e2||(w=Math.round(w*p)/p)),v.push(w)}var k=d.length;if(k){g=d[0];for(var x=0;x0&&(f.began=!0,g("begin")),!f.loopBegan&&f.currentTime>0&&(f.loopBegan=!0,g("loopBegin")),m<=r&&0!==f.currentTime&&y(0),(m>=p&&f.currentTime!==n||!n)&&y(n),m>r&&m=n&&(o=0,f.remaining&&!0!==f.remaining&&f.remaining--,f.remaining?(i=s,g("loopComplete"),f.loopBegan=!1,"alternate"===f.direction&&h()):(f.paused=!0,f.completed||(f.completed=!0,g("loopComplete"),g("complete"),!f.passThrough&&"Promise"in window&&(c(),l(f)))))}return f.reset=function(){var t=f.direction;f.passThrough=!1,f.currentTime=0,f.progress=0,f.paused=!0,f.began=!1,f.loopBegan=!1,f.changeBegan=!1,f.completed=!1,f.changeCompleted=!1,f.reversePlayback=!1,f.reversed="reverse"===t,f.remaining=f.loop,e=f.children;for(var n=u=e.length;n--;)f.children[n].reset();(f.reversed&&!0!==f.loop||"alternate"===t&&1===f.loop)&&f.remaining++,y(f.reversed?f.duration:0)},f._onDocumentVisibility=p,f.set=function(t,e){return K(t,e),f},f.tick=function(t){s=t,i||(i=s),b((s+(o-i))*et.speed)},f.seek=function(t){b(d(t))},f.pause=function(){f.paused=!0,p()},f.play=function(){f.paused&&(f.completed&&f.reset(),f.paused=!1,Z.push(f),p(),$())},f.reverse=function(){h(),f.completed=!f.reversed,p()},f.restart=function(){f.reset(),f.play()},f.remove=function(t){rt(V(t),f)},f.reset(),f.autoplay&&f.play(),f}function nt(t,e){for(var n=e.length;n--;)w(t,e[n].animatable.target)&&e.splice(n,1)}function rt(t,e){var n=e.animations,r=e.children;nt(t,n);for(var i=r.length;i--;){var o=r[i],a=o.animations;nt(t,a),a.length||o.children.length||r.splice(i,1)}n.length||r.length||e.pause()}et.version="3.2.1",et.speed=1,et.suspendWhenDocumentHidden=!0,et.running=Z,et.remove=function(t){for(var e=V(t),n=Z.length;n--;){rt(e,Z[n])}},et.get=I,et.set=K,et.convertPx=P,et.path=function(t,e){var n=c.str(t)?y(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:F(n),totalLength:N(n)*(r/100)}}},et.setDashoffset=function(t){var e=N(t);return t.setAttribute("stroke-dasharray",e),e},et.stagger=function(t,e){void 0===e&&(e={});var n=e.direction||"normal",r=e.easing?v(e.easing):null,i=e.grid,o=e.axis,a=e.from||0,s="first"===a,u="center"===a,l="last"===a,f=c.arr(t),h=f?parseFloat(t[0]):parseFloat(t),d=f?parseFloat(t[1]):0,p=E(f?t[1]:t)||0,y=e.start||0+(f?h:0),m=[],g=0;return function(t,e,c){if(s&&(a=0),u&&(a=(c-1)/2),l&&(a=c-1),!m.length){for(var v=0;v-1&&Z.splice(o,1);for(var u=0;u=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){c.headers[t]=i.merge(s)})),t.exports=c},40707:function(t){t.exports={version:"0.26.0"}},94792:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},67681:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},15563:function(t,e,n){"use strict";var r=n(40707).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={};i.transitional=function(t,e,n){function i(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(i(r," has been removed"+(e?" in "+e:"")));return e&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!==typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),i=r.length;i-- >0;){var o=r[i],a=e[o];if(a){var s=t[o],u=void 0===s||a(s,o,t);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},20891:function(t,e,n){"use strict";var r=n(94792),i=Object.prototype.toString;function o(t){return Array.isArray(t)}function a(t){return"undefined"===typeof t}function s(t){return"[object ArrayBuffer]"===i.call(t)}function u(t){return null!==t&&"object"===typeof t}function c(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function f(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n2&&void 0!==arguments[2]?arguments[2]:t.notag,i=this.map.get(n.__s);i?i.set(r,e):this.map.set(n.__s,(new Map).set(r,e))}},{key:"find",value:function(e,n,r){var i=this.map.get(e.__s);if(void 0!==i){if(r){var o=i.get(r);if(o)return o}if(n)for(var a=0,s=n.length;a0&&void 0!==arguments[0]?arguments[0]:new Map,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];c(this,t),this.instances=e,this.vaults=n}return o(t,[{key:"split",value:function(){return new t(this.instances,this.vaults.slice())}}]),t}(),L=function(t){"use strict";a(n,t);var e=l(n);function n(){var t;return c(this,n),(t=e.call(this)).snapshot=null,t}return o(n,[{key:"extend",value:function(t){return this.vault.parent=null===t?null:t.vault,this}},{key:"clone",value:function(){var t=new n;return t.vault=this.vault.clone(),t}},{key:"get",value:function(t,e){return this.resolveToken(t,e)}},{key:"resolveTokens",value:function(t,e,n,r){var i=this;return t.map((function(t){return i.resolveToken(t,n,r,e.split())}))}},{key:"resolveToken",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new D,i=this.vault.get(t,r,e,n);if(i)return this.resolveBinding(i,r);if(!t.__o)throw new Error("No matching bindings found for '".concat(t.__d,"' token."))}},{key:"resolveBinding",value:function(t,e){var r=this;return function(t){return t.type===h.Instance}(t)?function(t){return t.scope===p.Singleton}(t)?this.resolveCache(t,e,(function(){return t.cache}),(function(e){t.cache=e})):function(t){return t.scope===p.Container}(t)?this.resolveCache(t,e,(function(){return t.cache.get(r.vault)}),(function(e){t.cache.set(r.vault,e)})):function(t){return t.scope===p.Resolution}(t)?this.resolveCache(t,e,(function(){return e.instances.get(t)}),(function(n){e.instances.set(t,n)})):this.createInstance(t.impl,e):function(t){return t.type===h.Factory}(t)?function(){for(var i=arguments.length,o=new Array(i),a=0;a1?e-1:0),r=1;r1?e-1:0),r=1;r-1?i(n):n}},92165:function(t,e,n){"use strict";var r=n(73192),i=n(33196),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(h){c=null}t.exports=function(t){var e=s(r,a,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(r,o,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},33196:function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(P){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=n(84318)(),h=Object.getPrototypeOf||function(t){return t.__proto__},d={},p="undefined"===typeof Uint8Array?r:h(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=h(i.prototype))}return v[e]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(73192),b=n(42840),w=g.call(Function.call,Array.prototype.concat),S=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),k=g.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,C=function(t){var e=k(t,0,1),n=k(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(t,x,(function(t,e,n,i){r[r.length]=n?_(i,E,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(b(m,r)&&(r="%"+(n=m[r])[0]+"%"),b(v,r)){var o=v[r];if(o===d&&(o=y(r)),"undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=C(t),r=n.length>0?n[0]:"",o=A("%"+r+"%",e),s=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],S(n,w([0,1],f)));for(var h=1,d=!0;h=n.length){var g=u(c,p);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[p]}else d=b(c,p),c=c[p];d&&!l&&(v[s]=c)}}return c}},84318:function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(78726);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},78726:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},17092:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e80*r){o=s=t[0],a=u=t[1];for(var b=r;bs&&(s=f),h>u&&(u=h);p=0!==(p=Math.max(s-o,u-a))?32767/p:0}return i(m,g,r,o,a,p,0),g}function n(t,e,n,r,i){var o,a;if(i===C(t,e,n,r)>0)for(o=e;o=e;o-=r)a=k(o,t[o],t[o+1],a);return a&&m(a,a.next)&&(x(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!m(r,r.next)&&0!==y(r.prev,r,r.next))r=r.next;else{if(x(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function i(t,e,n,c,l,f,d){if(t){!d&&f&&function(t,e,n,r){var i=t;do{0===i.z&&(i.z=h(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,u,c=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e0||u>0&&r;)0!==s&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(a>1)}(i)}(t,c,l,f);for(var p,v,y=t;t.prev!==t.next;)if(p=t.prev,v=t.next,f?a(t,c,l,f):o(t))e.push(p.i/n|0),e.push(t.i/n|0),e.push(v.i/n|0),x(t),t=v.next,y=v.next;else if((t=v)===y){d?1===d?i(t=s(r(t),e,n),e,n,c,l,f,2):2===d&&u(t,e,n,c,l,f):i(r(t),e,n,c,l,f,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(y(e,n,r)>=0)return!1;for(var i=e.x,o=n.x,a=r.x,s=e.y,u=n.y,c=r.y,l=io?i>a?i:a:o>a?o:a,d=s>u?s>c?s:c:u>c?u:c,v=r.next;v!==e;){if(v.x>=l&&v.x<=h&&v.y>=f&&v.y<=d&&p(i,s,o,u,a,c,v.x,v.y)&&y(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function a(t,e,n,r){var i=t.prev,o=t,a=t.next;if(y(i,o,a)>=0)return!1;for(var s=i.x,u=o.x,c=a.x,l=i.y,f=o.y,d=a.y,v=su?s>c?s:c:u>c?u:c,b=l>f?l>d?l:d:f>d?f:d,w=h(v,m,e,n,r),S=h(g,b,e,n,r),_=t.prevZ,k=t.nextZ;_&&_.z>=w&&k&&k.z<=S;){if(_.x>=v&&_.x<=g&&_.y>=m&&_.y<=b&&_!==i&&_!==a&&p(s,l,u,f,c,d,_.x,_.y)&&y(_.prev,_,_.next)>=0)return!1;if(_=_.prevZ,k.x>=v&&k.x<=g&&k.y>=m&&k.y<=b&&k!==i&&k!==a&&p(s,l,u,f,c,d,k.x,k.y)&&y(k.prev,k,k.next)>=0)return!1;k=k.nextZ}for(;_&&_.z>=w;){if(_.x>=v&&_.x<=g&&_.y>=m&&_.y<=b&&_!==i&&_!==a&&p(s,l,u,f,c,d,_.x,_.y)&&y(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;k&&k.z<=S;){if(k.x>=v&&k.x<=g&&k.y>=m&&k.y<=b&&k!==i&&k!==a&&p(s,l,u,f,c,d,k.x,k.y)&&y(k.prev,k,k.next)>=0)return!1;k=k.nextZ}return!0}function s(t,e,n){var i=t;do{var o=i.prev,a=i.next.next;!m(o,a)&&g(o,i,i.next,a)&&S(o,a)&&S(a,o)&&(e.push(o.i/n|0),e.push(i.i/n|0),e.push(a.i/n|0),x(i),x(i.next),i=t=a),i=i.next}while(i!==t);return r(i)}function u(t,e,n,o,a,s){var u=t;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&v(u,c)){var l=_(u,c);return u=r(u,u.next),l=r(l,l.next),i(u,e,n,o,a,s,0),void i(l,e,n,o,a,s,0)}c=c.next}u=u.next}while(u!==t)}function c(t,e){return t.x-e.x}function l(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a&&(a=s,n=r.x=r.x&&r.x>=l&&i!==r.x&&p(on.x||r.x===n.x&&f(n,r)))&&(n=r,d=u)),r=r.next}while(r!==c);return n}(t,e);if(!n)return e;var i=_(n,t);return r(i,i.next),r(n,n.next)}function f(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function h(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*i|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*i|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x=(t-a)*(o-s)&&(t-a)*(r-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(i-a)*(r-s)}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&g(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(S(t,e)&&S(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!==n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||m(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function m(t,e){return t.x===e.x&&t.y===e.y}function g(t,e,n,r){var i=w(y(t,e,n)),o=w(y(t,e,r)),a=w(y(n,r,t)),s=w(y(n,r,e));return i!==o&&a!==s||(!(0!==i||!b(t,n,e))||(!(0!==o||!b(t,r,e))||(!(0!==a||!b(n,t,r))||!(0!==s||!b(n,e,r)))))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function w(t){return t>0?1:t<0?-1:0}function S(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function _(t,e){var n=new E(t.i,t.x,t.y),r=new E(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function k(t,e,n,r){var i=new E(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function x(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function E(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function C(t,e,n,r){for(var i=0,o=e,a=n-r;o0&&(r+=t[i-1].length,n.holes.push(r))}return n}},75022:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],s]:t._events[u].push(s):(t._events[u]=s,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i=0&&(e.hash=t.substr(n),t=t.substr(0,n));var r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}},91017:function(t,e,n){var r;!function(){"use strict";var i=function(){this.init()};i.prototype={init:function(){var t=this||o;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!==typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var e=this||o;if(t=parseFloat(t),e.ctx||d(),"undefined"!==typeof t&&t>=0&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,o.ctx.currentTime);for(var n=0;n=0;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&"undefined"!==typeof t.ctx.close&&(t.ctx.close(),t.ctx=null,d()),t},codecs:function(t){return(this||o)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||o;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if("undefined"!==typeof Audio)try{"undefined"===typeof(new Audio).oncanplaythrough&&(t._canPlayEvent="canplay")}catch(e){t.noAudio=!0}else t.noAudio=!0;try{(new Audio).muted&&(t.noAudio=!0)}catch(e){}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||o,e=null;try{e="undefined"!==typeof Audio?new Audio:null}catch(l){return t}if(!e||"function"!==typeof e.canPlayType)return t;var n=e.canPlayType("audio/mpeg;").replace(/^no$/,""),r=t._navigator?t._navigator.userAgent:"",i=r.match(/OPR\/(\d+)/g),a=i&&parseInt(i[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),u=r.match(/Version\/(.*?) /),c=s&&u&&parseInt(u[1],10)<15;return t._codecs={mp3:!(a||!n&&!e.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(e.canPlayType('audio/wav; codecs="1"')||e.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(e.canPlayType("audio/x-m4b;")||e.canPlayType("audio/m4b;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(e.canPlayType("audio/x-mp4;")||e.canPlayType("audio/mp4;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(c||!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(c||!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(e.canPlayType("audio/x-flac;")||e.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||o;if(!t._audioUnlocked&&t.ctx){t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var e=function e(n){for(;t._html5AudioPool.length0?s._seek:n._sprite[t][0]/1e3),l=Math.max(0,(n._sprite[t][0]+n._sprite[t][1])/1e3-c),f=1e3*l/Math.abs(s._rate),h=n._sprite[t][0]/1e3,d=(n._sprite[t][0]+n._sprite[t][1])/1e3;s._sprite=t,s._ended=!1;var p=function(){s._paused=!1,s._seek=c,s._start=h,s._stop=d,s._loop=!(!s._loop&&!n._sprite[t][2])};if(!(c>=d)){var v=s._node;if(n._webAudio){var y=function(){n._playLock=!1,p(),n._refreshBuffer(s);var t=s._muted||n._muted?0:s._volume;v.gain.setValueAtTime(t,o.ctx.currentTime),s._playStart=o.ctx.currentTime,"undefined"===typeof v.bufferSource.start?s._loop?v.bufferSource.noteGrainOn(0,c,86400):v.bufferSource.noteGrainOn(0,c,l):s._loop?v.bufferSource.start(0,c,86400):v.bufferSource.start(0,c,l),f!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),f)),e||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===o.state&&"interrupted"!==o.ctx.state?y():(n._playLock=!0,n.once("resume",y),n._clearTimer(s._id))}else{var m=function(){v.currentTime=c,v.muted=s._muted||n._muted||o._muted||v.muted,v.volume=s._volume*o.volume(),v.playbackRate=s._rate;try{var r=v.play();if(r&&"undefined"!==typeof Promise&&(r instanceof Promise||"function"===typeof r.then)?(n._playLock=!0,p(),r.then((function(){n._playLock=!1,v._unlocked=!0,e?n._loadQueue():n._emit("play",s._id)})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):e||(n._playLock=!1,p(),n._emit("play",s._id)),v.playbackRate=s._rate,v.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==t||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),f):(n._endTimers[s._id]=function(){n._ended(s),v.removeEventListener("ended",n._endTimers[s._id],!1)},v.addEventListener("ended",n._endTimers[s._id],!1))}catch(i){n._emit("playerror",s._id,i)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===v.src&&(v.src=n._src,v.load());var g=window&&window.ejecta||!v.readyState&&o._navigator.isCocoonJS;if(v.readyState>=3||g)m();else{n._playLock=!0,n._state="loading";v.addEventListener(o._canPlayEvent,(function t(){n._state="loaded",m(),v.removeEventListener(o._canPlayEvent,t,!1)}),!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var n=e._getSoundIds(t),r=0;r=0?e=parseInt(i[0],10):t=parseFloat(i[0])}else i.length>=2&&(t=parseFloat(i[0]),e=parseInt(i[1],10));if(!("undefined"!==typeof t&&t>=0&&t<=1))return(n=e?r._soundById(e):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;"undefined"===typeof e&&(r._volume=t),e=r._getSoundIds(e);for(var u=0;u0?r/c:r),f=Date.now();t._fadeTo=n,t._interval=setInterval((function(){var i=(Date.now()-f)/r;f=Date.now(),s+=u*i,s=Math.round(100*s)/100,s=u<0?Math.max(n,s):Math.min(n,s),a._webAudio?t._volume=s:a.volume(s,t._id,!0),o&&(a._volume=s),(ne&&s>=n)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,a.volume(n,t._id),a._emit("fade",t._id))}),l)},_stopFade:function(t){var e=this,n=e._soundById(t);return n&&n._interval&&(e._webAudio&&n._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(n._interval),n._interval=null,e.volume(n._fadeTo,t),n._fadeTo=null,e._emit("fade",t)),e},loop:function(){var t,e,n,r=this,i=arguments;if(0===i.length)return r._loop;if(1===i.length){if("boolean"!==typeof i[0])return!!(n=r._soundById(parseInt(i[0],10)))&&n._loop;t=i[0],r._loop=t}else 2===i.length&&(t=i[0],e=parseInt(i[1],10));for(var o=r._getSoundIds(e),a=0;a=0?e=parseInt(i[0],10):t=parseFloat(i[0])}else 2===i.length&&(t=parseFloat(i[0]),e=parseInt(i[1],10));if("number"!==typeof t)return(n=r._soundById(e))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;"undefined"===typeof e&&(r._rate=t),e=r._getSoundIds(e);for(var u=0;u=0?e=parseInt(r[0],10):n._sounds.length&&(e=n._sounds[0]._id,t=parseFloat(r[0]))}else 2===r.length&&(t=parseFloat(r[0]),e=parseInt(r[1],10));if("undefined"===typeof e)return 0;if("number"===typeof t&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var s=n._soundById(e);if(s){if(!("number"===typeof t&&t>=0)){if(n._webAudio){var u=n.playing(e)?o.ctx.currentTime-s._playStart:0,c=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(c+u*Math.abs(s._rate))}return s._node.currentTime}var l=n.playing(e);l&&n.pause(e,!0),s._seek=t,s._ended=!1,n._clearTimer(e),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=t);var f=function(){l&&n.play(e,!0),n._emit("seek",e)};if(l&&!n._webAudio){var h=function t(){n._playLock?setTimeout(t,0):f()};setTimeout(h,0)}else f()}return n},playing:function(t){var e=this;if("number"===typeof t){var n=e._soundById(t);return!!n&&!n._paused}for(var r=0;r=0&&o._howls.splice(r,1);var i=!0;for(n=0;n=0){i=!1;break}return u&&i&&delete u[t._src],o.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,e,n,r){var i=this["_on"+t];return"function"===typeof e&&i.push(r?{id:n,fn:e,once:r}:{id:n,fn:e}),this},off:function(t,e,n){var r=this,i=r["_on"+t],o=0;if("number"===typeof e&&(n=e,e=null),e||n)for(o=0;o=0;o--)i[o].id&&i[o].id!==e&&"load"!==t||(setTimeout(function(t){t.call(this,e,n)}.bind(r,i[o].fn),0),i[o].once&&r.off(t,i[o].fn,i[o].id));return r._loadQueue(t),r},_loadQueue:function(t){var e=this;if(e._queue.length>0){var n=e._queue[0];n.event===t&&(e._queue.shift(),e._loadQueue()),t||n.action()}return e},_ended:function(t){var e=this,n=t._sprite;if(!e._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime=0;r--){if(n<=e)return;t._sounds[r]._ended&&(t._webAudio&&t._sounds[r]._node&&t._sounds[r]._node.disconnect(0),t._sounds.splice(r,1),n--)}}},_getSoundIds:function(t){if("undefined"===typeof t){for(var e=[],n=0;n=0;if(!t.bufferSource)return this;if(o._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),e))try{t.bufferSource.buffer=o._scratchBuffer}catch(n){}return t.bufferSource=null,this},_clearSound:function(t){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(t){this._parent=t,this.init()};s.prototype={init:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++o._counter,e._sounds.push(t),t.create(),t},create:function(){var t=this,e=t._parent,n=o._muted||t._muted||t._parent._muted?0:t._volume;return e._webAudio?(t._node="undefined"===typeof o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),t._node.gain.setValueAtTime(n,o.ctx.currentTime),t._node.paused=!0,t._node.connect(o.masterGain)):o.noAudio||(t._node=o._obtainHtml5Audio(),t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(o._canPlayEvent,t._loadFn,!1),t._endFn=t._endListener.bind(t),t._node.addEventListener("ended",t._endFn,!1),t._node.src=e._src,t._node.preload=!0===e._preload?"auto":e._preload,t._node.volume=n*o.volume(),t._node.load()),t},reset:function(){var t=this,e=t._parent;return t._muted=e._muted,t._loop=e._loop,t._volume=e._volume,t._rate=e._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++o._counter,t},_errorListener:function(){var t=this;t._parent._emit("loaderror",t._id,t._node.error?t._node.error.code:0),t._node.removeEventListener("error",t._errorFn,!1)},_loadListener:function(){var t=this,e=t._parent;e._duration=Math.ceil(10*t._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),t._node.removeEventListener(o._canPlayEvent,t._loadFn,!1)},_endListener:function(){var t=this,e=t._parent;e._duration===1/0&&(e._duration=Math.ceil(10*t._node.duration)/10,e._sprite.__default[1]===1/0&&(e._sprite.__default[1]=1e3*e._duration),e._ended(t)),t._node.removeEventListener("ended",t._endFn,!1)}};var u={},c=function(t){var e=t._src;if(u[e])return t._duration=u[e].duration,void h(t);if(/^data:[^;]+;base64,/.test(e)){for(var n=atob(e.split(",")[1]),r=new Uint8Array(n.length),i=0;i0?(u[e._src]=t,h(e,t)):n()};"undefined"!==typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(t).then(r).catch(n):o.ctx.decodeAudioData(t,r,n)},h=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},d=function(){if(o.usingWebAudio){try{"undefined"!==typeof AudioContext?o.ctx=new AudioContext:"undefined"!==typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(i){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),e=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=e?parseInt(e[1],10):null;if(t&&n&&n<9){var r=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());o._navigator&&!r&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain="undefined"===typeof o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:o._volume,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};void 0===(r=function(){return{Howler:o,Howl:a}}.apply(e,[]))||(t.exports=r),e.Howler=o,e.Howl=a,"undefined"!==typeof n.g?(n.g.HowlerGlobal=i,n.g.Howler=o,n.g.Howl=a,n.g.Sound=s):"undefined"!==typeof window&&(window.HowlerGlobal=i,window.Howler=o,window.Howl=a,window.Sound=s)}(),function(){"use strict";var t;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var e=this;if(!e.ctx||!e.ctx.listener)return e;for(var n=e._howls.length-1;n>=0;n--)e._howls[n].stereo(t);return e},HowlerGlobal.prototype.pos=function(t,e,n){var r=this;return r.ctx&&r.ctx.listener?(e="number"!==typeof e?r._pos[1]:e,n="number"!==typeof n?r._pos[2]:n,"number"!==typeof t?r._pos:(r._pos=[t,e,n],"undefined"!==typeof r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(t,e,n,r,i,o){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return e="number"!==typeof e?s[1]:e,n="number"!==typeof n?s[2]:n,r="number"!==typeof r?s[3]:r,i="number"!==typeof i?s[4]:i,o="number"!==typeof o?s[5]:o,"number"!==typeof t?s:(a._orientation=[t,e,n,r,i,o],"undefined"!==typeof a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(t,e,n,r,i,o),a)},Howl.prototype.init=(t=Howl.prototype.init,function(e){var n=this;return n._orientation=e.orientation||[1,0,0],n._stereo=e.stereo||null,n._pos=e.pos||null,n._pannerAttr={coneInnerAngle:"undefined"!==typeof e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:"undefined"!==typeof e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:"undefined"!==typeof e.coneOuterGain?e.coneOuterGain:0,distanceModel:"undefined"!==typeof e.distanceModel?e.distanceModel:"inverse",maxDistance:"undefined"!==typeof e.maxDistance?e.maxDistance:1e4,panningModel:"undefined"!==typeof e.panningModel?e.panningModel:"HRTF",refDistance:"undefined"!==typeof e.refDistance?e.refDistance:1,rolloffFactor:"undefined"!==typeof e.rolloffFactor?e.rolloffFactor:1},n._onstereo=e.onstereo?[{fn:e.onstereo}]:[],n._onpos=e.onpos?[{fn:e.onpos}]:[],n._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}),Howl.prototype.stereo=function(t,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(t,n)}}),r;var i="undefined"===typeof Howler.ctx.createStereoPanner?"spatial":"stereo";if("undefined"===typeof n){if("number"!==typeof t)return r._stereo;r._stereo=t,r._pos=[t,0,0]}for(var o=r._getSoundIds(n),a=0;a=e||n<0||f&&t-c>=o}function S(){var t=p();if(w(t))return _(t);s=setTimeout(S,function(t){var n=e-(t-u);return f?d(n,o-(t-c)):n}(t))}function _(t){return s=void 0,m&&r?g(t):(r=i=void 0,a)}function k(){var t=p(),n=w(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return b(u);if(f)return s=setTimeout(S,e),g(u)}return void 0===s&&(s=setTimeout(S,e)),a}return e=y(e)||0,v(n)&&(l=!!n.leading,o=(f="maxWait"in n)?h(y(n.maxWait)||0,e):o,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},k.flush=function(){return void 0===s?a:_(p())},k}},4228:function(t,e,n){var r="Expected a function",i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),h=Object.prototype.toString,d=Math.max,p=Math.min,v=function(){return f.Date.now()};function y(t,e,n){var i,o,a,s,u,c,l=0,f=!1,h=!1,y=!0;if("function"!=typeof t)throw new TypeError(r);function b(e){var n=i,r=o;return i=o=void 0,l=e,s=t.apply(r,n)}function w(t){return l=t,u=setTimeout(_,e),f?b(t):s}function S(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-l>=a}function _(){var t=v();if(S(t))return k(t);u=setTimeout(_,function(t){var n=e-(t-c);return h?p(n,a-(t-l)):n}(t))}function k(t){return u=void 0,y&&i?b(t):(i=o=void 0,s)}function x(){var t=v(),n=S(t);if(i=arguments,o=this,c=t,n){if(void 0===u)return w(c);if(h)return u=setTimeout(_,e),b(c)}return void 0===u&&(u=setTimeout(_,e)),s}return e=g(e)||0,m(n)&&(f=!!n.leading,a=(h="maxWait"in n)?d(g(n.maxWait)||0,e):a,y="trailing"in n?!!n.trailing:y),x.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},x.flush=function(){return void 0===u?s:k(v())},x}function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==h.call(t)}(t))return NaN;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=a.test(t);return n||s.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError(r);return m(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),y(t,e,{leading:i,maxWait:e,trailing:o})}},70718:function(t,e,n){"use strict";var r,i;t.exports=(null===(r=n.g.process)||void 0===r?void 0:r.env)&&"object"===typeof(null===(i=n.g.process)||void 0===i?void 0:i.env)?n.g.process:n(58631)},58763:function(t,e,n){var r=n(45303);function i(e,n,o){return"undefined"!==typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}},t.exports.default=t.exports,t.exports.__esModule=!0),i(e,n,o||e)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},45303:function(t,e,n){var r=n(68525);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0},35713:function(t){!function(){var e={991:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=u(t),a=o[0],s=o[1],c=new i(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[l++]=255&e);1===s&&(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);return c},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=16383,s=0,u=r-i;su?u:s+a));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]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)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){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function l(t,e,n){for(var r,i=[],o=e;oa)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(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){"string"===typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|v(t,e),r=s(n),i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return h(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(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return u.from(r,e,n);var i=function(t){if(u.isBuffer(t)){var e=0|p(t.length),n=s(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!==typeof t.length||H(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return u.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),s(t<0?0:0|p(t))}function h(t){for(var e=t.length<0?0:0|p(t.length),n=s(e),r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function v(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(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);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(i)return r?-1:F(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,n){var 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 M(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(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),H(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=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:b(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):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){var o,a=1,s=t.length,u=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;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return P(r)}e.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{var 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}}(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,n){return function(t,e,n){return l(t),t<=0?s(t):void 0!==e?"string"===typeof n?s(t).fill(e,n):s(t).fill(e):s(t)}(t,e,n)},u.allocUnsafe=function(t){return f(t)},u.allocUnsafeSlow=function(t){return f(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),V(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);in&&(t+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,n,r,i){if(V(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.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;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var 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");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return S(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function B(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 D(t,e,n,r,o){return e=+e,n>>>=0,o||B(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return e=+e,n>>>=0,o||B(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var 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>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||j(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r)||j(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||j(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||j(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||j(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||j(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},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||j(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},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||j(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||j(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||j(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||j(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},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||j(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},u.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(!u.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=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=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return i},u.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&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var i=t.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(t=i)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+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 G(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function H(t){return t!==t}var W=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]=t[n]+t[i];return e}()},759:function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*v}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}r.ab="//";var i=r(293);t.exports=i}()},48831:function(t,e,n){var r=n(35713).Buffer,i=n(70718),o=n(50391),a=n(21136),s=n(77897),u=n(37914),c=n(68525);function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}!function(){var e={8557:function(t,e,n){var r=e;r.bignum=n(6884),r.define=n(9636).define,r.base=n(2207),r.constants=n(3503),r.decoders=n(5133),r.encoders=n(9245)},9636:function(t,e,n){var r=n(8557),i=n(7526);function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){var e;try{e=n(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return i(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},o.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(r.decoders[t])),this.decoders[t]},o.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},o.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r.encoders[t])),this.encoders[t]},o.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},8483:function(t,e,n){var r=n(7526),i=n(2207).Reporter,o=n(4300).Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof s||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"===typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"===typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(a,i),e.C=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.R=s,s.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(t,e),e+=n.length})):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},2207:function(t,e,n){var r=e;r.Reporter=n(2148).b,r.DecoderBuffer=n(8483).C,r.EncoderBuffer=n(8483).R,r.Node=n(211)},211:function(t,e,n){var r=n(2207).Reporter,i=n(2207).EncoderBuffer,o=n(2207).DecoderBuffer,a=n(9036),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(t,e){var n={};this._baseState=n,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var t=this._baseState,e={};l.forEach((function(n){e[n]=t[n]}));var n=new this.constructor(e.parent);return n._baseState=e,n},c.prototype._wrap=function(){var t=this._baseState;u.forEach((function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},c.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(t){var e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);var r=t[n];e[r]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){c.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){c.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}})),c.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},c.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},c.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},c.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},c.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},c.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},c.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(a=this._peekTag(t,u,n.any),t.isError(a))return a}else{var c=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(c)}}if(n.obj&&a&&(r=t.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(t,n.explicit);if(t.isError(l))return l;t=l}var f=t.offset;if(null===n.use&&null===n.choice){if(n.any)c=t.save();var h=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(h))return h;n.any?i=t.raw(c):t=h}if(e&&e.track&&null!==n.tag&&e.track(t.path(),f,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),i=n.any?i:null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var d=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(d,e)}}return n.obj&&a&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,i),i},c.prototype._decodeGeneric=function(t,e,n){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},c.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},c.prototype._decodeChoice=function(t,e){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(o){var a=t.save(),s=n.choice[o];try{var u=s._decode(t,e);if(t.isError(u))return!1;r={type:o,value:u},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?r:t.error("Choice not matched")},c.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},c.prototype._encode=function(t,e,n){var r=this._baseState;if(null===r.default||r.default!==t){var i=this._encodeValue(t,e,n);if(void 0!==i&&!this._skipDefault(i,e,n))return i}},c.prototype._encodeValue=function(t,e,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);var o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,n)._encode(t,e),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");var r=e.enterKey(n._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");var i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(n){var r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)}),u))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===c?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,s,l,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(t,e){var n=this._baseState,r=n.choice[t.type];return r||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},c.prototype._encodePrimitive=function(t,e){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},c.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},c.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},2148:function(t,e,n){var r=n(7526);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.b=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){var e,n=this._reporterState,r=t instanceof o;if(e=r?t:new o(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},8880:function(t,e,n){var r=n(3503);e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r._reverse(e.tag)},3503:function(t,e,n){var r=e;r._reverse=function(t){var e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);var r=t[n];e[r]=n})),e},r.der=n(8880)},359:function(t,e,n){var r=n(7526),i=n(8557),o=i.base,a=i.bignum,s=i.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){o.Node.call(this,"der",t)}function l(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var r=s.tagClass[n>>6],i=0===(32&n);if(31===(31&n)){var o=n;for(n=0;128===(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0===(128&r))return r;var i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(var o=0;o=31?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=s.tagClassByName[n||"universal"]<<6)}t.exports=u,u.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(c,a.Node),c.prototype._encodeComposite=function(t,e,n,r){var o,a=f(t,e,n,this.reporter);if(r.length<128)return(o=new i(2))[0]=a,o[1]=r.length,this._createEncoderBuffer([o,r]);for(var s=1,u=r.length;u>=256;u>>=8)s++;(o=new i(2+s))[0]=a,o[1]=128|s;u=1+s;for(var c=r.length;c>0;u--,c>>=8)o[u]=255&c;return this._createEncoderBuffer([o,r])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=new i(2*t.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(r=0;r=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(r=t.length-1;r>=0;r--){a=t[r];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(t,e){var n,r=new Date(t);return"gentime"===e?n=[l(r.getFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[l(r.getFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"===typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!==typeof t&&!i.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=new i(n)}if(i.isBuffer(t)){var r=t.length;0===t.length&&r++;var o=new i(r);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);r=1;for(var a=t;a>=256;a>>=8)r++;for(a=(o=new Array(r)).length-1;a>=0;a--)o[a]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=l[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?v+n:c[h-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,c=new t(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,v=d>>>13,y=0|a[2],m=8191&y,g=y>>>13,b=0|a[3],w=8191&b,S=b>>>13,_=0|a[4],k=8191&_,x=_>>>13,E=0|a[5],C=8191&E,A=E>>>13,P=0|a[6],T=8191&P,O=P>>>13,M=0|a[7],R=8191&M,I=M>>>13,j=0|a[8],B=8191&j,D=j>>>13,L=0|a[9],N=8191&L,F=L>>>13,G=0|s[0],U=8191&G,V=G>>>13,H=0|s[1],W=8191&H,z=H>>>13,q=0|s[2],Y=8191&q,K=q>>>13,X=0|s[3],J=8191&X,Q=X>>>13,Z=0|s[4],$=8191&Z,tt=Z>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(c+(r=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))<<13)|0;c=((o=Math.imul(h,V))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,V))+Math.imul(v,U)|0,o=Math.imul(v,V);var mt=(c+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,z)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(m,U),i=(i=Math.imul(m,V))+Math.imul(g,U)|0,o=Math.imul(g,V),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,z)|0;var gt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,V))+Math.imul(S,U)|0,o=Math.imul(S,V),r=r+Math.imul(m,W)|0,i=(i=i+Math.imul(m,z)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,z)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,K)|0;var bt=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(k,U),i=(i=Math.imul(k,V))+Math.imul(x,U)|0,o=Math.imul(x,V),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,z)|0,r=r+Math.imul(m,Y)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,K)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0;var wt=(c+(r=r+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(A,U)|0,o=Math.imul(A,V),r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,z)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,z)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Q)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0;var St=(c+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;c=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(O,U)|0,o=Math.imul(O,V),r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,z)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,z)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Q)|0,r=r+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0;var _t=(c+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,V))+Math.imul(I,U)|0,o=Math.imul(I,V),r=r+Math.imul(T,W)|0,i=(i=i+Math.imul(T,z)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,z)|0,r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(m,nt)|0,i=(i=i+Math.imul(m,rt)|0)+Math.imul(g,nt)|0,o=o+Math.imul(g,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var kt=(c+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(D,U)|0,o=Math.imul(D,V),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,z)|0,r=r+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Q)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var xt=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,V))+Math.imul(F,U)|0,o=Math.imul(F,V),r=r+Math.imul(B,W)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,z)|0,r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,K)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Q)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(g,ut)|0,o=o+Math.imul(g,ct)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Et=(c+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(N,W),i=(i=Math.imul(N,z))+Math.imul(F,W)|0,o=Math.imul(F,z),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(m,ft)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(g,ft)|0,o=o+Math.imul(g,ht)|0;var Ct=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(N,Y),i=(i=Math.imul(N,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),r=r+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Q)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(T,nt)|0,i=(i=i+Math.imul(T,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,ct)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var At=(c+(r=r+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,vt)|0)+Math.imul(g,pt)|0))<<13)|0;c=((o=o+Math.imul(g,vt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(N,J),i=(i=Math.imul(N,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var Pt=(c+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(N,$),i=(i=Math.imul(N,tt))+Math.imul(F,$)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(T,ut)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var Tt=(c+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(x,pt)|0))<<13)|0;c=((o=o+Math.imul(x,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(N,nt),i=(i=Math.imul(N,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,r=r+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,ht)|0;var Ot=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(N,ot),i=(i=Math.imul(N,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),r=r+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Mt=(c+(r=r+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,vt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,ut),i=(i=Math.imul(N,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(D,ft)|0,o=o+Math.imul(D,ht)|0;var Rt=(c+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(I,pt)|0))<<13)|0;c=((o=o+Math.imul(I,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(N,ft),i=(i=Math.imul(N,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var It=(c+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var jt=(c+(r=Math.imul(N,pt))|0)+((8191&(i=(i=Math.imul(N,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=yt,u[1]=mt,u[2]=gt,u[3]=bt,u[4]=wt,u[5]=St,u[6]=_t,u[7]=kt,u[8]=xt,u[9]=Et,u[10]=Ct,u[11]=At,u[12]=Pt,u[13]=Tt,u[14]=Ot,u[15]=Mt,u[16]=Rt,u[17]=It,u[18]=jt,0!==c&&(u[19]=c,n.length++),n};function p(t,e,n){return(new v).mulp(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(d=h),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?d(this,t,e):r<63?h(this,t,e):r<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e),n},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},v.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new _(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function m(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},m.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},m.prototype.split=function(t,e){t.iushrn(this.n,0,e)},m.prototype.imulK=function(t){return t.imul(this.k)},i(g,m),g.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},g.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new b;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return y[t]=e,e},_.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,y=0;0!==v.cmp(s);y++)v=v.redSqr();r(y=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var f=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,_),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},6069:function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n>>24]^l[p>>>16&255]^f[v>>>8&255]^h[255&y]^e[m++],a=c[p>>>24]^l[v>>>16&255]^f[y>>>8&255]^h[255&d]^e[m++],s=c[v>>>24]^l[y>>>16&255]^f[d>>>8&255]^h[255&p]^e[m++],u=c[y>>>24]^l[d>>>16&255]^f[p>>>8&255]^h[255&v]^e[m++],d=o,p=a,v=s,y=u;return o=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[v>>>8&255]<<8|r[255&y])^e[m++],a=(r[p>>>24]<<24|r[v>>>16&255]<<16|r[y>>>8&255]<<8|r[255&d])^e[m++],s=(r[v>>>24]<<24|r[y>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^e[m++],u=(r[y>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&v])^e[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var l=t[a],f=t[l],h=t[f],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*f^257*l^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=l^t[t[t[h^l]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],l=0;l>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},5112:function(t,e,n){var r=n(9725),i=n(3118).Buffer,o=n(8826),a=n(7526),s=n(7731),u=n(5653),c=n(4630);function l(t,e,n){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var r=new s(n),o=e.length,a=o%16;r.update(e),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var u=8*o,l=i.alloc(8);l.writeUIntBE(u,0,8),r.update(l),t._finID=r.state;var f=i.from(t._finID);return c(f),f}function f(t,e,n,a){o.call(this);var u=i.alloc(4,0);this._cipher=new r.AES(e);var c=this._cipher.encryptBlock(u);this._ghash=new s(c),n=l(this,n,c),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=o[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=c(e,!1,n.key,n.iv);return h(t,r.key,r.iv)},e.createDecipheriv=h},9811:function(t,e,n){var r=n(8963),i=n(5112),o=n(3118).Buffer,a=n(6255),s=n(8826),u=n(9725),c=n(7325);function l(t,e,n){s.call(this),this._cache=new h,this._cipher=new u.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}n(7526)(l,s),l.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get();)n=this._mode.encrypt(this,e),r.push(n);return o.concat(r)};var f=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function d(t,e,n){var s=r[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,e,n):"auth"===s.type?new i(s.module,e,n):new l(s.module,e,n)}l.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=o.concat([this.cache,t])},h.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},h.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;++n>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,e&&(n[0]=n[0]^225<<24)}this.state=o(r)},a.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},4630:function(t){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},4156:function(t,e,n){var r=n(5653);e.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},2509:function(t,e,n){var r=n(3118).Buffer,i=n(5653);function o(t,e,n){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){for(var i,a=r.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){a=r.concat([a,o(t,e,n)]);break}i=t._cache.length,a=r.concat([a,o(t,e.slice(0,i),n)]),e=e.slice(i)}return a}},9010:function(t,e,n){var r=n(3118).Buffer;function i(t,e,n){for(var r,i,a=-1,s=0;++a<8;)r=e&1<<7-a?128:0,s+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^r))>>a%8,t._prev=o(t._prev,n?r:i);return s}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i>7;return o}e.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),s=-1;++s=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new i(o(e));return n}t.exports=a,a.getr=s},5703:function(t,e,n){t.exports=n(26)},1265:function(t,e,n){var r=n(3118).Buffer,i=n(2539),o=n(6572),a=n(7526),s=n(3596),u=n(9204),c=n(26);function l(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){return new l(t)}function d(t){return new f(t)}Object.keys(c).forEach((function(t){c[t].id=r.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]})),a(l,o.Writable),l.prototype._write=function(t,e,n){this._hash.update(t),n()},l.prototype.update=function(t,e){return"string"===typeof t&&(t=r.from(t,e)),this._hash.update(t),this},l.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=s(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},a(f,o.Writable),f.prototype._write=function(t,e,n){this._hash.update(t),n()},f.prototype.update=function(t,e){return"string"===typeof t&&(t=r.from(t,e)),this._hash.update(t),this},f.prototype.verify=function(t,e,n){"string"===typeof e&&(e=r.from(e,n)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},t.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},3596:function(t,e,n){var r=n(3118).Buffer,i=n(2730),o=n(6236),a=n(8818).ec,s=n(5410),u=n(569),c=n(9167);function l(t,e){var n=c[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var i=new a(n).keyFromPrivate(e.privateKey).sign(t);return r.from(i.toDER())}function f(t,e,n){for(var r,i=e.params.priv_key,o=e.params.p,a=e.params.q,u=e.params.g,c=new s(0),l=p(t,a).mod(a),f=!1,m=d(i,a,t,n);!1===f;)c=y(u,r=v(a,m,n),o,a),0===(f=r.invm(a).imul(l.add(i.mul(c))).mod(a)).cmpn(0)&&(f=!1,c=new s(0));return h(c,f)}function h(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var n=[48,t.length+e.length+4,2,t.length];return n=n.concat(t,[2,e.length],e),r.from(n)}function d(t,e,n,o){if((t=r.from(t.toArray())).length0&&n.ishrn(r),n}function v(t,e,n){var o,a;do{for(o=r.alloc(0);8*o.length=e)throw new Error("invalid sig")}t.exports=function(t,e,n,o,s){var l=a(n);if("ec"===l.type){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");return u(t,e,l)}if("dsa"===l.type){if("dsa"!==o)throw new Error("wrong public key type");return function(t,e,n){var r=n.data.p,o=n.data.q,s=n.data.g,u=n.data.pub_key,l=a.signature.decode(t,"der"),f=l.s,h=l.r;c(f,o),c(h,o);var d=i.mont(r),p=f.invm(o);return 0===s.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(u.toRed(d).redPow(h.mul(p).mod(o)).fromRed()).mod(r).mod(o).cmp(h)}(t,e,l)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong public key type");e=r.concat([s,e]);for(var f=l.modulus.byteLength(),h=[1],d=0;e.length+h.length+2=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=u}return r(!(240&a),"Invalid character in "+t),i}function u(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a"}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l:o.prototype.inspect=l;var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],l=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modrn(l).toString(t);n=(p=p.idivn(l)).isZero()?v+n:f[c-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,f=67108863&u,h=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,v=d>>>13,y=0|a[2],m=8191&y,g=y>>>13,b=0|a[3],w=8191&b,S=b>>>13,_=0|a[4],k=8191&_,x=_>>>13,E=0|a[5],C=8191&E,A=E>>>13,P=0|a[6],T=8191&P,O=P>>>13,M=0|a[7],R=8191&M,I=M>>>13,j=0|a[8],B=8191&j,D=j>>>13,L=0|a[9],N=8191&L,F=L>>>13,G=0|s[0],U=8191&G,V=G>>>13,H=0|s[1],W=8191&H,z=H>>>13,q=0|s[2],Y=8191&q,K=q>>>13,X=0|s[3],J=8191&X,Q=X>>>13,Z=0|s[4],$=8191&Z,tt=Z>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ft=8191<,ht=lt>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(c+(r=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))<<13)|0;c=((o=Math.imul(h,V))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,V))+Math.imul(v,U)|0,o=Math.imul(v,V);var mt=(c+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,z)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(m,U),i=(i=Math.imul(m,V))+Math.imul(g,U)|0,o=Math.imul(g,V),r=r+Math.imul(p,W)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,z)|0;var gt=(c+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,V))+Math.imul(S,U)|0,o=Math.imul(S,V),r=r+Math.imul(m,W)|0,i=(i=i+Math.imul(m,z)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,z)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,K)|0;var bt=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(k,U),i=(i=Math.imul(k,V))+Math.imul(x,U)|0,o=Math.imul(x,V),r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,z)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,z)|0,r=r+Math.imul(m,Y)|0,i=(i=i+Math.imul(m,K)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,K)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0;var wt=(c+(r=r+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(A,U)|0,o=Math.imul(A,V),r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,z)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,z)|0,r=r+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Q)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0;var St=(c+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(h,nt)|0))<<13)|0;c=((o=o+Math.imul(h,rt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(O,U)|0,o=Math.imul(O,V),r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,z)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,z)|0,r=r+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Q)|0,r=r+Math.imul(m,$)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(g,$)|0,o=o+Math.imul(g,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0;var _t=(c+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(h,ot)|0))<<13)|0;c=((o=o+Math.imul(h,at)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,V))+Math.imul(I,U)|0,o=Math.imul(I,V),r=r+Math.imul(T,W)|0,i=(i=i+Math.imul(T,z)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,z)|0,r=r+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,K)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(w,$)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(m,nt)|0,i=(i=i+Math.imul(m,rt)|0)+Math.imul(g,nt)|0,o=o+Math.imul(g,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var kt=(c+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,ut)|0))<<13)|0;c=((o=o+Math.imul(h,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(D,U)|0,o=Math.imul(D,V),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,z)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,z)|0,r=r+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Q)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var xt=(c+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))<<13)|0;c=((o=o+Math.imul(h,ht)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,V))+Math.imul(F,U)|0,o=Math.imul(F,V),r=r+Math.imul(B,W)|0,i=(i=i+Math.imul(B,z)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,z)|0,r=r+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,K)|0,r=r+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Q)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(g,ut)|0,o=o+Math.imul(g,ct)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ht)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,ht)|0;var Et=(c+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(h,pt)|0))<<13)|0;c=((o=o+Math.imul(h,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(N,W),i=(i=Math.imul(N,z))+Math.imul(F,W)|0,o=Math.imul(F,z),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,K)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(m,ft)|0,i=(i=i+Math.imul(m,ht)|0)+Math.imul(g,ft)|0,o=o+Math.imul(g,ht)|0;var Ct=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(N,Y),i=(i=Math.imul(N,K))+Math.imul(F,Y)|0,o=Math.imul(F,K),r=r+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,Q)|0,r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(T,nt)|0,i=(i=i+Math.imul(T,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,ct)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,ht)|0)+Math.imul(S,ft)|0,o=o+Math.imul(S,ht)|0;var At=(c+(r=r+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,vt)|0)+Math.imul(g,pt)|0))<<13)|0;c=((o=o+Math.imul(g,vt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(N,J),i=(i=Math.imul(N,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),r=r+Math.imul(B,$)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(T,ot)|0,i=(i=i+Math.imul(T,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,ct)|0,r=r+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,ht)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,ht)|0;var Pt=(c+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(N,$),i=(i=Math.imul(N,tt))+Math.imul(F,$)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(T,ut)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,ht)|0;var Tt=(c+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(x,pt)|0))<<13)|0;c=((o=o+Math.imul(x,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(N,nt),i=(i=Math.imul(N,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(I,ut)|0,o=o+Math.imul(I,ct)|0,r=r+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,ht)|0;var Ot=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,vt)|0)+Math.imul(A,pt)|0))<<13)|0;c=((o=o+Math.imul(A,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(N,ot),i=(i=Math.imul(N,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),r=r+Math.imul(B,ut)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,ht)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ht)|0;var Mt=(c+(r=r+Math.imul(T,pt)|0)|0)+((8191&(i=(i=i+Math.imul(T,vt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(N,ut),i=(i=Math.imul(N,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ht)|0)+Math.imul(D,ft)|0,o=o+Math.imul(D,ht)|0;var Rt=(c+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(I,pt)|0))<<13)|0;c=((o=o+Math.imul(I,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(N,ft),i=(i=Math.imul(N,ht))+Math.imul(F,ft)|0,o=Math.imul(F,ht);var It=(c+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,vt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var jt=(c+(r=Math.imul(N,pt))|0)+((8191&(i=(i=Math.imul(N,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=yt,u[1]=mt,u[2]=gt,u[3]=bt,u[4]=wt,u[5]=St,u[6]=_t,u[7]=kt,u[8]=xt,u[9]=Et,u[10]=Ct,u[11]=At,u[12]=Pt,u[13]=Tt,u[14]=Ot,u[15]=Mt,u[16]=Rt,u[17]=It,u[18]=jt,0!==c&&(u[19]=c,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function m(t,e,n){return y(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(v=p),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):n<63?p(this,t,e):n<1024?y(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var h=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(i,h,f);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;0===(e.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0===(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,h=1;0===(n.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(S,w),S.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},S.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new S;else if("p224"===t)e=new _;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return b[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),h=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,y=0;0!==v.cmp(s);y++)v=v.redSqr();r(y=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var f=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,E),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},42:function(t){"use strict";var e={};function n(t,n,r){function i(t,e,r){return"string"===typeof n?n:n(t,e,r)}r||(r=Error);var o=function(t){s(n,t);var e=l(n);function n(t,r,o){return a(this,n),e.call(this,i(t,r,o))}return n}(r);o.prototype.name=r.name,o.prototype.code=t,e[t]=o}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o;if("string"===typeof e&&function(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var a=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";o='The "'.concat(t,'" ').concat(a," ").concat(i," ").concat(r(e,"type"))}return o+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},6744:function(t,e,n){"use strict";var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var o=n(8318),a=n(3877);n(7526)(l,o);for(var s=r(a.prototype),u=0;u0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r)a.endEmitted?k(t,new _):P(t,a,e,!0);else if(a.ended)k(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?P(t,a,e,!1):I(t,a)):P(t,a,e,!1)}else r||(a.reading=!1,I(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=T?t=T:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(R,t))}function R(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function I(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){l("readable nexttick read 0"),t.read(0)}function L(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(U,e,t))}function U(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function V(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):M(this),null;if(0===(t=O(t,e))&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(t){k(this,new S("_read()"))},C.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,l("pipe count=%d opts=%j",r.pipesCount,e);var o=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:m;function s(t,e){l("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,h())}function u(){l("onend"),t.end()}r.endEmitted?i.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var f=!1;function h(){l("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",d),f=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function d(e){l("ondata");var i=t.write(e);l("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==V(r.pipes,t))&&!f&&(l("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(e){l("onerror",e),m(),t.removeListener("error",p),0===a(t,"error")&&k(t,e)}function v(){t.removeListener("finish",y),m()}function y(){l("onfinish"),t.removeListener("close",v),m()}function m(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",p),t.once("close",v),t.once("finish",y),t.emit("pipe",n),r.flowing||(l("pipe resume"),n.resume()),t},C.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,l("on readable",r.length,r.reading),r.length?M(this):r.reading||i.nextTick(D,this))),n},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(B,this),n},C.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(B,this),e},C.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(L,t,e))}(this,t)),t.paused=!1,this},C.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause())))})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(t,e,n){n(new y("_write()"))},C.prototype._writev=null,C.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),C.prototype.destroy=h.destroy,C.prototype._undestroy=h.undestroy,C.prototype._destroy=function(t,e){e(t)}},509:function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1785),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function v(t){var e=t[s];if(null!==e){var n=t[d].read();null!==n&&(t[f]=null,t[s]=null,t[u]=null,e(p(n,!1)))}}function y(t){i.nextTick(v,t)}var m=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var t=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,n){i.nextTick((function(){t[c]?n(t[c]):e(p(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(t,e){return function(n,r){t.then((function(){e[l]?n(p(void 0,!0)):e[h](n,r)}),r)}}(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[h])}return this[f]=n,n}},o(r,Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(p(void 0,!0))}))}))})),r),m);t.exports=function(t){var e,n=Object.create(g,(o(e={},d,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,l,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var r=n[d].read();r?(n[f]=null,n[s]=null,n[u]=null,t(p(r,!1))):(n[s]=t,n[u]=e)},writable:!0}),e));return n[f]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[u];return null!==e&&(n[f]=null,n[s]=null,n[u]=null,e(t)),void(n[c]=t)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(p(void 0,!0))),n[l]=!0})),t.on("readable",y.bind(null,n)),n}},8469:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e=a.allocUnsafe(t>>>0),n=this.head,r=0;n;)c(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e0,(function(t){r||(r=t),t&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return e.reduce(l)}},894:function(t,e,n){"use strict";var r=n(42).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},1727:function(t,e,n){t.exports=n(2781)},6572:function(t,e,n){var r=n(2781);"disable"===i.env.READABLE_STREAM&&r?(t.exports=r.Readable,Object.assign(t.exports,r),t.exports.Stream=r):((e=t.exports=n(8318)).Stream=r||e,e.Readable=e,e.Writable=n(3877),e.Duplex=n(6744),e.Transform=n(9482),e.PassThrough=n(6609),e.finished=n(1785),e.pipeline=n(7612))},5673:function(t,e,n){"use strict";var r=n(3118).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=f,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},5653:function(t){t.exports=function(t,e){for(var n=Math.min(t.length,e.length),i=new r(n),o=0;on)?e=("rmd160"===t?new u:c(t)).update(e).digest():e.lengths?e=t(e):e.length0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,t.keys,a)}},u.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,a=h}o.rip(s,a,r,i)},u.prototype._decrypt=function(t,e,n,r,i){for(var a=n,s=e,u=t.keys.length-2;u>=0;u-=2){var c=t.keys[u],l=t.keys[u+1];o.expand(a,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1];var f=o.substitute(c,l),h=a;a=(s^o.permute(f))>>>0,s=h}o.rip(a,s,r,i)}},2635:function(t,e,n){"use strict";var r=n(9036),i=n(7526),o=n(1020),a=n(9670);function s(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function u(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},6843:function(t,e){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++){n<<=4,n|=r[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=r[256+64*i+(e>>>18-6*i&63)]}return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n>>i[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.lengtht;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),e.cmp(u)){if(!e.cmp(c))for(;n.mod(l).cmp(f);)n.iadd(d)}else for(;n.mod(o).cmp(h);)n.iadd(d);if(v(p=n.shrn(1))&&v(n)&&y(p)&&y(n)&&a.test(p)&&a.test(n))return n}}},8818:function(t,e,n){"use strict";var r=e;r.version=n(763).i8,r.utils=n(8454),r.rand=n(6069),r.curve=n(954),r.curves=n(2998),r.ec=n(2081),r.eddsa=n(2298)},3005:function(t,e,n){"use strict";var r=n(6884),i=n(8454),o=i.getNAF,a=i.getJSF,s=i.assert;function u(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<=u;e--)c=(c<<1)+r[e];a.push(c)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),h=i;h>0;h--){for(u=0;u=0;c--){for(e=0;c>=0&&0===a[c];c--)e++;if(c>=0&&e++,u=u.dblp(e),c<0)break;var l=a[c];s(0!==l),u="affine"===t.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f=1;f-=2){var d=f-1,p=f;if(1===s[d]&&1===s[p]){var v=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(v[1]=e[d].add(e[p]),v[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(v[1]=e[d].toJ().mixedAdd(e[p]),v[2]=e[d].add(e[p].neg())):(v[1]=e[d].toJ().mixedAdd(e[p]),v[2]=e[d].toJ().mixedAdd(e[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],m=a(n[d],n[p]);l=Math.max(m[0].length,l),c[d]=new Array(l),c[p]=new Array(l);for(var g=0;g=0;f--){for(var k=0;f>=0;){var x=!0;for(g=0;g=0&&k++,S=S.dblp(k),f<0)break;for(g=0;g0?E=u[g][C-1>>1]:C<0&&(E=u[g][-C-1>>1].neg()),S="affine"===E.type?S.mixedAdd(E):S.add(E))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),s=r.redSub(e),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},c.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(c.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);t=r.redSub(i).redISub(o).redMul(u),e=a.redMul(c.redSub(o)),n=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);t=this.curve._mulC(r.redISub(c)).redMul(u),e=this.curve._mulC(c).redMul(i.redISub(o)),n=c.redMul(u)}return this.curve.point(t,e,n)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),s=i.redAdd(r),u=n.redAdd(e),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),h=a.redMul(s);return this.curve.point(c,l,h,f)},c.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),f=r.redMul(u).redMul(l);return this.curve.twisted?(e=r.redMul(c).redMul(a.redSub(this.curve._mulA(o))),n=u.redMul(c)):(e=r.redMul(c).redMul(a.redSub(o)),n=this.curve._mulC(u).redMul(c)),this.curve.point(f,e,n)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},c.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},954:function(t,e,n){"use strict";var r=e;r.base=n(3005),r.short=n(401),r.mont=n(6103),r.edwards=n(9224)},6103:function(t,e,n){"use strict";var r=n(6884),i=n(7526),o=n(3005),a=n(8454);function s(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),a=i.redMul(r),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},401:function(t,e,n){"use strict";var r=n(8454),i=n(6884),o=n(7526),a=n(3005),s=r.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,n,r){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,n,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(n)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=new i(2).toRed(e).redInvm(),r=n.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,n,r,o,a,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,d=this.n.clone(),p=new i(1),v=new i(0),y=new i(0),m=new i(1),g=0;0!==h.cmpn(0);){var b=d.div(h);c=d.sub(b.mul(h)),l=y.sub(b.mul(p));var w=m.sub(b.mul(v));if(!r&&c.cmp(f)<0)e=u.neg(),n=p,r=c.neg(),o=l;else if(r&&2===++g)break;u=c,d=h,h=c,y=p,p=l,m=v,v=w}a=c.neg(),s=l;var S=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(S)>=0&&(a=e,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},c.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(t,e,n){return new l(this,t,e,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=r.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,d,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2998:function(t,e,n){"use strict";var r,i=e,o=n(9767),a=n(954),s=n(8454).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(7759)}catch(t){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},2081:function(t,e,n){"use strict";var r=n(6884),i=n(8242),o=n(8454),a=n(2998),s=n(6069),u=o.assert,c=n(7044),l=n(8020);function f(t){if(!(this instanceof f))return new f(t);"string"===typeof t&&(u(a.hasOwnProperty(t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=f,f.prototype.keyPair=function(t){return new c(this,t)},f.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(e.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,n,o){"object"===typeof n&&(o=n,n=null),o||(o={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new r(1)),h=0;;h++){var d=o.k?o.k(h):new r(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var v=p.getX(),y=v.umod(this.n);if(0!==y.cmpn(0)){var m=d.invm(this.n).mul(y.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(p.getY().isOdd()?1:0)|(0!==v.cmp(y)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new l({r:y,s:m,recoveryParam:g})}}}}}},f.prototype.verify=function(t,e,n,i){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,i);var o=(e=new l(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(t).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(t,e,n,i){u((3&n)===n,"The recovery param is more than two bits"),e=new l(e,i);var o=this.n,a=new r(t),s=e.r,c=e.s,f=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),v=c.mul(d).umod(o);return this.g.mulAdd(p,s,v)},f.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new l(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},7044:function(t,e,n){"use strict";var r=n(6884),i=n(8454).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,n){return e instanceof o?e:new o(t,{pub:e,pubEnc:n})},o.fromPrivate=function(t,e,n){return e instanceof o?e:new o(t,{priv:e,privEnc:n})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return""}},8020:function(t,e,n){"use strict";var r=n(6884),i=n(8454),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function c(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;var o=u(t,n);if(!1===o)return!1;if(o+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var a=u(t,n);if(!1===a)return!1;var c=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var l=u(t,n);if(!1===l)return!1;if(t.length!==l+n.place)return!1;var f=t.slice(n.place,l+n.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(c),this.s=new r(f),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=c(e),n=c(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];l(r,e.length),(r=r.concat(e)).push(2),l(r,n.length);var o=r.concat(n),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,t)}},2298:function(t,e,n){"use strict";var r=n(9767),i=n(2998),o=n(8454),a=o.assert,s=o.parseBytes,u=n(9285),c=n(3883);function l(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=l,l.prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),u=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(t,e,n){t=s(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r=0,i=0;t.cmpn(-r)>0||e.cmpn(-i)>0;){var o,a,s,u=t.andln(3)+r&3,c=e.andln(3)+i&3;if(3===u&&(u=-1),3===c&&(c=-1),0===(1&u))o=0;else o=3!==(s=t.andln(7)+r&7)&&5!==s||2!==c?u:-u;if(n[0].push(o),0===(1&c))a=0;else a=3!==(s=e.andln(7)+i&7)&&5!==s||2!==u?c:-c;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"===typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},7325:function(t,e,n){var r=n(3118).Buffer,i=n(4125);t.exports=function(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(o||0),c=r.alloc(0);a>0||o>0;){var l=new i;l.update(c),l.update(t),e&&l.update(e),c=l.digest();var f=0;if(a>0){var h=s.length-a;f=Math.min(a,c.length),c.copy(s,h,0,f),a-=f}if(f0){var d=u.length-o,p=Math.min(o,c.length-f);c.copy(u,d,f,f+p),o-=p}}return c.fill(0),{key:s,iv:u}}},3421:function(t,e,n){"use strict";var r=n(3118).Buffer,i=n(5098).Transform;function o(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(7526)(o,i),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!r.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},519:function(t){"use strict";var e={};function n(t,n,r){function i(t,e,r){return"string"===typeof n?n:n(t,e,r)}r||(r=Error);var o=function(t){s(n,t);var e=l(n);function n(t,r,o){return a(this,n),e.call(this,i(t,r,o))}return n}(r);o.prototype.name=r.name,o.prototype.code=t,e[t]=o}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o;if("string"===typeof e&&function(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var a=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";o='The "'.concat(t,'" ').concat(a," ").concat(i," ").concat(r(e,"type"))}return o+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},5077:function(t,e,n){"use strict";var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var o=n(279),a=n(3582);n(7526)(l,o);for(var s=r(a.prototype),u=0;u0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r)a.endEmitted?k(t,new _):P(t,a,e,!0);else if(a.ended)k(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?P(t,a,e,!1):I(t,a)):P(t,a,e,!1)}else r||(a.reading=!1,I(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=T?t=T:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(R,t))}function R(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function I(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){l("readable nexttick read 0"),t.read(0)}function L(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(U,e,t))}function U(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function V(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):M(this),null;if(0===(t=O(t,e))&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(t){k(this,new S("_read()"))},C.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,l("pipe count=%d opts=%j",r.pipesCount,e);var o=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:m;function s(t,e){l("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,h())}function u(){l("onend"),t.end()}r.endEmitted?i.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var f=!1;function h(){l("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",d),f=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function d(e){l("ondata");var i=t.write(e);l("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==V(r.pipes,t))&&!f&&(l("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function p(e){l("onerror",e),m(),t.removeListener("error",p),0===a(t,"error")&&k(t,e)}function v(){t.removeListener("finish",y),m()}function y(){l("onfinish"),t.removeListener("close",v),m()}function m(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",p),t.once("close",v),t.once("finish",y),t.emit("pipe",n),r.flowing||(l("pipe resume"),n.resume()),t},C.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,l("on readable",r.length,r.reading),r.length?M(this):r.reading||i.nextTick(D,this))),n},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(B,this),n},C.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(B,this),e},C.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(L,t,e))}(this,t)),t.paused=!1,this},C.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause())))})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(t,e,n){n(new y("_write()"))},C.prototype._writev=null,C.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||function(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),C.prototype.destroy=h.destroy,C.prototype._undestroy=h.undestroy,C.prototype._destroy=function(t,e){e(t)}},1439:function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(9830),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function v(t){var e=t[s];if(null!==e){var n=t[d].read();null!==n&&(t[f]=null,t[s]=null,t[u]=null,e(p(n,!1)))}}function y(t){i.nextTick(v,t)}var m=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((r={get stream(){return this[d]},next:function(){var t=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,n){i.nextTick((function(){t[c]?n(t[c]):e(p(void 0,!0))}))}));var n,r=this[f];if(r)n=new Promise(function(t,e){return function(n,r){t.then((function(){e[l]?n(p(void 0,!0)):e[h](n,r)}),r)}}(r,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[h])}return this[f]=n,n}},o(r,Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(p(void 0,!0))}))}))})),r),m);t.exports=function(t){var e,n=Object.create(g,(o(e={},d,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,l,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var r=n[d].read();r?(n[f]=null,n[s]=null,n[u]=null,t(p(r,!1))):(n[s]=t,n[u]=e)},writable:!0}),e));return n[f]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[u];return null!==e&&(n[f]=null,n[s]=null,n[u]=null,e(t)),void(n[c]=t)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(p(void 0,!0))),n[l]=!0})),t.on("readable",y.bind(null,n)),n}},5206:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e=a.allocUnsafe(t>>>0),n=this.head,r=0;n;)c(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e0,(function(t){r||(r=t),t&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return e.reduce(l)}},4292:function(t,e,n){"use strict";var r=n(519).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},3917:function(t,e,n){t.exports=n(2781)},5098:function(t,e,n){var r=n(2781);"disable"===i.env.READABLE_STREAM&&r?(t.exports=r.Readable,Object.assign(t.exports,r),t.exports.Stream=r):((e=t.exports=n(279)).Stream=r||e,e.Readable=e,e.Writable=n(3582),e.Duplex=n(5077),e.Transform=n(6821),e.PassThrough=n(3880),e.finished=n(9830),e.pipeline=n(1586))},9573:function(t,e,n){"use strict";var r=n(3118).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=f,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},9767:function(t,e,n){var r=e;r.utils=n(8911),r.common=n(5169),r.sha=n(9417),r.ripemd=n(5282),r.hmac=n(7890),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},5169:function(t,e,n){"use strict";var r=n(8911),i=n(9036);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;othis.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},8911:function(t,e,n){"use strict";var r=n(9036),i=n(7526);function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i>6|192,n[r++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,a,s){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,a,s,u,c){var l=0,f=e;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,n,r,i,o,a,s,u,c){return e+r+o+s+c>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},8242:function(t,e,n){"use strict";var r=n(9767),i=n(6249),o=n(9036);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=a,a.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length>>32-e}function c(t,e,n,r,i,o,a){return u(t+(e&n|~e&r)+i+o|0,a)+e|0}function l(t,e,n,r,i,o,a){return u(t+(e&r|n&~r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return u(t+(e^n^r)+i+o|0,a)+e|0}function h(t,e,n,r,i,o,a){return u(t+(n^(e|~r))+i+o|0,a)+e|0}r(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,t[0],3614090360,7),o=c(o,n,r,i,t[1],3905402710,12),i=c(i,o,n,r,t[2],606105819,17),r=c(r,i,o,n,t[3],3250441966,22),n=c(n,r,i,o,t[4],4118548399,7),o=c(o,n,r,i,t[5],1200080426,12),i=c(i,o,n,r,t[6],2821735955,17),r=c(r,i,o,n,t[7],4249261313,22),n=c(n,r,i,o,t[8],1770035416,7),o=c(o,n,r,i,t[9],2336552879,12),i=c(i,o,n,r,t[10],4294925233,17),r=c(r,i,o,n,t[11],2304563134,22),n=c(n,r,i,o,t[12],1804603682,7),o=c(o,n,r,i,t[13],4254626195,12),i=c(i,o,n,r,t[14],2792965006,17),n=l(n,r=c(r,i,o,n,t[15],1236535329,22),i,o,t[1],4129170786,5),o=l(o,n,r,i,t[6],3225465664,9),i=l(i,o,n,r,t[11],643717713,14),r=l(r,i,o,n,t[0],3921069994,20),n=l(n,r,i,o,t[5],3593408605,5),o=l(o,n,r,i,t[10],38016083,9),i=l(i,o,n,r,t[15],3634488961,14),r=l(r,i,o,n,t[4],3889429448,20),n=l(n,r,i,o,t[9],568446438,5),o=l(o,n,r,i,t[14],3275163606,9),i=l(i,o,n,r,t[3],4107603335,14),r=l(r,i,o,n,t[8],1163531501,20),n=l(n,r,i,o,t[13],2850285829,5),o=l(o,n,r,i,t[2],4243563512,9),i=l(i,o,n,r,t[7],1735328473,14),n=f(n,r=l(r,i,o,n,t[12],2368359562,20),i,o,t[5],4294588738,4),o=f(o,n,r,i,t[8],2272392833,11),i=f(i,o,n,r,t[11],1839030562,16),r=f(r,i,o,n,t[14],4259657740,23),n=f(n,r,i,o,t[1],2763975236,4),o=f(o,n,r,i,t[4],1272893353,11),i=f(i,o,n,r,t[7],4139469664,16),r=f(r,i,o,n,t[10],3200236656,23),n=f(n,r,i,o,t[13],681279174,4),o=f(o,n,r,i,t[0],3936430074,11),i=f(i,o,n,r,t[3],3572445317,16),r=f(r,i,o,n,t[6],76029189,23),n=f(n,r,i,o,t[9],3654602809,4),o=f(o,n,r,i,t[12],3873151461,11),i=f(i,o,n,r,t[15],530742520,16),n=h(n,r=f(r,i,o,n,t[2],3299628645,23),i,o,t[0],4096336452,6),o=h(o,n,r,i,t[7],1126891415,10),i=h(i,o,n,r,t[14],2878612391,15),r=h(r,i,o,n,t[5],4237533241,21),n=h(n,r,i,o,t[12],1700485571,6),o=h(o,n,r,i,t[3],2399980690,10),i=h(i,o,n,r,t[10],4293915773,15),r=h(r,i,o,n,t[1],2240044497,21),n=h(n,r,i,o,t[8],1873313359,6),o=h(o,n,r,i,t[15],4264355552,10),i=h(i,o,n,r,t[6],2734768916,15),r=h(r,i,o,n,t[13],1309151649,21),n=h(n,r,i,o,t[4],4149444226,6),o=h(o,n,r,i,t[11],3174756917,10),i=h(i,o,n,r,t[2],718787259,15),r=h(r,i,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},148:function(t,e,n){var r=n(6884),i=n(6069);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),l=s.toRed(o);e>0;e--){var f=this._randrange(new r(2),s);n&&n(f);var h=f.toRed(o).redPow(c);if(0!==h.cmp(a)&&0!==h.cmp(l)){for(var d=1;d0;e--){var l=this._randrange(new r(2),a),f=t.gcd(l);if(0!==f.cmpn(1))return f;var h=l.toRed(i).redPow(u);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var d=1;d>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}},9913:function(t,e,n){"use strict";var r=n(8557);e.certificate=n(8657);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var c=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=c;var l=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=l,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=f;var h=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},8657:function(t,e,n){"use strict";var r=n(8557),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=r.define("RDNSequence",(function(){this.seqof(u)})),l=r.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},4803:function(t,e,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=n(7325),s=n(7384),u=n(3118).Buffer;t.exports=function(t,e){var n,c=t.toString(),l=c.match(r);if(l){var f="aes"+l[1],h=u.from(l[2],"hex"),d=u.from(l[3].replace(/[\r\n]/g,""),"base64"),p=a(e,h.slice(0,8),parseInt(l[1],10)).key,v=[],y=s.createDecipheriv(f,p,h);v.push(y.update(d)),v.push(y.final()),n=u.concat(v)}else{var m=c.match(o);n=new u(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:n}}},569:function(t,e,n){var r=n(9913),i=n(8675),o=n(4803),a=n(7384),s=n(785),u=n(3118).Buffer;function c(t){var e;"object"!==typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=u.from(t));var n,i,a=o(t,e),s=a.tag,c=a.data;switch(s){case"CERTIFICATE":i=r.certificate.decode(c,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(i||(i=r.PublicKey.decode(c,"der")),n=i.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(i.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return i.subjectPrivateKey=i.subjectPublicKey,{type:"ec",data:i};case"1.2.840.10040.4.1":return i.algorithm.params.pub_key=r.DSAparam.decode(i.subjectPublicKey.data,"der"),{type:"dsa",data:i.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+s);case"ENCRYPTED PRIVATE KEY":c=l(c=r.EncryptedPrivateKey.decode(c,"der"),e);case"PRIVATE KEY":switch(n=(i=r.PrivateKey.decode(c,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(i.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:i.algorithm.curve,privateKey:r.ECPrivateKey.decode(i.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return i.algorithm.params.priv_key=r.DSAparam.decode(i.subjectPrivateKey,"der"),{type:"dsa",params:i.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+s);case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(c,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(c,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(c,"der")};case"EC PRIVATE KEY":return{curve:(c=r.ECPrivateKey.decode(c,"der")).parameters.value,privateKey:c.privateKey};default:throw new Error("unknown key type "+s)}}function l(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,l=t.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,h=s.pbkdf2Sync(e,n,r,f,"sha1"),d=a.createDecipheriv(o,h,c),p=[];return p.push(d.update(l)),p.push(d.final()),u.concat(p)}t.exports=c,c.signature=r.signature},785:function(t,e,n){var r=n(6113),i=n(721),o=n(908),a=n(7409);r.pbkdf2Sync&&-1!==r.pbkdf2Sync.toString().indexOf("keylen, digest")?(e.pbkdf2Sync=function(t,e,n,s,u){return i(n,s),t=a(t,o,"Password"),e=a(e,o,"Salt"),u=u||"sha1",r.pbkdf2Sync(t,e,n,s,u)},e.pbkdf2=function(t,e,n,s,u,c){if(i(n,s),t=a(t,o,"Password"),e=a(e,o,"Salt"),"function"===typeof u&&(c=u,u="sha1"),"function"!==typeof c)throw new Error("No callback provided to pbkdf2");return r.pbkdf2(t,e,n,s,u,c)}):(e.pbkdf2Sync=n(2419),e.pbkdf2=n(5539))},5539:function(t,e,r){var o,a=r(3118).Buffer,s=r(721),u=r(908),c=r(2419),l=r(7409),f=n.g.crypto&&n.g.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function p(t){if(n.g.process&&!n.g.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var e=v(o=o||a.alloc(8),o,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=e,e}function v(t,e,n,r,i){return f.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return f.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)})).then((function(t){return a.from(t)}))}t.exports=function(t,e,r,o,a,f){"function"===typeof a&&(f=a,a=void 0);var d=h[(a=a||"sha1").toLowerCase()];if(!d||"function"!==typeof n.g.Promise)return i.nextTick((function(){var n;try{n=c(t,e,r,o,a)}catch(t){return f(t)}f(null,n)}));if(s(r,o),t=l(t,u,"Password"),e=l(e,u,"Salt"),"function"!==typeof f)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){i.nextTick((function(){e(null,t)}))}),(function(t){i.nextTick((function(){e(t)}))}))}(p(d).then((function(n){return n?v(t,e,r,o,d):c(t,e,r,o,a)})),f)}},908:function(t){var e;e="utf-8",t.exports=e},721:function(t){var e=Math.pow(2,30)-1;t.exports=function(t,n){if("number"!==typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!==typeof n)throw new TypeError("Key length not a number");if(n<0||n>e||n!==n)throw new TypeError("Bad key length")}},2419:function(t,e,n){var r={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},i=n(2730),o=n(3118).Buffer,a=n(721),s=n(908),u=n(7409);t.exports=function(t,e,n,c,l){a(n,c),t=u(t,s,"Password"),e=u(e,s,"Salt"),l=l||"sha1";var f=o.allocUnsafe(c),h=o.allocUnsafe(e.length+4);e.copy(h,0,0,e.length);for(var d=0,p=r[l],v=Math.ceil(c/p),y=1;y<=v;y++){h.writeUInt32BE(y,e.length);for(var m=i(l,t).update(h).digest(),g=m,b=1;bh||new a(e).cmp(u.modulus)>=0)throw new Error("decryption error");o=n?c(new a(e),u):s(e,u);var d=l.alloc(h-o.length);if(o=l.concat([d,o],h),4===i)return f(u,o);if(1===i)return function(t,e,n){var r=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,o,n);if(3===i)return o;throw new Error("unknown padding")}},3922:function(t,e,n){var r=n(569),i=n(2711),o=n(2539),a=n(22),s=n(9973),u=n(6884),c=n(8992),l=n(6236),f=n(3118).Buffer;function h(t,e){var n=t.modulus.byteLength(),r=e.length,c=o("sha1").update(f.alloc(0)).digest(),l=c.length,h=2*l;if(r>n-h-2)throw new Error("message too long");var d=f.alloc(n-r-h-2),p=n-l-1,v=i(l),y=s(f.concat([c,d,f.alloc(1,1),e],p),a(v,p)),m=s(v,a(y,l));return new u(f.concat([f.alloc(1),m,y],n))}function d(t){for(var e,n=f.allocUnsafe(t),r=0,o=i(2*t),a=0;ro-11)throw new Error("message too long");r=n?f.alloc(o-i-3,255):d(o-i-3);return new u(f.concat([f.from([0,n?1:2]),r,f.alloc(1),e],o))}(a,e,n);else{if(3!==i)throw new Error("unknown padding");if((o=new u(e)).cmp(a.modulus)>=0)throw new Error("data too long for modulus")}return n?l(o,a):c(o,a)}},8992:function(t,e,n){var r=n(6884),i=n(3118).Buffer;t.exports=function(t,e){return i.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},9973:function(t){t.exports=function(t,e){for(var n=t.length,r=-1;++ra)throw new RangeError("requested too many random bytes");var n=s.allocUnsafe(t);if(t>0)if(t>o)for(var r=0;rl||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function h(t,e,n){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>u)throw new RangeError("buffer too small")}function d(t,e,n,r){var o=t.buffer,a=new Uint8Array(o,e,n);return c.getRandomValues(a),r?void i.nextTick((function(){r(null,t)})):t}c&&c.getRandomValues?(e.randomFill=function(t,e,r,i){if(!s.isBuffer(t)&&!(t instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof e)i=e,e=0,r=t.length;else if("function"===typeof r)i=r,r=t.length-e;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return f(e,t.length),h(r,e,t.length),d(t,e,r,i)},e.randomFillSync=function(t,e,r){"undefined"===typeof e&&(e=0);if(!s.isBuffer(t)&&!(t instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(e,t.length),void 0===r&&(r=t.length-e);return h(r,e,t.length),d(t,e,r)}):(e.randomFill=o,e.randomFillSync=o)},7455:function(t,e,n){"use strict";var r=n(4300).Buffer,i=n(7526),o=n(3421),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<>>32-e}function v(t,e,n,r,i,o,a,s){return p(t+(e^n^r)+o+a|0,s)+i|0}function y(t,e,n,r,i,o,a,s){return p(t+(e&n|~e&r)+o+a|0,s)+i|0}function m(t,e,n,r,i,o,a,s){return p(t+((e|~n)^r)+o+a|0,s)+i|0}function g(t,e,n,r,i,o,a,s){return p(t+(e&r|n&~r)+o+a|0,s)+i|0}function b(t,e,n,r,i,o,a,s){return p(t+(e^(n|~r))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,w=0|this._a,S=0|this._b,_=0|this._c,k=0|this._d,x=0|this._e,E=0;E<80;E+=1){var C,A;E<16?(C=v(n,r,i,o,d,t[s[E]],f[0],c[E]),A=b(w,S,_,k,x,t[u[E]],h[0],l[E])):E<32?(C=y(n,r,i,o,d,t[s[E]],f[1],c[E]),A=g(w,S,_,k,x,t[u[E]],h[1],l[E])):E<48?(C=m(n,r,i,o,d,t[s[E]],f[2],c[E]),A=m(w,S,_,k,x,t[u[E]],h[2],l[E])):E<64?(C=g(n,r,i,o,d,t[s[E]],f[3],c[E]),A=y(w,S,_,k,x,t[u[E]],h[3],l[E])):(C=b(n,r,i,o,d,t[s[E]],f[4],c[E]),A=v(w,S,_,k,x,t[u[E]],h[4],l[E])),n=d,d=o,o=p(i,10),i=r,r=C,w=x,x=k,k=p(_,10),_=S,S=A}var P=this._b+i+k|0;this._b=this._c+o+x|0,this._c=this._d+d+w|0,this._d=this._e+n+S|0,this._e=this._a+r+_|0,this._a=P},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=d},3118:function(t,e,n){var r=n(4300),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.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},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},7782:function(t,e,n){var r=n(3118).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,a=this._len,s=0;s=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},1862:function(t,e,n){var r=t.exports=function(t){t=t.toLowerCase();var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};r.sha=n(2003),r.sha1=n(5645),r.sha224=n(7741),r.sha256=n(9642),r.sha384=n(3869),r.sha512=n(3741)},2003:function(t,e,n){var r=n(7526),i=n(7782),o=n(3118).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function f(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var h=0;h<80;++h){var d=~~(h/20),p=c(n)+f(d,r,i,o)+s+e[h]+a[d]|0;s=o,o=i,i=l(r),r=n,n=p}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},5645:function(t,e,n){var r=n(7526),i=n(7782),o=n(3118).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<1|t>>>31}function l(t){return t<<5|t>>>27}function f(t){return t<<30|t>>>2}function h(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=c(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var d=0;d<80;++d){var p=~~(d/20),v=l(n)+h(p,r,i,o)+s+e[d]+a[p]|0;s=o,o=i,i=f(r),r=n,n=v}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},7741:function(t,e,n){var r=n(7526),i=n(9642),o=n(7782),a=n(3118).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);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},t.exports=u},9642:function(t,e,n){var r=n(7526),i=n(7782),o=n(3118).Buffer,a=[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],s=new Array(64);function u(){this.init(),this._w=s,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 d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}r(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,v=0|this._g,y=0|this._h,m=0;m<16;++m)e[m]=t.readInt32BE(4*m);for(;m<64;++m)e[m]=p(e[m-2])+e[m-7]+d(e[m-15])+e[m-16]|0;for(var g=0;g<64;++g){var b=y+h(s)+c(s,u,v)+a[g]+e[g]|0,w=f(n)+l(n,r,i)|0;y=v,v=u,u=s,s=o+b|0,o=i,i=r,r=n,n=b+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=v+this._g|0,this._h=y+this._h|0},u.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=u},3869:function(t,e,n){var r=n(7526),i=n(3741),o=n(7782),a=n(3118).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},3741:function(t,e,n){var r=n(7526),i=n(7782),o=n(3118).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function f(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function m(t,e){return t>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,g=0|this._gh,b=0|this._hh,w=0|this._al,S=0|this._bl,_=0|this._cl,k=0|this._dl,x=0|this._el,E=0|this._fl,C=0|this._gl,A=0|this._hl,P=0;P<32;P+=2)e[P]=t.readInt32BE(4*P),e[P+1]=t.readInt32BE(4*P+4);for(;P<160;P+=2){var T=e[P-30],O=e[P-30+1],M=d(T,O),R=p(O,T),I=v(T=e[P-4],O=e[P-4+1]),j=y(O,T),B=e[P-14],D=e[P-14+1],L=e[P-32],N=e[P-32+1],F=R+D|0,G=M+B+m(F,R)|0;G=(G=G+I+m(F=F+j|0,j)|0)+L+m(F=F+N|0,N)|0,e[P]=G,e[P+1]=F}for(var U=0;U<160;U+=2){G=e[U],F=e[U+1];var V=l(n,r,i),H=l(w,S,_),W=f(n,w),z=f(w,n),q=h(s,x),Y=h(x,s),K=a[U],X=a[U+1],J=c(s,u,g),Q=c(x,E,C),Z=A+Y|0,$=b+q+m(Z,A)|0;$=($=($=$+J+m(Z=Z+Q|0,Q)|0)+K+m(Z=Z+X|0,X)|0)+G+m(Z=Z+F|0,F)|0;var tt=z+H|0,et=W+V+m(tt,z)|0;b=g,A=C,g=u,C=E,u=s,E=x,s=o+$+m(x=k+Z|0,k)|0,o=i,k=_,i=r,_=S,r=n,S=w,n=$+et+m(w=Z+tt|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+S|0,this._cl=this._cl+_|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+C|0,this._hl=this._hl+A|0,this._ah=this._ah+n+m(this._al,w)|0,this._bh=this._bh+r+m(this._bl,S)|0,this._ch=this._ch+i+m(this._cl,_)|0,this._dh=this._dh+o+m(this._dl,k)|0,this._eh=this._eh+s+m(this._el,x)|0,this._fh=this._fh+u+m(this._fl,E)|0,this._gh=this._gh+g+m(this._gl,C)|0,this._hh=this._hh+b+m(this._hl,A)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},5121:function(t){function e(t){try{if(!n.g.localStorage)return!1}catch(t){return!1}var e=n.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}}},4300:function(t){"use strict";t.exports=n(35713)},6113:function(t){"use strict";t.exports=n(48831)},2361:function(t){"use strict";t.exports=n(99054)},2781:function(t){"use strict";t.exports=n(93756)},1576:function(t){"use strict";t.exports=n(9768)},3837:function(t){"use strict";t.exports=n(49857)},6144:function(t){"use strict";t.exports=n(18877)},9234:function(t){"use strict";t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},26:function(t){"use strict";t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9167:function(t){"use strict";t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},3418:function(t){"use strict";t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},763:function(t){"use strict";t.exports={i8:"6.5.3"}},8675:function(t){"use strict";t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},u={};function c(t){var n=u[t];if(void 0!==n)return n.exports;var r=u[t]={id:t,loaded:!1,exports:{}},i=!0;try{e[t].call(r.exports,r,r.exports,c),i=!1}finally{i&&delete u[t]}return r.loaded=!0,r.exports}c.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},c.ab="//";var f={};!function(){"use strict";var t=f;t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=c(2711),t.createHash=t.Hash=c(2539),t.createHmac=t.Hmac=c(2730);var e=c(5703),n=Object.keys(e),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(n);t.getHashes=function(){return r};var i=c(785);t.pbkdf2=i.pbkdf2,t.pbkdf2Sync=i.pbkdf2Sync;var o=c(57);t.Cipher=o.Cipher,t.createCipher=o.createCipher,t.Cipheriv=o.Cipheriv,t.createCipheriv=o.createCipheriv,t.Decipher=o.Decipher,t.createDecipher=o.createDecipher,t.Decipheriv=o.Decipheriv,t.createDecipheriv=o.createDecipheriv,t.getCiphers=o.getCiphers,t.listCiphers=o.listCiphers;var a=c(9977);t.DiffieHellmanGroup=a.DiffieHellmanGroup,t.createDiffieHellmanGroup=a.createDiffieHellmanGroup,t.getDiffieHellman=a.getDiffieHellman,t.createDiffieHellman=a.createDiffieHellman,t.DiffieHellman=a.DiffieHellman;var s=c(1265);t.createSign=s.createSign,t.Sign=s.Sign,t.createVerify=s.createVerify,t.Verify=s.Verify,t.createECDH=c(7354);var u=c(3501);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var l=c(9534);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),t.exports=f}()},99054:function(t){!function(){"use strict";var e={182:function(t){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))}v(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"===typeof t.on&&v(t,"error",e,n)}(t,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(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,a;if(s(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),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"===typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(t))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,function(t){console&&console.warn&&console.warn(t)}(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;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}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=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=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):[]}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}},a=!0;try{e[t](o,o.exports,r),a=!1}finally{a&&delete n[t]}return o.exports}r.ab="//";var i=r(182);t.exports=i}()},58631:function(t){!function(){var e={162:function(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 a(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(r){try{return e.call(null,t,0)}catch(r){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 s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&h())}function h(){if(!c){var t=a(f);c=!0;for(var e=u.length;e;){for(s=u,u=[];++l1)for(var n=1;n2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}n("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o;if("string"===typeof e&&function(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}(e,"not ")?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))o="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var a=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";o='The "'.concat(t,'" ').concat(a," ").concat(i," ").concat(r(e,"type"))}return o+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},239:function(t,e,n){"use strict";var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var o=n(375),a=n(886);n(526)(l,o);for(var s=i(a.prototype),u=0;u0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r)a.endEmitted?k(t,new _):P(t,a,e,!0);else if(a.ended)k(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?P(t,a,e,!1):I(t,a)):P(t,a,e,!1)}else r||(a.reading=!1,I(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=T?t=T:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(R,t))}function R(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function I(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){l("readable nexttick read 0"),t.read(0)}function L(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function G(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(U,e,t))}function U(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function V(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?G(this):M(this),null;if(0===(t=O(t,e))&&e.ended)return 0===e.length&&G(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&G(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(t){k(this,new S("_read()"))},C.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,e);var o=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?u:m;function s(t,e){l("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,h())}function u(){l("onend"),t.end()}i.endEmitted?r.nextTick(o):n.once("end",o),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var f=!1;function h(){l("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",d),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function d(e){l("ondata");var r=t.write(e);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==V(i.pipes,t))&&!f&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(e){l("onerror",e),m(),t.removeListener("error",p),0===a(t,"error")&&k(t,e)}function v(){t.removeListener("finish",y),m()}function y(){l("onfinish"),t.removeListener("close",v),m()}function m(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",p),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),t},C.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?M(this):i.reading||r.nextTick(D,this))),n},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(B,this),n},C.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(B,this),e},C.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(L,t,e))}(this,t)),t.paused=!1,this},C.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),!n.objectMode||null!==i&&void 0!==i)&&((n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause())))})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(t,e,n){n(new y("_write()"))},C.prototype._writev=null,C.prototype.end=function(t,e,n){var i=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),C.prototype.destroy=h.destroy,C.prototype._undestroy=h.undestroy,C.prototype._destroy=function(t,e){e(t)}},771:function(t,e,n){"use strict";var i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(494),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function v(t){var e=t[s];if(null!==e){var n=t[d].read();null!==n&&(t[f]=null,t[s]=null,t[u]=null,e(p(n,!1)))}}function y(t){r.nextTick(v,t)}var m=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i={get stream(){return this[d]},next:function(){var t=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[c]?n(t[c]):e(p(void 0,!0))}))}));var n,i=this[f];if(i)n=new Promise(function(t,e){return function(n,r){t.then((function(){e[l]?n(p(void 0,!0)):e[h](n,r)}),r)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));n=new Promise(this[h])}return this[f]=n,n}},o(i,Symbol.asyncIterator,(function(){return this})),o(i,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(p(void 0,!0))}))}))})),i),m);t.exports=function(t){var e,n=Object.create(g,(o(e={},d,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,l,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var r=n[d].read();r?(n[f]=null,n[s]=null,n[u]=null,t(p(r,!1))):(n[s]=t,n[u]=e)},writable:!0}),e));return n[f]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[u];return null!==e&&(n[f]=null,n[s]=null,n[u]=null,e(t)),void(n[c]=t)}var r=n[s];null!==r&&(n[f]=null,n[s]=null,n[u]=null,r(p(void 0,!0))),n[l]=!0})),t.on("readable",y.bind(null,n)),n}},914:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e=a.allocUnsafe(t>>>0),n=this.head,r=0;n;)c(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0===(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e0,(function(t){r||(r=t),t&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return e.reduce(l)}},322:function(t,e,n){"use strict";var r=n(833).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},919:function(t,e,n){t.exports=n(781)},313:function(t,e,n){"use strict";var r=n(118).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=f,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},121:function(t){function e(t){try{if(!n.g.localStorage)return!1}catch(t){return!1}var e=n.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,n){if(e("noDeprecation"))return t;var r=!1;return function(){if(!r){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),r=!0}return t.apply(this,arguments)}}},300:function(t){"use strict";t.exports=n(35713)},361:function(t){"use strict";t.exports=n(99054)},781:function(t){"use strict";t.exports=n(99054).EventEmitter},837:function(t){"use strict";t.exports=n(49857)}},s={};function u(t){var n=s[t];if(void 0!==n)return n.exports;var r=s[t]={exports:{}},i=!0;try{e[t](r,r.exports,u),i=!1}finally{i&&delete s[t]}return r.exports}u.ab="//";var l=u(562);t.exports=l}()},49857:function(t,e,n){var r=n(35713).Buffer,i=n(70718);!function(){var e={901:function(t){t.exports=function(t,n,r){if(t.filter)return t.filter(n,r);if(void 0===t||null===t)throw new TypeError;if("function"!=typeof n)throw new TypeError;for(var i=[],o=0;o-1?i(n):n}},112:function(t,e,n){"use strict";var r=n(517),i=n(91),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,a,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var f=function(){return s(r,o,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},91:function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return Function('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=n(449)(),h=Object.getPrototypeOf||function(t){return t.__proto__},d=s("async function* () {}"),p=d?d.prototype:r,v=p?p.prototype:r,y="undefined"===typeof Uint8Array?r:h(Uint8Array),m={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":s("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":v?h(v):r,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":s("function* () {}"),"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(517),w=n(793),S=b.call(Function.call,Array.prototype.concat),_=b.call(Function.apply,Array.prototype.splice),k=b.call(Function.call,String.prototype.replace),x=b.call(Function.call,String.prototype.slice),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(t){var e=x(t,0,1),n=x(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return k(t,E,(function(t,e,n,i){r[r.length]=n?k(i,C,"$1"):e||t})),r},P=function(t,e){var n,r=t;if(w(g,r)&&(r="%"+(n=g[r])[0]+"%"),w(m,r)){var o=m[r];if("undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=A(t),r=n.length>0?n[0]:"",o=P("%"+r+"%",e),s=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],_(n,S([0,1],f)));for(var h=1,d=!0;h=n.length){var g=u(c,p);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[p]}else d=w(c,p),c=c[p];d&&!l&&(m[s]=c)}}return c}},219:function(t){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString;t.exports=function(t,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var a=0;a1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=C(t),r=n.length>0?n[0]:"",o=A("%"+r+"%",e),s=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],S(n,w([0,1],f)));for(var h=1,d=!0;h=n.length){var g=u(c,p);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[p]}else d=b(c,p),c=c[p];d&&!l&&(v[s]=c)}}return c}},449:function(t,e,r){"use strict";var i=n.g.Symbol,o=r(545);t.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&o())))}},545:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},793:function(t,e,n){"use strict";var r=n(517);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},526:function(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}}},312:function(t){"use strict";var e="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,n=Object.prototype.toString,r=function(t){return!(e&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===n.call(t)},i=function(t){return!!r(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==n.call(t)&&"[object Function]"===n.call(t.callee)},o=function(){return r(arguments)}();r.isLegacyArguments=i,t.exports=o?r:i},906:function(t){"use strict";var e=Object.prototype.toString,n=Function.prototype.toString,r=/^\s*(?:function)?\*/,i="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(t){}}(),s=a?o(a):{};t.exports=function(t){return"function"===typeof t&&(!!r.test(n.call(t))||(i?o(t)===s:"[object GeneratorFunction]"===e.call(t)))}},234:function(t,e,r){"use strict";var i=r(219),o=r(627),a=r(749),s=a("Object.prototype.toString"),u=r(449)()&&"symbol"===typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n-1}return!!d&&function(t){var e=!1;return i(h,(function(n,r){if(!e)try{e=n.call(t)===r}catch(t){}})),e}(t)}},982:function(t,e,n){"use strict";var r=n(879)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(t){r=null}t.exports=r},536:function(t){t.exports=function(t){return t instanceof r}},3:function(t,e,n){"use strict";var r=n(312),i=n(906),o=n(715),a=n(234);function s(t){return t.call.bind(t)}var u="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var v=s(Symbol.prototype.valueOf);function y(t,e){if("object"!==typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function m(t){return"[object Map]"===l(t)}function g(t){return"[object Set]"===l(t)}function b(t){return"[object WeakMap]"===l(t)}function w(t){return"[object WeakSet]"===l(t)}function S(t){return"[object ArrayBuffer]"===l(t)}function _(t){return"undefined"!==typeof ArrayBuffer&&(S.working?S(t):t instanceof ArrayBuffer)}function k(t){return"[object DataView]"===l(t)}function x(t){return"undefined"!==typeof DataView&&(k.working?k(t):t instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!==typeof Promise&&t instanceof Promise||null!==t&&"object"===typeof t&&"function"===typeof t.then&&"function"===typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||x(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},m.working="undefined"!==typeof Map&&m(new Map),e.isMap=function(t){return"undefined"!==typeof Map&&(m.working?m(t):t instanceof Map)},g.working="undefined"!==typeof Set&&g(new Set),e.isSet=function(t){return"undefined"!==typeof Set&&(g.working?g(t):t instanceof Set)},b.working="undefined"!==typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!==typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},S.working="undefined"!==typeof ArrayBuffer&&S(new ArrayBuffer),e.isArrayBuffer=_,k.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var E="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(t){return"[object SharedArrayBuffer]"===l(t)}function A(t){return"undefined"!==typeof E&&("undefined"===typeof C.working&&(C.working=C(new E)),C.working?C(t):t instanceof E)}function P(t){return y(t,f)}function T(t){return y(t,h)}function O(t){return y(t,d)}function M(t){return u&&y(t,p)}function R(t){return c&&y(t,v)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)},e.isNumberObject=P,e.isStringObject=T,e.isBooleanObject=O,e.isBigIntObject=M,e.isSymbolObject=R,e.isBoxedPrimitive=function(t){return P(t)||T(t)||O(t)||M(t)||R(t)},e.isAnyArrayBuffer=function(t){return"undefined"!==typeof Uint8Array&&(_(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},650:function(t,e,n){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=i)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}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&e._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,t,r.depth)}function l(t,e){var n=c.styles[e];return n?"\x1b["+c.colors[n][0]+"m"+t+"\x1b["+c.colors[n][1]+"m":t}function f(t,e){return t}function h(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 b(i)||(i=h(t,i,r)),i}var o=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(g(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(m(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),x(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(S(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return d(n)}var c,l="",f=!1,_=["{","}"];(v(n)&&(f=!0,_=["[","]"]),E(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return S(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),x(n)&&(l=" "+d(n)),0!==a.length||f&&0!=n.length?r<0?S(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=f?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,l,_)):_[0]+l+_[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),O(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(n)?h(t,u.value,null):h(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function v(t){return Array.isArray(t)}function y(t){return"boolean"===typeof t}function m(t){return null===t}function g(t){return"number"===typeof t}function b(t){return"string"===typeof t}function w(t){return void 0===t}function S(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"===typeof t&&null!==t}function k(t){return _(t)&&"[object Date]"===C(t)}function x(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function E(t){return"function"===typeof t}function C(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(s.test(t)){var n=i.pid;a[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else a[t]=function(){};return a[t]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(3),e.isArray=v,e.isBoolean=y,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=w,e.isRegExp=S,e.types.isRegExp=S,e.isObject=_,e.isDate=k,e.types.isDate=k,e.isError=x,e.types.isNativeError=x,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n(536);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),P[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",T(),e.format.apply(e,arguments))},e.inherits=n(526),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var M="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(M&&t[M]){var e;if("function"!==typeof(e=t[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,M,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=C(t),r=n.length>0?n[0]:"",i=A("%"+r+"%",e),o=i.name,s=i.value,c=!1,l=i.alias;l&&(r=l[0],_(n,S([0,1],l)));for(var f=1,h=!0;f=n.length){var p=u(s,d);if(h=!!p,!e&&!(d in s))throw new a("base intrinsic for "+t+" exists, but the property is not available.");s=h&&"get"in p&&!("originalValue"in p.get)?p.get:s[d]}else h=w(s,d),s=s[d];h&&!c&&(m[o]=s)}}return s}},850:function(t,e,n){"use strict";var r=n(227)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(t){r=null}t.exports=r},627:function(t,e,r){"use strict";var i=r(901);t.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],(function(t){return"function"===typeof n.g[t]}))}}},o={};function a(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}},i=!0;try{e[t](r,r.exports,a),i=!1}finally{i&&delete o[t]}return r.exports}a.ab="//";var s=a(650);t.exports=s}()},18877:function(module){var __dirname="/";(function(){var __webpack_modules__={742:function _(__unused_webpack_module,exports){var indexOf=function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n-1e3&&t<1e3||_.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var r=t<0?-C(-t):C(t);if(r!==t){var i=String(r),o=g.call(e,i.length+1);return b.call(i,n,"$&_")+"."+b.call(b.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(e,n,"$&_")}var B=n(24654).custom,D=B&&G(B)?B:null;function L(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function N(t){return b.call(String(t),/"/g,""")}function F(t){return"[object Array]"===H(t)&&(!M||!("object"===typeof t&&M in t))}function G(t){if(O)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!T)return!1;try{return T.call(t),!0}catch(e){}return!1}t.exports=function t(e,n,r,i){var s=n||{};if(V(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!V(s,"customInspect")||s.customInspect;if("boolean"!==typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=s.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return z(e,s);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var w=String(e);return v?j(e,w):w}if("bigint"===typeof e){var _=String(e)+"n";return v?j(e,_):_}var C="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=C&&C>0&&"object"===typeof e)return F(e)?"[Array]":"[Object]";var P=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=x.call(Array(t.indent+1)," ")}return{base:n,prev:x.call(Array(e+1),n)}}(s,r);if("undefined"===typeof i)i=[];else if(W(i,e)>=0)return"[Circular]";function B(e,n,o){if(n&&(i=E.call(i)).push(n),o){var a={depth:s.depth};return V(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,i)}return t(e,s,r+1,i)}if("function"===typeof e){var U=function(t){if(t.name)return t.name;var e=m.call(y.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),q=Q(e,B);return"[Function"+(U?": "+U:" (anonymous)")+"]"+(q.length>0?" { "+x.call(q,", ")+" }":"")}if(G(e)){var Z=O?b.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(e);return"object"!==typeof e||O?Z:Y(Z)}if(function(t){if(!t||"object"!==typeof t)return!1;if("undefined"!==typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"===typeof t.nodeName&&"function"===typeof t.getAttribute}(e)){for(var $="<"+S.call(String(e.nodeName)),tt=e.attributes||[],et=0;et"}if(F(e)){if(0===e.length)return"[]";var nt=Q(e,B);return P&&!function(t){for(var e=0;e=0)return!1;return!0}(nt)?"["+J(nt,P)+"]":"[ "+x.call(nt,", ")+" ]"}if(function(t){return"[object Error]"===H(t)&&(!M||!("object"===typeof t&&M in t))}(e)){var rt=Q(e,B);return"cause"in e&&!R.call(e,"cause")?"{ ["+String(e)+"] "+x.call(k.call("[cause]: "+B(e.cause),rt),", ")+" }":0===rt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(rt,", ")+" }"}if("object"===typeof e&&u){if(D&&"function"===typeof e[D])return e[D]();if("symbol"!==u&&"function"===typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!==typeof t)return!1;try{o.call(t);try{c.call(t)}catch($){return!0}return t instanceof Map}catch(e){}return!1}(e)){var it=[];return a.call(e,(function(t,n){it.push(B(n,e,!0)+" => "+B(t,e))})),X("Map",o.call(e),it,P)}if(function(t){if(!c||!t||"object"!==typeof t)return!1;try{c.call(t);try{o.call(t)}catch(e){return!0}return t instanceof Set}catch(n){}return!1}(e)){var ot=[];return l.call(e,(function(t){ot.push(B(t,e))})),X("Set",c.call(e),ot,P)}if(function(t){if(!f||!t||"object"!==typeof t)return!1;try{f.call(t,f);try{h.call(t,h)}catch($){return!0}return t instanceof WeakMap}catch(e){}return!1}(e))return K("WeakMap");if(function(t){if(!h||!t||"object"!==typeof t)return!1;try{h.call(t,h);try{f.call(t,f)}catch($){return!0}return t instanceof WeakSet}catch(e){}return!1}(e))return K("WeakSet");if(function(t){if(!d||!t||"object"!==typeof t)return!1;try{return d.call(t),!0}catch(e){}return!1}(e))return K("WeakRef");if(function(t){return"[object Number]"===H(t)&&(!M||!("object"===typeof t&&M in t))}(e))return Y(B(Number(e)));if(function(t){if(!t||"object"!==typeof t||!A)return!1;try{return A.call(t),!0}catch(e){}return!1}(e))return Y(B(A.call(e)));if(function(t){return"[object Boolean]"===H(t)&&(!M||!("object"===typeof t&&M in t))}(e))return Y(p.call(e));if(function(t){return"[object String]"===H(t)&&(!M||!("object"===typeof t&&M in t))}(e))return Y(B(String(e)));if(!function(t){return"[object Date]"===H(t)&&(!M||!("object"===typeof t&&M in t))}(e)&&!function(t){return"[object RegExp]"===H(t)&&(!M||!("object"===typeof t&&M in t))}(e)){var at=Q(e,B),st=I?I(e)===Object.prototype:e instanceof Object||e.constructor===Object,ut=e instanceof Object?"":"null prototype",ct=!st&&M&&Object(e)===e&&M in e?g.call(H(e),8,-1):ut?"Object":"",lt=(st||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ct||ut?"["+x.call(k.call([],ct||[],ut||[]),": ")+"] ":"");return 0===at.length?lt+"{}":P?lt+"{"+J(at,P)+"}":lt+"{ "+x.call(at,", ")+" }"}return String(e)};var U=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return U.call(t,e)}function H(t){return v.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return z(g.call(t,0,e.maxStringLength),e)+r}return L(b.call(b.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,q),"single",e)}function q(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function Y(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function X(t,e,n,r){return t+" ("+e+") {"+(r?J(n,r):x.call(n,", "))+"}"}function J(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+x.call(t,","+n)+"\n"+e.prev}function Q(t,e){var n=F(t),r=[];if(n){r.length=t.length;for(var i=0;i2&&(i.push([n].concat(o.splice(0,2))),a="l",n="m"==n?"l":"L");;){if(o.length==e[a])return o.unshift(n),i.push(o);if(o.length-1?t.split(","):t},c=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&null!==(s=a.exec(o))&&f=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e="undefined"===typeof t.charset?a.charset:t.charset;return{allowDots:"undefined"===typeof t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:a.comma,decoder:"function"===typeof t.decoder?t.decoder:a.decoder,delimiter:"string"===typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var l="string"===typeof t?function(t,e){var n,c={},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,f=e.parameterLimit===1/0?void 0:e.parameterLimit,h=l.split(e.delimiter,f),d=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(y=o(y)?[y]:y),i.call(c,v)?c[v]=r.combine(c[v],y):c[v]=y}return c}(t,n):t,f=n.plainObjects?Object.create(null):{},h=Object.keys(l),d=0;d0?E.join(",")||null:void 0}];else if(u(d))j=d;else{var D=Object.keys(E);j=y?D.sort(y):D}for(var L=a&&u(E)&&1===E.length?n+"[]":n,N=0;N0?S+w:""}},48714:function(t,e,n){"use strict";var r=n(33995),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!==typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r=0||(i[n]=t[n]);return i}var u=["onClick","reloadDocument","replace","state","target","to"];function c(t){var e=t.basename,n=t.children,a=t.window,s=(0,r.useRef)();null==s.current&&(s.current=(0,i.lX)({window:a}));var u=s.current,c=(0,r.useState)({action:u.action,location:u.location}),l=c[0],f=c[1];return(0,r.useLayoutEffect)((function(){return u.listen(f)}),[u]),(0,r.createElement)(o.F0,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:u})}var l=(0,r.forwardRef)((function(t,e){var n=t.onClick,c=t.reloadDocument,l=t.replace,f=void 0!==l&&l,h=t.state,d=t.target,p=t.to,v=s(t,u),y=(0,o.oQ)(p),m=function(t,e){var n=void 0===e?{}:e,a=n.target,s=n.replace,u=n.state,c=(0,o.s0)(),l=(0,o.TH)(),f=(0,o.WU)(t);return(0,r.useCallback)((function(e){if(0===e.button&&(!a||"_self"===a)&&!function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(e)){e.preventDefault();var n=!!s||(0,i.Ep)(l)===(0,i.Ep)(f);c(t,{replace:n,state:u})}}),[l,c,f,s,u,a,t])}(p,{replace:f,state:h,target:d});return(0,r.createElement)("a",a({},v,{href:y,onClick:function(t){n&&n(t),t.defaultPrevented||c||m(t)},ref:e,target:d}))}))},41646:function(t,e,n){"use strict";n.d(e,{AW:function(){return I},F0:function(){return j},Fg:function(){return M},TH:function(){return E},UO:function(){return P},WU:function(){return T},Z5:function(){return B},j3:function(){return R},oQ:function(){return k},s0:function(){return C}});var r=n(84679),i=n(30573),o=n(51387),a=(0,o.createContext)(null);var s=(0,o.createContext)(null);var u=(0,o.createContext)({outlet:null,matches:[]});function c(t,e){if(!t)throw new Error(e)}function l(t,e,n){void 0===n&&(n="/");var r=g(("string"===typeof e?(0,i.cP)(e):e).pathname||"/",n);if(null==r)return null;var o=f(t);!function(t){t.sort((function(t,e){return t.score!==e.score?e.score-t.score:function(t,e){var n=t.length===e.length&&t.slice(0,-1).every((function(t,n){return t===e[n]}));return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map((function(t){return t.childrenIndex})),e.routesMeta.map((function(t){return t.childrenIndex})))}))}(o);for(var a=null,s=0;null==a&&s0&&(!0===t.index&&c(!1),f(t.children,e,s,a)),(null!=t.path||t.index)&&e.push({path:a,score:p(a,t.index),routesMeta:s})})),e}var h=/^:\w+$/,d=function(t){return"*"===t};function p(t,e){var n=t.split("/"),r=n.length;return n.some(d)&&(r+=-2),e&&(r+=2),n.filter((function(t){return!d(t)})).reduce((function(t,e){return t+(h.test(e)?3:""===e?1:10)}),r)}function v(t,e){for(var n=t.routesMeta,r={},i="/",o=[],a=0;a=0?e[s]:"/"}var c=function(t,e){void 0===e&&(e="/");var n="string"===typeof t?(0,i.cP)(t):t,r=n.pathname,o=n.search,a=void 0===o?"":o,s=n.hash,u=void 0===s?"":s,c=r?r.startsWith("/")?r:function(t,e){var n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((function(t){".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(r,e):e;return{pathname:c,search:S(a),hash:_(u)}}(o,r);return a&&"/"!==a&&a.endsWith("/")&&!c.pathname.endsWith("/")&&(c.pathname+="/"),c}function g(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;var n=t.charAt(e.length);return n&&"/"!==n?null:t.slice(e.length)||"/"}var b=function(t){return t.join("/").replace(/\/\/+/g,"/")},w=function(t){return t.replace(/\/+$/,"").replace(/^\/*/,"/")},S=function(t){return t&&"?"!==t?t.startsWith("?")?t:"?"+t:""},_=function(t){return t&&"#"!==t?t.startsWith("#")?t:"#"+t:""};function k(t){x()||c(!1);var e=(0,o.useContext)(a),n=e.basename,r=e.navigator,s=T(t),u=s.hash,l=s.pathname,f=s.search,h=l;if("/"!==n){var d=function(t){return""===t||""===t.pathname?"/":"string"===typeof t?(0,i.cP)(t).pathname:t.pathname}(t),p=null!=d&&d.endsWith("/");h="/"===l?n+(p?"/":""):b([n,l])}return r.createHref({pathname:h,search:f,hash:u})}function x(){return null!=(0,o.useContext)(s)}function E(){return x()||c(!1),(0,o.useContext)(s).location}function C(){x()||c(!1);var t=(0,o.useContext)(a),e=t.basename,n=t.navigator,r=(0,o.useContext)(u).matches,i=E().pathname,s=JSON.stringify(r.map((function(t){return t.pathnameBase}))),l=(0,o.useRef)(!1);return(0,o.useEffect)((function(){l.current=!0})),(0,o.useCallback)((function(t,r){if(void 0===r&&(r={}),l.current)if("number"!==typeof t){var o=m(t,JSON.parse(s),i);"/"!==e&&(o.pathname=b([e,o.pathname])),(r.replace?n.replace:n.push)(o,r.state)}else n.go(t)}),[e,n,s,i])}var A=(0,o.createContext)(null);function P(){var t=(0,o.useContext)(u).matches,e=t[t.length-1];return e?e.params:{}}function T(t){var e=(0,o.useContext)(u).matches,n=E().pathname,r=JSON.stringify(e.map((function(t){return t.pathnameBase})));return(0,o.useMemo)((function(){return m(t,JSON.parse(r),n)}),[t,r,n])}function O(t,e){return void 0===e&&(e=[]),null==t?null:t.reduceRight((function(n,r,i){return(0,o.createElement)(u.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:e.concat(t.slice(0,i+1))}})}),null)}function M(t){var e=t.to,n=t.replace,r=t.state;x()||c(!1);var i=C();return(0,o.useEffect)((function(){i(e,{replace:n,state:r})})),null}function R(t){return function(t){var e=(0,o.useContext)(u).outlet;return e?(0,o.createElement)(A.Provider,{value:t},e):e}(t.context)}function I(t){c(!1)}function j(t){var e=t.basename,n=void 0===e?"/":e,r=t.children,u=void 0===r?null:r,l=t.location,f=t.navigationType,h=void 0===f?i.aU.Pop:f,d=t.navigator,p=t.static,v=void 0!==p&&p;x()&&c(!1);var y=w(n),m=(0,o.useMemo)((function(){return{basename:y,navigator:d,static:v}}),[y,d,v]);"string"===typeof l&&(l=(0,i.cP)(l));var b=l,S=b.pathname,_=void 0===S?"/":S,k=b.search,E=void 0===k?"":k,C=b.hash,A=void 0===C?"":C,P=b.state,T=void 0===P?null:P,O=b.key,M=void 0===O?"default":O,R=(0,o.useMemo)((function(){var t=g(_,y);return null==t?null:{pathname:t,search:E,hash:A,state:T,key:M}}),[y,_,E,A,T,M]);return null==R?null:(0,o.createElement)(a.Provider,{value:m},(0,o.createElement)(s.Provider,{children:u,value:{location:R,navigationType:h}}))}function B(t){var e=t.children,n=t.location;return function(t,e){x()||c(!1);var n,r=(0,o.useContext)(u).matches,a=r[r.length-1],s=a?a.params:{},f=(a&&a.pathname,a?a.pathnameBase:"/"),h=(a&&a.route,E());if(e){var d,p="string"===typeof e?(0,i.cP)(e):e;"/"===f||(null==(d=p.pathname)?void 0:d.startsWith(f))||c(!1),n=p}else n=h;var v=n.pathname||"/",y=l(t,{pathname:"/"===f?v:v.slice(f.length)||"/"});return O(y&&y.map((function(t){return Object.assign({},t,{params:Object.assign({},s,t.params),pathname:b([f,t.pathname]),pathnameBase:"/"===t.pathnameBase?f:b([f,t.pathnameBase])})})),r)}(D(e),n)}function D(t){var e=[];return o.Children.forEach(t,(function(t){if((0,o.isValidElement)(t))if(t.type!==o.Fragment){t.type!==I&&c(!1);var n={caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path};t.props.children&&(n.children=D(t.props.children)),e.push(n)}else e.push.apply(e,D(t.props.children))})),e}},44836:function(t,e,n){var r=n(35713),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.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},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},7774:function(t,e,n){"use strict";var r=n(67760),i=n(34925),o=n(28678),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),f=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),v=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return c(t,r)}else if(u){if(e)return h(e,r)}else if(n)return function(t,e){var n=v(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return f(t,r)}else if(u){if(e)return p(e,r)}else if(n)return function(t,e){return!!v(t,e)}(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(t||(t=new s),l(t,r,i)):u?(e||(e=new u),d(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=v(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},67760:function(t,e,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(P){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(t){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=n(62612)(),h=Object.getPrototypeOf||function(t){return t.__proto__},d={},p="undefined"===typeof Uint8Array?r:h(Uint8Array),v={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?h(h([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?h(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=s("async function () {}");else if("%GeneratorFunction%"===e)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=s("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=h(i.prototype))}return v[e]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(73192),b=n(42840),w=g.call(Function.call,Array.prototype.concat),S=g.call(Function.apply,Array.prototype.splice),_=g.call(Function.call,String.prototype.replace),k=g.call(Function.call,String.prototype.slice),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,C=function(t){var e=k(t,0,1),n=k(t,-1);if("%"===e&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(t,x,(function(t,e,n,i){r[r.length]=n?_(i,E,"$1"):e||t})),r},A=function(t,e){var n,r=t;if(b(m,r)&&(r="%"+(n=m[r])[0]+"%"),b(v,r)){var o=v[r];if(o===d&&(o=y(r)),"undefined"===typeof o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new a('"allowMissing" argument must be a boolean');var n=C(t),r=n.length>0?n[0]:"",o=A("%"+r+"%",e),s=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],S(n,w([0,1],f)));for(var h=1,d=!0;h=n.length){var g=u(c,p);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[p]}else d=b(c,p),c=c[p];d&&!l&&(v[s]=c)}}return c}},62612:function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(77342);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},77342:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},18675:function(t){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var n,r=t.HTMLElement||t.Element,i={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},o=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,a=(n=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==u(arguments[0])?p.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):i.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(u(arguments[0])?i.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!==typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==u(arguments[0])){var t=arguments[0].left,e=arguments[0].top;p.call(this,this,"undefined"===typeof t?this.scrollLeft:~~t,"undefined"===typeof e?this.scrollTop:~~e)}else{if("number"===typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!==typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==u(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==u(arguments[0])){var n=h(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==e.body?(p.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(n).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function u(t){if(null===t||"object"!==typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"===typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+a1?1:s,n=.5*(1-Math.cos(Math.PI*a)),r=e.startX+(e.x-e.startX)*n,i=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,i),r===e.x&&i===e.y||t.requestAnimationFrame(d.bind(t,e))}function p(n,r,a){var u,c,l,f,h=o();n===e.body?(u=t,c=t.scrollX||t.pageXOffset,l=t.scrollY||t.pageYOffset,f=i.scroll):(u=n,c=n.scrollLeft,l=n.scrollTop,f=s),d({scrollable:u,method:f,startTime:h,startX:c,startY:l,x:r,y:a})}}}}()},45738:function(t,e,n){"use strict";n.r(e),n.d(e,{assoc:function(){return f},deepMerge:function(){return S},dissoc:function(){return v},get:function(){return u},merge:function(){return b},update:function(){return g}});var r=Array.prototype.slice;function i(t){return"object"===typeof t}function o(t){if(Array.isArray(t))return t.slice();var e={};for(var n in t)e[n]=t[n];return e}function a(t,e,n){return i(t)&&null!==t&&e in t?t[e]:n}function s(t,e,n){var r=e[0],i=e.slice(1);return a(t,r)&&i.length?s(t[r],i,n):a(t,r,n)}function u(t,e,n){return Array.isArray(e)?s(t,e,n):a(t,e,n)}function c(t,e,n){if(t[e]===n)return t;var r=o(t);return r[e]=n,r}function l(t,e,n){if(s(t,e)===n)return t;var r=e[0],i=e.slice(1),a=o(t);return i.length?a[r]=l(r in a?a[r]:{},i,n):a[r]=n,a}function f(t){for(var e,n,r=arguments,i=arguments.length,o=t,a=1;a>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},33112:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:1;this.pointer=0,this.emitterPool=[],this.poolSize=Math.max(1,e);for(var n=0;n=m.RU?t.playIntensiveClickAnimation():t.playHappyClickAnimation()),t.isSadState(e)&&t.playSadClickAnimation())}},n}(w.BaseComponent);function zr(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n5&&(a.showLowEnergyTooltip(),a.idleClickCounter=0)))},this.handleClick=function(t){var e=t.target;!a.tooltipsStore.nodeIsTarget(e)&&a.tooltipsStore.isExcludeNode(e)||(a.globalWindow.clearTimeout(a.timeoutId),a.globalWindow.removeEventListener("click",a.handleClick),a.tooltipsStore.hideTooltip(),a.isTooltipVisible=!1,a.idleClickCounter=0)}}var e=t.prototype;return e.init=function(){this.clickerGameEvents.subscribeOnEvent(_.b.AnyTap,this.handleTap),this.clickerStateStore.subscribe(this.handleClickerStateChanged)},e.showNextDailyGameTooltip=function(){var t=this.globalWindow.document.getElementById(oi.ou.DailyGameRadar),e=this.globalWindow.document.getElementById(oi.ou.GameCanvas);t&&e&&(this.tooltipsStore.setActiveTooltip(oi.ou.DailyGameRadar,t,[e]),this.activateHideTooltipByTimeout(),this.activatePreventClick()),this.isTooltipVisible=!0},e.showStatisticsLockedTooltip=function(){var t=this.globalWindow.document.getElementById(oi.ou.ResultsBottomBarStatisticsButton),e=this.globalWindow.document.getElementById(oi.ou.GameCanvas);t&&e&&(this.tooltipsStore.setActiveTooltip(oi.ou.ResultsBottomBarStatisticsButton,t,[e]),this.activateHideTooltipByTimeout(),this.activatePreventClick()),this.isTooltipVisible=!0},e.showLowEnergyTooltip=function(){var t=this.clickerStateStore.isEmptyCharges()?oi.ou.RechargeWithTasksTarget:oi.ou.ClickerGameRecharge,e=this.globalWindow.document.getElementById(t),n=this.globalWindow.document.getElementById(oi.ou.GameCanvas);e&&n&&(this.tooltipsStore.setActiveTooltip(t,e,[n]),this.activateHideTooltipByTimeout(),this.activatePreventClick()),this.prevBatteryLevel=this.clickerStateStore.getBatteryChargeLevelInPercent(),this.isTooltipVisible=!0},e.activatePreventClick=function(){this.globalWindow.addEventListener("click",this.handleClick,!0)},e.activateHideTooltipByTimeout=function(){var t=this;this.timeoutId=this.globalWindow.setTimeout((function(){t.tooltipsStore.hideTooltip(),t.isTooltipVisible=!1,t.idleClickCounter=0,t.globalWindow.removeEventListener("click",t.handleClick)}),oi.IV)},t}();(0,b.Lj)(Ji,g.V.tooltipsStore,g.V.clickerStateStore,g.V.clickerGameEvents,g.V.onboardingService,g.V.globalWindow);var Qi=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.globalWindow=e,this.document=this.globalWindow.document,this.callbacksMap=new Map}var e=t.prototype;return e.onVisibilityChange=function(t){var e=this,n=function(){var n=e,r=e.globalWindow.setTimeout((function(){return t(n.isFocusedOrDocumentVisible())}),100),i=e.callbacksMap.get(t);i&&e.callbacksMap.set(t,{timerId:r,handler:i.handler})};if(this.callbacksMap.set(t,{timerId:-1,handler:n}),n(),this.isSupportVisibilityApi()){var r=this.getBrowserVisibilityEventName();this.document.addEventListener(r,n,!1)}else this.globalWindow.addEventListener("focus",n),this.globalWindow.addEventListener("blur",n)},e.offVisibilityChange=function(t){var e=this.callbacksMap.get(t);if(e){this.globalWindow.clearTimeout(e.timerId);var n=e.handler;if(this.isSupportVisibilityApi()){var r=this.getBrowserVisibilityEventName();this.document.removeEventListener(r,n,!1)}else this.globalWindow.removeEventListener("focus",n),this.globalWindow.removeEventListener("blur",n);this.callbacksMap.delete(t)}},e.getBrowserVisibilityEventName=function(){return"undefined"!==typeof this.document.hidden?"visibilitychange":"undefined"!==typeof this.document.msHidden?"msvisibilitychange":"undefined"!==typeof this.document.webkitHidden?"webkitvisibilitychange":"visibilitychange"},e.getBrowserDocumentHiddenProp=function(){return"undefined"!==typeof this.document.hidden?"hidden":"undefined"!==typeof this.document.msHidden?"msHidden":"undefined"!==typeof this.document.webkitHidden?"webkitHidden":""},e.isFocusedOrDocumentVisible=function(){return this.isSupportVisibilityApi()?this.isDocumentVisible():document.hasFocus()},e.isDocumentVisible=function(){var t=this.getBrowserDocumentHiddenProp();return!t||!this.document[t]},e.isSupportVisibilityApi=function(){return!(!document.visibilityState&&!document.webkitVisibilityState)},t}();(0,b.Lj)(Qi,g.V.globalWindow);var Zi=n(46533);function $i(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function to(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){$i(o,r,i,a,s,"next",t)}function s(t){$i(o,r,i,a,s,"throw",t)}a(void 0)}))}}function eo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function no(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var io=function(){function t(e,n,r,i,o,a,s,u,c,l){var f=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.clickerStateStore=e,this.loggerService=n,this.trackingService=r,this.improvementsStore=i,this.projectApi=o,this.storage=a,this.clickerIncomeUpdater=s,this.errorsService=u,this.gameStatusService=c,this.projectDate=l,this.syncGameOperations=function(){0!==f.queueOperations.length&&(f.debouncedSyncOperations.cancel(),f.fetchGameSync())};var h=this;this.fetchGameSync=to(Rt().mark((function t(){var e,n,r,i,o;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!h.clickerStateStore.isLoadingFetchStatus()&&!h.clickerStateStore.isErrorFetchStatus()){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,h.storage.removeItem(oi.dR.GameOperations),h.clickerStateStore.setLoadingFetchStatus(),e=h.queueOperations.length,n=h.getPreparedSyncOperations(),t.next=9,h.projectApi.gameSync(n);case 9:r=t.sent.payload,h.projectDate.setServerDate(r.actualAt),i=r.improvements,o=ro(r,["improvements"]),h.clickerStateStore.setState(o),h.improvementsStore.setCurrentIncomePerHour(r.totalIncomePerHour),h.improvementsStore.setImprovements(i),h.queueOperations=h.queueOperations.slice(e),h.clickerStateStore.setIdleFetchStatus(),t.next=24;break;case 19:throw t.prev=19,t.t0=t.catch(2),h.loggerService.logHttpError(t.t0),h.errorsService.isErrorRecalculationLeagues(t.t0)?(h.gameStatusService.setStatusLeaguesRecalculation(),h.clickerStateStore.setIdleFetchStatus(),h.restoreClickerState()):h.clickerStateStore.setErrorFetchStatus(),t.t0;case 24:case"end":return t.stop()}}),t,null,[[2,19]])}))),this.debouncedSyncOperations=Qe()(this.syncGameOperations,3e3),this.queueOperations=[]}var e=t.prototype;return e.pushSpendEnergyOperation=function(t){this.clickerStateStore.isEnoughEnergyToSpend(t)&&(this.clickerStateStore.spendEnergy(t),this.pushOperation({type:tr.C8.SpendEnergy,energyToSpend:t,at:this.getCurrentDate()}),this.saveOperationsInStorage(),this.debouncedSyncOperations())},e.pushUpgradeImprovementOperation=function(t){var e=this;return to(Rt().mark((function n(){var r;return Rt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=!e.improvementsStore.hasBoughtImprovement()&&e.improvementsStore.isFirstImprovement(t),e.pushOperation({type:tr.C8.UpgradeImprovement,improvementId:t,at:e.getCurrentDate()}),n.next=4,e.fetchGameSync();case 4:r&&e.trackingService.trackClickToFirstImprovement(Ni.ur.Buy);case 5:case"end":return n.stop()}}),n)})))()},e.pushUpgradeImprovementWithoutUnfreezeOperation=function(t){var e=this;return to(Rt().mark((function n(){var r;return Rt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=!e.improvementsStore.hasBoughtImprovement()&&e.improvementsStore.isFirstImprovement(t),e.pushOperation({type:tr.C8.UpgradeImprovementWithoutUnfreeze,improvementId:t,at:e.getCurrentDate()}),n.next=4,e.fetchGameSync();case 4:r&&e.trackingService.trackClickToFirstImprovement(Ni.ur.Buy);case 5:case"end":return n.stop()}}),n)})))()},e.pushRechargeEnergyOperation=function(){var t=this;return to(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.pushOperation({type:tr.C8.RechargeEnergy,at:t.getCurrentDate()}),e.next=3,t.fetchGameSync();case 3:t.trackingService.trackRechargeEnergy();case 4:case"end":return e.stop()}}),e)})))()},e.init=function(){var t=this;return to(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.queueOperations=t.getOperationListFromStorage(),e.next=3,t.fetchGameSync();case 3:t.clickerIncomeUpdater.startUpdateGame();case 4:case"end":return e.stop()}}),e)})))()},e.pushOperation=function(t){this.queueOperations.push(t)},e.restoreClickerState=function(){var e=this;this.queueOperations.forEach((function(n){t.isSpendEnergyOperation(n)&&(e.clickerStateStore.addEnergy(n.energyToSpend),e.clickerStateStore.decreasePoints(n.energyToSpend*e.clickerStateStore.getMultiplier())),t.isRechargeEnergyOperation(n)&&e.clickerStateStore.addEnergyChargeCount(1)})),this.queueOperations=[]},e.getCurrentDate=function(){return this.projectDate.date.toISOString()},e.getPreparedSyncOperations=function(){for(var e=[],n=[],r=0;r0||n.payload.tickets.length>0)&&t.giftsStore.setActiveTabUserGifts(),t.giftsStore.setGifts(n.payload.gifts),t.giftsStore.setTickets(n.payload.tickets),t.giftsStore.setHasNewGifts(t.giftsStore.getHasNewGiftsByGiftList()),t.giftsStore.setSuccessFetchStatus(),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(0),t.loggerService.logHttpError(e.t0),t.errorsService.isErrorRecalculationLeagues(e.t0)?t.gameStatusService.setStatusLeaguesRecalculation():(t.giftsStore.setErrorFetchStatus(),t.giftsStore.setErrorFetchData(e.t0));case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))()},e.onNewGiftViewIntersection=function(t){this.giftsStore.onNewGiftViewIntersection(t)},t}();function wo(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}(0,b.Lj)(bo,g.V.giftsStore,g.V.projectApi,g.V.loggerService,g.V.platformService,g.V.trackingService,g.V.errorsService,g.V.gameStatusService);var So=function(){function t(e,n,r,i,o,a){var s=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.projectApi=e,this.improvementsStore=n,this.loggerService=r,this.trackingService=i,this.errorsService=o,this.gameStatusService=a,this.setDetailImprovementId=function(t){!s.improvementsStore.hasBoughtImprovement()&&s.improvementsStore.isFirstImprovement(t)&&s.trackingService.trackClickToFirstImprovement(Ni.ur.Upgrade),s.improvementsStore.setDetailImprovementId(t)},this.setImprovementFrozenUntilNowById=function(t){s.improvementsStore.setImprovementFrozenUntilNowById(t)},this.clearDetailImprovementId=function(){s.improvementsStore.setDetailImprovementId(null)}}var e=t.prototype;return e.fetchImprovementsStatic=function(){var t,e=this;return(t=Rt().mark((function t(){var n;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.improvementsStore.setLoadingFetchStatus(),e.improvementsStore.clearErrorFetchData(),t.next=5,e.projectApi.fetchImprovementsStatic();case 5:n=t.sent,e.improvementsStore.setImprovementsStatic(n.payload.improvements),e.improvementsStore.setSuccessFetchStatus(),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(0),e.loggerService.logHttpError(t.t0),e.errorsService.isErrorRecalculationLeagues(t.t0)?e.gameStatusService.setStatusLeaguesRecalculation():(e.improvementsStore.setErrorFetchStatus(),e.improvementsStore.setErrorFetchData(t.t0));case 14:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){wo(o,r,i,a,s,"next",t)}function s(t){wo(o,r,i,a,s,"throw",t)}a(void 0)}))})()},e.clearImprovementsStatus=function(){this.improvementsStore.setIdleFetchStatus()},e.clearImprovementsErrorData=function(){this.improvementsStore.clearErrorFetchData()},t}();(0,b.Lj)(So,g.V.projectApi,g.V.improvementsStore,g.V.loggerService,g.V.trackingService,g.V.errorsService,g.V.gameStatusService);var _o=n(17992);function ko(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xo(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:1;if(!v.isMainOnboardingCompleted()){for(var e=-1,n=0;n0&&void 0!==arguments[0]?arguments[0]:1;if(-1!==v.onboardingStatus.dailyGameOnboardingIndex){for(var e=-1,n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.getLeagueOrderPosition(e)},r.isLeaguesEqual=function(t,e){return this.getLeagueOrderPosition(t)===this.getLeagueOrderPosition(e)},r.getSortedUserLeagueProgress=function(){return this.state.personal.leagueProgress.sort((function(t,e){return t.periodNumber-e.periodNumber}))},r.getPersonalStatisticsValue=function(t){var e=this.state.personal;switch(t){case ya.e.PersonalEnergyMultiplier:return e.energyMultiplier;case ya.e.PersonalEnergyRechargers:return e.energyRechargers;case ya.e.PersonalIncomePerHour:return e.incomePerHour;case ya.e.PersonalActiveGems:return e.activeGems;case ya.e.PersonalPassiveGems:return e.passiveGems;case ya.e.PersonalImprovements:return e.improvements;case ya.e.PersonalImprovementUpgrades:return e.improvementUpgrades;case ya.e.PersonalGifts:return e.gifts;case ya.e.PersonalTasks:return e.tasks;case ya.e.PersonalDailyGames:return e.dailyGames;case ya.e.PersonalTickets:return e.tickets;case ya.e.PersonalEnergySpent:return e.energySpent;case ya.e.PersonalEnergyRechargersSpent:return e.energyRechargersSpent;case ya.e.PersonalGemsSpent:return e.gemsSpent}return 0},r.getLeagueOrderPosition=function(t){return this.leagueOrder.findIndex((function(e){return e===t}))},n}(ea.y);function ka(t){return(ka=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function xa(t,e){return!e||"object"!==Ca(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ea(t,e){return(Ea=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Ca=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function Aa(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ka(t);if(e){var i=ka(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xa(this,n)}}var Pa,Ta=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ea(t,e)}(n,t);var e=Aa(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this,{status:zi.U.Active})).getStatus=function(){return t.getState().status},t}var r=n.prototype;return r.setStatus=function(t){this.setValue("status",t)},r.isStatusActive=function(){return this.getState().status===zi.U.Active},r.isStatusLeaguesRecalculation=function(){return this.getState().status===zi.U.LeaguesRecalculation},r.isStatusGameFinishedBeforeResults=function(){return this.getState().status===zi.U.GameFinishedBeforeResults},r.isStatusGameFinishedAfterResults=function(){return this.getState().status===zi.U.GameFinishedAfterResults},r.isStatusGameFinished=function(){return this.isStatusGameFinishedBeforeResults()||this.isStatusGameFinishedAfterResults()},r.isStatusGameMocks=function(){return this.getState().status===zi.U.Mocks},n}(ea.y),Oa=n(74550),Ma=n(90482);function Ra(t){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ia(t,e){return!e||"object"!==Ba(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ja(t,e){return(ja=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}!function(t){t.Tasks="tasks",t.Improvements="improvements",t.Gifts="gifts",t.GiftsGameFinished="giftsGameFinished",t.GiftsGameMocks="giftsGameMocks",t.Leaderboard="leaderboard",t.LeaderboardGameFinished="leaderboardGameFinished",t.Daily="daily",t.FAQ="faq",t.BeforeResultsInfo="beforeResultsInfo",t.Settings="settings",t.GameStatistics="game-statistics",t.GameStatisticsMocks="game-statistics-mocks",t.Winners="winners"}(Pa||(Pa={}));var Ba=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function Da(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ra(t);if(e){var i=Ra(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ia(this,n)}}var La=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ja(t,e)}(n,t);var e=Da(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this,{currentModalType:null,prevModalType:null})).isCurrentModalTypeNull=function(){return null===t.getState().currentModalType},t.isCurrentModalTypeGifts=function(){return t.getState().currentModalType===Pa.Gifts},t.isCurrentModalTypeGiftsGameFinished=function(){return t.getState().currentModalType===Pa.GiftsGameFinished},t.isCurrentModalTypeGiftsGameMocks=function(){return t.getState().currentModalType===Pa.GiftsGameMocks},t.isCurrentModalTypeImprovements=function(){return t.getState().currentModalType===Pa.Improvements},t.isCurrentModalTypeLeaderboard=function(){return t.getState().currentModalType===Pa.Leaderboard},t.isCurrentModalTypeLeaderboardGameFinished=function(){return t.getState().currentModalType===Pa.LeaderboardGameFinished},t.isCurrentModalTypeTasks=function(){return t.getState().currentModalType===Pa.Tasks},t.isCurrentModalTypeDaily=function(){return t.getState().currentModalType===Pa.Daily},t.isCurrentModalTypeFaq=function(){return t.getState().currentModalType===Pa.FAQ},t.isCurrentModalTypeGameStatistics=function(){return t.getState().currentModalType===Pa.GameStatistics},t.isCurrentModalTypeGameStatisticsMocks=function(){return t.getState().currentModalType===Pa.GameStatisticsMocks},t.isCurrentModalTypeBeforeResultsInfo=function(){return t.getState().currentModalType===Pa.BeforeResultsInfo},t.isCurrentModalTypeWinners=function(){return t.getState().currentModalType===Pa.Winners},t.isCurrentModalTypeSettings=function(){return t.getState().currentModalType===Pa.Settings},t.getCurrentModalType=function(){return t.getState().currentModalType},t.getPrevModalType=function(){return t.getState().prevModalType},t.setCurrentModalType=function(e){t.setValue("currentModalType",e)},t.setPrevModalType=function(e){t.setValue("prevModalType",e)},t}return n}(ea.y);(0,b.Lj)(La);var Na=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.next=null,this.value=e}var e=t.prototype;return e.setValue=function(t){return this.value=t,this},e.getValue=function(){return this.value},e.setNext=function(t){return this.next=t,this},e.getNext=function(){return this.next},e.hasNext=function(){return null!==this.next},e.clone=function(){var e=new t(this.value);return this.next&&e.setNext(this.next.clone()),e},t}();function Fa(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var Ga=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.headNode=null,this.countNodes=0}var e=t.prototype;return e.insertFirst=function(t){var e=Fa(t,Na)?t:new Na(t);return this.headNode?(e.setNext(this.headNode),this.headNode=e):this.headNode=e,this.countNodes++,e},e.insertLast=function(t){var e=Fa(t,Na)?t:new Na(t);if(this.headNode){for(var n=this.headNode;n.hasNext();)n=n.getNext();n.setNext(e)}else this.headNode=e;return this.countNodes++,e},e.insertAt=function(t,e){if(t<0||t>this.countNodes)throw new Error("Position out of bounds");if(0===t)return this.insertFirst(e);for(var n=Fa(e,Na)?e:new Na(e),r=this.headNode,i=null,o=0;r&&o=this.countNodes)throw new Error("Position out of bounds");if(0===t)return this.removeFirst();for(var e=this.headNode,n=null,r=0;e&&rt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=1920},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},t.isAlmostSquareWebview=function(){var t=document.documentElement,e=t.clientWidth,n=t.clientHeight;return e/n>.6&&n<600},e=t,r=[{key:"clientWidth",get:function(){return document.documentElement.clientWidth}}],(n=null)&&ku(e.prototype,n),r&&ku(e,r),t}();var Eu=function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.trackingService=n,this.setCurrentModalTypeGifts=function(){r.store.setCurrentModalType(Pa.Gifts),r.trackingService.trackClickToClickerMenuButton(Ni.FY.Gifts)},this.setCurrentModalTypeGiftsGameFinished=function(){r.store.setCurrentModalType(Pa.GiftsGameFinished)},this.setCurrentModalTypeGiftsGameMocks=function(){r.store.setCurrentModalType(Pa.GiftsGameMocks)},this.setCurrentModalTypeImprovements=function(){r.store.setCurrentModalType(Pa.Improvements),r.trackingService.trackClickToClickerMenuButton(Ni.FY.Upgrades)},this.setCurrentModalTypeLeaderboard=function(){r.store.setCurrentModalType(Pa.Leaderboard),r.trackingService.trackClickToClickerMenuButton(Ni.FY.League)},this.setCurrentModalTypeLeaderboardGameFinished=function(){r.store.setCurrentModalType(Pa.Leaderboard),r.store.setCurrentModalType(Pa.LeaderboardGameFinished)},this.setCurrentModalTypeTasks=function(){r.store.setCurrentModalType(Pa.Tasks),r.trackingService.trackClickToClickerMenuButton(Ni.FY.Tasks)},this.setCurrentModalTypeDaily=function(){r.store.setCurrentModalType(Pa.Daily),r.trackingService.trackClickToClickerMenuButton(Ni.FY.Minigame)},this.setCurrentModalTypeFaq=function(){r.store.setCurrentModalType(Pa.FAQ)},this.setCurrentModalTypeGameStatistics=function(){r.store.setCurrentModalType(Pa.GameStatistics)},this.setCurrentModalTypeGameStatisticsMocks=function(){r.store.setCurrentModalType(Pa.GameStatisticsMocks)},this.setCurrentModalTypeBeforeResultsInfo=function(){r.store.setCurrentModalType(Pa.BeforeResultsInfo)},this.setCurrentModalTypeWinners=function(){r.store.setCurrentModalType(Pa.Winners)},this.setCurrentModalTypeSettings=function(){r.store.getCurrentModalType()!==Pa.Settings?(r.store.setPrevModalType(r.store.getCurrentModalType()),r.store.setCurrentModalType(Pa.Settings),r.trackingService.trackClickToClickerMenuButton(Ni.FY.Settings)):r.navigateToPrevModal()},this.navigateToPrevModal=function(){r.store.setCurrentModalType(r.store.getPrevModalType())},this.clearCurrentModalType=function(){r.store.setPrevModalType(r.store.getCurrentModalType()),r.store.setCurrentModalType(null)}};(0,b.Lj)(Eu,g.V.navigationClickerModalStore,g.V.trackingService);var Cu=function(){function t(e,n,r,i,o,a){var s=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.routes=e,this.globalWindow=n,this.platformService=r,this.queryStringService=i,this.envs=o,this.loggerService=a,this.navigate=function(){},this.initialized=!1,this.setNavigate=function(t){s.initialized||(s.navigate=t,s.initialized=!0)},this.authPageReloadWithoutQueryRef=function(){s.globalWindow.location.href=s.envs.APP_PROJECT_URL+s.routes.AuthUser+s.queryStringService.getQueryWithoutRefId()},this.pageReload=function(){s.navigate(0)},this.pageAppReload=function(){s.globalWindow.location.href=s.envs.APP_PROJECT_URL+"?auth=true&".concat(s.platformService.getAppQueryString())}}var e=t.prototype;return e.navigateToAuthUserPage=function(t){this.navigateTo(this.routes.AuthUser,t)},e.navigateToMainPage=function(t){this.navigateTo(this.routes.Main,t)},e.navigateToMainPageForm=function(t){this.navigateTo("".concat(this.routes.Main,"#").concat(oi.ou.Form),t)},e.navigateToClickerGamePage=function(t){this.navigateTo(this.routes.ClickerGame,t)},e.navigateToResultsPage=function(t){this.navigateTo(this.routes.Results,t)},e.navigateTo=function(t,e){this.navigate(t,e)},e.openLink=function(t){t.startsWith("tcsgames")?this.globalWindow.open(t):this.externalNavigate(t)},e.externalNavigate=function(t){this.globalWindow.open(t,"_blank","noopener noreferrer")},t}();(0,b.Lj)(Cu,g.V.clientRoutes,g.V.globalWindow,g.V.platformService,g.V.queryStringService,g.V.envs,g.V.loggerService);var Au=function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.queryStringService=e,this.globalWindow=n,this.isIos=!1,this.init=function(){var t;r.appName=r.queryStringService.getAppName(),r.platform=null!==r.queryStringService.getMobileVersion()?"mb":"web",r.isIos=/iPhone|iPad|iPod/i.test(null===(t=r.globalWindow.navigator)||void 0===t?void 0:t.userAgent)},this.getPlatform=function(){return r.platform},this.getAppQueryString=function(){return"mb"===r.platform?"mbversion=".concat(r.queryStringService.getMobileVersion()):null!==r.appName?"appName=".concat(r.appName,"&appVersion=").concat(r.queryStringService.getAppVersion()):""},this.isMb=function(){return"mb"===r.platform||"mb"===r.appName},this.isInvesting=function(){return"investing"===r.appName},this.isApp=function(){return r.isMb()||r.isInvesting()},this.detectIsIos=function(){return r.isIos}};(0,b.Lj)(Au,g.V.queryStringService,g.V.globalWindow);var Pu=n(72342),Tu=n.n(Pu),Ou="X-Idempotency-Key",Mu=[Ri.HttpStatus.INTERNAL_SERVER_ERROR,Ri.HttpStatus.TOO_MANY_REQUESTS],Ru={timeBetweenRetryExponent:1.3,delayInMs:100,retryMaxLimit:3};function Iu(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function ju(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Iu(o,r,i,a,s,"next",t)}function s(t){Iu(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Bu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Du=function(){function t(e){var n=e.errorCodes;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.errorCodes=[],n&&(this.errorCodes=n)}var e=t.prototype;return e.retry=function(t){var e=t.retryConfigData,n=t.makeHttpRequestCallback,r=t.onRetry,i=t.signal,o=this;return ju(Rt().mark((function t(){var a,s,u,c,l;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c=function(t,e){return l.apply(this,arguments)},l=function(){return(l=ju(Rt().mark((function t(e,o){var a;return Rt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(e>0)){t.next=5;break}return a=Ri.HttpRetry.calculateTimeToWait(e,o.delayInMs,o.timeBetweenRetryExponent),t.next=5,(0,Ri.wait)(a);case 5:return t.next=7,n(Bu({},Ou,s));case 7:return t.abrupt("return",t.sent);case 10:if(t.prev=10,t.t0=t.catch(0),!(null===i||void 0===i?void 0:i.aborted)){t.next=14;break}throw t.t0;case 14:if(!(et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=new URLSearchParams;return Object.entries(t).forEach((function(t){var n=ic(t,2),r=n[0],i=n[1];i&&e.append(r,i.toString())})),e},e.getAuthScenario=function(){return this.getQueryValue(this.keys.authScenario)},e.getMobileVersion=function(){return this.getQueryValue(this.keys.mobileVersion)},e.getAppVersion=function(){return this.getQueryValue(this.keys.appVersion)},e.getAppName=function(){return this.getQueryValue(this.keys.appName)},e.getAuth=function(){return this.getQueryValue(this.keys.auth)},e.getPlatform=function(){return this.getQueryValue(this.keys.platform)},t}();(0,b.Lj)(oc,g.V.globalWindow,g.V.envs,g.V.clientRoutes);var ac=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.globalWindow=e}return t.prototype.scrollPageToTop=function(){this.globalWindow.scrollTo(0,0)},t}();function sc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);na&&(n.x=-(o-a/2))}var s=this.getNewStagePosition(n.x,n.y);this.stageNode.style.transform="translate(".concat(s.x,"px, ").concat(s.y,"px)"),this.stagePosition=s.clone()}},e.initHammer=function(){var t=this;this.hm||(this.panBounds=this.getPanBounds(),bc.getInstance().getModule().then((function(e){t.stageNode&&(t.hm=new e.Manager(t.stageNode),t.hm.add([new e.Pan]),t.hm.on("panstart",t.panStart),t.hm.on("panmove",t.handlePanMove),t.hm.on("panend pancancel",t.handlePanEnd))})))},e.destroy=function(){this.hm&&(this.hm.off("panstart",this.panStart),this.hm.off("panmove",this.handlePanMove),this.hm.off("panend pancancel",this.handlePanEnd)),this.hm=null,this.stagePosition=new T.E9j,this.panBounds=new T.AeJ},e.getNewStagePosition=function(t,e){var n=$e.R.clamp(-this.panBounds.width,this.panBounds.x,this.stagePosition.x+t),r=$e.R.clamp(-this.panBounds.height,this.panBounds.y,this.stagePosition.y+e);return new T.E9j(n,r)},e.getPanBounds=function(){var t=this.getContainer();if(!this.stageNode||!t)return new T.AeJ;var e=t.getBoundingClientRect(),n=e.width,r=e.bottom,i=this.stageNode.getBoundingClientRect(),o=i.width,a=i.bottom;return new T.AeJ(0,0,o-n,Math.abs(r-a))},e.getContainer=function(){return this.window.document.getElementById(oi.ou.ClickerGamePageContainer)},e.getProgressBetweenNeighboringImprovements=function(t,e){return Ma.H.isImprovementStatusLock(e)?Ma.H.isImprovementStatusLock(t)?0:$e.R.calcPercentage(this.clickerStateStore.getCoinsPerHourMine(),e.requiredTotalIncomePerHour):100},e.getXGap=function(){var t=this.config.xGap,e=this.window.document.documentElement.clientWidth;return $e.R.lerp(mc.jx,mc.ez,Math.min(1,e/mc.$F))*t},e.getYGap=function(){var t=this.config.yGap,e=this.window.document.documentElement.clientHeight;return $e.R.lerp(mc.bE,mc.Uy,Math.min(1,e/mc.xJ))*t},e.getDelta=function(t,e){return this.random.generateIntegerNumber(t,e)},e.getCardIconNode=function(t){return this.window.document.getElementById(mc.tc+t)},e.getCardMaxSize=function(){return Array.from(this.window.document.querySelectorAll(".".concat(mc.ub))).reduce((function(t,e){var n=e.getBoundingClientRect(),r=n.height,i=n.width;return t.x=Math.max(t.x,i),t.y=Math.max(t.y,r),t}),new T.E9j(-1/0,-1/0))},e.getStageSizes=function(t,e){return t.reduce((function(t,n){return t.x=Math.max(t.x,n.x+e.x+2*mc.m7),t.y=Math.max(t.y,n.y+e.y+2*mc.m7),t}),new T.E9j(-1/0,-1/0))},e.generateImprovementsPositionList=function(t){if(0===t)return[];this.random.init(this.config.seed);var e=this.getCardPositionsByMask(mc.FI,t);return e[0].x=mc.m7,e[0].y=mc.m7,e},e.getCardPositionsByMask=function(t,e){if(0===t.length)return[];for(var n=this.config,r=n.xDelta,i=n.yDelta,o=this.getXGap(),a=this.getYGap(),s=[],u=0,c=!0,l=t[0].length;c;){for(var f=0;f0&&this.clickerStateStore.addMultiplier(n.multiTap),this.clickerStateStore.addEnergyChargeCount(n.energyRecharge)},e.clearTasksStatus=function(){this.tasksStore.setIdleFetchStatus()},e.clearTasksErrorData=function(){this.tasksStore.clearErrorFetchData()},e.onNewTaskViewIntersection=function(t){this.tasksStore.onNewTaskViewIntersection(t)},t}();(0,b.Lj)(Rc,g.V.projectApi,g.V.clickerStateStore,g.V.tasksStore,g.V.loggerService,g.V.platformService,g.V.trackingService,g.V.errorsService,g.V.gameStatusService);var Ic=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.callbacks=new Set}var e=t.prototype;return e.add=function(t){return this.callbacks.add(t),this},e.execute=function(){Array.from(this.callbacks.values()).forEach((function(t){return t()})),this.callbacks=new Set},t}();var jc=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.globalWindow=e}return t.prototype.vibrate=function(t){var e,n;null===(e=this.globalWindow.navigator)||void 0===e||null===(n=e.vibrate)||void 0===n||n.call(e,t)},t}();(0,b.Lj)(jc,g.V.globalWindow);var Bc=n(13305);function Dc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lc(t){return(Lc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nc(t,e){return!e||"object"!==Gc(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fc(t,e){return(Fc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Gc=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function Uc(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lc(t);if(e){var i=Lc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Nc(this,n)}}var Vc=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fc(t,e)}(n,t);var e=Uc(n);function n(){return Dc(this,n),e.apply(this,arguments)}var r=n.prototype;return r.init=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.reset(),this.randomSeed=Math.abs(Math.trunc(t)),this.callsCounter=e,this.prevValue=this.randomSeed,this.initByCallsCounter()},r.setRandomSeed=function(t){this.randomSeed=t,this.reset()},r.setCallsCounter=function(t){this.reset(),this.callsCounter=t,this.initByCallsCounter()},r.reset=function(){this.callsCounter=0,this.prevValue=this.randomSeed},r.getCallsCounter=function(){return this.callsCounter},r.generateIntegerNumber=function(t,e){return Math.floor(this.generateFloatNumber(t,e))},r.generateFloatNumber=function(t,e){return(this.random()-1)/2147483646*(e-t+1)+t},r.random=function(){return this.prevValue=16807*this.prevValue%2147483647,this.callsCounter++,this.prevValue},r.initByCallsCounter=function(){for(var t=0;tt.length)&&(e=t.length);for(var n=0,r=new Array(e);n4&&void 0!==arguments[4]?arguments[4]:"div";(0,c.Z)(this,t),this.parent=e,this.object=n,this.property=r,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement(o),this.domElement.classList.add("controller"),this.domElement.classList.add(i),this.$name=document.createElement("div"),this.$name.classList.add("name"),t.nextNameID=t.nextNameID||0,this.$name.id="lil-gui-name-".concat(++t.nextNameID),this.$widget=document.createElement("div"),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.domElement.addEventListener("keydown",(function(t){return t.stopPropagation()})),this.domElement.addEventListener("keyup",(function(t){return t.stopPropagation()})),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(r)}return(0,l.Z)(t,[{key:"name",value:function(t){return this._name=t,this.$name.textContent=t,this}},{key:"onChange",value:function(t){return this._onChange=t,this}},{key:"_callOnChange",value:function(){this.parent._callOnChange(this),void 0!==this._onChange&&this._onChange.call(this,this.getValue()),this._changed=!0}},{key:"onFinishChange",value:function(t){return this._onFinishChange=t,this}},{key:"_callOnFinishChange",value:function(){this._changed&&(this.parent._callOnFinishChange(this),void 0!==this._onFinishChange&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}},{key:"reset",value:function(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.disable(!t)}},{key:"disable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t===this._disabled||(this._disabled=t,this.domElement.classList.toggle("disabled",t),this.$disable.toggleAttribute("disabled",t)),this}},{key:"show",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}},{key:"hide",value:function(){return this.show(!1)}},{key:"options",value:function(t){var e=this.parent.add(this.object,this.property,t);return e.name(this._name),this.destroy(),e}},{key:"min",value:function(t){return this}},{key:"max",value:function(t){return this}},{key:"step",value:function(t){return this}},{key:"decimals",value:function(t){return this}},{key:"listen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._listening=t,void 0!==this._listenCallbackID&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}},{key:"_listenCallback",value:function(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);var t=this.save();t!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=t}},{key:"getValue",value:function(){return this.object[this.property]}},{key:"setValue",value:function(t){return this.getValue()!==t&&(this.object[this.property]=t,this._callOnChange(),this.updateDisplay()),this}},{key:"updateDisplay",value:function(){return this}},{key:"load",value:function(t){return this.setValue(t),this._callOnFinishChange(),this}},{key:"save",value:function(){return this.getValue()}},{key:"destroy",value:function(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}}]),t}(),d=function(t){o(n,t);var e=f(n);function n(t,r,i){var o;return(0,c.Z)(this,n),(o=e.call(this,t,r,i,"boolean","label")).$input=document.createElement("input"),o.$input.setAttribute("type","checkbox"),o.$input.setAttribute("aria-labelledby",o.$name.id),o.$widget.appendChild(o.$input),o.$input.addEventListener("change",(function(){o.setValue(o.$input.checked),o._callOnFinishChange()})),o.$disable=o.$input,o.updateDisplay(),o}return(0,l.Z)(n,[{key:"updateDisplay",value:function(){return this.$input.checked=this.getValue(),this}}]),n}(h);function p(t){var e,n;return(e=t.match(/(#|0x)?([a-f0-9]{6})/i))?n=e[2]:(e=t.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?n=parseInt(e[1]).toString(16).padStart(2,0)+parseInt(e[2]).toString(16).padStart(2,0)+parseInt(e[3]).toString(16).padStart(2,0):(e=t.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),!!n&&"#"+n}var v={isPrimitive:!0,match:function(t){return"number"===typeof t},fromHexString:function(t){return parseInt(t.substring(1),16)},toHexString:function(t){return"#"+t.toString(16).padStart(6,0)}},y={isPrimitive:!1,match:function(t){return Array.isArray(t)},fromHexString:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=v.fromHexString(t);e[0]=(r>>16&255)/255*n,e[1]=(r>>8&255)/255*n,e[2]=(255&r)/255*n},toHexString:function(t){var e=(0,r.Z)(t,3),n=e[0],i=e[1],o=e[2],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=n*(a=255/a)<<16^i*a<<8^o*a<<0;return v.toHexString(s)}},m={isPrimitive:!1,match:function(t){return Object(t)===t},fromHexString:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=v.fromHexString(t);e.r=(r>>16&255)/255*n,e.g=(r>>8&255)/255*n,e.b=(255&r)/255*n},toHexString:function(t){var e=t.r,n=t.g,r=t.b,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=e*(i=255/i)<<16^n*i<<8^r*i<<0;return v.toHexString(o)}},g=[{isPrimitive:!0,match:function(t){return"string"===typeof t},fromHexString:p,toHexString:p},v,y,m];var b=function(t){o(n,t);var e=f(n);function n(t,r,i,o){var a,s;return(0,c.Z)(this,n),(a=e.call(this,t,r,i,"color")).$input=document.createElement("input"),a.$input.setAttribute("type","color"),a.$input.setAttribute("tabindex",-1),a.$input.setAttribute("aria-labelledby",a.$name.id),a.$text=document.createElement("input"),a.$text.setAttribute("type","text"),a.$text.setAttribute("spellcheck","false"),a.$text.setAttribute("aria-labelledby",a.$name.id),a.$display=document.createElement("div"),a.$display.classList.add("display"),a.$display.appendChild(a.$input),a.$widget.appendChild(a.$display),a.$widget.appendChild(a.$text),a._format=(s=a.initialValue,g.find((function(t){return t.match(s)}))),a._rgbScale=o,a._initialValueHexString=a.save(),a._textFocused=!1,a.$input.addEventListener("input",(function(){a._setValueFromHexString(a.$input.value)})),a.$input.addEventListener("blur",(function(){a._callOnFinishChange()})),a.$text.addEventListener("input",(function(){var t=p(a.$text.value);t&&a._setValueFromHexString(t)})),a.$text.addEventListener("focus",(function(){a._textFocused=!0,a.$text.select()})),a.$text.addEventListener("blur",(function(){a._textFocused=!1,a.updateDisplay(),a._callOnFinishChange()})),a.$disable=a.$text,a.updateDisplay(),a}return(0,l.Z)(n,[{key:"reset",value:function(){return this._setValueFromHexString(this._initialValueHexString),this}},{key:"_setValueFromHexString",value:function(t){if(this._format.isPrimitive){var e=this._format.fromHexString(t);this.setValue(e)}else this._format.fromHexString(t,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}},{key:"save",value:function(){return this._format.toHexString(this.getValue(),this._rgbScale)}},{key:"load",value:function(t){return this._setValueFromHexString(t),this._callOnFinishChange(),this}},{key:"updateDisplay",value:function(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}}]),n}(h),w=function(t){o(n,t);var e=f(n);function n(t,r,i){var o;return(0,c.Z)(this,n),(o=e.call(this,t,r,i,"function")).$button=document.createElement("button"),o.$button.appendChild(o.$name),o.$widget.appendChild(o.$button),o.$button.addEventListener("click",(function(t){t.preventDefault(),o.getValue().call(o.object),o._callOnChange()})),o.$button.addEventListener("touchstart",(function(){}),{passive:!0}),o.$disable=o.$button,o}return n}(h),S=function(t){o(n,t);var e=f(n);function n(t,r,i,o,a,s){var u;(0,c.Z)(this,n),(u=e.call(this,t,r,i,"number"))._initInput(),u.min(o),u.max(a);var l=void 0!==s;return u.step(l?s:u._getImplicitStep(),l),u.updateDisplay(),u}return(0,l.Z)(n,[{key:"decimals",value:function(t){return this._decimals=t,this.updateDisplay(),this}},{key:"min",value:function(t){return this._min=t,this._onUpdateMinMax(),this}},{key:"max",value:function(t){return this._max=t,this._onUpdateMinMax(),this}},{key:"step",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._step=t,this._stepExplicit=e,this}},{key:"updateDisplay",value:function(){var t=this.getValue();if(this._hasSlider){var e=(t-this._min)/(this._max-this._min);e=Math.max(0,Math.min(e,1)),this.$fill.style.width=100*e+"%"}return this._inputFocused||(this.$input.value=void 0===this._decimals?t:t.toFixed(this._decimals)),this}},{key:"_initInput",value:function(){var t=this;this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),window.matchMedia("(pointer: coarse)").matches&&(this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any")),this.$widget.appendChild(this.$input),this.$disable=this.$input;var e,n,r,i,o,a=function(e){var n=parseFloat(t.$input.value);isNaN(n)||(t._snapClampSetValue(n+e),t.$input.value=t.getValue())},s=!1,u=function(a){if(s){var u=a.clientX-e,l=a.clientY-n;Math.abs(l)>5?(a.preventDefault(),t.$input.blur(),s=!1,t._setDraggingStyle(!0,"vertical")):Math.abs(u)>5&&c()}if(!s){var f=a.clientY-r;o-=f*t._step*t._arrowKeyMultiplier(a),i+o>t._max?o=t._max-i:i+oMath.abs(a)?u(r):(window.removeEventListener("touchmove",t),window.removeEventListener("touchend",l))}else r.preventDefault(),i(r.touches[0].clientX)},l=function e(){t._callOnFinishChange(),t._setDraggingStyle(!1),window.removeEventListener("touchmove",c),window.removeEventListener("touchend",e)},f=this._callOnFinishChange.bind(this);this.$slider.addEventListener("mousedown",(function(e){t._setDraggingStyle(!0),i(e.clientX),window.addEventListener("mousemove",o),window.addEventListener("mouseup",a)})),this.$slider.addEventListener("touchstart",(function(r){r.touches.length>1||(t._hasScrollBar?(e=r.touches[0].clientX,n=r.touches[0].clientY,s=!0):u(r),window.addEventListener("touchmove",c,{passive:!1}),window.addEventListener("touchend",l))}),{passive:!1}),this.$slider.addEventListener("wheel",(function(e){if(!(Math.abs(e.deltaX)1&&void 0!==arguments[1]?arguments[1]:"horizontal";this.$slider&&this.$slider.classList.toggle("active",t),document.body.classList.toggle("lil-gui-dragging",t),document.body.classList.toggle("lil-gui-".concat(e),t)}},{key:"_getImplicitStep",value:function(){return this._hasMin&&this._hasMax?(this._max-this._min)/1e3:.1}},{key:"_onUpdateMinMax",value:function(){!this._hasSlider&&this._hasMin&&this._hasMax&&(this._stepExplicit||this.step(this._getImplicitStep(),!1),this._initSlider(),this.updateDisplay())}},{key:"_normalizeMouseWheel",value:function(t){var e=t.deltaX,n=t.deltaY;return Math.floor(t.deltaY)!==t.deltaY&&t.wheelDelta&&(e=0,n=-t.wheelDelta/120,n*=this._stepExplicit?1:10),e+-n}},{key:"_arrowKeyMultiplier",value:function(t){var e=this._stepExplicit?1:10;return t.shiftKey?e*=10:t.altKey&&(e/=10),e}},{key:"_snap",value:function(t){var e=Math.round(t/this._step)*this._step;return parseFloat(e.toPrecision(15))}},{key:"_clamp",value:function(t){return tthis._max&&(t=this._max),t}},{key:"_snapClampSetValue",value:function(t){this.setValue(this._clamp(this._snap(t)))}},{key:"_hasScrollBar",get:function(){var t=this.parent.root.$children;return t.scrollHeight>t.clientHeight}},{key:"_hasMin",get:function(){return void 0!==this._min}},{key:"_hasMax",get:function(){return void 0!==this._max}}]),n}(h),_=function(t){o(n,t);var e=f(n);function n(t,r,i,o){var a;return(0,c.Z)(this,n),(a=e.call(this,t,r,i,"option")).$select=document.createElement("select"),a.$select.setAttribute("aria-labelledby",a.$name.id),a.$display=document.createElement("div"),a.$display.classList.add("display"),a.$select.addEventListener("change",(function(){a.setValue(a._values[a.$select.selectedIndex]),a._callOnFinishChange()})),a.$select.addEventListener("focus",(function(){a.$display.classList.add("focus")})),a.$select.addEventListener("blur",(function(){a.$display.classList.remove("focus")})),a.$widget.appendChild(a.$select),a.$widget.appendChild(a.$display),a.$disable=a.$select,a.options(o),a}return(0,l.Z)(n,[{key:"options",value:function(t){var e=this;return this._values=Array.isArray(t)?t:Object.values(t),this._names=Array.isArray(t)?t:Object.keys(t),this.$select.replaceChildren(),this._names.forEach((function(t){var n=document.createElement("option");n.textContent=t,e.$select.appendChild(n)})),this.updateDisplay(),this}},{key:"updateDisplay",value:function(){var t=this.getValue(),e=this._values.indexOf(t);return this.$select.selectedIndex=e,this.$display.textContent=-1===e?t:this._names[e],this}}]),n}(h),k=function(t){o(n,t);var e=f(n);function n(t,r,i){var o;return(0,c.Z)(this,n),(o=e.call(this,t,r,i,"string")).$input=document.createElement("input"),o.$input.setAttribute("type","text"),o.$input.setAttribute("spellcheck","false"),o.$input.setAttribute("aria-labelledby",o.$name.id),o.$input.addEventListener("input",(function(){o.setValue(o.$input.value)})),o.$input.addEventListener("keydown",(function(t){"Enter"===t.code&&o.$input.blur()})),o.$input.addEventListener("blur",(function(){o._callOnFinishChange()})),o.$widget.appendChild(o.$input),o.$disable=o.$input,o.updateDisplay(),o}return(0,l.Z)(n,[{key:"updateDisplay",value:function(){return this.$input.value=this.getValue(),this}}]),n}(h),x='.lil-gui {\n font-family: var(--font-family);\n font-size: var(--font-size);\n line-height: 1;\n font-weight: normal;\n font-style: normal;\n text-align: left;\n color: var(--text-color);\n user-select: none;\n -webkit-user-select: none;\n touch-action: manipulation;\n --background-color: #1f1f1f;\n --text-color: #ebebeb;\n --title-background-color: #111111;\n --title-text-color: #ebebeb;\n --widget-color: #424242;\n --hover-color: #4f4f4f;\n --focus-color: #595959;\n --number-color: #2cc9ff;\n --string-color: #a2db3c;\n --font-size: 11px;\n --input-font-size: 11px;\n --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;\n --font-family-mono: Menlo, Monaco, Consolas, "Droid Sans Mono", monospace;\n --padding: 4px;\n --spacing: 4px;\n --widget-height: 20px;\n --title-height: calc(var(--widget-height) + var(--spacing) * 1.25);\n --name-width: 45%;\n --slider-knob-width: 2px;\n --slider-input-width: 27%;\n --color-input-width: 27%;\n --slider-input-min-width: 45px;\n --color-input-min-width: 45px;\n --folder-indent: 7px;\n --widget-padding: 0 0 0 3px;\n --widget-border-radius: 2px;\n --checkbox-size: calc(0.75 * var(--widget-height));\n --scrollbar-width: 5px;\n}\n.lil-gui, .lil-gui * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n.lil-gui.root {\n width: var(--width, 245px);\n display: flex;\n flex-direction: column;\n background: var(--background-color);\n}\n.lil-gui.root > .title {\n background: var(--title-background-color);\n color: var(--title-text-color);\n}\n.lil-gui.root > .children {\n overflow-x: hidden;\n overflow-y: auto;\n}\n.lil-gui.root > .children::-webkit-scrollbar {\n width: var(--scrollbar-width);\n height: var(--scrollbar-width);\n background: var(--background-color);\n}\n.lil-gui.root > .children::-webkit-scrollbar-thumb {\n border-radius: var(--scrollbar-width);\n background: var(--focus-color);\n}\n@media (pointer: coarse) {\n .lil-gui.allow-touch-styles, .lil-gui.allow-touch-styles .lil-gui {\n --widget-height: 28px;\n --padding: 6px;\n --spacing: 6px;\n --font-size: 13px;\n --input-font-size: 16px;\n --folder-indent: 10px;\n --scrollbar-width: 7px;\n --slider-input-min-width: 50px;\n --color-input-min-width: 65px;\n }\n}\n.lil-gui.force-touch-styles, .lil-gui.force-touch-styles .lil-gui {\n --widget-height: 28px;\n --padding: 6px;\n --spacing: 6px;\n --font-size: 13px;\n --input-font-size: 16px;\n --folder-indent: 10px;\n --scrollbar-width: 7px;\n --slider-input-min-width: 50px;\n --color-input-min-width: 65px;\n}\n.lil-gui.autoPlace {\n max-height: 100%;\n position: fixed;\n top: 0;\n right: 15px;\n z-index: 1001;\n}\n\n.lil-gui .controller {\n display: flex;\n align-items: center;\n padding: 0 var(--padding);\n margin: var(--spacing) 0;\n}\n.lil-gui .controller.disabled {\n opacity: 0.5;\n}\n.lil-gui .controller.disabled, .lil-gui .controller.disabled * {\n pointer-events: none !important;\n}\n.lil-gui .controller > .name {\n min-width: var(--name-width);\n flex-shrink: 0;\n white-space: pre;\n padding-right: var(--spacing);\n line-height: var(--widget-height);\n}\n.lil-gui .controller .widget {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n min-height: var(--widget-height);\n}\n.lil-gui .controller.string input {\n color: var(--string-color);\n}\n.lil-gui .controller.boolean {\n cursor: pointer;\n}\n.lil-gui .controller.color .display {\n width: 100%;\n height: var(--widget-height);\n border-radius: var(--widget-border-radius);\n position: relative;\n}\n@media (hover: hover) {\n .lil-gui .controller.color .display:hover:before {\n content: " ";\n display: block;\n position: absolute;\n border-radius: var(--widget-border-radius);\n border: 1px solid #fff9;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n}\n.lil-gui .controller.color input[type=color] {\n opacity: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n.lil-gui .controller.color input[type=text] {\n margin-left: var(--spacing);\n font-family: var(--font-family-mono);\n min-width: var(--color-input-min-width);\n width: var(--color-input-width);\n flex-shrink: 0;\n}\n.lil-gui .controller.option select {\n opacity: 0;\n position: absolute;\n width: 100%;\n max-width: 100%;\n}\n.lil-gui .controller.option .display {\n position: relative;\n pointer-events: none;\n border-radius: var(--widget-border-radius);\n height: var(--widget-height);\n line-height: var(--widget-height);\n max-width: 100%;\n overflow: hidden;\n word-break: break-all;\n padding-left: 0.55em;\n padding-right: 1.75em;\n background: var(--widget-color);\n}\n@media (hover: hover) {\n .lil-gui .controller.option .display.focus {\n background: var(--focus-color);\n }\n}\n.lil-gui .controller.option .display.active {\n background: var(--focus-color);\n}\n.lil-gui .controller.option .display:after {\n font-family: "lil-gui";\n content: "\u2195";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n padding-right: 0.375em;\n}\n.lil-gui .controller.option .widget,\n.lil-gui .controller.option select {\n cursor: pointer;\n}\n@media (hover: hover) {\n .lil-gui .controller.option .widget:hover .display {\n background: var(--hover-color);\n }\n}\n.lil-gui .controller.number input {\n color: var(--number-color);\n}\n.lil-gui .controller.number.hasSlider input {\n margin-left: var(--spacing);\n width: var(--slider-input-width);\n min-width: var(--slider-input-min-width);\n flex-shrink: 0;\n}\n.lil-gui .controller.number .slider {\n width: 100%;\n height: var(--widget-height);\n background: var(--widget-color);\n border-radius: var(--widget-border-radius);\n padding-right: var(--slider-knob-width);\n overflow: hidden;\n cursor: ew-resize;\n touch-action: pan-y;\n}\n@media (hover: hover) {\n .lil-gui .controller.number .slider:hover {\n background: var(--hover-color);\n }\n}\n.lil-gui .controller.number .slider.active {\n background: var(--focus-color);\n}\n.lil-gui .controller.number .slider.active .fill {\n opacity: 0.95;\n}\n.lil-gui .controller.number .fill {\n height: 100%;\n border-right: var(--slider-knob-width) solid var(--number-color);\n box-sizing: content-box;\n}\n\n.lil-gui-dragging .lil-gui {\n --hover-color: var(--widget-color);\n}\n.lil-gui-dragging * {\n cursor: ew-resize !important;\n}\n\n.lil-gui-dragging.lil-gui-vertical * {\n cursor: ns-resize !important;\n}\n\n.lil-gui .title {\n height: var(--title-height);\n line-height: calc(var(--title-height) - 4px);\n font-weight: 600;\n padding: 0 var(--padding);\n -webkit-tap-highlight-color: transparent;\n cursor: pointer;\n outline: none;\n text-decoration-skip: objects;\n}\n.lil-gui .title:before {\n font-family: "lil-gui";\n content: "\u25be";\n padding-right: 2px;\n display: inline-block;\n}\n.lil-gui .title:active {\n background: var(--title-background-color);\n opacity: 0.75;\n}\n@media (hover: hover) {\n body:not(.lil-gui-dragging) .lil-gui .title:hover {\n background: var(--title-background-color);\n opacity: 0.85;\n }\n .lil-gui .title:focus {\n text-decoration: underline var(--focus-color);\n }\n}\n.lil-gui.root > .title:focus {\n text-decoration: none !important;\n}\n.lil-gui.closed > .title:before {\n content: "\u25b8";\n}\n.lil-gui.closed > .children {\n transform: translateY(-7px);\n opacity: 0;\n}\n.lil-gui.closed:not(.transition) > .children {\n display: none;\n}\n.lil-gui.transition > .children {\n transition-duration: 300ms;\n transition-property: height, opacity, transform;\n transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);\n overflow: hidden;\n pointer-events: none;\n}\n.lil-gui .children:empty:before {\n content: "Empty";\n padding: 0 var(--padding);\n margin: var(--spacing) 0;\n display: block;\n height: var(--widget-height);\n font-style: italic;\n line-height: var(--widget-height);\n opacity: 0.5;\n}\n.lil-gui.root > .children > .lil-gui > .title {\n border: 0 solid var(--widget-color);\n border-width: 1px 0;\n transition: border-color 300ms;\n}\n.lil-gui.root > .children > .lil-gui.closed > .title {\n border-bottom-color: transparent;\n}\n.lil-gui + .controller {\n border-top: 1px solid var(--widget-color);\n margin-top: 0;\n padding-top: var(--spacing);\n}\n.lil-gui .lil-gui .lil-gui > .title {\n border: none;\n}\n.lil-gui .lil-gui .lil-gui > .children {\n border: none;\n margin-left: var(--folder-indent);\n border-left: 2px solid var(--widget-color);\n}\n.lil-gui .lil-gui .controller {\n border: none;\n}\n\n.lil-gui label, .lil-gui input, .lil-gui button {\n -webkit-tap-highlight-color: transparent;\n}\n.lil-gui input {\n border: 0;\n outline: none;\n font-family: var(--font-family);\n font-size: var(--input-font-size);\n border-radius: var(--widget-border-radius);\n height: var(--widget-height);\n background: var(--widget-color);\n color: var(--text-color);\n width: 100%;\n}\n@media (hover: hover) {\n .lil-gui input:hover {\n background: var(--hover-color);\n }\n .lil-gui input:active {\n background: var(--focus-color);\n }\n}\n.lil-gui input:disabled {\n opacity: 1;\n}\n.lil-gui input[type=text],\n.lil-gui input[type=number] {\n padding: var(--widget-padding);\n -moz-appearance: textfield;\n}\n.lil-gui input[type=text]:focus,\n.lil-gui input[type=number]:focus {\n background: var(--focus-color);\n}\n.lil-gui input[type=checkbox] {\n appearance: none;\n width: var(--checkbox-size);\n height: var(--checkbox-size);\n border-radius: var(--widget-border-radius);\n text-align: center;\n cursor: pointer;\n}\n.lil-gui input[type=checkbox]:checked:before {\n font-family: "lil-gui";\n content: "\u2713";\n font-size: var(--checkbox-size);\n line-height: var(--checkbox-size);\n}\n@media (hover: hover) {\n .lil-gui input[type=checkbox]:focus {\n box-shadow: inset 0 0 0 1px var(--focus-color);\n }\n}\n.lil-gui button {\n outline: none;\n cursor: pointer;\n font-family: var(--font-family);\n font-size: var(--font-size);\n color: var(--text-color);\n width: 100%;\n height: var(--widget-height);\n text-transform: none;\n background: var(--widget-color);\n border-radius: var(--widget-border-radius);\n border: none;\n}\n@media (hover: hover) {\n .lil-gui button:hover {\n background: var(--hover-color);\n }\n .lil-gui button:focus {\n box-shadow: inset 0 0 0 1px var(--focus-color);\n }\n}\n.lil-gui button:active {\n background: var(--focus-color);\n}\n\n@font-face {\n font-family: "lil-gui";\n src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff");\n}';function E(t){var e=document.createElement("style");e.innerHTML=t;var n=document.querySelector("head link[rel=stylesheet], head style");n?document.head.insertBefore(e,n):document.head.appendChild(e)}var C=!1,A=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.parent,i=n.autoPlace,o=void 0===i?void 0===r:i,a=n.container,s=n.width,u=n.title,l=void 0===u?"Controls":u,f=n.closeFolders,h=void 0!==f&&f,d=n.injectStyles,p=void 0===d||d,v=n.touchStyles,y=void 0===v||v;if((0,c.Z)(this,t),this.parent=r,this.root=r?r.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",(function(){return e.openAnimated(e._closed)})),this.$title.addEventListener("keydown",(function(t){"Enter"!==t.code&&"Space"!==t.code||(t.preventDefault(),e.$title.click())})),this.$title.addEventListener("touchstart",(function(){}),{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(l),this.parent)return this.parent.children.push(this),this.parent.folders.push(this),void this.parent.$children.appendChild(this.domElement);this.domElement.classList.add("root"),y&&this.domElement.classList.add("allow-touch-styles"),!C&&p&&(E(x),C=!0),a?a.appendChild(this.domElement):o&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),s&&this.domElement.style.setProperty("--width",s+"px"),this._closeFolders=h}return(0,l.Z)(t,[{key:"add",value:function(t,e,n,r,i){if(Object(n)===n)return new _(this,t,e,n);var o=t[e];switch(typeof o){case"number":return new S(this,t,e,n,r,i);case"boolean":return new d(this,t,e);case"string":return new k(this,t,e);case"function":return new w(this,t,e)}console.error("gui.add failed\n\tproperty:",e,"\n\tobject:",t,"\n\tvalue:",o)}},{key:"addColor",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new b(this,t,e,n)}},{key:"addFolder",value:function(e){var n=new t({parent:this,title:e});return this.root._closeFolders&&n.close(),n}},{key:"load",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.controllers&&this.controllers.forEach((function(e){e instanceof w||e._name in t.controllers&&e.load(t.controllers[e._name])})),e&&t.folders&&this.folders.forEach((function(e){e._title in t.folders&&e.load(t.folders[e._title])})),this}},{key:"save",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={controllers:{},folders:{}};return this.controllers.forEach((function(t){if(!(t instanceof w)){if(t._name in e.controllers)throw new Error('Cannot save GUI with duplicate property "'.concat(t._name,'"'));e.controllers[t._name]=t.save()}})),t&&this.folders.forEach((function(t){if(t._title in e.folders)throw new Error('Cannot save GUI with duplicate folder "'.concat(t._title,'"'));e.folders[t._title]=t.save()})),e}},{key:"open",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._setClosed(!t),this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}},{key:"close",value:function(){return this.open(!1)}},{key:"_setClosed",value:function(t){this._closed!==t&&(this._closed=t,this._callOnOpenClose(this))}},{key:"show",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}},{key:"hide",value:function(){return this.show(!1)}},{key:"openAnimated",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._setClosed(!e),this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame((function(){var n=t.$children.clientHeight;t.$children.style.height=n+"px",t.domElement.classList.add("transition");t.$children.addEventListener("transitionend",(function e(n){n.target===t.$children&&(t.$children.style.height="",t.domElement.classList.remove("transition"),t.$children.removeEventListener("transitionend",e))}));var r=e?t.$children.scrollHeight:0;t.domElement.classList.toggle("closed",!e),requestAnimationFrame((function(){t.$children.style.height=r+"px"}))})),this}},{key:"title",value:function(t){return this._title=t,this.$title.textContent=t,this}},{key:"reset",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?this.controllersRecursive():this.controllers;return e.forEach((function(t){return t.reset()})),this}},{key:"onChange",value:function(t){return this._onChange=t,this}},{key:"_callOnChange",value:function(t){this.parent&&this.parent._callOnChange(t),void 0!==this._onChange&&this._onChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}},{key:"onFinishChange",value:function(t){return this._onFinishChange=t,this}},{key:"_callOnFinishChange",value:function(t){this.parent&&this.parent._callOnFinishChange(t),void 0!==this._onFinishChange&&this._onFinishChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}},{key:"onOpenClose",value:function(t){return this._onOpenClose=t,this}},{key:"_callOnOpenClose",value:function(t){this.parent&&this.parent._callOnOpenClose(t),void 0!==this._onOpenClose&&this._onOpenClose.call(this,t)}},{key:"destroy",value:function(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach((function(t){return t.destroy()}))}},{key:"controllersRecursive",value:function(){var t=Array.from(this.controllers);return this.folders.forEach((function(e){t=t.concat(e.controllersRecursive())})),t}},{key:"foldersRecursive",value:function(){var t=Array.from(this.folders);return this.folders.forEach((function(e){t=t.concat(e.foldersRecursive())})),t}}]),t}();var P=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.prototype.getInstance=function(){return t.instance||(t.instance=new A),t.instance},t}()},66605:function(t,e,n){"use strict";var r,i;n.d(e,{RM:function(){return o},_X:function(){return i},jK:function(){return r}}),function(t){t.SSOTokenNotExist="B4301",t.SSOTokenInactive="B4302",t.MobilePhoneIsNotDefined="B4303",t.ClientNotExistWithSession="B4304",t.SiebelIdIsNotDefined="B4305",t.UserIsNotResident="B4308",t.ClientHasNotSSO_ID="B4311",t.InvalidAge="B4406",t.InvalidCitizenship="B5326",t.UserBanned="B4309",t.SessionExpired="B4310",t.TaskIsNotExist="B4312",t.DailyGameNotExist="B4316",t.DailyGameAlreadyCompleted="B4319",t.ProductLoyalties="B4307",t.ErrorRequestDB="B5301",t.InvalidTransactionTypeDuringQueries="B5302",t.UnknownClusterKafka="B5303",t.KafkaConsumerAlreadyRunning="B5304",t.KafkaMessageNotMatchesContract="B5305",t.ExtractToken="B5306",t.KafkaMessageSend="B5308",t.KafkaConnection="B5309",t.InvalidParametersRequestToDB="B5310",t.UnknownClusterKafkaConsumer="B5311",t.ClientDuplicated="B5312",t.RequestWithoutTransaction="B5313",t.SettingsNotMatchScheme="B5314",t.InitKeyDB="B5315",t.QueryToCacheTimeoutExpired="B5316",t.QueriesAndTransactionsUses="B5317",t.ParallelRequestsForTaskProgressChanges="B5318",t.DataInQueueNotMatchQueueType="B5319",t.DecodingProtobufMessage="B5320",t.EncodingProtobufMessage="B5321",t.LoadProtobufScheme="B5322",t.DuplicatedBrokerAccount="B5325",t.TaskProcessCompleted="B5324",t.InvitedFriendInTheGame="B4314",t.InvitedFriendInvalidRefId="B4315",t.RecalculationLeagues="B4334",t.RateLimiting="B5336",t.TooManyRequests="B429",t.GameIsNotAProgress="B4325",t.InternalServer="B5001",t.QueryFailed="B5002",t.GetProductLoyaltiesV2="B5307",t.TestError="F9999",t.UnmatchedError="F2001",t.BoundaryError="F2002",t.EconnAborted="F2003",t.UnknownError="U0001"}(r||(r={})),function(t){t.LogoutWithReload="LogoutWithReload",t.LogoutWithRedirectToMainForm="LogoutWithRedirectToMainForm",t.Logout="Logout",t.Reload="Reload",t.AuthReloadWithoutQueryRef="AuthReloadWithoutQueryRef",t.CloseClickerModal="CloseClickerModal"}(i||(i={}));var o="Something went wrong in app"},60159:function(t,e,n){"use strict";n.d(e,{u:function(){return m}});var r=n(25106),i=n.n(r),o=n(54478),a=n(27188),s=n(3607),u=n(97979),c=n(89684),l=[{day:1,wasReceived:!0,reward:{type:c.K.Gems,value:500}},{day:2,wasReceived:!0,reward:{type:c.K.Gems,value:1500}},{day:3,wasReceived:!1,reward:{type:c.K.EnergyRecharge,value:2}},{day:4,wasReceived:!1,reward:{type:c.K.Gems,value:2e3}}],f=n(14322),h=n(63853);function d(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){d(o,r,i,a,s,"next",t)}function s(t){d(o,r,i,a,s,"throw",t)}a(void 0)}))}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:300;return new Promise((function(e){return setTimeout(e,t)}))},n}(s.ProjectApi);(0,a.Lj)(m,o.V.apiRoutes,o.V.httpClientProjectApi,o.V.globalWindow)},73441:function(t,e,n){"use strict";var r;n.d(e,{_:function(){return r}}),function(t){t.Location1="location_0",t.Location2="location_1",t.Location3="location_2",t.Location4="location_3"}(r||(r={}))},70643:function(t,e,n){"use strict";var r,i,o,a,s,u,c,l,f,h,d,p,v,y,m,g,b,w,S,_,k,x;n.d(e,{C2:function(){return _},Cf:function(){return r},F4:function(){return s},FY:function(){return f},Fe:function(){return u},Jy:function(){return y},K8:function(){return a},NX:function(){return h},U1:function(){return i},Ul:function(){return k},V9:function(){return d},XQ:function(){return x},YE:function(){return w},an:function(){return S},c9:function(){return m},cq:function(){return o},eM:function(){return b},i8:function(){return g},nj:function(){return p},sx:function(){return l},ur:function(){return v},wo:function(){return c},yc:function(){return E}}),function(t){t.Web="web",t.Native="native",t.NativeInvest="native_invest"}(r||(r={})),function(t){t.Landing="landing",t.BringAFriend="bring_a_friend"}(i||(i={})),function(t){t.Landing="landing",t.BringAFriend="bring_a_friend"}(o||(o={})),function(t){t.AuthUserValid="auth_user_valid",t.AuthError="auth_"}(a||(a={})),function(t){t.FirstDay="first_day",t.SecondDay="second_day",t.ThirdDay="third_day",t.FourthDay="fourth_day"}(s||(s={})),function(t){t.InGameReward="in_game_reward",t.ProductReward="product_reward"}(u||(u={})),function(t){t.WithReward="with_reward",t.WithoutReward="without_reward"}(c||(c={})),function(t){t.Continue="continue",t.Skip="skip"}(l||(l={})),function(t){t.Gifts="gifts",t.Settings="settings",t.League="league",t.Upgrades="upgrades",t.Tasks="tasks",t.Minigame="minigame",t.Energy="energy"}(f||(f={})),function(t){t.QuestionMark="question_mark",t.PulseHint="pulse_hint",t.PulseCopyLink="pulse_copy_link",t.Return="return"}(h||(h={})),function(t){t.AllGifts="all_gifts",t.UsersGifts="users_gifts"}(d||(d={})),function(t){t.Gift="gift_"}(p||(p={})),function(t){t.Upgrade="upgrade",t.Buy="buy"}(v||(v={})),function(t){t.Task="task_"}(y||(y={})),function(t){t.GoTo="go_to",t.CopyLink="copy_link",t.GetReward="get_reward",t.FriendInvitation="friend_invitation"}(m||(m={})),function(t){t.Info="info",t.Refresh="refresh"}(g||(g={})),function(t){t.ScreenShown="screen_shown",t.Refresh="refresh"}(b||(b={})),function(t){t.Notifications="notifications",t.Music="music",t.Sounds="sounds",t.SpeedUp="speed_up"}(w||(w={})),function(t){t.On="on",t.Off="off"}(S||(S={})),function(t){t.Block="block",t.Button="button"}(_||(_={})),function(t){t.OpenInApp="open_in_app"}(k||(k={})),function(t){t.EndGame="end_game",t.Settings="settings"}(x||(x={}));var E="button"},54478:function(t,e,n){"use strict";n.d(e,{F:function(){return i},r:function(){return r}});var r={energyMultiplier:400,energyRechargers:200,incomePerHour:40,activeGems:2e6,passiveGems:1e5,improvements:2312110,improvementUpgrades:100,gifts:500,tasks:10,dailyGames:5,tickets:30,energySpent:1e3,energyRechargersSpent:30,gemsSpent:2e9,leagueProgress:[{periodNumber:1,rank:5,league:{from:0,to:1}},{periodNumber:2,rank:12,league:{from:1,to:1}},{periodNumber:3,rank:37,league:{from:1,to:0}},{periodNumber:4,rank:2,league:{from:0,to:1}}]},i=[{id:"totalEnergyRechargers",name:"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e \u0431\u0430\u0442\u0430\u0440\u0435\u0435\u043a",value:"1,52 \u0422\u0420\u041b\u041d."},{id:"spentEnergyRechargers",name:"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043e \u0431\u0430\u0442\u0430\u0440\u0435\u0435\u043a",value:"10 \u0422\u042b\u0421."}]},3607:function(t,e,n){"use strict";n.d(e,{T:function(){return u},a:function(){return s}});var r=n(79222),i=n(46533);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&(i.energyRecharge+=r.reward.energyRecharge,i.multiTap+=r.reward.multiTap),i):i},this.isSubtaskCanClaimReward=function(t){return t.canClaimReward&&t.status===o.hY.InProgress},this.tasks=this.gameStatusMocks.getStatus()===i.U.Mocks?v:y()}return t.prototype.claimReward=function(t){var e=this.getSubtaskIdsForClaimReward(t);return this.updateTasksStatusAfterClaimReward(t,e),this.getTotalRewardAfterClaimRewards(t,e)},t}();(0,a.Lj)(d,r.V.gameStatusMocks);var p,v=[{taskId:"1",title:"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 1",description:"\u0417\u0430\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u043d\u0430\u0433\u0440\u0430\u0434\u0443",reward:{energyRecharge:2,multiTap:3},wasSeen:!0,status:o.hY.InProgress,type:o.UA.Default,completedAt:(new Date).toISOString(),executionRules:[],isBlocked:!1,isExpired:!1,subtasks:[{title:"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435",description:"\u0417\u0430\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u043d\u0430\u0433\u0440\u0430\u0434\u0443",id:1,status:o.hY.InProgress,cta:null,completedAt:(new Date).toISOString(),reward:{energyRecharge:2,multiTap:3},canClaimReward:!0,type:o.I0.ClickLink,withDelay:!1}]},{taskId:"2",title:"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 2",description:"\u0417\u0430\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u043d\u0430\u0433\u0440\u0430\u0434\u0443",reward:{energyRecharge:2,multiTap:3},wasSeen:!0,status:o.hY.InProgress,type:o.UA.Default,completedAt:(new Date).toISOString(),executionRules:[],isBlocked:!1,isExpired:!1,subtasks:[{title:"\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u0430\u0434\u0430\u043d\u0438\u0435",description:"\u0417\u0430\u0431\u0438\u0440\u0430\u0439\u0442\u0435 \u043d\u0430\u0433\u0440\u0430\u0434\u0443",id:1,status:o.hY.InProgress,cta:null,completedAt:(new Date).toISOString(),reward:{energyRecharge:2,multiTap:3},canClaimReward:!0,type:o.I0.ClickLink,withDelay:!1}]}],y=function(){return h(s.g.range(1,2).map((function(t){return g({index:t,taskType:p.Blocked})}))).concat(h(s.g.range(3,4).map((function(t){return g({index:t,taskType:p.SimpleCanClaimReward})}))),h(s.g.range(5,6).map((function(t){return g({index:t,taskType:p.Combo})}))),h(s.g.range(7,10).map((function(t){return g({index:t,taskType:p.Simple})}))),h(s.g.range(11,12).map((function(t){return g({index:t,taskType:p.Simple,wasSeen:!1})}))),[g({index:14,taskType:p.ComboInProgress,wasSeen:!1,withDelay:!0}),g({index:15,taskType:p.Expired}),g({index:16,taskType:p.ComboInProgress,isFriendInvitation:!0}),g({index:17,taskType:p.Simple,isClickLink:!0})])};!function(t){t.Blocked="blocked",t.Expired="expired",t.SimpleCanClaimReward="simpleCanClaimReward",t.Simple="simple",t.ComboCanClaimReward="ComboCanClaimReward",t.ComboInProgress="comboInProgress",t.Combo="combo"}(p||(p={}));var m,g=function(t){var e=t.index,n=t.taskType,r=t.wasSeen,i=void 0===r||r,a=t.withDelay,s=t.isFriendInvitation,c=t.isClickLink,l=new u.J,h=n||l.choice([p.Blocked,p.Expired,p.SimpleCanClaimReward,p.Simple,p.ComboCanClaimReward,p.Combo]),d=function(){return[l.choice([o.gH.HasBlackCard,o.gH.HasBrokerAccount,o.gH.HasInvestBox,o.gH.HasPulseProfile,o.gH.NoPulseProfile,o.gH.OverEighteen,o.gH.InvestRiskProfileIsDefined,o.gH.InvestRiskProfileIsNotDefined])]},v={taskId:"t_".concat(e),title:"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f ".concat(e),description:"\u041f\u043e\u0434\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0437\u0430\u0434\u0430\u043d\u0438\u044f ".concat(e),reward:{energyRecharge:l.choice([1,2]),multiTap:l.choice([15,30,45])},wasSeen:i,status:o.hY.InProgress,type:o.UA.Default,completedAt:null},y={realRandom:l,taskIndex:e,withDelay:a,isFriendInvitation:s,isClickLink:c};switch(h){case p.Blocked:return f({},v,{isBlocked:!0,isExpired:!1,executionRules:d(),subtasks:[b(f({},y,{subtaskIndex:1,canClaimReward:!1}))]});case p.Expired:return f({},v,{isBlocked:!1,isExpired:!0,executionRules:d(),subtasks:[b(f({},y,{subtaskIndex:1,canClaimReward:!1}))]});case p.SimpleCanClaimReward:return f({},v,{isBlocked:!1,isExpired:!1,executionRules:[],subtasks:[b(f({},y,{subtaskIndex:1,canClaimReward:!0}))]});case p.Simple:return f({},v,{isBlocked:!1,isExpired:!1,executionRules:[],subtasks:[b(f({},y,{subtaskIndex:1,canClaimReward:!1}))]});case p.ComboCanClaimReward:return f({},v,{isBlocked:!1,isExpired:!1,executionRules:[],subtasks:[b(f({},y,{subtaskIndex:1,canClaimReward:!0})),b(f({},y,{subtaskIndex:2,canClaimReward:!0})),b(f({},y,{subtaskIndex:3,canClaimReward:!0}))]});case p.ComboInProgress:return f({},v,{isBlocked:!1,isExpired:!1,executionRules:[],subtasks:[b(f({},y,{subtaskIndex:1,canClaimReward:!1})),b(f({},y,{subtaskIndex:2,canClaimReward:!1})),b(f({},y,{subtaskIndex:3,canClaimReward:!1}))]});case p.Combo:return f({},v,{isBlocked:!1,isExpired:!1,executionRules:[],subtasks:[b(f({},y,{subtaskIndex:1})),b(f({},y,{subtaskIndex:2,canClaimReward:!1})),b(f({},y,{subtaskIndex:3,canClaimReward:!1}))]})}};!function(t){t.CanClaimReward="canClaimReward",t.InProgress="inProgress",t.Done="done"}(m||(m={}));var b=function(t){var e=t.realRandom,n=t.taskIndex,r=t.subtaskIndex,i=t.canClaimReward,a=t.withDelay,s=t.isFriendInvitation,u=t.isClickLink,c=e.choice([m.CanClaimReward,m.InProgress,m.Done]);void 0!==i&&(c=i?m.CanClaimReward:m.InProgress);var l=s?o.I0.FriendInvitation:u?o.I0.ClickLink:e.choice([o.I0.InvestAcademyLessonPassed,o.I0.InvestAccountCreation,o.I0.InvestboxCreation,o.I0.PulsePostCommentCreation,o.I0.PulsePostCreation,o.I0.PulseProfileSubscription,o.I0.PulseReaction]),h="\u0417\u0430\u0434\u0430\u043d\u0438\u0435 ".concat(n," \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u043d\u0438\u0435 ").concat(r),d="cta \u043a \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u043d\u0438\u044e ".concat(r);l===o.I0.FriendInvitation&&(h="\u041f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0430, \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u043d\u0438\u0435 ".concat(r),d="\u0421\u0441\u044b\u043b\u043a\u0430-\u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435");var p={id:r,title:h,description:e.choice(["\u0417\u0430\u0434\u0430\u043d\u0438\u0435 ".concat(n," \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u043d\u0438\u044f ").concat(r),null]),reward:{energyRecharge:1===r?e.choice([1,2]):e.choice([0,1,2]),multiTap:e.choice([15,30])},type:l,withDelay:Boolean(a)};switch(c){case m.CanClaimReward:return f({},p,{status:o.hY.InProgress,cta:null,completedAt:null,canClaimReward:!0});case m.InProgress:return f({},p,{status:o.hY.InProgress,cta:{text:d,link:"https://test.ru",iosLink:"https://test.ru",deeplink:null,investAppDeeplink:null},completedAt:null,canClaimReward:!1});case m.Done:return f({},p,{status:o.hY.Done,cta:null,completedAt:"2024-04-28T13:44:45.612Z",canClaimReward:!1})}}},56865:function(t,e,n){"use strict";n.d(e,{$5:function(){return i},C8:function(){return r},Dy:function(){return s},HW:function(){return u},Im:function(){return c},MQ:function(){return o},mM:function(){return a}});var r,i=100,o=20,a=20,s=10,u=10,c=0;!function(t){t.UpgradeImprovement="upgrade-improvement",t.UpgradeImprovementWithoutUnfreeze="upgrade-improvement-without-unfreeze",t.SpendEnergy="spend-energy",t.RechargeEnergy="recharge-energy"}(r||(r={}))},48557:function(t,e,n){"use strict";n.d(e,{n:function(){return p}});var r=n(56865),i=n(27188),o=n(14322),a=n(50309),s=n(41430),u=n(22362);function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(n,t);var e=d(n);function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=e.call(this,{gems:"0",totalIncomePerHour:0,energy:0,maxEnergy:0,energyRechargersCount:0,energyMultiplier:0,energyRecoveryInMinutes:180})).config=t,r}var i=n.prototype;return i.isEnoughEnergyToSpend=function(t){return this.state.energy>=t},i.getPointsByEnergy=function(t){return t*this.getMultiplier()},i.setMultiplier=function(t){this.setValue("energyMultiplier",t)},i.addPoints=function(t){var e=this.getParsedGems()+Math.abs(t);this.setValue("gems",String(e))},i.decreasePoints=function(t){var e=this.getParsedGems()-Math.abs(t);this.setValue("gems",String(Math.max(0,e)))},i.restoreEnergy=function(){this.setValue("energy",this.state.maxEnergy)},i.addMultiplier=function(t){this.setValue("energyMultiplier",this.state.energyMultiplier*t)},i.addTotalPerHourMine=function(t){this.setValue("totalIncomePerHour",this.state.totalIncomePerHour+t)},i.addEnergy=function(t){var e=this.state.energy+t;this.setValue("energy",Math.min(e,this.state.maxEnergy))},i.spendEnergy=function(t){this.setValue("energy",Math.max(0,this.state.energy-t)),this.addPoints(this.getPointsByEnergy(t))},i.addEnergyChargeCount=function(t){this.setValue("energyRechargersCount",this.state.energyRechargersCount+t)},i.decreaseEnergyChargeCount=function(t){this.setValue("energyRechargersCount",this.state.energyRechargersCount-t)},i.isEmptyEnergy=function(){return 0===Math.trunc(this.getState().energy)},i.isFullEnergy=function(){var t=this.getState();return t.energy===t.maxEnergy},i.getPoints=function(){return Math.floor(parseInt(this.getState().gems))},i.getMultiplier=function(){return this.getState().energyMultiplier},i.getBatteryChargeLevelInPercent=function(){var t=this.getState(),e=u.R.calcPercentage(t.energy,t.maxEnergy);return u.R.clamp(r.Im,r.$5,e)},i.getEnergyChargeCount=function(){return this.getState().energyRechargersCount},i.getCoinsPerHourMine=function(){return this.getState().totalIncomePerHour},i.isEmptyCharges=function(){return 0===this.getState().energyRechargersCount},i.applyCharge=function(){this.isEmptyCharges()||(this.decreaseEnergyChargeCount(1),this.restoreEnergy())},i.devSetEnergy=function(t){this.config.isProd||(this.setValue("energy",t),this.setValue("maxEnergy",Math.max(t,this.state.maxEnergy)))},i.getTimeBeforeFullBatteryCharge=function(){var t=this.state,e=t.maxEnergy,n=t.energy,r=t.energyRecoveryInMinutes*(1-n/(e||1));return s.ED.minutesToSeconds(r)},i.getParsedGems=function(){return parseFloat(this.getState().gems)},n.isHighBatteryLevel=function(t){return t>=r.MQ},n.isNormalBatteryLevel=function(t){return u.R.inRange(r.Dy,r.mM,t)},n.isLowBatteryLevel=function(t){return t<=r.HW},n}(a.y);(0,o.Lj)(p,i.V.config)},89684:function(t,e,n){"use strict";var r,i;n.d(e,{K:function(){return r}}),function(t){t.Gems="gems",t.Gift="gift",t.EnergyRecharge="energy-recharge",t.Ticket="ticket"}(r||(r={})),function(t){t.Ticket="ticket",t.PersonalPromocode="personal-promocode",t.GeneralPromocode="general-promocode",t.Story="story",t.External="external",t.Target="target",t.Cashback="cashback"}(i||(i={}))},55460:function(t,e,n){"use strict";var r;n.d(e,{e:function(){return r}}),function(t){t.PersonalEnergyMultiplier="PersonalEnergyMultiplier",t.PersonalEnergyRechargers="PersonalEnergyRechargers",t.PersonalIncomePerHour="PersonalIncomePerHour",t.PersonalActiveGems="PersonalActiveGems",t.PersonalPassiveGems="PersonalPassiveGems",t.PersonalImprovements="PersonalImprovements",t.PersonalImprovementUpgrades="PersonalImprovementUpgrades",t.PersonalGifts="PersonalGifts",t.PersonalTasks="PersonalTasks",t.PersonalDailyGames="PersonalDailyGames",t.PersonalTickets="PersonalTickets",t.PersonalEnergySpent="PersonalEnergySpent",t.PersonalEnergyRechargersSpent="PersonalEnergyRechargersSpent",t.PersonalGemsSpent="PersonalGemsSpent",t.PersonalLeagueProgress="PersonalLeagueProgress"}(r||(r={}))},73753:function(t,e,n){"use strict";var r;n.d(e,{U:function(){return r}}),function(t){t.Active="active",t.LeaguesRecalculation="leagues-recalculation",t.GameFinishedBeforeResults="game-finished-before-results",t.GameFinishedAfterResults="game-finished-after-results",t.Mocks="mocks"}(r||(r={}))},79222:function(t,e,n){"use strict";var r,i,o,a,s,u;n.d(e,{H9:function(){return c},R8:function(){return s},RU:function(){return i},Se:function(){return r},U6:function(){return o},XY:function(){return a},iU:function(){return u}}),function(t){t.Gifts="gifts",t.UserGifts="userGifts"}(r||(r={})),function(t){t.UserGift="userGift",t.Ticket="ticket",t.Static="static"}(i||(i={})),function(t){t.Stocks="Stocks",t.Money="Money",t.TShop="TShop"}(o||(o={})),function(t){t.Default1="default1",t.Default2="default2",t.Default3="default3",t.Default4="default4",t.Default5="default5"}(a||(a={})),function(t){t.TPro="t-pro",t.VK="vk",t.TPremium="t-premium",t.TTravel="t-travel",t.TInsurance="t-insurance",t.TInvest="t-invest",t.TAfisha="t-afisha",t.TSupermarkets="t-supermarkets",t.TFuel="t-fuel",t.TShopping="t-shopping",t.YandexPlus="yandex-plus",t.YandexLavka="yandex-lavka",t.Yandex360="yandex-360",t.SberKuper="sber-kuper",t.TastyCoffee="tasty-coffee",t.WineLab="wine-lab",t.Delimobil="delimobil",t.Podruzka="podruzka",t.Start="start",t.SkyEng="sky-eng",t.Common="common"}(s||(s={})),function(t){t.ToClaim="to-claim",t.Pending="pending",t.Received="received"}(u||(u={}));var c=5e3},74550:function(t,e,n){"use strict";n.d(e,{f:function(){return y}});var r=n(79222),i=n(27188),o=n(14322),a=n(50309);function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},a.setShowResultsGiftModal=function(t){a.setValue("isShowResultsGiftModal",t)},a.isShowResultsGiftModal=function(){return a.state.isShowResultsGiftModal},a.getHasNewGiftsByGiftList=function(){return a.getState().gifts.some((function(t){return t.isNew}))},a.onNewGiftViewIntersection=function(t){var e=a.getState(),n=e.gifts,i=e.seenGiftsIds;n.find((function(e){return e.id===t}))&&(a.setValue("seenGiftsIds",d(i).concat([t])),a.globalWindow.setTimeout((function(){a.updateGiftIsNew(t)}),r.H9))},a.clearSeenGiftsIds=function(){a.setValue("seenGiftsIds",[])},a.updateGiftIsNew=function(t){var e=a.getState().gifts;e.find((function(e){return e.id===t}))&&a.setValue("gifts",e.map((function(e){return e.id===t?l({},e,{isNew:!1}):e}))),a.setHasNewGifts(a.getHasNewGiftsByGiftList())},a.sortGiftsByActive=function(t){var e=[],n=[];return t.forEach((function(t){t.isActive?e.push(t):n.push(t)})),d(e).concat(d(n))},a.getDefaultGiftIconType=function(){0===a.getState().defaultGiftIconTypes.length&&a.setValue("defaultGiftIconTypes",d(a.resources.content.GiftIcon.defaultIconTypes));var t=a.getState().defaultGiftIconTypes,e=t.length-1,n=t[e];return a.setValue("defaultGiftIconTypes",t.slice(0,e)),n},a}var i=n.prototype;return i.pushGifts=function(t){this.setValue("gifts",d(this.mapGifts(t)).concat(d(this.state.gifts)))},i.mapGifts=function(t){var e=this;return t.map((function(t){return l({},t,{type:r.RU.UserGift,isActive:e.projectDate.isAfterNow(t.activeBefore),isPending:t.status===r.iU.Pending,iconType:t.iconType||e.getDefaultGiftIconType()})}))},i.setHasNewGifts=function(t){this.setValue("isHasNewGifts",t)},i.getHasNewGifts=function(){return this.state.isHasNewGifts},n}(a.y);y.isGiftTypeStatic=function(t){return t.type===r.RU.Static},y.isGiftTypeUserGift=function(t){return t.type===r.RU.UserGift},(0,o.Lj)(y,i.V.globalWindow,i.V.resources,i.V.projectDate)},22655:function(t,e,n){"use strict";var r;n.d(e,{U:function(){return i},h:function(){return r}}),function(t){t.Lock="Lock",t.Unlock="Unlock",t.Bought="Bought"}(r||(r={}));var i=5},90482:function(t,e,n){"use strict";n.d(e,{H:function(){return p}});var r=n(22655),i=n(27188),o=n(14322),a=n(50309);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t){for(var e=1;es&&c?t.bottom.push(n):t.middle.push(n),t}),{top:[],middle:[],bottom:[]})},t.isLeagueBlocked=function(e){var n=t.getPlayerLeague();return!n||r.lV[e]>r.lV[n]},t.isPreviousLeague=function(e){var n=t.getPlayerLeague();return!!n&&r.lV[e]0}},51029:function(t,e,n){"use strict";var r,i,o;n.d(e,{EX:function(){return c},Em:function(){return u},_Y:function(){return a},nm:function(){return r},ti:function(){return s},vo:function(){return i},w0:function(){return o}}),function(t){t.Start="Start",t.Taps="Taps",t.CrystalCounter="CrystalCounter",t.OpenImprovements="OpenImprovements",t.PauseForRenderImprovementsMap="PauseForRenderImprovementsMap",t.BuyImprovement="BuyImprovement",t.MinePerHour="MinePerHour",t.LeaderboardLocked="LeaderboardLocked",t.ContinueTap="ContinueTap",t.TapsMining="TapsMining",t.OpenTasks="OpenTasks",t.WaitBeforeTasksBackEnabled="WaitBeforeTasksBackEnabled",t.BackToMainFromTasks="BackToMainFromTasks",t.Finish="Finish"}(r||(r={})),function(t){t.StartWithGift="StartWithGift",t.StartCommon="StartCommon"}(i||(i={})),function(t){t.FinishWithViewGift="FinishWithViewGift",t.FinishWithoutGift="FinishWithoutGift"}(o||(o={}));var a,s=[r.Start,r.Taps,r.CrystalCounter,r.OpenImprovements,r.PauseForRenderImprovementsMap,r.BuyImprovement,r.MinePerHour,r.LeaderboardLocked,r.ContinueTap,r.TapsMining,r.OpenTasks,r.WaitBeforeTasksBackEnabled,r.BackToMainFromTasks,r.Finish];!function(t){t.SelectSymbol="SelectSymbol",t.CheckTip="CheckTip",t.NextGame="NextGame",t.Pause1="Pause1",t.Pause2="Pause2"}(a||(a={}));var u,c=[a.SelectSymbol,a.Pause1,a.CheckTip,a.Pause2,a.NextGame];!function(t){t.KotletkaMessage="KotletkaMessage",t.OpenDailyGame="OpenDailyGame",t.OpenSettings="OpenSettings",t.SoonRecalculation="SoonRecalculation",t.TimerForRecalculation="TimerForRecalculation"}(u||(u={}))},74359:function(t,e,n){"use strict";var r;n.d(e,{a:function(){return r}}),function(t){t.Reminders="Reminders",t.Music="Music",t.Sounds="Sounds",t.PerformanceMode="PerformanceMode"}(r||(r={}))},50309:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n1,o=t.isBlocked||t.isExpired,a=i?t.title:t.subtasks[0].title,s=i?t.description:t.subtasks[0].description,u=i?t.reward:t.subtasks[0].reward,c={id:t.taskId,title:a,wasSeen:t.wasSeen,reward:u};if(o)return l({},c,{type:r.z9.Blocked,executionRules:t.executionRules,isExpired:t.isExpired,isBlocked:t.isBlocked});var f=(null===(e=t.subtasks.find((function(t){return t.cta&&n.isSubtaskInProgress(t)})))||void 0===e?void 0:e.cta)||null,h=!!t.subtasks.find((function(t){return t.type===r.I0.FriendInvitation&&n.isSubtaskInProgress(t)})),d=!!t.subtasks.find((function(t){return t.type===r.I0.ClickLink&&n.isSubtaskInProgress(t)})),p=t.subtasks.some((function(t){return t.canClaimReward&&t.status===r.hY.InProgress}))||t.subtasks.every((function(t){return t.status===r.hY.Done})),v=t.subtasks.length>1;return l({},c,{type:r.z9.Active,description:s,withDelay:t.subtasks.some((function(t){return t.withDelay})),canClaimReward:p,cta:f,showShareCta:h,isClickLink:d,subtasks:v?t.subtasks.map((function(t){return l({},t,{isDone:t.status===r.hY.Done,canClaimReward:t.canClaimReward&&t.status===r.hY.InProgress,reward:t.status===r.hY.Done?null:t.reward})})):null})},i.buildTaskDoneForUI=function(t){var e=t.subtasks.length>1;return{type:r.z9.Done,id:t.taskId,title:e?t.title:t.subtasks[0].title,reward:e?t.reward:t.subtasks[0].reward,completedAt:t.completedAt}},i.getNextAvailableTaskDate=function(){return i.getState().nextAvailableTaskDate},i.getSeenTasksIds=function(){return i.getState().seenTasksIds},i.hasDoneTasksIdsForStartShowAnimation=function(t){return i.doneTasksIdsForStartShowAnimation.has(t)},i.deleteIdFromDoneTasksIdsForStartShowAnimation=function(t){i.doneTasksIdsForStartShowAnimation.delete(t)},i.hasProgressTasksIdsForStartShowAnimation=function(t){return i.progressTasksIdsForStartShowAnimation.has(t)},i.deleteIdFromProgressTasksIdsForStartShowAnimation=function(t){i.progressTasksIdsForStartShowAnimation.delete(t)},i.onNewTaskViewIntersection=function(t){var e=i.getState(),n=e.tasks,o=e.seenTasksIds;n.find((function(e){return e.taskId===t}))&&(i.setValue("seenTasksIds",d(o).concat([t])),i.globalWindow.setTimeout((function(){i.updateTaskWasSeen(t)}),r.jF))},i.updateTaskWasSeen=function(t){var e=i.getState().tasks.map((function(e){return e.taskId===t?l({},e,{wasSeen:!0}):e}));i.setTasks({tasks:e})},i.clearSeenTasksIds=function(){i.setValue("seenTasksIds",[])},i.hasNewTasks=function(){return i.getState().tasks.some((function(t){return!t.wasSeen&&t.status===r.hY.InProgress}))},i.getTaskTitleById=function(t){var e=i.getState().tasks.find((function(e){return e.taskId===t}));return e?i.buildTaskInProgressForUI(e).title:""},i.getSubtaskIdsForClaimReward=function(t){return i.getState().dictTasksById[t].subtasks.reduce((function(t,e){return n.isSubtaskCanClaimReward(e)&&t.push(e.id),t}),[])},i.getInProgressSubtaskId=function(t){var e;return(null===(e=i.getState().dictTasksById[t].subtasks.find((function(t){return n.isSubtaskInProgress(t)})))||void 0===e?void 0:e.id)||null},i.getTotalRewardAfterClaimRewards=function(t,e){var n=i.getState().dictTasksById[t],o={energyRecharge:0,multiTap:0};return n.subtasks.forEach((function(t){e.includes(t.id)&&(o.energyRecharge+=t.reward.energyRecharge,o.multiTap+=t.reward.multiTap)})),n.status===r.hY.Done&&n.subtasks.length>1&&(o.energyRecharge+=n.reward.energyRecharge,o.multiTap+=n.reward.multiTap),o},i.updateTasksStatusAfterClaimReward=function(t,e){var n=null,o=i.getState().tasks.map((function(i){if(i.taskId===t){var o=i.subtasks.map((function(t){return e.includes(t.id)?l({},t,{status:r.hY.Done}):t})),a=o.every((function(t){return t.status===r.hY.Done}));return l({},i,{status:n=a?r.hY.Done:i.status,completedAt:a?(new Date).toISOString():i.completedAt,subtasks:o})}return i}));i.setTasks({tasks:i.sortTasksByCanClaimReward(o)}),n===r.hY.InProgress&&i.progressTasksIdsForStartShowAnimation.add(t),n===r.hY.Done&&i.doneTasksIdsForStartShowAnimation.add(t)},i.sortTasks=function(t){var e=[],o=[],a=[],s=[],u=[],c=!0,l=!1,f=void 0;try{for(var h,p=t[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var v=h.value;v.subtasks.some((function(t){return n.isSubtaskCanClaimReward(t)}))?e.push(v):v.isBlocked||v.isExpired?s.push(v):v.wasSeen?v.status!==r.hY.InProgress?v.status!==r.hY.Done||u.push(v):a.push(v):o.push(v)}}catch(y){l=!0,f=y}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}return d(e).concat(d(o),d(a),d(s),d(i.sortTasksByDate(u)))},i.sortTasksByCanClaimReward=function(t){var e=[],r=[],i=!0,o=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){var c=s.value;c.subtasks.some((function(t){return n.isSubtaskCanClaimReward(t)}))?e.push(c):r.push(c)}}catch(l){o=!0,a=l}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return d(e).concat(d(r))},i.sortTasksByDate=function(t){return t.sort((function(t,e){return t.completedAt||e.completedAt?t.completedAt?e.completedAt?new Date(e.completedAt).getTime()-new Date(t.completedAt).getTime():1:-1:0}))},i}return n}(a.y);y.isTaskTypeDone=function(t){return t.type===r.z9.Done},y.isTaskTypeActive=function(t){return t.type===r.z9.Active},y.isTaskTypeBlocked=function(t){return t.type===r.z9.Blocked},y.isSubtaskCanClaimReward=function(t){return t.canClaimReward&&t.status===r.hY.InProgress},y.isSubtaskInProgress=function(t){return t.status===r.hY.InProgress&&!t.canClaimReward},(0,o.Lj)(y,i.V.globalWindow)},80291:function(t,e,n){"use strict";n.d(e,{Eh:function(){return m},F2:function(){return y},Gw:function(){return l},Ji:function(){return a},LM:function(){return o},X_:function(){return b},ZI:function(){return f},bE:function(){return h},jf:function(){return p},nV:function(){return w},qD:function(){return g},rs:function(){return s},tk:function(){return d},ur:function(){return u},w1:function(){return v},yP:function(){return c}});var r=n(80964),i=n(51387);function o(){var t=(0,r.W4)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function a(){var t=(0,r.ge)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function s(){var t=(0,r.lM)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function u(){var t=(0,r.yR)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function c(){var t=(0,r.sI)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function l(){var t=(0,r.k8)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function f(){var t=(0,r.rB)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function h(){var t=(0,r.I)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function d(){var t=(0,r.Dd)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function p(){var t=(0,r.L)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function v(){var t=(0,r.yw)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function y(){var t=(0,r.QZ)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function m(){var t=(0,r.k_)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function g(){var t=(0,r.jZ)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function b(){var t=(0,r.$E)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}function w(){var t=(0,r.Gq)();return(0,i.useSyncExternalStore)(t.subscribe,t.getState),t}},34655:function(t,e,n){"use strict";n.d(e,{I:function(){return d}});var r=n(25106),i=n.n(r),o=n(74486),a=n(80964),s=n(51387),u=n(66605),c=n(74981),l=n(26149),f=n.n(l);function h(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}var d=function(t){var e=t.error,n=t.errorComponent,r=(0,s.useState)(!1),l=r[0],d=r[1],p=(0,a.jO)(),v=(0,a.jF)(),y=(0,s.useMemo)((function(){return p.buildErrorData(e)}),[e]),m=y.resources,g=m.title,b=m.buttonText,w=m.text,S=m.action,_=y.breadcrumbs,k=_.errorCode,x=_.requestId,E=_.timestamp,C=function(){var t,e=(t=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(S){t.next=2;break}return t.abrupt("return");case 2:return d(!0),t.prev=3,t.next=6,p.handleErrorAction(S);case 6:return t.prev=6,d(!1),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){h(o,r,i,a,s,"next",t)}function s(t){h(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();return function(t){var e=(0,a.ZP)(),n=(0,a.iQ)();(0,s.useEffect)((function(){if(t===u._X.Logout){var r=function(){return n.logout()};return e.addEventListener("beforeunload",r),function(){r(),e.removeEventListener("beforeunload",r)}}}),[])}(S),(0,s.useEffect)((function(){"undefined"!==typeof e&&null!==e&&v.logDisplayErrorUIComponent(e,y.breadcrumbs,n)}),[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.St,{title:g}),(0,o.jsx)(c._J,{text:w}),(0,o.jsxs)("div",{className:f().content,children:[(0,o.jsx)(c.jK,{errorCode:k,requestId:x,error:e}),(0,o.jsx)(c.bi,{requestId:x,error:e}),(0,o.jsx)(c.QL,{timestamp:E})]}),(0,o.jsx)(c.Pn,{isDisabled:l,buttonText:b||"",onClick:C})]})}},71630:function(t,e,n){"use strict";n.d(e,{Y:function(){return w}});var r=n(74486),i=n(80964),o=n(34655),a=n(70643),s=n(51387),u=n(3013),c=n(80291),l=n(72272),f=n(59705),h=n(30777),d=n(41432),p=n(88133),v=n(65806),y=n.n(v),m=function(t){var e=t.error,n=(0,i.Pm)().content.AppErrorGameIsNotAProgress,o=n.kotletkaImageBody,v=n.kotletkaImageFingers,m=n.showBeforeContent,g=n.beforeResults,b=n.afterResults,S=(0,i.jO)(),_=(0,i.jF)(),k=(0,i.fd)(),x=(0,i.nF)(),E=(0,i.tk)(),C=(0,i.hn)(),A=(0,i.ZP)(),P=(0,c.qD)(),T=(0,u.useMatchMedia)().isMobile,O=P.isIdleFetchStatus(),M=P.isSuccessFetchStatus(),R=P.isErrorFetchStatus(),I=(0,s.useMemo)((function(){return S.buildErrorData(e)}),[e]);if((0,s.useEffect)((function(){O&&x.fetchGameStatus(),"undefined"!==typeof e&&null!==e&&_.logDisplayErrorUIComponent(e,I.breadcrumbs,l.A.GameIsNotAProgress)}),[]),M){var j=P.isStatusGameFinishedBeforeResults()&&m?g:b,B=j.title,D=j.subtitleMobile,L=j.subtitleDesktop,N=j.cta,F=T?D:L;return(0,r.jsx)("div",{className:y().root,children:(0,r.jsxs)("div",{className:y().wrapper,children:[(0,r.jsx)(h.E,{src:o,alt:B,className:y().kotletkaImageBody}),(0,r.jsx)(h.E,{src:v,alt:B,className:y().kotletkaImageFingers}),(0,r.jsx)("h3",{className:y().title,children:B}),(0,r.jsx)("div",{className:y().text,children:(0,r.jsx)(d.$,{template:F})}),function(){if(N){var t=(e=N.href,k.isInvesting()?e.investAppDeeplink:k.isMb()?e.mbAppDeeplink:k.detectIsIos()?e.mobileLinkIos:T?e.mobileLink:null);if(t)return(0,r.jsx)(f.ZP,{href:t,onClick:function(){E.trackClickToNewInvestGameButton(a.XQ.EndGame),A.setTimeout((function(){C.openLink("tcsgames://action/close")}),1e3)},mod:f._3.ButtonPrimary,size:f.o3.S,className:y().button,children:N.text})}var e;return null}()]})})}return R?(0,r.jsx)(w,{error:P.getErrorFetchData()}):(0,r.jsx)("div",{className:y().root,children:(0,r.jsx)("div",{className:y().preloaderWrapper,children:(0,r.jsx)(p.I,{})})})},g=n(35785),b=n.n(g),w=function(t){var e=t.error,n=(0,i.Pm)().content.AppErrorFullScreen.image;return(0,i.jO)().isErrorGameIsNotAProgress(e)?(0,r.jsx)(m,{error:e}):(0,r.jsxs)("div",{className:b().root,children:[(0,r.jsx)(h.E,{src:n.src,alt:n.alt,className:b().image}),(0,r.jsx)(o.I,{error:e,errorComponent:l.A.Fullscreen})]})}},72272:function(t,e,n){"use strict";var r;n.d(e,{A:function(){return r}}),function(t){t.Fullscreen="Fullscreen",t.Card="Card",t.ForCTA="ForCTA",t.GameIsNotAProgress="GameIsNotAProgress"}(r||(r={}))},74981:function(t,e,n){"use strict";n.d(e,{Pn:function(){return S},jK:function(){return c},bi:function(){return h},_J:function(){return g},QL:function(){return x},St:function(){return v}});var r=n(74486),i=n(80964),o=n(17092),a=n.n(o),s=n(89246),u=n.n(s);function c(t){var e=t.errorCode,n=t.error,o=t.requestId,s=t.className,c=(0,i.Pm)().content.ErrorCodeMessage,l=c.errorCodeTitleTemplate,f=c.identificatorText,h=c.defaultErrorCodeTitle,d=o?f:"";return(0,r.jsxs)("span",{className:a()(u().errorCode,s),children:[l.replace("%errorCodeTitle%",e||("object"===typeof n&&null!==n&&"name"in n?"".concat(n.name):h))," ".concat(d," ")]})}var l=n(83490),f=n.n(l);function h(t){var e=t.requestId,n=t.error,o=t.className,s=(0,i.Pm)().content.ErrorCodeMessage.defaultErrorDescription;return(0,r.jsx)("span",{className:a()(f().request,o),children:e||("object"===typeof n&&null!==n&&"message"in n?"".concat(n.message):s)})}var d=n(2296),p=n.n(d);function v(t){var e=t.title,n=t.className;return(0,r.jsx)("h1",{className:a()(p().title,n),children:e})}var y=n(58012),m=n.n(y);function g(t){var e=t.text,n=t.className;return e?(0,r.jsx)("p",{className:a()(m().subTitle,n),children:e}):null}var b=n(90253),w=n(59705);function S(t){var e=t.buttonText,n=t.isDisabled,i=t.className,o=t.onClick;return e?(0,r.jsx)(b.z,{mod:w._3.ButtonPrimary,size:w.o3.S,isDisabled:n,onClick:o,className:i,children:e}):null}var _=n(27546),k=n.n(_),x=function(t){var e=t.timestamp,n=t.className,o=(0,i.Pm)().content.ErrorCodeMessage.timestampText;return(0,r.jsxs)("span",{className:a()(k().timestamp,n),children:[o,e||(new Date).toISOString()]})}},90253:function(t,e,n){"use strict";n.d(e,{z:function(){return l}});var r=n(74486),i=n(17092),o=n.n(i),a=n(59705),s=n(28448),u=n.n(s);function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){var e,n=t.id,i=t.mod,s=void 0===i?a._3.ButtonYellow:i,l=t.title,f=t.className,h=t.classNameContentContainer,d=t.children,p=t.isDisabled,v=t.dataQa,y=t.size,m=t.type,g=void 0===m?"button":m,b=t.onClick,w=t.onMouseEnter,S=t.onMouseLeave,_=s===a._3.ButtonPrimary||s===a._3.ButtonSecondary||s===a._3.ButtonHexadecimal;return(0,r.jsx)("button",{id:n,className:o()(u()["".concat(s)],f,(e={},c(e,u().sizeXS,y===a.o3.XS),c(e,u().sizeS,y===a.o3.S),c(e,u().sizeM,y===a.o3.M),c(e,u().sizeL,y===a.o3.L),e)),onClick:b,onMouseEnter:w,onMouseLeave:S,onTouchStart:function(){},type:g,disabled:p,title:l,"aria-label":l,"data-qa":v,children:_?(0,r.jsx)("span",{className:o()(u().text,h),children:d}):d})}},59705:function(t,e,n){"use strict";n.d(e,{ZP:function(){return m},_3:function(){return r},o3:function(){return i}});var r,i,o=n(74486),a=n(90253),s=n(72209),u=n(17092),c=n.n(u),l=n(28448),f=n.n(l);function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){for(var e=1;e overrides the height property of the style prop"));var c=o(o({},n),{height:u?u+"px":"100vh"});return i.createElement("div",o({ref:e,style:c},r))}));u.displayName="Div100vh";var c=u;function l(){return f()?window.innerHeight:null}function f(){return"undefined"!==typeof window&&"undefined"!==typeof document}var h=n(41646),d=n(39321),p=n(85126),v=n.n(p);function y(t){var e=t.classNameMain,n=t.header,o=t.footer,a=t.enableDiv100vh,s=t.children,u=function(){return(0,r.jsxs)(r.Fragment,{children:[n&&n,(0,r.jsx)("main",{className:e,children:s||(0,r.jsx)(h.j3,{})}),o&&o]})};return(0,i.useEffect)((function(){var t=document.getElementById("root"),e=a&&t;return e&&(t.style.minHeight="0"),function(){e&&(t.style.minHeight="")}}),[a]),a?(0,r.jsx)(c,{id:d.ou.RootLayout,className:v().root,children:u()}):u()}},41432:function(t,e,n){"use strict";n.d(e,{$:function(){return _}});var r=n(74486),i=n(71856),o=n(80964),a=n(70643),s=n(17092),u=n.n(s),c=n(80291),l=n(59705),f=n(98083),h=n(65713),d=n.n(h);function p(t){var e=t.className,n=(0,o.Pm)().content.FindAppButton,i=n.text,s=n.qrCodeText,h=n.linkDefault,p=n.linkIos,v=(0,o.fd)(),y=(0,o.tk)(),m=(0,c.LM)().isLoggedIn(),g=v.detectIsIos()?p:h;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.ZP,{href:g,mod:l._3.ButtonPrimary,size:l.o3.S,className:u()(d().link,e),onClick:function(){m?y.trackClickToFaqQuestionButton(a.Ul.OpenInApp):y.trackClickToFindAppButton()},children:i}),(0,r.jsx)(f.s,{qrCodeText:s,url:g,className:u()(d().qrCode,e)})]})}var v=n(30777),y=n(66779),m=n.n(y);function g(t){var e=t.className,n=(0,o.Pm)().content.FindAppImage,i=n.src,a=n.alt;return(0,r.jsx)(v.E,{src:i,alt:a,className:u()(m().root,e)})}var b=n(27239),w=n(88809),S=n.n(w);function _(t){var e=t.template,n=function(t){return(0,r.jsx)("b",{children:t})};return(0,r.jsx)(r.Fragment,{children:(0,i.renderParameterizedString)(e,{ul:function(t){return(0,r.jsx)("ul",{className:S().unorderedList,children:(0,r.jsx)(_,{template:t})})},ol:function(t){return(0,r.jsx)("ol",{className:S().orderedList,children:(0,r.jsx)(_,{template:t})})},li:function(t){return(0,r.jsx)("li",{className:S().listItem,children:(0,r.jsx)("span",{className:S().listText,children:(0,r.jsx)(_,{template:t})})})},bold:n,email:function(t){return(0,r.jsx)(l.ZP,{href:"mailto:".concat(t),children:n(t)})},link:function(t){var e=(0,i.parseLinkTemplate)(t),n=e.text,o=e.href;return(0,r.jsx)(l.ZP,{mod:l._3.LinkBordered,href:o,className:S().link,children:n})},br:function(){return(0,r.jsx)("br",{})},u:function(t){return(0,r.jsx)("u",{children:t})},yellow:function(t){return(0,r.jsx)("span",{className:S().yellowText,children:t})},FindAppImage:function(){return(0,r.jsx)(g,{className:S().image})},FindAppButton:function(){return(0,r.jsx)("div",{className:S().button,children:(0,r.jsx)(p,{})})},CrystalIcon:function(){return(0,r.jsx)(b.I,{className:S().crystalIcon})}})})}},88133:function(t,e,n){"use strict";n.d(e,{I:function(){return l}});var r=n(74486),i=n(17092),o=n.n(i);function a(t){var e=t.className;return(0,r.jsxs)("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,r.jsx)("path",{d:"M93.3643 139.557C77.9882 134.992 60.3444 118.13 61.3373 97.4013C61.6244 91.3914 63.2208 86.3114 66.0743 82.2651L72.9367 86.6017C68.6556 91.1078 67.6281 100.318 70.4347 107.943C74.4443 118.838 82.1451 125.521 91.455 130.362C92.8423 131.092 94.3146 131.615 95.6749 132.388C97.4432 133.391 98.1699 135.092 97.4688 137.149C96.7833 139.145 95.3219 140.135 93.3643 139.557Z",fill:"url(#paint0_linear_12837_150142)"}),(0,r.jsx)("path",{d:"M105.968 60.4501C121.126 63.8178 140.916 81.7751 139.718 102.298C139.457 106.77 138.373 110.788 136.492 114.266L129.673 110.657C133.465 103.45 132.834 96.0962 129.372 88.9609C124.702 79.3173 116.989 73.5573 108.023 69.574C106.593 68.9471 105.061 68.5585 103.746 67.7226C102.147 66.7071 101.202 65.0319 101.858 62.9181C102.507 60.8249 104.082 60.0272 105.968 60.4501Z",fill:"url(#paint1_linear_12837_150142)"}),(0,r.jsx)("path",{d:"M129.674 110.657C128.82 112.274 127.693 114.131 125.629 113.19C123.201 112.085 124.484 109.895 125.009 108.313C127.679 100.165 125.889 92.7262 121.109 86.3595C111.226 73.1686 98.0799 69.0714 83.4125 71.9646C75.3477 73.5561 69.4129 77.2393 65.7324 82.7654L72.9375 86.602C74.129 85.3513 75.4731 83.4476 77.3169 84.7961C79.3612 86.2802 77.824 88.1479 77.1527 89.7915C72.974 100.056 74.8362 109.565 82.3118 117.277C90.9041 126.131 101.174 129.026 109.788 128.764C123.551 127.737 132.767 122.106 137.04 113.19L129.674 110.657Z",fill:"#3C19C3"}),(0,r.jsx)("path",{d:"M117.998 91.0637C121.283 96.3747 121.607 102.511 118.947 108.688C116.741 113.751 120.83 117.456 125.591 115.333C129.215 113.717 130.902 108.482 131.497 106.096C131.651 105.479 132.318 105.115 132.909 105.351L133.393 105.545C133.826 105.718 134.081 106.164 133.982 106.62C133.49 108.89 131.695 115.535 127.015 118.655C121.319 122.452 114.611 124.825 105.658 124.825C98.9099 124.422 89.9145 120.483 83.8262 112.96C78.5298 106.407 78.7325 98.3693 82.7209 90.6453C83.3613 89.4085 84.6861 86.5456 82.9794 83.9673C81.6655 81.9823 79.5544 82.058 76.7067 83.0602C74.0737 83.9869 71.0324 87.6441 69.4788 90.4076C69.2623 90.7928 68.8314 91.0115 68.3961 90.9353L67.9885 90.8639C67.3517 90.7524 66.9863 90.0748 67.2731 89.4954C69.3737 85.2518 72.7084 81.481 75.7575 79.738C79.0795 77.8389 82.9808 75.9414 91.8944 75.4668C100.808 74.9922 111.206 80.0615 117.998 91.0637Z",fill:"#4365D0"}),(0,r.jsx)("g",{filter:"url(#filter0_d_12837_150142)",children:(0,r.jsx)("path",{d:"M110.996 88.0753C116.544 93.6239 118.005 101.086 113.984 109.125C110.692 115.709 114.233 116.312 110.996 119.086C107.759 121.861 93.9224 119.086 87.4217 111.586C80.921 104.086 83.7983 94.549 88.4214 88.075C91.6578 83.5428 88.8011 82.0635 92.5001 79.7524C96.1991 77.4412 105.448 82.5268 110.996 88.0753Z",fill:"url(#paint2_radial_12837_150142)"})}),(0,r.jsx)("circle",{cx:"100",cy:"100",r:"10",transform:"rotate(-90 100 100)",fill:"#BE2DFF"}),(0,r.jsx)("g",{filter:"url(#filter1_d_12837_150142)",children:(0,r.jsx)("circle",{cx:"100",cy:"100",r:"7",transform:"rotate(-90 100 100)",fill:"url(#paint3_radial_12837_150142)"})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("filter",{id:"filter0_d_12837_150142",x:"25.6279",y:"21.1809",width:"148.642",height:"156.959",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,r.jsx)("feOffset",{}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"29"}),(0,r.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,r.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.564706 0 0 0 0 0.980392 0 0 0 0 0.992157 0 0 0 0.6 0"}),(0,r.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12837_150142"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_12837_150142",result:"shape"})]}),(0,r.jsxs)("filter",{id:"filter1_d_12837_150142",x:"73.28",y:"73.28",width:"53.44",height:"53.44",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,r.jsx)("feMorphology",{radius:"10",operator:"dilate",in:"SourceAlpha",result:"effect1_dropShadow_12837_150142"}),(0,r.jsx)("feOffset",{}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"4.86"}),(0,r.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"}),(0,r.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12837_150142"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_12837_150142",result:"shape"})]}),(0,r.jsxs)("linearGradient",{id:"paint0_linear_12837_150142",x1:"67.375",y1:"111.265",x2:"88.6189",y2:"137.713",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#3C19C3"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#3C19C3",stopOpacity:"0"})]}),(0,r.jsxs)("linearGradient",{id:"paint1_linear_12837_150142",x1:"128.375",y1:"82.2654",x2:"107.96",y2:"61.2404",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#3C19C3"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#3C19C3",stopOpacity:"0"})]}),(0,r.jsxs)("radialGradient",{id:"paint2_radial_12837_150142",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(99.6386 100.248) rotate(100.441) scale(23.7162 22.4601)",children:[(0,r.jsx)("stop",{stopColor:"#90FAFD"}),(0,r.jsx)("stop",{offset:"0.585",stopColor:"#90FAFD"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#58A8DF"})]}),(0,r.jsxs)("radialGradient",{id:"paint3_radial_12837_150142",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(100 100) rotate(180) scale(8.86667)",children:[(0,r.jsx)("stop",{stopColor:"white"}),(0,r.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.5"})]})]})]})}function s(t){var e=t.className;return(0,r.jsxs)("svg",{width:"200",height:"200",viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,r.jsx)("g",{filter:"url(#filter0_f_12837_150177)",children:(0,r.jsx)("path",{d:"M104 39L104.476 41.223C104.595 41.7768 104.986 42.2328 105.515 42.4344L107 43L105.515 43.5656C104.986 43.7672 104.595 44.2232 104.476 44.777L104 47L103.524 44.777C103.405 44.2232 103.014 43.7672 102.485 43.5656L101 43L102.485 42.4345C103.014 42.2328 103.405 41.7768 103.524 41.223L104 39Z",fill:"#FFDD2D"})}),(0,r.jsx)("g",{filter:"url(#filter1_f_12837_150177)",children:(0,r.jsx)("path",{d:"M51 71L51.4764 73.223C51.595 73.7768 51.9862 74.2328 52.5154 74.4344L54 75L52.5154 75.5656C51.9862 75.7672 51.595 76.2232 51.4764 76.777L51 79L50.5236 76.777C50.405 76.2232 50.0138 75.7672 49.4846 75.5656L48 75L49.4846 74.4345C50.0138 74.2328 50.405 73.7768 50.5236 73.223L51 71Z",fill:"#3BE1FF"})}),(0,r.jsx)("g",{filter:"url(#filter2_f_12837_150177)",children:(0,r.jsx)("path",{d:"M122 65L122.476 67.223C122.595 67.7768 122.986 68.2328 123.515 68.4344L125 69L123.515 69.5656C122.986 69.7672 122.595 70.2232 122.476 70.777L122 73L121.524 70.777C121.405 70.2232 121.014 69.7672 120.485 69.5656L119 69L120.485 68.4345C121.014 68.2328 121.405 67.7768 121.524 67.223L122 65Z",fill:"#3BE1FF"})}),(0,r.jsx)("g",{filter:"url(#filter3_f_12837_150177)",children:(0,r.jsx)("path",{d:"M107 134L107.476 136.223C107.595 136.777 107.986 137.233 108.515 137.434L110 138L108.515 138.566C107.986 138.767 107.595 139.223 107.476 139.777L107 142L106.524 139.777C106.405 139.223 106.014 138.767 105.485 138.566L104 138L105.485 137.434C106.014 137.233 106.405 136.777 106.524 136.223L107 134Z",fill:"white"})}),(0,r.jsx)("g",{filter:"url(#filter4_f_12837_150177)",children:(0,r.jsx)("path",{d:"M66 104L66.4764 106.223C66.595 106.777 66.9862 107.233 67.5154 107.434L69 108L67.5154 108.566C66.9862 108.767 66.595 109.223 66.4764 109.777L66 112L65.5236 109.777C65.405 109.223 65.0138 108.767 64.4846 108.566L63 108L64.4846 107.434C65.0138 107.233 65.405 106.777 65.5236 106.223L66 104Z",fill:"white"})}),(0,r.jsx)("g",{filter:"url(#filter5_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"134",cy:"125",r:"1",fill:"#C536F2"})}),(0,r.jsx)("g",{opacity:"0.4",filter:"url(#filter6_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"136",cy:"157",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter7_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"62",cy:"48",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter8_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"62",cy:"94",r:"1",fill:"#3CDFFD"})}),(0,r.jsx)("g",{filter:"url(#filter9_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"74",cy:"123",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter10_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"125",cy:"77",r:"1",fill:"#C536F2"})}),(0,r.jsx)("g",{filter:"url(#filter11_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"116",cy:"63",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter12_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"96",cy:"62",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter13_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"90",cy:"40",r:"1",fill:"#3CDFFD"})}),(0,r.jsx)("g",{filter:"url(#filter14_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"87",cy:"145",r:"1",fill:"#3CDFFD"})}),(0,r.jsx)("g",{filter:"url(#filter15_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"158",cy:"80",r:"1",fill:"#3CDFFD"})}),(0,r.jsx)("g",{opacity:"0.4",filter:"url(#filter16_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"166",cy:"44",r:"1",fill:"#3CDFFD"})}),(0,r.jsx)("g",{filter:"url(#filter17_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"139",cy:"34",r:"1",fill:"#C536F2"})}),(0,r.jsx)("g",{opacity:"0.5",filter:"url(#filter18_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"34",cy:"140",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter19_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"71",cy:"156",r:"1",fill:"#C536F2"})}),(0,r.jsx)("g",{opacity:"0.4",filter:"url(#filter20_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"36",cy:"25",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{opacity:"0.4",filter:"url(#filter21_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"106",cy:"176",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter22_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"164",cy:"111",r:"1",fill:"#939EFF"})}),(0,r.jsx)("g",{filter:"url(#filter23_f_12837_150177)",children:(0,r.jsx)("circle",{cx:"33",cy:"100",r:"1",fill:"#C536F2"})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("filter",{id:"filter0_f_12837_150177",x:"100.5",y:"38.5",width:"7",height:"9",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.25",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter1_f_12837_150177",x:"47.5",y:"70.5",width:"7",height:"9",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.25",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter2_f_12837_150177",x:"118.5",y:"64.5",width:"7",height:"9",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.25",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter3_f_12837_150177",x:"103.5",y:"133.5",width:"7",height:"9",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.25",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter4_f_12837_150177",x:"62.5",y:"103.5",width:"7",height:"9",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.25",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter5_f_12837_150177",x:"132",y:"123",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter6_f_12837_150177",x:"134",y:"155",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter7_f_12837_150177",x:"60",y:"46",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter8_f_12837_150177",x:"60",y:"92",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter9_f_12837_150177",x:"72",y:"121",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter10_f_12837_150177",x:"123",y:"75",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter11_f_12837_150177",x:"114",y:"61",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter12_f_12837_150177",x:"94",y:"60",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter13_f_12837_150177",x:"88",y:"38",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter14_f_12837_150177",x:"85",y:"143",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter15_f_12837_150177",x:"156",y:"78",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter16_f_12837_150177",x:"164",y:"42",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter17_f_12837_150177",x:"137",y:"32",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter18_f_12837_150177",x:"32",y:"138",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter19_f_12837_150177",x:"69",y:"154",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter20_f_12837_150177",x:"34",y:"23",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter21_f_12837_150177",x:"104",y:"174",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter22_f_12837_150177",x:"162",y:"109",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]}),(0,r.jsxs)("filter",{id:"filter23_f_12837_150177",x:"31",y:"98",width:"4",height:"4",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"0.5",result:"effect1_foregroundBlur_12837_150177"})]})]})]})}var u=n(49764),c=n.n(u);function l(t){var e=t.className;return(0,r.jsxs)("div",{className:o()(c().root,e),children:[(0,r.jsx)(s,{}),(0,r.jsx)(a,{className:c().galaxy})]})}},98083:function(t,e,n){"use strict";n.d(e,{s:function(){return O}});var r=n(74486),i=n(95260),o=n(15265),a=n(51387);function s(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ne.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],s=0;s>>9);var i=21522^(e<<10|n);u(i>>>15==0);for(var o=0;o<=5;o++)this.setFunctionModule(8,o,a(i,o));this.setFunctionModule(8,7,a(i,6)),this.setFunctionModule(8,8,a(i,7)),this.setFunctionModule(7,8,a(i,8));for(var s=9;s<15;s++)this.setFunctionModule(14-s,8,a(i,s));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,a(i,c));for(var l=8;l<15;l++)this.setFunctionModule(8,this.size-15+l,a(i,l));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var t=this.version,e=0;e<12;e++)t=t<<1^7973*(t>>>11);var n=this.version<<12|t;u(n>>>18==0);for(var r=0;r<18;r++){var i=a(n,r),o=this.size-11+r%3,s=Math.floor(r/3);this.setFunctionModule(o,s,i),this.setFunctionModule(s,o,i)}}}},{key:"drawFinderPattern",value:function(t,e){for(var n=-4;n<=4;n++)for(var r=-4;r<=4;r++){var i=Math.max(Math.abs(r),Math.abs(n)),o=t+r,a=e+n;0<=o&&o=s)&&y.push(e[t])}))},g=0;g=1;r-=2){6==r&&(r=5);for(var i=0;i>>3],7-(7&n)),n++)}}u(n==8*t.length)}},{key:"applyMask",value:function(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(var e=0;e5&&t++:(this.finderPenaltyAddHistory(i,o),r||(t+=this.finderPenaltyCountPatterns(o)*e.PENALTY_N3),r=this.modules[n][a],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,o)*e.PENALTY_N3}for(var c=0;c5&&t++:(this.finderPenaltyAddHistory(f,h),l||(t+=this.finderPenaltyCountPatterns(h)*e.PENALTY_N3),l=this.modules[d][c],f=1);t+=this.finderPenaltyTerminateAndCount(l,f,h)*e.PENALTY_N3}for(var p=0;p0&&t[2]==e&&t[3]==3*e&&t[4]==e&&t[5]==e;return(n&&t[0]>=4*e&&t[6]>=e?1:0)+(n&&t[6]>=4*e&&t[0]>=e?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(t,e,n){return t&&(this.finderPenaltyAddHistory(e,n),e=0),e+=this.size,this.finderPenaltyAddHistory(e,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(t,e){0==e[0]&&(t+=this.size),e.pop(),e.unshift(t)}}],[{key:"encodeText",value:function(n,r){var i=t.QrSegment.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=t.QrSegment.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(t,n){var i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,h=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=a&&a<=l&&l<=e.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");for(i=a;;i++){var d=8*e.getNumDataCodewords(i,n),p=c.getTotalBits(t,i);if(p<=d){o=p;break}if(i>=l)throw new RangeError("Data too long")}for(var v=0,y=[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH];v>>3]|=t<<7-(7&e)})),new e(i,n,A,f)}},{key:"getNumRawDataModules",value:function(t){if(te.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var r=Math.floor(t/7)+2;n-=(25*r-10)*r-55,t>=7&&(n-=36)}return u(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],r=0;r>>8!=0||e>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(e>>>r&1)*t;return u(n>>>8==0),n}}]),e}(),n=e;function r(t,e,n){if(e<0||e>31||t>>>e!=0)throw new RangeError("Value out of range");for(var r=e-1;r>=0;r--)n.push(t>>>r&1)}function a(t,e){return 0!=(t>>>e&1)}function u(t){if(!t)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=n;var c=function(){function t(e,n,r){if((0,i.Z)(this,t),this.mode=e,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return(0,o.Z)(t,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(e){var n,i=[],o=s(e);try{for(o.s();!(n=o.n()).done;){r(n.value,8,i)}}catch(a){o.e(a)}finally{o.f()}return new t(t.Mode.BYTE,e.length,i)}},{key:"makeNumeric",value:function(e){if(!t.isNumeric(e))throw new RangeError("String contains non-numeric characters");for(var n=[],i=0;i=1<1&&void 0!==arguments[1]?arguments[1]:0,n=[];return t.forEach((function(t,r){var i=null;t.forEach((function(o,a){if(!o&&null!==i)return n.push("M".concat(i+e," ").concat(r+e,"h").concat(a-i,"v1H").concat(i+e,"z")),void(i=null);if(a!==t.length-1)o&&null===i&&(i=a);else{if(!o)return;null===i?n.push("M".concat(a+e,",").concat(r+e," h1v1H").concat(a+e,"z")):n.push("M".concat(i+e,",").concat(r+e," h").concat(a+1-i,"v1H").concat(i+e,"z"))}}))})),n.join("")}function k(t,e){return t.slice().map((function(t,n){return n=e.y+e.h?t:t.map((function(t,n){return(n=e.x+e.w)&&t}))}))}function x(t,e,n,r){if(null==r)return null;var i=n?4:0,o=t.length+2*i,a=Math.floor(.1*e),s=o/e,u=(r.width||a)*s,c=(r.height||a)*s,l=null==r.x?t.length/2-u/2:r.x*s,f=null==r.y?t.length/2-c/2:r.y*s,h=null;if(r.excavate){var d=Math.floor(l),p=Math.floor(f);h={x:d,y:p,w:Math.ceil(u+l-d),h:Math.ceil(c+f-p)}}return{x:l,y:f,h:c,w:u,excavation:h}}!function(){try{(new Path2D).addPath(new Path2D)}catch(t){return!1}}();function E(t){var e=t,n=e.value,r=e.size,i=void 0===r?128:r,o=e.level,s=void 0===o?"L":o,u=e.bgColor,c=void 0===u?w:u,l=e.fgColor,f=void 0===l?S:l,h=e.includeMargin,d=void 0!==h&&h,p=e.imageSettings,v=m(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),E=g.QrCode.encodeText(n,b[s]).getModules(),C=d?4:0,A=E.length+2*C,P=x(E,i,d,p),T=null;null!=p&&null!=P&&(null!=P.excavation&&(E=k(E,P.excavation)),T=a.createElement("image",{xlinkHref:p.src,height:P.h,width:P.w,x:P.x+C,y:P.y+C,preserveAspectRatio:"none"}));var O=_(E,C);return a.createElement("svg",y({height:i,width:i,viewBox:"0 0 ".concat(A," ").concat(A)},v),a.createElement("path",{fill:c,d:"M0,0 h".concat(A,"v").concat(A,"H0z"),shapeRendering:"crispEdges"}),a.createElement("path",{fill:f,d:O,shapeRendering:"crispEdges"}),T)}var C=n(17092),A=n.n(C),P=n(49745),T=n.n(P);function O(t){var e=t.qrCodeText,n=t.className,i=t.url;return(0,r.jsxs)("div",{className:A()(T().root,n),children:[(0,r.jsx)("div",{className:T().qrWrapper,children:(0,r.jsx)(E,{value:i,className:T().code})}),(0,r.jsx)("div",{className:T().tipWrapper,children:(0,r.jsx)("p",{className:T().tip,children:e})})]})}},27239:function(t,e,n){"use strict";n.d(e,{I:function(){return a}});var r=n(74486),i=n(80964),o=n(30777);function a(t){var e=t.id,n=t.className,a=(0,i.Pm)().content.CrystalIcon,s=a.src,u=a.alt;return(0,r.jsx)(o.E,{id:e,src:s,alt:u,className:n})}},54123:function(t,e,n){"use strict";n.d(e,{L:function(){return r},j:function(){return f}});var r,i=n(27188),o=n(74359),a=n(14322),s=n(91017);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:1;return Array.from({length:Math.floor((e+1-t)/Math.abs(n))},(function(e,r){return t+r*Math.abs(n)}))},t.clear=function(t){t.splice(0,t.length)},t.last=function(t){return t[t.length-1]},t.first=function(t){return t[0]},t}()},41430:function(t,e,n){"use strict";n.d(e,{ED:function(){return s},Ix:function(){return a}});var r=n(56987);var i=1e3,o=3600,a=24,s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.secondsToMilliseconds=function(t){return t*i},t.millisecondsToSeconds=function(t){return t/i},t.millisecondsToDays=function(t){return Math.trunc(t/(36e5*a))},t.millisecondsToHours=function(t){return Math.trunc(t/i/o)},t.minutesToMilliseconds=function(t){return 60*t*i},t.minutesToSeconds=function(t){return 60*t},t.secondsToDays=function(t){return Math.trunc(t/o/a)},t.daysToSeconds=function(t){return t*o*a},t.hoursToSeconds=function(t){return t*o},t.hoursToMilliseconds=function(t){return t*o*i},t.getHourRemainderBySeconds=function(t){return Math.trunc(t/o%a)},t.getMinutesRemainderBySeconds=function(t){return Math.trunc(t/60%60)},t.getSecondsRemainderBySeconds=function(t){return Math.trunc(t%60)},t.isLocalNight=function(){var t=(new Date).getHours();return t>=22||t<=7},t}();s.getTimeToNextMoscowDay=function(){var t=new Date,e=new Date(t.getTime()+s.minutesToMilliseconds(t.getTimezoneOffset())),n=new Date(e.getTime()+s.hoursToMilliseconds(3)),i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+1),o=Math.max(0,i.getTime()-n.getTime());return r.c.formatDailyMiniGameTimer(s.millisecondsToSeconds(o))}},21961:function(t,e,n){"use strict";n.d(e,{o:function(){return i}});var r=n(67879);var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.declineCharge=function(t){return(0,r.declintRu)(t,["\u0437\u0430\u0440\u044f\u0434","\u0437\u0430\u0440\u044f\u0434\u0430","\u0437\u0430\u0440\u044f\u0434\u043e\u0432"])},t.declineDays=function(t){return(0,r.declintRu)(t,["\u0434\u0435\u043d\u044c","\u0434\u043d\u044f","\u0434\u043d\u0435\u0439"])},t.declineTickets=function(t){return(0,r.declintRu)(t,["\u0431\u0438\u043b\u0435\u0442","\u0431\u0438\u043b\u0435\u0442\u0430","\u0431\u0438\u043b\u0435\u0442\u043e\u0432"])},t}()},56987:function(t,e,n){"use strict";n.d(e,{c:function(){return Et}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(t){return function(e,n){var r;if("formatting"===((null===n||void 0===n?void 0:n.context)?String(n.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,o=(null===n||void 0===n?void 0:n.width)?String(n.width):i;r=t.formattingValues[o]||t.formattingValues[i]}else{var a=t.defaultWidth,s=(null===n||void 0===n?void 0:n.width)?String(n.width):t.defaultWidth;r=t.values[s]||t.values[a]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function u(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a,s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(u)?l(u,(function(t){return t.test(s)})):c(u,(function(t){return t.test(s)}));a=t.valueCallback?t.valueCallback(f):f,a=n.valueCallback?n.valueCallback(a):a;var h=e.slice(s.length);return{value:a,rest:h}}}function c(t,e){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function l(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var i=r[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=e.slice(i.length);return{value:a,rest:s}}}var h={code:"en-US",formatDistance:function(t,e,n){var i,o=r[t];return i="string"===typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),(null===n||void 0===n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(t,e,n,r){return a[t]},localize:{ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:f({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},d={};function p(){return d}Math.pow(10,8);var v=6048e5;function y(t){var e,n,r=Object.prototype.toString.call(t);return e=t,(null!=(n=Date)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)||"object"===typeof t&&"[object Date]"===r?new t.constructor(+t):"number"===typeof t||"[object Number]"===r||"string"===typeof t||"[object String]"===r?new Date(t):new Date(NaN)}function m(t){var e=y(t);return e.setHours(0,0,0,0),e}function g(t){var e=y(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function b(t,e){var n=m(t),r=m(e),i=+n-g(n),o=+r-g(r);return Math.round((i-o)/864e5)}function w(t,e){return n=t,(null!=(r=Date)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)?new t.constructor(e):new Date(e);var n,r}function S(t){var e=y(t),n=w(t,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _(t){var e=y(t);return b(e,S(e))+1}function k(t,e){var n,r,i,o,a,s,u,c,l=p(),f=null!==(c=null!==(u=null!==(s=null!==(a=null===e||void 0===e?void 0:e.weekStartsOn)&&void 0!==a?a:null===e||void 0===e||null===(n=e.locale)||void 0===n||null===(r=n.options)||void 0===r?void 0:r.weekStartsOn)&&void 0!==s?s:l.weekStartsOn)&&void 0!==u?u:null===(i=l.locale)||void 0===i||null===(o=i.options)||void 0===o?void 0:o.weekStartsOn)&&void 0!==c?c:0,h=y(t),d=h.getDay(),v=(d=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function C(t){var e=E(t),n=w(t,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),x(n)}function A(t){var e=y(t),n=+x(e)-+C(e);return Math.round(n/v)+1}function P(t,e){var n,r,i,o,a,s,u,c,l=y(t),f=l.getFullYear(),h=p(),d=null!==(c=null!==(u=null!==(s=null!==(a=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==a?a:null===e||void 0===e||null===(n=e.locale)||void 0===n||null===(r=n.options)||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:h.firstWeekContainsDate)&&void 0!==u?u:null===(i=h.locale)||void 0===i||null===(o=i.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==c?c:1,v=w(t,0);v.setFullYear(f+1,0,d),v.setHours(0,0,0,0);var m=k(v,e),g=w(t,0);g.setFullYear(f,0,d),g.setHours(0,0,0,0);var b=k(g,e);return l.getTime()>=m.getTime()?f+1:l.getTime()>=b.getTime()?f:f-1}function T(t,e){var n,r,i,o,a,s,u,c,l=p(),f=null!==(c=null!==(u=null!==(s=null!==(a=null===e||void 0===e?void 0:e.firstWeekContainsDate)&&void 0!==a?a:null===e||void 0===e||null===(n=e.locale)||void 0===n||null===(r=n.options)||void 0===r?void 0:r.firstWeekContainsDate)&&void 0!==s?s:l.firstWeekContainsDate)&&void 0!==u?u:null===(i=l.locale)||void 0===i||null===(o=i.options)||void 0===o?void 0:o.firstWeekContainsDate)&&void 0!==c?c:1,h=P(t,e),d=w(t,0);return d.setFullYear(h,0,f),d.setHours(0,0,0,0),k(d,e)}function O(t,e){var n=y(t),r=+k(n,e)-+T(n,e);return Math.round(r/v)+1}function M(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}var R=function(t,e){var n=t.getFullYear(),r=n>0?n:1-n;return M("yy"===e?r%100:r,e.length)},I=function(t,e){var n=t.getMonth();return"M"===e?String(n+1):M(n+1,2)},j=function(t,e){return M(t.getDate(),e.length)},B=function(t,e){return M(t.getHours()%12||12,e.length)},D=function(t,e){return M(t.getHours(),e.length)},L=function(t,e){return M(t.getMinutes(),e.length)},N=function(t,e){return M(t.getSeconds(),e.length)},F=function(t,e){var n=e.length,r=t.getMilliseconds();return M(Math.trunc(r*Math.pow(10,n-3)),e.length)},G="midnight",U="noon",V="morning",H="afternoon",W="evening",z="night",q={G:function(t,e,n){var r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return R(t,e)},Y:function(t,e,n,r){var i=P(t,r),o=i>0?i:1-i;return"YY"===e?M(o%100,2):"Yo"===e?n.ordinalNumber(o,{unit:"year"}):M(o,e.length)},R:function(t,e){return M(E(t),e.length)},u:function(t,e){return M(t.getFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return M(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return M(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getMonth();switch(e){case"M":case"MM":return I(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return M(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=O(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):M(i,e.length)},I:function(t,e,n){var r=A(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):M(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):j(t,e)},D:function(t,e,n){var r=_(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):M(r,e.length)},E:function(t,e,n){var r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return M(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return M(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return M(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getHours();switch(r=12===i?U:0===i?G:i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getHours();switch(r=i>=17?W:i>=12?H:i>=4?V:z,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return B(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):D(t,e)},K:function(t,e,n){var r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):M(r,e.length)},k:function(t,e,n){var r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):M(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):L(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):N(t,e)},S:function(t,e){return F(t,e)},X:function(t,e,n){var r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return K(r);case"XXXX":case"XX":return X(r);default:return X(r,":")}},x:function(t,e,n){var r=t.getTimezoneOffset();switch(e){case"x":return K(r);case"xxxx":case"xx":return X(r);default:return X(r,":")}},O:function(t,e,n){var r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Y(r,":");default:return"GMT"+X(r,":")}},z:function(t,e,n){var r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Y(r,":");default:return"GMT"+X(r,":")}},t:function(t,e,n){return M(Math.trunc(t.getTime()/1e3),e.length)},T:function(t,e,n){return M(t.getTime(),e.length)}};function Y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+M(o,2)}function K(t,e){return t%60===0?(t>0?"-":"+")+M(Math.abs(t)/60,2):X(t,e)}function X(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t>0?"-":"+",r=Math.abs(t),i=M(Math.trunc(r/60),2),o=M(r%60,2);return n+i+e+o}var J=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Q=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Z={p:Q,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return J(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",J(i,e)).replace("{{time}}",Q(o,e))}},$=/^D+$/,tt=/^Y+$/,et=["D","DD","YY","YYYY"];function nt(t){return e=t,(null!=(n=Date)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n)||"object"===typeof t&&"[object Date]"===Object.prototype.toString.call(t);var e,n}function rt(t){if(!nt(t)&&"number"!==typeof t)return!1;var e=y(t);return!isNaN(Number(e))}var it=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ot=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,at=/^'([^]*?)'?$/,st=/''/g,ut=/[a-zA-Z]/;function ct(t,e,n){var r,i,o,a,s,u,c,l,f,d,v,m,g,b,w,S,_,k,x=p(),E=null!==(d=null!==(f=null===n||void 0===n?void 0:n.locale)&&void 0!==f?f:x.locale)&&void 0!==d?d:h,C=null!==(b=null!==(g=null!==(m=null!==(v=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==v?v:null===n||void 0===n||null===(r=n.locale)||void 0===r||null===(i=r.options)||void 0===i?void 0:i.firstWeekContainsDate)&&void 0!==m?m:x.firstWeekContainsDate)&&void 0!==g?g:null===(o=x.locale)||void 0===o||null===(a=o.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==b?b:1,A=null!==(k=null!==(_=null!==(S=null!==(w=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==w?w:null===n||void 0===n||null===(s=n.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==S?S:x.weekStartsOn)&&void 0!==_?_:null===(c=x.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==k?k:0,P=y(t);if(!rt(P))throw new RangeError("Invalid time value");var T=e.match(ot).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Z[e])(t,E.formatLong):t})).join("").match(it).map((function(t){if("''"===t)return{isToken:!1,value:"'"};var e=t[0];if("'"===e)return{isToken:!1,value:lt(t)};if(q[e])return{isToken:!0,value:t};if(e.match(ut))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));E.localize.preprocessor&&(T=E.localize.preprocessor(P,T));var O={firstWeekContainsDate:C,weekStartsOn:A,locale:E};return T.map((function(r){if(!r.isToken)return r.value;var i=r.value;return(!(null===n||void 0===n?void 0:n.useAdditionalWeekYearTokens)&&function(t){return tt.test(t)}(i)||!(null===n||void 0===n?void 0:n.useAdditionalDayOfYearTokens)&&function(t){return $.test(t)}(i))&&function(t,e,n){var r=function(t,e,n){var r="Y"===t[0]?"years":"days of the month";return"Use `".concat(t.toLowerCase(),"` instead of `").concat(t,"` (in `").concat(e,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(t,e,n);if(console.warn(r),et.includes(t))throw new RangeError(r)}(i,e,String(t)),(0,q[i[0]])(P,i,E.localize,O)})).join("")}function lt(t){var e=t.match(at);return e?e[1].replace(st,"'"):t}function ft(t,e){if(void 0!==t.one&&1===e)return t.one;var n=e%10,r=e%100;return 1===n&&11!==r?t.singularNominative.replace("{{count}}",String(e)):n>=2&&n<=4&&(r<10||r>20)?t.singularGenitive.replace("{{count}}",String(e)):t.pluralGenitive.replace("{{count}}",String(e))}function ht(t){return function(e,n){return(null===n||void 0===n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?t.future?ft(t.future,e):"\u0447\u0435\u0440\u0435\u0437 "+ft(t.regular,e):t.past?ft(t.past,e):ft(t.regular,e)+" \u043d\u0430\u0437\u0430\u0434":ft(t.regular,e)}}var dt={lessThanXSeconds:ht({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),xSeconds:ht({regular:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043a\u0443\u043d\u0434 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043a\u0443\u043d\u0434"}}),halfAMinute:function(t,e){return(null===e||void 0===e?void 0:e.addSuffix)?e.comparison&&e.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434":"\u043f\u043e\u043b\u043c\u0438\u043d\u0443\u0442\u044b"},lessThanXMinutes:ht({regular:{one:"\u043c\u0435\u043d\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435 {{count}} \u043c\u0438\u043d\u0443\u0442"},future:{one:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443",singularNominative:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),xMinutes:ht({regular:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0430",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442"},past:{singularNominative:"{{count}} \u043c\u0438\u043d\u0443\u0442\u0443 \u043d\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442\u044b \u043d\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043c\u0438\u043d\u0443\u0442 \u043d\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442\u044b",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0438\u043d\u0443\u0442"}}),aboutXHours:ht({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0447\u0430\u0441\u043e\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043e\u0432"}}),xHours:ht({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043e\u0432"}}),xDays:ht({regular:{singularNominative:"{{count}} \u0434\u0435\u043d\u044c",singularGenitive:"{{count}} \u0434\u043d\u044f",pluralGenitive:"{{count}} \u0434\u043d\u0435\u0439"}}),aboutXWeeks:ht({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044e",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),xWeeks:ht({regular:{singularNominative:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044f",singularGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u0438",pluralGenitive:"{{count}} \u043d\u0435\u0434\u0435\u043b\u044c"}}),aboutXMonths:ht({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),xMonths:ht({regular:{singularNominative:"{{count}} \u043c\u0435\u0441\u044f\u0446",singularGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0430",pluralGenitive:"{{count}} \u043c\u0435\u0441\u044f\u0446\u0435\u0432"}}),aboutXYears:ht({regular:{singularNominative:"\u043e\u043a\u043e\u043b\u043e {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442",pluralGenitive:"\u043e\u043a\u043e\u043b\u043e {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),xYears:ht({regular:{singularNominative:"{{count}} \u0433\u043e\u0434",singularGenitive:"{{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"{{count}} \u043b\u0435\u0442"}}),overXYears:ht({regular:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u0433\u043e\u0434\u0430",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}}),almostXYears:ht({regular:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 {{count}} \u043b\u0435\u0442"},future:{singularNominative:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434",singularGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043e\u0434\u0430",pluralGenitive:"\u043f\u043e\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043b\u0435\u0442"}})},pt={date:i({formats:{full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},defaultWidth:"full"}),time:i({formats:{full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:i({formats:{any:"{{date}}, {{time}}"},defaultWidth:"any"})};function vt(t,e,n){return+k(t,n)===+k(e,n)}var yt=["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0443","\u0441\u0443\u0431\u0431\u043e\u0442\u0443"];function mt(t){var e=yt[t];return 2===t?"'\u0432\u043e "+e+" \u0432' p":"'\u0432 "+e+" \u0432' p"}var gt,bt={lastWeek:function(t,e,n){var r=t.getDay();return vt(t,e,n)?mt(r):function(t){var e=yt[t];switch(t){case 0:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435 "+e+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 "+e+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u043f\u0440\u043e\u0448\u043b\u0443\u044e "+e+" \u0432' p"}}(r)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043e\u0434\u043d\u044f \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:function(t,e,n){var r=t.getDay();return vt(t,e,n)?mt(r):function(t){var e=yt[t];switch(t){case 0:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 "+e+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 "+e+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e "+e+" \u0432' p"}}(r)},other:"P"},wt={code:"ru",formatDistance:function(t,e,n){return dt[t](e,n)},formatLong:pt,formatRelative:function(t,e,n,r){var i=bt[t];return"function"===typeof i?i(e,n,r):i},localize:{ordinalNumber:function(t,e){var n=Number(t),r=null===e||void 0===e?void 0:e.unit;return n+("date"===r?"-\u0435":"week"===r||"minute"===r||"second"===r?"-\u044f":"-\u0439")},era:s({values:{narrow:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],abbreviated:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],wide:["\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b","\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],wide:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:s({values:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440.","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044c","\u0444\u0435\u0432\u0440\u0430\u043b\u044c","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0435\u043b\u044c","\u043c\u0430\u0439","\u0438\u044e\u043d\u044c","\u0438\u044e\u043b\u044c","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c","\u043e\u043a\u0442\u044f\u0431\u0440\u044c","\u043d\u043e\u044f\u0431\u0440\u044c","\u0434\u0435\u043a\u0430\u0431\u0440\u044c"]},defaultWidth:"wide",formattingValues:{narrow:["\u042f","\u0424","\u041c","\u0410","\u041c","\u0418","\u0418","\u0410","\u0421","\u041e","\u041d","\u0414"],abbreviated:["\u044f\u043d\u0432.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u044f","\u0438\u044e\u043d.","\u0438\u044e\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043d\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u044f\u0431.","\u0434\u0435\u043a."],wide:["\u044f\u043d\u0432\u0430\u0440\u044f","\u0444\u0435\u0432\u0440\u0430\u043b\u044f","\u043c\u0430\u0440\u0442\u0430","\u0430\u043f\u0440\u0435\u043b\u044f","\u043c\u0430\u044f","\u0438\u044e\u043d\u044f","\u0438\u044e\u043b\u044f","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f","\u043e\u043a\u0442\u044f\u0431\u0440\u044f","\u043d\u043e\u044f\u0431\u0440\u044f","\u0434\u0435\u043a\u0430\u0431\u0440\u044f"]},defaultFormattingWidth:"wide"}),day:s({values:{narrow:["\u0412","\u041f","\u0412","\u0421","\u0427","\u041f","\u0421"],short:["\u0432\u0441","\u043f\u043d","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043f\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043a","\u043f\u043d\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043f\u0442\u043d","\u0441\u0443\u0431"],wide:["\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043f\u044f\u0442\u043d\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043e\u0442\u0430"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u044c"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u043e",afternoon:"\u0434\u0435\u043d\u044c",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043d\u043e\u0447\u044c"}},defaultWidth:"any",formattingValues:{narrow:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},abbreviated:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d.",noon:"\u043f\u043e\u043b\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447.",night:"\u043d\u043e\u0447\u0438"},wide:{am:"\u0414\u041f",pm:"\u041f\u041f",midnight:"\u043f\u043e\u043b\u043d\u043e\u0447\u044c",noon:"\u043f\u043e\u043b\u0434\u0435\u043d\u044c",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043d\u044f",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043d\u043e\u0447\u0438"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:f({matchPattern:/^(\d+)(-?(\u0435|\u044f|\u0439|\u043e\u0435|\u044c\u0435|\u0430\u044f|\u044c\u044f|\u044b\u0439|\u043e\u0439|\u0438\u0439|\u044b\u0439))?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:u({matchPatterns:{narrow:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,abbreviated:/^((\u0434\u043e )?\u043d\.?\s?\u044d\.?)/i,wide:/^(\u0434\u043e \u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0435\u0439 \u044d\u0440\u044b|\u043d\u0430\u0448\u0430 \u044d\u0440\u0430)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^\u0434/i,/^\u043d/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432.?/i,wide:/^[1234](-?[\u044b\u043e\u0438]?\u0439?)? \u043a\u0432\u0430\u0440\u0442\u0430\u043b/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:u({matchPatterns:{narrow:/^[\u044f\u0444\u043c\u0430\u0438\u0441\u043e\u043d\u0434]/i,abbreviated:/^(\u044f\u043d\u0432|\u0444\u0435\u0432|\u043c\u0430\u0440\u0442?|\u0430\u043f\u0440|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]?|\u0438\u044e\u043b[\u044c\u044f]?|\u0430\u0432\u0433|\u0441\u0435\u043d\u0442?|\u043e\u043a\u0442|\u043d\u043e\u044f\u0431?|\u0434\u0435\u043a)\.?/i,wide:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043b[\u044c\u044f]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u044f/i,/^\u0444/i,/^\u043c/i,/^\u0430/i,/^\u043c/i,/^\u0438/i,/^\u0438/i,/^\u0430/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u044f/i],any:[/^\u044f/i,/^\u0444/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432/i,/^\u0441/i,/^\u043e/i,/^\u043d/i,/^\u0434/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[\u0432\u043f\u0441\u0447]/i,short:/^(\u0432\u0441|\u0432\u043e|\u043f\u043d|\u043f\u043e|\u0432\u0442|\u0441\u0440|\u0447\u0442|\u0447\u0435|\u043f\u0442|\u043f\u044f|\u0441\u0431|\u0441\u0443)\.?/i,abbreviated:/^(\u0432\u0441\u043a|\u0432\u043e\u0441|\u043f\u043d\u0434|\u043f\u043e\u043d|\u0432\u0442\u0440|\u0432\u0442\u043e|\u0441\u0440\u0434|\u0441\u0440\u0435|\u0447\u0442\u0432|\u0447\u0435\u0442|\u043f\u0442\u043d|\u043f\u044f\u0442|\u0441\u0443\u0431).?/i,wide:/^(\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c[\u0435\u044f]|\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430?|\u0432\u0442\u043e\u0440\u043d\u0438\u043a\u0430?|\u0441\u0440\u0435\u0434[\u0430\u044b]|\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430?|\u043f\u044f\u0442\u043d\u0438\u0446[\u0430\u044b]|\u0441\u0443\u0431\u0431\u043e\u0442[\u0430\u044b])/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^\u0432/i,/^\u043f/i,/^\u0432/i,/^\u0441/i,/^\u0447/i,/^\u043f/i,/^\u0441/i],any:[/^\u0432[\u043e\u0441]/i,/^\u043f[\u043e\u043d]/i,/^\u0432/i,/^\u0441\u0440/i,/^\u0447/i,/^\u043f[\u044f\u0442]/i,/^\u0441[\u0443\u0431]/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,abbreviated:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\.?|\u043f\u043e\u043b\u0434\.?|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\.?|\u043d\u043e\u0447[\u044c\u0438])/i,wide:/^([\u0434\u043f]\u043f|\u043f\u043e\u043b\u043d\u043e\u0447\u044c|\u043f\u043e\u043b\u0434\u0435\u043d\u044c|\u0443\u0442\u0440[\u043e\u0430]|\u0434\u0435\u043d\u044c|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430?|\u043d\u043e\u0447[\u044c\u0438])/i},defaultMatchWidth:"wide",parsePatterns:{any:{am:/^\u0434\u043f/i,pm:/^\u043f\u043f/i,midnight:/^\u043f\u043e\u043b\u043d/i,noon:/^\u043f\u043e\u043b\u0434/i,morning:/^\u0443/i,afternoon:/^\u0434[\u0435\u043d]/i,evening:/^\u0432/i,night:/^\u043d/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:1}},St=n(67879),_t=n(41430),kt=n(21961),xt=n(22362);!function(t){t.Days="Days",t.Hours="Hours",t.Minutes="Minutes",t.Seconds="Seconds"}(gt||(gt={}));var Et=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.formatDailyMiniGameTimer=function(e){var n=t.pad(_t.ED.getHourRemainderBySeconds(e)),r=t.pad(_t.ED.getMinutesRemainderBySeconds(e));return"".concat(n,":").concat(r)},t.formatLeaderBoardTimer=function(e){var n=_t.ED.secondsToDays(e);if(n>0)return"".concat(n," ").concat(kt.o.declineDays(n));var r=t.pad(_t.ED.getHourRemainderBySeconds(e)),i=t.pad(_t.ED.getMinutesRemainderBySeconds(e)),o=t.pad(_t.ED.getSecondsRemainderBySeconds(e));return"".concat(r,":").concat(i,":").concat(o)},t.formatFrozenImprovementTimer=function(e){var n=t.pad(_t.ED.getHourRemainderBySeconds(e)),r=t.pad(_t.ED.getMinutesRemainderBySeconds(e)),i=t.pad(_t.ED.getSecondsRemainderBySeconds(e));return"".concat(n,":").concat(r,":").concat(i)},t.formatNumberByDigits=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n="".concat(t).replace(/\s/g,"");return n.length=10||t<0?t.toString():"0"+t},t.formatDateToText=function(t){return ct(new Date(t),"d\xa0MMMM",{locale:wt})},t.formatPoints=function(t){if(xt.R.inRange(1e3,9999,t)){var e=t.toString();return"".concat(e[0]," ").concat(e.slice(1))}return(0,St.formatNumberThousands)(t)},t.formatNumberAndAddSuffixSI=function(t){if(t<1)return(Math.floor(100*t)/100).toString();var e=Math.floor(Math.log10(Math.abs(t))/3);if(0===e)return Math.floor(t).toString();var n=["","K","M","B","T","P","E"][e];if(!n)return"999E+";var r=t/Math.pow(10,3*e);return(Math.floor(100*r)/100).toString()+n},t}()},22362:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return t.clamp=function(t,e,n){return Math.min(Math.max(n,t),e)},t.inRange=function(t,e,n){return n>=t&&n<=e},t.calcPercentage=function(e,n){return t.clamp(0,100,e/Math.max(n,1)*100)},t.lerp=function(t,e,n){return(1-n)*t+n*e},t.roundWith2Precision=function(t){return Math.round(100*(t+Number.EPSILON))/100},t.getDecimalPart=function(t){if(Number.isInteger(t))return 0;var e=t.toString().split(".")[1];return Number(e)},t}()},13305:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});var r=n(46533);var i=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e=t.prototype;return e.getArrayFromValues=function(t,e){var n=this;return r.g.range(0,e).map((function(){return n.choice(t)}))},e.choice=function(t){if(0===t.length)throw new Error("\u041f\u0443\u0441\u0442\u043e\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0432 \u043c\u0435\u0442\u043e\u0434 Random.choice");return t[this.getRandomArrayIndex(t)]},e.choiceList=function(t,e){var n=this;return r.g.range(0,e-1).map((function(){return n.choice(t)}))},e.generateNumberArray=function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this;return r.g.range(0,t).map((function(){return i?o.generateIntegerNumber(e,n):o.generateFloatNumber(e,n)}))},e.getRandomArrayIndex=function(t){return this.generateIntegerNumber(0,t.length-1)},e.generateRandomHexColor=function(){return"#".concat(Math.floor(16777215*this.generateFloatNumber(0,1)).toString(16).padEnd(6,"0"))},t}()},89596:function(t,e,n){"use strict";n.d(e,{J:function(){return l}});var r=n(13305);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=o(t);if(e){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}var l=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}var r=n.prototype;return r.generateIntegerNumber=function(t,e){return Math.floor(this.generateFloatNumber(t,e))},r.generateFloatNumber=function(t,e){return Math.random()*(e-t+1)+t},n}(r.k)},42306:function(t,e,n){"use strict";n.d(e,{C:function(){return u}});var r=n(69655),i=n(55033);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]&&arguments[2];return Array.isArray(t)||(t=[t]),e?t.map((function(t){return"string"===typeof t||n?e(t):t})):t}},58252:function(t,e,n){"use strict";n.d(e,{u:function(){return r}});var r=function(t,e){var n=e.split("?")[1];return n&&(t+="?".concat(n)),t}},18594:function(t,e,n){"use strict";n.d(e,{X:function(){return r}});var r=function(t){return!Array.isArray(t)}},64404:function(t,e,n){"use strict";n.d(e,{I:function(){return G}});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},i=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},o=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n+0},a=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t>e?t:e},s=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},u=function(t){return{r:a(t.r,0,255),g:a(t.g,0,255),b:a(t.b,0,255),a:a(t.a)}},c=function(t){return{r:o(t.r),g:o(t.g),b:o(t.b),a:o(t.a,3)}},l=/^#([0-9a-f]{3,8})$/i,f=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},h=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,o=Math.max(e,n,r),a=o-Math.min(e,n,r),s=a?o===e?(n-r)/a:o===n?2+(r-e)/a:4+(e-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:i}},d=function(t){var e=t.h,n=t.s,r=t.v,i=t.a;e=e/360*6,n/=100,r/=100;var o=Math.floor(e),a=r*(1-n),s=r*(1-(e-o)*n),u=r*(1-(1-e+o)*n),c=o%6;return{r:255*[r,s,a,a,u,r][c],g:255*[u,r,r,s,a,a][c],b:255*[a,a,u,r,r,s][c],a:i}},p=function(t){return{h:s(t.h),s:a(t.s,0,100),l:a(t.l,0,100),a:a(t.a)}},v=function(t){return{h:o(t.h),s:o(t.s),l:o(t.l),a:o(t.a,3)}},y=function(t){return d((n=(e=t).s,{h:e.h,s:(n*=((r=e.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:e.a}));var e,n,r},m=function(t){return{h:(e=h(t)).h,s:(i=(200-(n=e.s))*(r=e.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,n,r,i},g=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,b=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,w=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_={string:[[function(t){var e=l.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?o(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?o(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=w.exec(t)||S.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:u({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=g.exec(t)||b.exec(t);if(!e)return null;var n,i,o=p({h:(n=e[1],i=e[2],void 0===i&&(i="deg"),Number(n)*(r[i]||1)),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)});return y(o)},"hsl"]],object:[[function(t){var e=t.r,n=t.g,r=t.b,o=t.a,a=void 0===o?1:o;return i(e)&&i(n)&&i(r)?u({r:Number(e),g:Number(n),b:Number(r),a:Number(a)}):null},"rgb"],[function(t){var e=t.h,n=t.s,r=t.l,o=t.a,a=void 0===o?1:o;if(!i(e)||!i(n)||!i(r))return null;var s=p({h:Number(e),s:Number(n),l:Number(r),a:Number(a)});return y(s)},"hsl"],[function(t){var e=t.h,n=t.s,r=t.v,o=t.a,u=void 0===o?1:o;if(!i(e)||!i(n)||!i(r))return null;var c,l=(c={h:Number(e),s:Number(n),v:Number(r),a:Number(u)},{h:s(c.h),s:a(c.s,0,100),v:a(c.v,0,100),a:a(c.a)});return d(l)},"hsv"]]},k=function(t,e){for(var n=0;n=.5},t.prototype.toHex=function(){return e=(t=c(this.rgba)).r,n=t.g,r=t.b,a=(i=t.a)<1?f(o(255*i)):"","#"+f(e)+f(n)+f(r)+a;var t,e,n,r,i,a},t.prototype.toRgb=function(){return c(this.rgba)},t.prototype.toRgbString=function(){return e=(t=c(this.rgba)).r,n=t.g,r=t.b,(i=t.a)<1?"rgba("+e+", "+n+", "+r+", "+i+")":"rgb("+e+", "+n+", "+r+")";var t,e,n,r,i},t.prototype.toHsl=function(){return v(m(this.rgba))},t.prototype.toHslString=function(){return e=(t=v(m(this.rgba))).h,n=t.s,r=t.l,(i=t.a)<1?"hsla("+e+", "+n+"%, "+r+"%, "+i+")":"hsl("+e+", "+n+"%, "+r+"%)";var t,e,n,r,i},t.prototype.toHsv=function(){return t=h(this.rgba),{h:o(t.h),s:o(t.s),v:o(t.v),a:o(t.a,3)};var t},t.prototype.invert=function(){return T({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},t.prototype.saturate=function(t){return void 0===t&&(t=.1),T(E(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),T(E(this.rgba,-t))},t.prototype.grayscale=function(){return T(E(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),T(A(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),T(A(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){return"number"==typeof t?T({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):o(this.rgba.a,3);var e},t.prototype.hue=function(t){var e=m(this.rgba);return"number"==typeof t?T({h:t,s:e.s,l:e.l,a:e.a}):o(e.h)},t.prototype.isEqual=function(t){return this.toHex()===T(t).toHex()},t}(),T=function(t){return e=t,(null!=(n=P)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](e):e instanceof n)?t:new P(t);var e,n},O=[];function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:16777215;R(this,t),this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=e}var e,n,r;return e=t,n=[{key:"red",get:function(){return this._components[0]}},{key:"green",get:function(){return this._components[1]}},{key:"blue",get:function(){return this._components[2]}},{key:"alpha",get:function(){return this._components[3]}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"value",get:function(){return this._value},set:function(e){if(B(e,t))this._value=this._cloneSource(e._value),this._int=e._int,this._components.set(e._components);else{if(null===e)throw new Error("Cannot set Color#value to null");null!==this._value&&this._isSourceEqual(this._value,e)||(this._value=this._cloneSource(e),this._normalize(this._value))}}},{key:"_cloneSource",value:function(t){return"string"===typeof t||"number"===typeof t||B(t,Number)||null===t?t:Array.isArray(t)||ArrayBuffer.isView(t)?t.slice(0):"object"===typeof t&&null!==t?function(t){for(var e=1;e>16)+(65280&t)+((255&t)<<16)}},{key:"multiply",value:function(e){var n=D(t._temp.setValue(e)._components,4),r=n[0],i=n[1],o=n[2],a=n[3];return this._components[0]*=r,this._components[1]*=i,this._components[2]*=o,this._components[3]*=a,this._refreshInt(),this._value=null,this}},{key:"premultiply",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&(this._components[0]*=t,this._components[1]*=t,this._components[2]*=t),this._components[3]=t,this._refreshInt(),this._value=null,this}},{key:"toPremultiplied",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(1===t)return(255<<24)+this._int;if(0===t)return e?0:this._int;var n=this._int>>16&255,r=this._int>>8&255,i=255&this._int;return e&&(n=n*t+.5|0,r=r*t+.5|0,i=i*t+.5|0),(255*t<<24)+(n<<16)+(r<<8)+i}},{key:"toHex",value:function(){var t=this._int.toString(16);return"#".concat("000000".substring(0,6-t.length)+t)}},{key:"toHexa",value:function(){var t=Math.round(255*this._components[3]).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}},{key:"setAlpha",value:function(t){return this._components[3]=this._clamp(t),this}},{key:"_normalize",value:function(e){var n,r,i,o;if(("number"===typeof e||B(e,Number))&&e>=0&&e<=16777215)n=(e>>16&255)/255,r=(e>>8&255)/255,i=(255&e)/255,o=1;else if((Array.isArray(e)||B(e,Float32Array))&&e.length>=3&&e.length<=4){var a,s;n=(a=D(e=this._clamp(e),4))[0],r=a[1],i=a[2],o=void 0===(s=a[3])?1:s}else if((B(e,Uint8Array)||B(e,Uint8ClampedArray))&&e.length>=3&&e.length<=4){var u,c;n=(u=D(e=this._clamp(e,0,255),4))[0],r=u[1],i=u[2],o=void 0===(c=u[3])?255:c,n/=255,r/=255,i/=255,o/=255}else if("string"===typeof e||"object"===typeof e){if("string"===typeof e){var l=t.HEX_PATTERN.exec(e);l&&(e="#".concat(l[2]))}var f,h=T(e);h.isValid()&&(n=(f=h.rgba).r,r=f.g,i=f.b,o=f.a,n/=255,r/=255,i/=255)}if(void 0===n)throw new Error("Unable to convert color ".concat(e));this._components[0]=n,this._components[1]=r,this._components[2]=i,this._components[3]=o,this._refreshInt()}},{key:"_refreshInt",value:function(){this._clamp(this._components);var t=D(this._components,3),e=t[0],n=t[1],r=t[2];this._int=(255*e<<16)+(255*n<<8)+(255*r|0)}},{key:"_clamp",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return"number"===typeof t?Math.min(Math.max(t,e),n):(t.forEach((function(r,i){t[i]=Math.min(Math.max(r,e),n)})),t)}}],r=[{key:"isColorLike",value:function(e){return"number"===typeof e||"string"===typeof e||B(e,Number)||B(e,t)||Array.isArray(e)||B(e,Uint8Array)||B(e,Uint8ClampedArray)||B(e,Float32Array)||void 0!==e.r&&void 0!==e.g&&void 0!==e.b||void 0!==e.r&&void 0!==e.g&&void 0!==e.b&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.l||void 0!==e.h&&void 0!==e.s&&void 0!==e.l&&void 0!==e.a||void 0!==e.h&&void 0!==e.s&&void 0!==e.v||void 0!==e.h&&void 0!==e.s&&void 0!==e.v&&void 0!==e.a}}],n&&I(e.prototype,n),r&&I(e,r),t}();F.shared=new F,F._temp=new F,F.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;var G=F},56968:function(t,e,n){"use strict";var r;n.d(e,{z:function(){return o}});var i={createCanvas:function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,n},getCanvasRenderingContext2D:function(){return CanvasRenderingContext2D},getWebGLRenderingContext:function(){return WebGLRenderingContext},getNavigator:function(){return navigator},getBaseUrl:function(){return null!==(r=document.baseURI)&&void 0!==r?r:window.location.href},getFontFaceSet:function(){return document.fonts},fetch:function(t,e){return fetch(t,e)},parseXML:function(t){return(new DOMParser).parseFromString(t,"text/xml")}},o={get:function(){return i},set:function(t){i=t}}},92846:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:-1;return this.handle(t,(function(t){e.findIndex((function(e){return e.name===t.name}))>=0||(e.push({name:t.name,value:t.ref}),e.sort((function(t,e){return u(e.value,n)-u(t.value,n)})))}),(function(t){var n=e.findIndex((function(e){return e.name===t.name}));-1!==n&&e.splice(n,1)}))},handleByList:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return this.handle(t,(function(t){e.includes(t.ref)||(e.push(t.ref),e.sort((function(t,e){return u(e,n)-u(t,n)})))}),(function(t){var n=e.indexOf(t.ref);-1!==n&&e.splice(n,1)}))},mixin:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&void 0!==n[0]?n[0]:{},void 0===f){t.next=3;break}return t.abrupt("return",f);case 3:return t.next=5,m(i().mark((function t(){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=d.z.get().getNavigator().gpu){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,t.next=6,n.requestAdapter(e);case 6:return r=t.sent,t.next=9,r.requestDevice();case 9:return t.abrupt("return",!0);case 12:return t.prev=12,t.t0=t.catch(3),t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[3,12]])})))();case 5:return f=t.sent,t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)}))),b.apply(this,arguments)}function w(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function S(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){w(o,r,i,a,s,"next",t)}function s(t){w(o,r,i,a,s,"throw",t)}a(void 0)}))}}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this,i=t._plugins.slice(0);i.reverse(),i.forEach((function(t){t.destroy.call(r)})),this.stage.destroy(n),this.stage=null,this.renderer.destroy(e),this.renderer=null}}],n&&R(e.prototype,n),r&&R(e,r),t}();B._plugins=[];var D=B;o.Rw.handleByList(o.nw.Application,D._plugins),o.Rw.add(P.l);var L=n(37243),N=n(58252),F=n(74491),G=n(79690),U=n(59193),V=n(25442),H=n(48618);function W(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n"))&&nt(d.z.get().parseXML(t))},ot=function(t){return rt(d.z.get().parseXML(t))};function at(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function st(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){at(o,r,i,a,s,"next",t)}function s(t){at(o,r,i,a,s,"throw",t)}a(void 0)}))}}var ut=[".xml",".fnt"],ct={extension:{type:o.nw.CacheParser,name:"cacheBitmapFont"},test:function(t){return e=t,null!=(n=Q)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n;var e,n},getCacheableAssets:function(t,e){var n={};return t.forEach((function(t){n[t]=e,n["".concat(t,"-bitmap")]=e})),n["".concat(e.fontFamily,"-bitmap")]=e,n}},lt={extension:{type:o.nw.LoadParser,priority:L.Q.Normal},name:"loadBitmapFont",test:function(t){return ut.includes(F.E.extname(t).toLowerCase())},testParse:function(t){return st(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",tt(t)||it(t));case 1:case"end":return e.stop()}}),e)})))()},parse:function(t,e,n){return st(i().mark((function r(){var o,a,s,u,c,l,f,h,d,p,v;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(o=tt(t)?et(t):ot(t),a=e.src,s=o.pages,u=[],c=o.distanceField?{scaleMode:"linear",alphaMode:"premultiply-alpha-on-upload",autoGenerateMipmaps:!1,resolution:1}:{},l=0;l1&&void 0!==arguments[1]&&arguments[1];dt(this,t),this._loader=e,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}var e,n,r;return e=t,n=[{key:"add",value:function(t){var e=this;t.forEach((function(t){e._assetList.push(t)})),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}},{key:"_next",value:function(){var t=this;return function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ht(o,r,i,a,s,"next",t)}function s(t){ht(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i().mark((function e(){var n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._assetList.length||!t._isActive){e.next=9;break}for(t._isLoading=!0,n=[],r=Math.min(t._assetList.length,t._maxConcurrent),o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0,i=!0,o=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(i=(s=u.next()).done);i=!0){if(!s.value.match(_e)){r=!1;break}}}catch(l){o=!0,a=l}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}var c=n.join(" ");return r||(c='"'.concat(c.replace(/[\\"]/g,"\\$&"),'"')),c}var xe=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/;var Ee={extension:{type:o.nw.LoadParser,priority:L.Q.Low},name:"loadWebFont",test:function(t){return le(t,Se)||fe(t,we)},load:function(t,e){return function(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ye(o,r,i,a,s,"next",t)}function s(t){ye(o,r,i,a,s,"throw",t)}a(void 0)}))}}(i().mark((function n(){var r,o,a,s,u,c,l,f,h,p,v,y,m,g;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(r=d.z.get().getFontFaceSet())){n.next=23;break}u=[],l=null!==(c=null===(o=e.data)||void 0===o?void 0:o.family)&&void 0!==c?c:ke(t),h=null!==(f=null===(a=e.data)||void 0===a||null===(s=a.weights)||void 0===s?void 0:s.filter((function(t){return be.includes(t)})))&&void 0!==f?f:["normal"],v=null!==(p=e.data)&&void 0!==p?p:{},y=0;case 11:if(!(y1&&void 0!==arguments[1]?arguments[1]:1,r=null===(e=Pe.H.RETINA_PREFIX)||void 0===e?void 0:e.exec(t);return r?parseFloat(r[1]):n}function Oe(t,e,n){t.label=n,t._sourceOrigin=n;var r=new U.x({source:t,label:n}),i=function(){delete e.promiseCache[n],yt.C.has(n)&&yt.C.remove(n)};return r.source.once("destroy",(function(){e.promiseCache[n]&&((0,ft.Z)("[Assets] A TextureSource managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the TextureSource."),i())})),r.once("destroy",(function(){t.destroyed||((0,ft.Z)("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),i())})),r}function Me(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function Re(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Me(o,r,i,a,s,"next",t)}function s(t){Me(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function je(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var De={extension:{type:o.nw.LoadParser,priority:L.Q.Low,name:"loadSVG"},name:"loadSVG",config:{crossOrigin:"anonymous",parseAsGraphicsContext:!1},test:function(t){return le(t,"image/svg+xml")||fe(t,".svg")},load:function(t,e,n){return Re(i().mark((function r(){var o,a;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null!==(a=null===(o=e.data)||void 0===o?void 0:o.parseAsGraphicsContext)&&void 0!==a?a:this.config.parseAsGraphicsContext)){r.next=4;break}return r.abrupt("return",Fe(t));case 4:return r.abrupt("return",Le(t,e,n,this.config.crossOrigin));case 5:case"end":return r.stop()}}),r,this)}))).apply(this)},unload:function(t){t.destroy(!0)}};function Le(t,e,n,r){return Ne.apply(this,arguments)}function Ne(){return Ne=Re(i().mark((function t(e,n,r,o){var a,s,u,c,l,f,h,p,v,y,m,g,b,w,S,_,k,x;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,d.z.get().fetch(e);case 3:return c=t.sent,t.next=6,c.blob();case 6:return l=t.sent,f=URL.createObjectURL(l),(h=new Image).src=f,h.crossOrigin=o,t.next=13,h.decode();case 13:return URL.revokeObjectURL(f),p=document.createElement("canvas"),v=p.getContext("2d"),y=(null===(a=n.data)||void 0===a?void 0:a.resolution)||Te(e),g=null!==(m=null===(s=n.data)||void 0===s?void 0:s.width)&&void 0!==m?m:h.width,w=null!==(b=null===(u=n.data)||void 0===u?void 0:u.height)&&void 0!==b?b:h.height,p.width=g*y,p.height=w*y,v.drawImage(h,0,0,g*y,w*y),_=null!==(S=n.data)&&void 0!==S?S:{},_.parseAsGraphicsContext,k=Be(_,["parseAsGraphicsContext"]),x=new Ce.c(je({resource:p,alphaMode:"premultiply-alpha-on-upload",resolution:y},k)),t.abrupt("return",Oe(x,r,e));case 28:case"end":return t.stop()}}),t)}))),Ne.apply(this,arguments)}function Fe(t){return Ge.apply(this,arguments)}function Ge(){return(Ge=Re(i().mark((function t(e){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d.z.get().fetch(e);case 2:return n=t.sent,t.next=5,n.text();case 5:return r=t.sent,(o=new Ae.g).svg(r),t.abrupt("return",o);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Ue=null,Ve=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ue||(Ue=URL.createObjectURL(new Blob(['(function () {\n \'use strict\';\n\n const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";\n async function checkImageBitmap() {\n try {\n if (typeof createImageBitmap !== "function")\n return false;\n const response = await fetch(WHITE_PNG);\n const imageBlob = await response.blob();\n const imageBitmap = await createImageBitmap(imageBlob);\n return imageBitmap.width === 1 && imageBitmap.height === 1;\n } catch (_e) {\n return false;\n }\n }\n void checkImageBitmap().then((result) => {\n self.postMessage(result);\n });\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(Ue)};Ve.revokeObjectURL=function(){Ue&&(URL.revokeObjectURL(Ue),Ue=null)};var He=null,We=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),He||(He=URL.createObjectURL(new Blob(['(function () {\n \'use strict\';\n\n async function loadImageBitmap(url, alphaMode) {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`[WorkerManager.loadImageBitmap] Failed to fetch ${url}: ${response.status} ${response.statusText}`);\n }\n const imageBlob = await response.blob();\n return alphaMode === "premultiplied-alpha" ? createImageBitmap(imageBlob, { premultiplyAlpha: "none" }) : createImageBitmap(imageBlob);\n }\n self.onmessage = async (event) => {\n try {\n const imageBitmap = await loadImageBitmap(event.data.data[0], event.data.data[1]);\n self.postMessage({\n data: imageBitmap,\n uuid: event.data.uuid,\n id: event.data.id\n }, [imageBitmap]);\n } catch (e) {\n self.postMessage({\n error: e,\n uuid: event.data.uuid,\n id: event.data.id\n });\n }\n };\n\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(He)};function ze(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function qe(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ze(o,r,i,a,s,"next",t)}function s(t){ze(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Ye(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:globalThis.location;if(t.startsWith("data:"))return"";e||(e=globalThis.location);var n=new URL(t,document.baseURI);if(n.hostname!==e.hostname||n.port!==e.port||n.protocol!==e.protocol)return"anonymous";return""}(e)}function mn(t){return new Promise((function(e,n){var r=function(){o(),e()},i=function(t){o(),n(t)},o=function(){t.removeEventListener("canplaythrough",r),t.removeEventListener("error",i)};t.addEventListener("canplaythrough",r),t.addEventListener("error",i),t.load()}))}var gn,bn={name:"loadVideo",extension:{type:o.nw.LoadParser,name:"loadVideo"},test:function(t){var e=le(t,vn),n=fe(t,pn);return e||n},load:function(t,e,n){return fn(i().mark((function r(){var o,a,s,u,c,l,f,h;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=dn,r.t1={},r.t2=un.L.defaultOptions,r.t3=(null===(o=e.data)||void 0===o?void 0:o.resolution)||Te(t),r.t4=null===(a=e.data)||void 0===a?void 0:a.alphaMode,r.t4){r.next=10;break}return r.next=9,(0,cn.D)();case 9:r.t4=r.sent;case 10:return r.t5=r.t4,r.t6={resolution:r.t3,alphaMode:r.t5},r.t7=e.data,s=(0,r.t0)(r.t1,r.t2,r.t6,r.t7),u=document.createElement("video"),c={preload:!1!==s.autoLoad?"auto":void 0,"webkit-playsinline":!1!==s.playsinline?"":void 0,playsinline:!1!==s.playsinline?"":void 0,muted:!0===s.muted?"":void 0,loop:!0===s.loop?"":void 0,autoplay:!1!==s.autoPlay?"":void 0},Object.keys(c).forEach((function(t){var e=c[t];void 0!==e&&u.setAttribute(t,e)})),!0===s.muted&&(u.muted=!0),yn(u,t,s.crossorigin),l=document.createElement("source"),t.startsWith("data:")?f=t.slice(5,t.indexOf(";")):t.startsWith("blob:")||(h=t.split("?")[0].slice(t.lastIndexOf(".")+1).toLowerCase(),f=un.L.MIME_TYPES[h]||"video/".concat(h)),l.src=t,f&&(l.type=f),r.abrupt("return",new Promise((function(r){var o=function(){var a=fn(i().mark((function a(){var c;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(c=new un.L(dn({},s,{resource:u})),u.removeEventListener("canplay",o),!e.data.preload){i.next=5;break}return i.next=5,mn(u);case 5:r(Oe(c,n,t));case 6:case"end":return i.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();u.addEventListener("canplay",o),u.appendChild(l)})));case 25:case"end":return r.stop()}}),r)})))()},unload:function(t){t.destroy(!0)}},wn={extension:{type:o.nw.ResolveParser,name:"resolveTexture"},test:sn.test,parse:function(t){var e;return{resolution:parseFloat(null!==(gn=null===(e=Pe.H.RETINA_PREFIX.exec(t))||void 0===e?void 0:e[1])&&void 0!==gn?gn:"1"),format:t.split(".").pop(),src:t}}},Sn={extension:{type:o.nw.ResolveParser,priority:-2,name:"resolveJson"},test:function(t){return Pe.H.RETINA_PREFIX.test(t)&&t.endsWith(".json")},parse:wn.parse};function _n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=this;return xn(i().mark((function n(){var r,o,a,s,u,c,l;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e._initialized){n.next=4;break}return(0,ft.Z)("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?"),n.abrupt("return");case 4:if(e._initialized=!0,t.defaultSearchParams&&e.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(e.resolver.basePath=t.basePath),t.bundleIdentifier&&e.resolver.setBundleIdentifier(t.bundleIdentifier),!t.manifest){n.next=15;break}if("string"!==typeof(a=t.manifest)){n.next=14;break}return n.next=13,e.load(a);case 13:a=n.sent;case 14:e.resolver.addManifest(a);case 15:return u=null!==(s=null===(r=t.texturePreference)||void 0===r?void 0:r.resolution)&&void 0!==s?s:1,c="number"===typeof u?[u]:u,n.next=20,e._detectFormats({preferredFormats:null===(o=t.texturePreference)||void 0===o?void 0:o.format,skipDetections:t.skipDetections,detections:e._detections});case 20:l=n.sent,e.resolver.prefer({params:{format:l,resolution:c}}),t.preferences&&e.setPreferences(t.preferences);case 23:case"end":return n.stop()}}),n)})))()}},{key:"add",value:function(t){this.resolver.add(t)}},{key:"load",value:function(t,e){var n=this;return xn(i().mark((function r(){var o,a,s,u;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n._initialized){r.next=3;break}return r.next=3,n.init();case 3:return o=(0,ie.X)(t),a=(0,re.S)(t).map((function(t){if("string"!==typeof t){var e=n.resolver.getAlias(t);return e.some((function(t){return!n.resolver.hasKey(t)}))&&n.add(t),Array.isArray(e)?e[0]:e}return n.resolver.hasKey(t)||n.add({alias:t,src:t}),t})),s=n.resolver.resolve(a),r.next=8,n._mapLoadToResolve(s,e);case 8:return u=r.sent,r.abrupt("return",o?u[a[0]]:u);case 10:case"end":return r.stop()}}),r)})))()}},{key:"addBundle",value:function(t,e){this.resolver.addBundle(t,e)}},{key:"loadBundle",value:function(t,e){var n=this;return xn(i().mark((function r(){var o,a,s,u,c,l,f,h;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n._initialized){r.next=3;break}return r.next=3,n.init();case 3:return o=!1,"string"===typeof t&&(o=!0,t=[t]),a=n.resolver.resolveBundle(t),s={},u=Object.keys(a),c=0,l=0,f=function(){null===e||void 0===e||e(++c/l)},h=u.map((function(t){var e=a[t];return l+=Object.keys(e).length,n._mapLoadToResolve(e,f).then((function(e){s[t]=e}))})),r.next=14,Promise.all(h);case 14:return r.abrupt("return",o?s[t[0]]:s);case 15:case"end":return r.stop()}}),r)})))()}},{key:"backgroundLoad",value:function(t){var e=this;return xn(i().mark((function n(){var r;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e._initialized){n.next=3;break}return n.next=3,e.init();case 3:"string"===typeof t&&(t=[t]),r=e.resolver.resolve(t),e._backgroundLoader.add(Object.values(r));case 6:case"end":return n.stop()}}),n)})))()}},{key:"backgroundLoadBundle",value:function(t){var e=this;return xn(i().mark((function n(){var r;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e._initialized){n.next=3;break}return n.next=3,e.init();case 3:"string"===typeof t&&(t=[t]),r=e.resolver.resolveBundle(t),Object.values(r).forEach((function(t){e._backgroundLoader.add(Object.values(t))}));case 6:case"end":return n.stop()}}),n)})))()}},{key:"reset",value:function(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}},{key:"get",value:function(t){if("string"===typeof t)return yt.C.get(t);for(var e={},n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function $n(t,e){return!e||"object"!==er(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tr(t,e){return(tr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var er=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function nr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Jn(t);if(e){var i=Jn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $n(this,n)}}var rr=new Hn.Y(0,0,0,0),ir=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tr(t,e)}(o,t);var e,n,r,i=nr(o);function o(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};qn(this,o);var n=(e=Qn({},o.defaultOptions,e,{dynamicProperties:Qn({},o.defaultOptions.dynamicProperties,null===e||void 0===e?void 0:e.dynamicProperties)})).dynamicProperties,r=e.shader,a=e.roundPixels,s=e.texture,u=e.particles,c=Zn(e,["dynamicProperties","shader","roundPixels","texture","particles"]);for(var l in(t=i.call(this,Qn({label:"ParticleContainer"},c))).renderPipeId="particle",t.batched=!1,t._childrenDirty=!1,t.texture=s||null,t.shader=r,t._properties={},zn){var f=zn[l],h=n[l];t._properties[l]=Qn({},f,{dynamic:h})}return t.allowChildren=!0,t.roundPixels=null!==a&&void 0!==a&&a,t.particleChildren=null!==u&&void 0!==u?u:[],t}return e=o,n=[{key:"addParticle",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n-1&&(this.particleChildren.splice(o,1),r=!0)}return r&&this.onViewUpdate(),e[0]}},{key:"update",value:function(){this._childrenDirty=!0}},{key:"onViewUpdate",value:function(){this._childrenDirty=!0,Xn(Jn(o.prototype),"onViewUpdate",this).call(this)}},{key:"bounds",get:function(){return rr}},{key:"updateBounds",value:function(){}},{key:"destroy",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Xn(Jn(o.prototype),"destroy",this).call(this,e);var n="boolean"===typeof e?e:null===e||void 0===e?void 0:e.texture;if(n){var r,i,a="boolean"===typeof e?e:null===e||void 0===e?void 0:e.textureSource,s=null!==(i=this.texture)&&void 0!==i?i:null===(r=this.particleChildren[0])||void 0===r?void 0:r.texture;s&&s.destroy(a)}this.texture=null,null===(t=this.shader)||void 0===t||t.destroy()}},{key:"removeParticles",value:function(t,e){var n=this.particleChildren.splice(t,e);return this.onViewUpdate(),n}},{key:"removeParticleAt",value:function(t){var e=this.particleChildren.splice(t,1);return this.onViewUpdate(),e[0]}},{key:"addParticleAt",value:function(t,e){return this.particleChildren.splice(e,0,t),this.onViewUpdate(),t}},{key:"addChild",value:function(){for(var t=arguments.length,e=new Array(t),n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function gr(t,e){return!e||"object"!==Sr(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function br(t,e){return(br=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return cr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Sr=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function _r(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pr(t);if(e){var i=pr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gr(this,n)}}var kr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&br(t,e)}(o,t);var e,n,r,i=_r(o);function o(){for(var t=arguments.length,e=new Array(t),n=0;n=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*o,this._currentTime+=o;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramer)&&this.onLoop(),this._updateTexture())}}},{key:"_updateTexture",value:function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this.texture=this._textures[t],this.updateAnchor&&this.texture.defaultAnchor&&this.anchor.copyFrom(this.texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))}},{key:"destroy",value:function(){this.stop(),dr(pr(o.prototype),"destroy",this).call(this),this.onComplete=null,this.onFrameChange=null,this.onLoop=null}},{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(t){if(vr(t[0],U.x))this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;ethis.totalFrames-1)throw new Error("[AnimatedSprite]: Invalid frame index value ".concat(t,", expected to be between 0 and totalFrames ").concat(this.totalFrames,"."));var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this._updateTexture()}},{key:"playing",get:function(){return this._playing}},{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(sr.v.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._playing&&(sr.v.shared.add(this.update,this),this._isConnectedToTicker=!0))}}])&&fr(e.prototype,n),r&&fr(e,r),o}(ur.j),xr=n(64096);function Er(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Or(t,e){return!e||"object"!==Rr(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Mr(t,e){return(Mr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var Rr=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function Ir(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Pr(t);if(e){var i=Pr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Or(this,n)}}var jr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mr(t,e)}(o,t);var e,n,r,i=Ir(o);function o(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var r=t.text,a=t.resolution,s=t.style,u=t.anchor,c=t.width,l=t.height,f=t.roundPixels,h=Tr(t,["text","resolution","style","anchor","width","height","roundPixels"]);return n=i.call(this,function(t){for(var e=1;e=r&&t.x<=r+e&&(i=-n*this.anchor.y,t.y>=i&&t.y<=i+n)}},{key:"onViewUpdate",value:function(){this.didViewUpdate||(this._didTextUpdate=!0),Ar(Pr(o.prototype),"onViewUpdate",this).call(this)}},{key:"_getKey",value:function(){return"".concat(this.text,":").concat(this._style.styleKey,":").concat(this._resolution)}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ar(Pr(o.prototype),"destroy",this).call(this,t),this.owner=null,this._bounds=null,this._anchor=null,("boolean"===typeof t?t:null===t||void 0===t?void 0:t.style)&&this._style.destroy(t),this._style=null,this._text=null}}],n&&Er(e.prototype,n),r&&Er(e,r),o}(Wn.$);function Br(t,e){var n,r=null!==(n=t[0])&&void 0!==n?n:{};return("string"===typeof r||t[1])&&((0,T.a1)(T.PD,"use new ".concat(e,'({ text: "hi!", style }) instead')),r={text:r,style:t[1]}),r}var Dr=n(72100),Lr=n(16074);function Nr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fr(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;o(this,t),this.array=null,this.a=e,this.b=n,this.c=r,this.d=i,this.tx=a,this.ty=s}var e,n,s;return e=t,s=[{key:"IDENTITY",get:function(){return c.identity()}},{key:"shared",get:function(){return u.identity()}}],(n=[{key:"fromArray",value:function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}},{key:"set",value:function(t,e,n,r,i,o){return this.a=t,this.b=e,this.c=n,this.d=r,this.tx=i,this.ty=o,this}},{key:"toArray",value:function(t,e){this.array||(this.array=new Float32Array(9));var n=e||this.array;return t?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n}},{key:"apply",value:function(t,e){e=e||new i.E;var n=t.x,r=t.y;return e.x=this.a*n+this.c*r+this.tx,e.y=this.b*n+this.d*r+this.ty,e}},{key:"applyInverse",value:function(t,e){e=e||new i.E;var n=this.a,r=this.b,o=this.c,a=this.d,s=this.tx,u=this.ty,c=1/(n*a+o*-r),l=t.x,f=t.y;return e.x=a*c*l+-o*c*f+(u*o-s*a)*c,e.y=n*c*f+-r*c*l+(-u*n+s*r)*c,e}},{key:"translate",value:function(t,e){return this.tx+=t,this.ty+=e,this}},{key:"scale",value:function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this}},{key:"rotate",value:function(t){var e=Math.cos(t),n=Math.sin(t),r=this.a,i=this.c,o=this.tx;return this.a=r*e-this.b*n,this.b=r*n+this.b*e,this.c=i*e-this.d*n,this.d=i*n+this.d*e,this.tx=o*e-this.ty*n,this.ty=o*n+this.ty*e,this}},{key:"append",value:function(t){var e=this.a,n=this.b,r=this.c,i=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*n+t.b*i,this.c=t.c*e+t.d*r,this.d=t.c*n+t.d*i,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*n+t.ty*i+this.ty,this}},{key:"appendFrom",value:function(t,e){var n=t.a,r=t.b,i=t.c,o=t.d,a=t.tx,s=t.ty,u=e.a,c=e.b,l=e.c,f=e.d;return this.a=n*u+r*l,this.b=n*c+r*f,this.c=i*u+o*l,this.d=i*c+o*f,this.tx=a*u+s*l+e.tx,this.ty=a*c+s*f+e.ty,this}},{key:"setTransform",value:function(t,e,n,r,i,o,a,s,u){return this.a=Math.cos(a+u)*i,this.b=Math.sin(a+u)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=t-(n*this.a+r*this.c),this.ty=e-(n*this.b+r*this.d),this}},{key:"prepend",value:function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var n=this.a,r=this.c;this.a=n*t.a+this.b*t.c,this.b=n*t.b+this.b*t.d,this.c=r*t.a+this.d*t.c,this.d=r*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this}},{key:"decompose",value:function(t){var e=this.a,n=this.b,i=this.c,o=this.d,a=t.pivot,s=-Math.atan2(-i,o),u=Math.atan2(n,e),c=Math.abs(s+u);return c<1e-5||Math.abs(r._b-c)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=s,t.skew.y=u),t.scale.x=Math.sqrt(e*e+n*n),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(a.x*e+a.y*i),t.position.y=this.ty+(a.x*n+a.y*o),t}},{key:"invert",value:function(){var t=this.a,e=this.b,n=this.c,r=this.d,i=this.tx,o=t*r-e*n;return this.a=r/o,this.b=-e/o,this.c=-n/o,this.d=t/o,this.tx=(n*this.ty-r*i)/o,this.ty=-(t*this.ty-e*i)/o,this}},{key:"isIdentity",value:function(){return 1===this.a&&0===this.b&&0===this.c&&1===this.d&&0===this.tx&&0===this.ty}},{key:"identity",value:function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}},{key:"clone",value:function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e}},{key:"copyTo",value:function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}},{key:"copyFrom",value:function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}},{key:"equals",value:function(t){return t.a===this.a&&t.b===this.b&&t.c===this.c&&t.d===this.d&&t.tx===this.tx&&t.ty===this.ty}},{key:"toString",value:function(){return"[pixi.js:Matrix a=".concat(this.a," b=").concat(this.b," c=").concat(this.c," d=").concat(this.d," tx=").concat(this.tx," ty=").concat(this.ty,"]")}}])&&a(e.prototype,n),s&&a(e,s),t}(),u=new s,c=new s},94466:function(t,e,n){"use strict";n.d(e,{ZX:function(){return o},_b:function(){return r},jl:function(){return i}});var r=2*Math.PI,i=180/Math.PI,o=Math.PI/180},79305:function(t,e,n){"use strict";function r(t){return t+=0===t?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function i(t){return!(t&t-1)&&!!t}n.d(e,{a9:function(){return r},wv:function(){return i}})},64096:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._x===t&&this._y===e||(this._x=t,this._y=e,this._observer._onUpdate(this)),this}},{key:"copyFrom",value:function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this._observer._onUpdate(this)),this}},{key:"copyTo",value:function(t){return t.set(this._x,this._y),t}},{key:"equals",value:function(t){return t.x===this._x&&t.y===this._y}},{key:"toString",value:function(){return"[pixi.js/math:ObservablePoint x=".concat(0," y=",0," scope=").concat(this._observer,"]")}},{key:"x",get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this._observer._onUpdate(this))}},{key:"y",get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this._observer._onUpdate(this))}}],n&&r(e.prototype,n),i&&r(e,i),t}()},90033:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;r(this,t),this.x=0,this.y=0,this.x=e,this.y=n}var e,n,o;return e=t,n=[{key:"clone",value:function(){return new t(this.x,this.y)}},{key:"copyFrom",value:function(t){return this.set(t.x,t.y),this}},{key:"copyTo",value:function(t){return t.set(this.x,this.y),t}},{key:"equals",value:function(t){return t.x===this.x&&t.y===this.y}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.x=t,this.y=e,this}},{key:"toString",value:function(){return"[pixi.js/math:Point x=".concat(this.x," y=").concat(this.y,"]")}}],o=[{key:"shared",get:function(){return a.x=0,a.y=0,a}}],n&&i(e.prototype,n),o&&i(e,o),t}(),a=new o},89171:function(t,e,n){"use strict";n.d(e,{C:function(){return a}});var r=n(79690);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;i(this,t),this.type="circle",this.x=e,this.y=n,this.radius=r}var e,n,a;return e=t,n=[{key:"clone",value:function(){return new t(this.x,this.y,this.radius)}},{key:"contains",value:function(t,e){if(this.radius<=0)return!1;var n=this.radius*this.radius,r=this.x-t,i=this.y-e;return(r*=r)+(i*=i)<=n}},{key:"strokeContains",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;if(0===this.radius)return!1;var i=this.x-t,o=this.y-e,a=this.radius,s=(1-r)*n,u=Math.sqrt(i*i+o*o);return u<=a+s&&u>a-(n-s)}},{key:"getBounds",value:function(t){return t||(t=new r.A),t.x=this.x-this.radius,t.y=this.y-this.radius,t.width=2*this.radius,t.height=2*this.radius,t}},{key:"copyFrom",value:function(t){return this.x=t.x,this.y=t.y,this.radius=t.radius,this}},{key:"copyTo",value:function(t){return t.copyFrom(this),t}},{key:"toString",value:function(){return"[pixi.js/math:Circle x=".concat(this.x," y=").concat(this.y," radius=").concat(this.radius,"]")}}],n&&o(e.prototype,n),a&&o(e,a),t}()},79690:function(t,e,n){"use strict";n.d(e,{A:function(){return s}});var r=n(90033);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;i(this,t),this.type="rectangle",this.x=Number(e),this.y=Number(n),this.width=Number(r),this.height=Number(o)}var e,n,r;return e=t,n=[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}},{key:"isEmpty",value:function(){return this.left===this.right||this.top===this.bottom}},{key:"clone",value:function(){return new t(this.x,this.y,this.width,this.height)}},{key:"copyFromBounds",value:function(t){return this.x=t.minX,this.y=t.minY,this.width=t.maxX-t.minX,this.height=t.maxY-t.minY,this}},{key:"copyFrom",value:function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}},{key:"copyTo",value:function(t){return t.copyFrom(this),t}},{key:"contains",value:function(t,e){return!(this.width<=0||this.height<=0)&&t>=this.x&&t=this.y&&e3&&void 0!==arguments[3]?arguments[3]:.5,i=this,o=i.width,a=i.height;if(o<=0||a<=0)return!1;var s=this.x,u=this.y,c=n*(1-r),l=n-c,f=s-c,h=s+o+c,d=u-c,p=u+a+c,v=s+l,y=s+o-l,m=u+l,g=u+a-l;return t>=f&&t<=h&&e>=d&&e<=p&&!(t>v&&tm&&et.right?t.right:this.right)<=n)return!1;var r=this.yt.bottom?t.bottom:this.bottom)>r}var i=this.left,o=this.right,s=this.top,u=this.bottom;if(o<=i||u<=s)return!1;var c=a[0].set(t.left,t.top),l=a[1].set(t.left,t.bottom),f=a[2].set(t.right,t.top),h=a[3].set(t.right,t.bottom);if(f.x<=c.x||l.y<=c.y)return!1;var d=Math.sign(e.a*e.d-e.b*e.c);if(0===d)return!1;if(e.apply(c,c),e.apply(l,l),e.apply(f,f),e.apply(h,h),Math.max(c.x,l.x,f.x,h.x)<=i||Math.min(c.x,l.x,f.x,h.x)>=o||Math.max(c.y,l.y,f.y,h.y)<=s||Math.min(c.y,l.y,f.y,h.y)>=u)return!1;var p=d*(l.y-c.y),v=d*(c.x-l.x),y=p*i+v*s,m=p*o+v*s,g=p*i+v*u,b=p*o+v*u;if(Math.max(y,m,g,b)<=p*c.x+v*c.y||Math.min(y,m,g,b)>=p*h.x+v*h.y)return!1;var w=d*(c.y-f.y),S=d*(f.x-c.x),_=w*i+S*s,k=w*o+S*s,x=w*i+S*u,E=w*o+S*u;return!(Math.max(_,k,x,E)<=w*c.x+S*c.y||Math.min(_,k,x,E)>=w*h.x+S*h.y)}},{key:"pad",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this}},{key:"fit",value:function(t){var e=Math.max(this.x,t.x),n=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),i=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(n-e,0),this.y=r,this.height=Math.max(i-r,0),this}},{key:"ceil",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.001,n=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=n-this.x,this.height=r-this.y,this}},{key:"enlarge",value:function(t){var e=Math.min(this.x,t.x),n=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),i=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=n-e,this.y=r,this.height=i-r,this}},{key:"getBounds",value:function(e){return e||(e=new t),e.copyFrom(this),e}},{key:"containsRect",value:function(t){if(this.width<=0||this.height<=0)return!1;var e=t.x,n=t.y,r=t.x+t.width,i=t.y+t.height;return e>=this.x&&e=this.y&&n=this.x&&r=this.y&&i0&&(e+="\nelse "),n>>=0;return a[n]||function(t,e,n){var s={},c=0;u||(u=(0,o.N)());for(var l=0;l0?m[--g]:new y}function w(t){m[g++]=t}var S=0,_=function(){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,t),this.uid=(0,i.h)("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._elements=[],t.defaultOptions.maxTextures=null!==(e=t.defaultOptions.maxTextures)&&void 0!==e?e:(0,u.N)();var r=(n=v({},t.defaultOptions,n)).maxTextures,a=n.attributesInitialSize,s=n.indicesInitialSize;this.attributeBuffer=new o.R(4*a),this.indexBuffer=new Uint16Array(s),this.maxTextures=r}return d(t,[{key:"begin",value:function(){this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0;for(var t=0;tthis.attributeBuffer.size&&this._resizeAttributeBuffer(4*this.attributeSize),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);for(var u=this.attributeBuffer.float32View,c=this.attributeBuffer.uint32View,l=this.indexBuffer,f=this._batchIndexSize,h=this._batchIndexStart,d="startBatch",p=this.maxTextures,v=this.elementStart;v=p||w)&&(this._finishBatch(n,h,f-h,r,o,a,t,d),d="renderBatch",h=f,o=g,a=y.topology,(r=(n=b()).textures).clear(),++S),y._textureId=m._textureBindLocation=r.count,r.ids[m.uid]=r.count,r.textures[r.count++]=m,y._batch=n,f+=y.indexSize,y.packAsQuad?(this.packQuadAttributes(y,u,c,y._attributeStart,y._textureId),this.packQuadIndex(l,y._indexStart,y._attributeStart/this.vertexSize)):(this.packAttributes(y,u,c,y._attributeStart,y._textureId),this.packIndex(y,l,y._indexStart,y._attributeStart/this.vertexSize))):(y._textureId=m._textureBindLocation,f+=y.indexSize,y.packAsQuad?(this.packQuadAttributes(y,u,c,y._attributeStart,y._textureId),this.packQuadIndex(l,y._indexStart,y._attributeStart/this.vertexSize)):(this.packAttributes(y,u,c,y._attributeStart,y._textureId),this.packIndex(y,l,y._indexStart,y._attributeStart/this.vertexSize)),y._batch=n)}r.count>0&&(this._finishBatch(n,h,f-h,r,o,a,t,d),h=f,++S),this.elementStart=this.elementSize,this._batchIndexStart=h,this._batchIndexSize=f}}},{key:"_finishBatch",value:function(t,e,n,r,i,o,a,s){t.gpuBindGroup=null,t.bindGroup=null,t.action=s,t.batcher=this,t.textures=r,t.blendMode=i,t.topology=o,t.start=e,t.size=n,++S,this.batches[this.batchIndex++]=t,a.add(t)}},{key:"finish",value:function(t){this.break(t)}},{key:"ensureAttributeBuffer",value:function(t){4*t<=this.attributeBuffer.size||this._resizeAttributeBuffer(4*t)}},{key:"ensureIndexBuffer",value:function(t){t<=this.indexBuffer.length||this._resizeIndexBuffer(t)}},{key:"_resizeAttributeBuffer",value:function(t){var e=Math.max(t,2*this.attributeBuffer.size),n=new o.R(e);(0,a.T)(this.attributeBuffer.rawBinaryData,n.rawBinaryData),this.attributeBuffer=n}},{key:"_resizeIndexBuffer",value:function(t){var e=this.indexBuffer,n=Math.max(t,1.5*e.length),r=(n+=n%2)>65535?new Uint32Array(n):new Uint16Array(n);if(r.BYTES_PER_ELEMENT!==e.BYTES_PER_ELEMENT)for(var i=0;i2&&void 0!==arguments[2]&&arguments[2],r=[];c(e,r),t.forEach((function(t){t.header&&c(t.header,r)}));var i=r;n&&i.sort();var o=i.map((function(t,e){return" @location(".concat(e,") ").concat(t,",")})).join("\n"),a=e.replace(/@in\s+[^;]+;\s*/g,"");return a=a.replace("{{in}}","\n".concat(o,"\n"))}function f(t,e){for(var n,r=/@out\s+([^;]+);/g;null!==(n=r.exec(t));)e.push(n[1])}function h(t,e){var n=t;for(var r in e){var i=e[r];n=i.join("\n").length?n.replace("{{".concat(r,"}}"),"//-----".concat(r," START-----//\n").concat(i.join("\n"),"\n//----").concat(r," FINISH----//")):n.replace("{{".concat(r,"}}"),"")}return n}var d=Object.create(null),p=new Map,v=0;function y(t){var e=t.template,n=t.bits,r=m(e,n);if(d[r])return d[r];var i=function(t,e){var n=e.map((function(t){return t.vertex})).filter((function(t){return!!t})),r=e.map((function(t){return t.fragment})).filter((function(t){return!!t})),i=l(n,t.vertex,!0);i=function(t,e){var n=[];f(e,n),t.forEach((function(t){t.header&&f(t.header,n)}));var r=0,i=n.sort().map((function(t){return t.indexOf("builtin")>-1?t:"@location(".concat(r++,") ").concat(t)})).join(",\n"),o=n.sort().map((function(t){return" var ".concat(t.replace(/@.*?\s+/g,""),";")})).join("\n"),a="return VSOutput(\n ".concat(n.sort().map((function(t){return" ".concat(function(t){var e=/\b(\w+)\s*:/g.exec(t);return e?e[1]:""}(t))})).join(",\n"),");"),s=e.replace(/@out\s+[^;]+;\s*/g,"");return(s=(s=s.replace("{{struct}}","\n".concat(i,"\n"))).replace("{{start}}","\n".concat(o,"\n"))).replace("{{return}}","\n".concat(a,"\n"))}(n,i);var o=l(r,t.fragment,!0);return{vertex:i,fragment:o}}(e,n),o=i.vertex,a=i.fragment;return d[r]=g(o,a,n),d[r]}function m(t,e){return e.map((function(t){return p.has(t)||p.set(t,v++),p.get(t)})).sort((function(t,e){return t-e})).join("-")+t.vertex+t.fragment}function g(t,e,n){var r=u(t),i=u(e);return n.forEach((function(t){a(t.vertex,r,t.name),a(t.fragment,i,t.name)})),{vertex:h(t,r),fragment:h(e,i)}}var b={name:"global-uniforms-bit",vertex:{header:"\n struct GlobalUniforms {\n uProjectionMatrix:mat3x3,\n uWorldTransformMatrix:mat3x3,\n uWorldColorAlpha: vec4,\n uResolution: vec2,\n }\n\n @group(0) @binding(0) var globalUniforms : GlobalUniforms;\n "}},w={name:"global-uniforms-bit",vertex:{header:"\n uniform mat3 uProjectionMatrix;\n uniform mat3 uWorldTransformMatrix;\n uniform vec4 uWorldColorAlpha;\n uniform vec2 uResolution;\n "}};function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n;\n @in vColor : vec4;\n \n {{header}}\n\n @fragment\n fn main(\n {{in}}\n ) -> @location(0) vec4 {\n \n {{start}}\n\n var outColor:vec4;\n \n {{main}}\n \n var finalColor:vec4 = outColor * vColor;\n\n {{end}}\n\n return finalColor;\n };\n",vertex:"\n @in aPosition: vec2;\n @in aUV: vec2;\n\n @out @builtin(position) vPosition: vec4;\n @out vUV : vec2;\n @out vColor : vec4;\n\n {{header}}\n\n struct VSOutput {\n {{struct}}\n };\n\n @vertex\n fn main( {{in}} ) -> VSOutput {\n\n var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;\n var modelMatrix = mat3x3(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n var position = aPosition;\n var uv = aUV;\n\n {{start}}\n \n vColor = vec4(1., 1., 1., 1.);\n\n {{main}}\n\n vUV = uv;\n\n var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n vPosition = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n \n vColor *= globalUniforms.uWorldColorAlpha;\n\n {{end}}\n\n {{return}}\n };\n"},bits:[b].concat(k(e))});return i.O.from({name:n,vertex:{source:r.vertex,entryPoint:"main"},fragment:{source:r.fragment,entryPoint:"main"}})}function E(t){var e=t.bits,n=t.name;return new r.J(function(t){for(var e=1;e;\n ",main:"\n vColor *= vec4(aColor.rgb * aColor.a, aColor.a);\n "}},i={name:"color-bit",vertex:{header:"\n in vec4 aColor;\n ",main:"\n vColor *= vec4(aColor.rgb * aColor.a, aColor.a);\n "}}},51315:function(t,e,n){"use strict";n.d(e,{h:function(){return c},m:function(){return a}});var r={};function i(t){var e=[];if(1===t)e.push("@group(1) @binding(0) var textureSource1: texture_2d;"),e.push("@group(1) @binding(1) var textureSampler1: sampler;");else for(var n=0,r=0;r;")),e.push("@group(1) @binding(".concat(n++,") var textureSampler").concat(r+1,": sampler;"));return e.join("\n")}function o(t){var e=[];if(1===t)e.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");else{e.push("switch vTextureId {");for(var n=0;n;\n @out @interpolate(flat) vTextureId : u32;\n ",main:"\n vTextureId = aTextureIdAndRound.y;\n ",end:"\n if(aTextureIdAndRound.x == 1)\n {\n vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);\n }\n "},fragment:{header:"\n @in @interpolate(flat) vTextureId: u32;\n\n ".concat(i(t),"\n "),main:"\n var uvDx = dpdx(vUV);\n var uvDy = dpdy(vUV);\n\n ".concat(o(t),"\n ")}}),r[t]}var s={};function u(t){for(var e=[],n=0;n0&&e.push("else"),n, targetSize: vec2) -> vec2 \n {\n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n "}},i={name:"round-pixels-bit",vertex:{header:" \n vec2 roundPixels(vec2 position, vec2 targetSize)\n { \n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n "}}},90403:function(t,e,n){"use strict";var r=n(92846),i=n(75822),o=n(58158),a=n(57820),s=new o.Y;function u(t,e,n){var r=s;t.measurable=!0,(0,a.qW)(t,n,r),e.addBoundsMask(r),t.measurable=!1}var c=n(89368),l=n(11885),f=n(69655);function h(t,e,n){var r=l.W.get();t.measurable=!0;var i=l.N.get().identity(),o=d(t,n,i);(0,c.a)(t,r,o),t.measurable=!1,e.addBoundsMask(r),l.N.return(i),l.W.return(r)}function d(t,e,n){return t?(t!==e&&(d(t.parent,e,n),t.updateLocalTransform(),n.append(t.localTransform)),n):((0,f.Z)("Mask bounds, renderable is not inside the root container"),n)}function p(t,e){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];r=r.replace(/\s+/g,"-");var o=i?s:u;if(o[r+=i?"-fragment":"-vertex"]?(o[r]++,r+="-".concat(o[r])):o[r]=1,-1!==t.indexOf("#define SHADER_NAME"))return t;var a="#define SHADER_NAME ".concat(r);return"".concat(a,"\n").concat(t)},insertVersion:function(t,e){return e?"#version 300 es\n".concat(t):t}},h=Object.create(null),d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=function(t){for(var e=1;e":"float32x2","vec3":"float32x3","vec4":"float32x4",vec2f:"float32x2",vec3f:"float32x3",vec4f:"float32x4",i32:"sint32","vec2":"sint32x2","vec3":"sint32x3","vec4":"sint32x4",u32:"uint32","vec2":"uint32x2","vec3":"uint32x3","vec4":"uint32x4",bool:"uint32","vec2":"uint32x2","vec3":"uint32x3","vec4":"uint32x4"};function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n]+>)? (\w+)/,u=/:\s*(\w+)/,c=/(\w+)\s*:\s*([\w\<\>]+)/g,l=/struct\s+(\w+)/,f=null===(e=t.match(/(^|[^/])@(group|binding)\(\d+\)[^;]+;/g))||void 0===e?void 0:e.map((function(t){return{group:parseInt(t.match(i)[1],10),binding:parseInt(t.match(o)[1],10),name:t.match(a)[2],isUniform:""===t.match(a)[1],type:t.match(u)[1]}}));if(!f)return{groups:[],structs:[]};var h=null!==(r=null===(n=t.match(/struct\s+(\w+)\s*{([^}]+)}/g))||void 0===n?void 0:n.map((function(t){var e=t.match(l)[1],n=t.match(c).reduce((function(t,e){var n=s(e.split(":"),2),r=n[0],i=n[1];return t[r.trim()]=i.trim(),t}),{});return n?{name:e,members:n}:null})).filter((function(t){var e=t.name;return f.some((function(t){return t.type===e}))})))&&void 0!==r?r:[];return{groups:f,structs:h}}var c=function(t){return t[t.VERTEX=1]="VERTEX",t[t.FRAGMENT=2]="FRAGMENT",t[t.COMPUTE=4]="COMPUTE",t}(c||{});function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n",a);if(-1!==s)for(var u,c=e.substring(a,s),l=/@location\((\d+)\)\s+([a-zA-Z0-9_]+)\s*:\s*([a-zA-Z0-9_<>]+)(?:,|\s|$)/g;null!==(u=l.exec(c));){var f,h=null!==(f=o[u[3]])&&void 0!==f?f:"float32";r[u[2]]={location:parseInt(u[1],10),format:h,stride:(0,i.v)(h).stride,offset:0,instance:!1,start:0}}}return r}(this.vertex)),this._attributeData}},{key:"destroy",value:function(){this.gpuLayout=null,this.layout=null,this.structsAndGroups=null,this.fragment=null,this.vertex=null}}])&&h(e.prototype,n),a&&h(e,a),t}()},43772:function(t,e,n){"use strict";n.d(e,{l:function(){return h}});var r=n(54146),i=n(50829),o=n(81975);function a(t,e){for(var n=0;n0){var o=new Uint8Array(t,8*n,i);new Uint8Array(e,8*n,i).set(o)}}n.d(e,{T:function(){return r}})},40002:function(t,e,n){"use strict";n.d(e,{Z:function(){return g}});var r=n(54146),i=n(58158),o=n(50829),a=n(43772),s=n(81975);function u(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function c(t,e){if(!u(t,a.l)){var n=e?s.F.INDEX:s.F.VERTEX;u(t,Array)&&(e?(t=new Uint32Array(t),n=s.F.INDEX|s.F.COPY_DST):(t=new Float32Array(t),n=s.F.VERTEX|s.F.COPY_DST)),t=new a.l({data:t,label:e?"index-mesh-buffer":"vertex-mesh-buffer",usage:n})}return t}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};l(this,s),(t=a.call(this)).uid=(0,o.h)("geometry"),t._layoutKey=0,t.instanceCount=1,t._bounds=new i.Y,t._boundsDirty=!0;var n,r=e.attributes,u=e.indexBuffer,c=e.topology;if(t.buffers=[],t.attributes={},r)for(var f in r)t.addAttribute(f,r[f]);return t.instanceCount=null!==(n=e.instanceCount)&&void 0!==n?n:1,u&&t.addIndex(u),t.topology=c||"triangle-list",t}return e=s,n=[{key:"onBufferUpdate",value:function(){this._boundsDirty=!0,this.emit("update",this)}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"getIndex",value:function(){return this.indexBuffer}},{key:"getBuffer",value:function(t){return this.getAttribute(t).buffer}},{key:"getSize",value:function(){for(var t in this.attributes){var e=this.attributes[t];return e.buffer.data.length/(e.stride/4||e.size)}return 0}},{key:"addAttribute",value:function(t,e){var n=m(e);-1===this.buffers.indexOf(n.buffer)&&(this.buffers.push(n.buffer),n.buffer.on("update",this.onBufferUpdate,this),n.buffer.on("change",this.onBufferUpdate,this)),this.attributes[t]=n}},{key:"addIndex",value:function(t){this.indexBuffer=c(t,!0),this.buffers.push(this.indexBuffer)}},{key:"bounds",get:function(){return this._boundsDirty?(this._boundsDirty=!1,function(t,e,n){var r=t.getAttribute(e);if(!r)return n.minX=0,n.minY=0,n.maxX=0,n.maxY=0,n;for(var i=r.buffer.data,o=1/0,a=1/0,s=-1/0,u=-1/0,c=i.BYTES_PER_ELEMENT,l=(r.offset||0)/c,f=(r.stride||8)/c,h=l;hs&&(s=d),p>u&&(u=p),d0&&void 0!==arguments[0]&&arguments[0];this.emit("destroy",this),this.removeAllListeners(),t&&this.buffers.forEach((function(t){return t.destroy()})),this.attributes=null,this.buffers=null,this.indexBuffer=null,this._bounds=null}}],n&&f(e.prototype,n),r&&f(e,r),s}(r.Z)},90391:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});var r={uint8x2:{size:2,stride:2,normalised:!1},uint8x4:{size:4,stride:4,normalised:!1},sint8x2:{size:2,stride:2,normalised:!1},sint8x4:{size:4,stride:4,normalised:!1},unorm8x2:{size:2,stride:2,normalised:!0},unorm8x4:{size:4,stride:4,normalised:!0},snorm8x2:{size:2,stride:2,normalised:!0},snorm8x4:{size:4,stride:4,normalised:!0},uint16x2:{size:2,stride:4,normalised:!1},uint16x4:{size:4,stride:8,normalised:!1},sint16x2:{size:2,stride:4,normalised:!1},sint16x4:{size:4,stride:8,normalised:!1},unorm16x2:{size:2,stride:4,normalised:!0},unorm16x4:{size:4,stride:8,normalised:!0},snorm16x2:{size:2,stride:4,normalised:!0},snorm16x4:{size:4,stride:8,normalised:!0},float16x2:{size:2,stride:4,normalised:!1},float16x4:{size:4,stride:8,normalised:!1},float32:{size:1,stride:4,normalised:!1},float32x2:{size:2,stride:8,normalised:!1},float32x3:{size:3,stride:12,normalised:!1},float32x4:{size:4,stride:16,normalised:!1},uint32:{size:1,stride:4,normalised:!1},uint32x2:{size:2,stride:8,normalised:!1},uint32x3:{size:3,stride:12,normalised:!1},uint32x4:{size:4,stride:16,normalised:!1},sint32:{size:1,stride:4,normalised:!1},sint32x2:{size:2,stride:8,normalised:!1},sint32x3:{size:3,stride:12,normalised:!1},sint32x4:{size:4,stride:16,normalised:!1}};function i(t){var e;return null!==(e=r[t])&&void 0!==e?e:r.float32}},73850:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(50829);function i(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function p(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var y=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p(this,n)}}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(p,t);var e,n,r,h=m(p);function p(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),(e=h.call(this)).uid=(0,i.h)("shader"),e._uniformBindMap=Object.create(null),e._ownedBindGroups=[];var n=t.gpuProgram,r=t.glProgram,o=t.groups,s=t.resources,l=t.compatibleRenderers,f=t.groupMap;e.gpuProgram=n,e.glProgram=r,void 0===l&&(l=0,n&&(l|=u.g.WEBGPU),r&&(l|=u.g.WEBGL)),e.compatibleRenderers=l;var d={};if(s||o||(s={}),s&&o)throw new Error("[Shader] Cannot have both resources and groups");if(!n&&o&&!f)throw new Error("[Shader] No group map or WebGPU shader provided - consider using resources instead.");if(!n&&o&&f)for(var v in f)for(var y in f[v]){var m=f[v][y];d[m]={group:v,binding:y,name:m}}else if(n&&o&&!f){var g=n.structsAndGroups.groups;f={},g.forEach((function(t){f[t.group]=f[t.group]||{},f[t.group][t.binding]=t.name,d[t.name]=t}))}else if(s){if(o={},f={},n)n.structsAndGroups.groups.forEach((function(t){f[t.group]=f[t.group]||{},f[t.group][t.binding]=t.name,d[t.name]=t}));var b=0;for(var w in s)d[w]||(o[99]||(o[99]=new a.v,e._ownedBindGroups.push(o[99])),d[w]={group:99,binding:b,name:w},f[99]=f[99]||{},f[99][b]=w,b++);for(var S in s){var _=S,k=s[S];k.source||k._resourceType||(k=new c.o(k));var x=d[_];x&&(o[x.group]||(o[x.group]=new a.v,e._ownedBindGroups.push(o[x.group])),o[x.group].setResource(k,x.binding))}}return e.groups=o,e._uniformBindMap=f,e.resources=e._buildResourceAccessor(o,d),e}return e=p,n=[{key:"addResource",value:function(t,e,n){var r,i;(r=this._uniformBindMap)[e]||(r[e]={}),(i=this._uniformBindMap[e])[n]||(i[n]=t),this.groups[e]||(this.groups[e]=new a.v,this._ownedBindGroups.push(this.groups[e]))}},{key:"_buildResourceAccessor",value:function(t,e){var n=function(n){var i=e[n];Object.defineProperty(r,i.name,{get:function(){return t[i.group].getResource(i.binding)},set:function(e){t[i.group].setResource(e,i.binding)}})},r={};for(var i in e)n(i);return r}},{key:"destroy",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.emit("destroy",this),n&&(null===(t=this.gpuProgram)||void 0===t||t.destroy(),null===(e=this.glProgram)||void 0===e||e.destroy()),this.gpuProgram=null,this.glProgram=null,this.removeAllListeners(),this._uniformBindMap=null,this._ownedBindGroups.forEach((function(t){t.destroy()})),this._ownedBindGroups=null,this.resources=null,this.groups=null}}],r=[{key:"from",value:function(t){var e,n,r=t.gpu,i=t.gl,a=d(t,["gpu","gl"]);return r&&(e=s.O.from(r)),i&&(n=o.J.from(i)),new p(function(t){for(var e=1;e","vec3","vec4","mat2x2","mat3x3","mat4x4","mat3x2","mat4x2","mat2x3","mat4x3","mat2x4","mat3x4","vec2","vec3","vec4"],a=o.reduce((function(t,e){return t[e]=!0,t}),{});function s(t,e){switch(t){case"f32":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"mat2x2":return new Float32Array([1,0,0,1]);case"mat3x3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4x4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}function u(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=this;return w(i().mark((function n(){var r,o,a,u,c;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=!0===t.skipExtensionImports||!1===t.manageImports,n.next=3,l(r);case 3:for(o in e._addSystems(e.config.systems),e._addPipes(e.config.renderPipes,e.config.renderPipeAdaptors),e._systemsHash)a=e._systemsHash[o],u=a.constructor.defaultOptions,t=x({},u,t);t=x({},s.defaultOptions,t),e._roundPixels=t.roundPixels?1:0,c=0;case 9:if(!(c0&&void 0!==arguments[0]?arguments[0]:{},n=this;e.target||(e.target=n.renderTarget.renderTarget),e.clearColor||(e.clearColor=this.background.colorRgba),null!==(t=e.clear)&&void 0!==t||(e.clear=v.E.ALL);var r=e.clear,i=e.clearColor,a=e.target;o.I.shared.setValue(null!==i&&void 0!==i?i:this.background.colorRgba),n.renderTarget.clear(a,r,o.I.shared.toArray())}},{key:"resolution",get:function(){return this.view.resolution},set:function(t){this.view.resolution=t,this.runners.resolutionChange.emit(t)}},{key:"width",get:function(){return this.view.texture.frame.width}},{key:"height",get:function(){return this.view.texture.frame.height}},{key:"canvas",get:function(){return this.view.canvas}},{key:"lastObjectRendered",get:function(){return this._lastObjectRendered}},{key:"renderingToScreen",get:function(){return this.renderTarget.renderingToScreen}},{key:"screen",get:function(){return this.view.screen}},{key:"_addRunners",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]&&arguments[0];this.runners.destroy.items.reverse(),this.runners.destroy.emit(t),Object.values(this.runners).forEach((function(t){t.destroy()})),this._systemsHash=null,this.renderPipes=null}},{key:"generateTexture",value:function(t){return this.textureGenerator.generateTexture(t)}},{key:"roundPixels",get:function(){return!!this._roundPixels}},{key:"_unsafeEvalCheck",value:function(){if(!(0,d.O)())throw new Error("Current environment does not allow unsafe-eval, please use pixi.js/unsafe-eval module to enable support.")}},{key:"resetState",value:function(){this.runners.resetState.emit()}}],n&&S(e.prototype,n),r&&S(e,r),s}(m.Z);M.defaultOptions={resolution:1,failIfMajorPerformanceCaveat:!1,roundPixels:!1};var R=M},31752:function(t,e,n){"use strict";function r(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1;t=Math.ceil(t*n-1e-6),e=Math.ceil(e*n-1e-6);var r=((t=(0,i.a9)(t))<<17)+((e=(0,i.a9)(e))<<1);this._canvasPool[r]||(this._canvasPool[r]=[]);var o=this._canvasPool[r].pop();return o||(o=this._createCanvasAndContext(t,e)),o}},{key:"returnCanvasAndContext",value:function(t){var e=t.canvas,n=e.width,r=e.height,i=(n<<17)+(r<<1);t.context.clearRect(0,0,n,r),this._canvasPool[i].push(t)}},{key:"clear",value:function(){this._canvasPool={}}}],n&&o(e.prototype,n),a&&o(e,a),t}(),s=new a},59193:function(t,e,n){"use strict";n.d(e,{x:function(){return A}});var r=n(54146),i=n(81005),o=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],a=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],s=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],u=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],c=[],l=[],f=Math.sign;!function(){for(var t=0;t<16;t++){var e=[];c.push(e);for(var n=0;n<16;n++)for(var r=f(o[t]*o[n]+s[t]*a[n]),h=f(a[t]*o[n]+u[t]*a[n]),d=f(o[t]*s[n]+s[t]*u[n]),p=f(a[t]*s[n]+u[t]*u[n]),v=0;v<16;v++)if(o[v]===r&&a[v]===h&&s[v]===d&&u[v]===p){e.push(v);break}}for(var y=0;y<16;y++){var m=new i.y;m.set(o[y],a[y],s[y],u[y],0,0),l.push(m)}}();var h={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return o[t]},uY:function(t){return a[t]},vX:function(t){return s[t]},vY:function(t){return u[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return c[t][e]},sub:function(t,e){return c[t][h.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2===(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?h.S:h.N:2*Math.abs(e)<=Math.abs(t)?t>0?h.E:h.W:e>0?t>0?h.SE:h.SW:t>0?h.NE:h.NW},matrixAppendRotationInv:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=l[h.inv(e)];i.tx=n,i.ty=r,t.append(i)}},d=n(79690),p=n(50829),v=n(18768),y=function(){},m=n(50077),g=n(15497),b=n(4936);function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=n.source,a=n.label,s=n.frame,u=n.orig,c=n.trim,l=n.defaultAnchor,f=n.defaultBorders,h=n.rotate,v=n.dynamic;if(w(this,o),(t=i.call(this)).uid=(0,p.h)("texture"),t.uvs={x0:0,y0:0,x1:0,y1:0,x2:0,y2:0,x3:0,y3:0},t.frame=new d.A,t.noFrame=!1,t.dynamic=!1,t.isTexture=!0,t.label=a,t.source=null!==(e=null===r||void 0===r?void 0:r.source)&&void 0!==e?e:new g.p,t.noFrame=!s,s)t.frame.copyFrom(s);else{var y=t._source,m=y.width,b=y.height;t.frame.width=m,t.frame.height=b}return t.orig=u||t.frame,t.trim=c,t.rotate=null!==h&&void 0!==h?h:0,t.defaultAnchor=l,t.defaultBorders=f,t.destroyed=!1,t.dynamic=v||!1,t.updateUvs(),t}return e=o,n=[{key:"source",get:function(){return this._source},set:function(t){this._source&&this._source.off("resize",this.update,this),this._source=t,t.on("resize",this.update,this),this.emit("update",this)}},{key:"textureMatrix",get:function(){return this._textureMatrix||(this._textureMatrix=new b.U(this)),this._textureMatrix}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}},{key:"updateUvs",value:function(){var t=this.uvs,e=this.frame,n=this._source,r=n.width,i=n.height,o=e.x/r,a=e.y/i,s=e.width/r,u=e.height/i,c=this.rotate;if(c){var l=s/2,f=u/2,d=o+l,p=a+f;c=h.add(c,h.NW),t.x0=d+l*h.uX(c),t.y0=p+f*h.uY(c),c=h.add(c,2),t.x1=d+l*h.uX(c),t.y1=p+f*h.uY(c),c=h.add(c,2),t.x2=d+l*h.uX(c),t.y2=p+f*h.uY(c),c=h.add(c,2),t.x3=d+l*h.uX(c),t.y3=p+f*h.uY(c)}else t.x0=o,t.y0=a,t.x1=o+s,t.y1=a,t.x2=o+s,t.y2=a+u,t.x3=o,t.y3=a+u}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._source&&t&&(this._source.destroy(),this._source=null),this._textureMatrix=null,this.destroyed=!0,this.emit("destroy",this),this.removeAllListeners()}},{key:"update",value:function(){this.noFrame&&(this.frame.width=this._source.width,this.frame.height=this._source.height),this.updateUvs(),this.emit("update",this)}},{key:"baseTexture",get:function(){return(0,v.a1)(v.PD,"Texture.baseTexture is now Texture.source"),this._source}}],n&&S(e.prototype,n),r&&S(e,r),o}(r.Z);A.EMPTY=new A({label:"EMPTY",source:new g.p({label:"EMPTY"})}),A.EMPTY.destroy=y,A.WHITE=new A({source:new m.A({resource:new Uint8Array([255,255,255,255]),width:1,height:1,alphaMode:"premultiply-alpha-on-upload",label:"WHITE"}),label:"WHITE"}),A.WHITE.destroy=y},4936:function(t,e,n){"use strict";n.d(e,{U:function(){return a}});var r=n(81005);function i(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,o=Math.ceil(t*n-1e-6),a=Math.ceil(e*n-1e-6),s=((o=(0,r.a9)(o))<<17)+((a=(0,r.a9)(a))<<1)+(i?1:0);this._texturePool[s]||(this._texturePool[s]=[]);var u=this._texturePool[s].pop();return u||(u=this.createTexture(o,a,i)),u.source._resolution=n,u.source.width=o/n,u.source.height=a/n,u.source.pixelWidth=o,u.source.pixelHeight=a,u.frame.x=0,u.frame.y=0,u.frame.width=t,u.frame.height=e,u.updateUvs(),this._poolKeyHash[u.uid]=s,u}},{key:"getSameSizeTexture",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.source;return this.getOptimalTexture(t.width,t.height,n._resolution,e)}},{key:"returnTexture",value:function(t){var e=this._poolKeyHash[t.uid];this._texturePool[e].push(t)}},{key:"clear",value:function(t){if(t=!1!==t)for(var e in this._texturePool){var n=this._texturePool[e];if(n)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return a(this,c),(t=u.call(this))._resourceType="textureSampler",t._touched=0,t._maxAnisotropy=1,t.destroyed=!1,h=l({},c.defaultOptions,h),t.addressMode=h.addressMode,t.addressModeU=null!==(e=h.addressModeU)&&void 0!==e?e:t.addressModeU,t.addressModeV=null!==(n=h.addressModeV)&&void 0!==n?n:t.addressModeV,t.addressModeW=null!==(r=h.addressModeW)&&void 0!==r?r:t.addressModeW,t.scaleMode=h.scaleMode,t.magFilter=null!==(i=h.magFilter)&&void 0!==i?i:t.magFilter,t.minFilter=null!==(o=h.minFilter)&&void 0!==o?o:t.minFilter,t.mipmapFilter=null!==(s=h.mipmapFilter)&&void 0!==s?s:t.mipmapFilter,t.lodMinClamp=h.lodMinClamp,t.lodMaxClamp=h.lodMaxClamp,t.compare=h.compare,t.maxAnisotropy=null!==(f=h.maxAnisotropy)&&void 0!==f?f:1,t}return e=c,(n=[{key:"addressMode",get:function(){return this.addressModeU},set:function(t){this.addressModeU=t,this.addressModeV=t,this.addressModeW=t}},{key:"wrapMode",get:function(){return this.addressMode},set:function(t){(0,o.a1)(o.PD,"TextureStyle.wrapMode is now TextureStyle.addressMode"),this.addressMode=t}},{key:"scaleMode",get:function(){return this.magFilter},set:function(t){this.magFilter=t,this.minFilter=t,this.mipmapFilter=t}},{key:"maxAnisotropy",get:function(){return this._maxAnisotropy},set:function(t){this._maxAnisotropy=Math.min(t,16),this._maxAnisotropy>1&&(this.scaleMode="linear")}},{key:"_resourceId",get:function(){return this._sharedResourceId||this._generateResourceId()}},{key:"update",value:function(){this.emit("change",this),this._sharedResourceId=null}},{key:"_generateResourceId",value:function(){var t="".concat(this.addressModeU,"-").concat(this.addressModeV,"-").concat(this.addressModeW,"-").concat(this.magFilter,"-").concat(this.minFilter,"-").concat(this.mipmapFilter,"-").concat(this.lodMinClamp,"-").concat(this.lodMaxClamp,"-").concat(this.compare,"-").concat(this._maxAnisotropy);return this._sharedResourceId=function(t){var e=v[t];return void 0===e&&(v[t]=(0,i.h)("resource")),e}(t),this._resourceId}},{key:"destroy",value:function(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this.removeAllListeners()}}])&&s(e.prototype,n),r&&s(e,r),c}(r.Z);y.defaultOptions={addressMode:"clamp-to-edge",scaleMode:"linear"};var m=y},50077:function(t,e,n){"use strict";n.d(e,{A:function(){return d}});var r=n(92846),i=n(15497);function o(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.height,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._resolution,r=s(u(l.prototype),"resize",this).call(this,t,e,n);return r&&this.resizeCanvas(),r}},{key:"context2D",get:function(){return this._context2D||(this._context2D=this.resource.getContext("2d"))}}],i=[{key:"test",value:function(t){return globalThis.HTMLCanvasElement&&c(t,HTMLCanvasElement)||globalThis.OffscreenCanvas&&c(t,OffscreenCanvas)}}],n&&a(e.prototype,n),i&&a(e,i),l}(o.p);p.extension=i.nw.TextureSource},78279:function(t,e,n){"use strict";n.d(e,{c:function(){return p}});var r=n(56968),i=n(92846),o=n(69655),a=n(15497);function s(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};(u(this,f),(t=l.call(this)).options=i,t.uid=(0,a.h)("textureSource"),t._resourceType="textureSource",t._resourceId=(0,a.h)("resource"),t.uploadMethodId="unknown",t._resolution=1,t.pixelWidth=1,t.pixelHeight=1,t.width=1,t.height=1,t.sampleCount=1,t.mipLevelCount=1,t.autoGenerateMipmaps=!1,t.format="rgba8unorm",t.dimension="2d",t.antialias=!1,t._touched=0,t._batchTick=-1,t._textureBindLocation=-1,i=h({},f.defaultOptions,i),t.label=null!==(e=i.label)&&void 0!==e?e:"",t.resource=i.resource,t.autoGarbageCollect=i.autoGarbageCollect,t._resolution=i.resolution,i.width)?t.pixelWidth=i.width*t._resolution:t.pixelWidth=t.resource&&null!==(n=t.resourceWidth)&&void 0!==n?n:1;i.height?t.pixelHeight=i.height*t._resolution:t.pixelHeight=t.resource&&null!==(r=t.resourceHeight)&&void 0!==r?r:1;return t.width=t.pixelWidth/t._resolution,t.height=t.pixelHeight/t._resolution,t.format=i.format,t.dimension=i.dimensions,t.mipLevelCount=i.mipLevelCount,t.autoGenerateMipmaps=i.autoGenerateMipmaps,t.sampleCount=i.sampleCount,t.antialias=i.antialias,t.alphaMode=i.alphaMode,t.style=new s.L((0,o.$)(i)),t.destroyed=!1,t._refreshPOT(),t}return e=f,r=[{key:"test",value:function(t){throw new Error("Unimplemented")}}],(n=[{key:"source",get:function(){return this}},{key:"style",get:function(){return this._style},set:function(t){var e,n;this.style!==t&&(null===(e=this._style)||void 0===e||e.off("change",this._onStyleChange,this),this._style=t,null===(n=this._style)||void 0===n||n.on("change",this._onStyleChange,this),this._onStyleChange())}},{key:"addressMode",get:function(){return this._style.addressMode},set:function(t){this._style.addressMode=t}},{key:"repeatMode",get:function(){return this._style.addressMode},set:function(t){this._style.addressMode=t}},{key:"magFilter",get:function(){return this._style.magFilter},set:function(t){this._style.magFilter=t}},{key:"minFilter",get:function(){return this._style.minFilter},set:function(t){this._style.minFilter=t}},{key:"mipmapFilter",get:function(){return this._style.mipmapFilter},set:function(t){this._style.mipmapFilter=t}},{key:"lodMinClamp",get:function(){return this._style.lodMinClamp},set:function(t){this._style.lodMinClamp=t}},{key:"lodMaxClamp",get:function(){return this._style.lodMaxClamp},set:function(t){this._style.lodMaxClamp=t}},{key:"_onStyleChange",value:function(){this.emit("styleChange",this)}},{key:"update",value:function(){if(this.resource){var t=this._resolution;if(this.resize(this.resourceWidth/t,this.resourceHeight/t))return}this.emit("update",this)}},{key:"destroy",value:function(){this.destroyed=!0,this.emit("destroy",this),this.emit("change",this),this._style&&(this._style.destroy(),this._style=null),this.uploadMethodId=null,this.resource=null,this.removeAllListeners()}},{key:"unload",value:function(){this._resourceId=(0,a.h)("resource"),this.emit("change",this),this.emit("unload",this)}},{key:"resourceWidth",get:function(){var t=this.resource;return t.naturalWidth||t.videoWidth||t.displayWidth||t.width}},{key:"resourceHeight",get:function(){var t=this.resource;return t.naturalHeight||t.videoHeight||t.displayHeight||t.height}},{key:"resolution",get:function(){return this._resolution},set:function(t){this._resolution!==t&&(this._resolution=t,this.width=this.pixelWidth/t,this.height=this.pixelHeight/t)}},{key:"resize",value:function(t,e,n){n||(n=this._resolution),t||(t=this.width),e||(e=this.height);var r=Math.round(t*n),i=Math.round(e*n);return this.width=r/n,this.height=i/n,this._resolution=n,(this.pixelWidth!==r||this.pixelHeight!==i)&&(this._refreshPOT(),this.pixelWidth=r,this.pixelHeight=i,this.emit("resize",this),this._resourceId=(0,a.h)("resource"),this.emit("change",this),!0)}},{key:"updateMipmaps",value:function(){this.autoGenerateMipmaps&&this.mipLevelCount>1&&this.emit("updateMipmaps",this)}},{key:"wrapMode",get:function(){return this._style.wrapMode},set:function(t){this._style.wrapMode=t}},{key:"scaleMode",get:function(){return this._style.scaleMode},set:function(t){this._style.scaleMode=t}},{key:"_refreshPOT",value:function(){this.isPowerOfTwo=(0,i.wv)(this.pixelWidth)&&(0,i.wv)(this.pixelHeight)}}])&&c(e.prototype,n),r&&c(e,r),f}(r.Z);m.defaultOptions={resolution:1,format:"bgra8unorm",alphaMode:"premultiply-alpha-on-upload",dimensions:"2d",mipLevelCount:1,autoGenerateMipmaps:!1,sampleCount:1,antialias:!1,autoGarbageCollect:!1};var g=m},91026:function(t,e,n){"use strict";n.d(e,{L:function(){return S}});var r=n(25106),i=n.n(r),o=n(92846),a=n(29453),s=n(37006),u=n(15497);function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function f(t,e){for(var n=0;n2}},{key:"_onPlayStart",value:function(){this.isValid||this._mediaReady(),this._configureAutoUpdate()}},{key:"_onPlayStop",value:function(){this._configureAutoUpdate()}},{key:"_onSeeked",value:function(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0)}},{key:"_onCanPlay",value:function(){this.resource.removeEventListener("canplay",this._onCanPlay),this._mediaReady()}},{key:"_onCanPlayThrough",value:function(){this.resource.removeEventListener("canplaythrough",this._onCanPlay),this._preloadTimeout&&(clearTimeout(this._preloadTimeout),this._preloadTimeout=void 0),this._mediaReady()}},{key:"_mediaReady",value:function(){var t=this.resource;this.isValid&&(this.isReady=!0,this.resize(t.videoWidth,t.videoHeight)),this._msToNextUpdate=0,this.updateFrame(),this._msToNextUpdate=0,this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.resource.play()}},{key:"destroy",value:function(){this._configureAutoUpdate();var t=this.resource;t&&(t.removeEventListener("play",this._onPlayStart),t.removeEventListener("pause",this._onPlayStop),t.removeEventListener("seeked",this._onSeeked),t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlayThrough),t.removeEventListener("error",this._onError,!0),t.pause(),t.src="",t.load()),d(p(u.prototype),"destroy",this).call(this)}},{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,this._configureAutoUpdate())}},{key:"updateFPS",get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t,this._configureAutoUpdate())}},{key:"_configureAutoUpdate",value:function(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.resource.requestVideoFrameCallback?(this._isConnectedToTicker&&(a.v.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),null===this._videoFrameRequestCallbackHandle&&(this._videoFrameRequestCallbackHandle=this.resource.requestVideoFrameCallback(this._videoFrameRequestCallback))):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(a.v.shared.add(this.updateFrame,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.resource.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(a.v.shared.remove(this.updateFrame,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}}],r=[{key:"test",value:function(t){return globalThis.HTMLVideoElement&&(e=t,null!=(n=HTMLVideoElement)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n);var e,n}}],n&&f(e.prototype,n),r&&f(e,r),u}(u.p);w.extension=o.nw.TextureSource,w.defaultOptions=v({},u.p.defaultOptions,{autoLoad:!0,autoPlay:!0,updateFPS:0,crossorigin:!0,loop:!1,muted:!0,playsinline:!0,preload:!1}),w.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};var S=w},96113:function(t,e,n){"use strict";var r=n(42306),i=n(92846),o=n(15497),a=n(59193);function s(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var u=[];function c(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t&&t.resource,n=e?t.resource:t,r=e?t:{resource:t},i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t&&t.resource,i=n?t.resource:t,o=n?t:{resource:t};if(!e&&r.C.has(i))return r.C.get(i);var s=new a.x({source:c(o)});return s.on("destroy",(function(){r.C.has(i)&&r.C.remove(i)})),e||r.C.set(i,s),s}i.Rw.handleByList(i.nw.TextureSource,u),a.x.from=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"===typeof t?r.C.get(t):s(t,o.p)?new a.x({source:t}):l(t,e)},o.p.from=c},50887:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=Object.create(null),i=Object.create(null);function o(t,e){var n=i[t];return void 0===n&&(void 0===r[e]&&(r[e]=1),i[t]=n=r[e]++),n}},94687:function(t,e,n){"use strict";n.d(e,{g:function(){return r}});var r=function(t){return t[t.WEBGL=1]="WEBGL",t[t.WEBGPU=2]="WEBGPU",t[t.BOTH=3]="BOTH",t}(r||{})},10667:function(t,e,n){"use strict";n.d(e,{W2:function(){return nt},pA:function(){return tt},wO:function(){return $},Jm:function(){return et}});var r=n(54146),i=n(64404),o=n(92846),a=n(81005),s=n(94466),u=n(64096),c=n(50829),l=n(18768),f=n(30466),h={get isCachedAsTexture(){var t;return!!(null===(t=this.renderGroup)||void 0===t?void 0:t.isCachedAsTexture)},cacheAsTexture:function(t){"boolean"===typeof t&&!1===t?this.disableRenderGroup():(this.enableRenderGroup(),this.renderGroup.enableCacheAsTexture(!0===t?{}:t))},updateCacheTexture:function(){var t;null===(t=this.renderGroup)||void 0===t||t.updateCacheTexture()},get cacheAsBitmap(){return this.isCachedAsTexture},set cacheAsBitmap(t){(0,l.a1)("v8.6.0","cacheAsBitmap is deprecated, use cacheAsTexture instead."),this.cacheAsTexture(t)}},d=n(14716),p={allowChildren:!0,removeChildren:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=null!==e&&void 0!==e?e:this.children.length,r=n-t,i=[];if(r>0&&r<=n){for(var o=n-1;o>=t;o--){var a=this.children[o];a&&(i.push(a),a.parent=null)}(0,d.E)(this.children,t,n);var s=this.renderGroup||this.parentRenderGroup;s&&s.removeChildren(i);for(var u=0;u0&&this._didViewChangeTick++,i}if(0===r&&0===this.children.length)return i;throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},removeChildAt:function(t){var e=this.getChildAt(t);return this.removeChild(e)},getChildAt:function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index (".concat(t,") does not exist."));return this.children[t]},setChildIndex:function(t,e){if(e<0||e>=this.children.length)throw new Error("The index ".concat(e," supplied is out of bounds ").concat(this.children.length));this.getChildIndex(t),this.addChildAt(t,e)},getChildIndex:function(t){var e=this.children.indexOf(t);if(-1===e)throw new Error("The supplied Container must be a child of the caller");return e},addChildAt:function(t,e){this.allowChildren||(0,l.a1)(l.PD,"addChildAt: Only Containers will be allowed to add children in v8.0.0");var n=this.children;if(e<0||e>n.length)throw new Error("".concat(t,"addChildAt: The index ").concat(e," supplied is out of bounds ").concat(n.length));if(t.parent){var r=t.parent.children.indexOf(t);if(t.parent===this&&r===e)return t;-1!==r&&t.parent.children.splice(r,1)}e===n.length?n.push(t):n.splice(e,0,t),t.parent=this,t.didChange=!0,t._updateFlags=15;var i=this.renderGroup||this.parentRenderGroup;return i&&i.addChild(t),this.sortableChildren&&(this.sortDirty=!0),this.emit("childAdded",t,this,e),t.emit("added",this),t},swapChildren:function(t,e){if(t!==e){var n=this.getChildIndex(t),r=this.getChildIndex(e);this.children[n]=e,this.children[r]=t;var i=this.renderGroup||this.parentRenderGroup;i&&(i.structureDidChange=!0),this._didContainerChangeTick++}},removeFromParent:function(){var t;null===(t=this.parent)||void 0===t||t.removeChild(this)},reparentChild:function(){for(var t=arguments.length,e=new Array(t),n=0;n0,i=r!==(null===(e=n.filters)||void 0===e?void 0:e.length)>0;t=Array.isArray(t)?t.slice(0):t,n.filters=Object.freeze(t),i&&(r?this.addEffect(n):(this.removeEffect(n),n.filters=null!==t&&void 0!==t?t:null))},get filters(){var t;return null===(t=this._filterEffect)||void 0===t?void 0:t.filters},set filterArea(t){this._filterEffect||(this._filterEffect=new v.U),this._filterEffect.filterArea=t},get filterArea(){var t;return null===(t=this._filterEffect)||void 0===t?void 0:t.filterArea}};function w(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var S={label:null,get name(){return(0,l.a1)(l.PD,"Container.name property has been removed, use Container.label instead"),this.label},set name(t){(0,l.a1)(l.PD,"Container.name property has been removed, use Container.label instead"),this.label=t},getChildByName:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getChildByLabel(t,e)},getChildByLabel:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.children,r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this.children,i=0;i0&&void 0!==arguments[0]?arguments[0]:new B.E,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this._position,t,e):(t.x=this._position.x,t.y=this._position.y),t},toGlobal:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getGlobalTransform(k.N.get(),n);return e=r.apply(t,e),k.N.return(r),e},toLocal:function(t,e,n,r){e&&(t=e.toGlobal(t,n,r));var i=this.getGlobalTransform(k.N.get(),r);return n=i.applyInverse(t,n),k.N.return(i),n}},L=n(73850),N=n(31114);function F(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.textureOptions=t,this.isCachedAsTexture=!0,this.textureNeedsUpdate=!0}},{key:"disableCacheAsTexture",value:function(){this.isCachedAsTexture=!1,this.texture&&(N.z.returnTexture(this.texture),this.texture=null)}},{key:"updateCacheTexture",value:function(){this.textureNeedsUpdate=!0}},{key:"reset",value:function(){for(var t in this.renderGroupChildren.length=0,this.childrenToUpdate){var e=this.childrenToUpdate[t];e.list.fill(null),e.index=0}this.childrenRenderablesToUpdate.index=0,this.childrenRenderablesToUpdate.list.fill(null),this.root=null,this.updateTick=0,this.structureDidChange=!0,this._onRenderContainers.length=0,this.renderGroupParent=null,this.disableCacheAsTexture()}},{key:"localTransform",get:function(){return this.root.localTransform}},{key:"addRenderGroupChild",value:function(t){t.renderGroupParent&&t.renderGroupParent._removeRenderGroupChild(t),t.renderGroupParent=this,this.renderGroupChildren.push(t)}},{key:"_removeRenderGroupChild",value:function(t){var e=this.renderGroupChildren.indexOf(t);e>-1&&this.renderGroupChildren.splice(e,1),t.renderGroupParent=null}},{key:"addChild",value:function(t){if(this.structureDidChange=!0,t.parentRenderGroup=this,t.updateTick=-1,t.parent===this.root?t.relativeRenderGroupDepth=1:t.relativeRenderGroupDepth=t.parent.relativeRenderGroupDepth+1,t.didChange=!0,this.onChildUpdate(t),t.renderGroup)this.addRenderGroupChild(t.renderGroup);else{t._onRender&&this.addOnRender(t);for(var e=t.children,n=0;n0}},{key:"addOnRender",value:function(t){this._onRenderContainers.push(t)}},{key:"removeOnRender",value:function(t){this._onRenderContainers.splice(this._onRenderContainers.indexOf(t),1)}},{key:"runOnRender",value:function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:[],e=this.root.children,n=0;n1&&void 0!==arguments[1]?arguments[1]:[];if(e.push(t),t.renderGroup)return e;for(var n=t.children,r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return H(this,d),(t=h.call(this)).uid=(0,c.h)("renderable"),t._updateFlags=15,t.renderGroup=null,t.parentRenderGroup=null,t.parentRenderGroupIndex=0,t.didChange=!1,t.didViewUpdate=!1,t.relativeRenderGroupDepth=0,t.children=[],t.parent=null,t.includeInBuild=!0,t.measurable=!0,t.isSimple=!0,t.updateTick=-1,t.localTransform=new a.y,t.relativeGroupTransform=new a.y,t.groupTransform=t.relativeGroupTransform,t.destroyed=!1,t._position=new u.A(V(t),0,0),t._scale=Z,t._pivot=Q,t._skew=J,t._cx=1,t._sx=0,t._cy=0,t._sy=1,t._rotation=0,t.localColor=16777215,t.localAlpha=1,t.groupAlpha=1,t.groupColor=16777215,t.groupColorAlpha=4294967295,t.localBlendMode="inherit",t.groupBlendMode="normal",t.localDisplayStatus=7,t.globalDisplayStatus=7,t._didContainerChangeTick=0,t._didViewChangeTick=0,t._didLocalTransformChangeId=-1,t.effects=[],(0,U.z)(V(t),r,{children:!0,parent:!0,effects:!0}),null===(e=r.children)||void 0===e||e.forEach((function(e){return t.addChild(e)})),null===(n=r.parent)||void 0===n||n.addChild(V(t)),t}return e=d,n=[{key:"_didChangeId",get:function(){return 4095&this._didContainerChangeTick|(4095&this._didViewChangeTick)<<12},set:function(t){this._didViewChangeTick=t>>12&4095,this._didContainerChangeTick=4095&t}},{key:"addChild",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1){for(var r=0;r1){for(var r=0;r-1&&(this._didViewChangeTick++,this.children.splice(o,1),this.renderGroup?this.renderGroup.removeChild(i):this.parentRenderGroup&&this.parentRenderGroup.removeChild(i),i.parentRenderLayer&&i.parentRenderLayer.detach(i),i.parent=null,this.emit("childRemoved",i,this,o),i.emit("removed",this)),i}},{key:"_onUpdate",value:function(t){t&&t===this._skew&&this._updateSkew(),this._didContainerChangeTick++,this.didChange||(this.didChange=!0,this.parentRenderGroup&&this.parentRenderGroup.onChildUpdate(this))}},{key:"isRenderGroup",get:function(){return!!this.renderGroup},set:function(t){!!this.renderGroup!==t&&(t?this.enableRenderGroup():this.disableRenderGroup())}},{key:"enableRenderGroup",value:function(){if(!this.renderGroup){var t=this.parentRenderGroup;null===t||void 0===t||t.removeChild(this),this.renderGroup=f.u.get(G,this),this.groupTransform=a.y.IDENTITY,null===t||void 0===t||t.addChild(this),this._updateIsSimple()}}},{key:"disableRenderGroup",value:function(){if(this.renderGroup){var t=this.parentRenderGroup;null===t||void 0===t||t.removeChild(this),f.u.return(this.renderGroup),this.renderGroup=null,this.groupTransform=this.relativeGroupTransform,null===t||void 0===t||t.addChild(this),this._updateIsSimple()}}},{key:"_updateIsSimple",value:function(){this.isSimple=!this.renderGroup&&0===this.effects.length}},{key:"worldTransform",get:function(){return this._worldTransform||(this._worldTransform=new a.y),this.renderGroup?this._worldTransform.copyFrom(this.renderGroup.worldTransform):this.parentRenderGroup&&this._worldTransform.appendFrom(this.relativeGroupTransform,this.parentRenderGroup.worldTransform),this._worldTransform}},{key:"x",get:function(){return this._position.x},set:function(t){this._position.x=t}},{key:"y",get:function(){return this._position.y},set:function(t){this._position.y=t}},{key:"position",get:function(){return this._position},set:function(t){this._position.copyFrom(t)}},{key:"rotation",get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this._onUpdate(this._skew))}},{key:"angle",get:function(){return this.rotation*s.jl},set:function(t){this.rotation=t*s.ZX}},{key:"pivot",get:function(){return this._pivot===Q&&(this._pivot=new u.A(this,0,0)),this._pivot},set:function(t){this._pivot===Q&&(this._pivot=new u.A(this,0,0)),"number"===typeof t?this._pivot.set(t):this._pivot.copyFrom(t)}},{key:"skew",get:function(){return this._skew===J&&(this._skew=new u.A(this,0,0)),this._skew},set:function(t){this._skew===J&&(this._skew=new u.A(this,0,0)),this._skew.copyFrom(t)}},{key:"scale",get:function(){return this._scale===Z&&(this._scale=new u.A(this,1,1)),this._scale},set:function(t){this._scale===Z&&(this._scale=new u.A(this,0,0)),"number"===typeof t?this._scale.set(t):this._scale.copyFrom(t)}},{key:"width",get:function(){return Math.abs(this.scale.x*this.getLocalBounds().width)},set:function(t){var e=this.getLocalBounds().width;this._setWidth(t,e)}},{key:"height",get:function(){return Math.abs(this.scale.y*this.getLocalBounds().height)},set:function(t){var e=this.getLocalBounds().height;this._setHeight(t,e)}},{key:"getSize",value:function(t){t||(t={});var e=this.getLocalBounds();return t.width=Math.abs(this.scale.x*e.width),t.height=Math.abs(this.scale.y*e.height),t}},{key:"setSize",value:function(t,e){var n,r=this.getLocalBounds();"object"===typeof t?(e=null!==(n=t.height)&&void 0!==n?n:t.width,t=t.width):null!==e&&void 0!==e||(e=t),void 0!==t&&this._setWidth(t,r.width),void 0!==e&&this._setHeight(e,r.height)}},{key:"_updateSkew",value:function(){var t=this._rotation,e=this._skew;this._cx=Math.cos(t+e._y),this._sx=Math.sin(t+e._y),this._cy=-Math.sin(t-e._x),this._sy=Math.cos(t-e._x)}},{key:"updateTransform",value:function(t){return this.position.set("number"===typeof t.x?t.x:this.position.x,"number"===typeof t.y?t.y:this.position.y),this.scale.set("number"===typeof t.scaleX?t.scaleX||1:this.scale.x,"number"===typeof t.scaleY?t.scaleY||1:this.scale.y),this.rotation="number"===typeof t.rotation?t.rotation:this.rotation,this.skew.set("number"===typeof t.skewX?t.skewX:this.skew.x,"number"===typeof t.skewY?t.skewY:this.skew.y),this.pivot.set("number"===typeof t.pivotX?t.pivotX:this.pivot.x,"number"===typeof t.pivotY?t.pivotY:this.pivot.y),this}},{key:"setFromMatrix",value:function(t){t.decompose(this)}},{key:"updateLocalTransform",value:function(){var t=this._didContainerChangeTick;if(this._didLocalTransformChangeId!==t){this._didLocalTransformChangeId=t;var e=this.localTransform,n=this._scale,r=this._pivot,i=this._position,o=n._x,a=n._y,s=r._x,u=r._y;e.a=this._cx*o,e.b=this._sx*o,e.c=this._cy*a,e.d=this._sy*a,e.tx=i._x-(s*e.a+u*e.c),e.ty=i._y-(s*e.b+u*e.d)}}},{key:"alpha",get:function(){return this.localAlpha},set:function(t){t!==this.localAlpha&&(this.localAlpha=t,this._updateFlags|=$,this._onUpdate())}},{key:"tint",get:function(){return(0,C.p)(this.localColor)},set:function(t){var e=i.I.shared.setValue(null!==t&&void 0!==t?t:16777215).toBgrNumber();e!==this.localColor&&(this.localColor=e,this._updateFlags|=$,this._onUpdate())}},{key:"blendMode",get:function(){return this.localBlendMode},set:function(t){this.localBlendMode!==t&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=tt,this.localBlendMode=t,this._onUpdate())}},{key:"visible",get:function(){return!!(2&this.localDisplayStatus)},set:function(t){var e=t?2:0;(2&this.localDisplayStatus)!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=et,this.localDisplayStatus^=2,this._onUpdate())}},{key:"culled",get:function(){return!(4&this.localDisplayStatus)},set:function(t){var e=t?0:4;(4&this.localDisplayStatus)!==e&&(this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._updateFlags|=et,this.localDisplayStatus^=4,this._onUpdate())}},{key:"renderable",get:function(){return!!(1&this.localDisplayStatus)},set:function(t){var e=t?1:0;(1&this.localDisplayStatus)!==e&&(this._updateFlags|=et,this.localDisplayStatus^=1,this.parentRenderGroup&&(this.parentRenderGroup.structureDidChange=!0),this._onUpdate())}},{key:"isRenderable",get:function(){return 7===this.localDisplayStatus&&this.groupAlpha>0}},{key:"destroy",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.destroyed){var n;this.destroyed=!0,this.children.length&&(n=this.removeChildren(0,this.children.length)),this.removeFromParent(),this.parent=null,this._maskEffect=null,this._filterEffect=null,this.effects=null,this._position=null,this._scale=null,this._pivot=null,this._skew=null,this.emit("destroyed",this),this.removeAllListeners();var r="boolean"===typeof e?e:null===e||void 0===e?void 0:e.children;if(r&&n)for(var i=0;i=0;a--){var s=this.effects[a];r[s.pipe].pop(s,this,t)}}})},58158:function(t,e,n){"use strict";n.d(e,{Y:function(){return u}});var r=n(81005),i=n(79690);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:1/0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1/0;o(this,t),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=s,this.minX=e,this.minY=n,this.maxX=r,this.maxY=i}var e,n,r;return e=t,n=[{key:"isEmpty",value:function(){return this.minX>this.maxX||this.minY>this.maxY}},{key:"rectangle",get:function(){this._rectangle||(this._rectangle=new i.A);var t=this._rectangle;return this.minX>this.maxX||this.minY>this.maxY?(t.x=0,t.y=0,t.width=0,t.height=0):t.copyFromBounds(this),t}},{key:"clear",value:function(){return this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.matrix=s,this}},{key:"set",value:function(t,e,n,r){this.minX=t,this.minY=e,this.maxX=n,this.maxY=r}},{key:"addFrame",value:function(t,e,n,r,i){i||(i=this.matrix);var o=i.a,a=i.b,s=i.c,u=i.d,c=i.tx,l=i.ty,f=this.minX,h=this.minY,d=this.maxX,p=this.maxY,v=o*t+s*e+c,y=a*t+u*e+l;vd&&(d=v),y>p&&(p=y),(v=o*n+s*e+c)d&&(d=v),y>p&&(p=y),(v=o*t+s*r+c)d&&(d=v),y>p&&(p=y),(v=o*n+s*r+c)d&&(d=v),y>p&&(p=y),this.minX=f,this.minY=h,this.maxX=d,this.maxY=p}},{key:"addRect",value:function(t,e){this.addFrame(t.x,t.y,t.x+t.width,t.y+t.height,e)}},{key:"addBounds",value:function(t,e){this.addFrame(t.minX,t.minY,t.maxX,t.maxY,e)}},{key:"addBoundsMask",value:function(t){this.minX=this.minX>t.minX?this.minX:t.minX,this.minY=this.minY>t.minY?this.minY:t.minY,this.maxX=this.maxXthis.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY,f=o*e+s*i+c,h=a*e+u*i+l,this.minX=fthis.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY,f=o*r+s*i+c,h=a*r+u*i+l,this.minX=fthis.maxX?f:this.maxX,this.maxY=h>this.maxY?h:this.maxY}},{key:"fit",value:function(t){return this.minXt.right&&(this.maxX=t.right),this.minYt.bottom&&(this.maxY=t.bottom),this}},{key:"fitBounds",value:function(t,e,n,r){return this.minXe&&(this.maxX=e),this.minYr&&(this.maxY=r),this}},{key:"pad",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e,this}},{key:"ceil",value:function(){return this.minX=Math.floor(this.minX),this.minY=Math.floor(this.minY),this.maxX=Math.ceil(this.maxX),this.maxY=Math.ceil(this.maxY),this}},{key:"clone",value:function(){return new t(this.minX,this.minY,this.maxX,this.maxY)}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this.minX*=t,this.minY*=e,this.maxX*=t,this.maxY*=e,this}},{key:"x",get:function(){return this.minX},set:function(t){var e=this.maxX-this.minX;this.minX=t,this.maxX=t+e}},{key:"y",get:function(){return this.minY},set:function(t){var e=this.maxY-this.minY;this.minY=t,this.maxY=t+e}},{key:"width",get:function(){return this.maxX-this.minX},set:function(t){this.maxX=this.minX+t}},{key:"height",get:function(){return this.maxY-this.minY},set:function(t){this.maxY=this.minY+t}},{key:"left",get:function(){return this.minX}},{key:"right",get:function(){return this.maxX}},{key:"top",get:function(){return this.minY}},{key:"bottom",get:function(){return this.maxY}},{key:"isPositive",get:function(){return this.maxX-this.minX>0&&this.maxY-this.minY>0}},{key:"isValid",get:function(){return this.minX+this.minY!==1/0}},{key:"addVertexData",value:function(t,e,n,r){var i=this.minX,o=this.minY,a=this.maxX,s=this.maxY;r||(r=this.matrix);for(var u=r.a,c=r.b,l=r.c,f=r.d,h=r.tx,d=r.ty,p=e;pa?m:a,s=g>s?g:s}this.minX=i,this.minY=o,this.maxX=a,this.maxY=s}},{key:"containsPoint",value:function(t,e){return this.minX<=t&&this.minY<=e&&this.maxX>=t&&this.maxY>=e}},{key:"toString",value:function(){return"[pixi.js:Bounds minX=".concat(this.minX," minY=").concat(this.minY," maxX=").concat(this.maxX," maxY=").concat(this.maxY," width=").concat(this.width," height=").concat(this.height,"]")}},{key:"copyFrom",value:function(t){return this.minX=t.minX,this.minY=t.minY,this.maxX=t.maxX,this.maxY=t.maxY,this}}],n&&a(e.prototype,n),r&&a(e,r),t}()},57820:function(t,e,n){"use strict";n.d(e,{I_:function(){return s},qW:function(){return o}});var r=n(81005),i=n(11885);function o(t,e,n){var o;return n.clear(),a(t,n,t.parent?e?t.parent.worldTransform:s(t,o=i.N.get().identity()):r.y.IDENTITY,e),o&&i.N.return(o),n.isValid||n.set(0,0,0,0),n}function a(t,e,n,o){if(t.visible&&t.measurable){var s;o?s=t.worldTransform:(t.updateLocalTransform(),(s=i.N.get()).appendFrom(t.localTransform,n));var u=e,c=!!t.effects.length;if(c&&(e=i.W.get().clear()),t.boundsArea)e.addRect(t.boundsArea,s);else{t.bounds&&(e.matrix=s,e.addBounds(t.bounds));for(var l=0;l>16&255)}var s={getGlobalAlpha:function(t){if(t)return this.renderGroup?this.renderGroup.worldAlpha:this.parentRenderGroup?this.parentRenderGroup.worldAlpha*this.alpha:this.alpha;for(var e=this.alpha,n=this.parent;n;)e*=n.alpha,n=n.parent;return e},getGlobalTransform:function(t,e){if(e)return t.copyFrom(this.worldTransform);this.updateLocalTransform();var n=(0,r.I_)(this,i.N.get().identity());return t.appendFrom(this.localTransform,n),i.N.return(n),t},getGlobalTint:function(t){if(t)return this.renderGroup?a(this.renderGroup.worldColor):this.parentRenderGroup?a((0,o.i)(this.localColor,this.parentRenderGroup.worldColor)):this.tint;for(var e=this.localColor,n=this.parent;n;)e=(0,o.i)(e,n.localColor),n=n.parent;return a(e)}}},97140:function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r in e)n[r]||void 0===e[r]||(t[r]=e[r])}n.d(e,{z:function(){return r}})},94083:function(t,e,n){"use strict";function r(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}n.d(e,{$:function(){return r}})},96604:function(t,e,n){"use strict";n.d(e,{i:function(){return o}});var r=n(65180),i=16777215;function o(t,e){return t===i?e:e===i?t:(0,r.N)(t,e)}},65180:function(t,e,n){"use strict";function r(t,e){return 16777215!==t&&e?16777215!==e&&t?(((t>>16&255)*(e>>16&255)/255|0)<<16)+(((t>>8&255)*(e>>8&255)/255|0)<<8)+((255&t)*(255&e)/255|0):t:e}n.d(e,{N:function(){return r}})},69605:function(t,e,n){"use strict";n.d(e,{I:function(){return s}});var r=n(81005),i=n(65180);function o(t,e){for(var n=0;n>16|65280&t|(255&t)<<16,n=this.renderable;return n?(0,i.N)(e,n.groupColor)+(this.alpha*n.groupAlpha*255<<24):e+(255*this.alpha<<24)}},{key:"transform",get:function(){var t;return(null===(t=this.renderable)||void 0===t?void 0:t.groupTransform)||a}},{key:"copyTo",value:function(t){t.indexOffset=this.indexOffset,t.indexSize=this.indexSize,t.attributeOffset=this.attributeOffset,t.attributeSize=this.attributeSize,t.baseColor=this.baseColor,t.alpha=this.alpha,t.texture=this.texture,t.geometryData=this.geometryData,t.topology=this.topology}},{key:"reset",value:function(){this.applyTransform=!0,this.renderable=null,this.topology="triangle-list"}}])&&o(e.prototype,n),r&&o(e,r),t}()},35145:function(t,e,n){"use strict";n.d(e,{T:function(){return g}});var r=n(18768),i=n(8600),o=n(75904);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?s(t):e}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||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.")}()}var y=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(d,t);var e,n,i,a=m(d);function d(t){var e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),n=t,(null!=(r=o.g)&&"undefined"!==typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)&&(t={context:t});var i=t||{},u=i.context,l=i.roundPixels,f=h(i,["context","roundPixels"]);return e=a.call(this,function(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0];if(t)return new d(this._context.clone());this._ownedContext=null;var e=new d(this._context);return e}},{key:"lineStyle",value:function(t,e,n){(0,r.a1)(r.PD,"Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");var i={};return t&&(i.width=t),e&&(i.color=e),n&&(i.alpha=n),this.context.strokeStyle=i,this}},{key:"beginFill",value:function(t,e){(0,r.a1)(r.PD,"Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");var n={};return void 0!==t&&(n.color=t),void 0!==e&&(n.alpha=e),this.context.fillStyle=n,this}},{key:"endFill",value:function(){(0,r.a1)(r.PD,"Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();var t=this.context.strokeStyle;return t.width===o.g.defaultStrokeStyle.width&&t.color===o.g.defaultStrokeStyle.color&&t.alpha===o.g.defaultStrokeStyle.alpha||this.context.stroke(),this}},{key:"drawCircle",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&((i=r.pop())?(o=i.startX,a=i.startY):(o=0,a=0)),i=null;break;default:(0,f.Z)("Unknown SVG path command: ".concat(c))}"Z"!==c&&"z"!==c&&null===i&&(i={startX:o,startY:a},r.push(i))}return e}var v=n(89171),y=n(79690);function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;m(this,t),this.type="ellipse",this.x=e,this.y=n,this.halfWidth=r,this.halfHeight=i}var e,n,r;return e=t,n=[{key:"clone",value:function(){return new t(this.x,this.y,this.halfWidth,this.halfHeight)}},{key:"contains",value:function(t,e){if(this.halfWidth<=0||this.halfHeight<=0)return!1;var n=(t-this.x)/this.halfWidth,r=(e-this.y)/this.halfHeight;return(n*=n)+(r*=r)<=1}},{key:"strokeContains",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,o=i.halfWidth,a=i.halfHeight;if(o<=0||a<=0)return!1;var s=n*(1-r),u=n-s,c=o-u,l=a-u,f=o+s,h=a+s,d=t-this.x,p=e-this.y,v=d*d/(c*c)+p*p/(l*l),y=d*d/(f*f)+p*p/(h*h);return v>1&&y<=1}},{key:"getBounds",value:function(t){return t||(t=new y.A),t.x=this.x-this.halfWidth,t.y=this.y-this.halfHeight,t.width=2*this.halfWidth,t.height=2*this.halfHeight,t}},{key:"copyFrom",value:function(t){return this.x=t.x,this.y=t.y,this.halfWidth=t.halfWidth,this.halfHeight=t.halfHeight,this}},{key:"copyTo",value:function(t){return t.copyFrom(this),t}},{key:"toString",value:function(){return"[pixi.js/math:Ellipse x=".concat(this.x," y=").concat(this.y," halfWidth=").concat(this.halfWidth," halfHeight=").concat(this.halfHeight,"]")}}],n&&g(e.prototype,n),r&&g(e,r),t}();function w(t,e,n,r,i,o){var a,s,u=i-n,c=o-r,l=u*u+c*c,f=-1;0!==l&&(f=((t-n)*u+(e-r)*c)/l),f<0?(a=n,s=r):f>1?(a=i,s=o):(a=n+f*u,s=r+f*c);var h=t-a,d=e-s;return h*h+d*d}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;ne!==c>e&&t<(e-s)/(c-s)*(u-a)+a&&(n=!n)}return n}},{key:"strokeContains",value:function(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=n*n,o=i*(1-r),a=i-o,s=this.points,u=s.length-(this.closePath?0:2),c=0;cr?u:r,i=co?c:o}return t.x=n,t.width=r-n,t.y=i,t.height=o-i,t}},{key:"copyFrom",value:function(t){return this.points=t.points.slice(),this.closePath=t.closePath,this}},{key:"copyTo",value:function(t){return t.copyFrom(this),t}},{key:"toString",value:function(){return"[pixi.js/math:PolygoncloseStroke=".concat(this.closePath,"points=").concat(this.points.reduce((function(t,e){return"".concat(t,", ").concat(e)}),""),"]")}},{key:"lastX",get:function(){return this.points[this.points.length-2]}},{key:"lastY",get:function(){return this.points[this.points.length-1]}},{key:"x",get:function(){return this.points[this.points.length-2]}},{key:"y",get:function(){return this.points[this.points.length-1]}}],n&&_(e.prototype,n),r&&_(e,r),t}();function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){for(var n=0;n=i-o&&c<=i+a},A=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20;x(this,t),this.type="roundedRectangle",this.x=e,this.y=n,this.width=r,this.height=i,this.radius=o}var e,n,r;return e=t,n=[{key:"getBounds",value:function(t){return t||(t=new y.A),t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}},{key:"clone",value:function(){return new t(this.x,this.y,this.width,this.height,this.radius)}},{key:"copyFrom",value:function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}},{key:"copyTo",value:function(t){return t.copyFrom(this),t}},{key:"contains",value:function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+n&&e<=this.y+this.height-n||t>=this.x+n&&t<=this.x+this.width-n)return!0;var r=t-(this.x+n),i=e-(this.y+n),o=n*n;if(r*r+i*i<=o)return!0;if((r=t-(this.x+this.width-n))*r+i*i<=o)return!0;if(r*r+(i=e-(this.y+this.height-n))*i<=o)return!0;if((r=t-(this.x+n))*r+i*i<=o)return!0}return!1}},{key:"strokeContains",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=this,o=i.x,a=i.y,s=i.width,u=i.height,c=i.radius,l=n*(1-r),f=n-l,h=o+c,d=a+c,p=s-2*c,v=u-2*c,y=o+s,m=a+u;return(t>=o-l&&t<=o+f||t>=y-f&&t<=y+l)&&e>=d&&e<=d+v||(e>=a-l&&e<=a+f||e>=m-f&&e<=m+l)&&t>=h&&t<=h+p||ty-c&&ey-c&&e>m-c&&C(t,e,y-c,m-c,c,f,l)||tm-c&&C(t,e,h,m-c,c,f,l)}},{key:"toString",value:function(){return"[pixi.js/math:RoundedRectangle x=".concat(this.x," y=").concat(this.y,"width=").concat(this.width," height=").concat(this.height," radius=").concat(this.radius,"]")}}],n&&E(e.prototype,n),r&&E(e,r),t}(),P=n(26340),T=1.1920929e-7;function O(t,e,n,r,i,o,a,s,u,c){var l=(1-Math.min(.99,Math.max(0,null!==c&&void 0!==c?c:P.hJ.defaultOptions.bezierSmoothness)))/1;return function(t,e,n,r,i,o,a,s,u,c){M(t,e,n,r,i,o,a,s,u,c,0),u.push(a,s)}(e,n,r,i,o,a,s,u,t,l*=l),t}function M(t,e,n,r,i,o,a,s,u,c,l){if(!(l>8)){Math.PI;var f=(t+n)/2,h=(e+r)/2,d=(n+i)/2,p=(r+o)/2,v=(i+a)/2,y=(o+s)/2,m=(f+d)/2,g=(h+p)/2,b=(d+v)/2,w=(p+y)/2,S=(m+b)/2,_=(g+w)/2;if(l>0){var k=a-t,x=s-e,E=Math.abs((n-a)*x-(r-s)*k),C=Math.abs((i-a)*x-(o-s)*k);if(E>T&&C>T){if((E+C)*(E+C)<=c*(k*k+x*x))return void u.push(S,_)}else if(E>T){if(E*E<=c*(k*k+x*x))return void u.push(S,_)}else if(C>T){if(C*C<=c*(k*k+x*x))return void u.push(S,_)}else if((k=S-(t+a)/2)*k+(x=_-(e+s)/2)*x<=c)return void u.push(S,_)}M(t,e,f,h,m,g,S,_,u,c,l+1),M(S,_,b,w,v,y,a,s,u,c,l+1)}}function R(t,e,n,r,i,o,a,s){var u=(1-Math.min(.99,Math.max(0,null!==s&&void 0!==s?s:P.hJ.defaultOptions.bezierSmoothness)))/1;return function(t,e,n,r,i,o,a,s){I(a,t,e,n,r,i,o,s,0),a.push(i,o)}(e,n,r,i,o,a,t,u*=u),t}function I(t,e,n,r,i,o,a,s,u){if(!(u>8)){Math.PI;var c=(e+r)/2,l=(n+i)/2,f=(r+o)/2,h=(i+a)/2,d=(c+f)/2,p=(l+h)/2,v=o-e,y=a-n,m=Math.abs((r-o)*y-(i-a)*v);if(m>1.1920929e-7){if(m*m<=s*(v*v+y*y))return void t.push(d,p)}else if((v=d-(e+o)/2)*v+(y=p-(n+a)/2)*y<=s)return void t.push(d,p);I(t,e,n,c,l,d,p,s,u+1),I(t,d,p,f,h,o,a,s,u+1)}}function j(t,e,n,r,i,o,a,s){var u=Math.abs(i-o);(!a&&i>o||a&&o>i)&&(u=2*Math.PI-u),s||(s=Math.max(6,Math.floor(6*Math.pow(r,1/3)*(u/Math.PI))));var c=u/(s=Math.max(s,3)),l=i;c*=a?-1:1;for(var f=0;f1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},G=function(t,e,n,r,i,o,a,s,u,c,l,f,h){var d=Math.pow(i,2),p=Math.pow(o,2),v=Math.pow(l,2),y=Math.pow(f,2),m=d*p-d*y-p*v;m<0&&(m=0),m/=d*y+p*v;var g=(m=Math.sqrt(m)*(a===s?-1:1))*i/o*f,b=m*-o/i*l,w=c*g-u*b+(t+n)/2,S=u*g+c*b+(e+r)/2,_=(l-g)/i,k=(f-b)/o,x=(-l-g)/i,E=(-f-b)/o,C=F(1,0,_,k),A=F(_,k,x,E);0===s&&A>0&&(A-=B),1===s&&A<0&&(A+=B),h.centerX=w,h.centerY=S,h.ang1=C,h.ang2=A};function U(t,e,n){for(var r=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);return{len:i,nx:n/i,ny:r/i}},i=function(e,n){0===e?t.moveTo(n.x,n.y):t.lineTo(n.x,n.y)},o=e[e.length-1],a=0;a0&&(p=-1,v=!0);var y=d/2,m=void 0,g=Math.abs(Math.cos(y)*c/Math.sin(y));g>Math.min(f.len/2,h.len/2)?(g=Math.min(f.len/2,h.len/2),m=Math.abs(g*Math.sin(y)/Math.cos(y))):m=c;var b=u.x+h.nx*g+-h.ny*m*p,w=u.y+h.ny*g+h.nx*m*p,S=Math.atan2(f.ny,f.nx)+Math.PI/2*p,_=Math.atan2(h.ny,h.nx)-Math.PI/2*p;0===a&&t.moveTo(b+Math.cos(S)*m,w+Math.sin(S)*m),t.arc(b,w,m,S,_,v),o=u}}}}function V(t,e,n,r){for(var i=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o=function(t,e,n){return{x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n}},a=e.length,s=0;st.length)&&(e=t.length);for(var n=0,r=new Array(e);nl*s)}}(this._currentPoly.points,t,e,n,r,i),this}},{key:"arcToSvg",value:function(t,e,n,r,i,o,a){return function(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;if(0!==o&&0!==a){var l=Math.sin(s*B/360),f=Math.cos(s*B/360),h=f*(e-r)/2+l*(n-i)/2,d=-l*(e-r)/2+f*(n-i)/2;if(0!==h||0!==d){o=Math.abs(o),a=Math.abs(a);var p=Math.pow(h,2)/Math.pow(o,2)+Math.pow(d,2)/Math.pow(a,2);p>1&&(o*=Math.sqrt(p),a*=Math.sqrt(p)),G(e,n,r,i,o,a,u,c,l,f,h,d,D);var v=D.ang1,y=D.ang2,m=D.centerX,g=D.centerY,b=Math.abs(y)/(B/4);Math.abs(1-b)<1e-7&&(b=1);var w=Math.max(Math.ceil(b),1);y/=w;for(var S=t[t.length-2],_=t[t.length-1],k={x:0,y:0},x=0;x1)for(var a=null,s=r;s0&&void 0!==arguments[0]&&arguments[0];this.endPoly(t)}},{key:"rect",value:function(t,e,n,r,i){return this.drawShape(new y.A(t,e,n,r),i),this}},{key:"circle",value:function(t,e,n,r){return this.drawShape(new v.C(t,e,n),r),this}},{key:"poly",value:function(t,e,n){var r=new k(t);return r.closePath=e,this.drawShape(r,n),this}},{key:"regularPoly",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;r=Math.max(0|r,3);for(var a=-1*Math.PI/2+i,s=2*Math.PI/r,u=[],c=0;c5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;if(r=Math.max(0|r,3),i<=0)return this.regularPoly(t,e,n,r,o);var s=n*Math.sin(Math.PI/r)-.001;i=Math.min(i,s);for(var u=-1*Math.PI/2+o,c=2*Math.PI/r,l=(r-2)*Math.PI/r/2,f=0;f2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return t.length<3?this:(n?V(this,t,e,r):U(this,t,e),this.closePath())}},{key:"filletRect",value:function(t,e,n,r,i){if(0===i)return this.rect(t,e,n,r);var o=Math.min(n,r)/2,a=Math.min(o,Math.max(-o,i)),s=t+n,u=e+r,c=a<0?-a:0,l=Math.abs(a);return this.moveTo(t,e+l).arcTo(t+c,e+c,t+l,e,l).lineTo(s-l,e).arcTo(s-c,e+c,s,e+l,l).lineTo(s,u-l).arcTo(s-c,u-c,t+n-l,u,l).lineTo(t+l,u).arcTo(t+c,u-c,t,u-l,l).closePath()}},{key:"chamferRect",value:function(t,e,n,r,i,o){if(i<=0)return this.rect(t,e,n,r);for(var a=Math.min(i,Math.min(n,r)/2),s=t+n,u=e+r,c=[t+a,e,s-a,e,s,e+a,s,u-a,s-a,u,t+a,u,t,u-a,t,e+a],l=c.length-1;l>=2;l-=2)c[l]===c[l-2]&&c[l-1]===c[l-3]&&c.splice(l-1,2);return this.poly(c,!0,o)}},{key:"ellipse",value:function(t,e,n,r,i){return this.drawShape(new b(t,e,n,r),i),this}},{key:"roundRect",value:function(t,e,n,r,i,o){return this.drawShape(new A(t,e,n,r,i),o),this}},{key:"drawShape",value:function(t,e){return this.endPoly(),this.shapePrimitives.push({shape:t,transform:e}),this}},{key:"startPoly",value:function(t,e){var n=this._currentPoly;return n&&this.endPoly(),(n=new k).points.push(t,e),this._currentPoly=n,this}},{key:"endPoly",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentPoly;return e&&e.points.length>2&&(e.closePath=t,this.shapePrimitives.push({shape:e})),this._currentPoly=null,this}},{key:"_ensurePoly",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this._currentPoly&&(this._currentPoly=new k,t)){var e=this.shapePrimitives[this.shapePrimitives.length-1];if(e){var n=e.shape.x,r=e.shape.y;if(e.transform&&!e.transform.isIdentity()){var i=e.transform,o=n;n=i.a*n+i.c*r+i.tx,r=i.b*o+i.d*r+i.ty}this._currentPoly.points.push(n,r)}else this._currentPoly.points.push(0,0)}}},{key:"buildPath",value:function(){var t=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(var e=0;e1&&void 0!==arguments[1]&&arguments[1];(K(this,t),this.instructions=[],this.uid=(0,u.h)("graphicsPath"),this._dirty=!0,this.checkForHoles=r,"string"===typeof e)?p(e,this):this.instructions=null!==(n=null===e||void 0===e?void 0:e.slice())&&void 0!==n?n:[]}var e,n,r;return e=t,n=[{key:"shapePath",get:function(){return this._shapePath||(this._shapePath=new Y(this)),this._dirty&&(this._dirty=!1,this._shapePath.buildPath()),this._shapePath}},{key:"addPath",value:function(t,e){return t=t.clone(),this.instructions.push({action:"addPath",data:[t,e]}),this._dirty=!0,this}},{key:"arc",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]&&arguments[0],n=new t;if(n.checkForHoles=this.checkForHoles,e)for(var r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n elements unsupported"))}E&&(n=null);for(var C=0;C4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;return this._tick++,this._activePath.regularPoly(t,e,n,r,i,o),this}},{key:"roundPoly",value:function(t,e,n,r,i,o){return this._tick++,this._activePath.roundPoly(t,e,n,r,i,o),this}},{key:"roundShape",value:function(t,e,n,r){return this._tick++,this._activePath.roundShape(t,e,n,r),this}},{key:"filletRect",value:function(t,e,n,r,i){return this._tick++,this._activePath.filletRect(t,e,n,r,i),this}},{key:"chamferRect",value:function(t,e,n,r,i,o){return this._tick++,this._activePath.chamferRect(t,e,n,r,i,o),this}},{key:"star",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return this._tick++,this._activePath.star(t,e,n,r,i,o,this._transform.clone()),this}},{key:"svg",value:function(t){return this._tick++,lt(t,this),this}},{key:"restore",value:function(){var t=this._stateStack.pop();return t&&(this._transform=t.transform,this._fillStyle=t.fillStyle,this._strokeStyle=t.strokeStyle),this}},{key:"save",value:function(){return this._stateStack.push({transform:this._transform.clone(),fillStyle:gt({},this._fillStyle),strokeStyle:gt({},this._strokeStyle)}),this}},{key:"getTransform",value:function(){return this._transform}},{key:"resetTransform",value:function(){return this._transform.identity(),this}},{key:"rotate",value:function(t){return this._transform.rotate(t),this}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._transform.scale(t,e),this}},{key:"setTransform",value:function(t,e,n,r,i,a){return mt(t,o.y)?(this._transform.set(t.a,t.b,t.c,t.d,t.tx,t.ty),this):(this._transform.set(t,e,n,r,i,a),this)}},{key:"transform",value:function(t,e,n,r,i,a){return mt(t,o.y)?(this._transform.append(t),this):(xt.set(t,e,n,r,i,a),this._transform.append(xt),this)}},{key:"translate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return this._transform.translate(t,e),this}},{key:"clear",value:function(){return this._activePath.clear(),this.instructions.length=0,this.resetTransform(),this.onUpdate(),this}},{key:"onUpdate",value:function(){this.dirty||(this.emit("update",this,16),this.dirty=!0,this._boundsDirty=!0)}},{key:"bounds",get:function(){if(!this._boundsDirty)return this._bounds;var t=this._bounds;t.clear();for(var e=0;e0&&void 0!==arguments[0]&&arguments[0];this._stateStack.length=0,this._transform=null,this.emit("destroy",this),this.removeAllListeners();var e="boolean"===typeof t?t:null===t||void 0===t?void 0:t.texture;if(e){var n="boolean"===typeof t?t:null===t||void 0===t?void 0:t.textureSource;this._fillStyle.texture&&this._fillStyle.texture.destroy(n),this._strokeStyle.texture&&this._strokeStyle.texture.destroy(n)}this._fillStyle=null,this._strokeStyle=null,this.instructions=null,this._activePath=null,this._bounds=null,this._stateStack=null,this.customShader=null,this._transform=null}}],n&&pt(e.prototype,n),r&&pt(e,r),f}(r.Z);Et.defaultFillStyle={color:16777215,alpha:1,texture:s.x.WHITE,matrix:null,fill:null,textureSpace:"local"},Et.defaultStrokeStyle={width:1,color:16777215,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:s.x.WHITE,matrix:null,fill:null,textureSpace:"local",pixelLine:!1};var Ct=Et},26340:function(t,e,n){"use strict";n.d(e,{hJ:function(){return Y}});var r=n(92846),i=n(71499),o=n(7671),a=n(73850),s=n(18768),u=n(30466),c=n(81005),l=n(79690);function f(t,e,n,r,i){var o=e.a,a=e.b,s=e.c,u=e.d,c=e.tx,l=e.ty;n||(n=0),r||(r=2),i||(i=t.length/r-n);for(var f=n*r,h=0;h=0&&s>=0&&i>=0&&o>=0))return e;var d=Math.ceil(2.3*Math.sqrt(a+s)),p=8*d+(i?4:0)+(o?4:0);if(0===p)return e;if(0===d)return e[0]=e[6]=n+i,e[1]=e[3]=r+o,e[2]=e[4]=n-i,e[5]=e[7]=r-o,e;var v=0,y=4*d+(i?2:0)+2,m=y,g=p,b=i+a,w=o,S=n+b,_=n-b,k=r+w;if(e[v++]=S,e[v++]=k,e[--y]=k,e[--y]=_,o){var x=r-w;e[m++]=_,e[m++]=x,e[--g]=x,e[--g]=S}for(var E=1;E0&&(i[o++]=c,i[o++]=l,i[o++]=c-1),c++;i[o++]=l+1,i[o++]=l,i[o++]=c-1}}},m=v({},y,{extension:v({},y.extension,{name:"ellipse"})}),g=v({},y,{extension:v({},y.extension,{name:"roundedRectangle"})}),b=n(90033),w=1e-4;function S(t,e,n,r,i,o,a,s){var u,c;a?(u=r,c=-n):(u=-r,c=n);var l=t-n*i+u,f=e-r*i+c,h=t+n*o+u,d=e+r*o+c;return s.push(l,f),s.push(h,d),2}function _(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=Math.atan2(u,c),f=Math.atan2(i-t,o-e);s&&lf&&(f+=2*Math.PI);var h=l,d=f-l,p=Math.abs(d),v=Math.sqrt(u*u+c*c),y=1+(15*p*Math.sqrt(v)/Math.PI>>0),m=d/y;if(h+=m,s){a.push(t,e),a.push(n,r);for(var g=1,b=h;g=0&&a>=0?(e[0]=r,e[1]=i,e[2]=r+o,e[3]=i,e[4]=r+o,e[5]=i+a,e[6]=r,e[7]=i+a,e):e},triangulate:function(t,e,n,r,i,o){var a=0;e[(r*=n)+a]=t[0],e[r+a+1]=t[1],e[r+(a+=n)]=t[2],e[r+a+1]=t[3],e[r+(a+=n)]=t[6],e[r+a+1]=t[7],e[r+(a+=n)]=t[4],e[r+a+1]=t[5],a+=n;var s=r/n;i[o++]=s,i[o++]=s+1,i[o++]=s+2,i[o++]=s+1,i[o++]=s+3,i[o++]=s+2}},T={extension:{type:r.nw.ShapeBuilder,name:"triangle"},build:function(t,e){return e[0]=t.x,e[1]=t.y,e[2]=t.x2,e[3]=t.y2,e[4]=t.x3,e[5]=t.y3,e},triangulate:function(t,e,n,r,i,o){var a=0;e[(r*=n)+a]=t[0],e[r+a+1]=t[1],e[r+(a+=n)]=t[2],e[r+a+1]=t[3],e[r+(a+=n)]=t[4],e[r+a+1]=t[5];var s=r/n;i[o++]=s,i[o++]=s+1,i[o++]=s+2}},O=n(38495);var M=new c.y,R=new l.A;function I(t,e,n,r){var i=e.matrix?t.copyFrom(e.matrix).invert():t.identity();if("local"===e.textureSpace){var o=n.getBounds(R);e.width&&o.pad(e.width);var a=o.x,s=o.y,u=1/o.width,c=1/o.height,l=-a*u,f=-s*c,h=i.a,d=i.b,p=i.c,v=i.d;i.a*=u,i.b*=u,i.c*=c,i.d*=c,i.tx=l*h+f*p+i.tx,i.ty=l*d+f*v+i.ty}else i.translate(e.texture.frame.x,e.texture.frame.y),i.scale(1/e.texture.source.width,1/e.texture.source.height);var y,m,g=e.texture.source.style;return y=e.fill,(null!=(m=O.f)&&"undefined"!==typeof Symbol&&m[Symbol.hasInstance]?m[Symbol.hasInstance](y):y instanceof m)||"clamp-to-edge"!==g.addressMode||(g.addressMode="repeat",g.update()),r&&i.append(M.copyFrom(r).invert()),i}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&("round"===s.join?g+=_(T,O,T-I*N,O-j*N,T-B*N,O-D*N,y,!1)+4:g+=2,y.push(T-B*F,O-D*F),y.push(T+B*N,O+D*N));else{var K=(-I+A)*(-j+O)-(-I+T)*(-j+P),X=(-B+M)*(-D+O)-(-B+T)*(-D+R),J=(U*X-H*K)/q,Q=(W*K-V*X)/q,Z=(J-T)*(J-T)+(Q-O)*(Q-O),$=T+(J-T)*N,tt=O+(Q-O)*N,et=T-(J-T)*F,nt=O-(Q-O)*F,rt=Y?N:F;Z<=Math.min(U*U+V*V,H*H+W*W)+rt*rt*E?"bevel"===s.join||Z/E>C?(Y?(y.push($,tt),y.push(T+I*F,O+j*F),y.push($,tt),y.push(T+B*F,O+D*F)):(y.push(T-I*N,O-j*N),y.push(et,nt),y.push(T-B*N,O-D*N),y.push(et,nt)),g+=2):"round"===s.join?Y?(y.push($,tt),y.push(T+I*F,O+j*F),g+=_(T,O,T+I*F,O+j*F,T+B*F,O+D*F,y,!0)+4,y.push($,tt),y.push(T+B*F,O+D*F)):(y.push(T-I*N,O-j*N),y.push(et,nt),g+=_(T,O,T-I*N,O-j*N,T-B*N,O-D*N,y,!1)+4,y.push(T-B*N,O-D*N),y.push(et,nt)):(y.push($,tt),y.push(et,nt)):(y.push(T-I*N,O-j*N),y.push(T+I*F,O+j*F),"round"===s.join?g+=Y?_(T,O,T+I*F,O+j*F,T+B*F,O+D*F,y,!0)+2:_(T,O,T-I*N,O-j*N,T-B*N,O-D*N,y,!1)+2:"miter"===s.join&&Z/E<=C&&(Y?(y.push(et,nt),y.push(et,nt)):(y.push($,tt),y.push($,tt)),g+=2),y.push(T-B*N,O-D*N),y.push(T+B*F,O+D*F),g+=2)}}A=t[2*(m-2)],P=t[2*(m-2)+1],T=t[2*(m-1)],I=-(P-(O=t[2*(m-1)+1])),j=A-T,I/=L=Math.sqrt(I*I+j*j),j/=L,I*=x,j*=x,y.push(T-I*N,O-j*N),y.push(T+I*F,O+j*F),h||("round"===s.cap?g+=_(T-I*(N-F)*.5,O-j*(N-F)*.5,T-I*N,O-j*N,T+I*F,O+j*F,y,!1)+2:"square"===s.cap&&(g+=S(T,O,I,j,N,F,!1,y)));for(var it=k;it7&&void 0!==arguments[7]?arguments[7]:null,u=0;n*=e,i*=o;for(var c=s.a,l=s.b,f=s.c,h=s.d,d=s.tx,p=s.ty;u=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function f(t){return u(t,a.h)}function h(t){return u(t,o.f)}function d(t,e,n){return t.fill=e,t.color=16777215,t.texture=e.texture,t.matrix=e.transform,c({},n,t)}function p(t,e,n){return e.buildGradient(),t.fill=e,t.color=16777215,t.texture=e.texture,t.matrix=e.transform,t.textureSpace=e.textureSpace,c({},n,t)}function v(t,e){if(void 0===t||null===t)return null;var n={},o=t;return function(t){return r.I.isColorLike(t)}(t)?function(t,e,n){var o=r.I.shared.setValue(null!==e&&void 0!==e?e:0);return t.color=o.toNumber(),t.alpha=1===o.alpha?n.alpha:o.alpha,t.texture=i.x.WHITE,c({},n,t)}(n,t,e):function(t){return u(t,i.x)}(t)?function(t,e,n){return t.texture=e,c({},n,t)}(n,t,e):f(t)?d(n,t,e):h(t)?p(n,t,e):o.fill&&f(o.fill)?d(o,o.fill,e):o.fill&&h(o.fill)?p(o,o.fill,e):function(t,e){var n=c({},e,t),i=r.I.shared.setValue(n.color);return n.alpha*=i.alpha,n.color=i.toNumber(),n}(o,e)}function y(t,e){var n=e.width,r=e.alignment,i=e.miterLimit,o=e.cap,a=e.join,s=e.pixelLine,u=v(t,l(e,["width","alignment","miterLimit","cap","join","pixelLine"]));return u?c({width:n,alignment:r,miterLimit:i,cap:o,join:a,pixelLine:s},u):null}},75822:function(t,e,n){"use strict";n.d(e,{j:function(){return w}});var r=n(64096),i=n(59193),o=n(93409),a=n(18768),s=n(8600);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function y(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var g=function(t){return t&&"undefined"!==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}var w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(y,t);var e,n,s,l=b(y);function y(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.x.EMPTY;u(this,y),d(e,i.x)&&(e={texture:e});var n=e.texture,o=void 0===n?i.x.EMPTY:n,a=e.anchor,s=e.roundPixels,c=e.width,f=e.height,h=v(e,["texture","anchor","roundPixels","width","height"]);return(t=l.call(this,p({label:"Sprite"},h))).renderPipeId="sprite",t.batched=!0,t._visualBounds={minX:0,maxX:1,minY:0,maxY:0},t._anchor=new r.A({_onUpdate:function(){t.onViewUpdate()}}),a?t.anchor=a:o.defaultAnchor&&(t.anchor=o.defaultAnchor),t.texture=o,t.allowChildren=!1,t.roundPixels=null!==s&&void 0!==s&&s,void 0!==c&&(t.width=c),void 0!==f&&(t.height=f),t}return e=y,n=[{key:"texture",get:function(){return this._texture},set:function(t){t||(t=i.x.EMPTY);var e=this._texture;e!==t&&(e&&e.dynamic&&e.off("update",this.onViewUpdate,this),t.dynamic&&t.on("update",this.onViewUpdate,this),this._texture=t,this._width&&this._setWidth(this._width,this._texture.orig.width),this._height&&this._setHeight(this._height,this._texture.orig.height),this.onViewUpdate())}},{key:"visualBounds",get:function(){return(0,o.w)(this._visualBounds,this._anchor,this._texture),this._visualBounds}},{key:"sourceBounds",get:function(){return(0,a.a1)("8.6.1","Sprite.sourceBounds is deprecated, use visualBounds instead."),this.visualBounds}},{key:"updateBounds",value:function(){var t=this._anchor,e=this._texture,n=this._bounds,r=e.orig,i=r.width,o=r.height;n.minX=-t._x*i,n.maxX=n.minX+i,n.minY=-t._y*o,n.maxY=n.minY+o}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f(h(y.prototype),"destroy",this).call(this,t);var e="boolean"===typeof t?t:null===t||void 0===t?void 0:t.texture;if(e){var n="boolean"===typeof t?t:null===t||void 0===t?void 0:t.textureSource;this._texture.destroy(n)}this._texture=null,this._visualBounds=null,this._bounds=null,this._anchor=null}},{key:"anchor",get:function(){return this._anchor},set:function(t){"number"===typeof t?this._anchor.set(t):this._anchor.copyFrom(t)}},{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){this._setWidth(t,this._texture.orig.width),this._width=t}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this._setHeight(t,this._texture.orig.height),this._height=t}},{key:"getSize",value:function(t){return t||(t={}),t.width=Math.abs(this.scale.x)*this._texture.orig.width,t.height=Math.abs(this.scale.y)*this._texture.orig.height,t}},{key:"setSize",value:function(t,e){var n;"object"===typeof t?(e=null!==(n=t.height)&&void 0!==n?n:t.width,t=t.width):null!==e&&void 0!==e||(e=t),void 0!==t&&this._setWidth(t,this._texture.orig.width),void 0!==e&&this._setHeight(e,this._texture.orig.height)}}],s=[{key:"from",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return d(t,i.x)?new y(t):new y(i.x.from(t,e))}}],n&&c(e.prototype,n),s&&c(e,s),y}(s.$)},25442:function(t,e,n){"use strict";n.d(e,{M:function(){return h}});var r=n(54146),i=n(18768);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];for(var e in this.emit("destroy",this),this.removeAllListeners(),this.chars){var n;null===(n=this.chars[e].texture)||void 0===n||n.destroy()}this.chars=null,t&&(this.pages.forEach((function(t){return t.texture.destroy(!0)})),this.pages=null)}}],n&&a(e.prototype,n),r&&a(e,r),u}(r.Z)},48618:function(t,e,n){"use strict";n.d(e,{W:function(){return G}});var r=n(42306),i=n(18768),o=n(69655),a=n(16074),s=n(64404),u=n(79690),c=n(86901),l=n(78279),f=n(59193),h=n(72100),d=n(39406),p=n(3408),v=n(25442);function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nb&&(l=0,(d+=y)+(y=M)>w)){s.update();var R=this._nextPage();o=R.canvasAndContext.canvas,a=R.canvasAndContext.context,s=R.texture.source,d=0}var I=T/p-(null!==(A=null===(_=c.dropShadow)||void 0===_?void 0:_.distance)&&void 0!==A?A:0)-(null!==(P=null===(k=c._stroke)||void 0===k?void 0:k.width)&&void 0!==P?P:0);if(this.chars[x]={id:x.codePointAt(0),xOffset:-this._padding,yOffset:-this._padding,xAdvance:I,kerning:{}},m){this._drawGlyph(a,E,l+v,d+v,p,c);var j=s.width*p,B=s.height*p,D=new u.A(l/j*s.width,d/B*s.height,O/j*s.width,M/B*s.height);this.chars[x].texture=new f.x({source:s,frame:D}),l+=Math.ceil(O)}}s.update(),this._currentX=l,this._currentY=d,this._skipKerning&&this._applyKerning(n,a)}}},{key:"pageTextures",get:function(){return(0,i.a1)(i.PD,"BitmapFont.pageTextures is deprecated, please use BitmapFont.pages instead."),this.pages}},{key:"_applyKerning",value:function(t,e){for(var n=this._measureCache,r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);n50&&(0,o.Z)("BitmapText","You have dynamically created ".concat(N,' bitmap fonts, this can be inefficient. Try pre installing your font styles using `BitmapFont.install({name:"style1", style})`')),u.once("destroy",(function(){N--,r.C.remove(i)})),r.C.set(i,u)}var c=r.C.get(i);return null===(n=c.ensureCharacters)||void 0===n||n.call(c,t),c}},{key:"getLayout",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.getFont(t,e);return(0,M._)(L(t),e,r,n)}},{key:"measureText",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.getLayout(t,e,n)}},{key:"install",value:function(){for(var t=arguments.length,e=new Array(t),n=0;nd?(l(),c(u),y||o.charPositions.push(0)):(u.start=o.width,c(u),y||o.charPositions.push(0)),"\r"===v||"\n"===v)0!==o.width&&l();else if(!y){var g=m.xAdvance+(m.kerning[a]||0)+h;o.width+=g,o.spaceWidth=g,o.spacesIndex.push(o.charPositions.length),o.chars.push(v)}}else{var b=m.kerning[a]||0,w=m.xAdvance+b+h;u.positions[u.index++]=u.width+b,u.chars.push(v),u.width+=w}a=v}return l(),"center"===e.align?function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};f(this,d),t=o.call(this),k(e);var n=y({},d.defaultTextStyle,e);for(var r in n){var i=r;t[i]=n[r]}return t.update(),t}return e=d,n=[{key:"align",get:function(){return this._align},set:function(t){this._align=t,this.update()}},{key:"breakWords",get:function(){return this._breakWords},set:function(t){this._breakWords=t,this.update()}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(t){this._dropShadow=null!==t&&"object"===typeof t?this._createProxy(y({},d.defaultDropShadow,t)):t?this._createProxy(y({},d.defaultDropShadow)):null,this.update()}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(t){this._fontFamily=t,this.update()}},{key:"fontSize",get:function(){return this._fontSize},set:function(t){this._fontSize="string"===typeof t?parseInt(t,10):t,this.update()}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(t){this._fontStyle=t.toLowerCase(),this.update()}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(t){this._fontVariant=t,this.update()}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(t){this._fontWeight=t,this.update()}},{key:"leading",get:function(){return this._leading},set:function(t){this._leading=t,this.update()}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(t){this._letterSpacing=t,this.update()}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(t){this._lineHeight=t,this.update()}},{key:"padding",get:function(){return this._padding},set:function(t){this._padding=t,this.update()}},{key:"trim",get:function(){return this._trim},set:function(t){this._trim=t,this.update()}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(t){this._textBaseline=t,this.update()}},{key:"whiteSpace",get:function(){return this._whiteSpace},set:function(t){this._whiteSpace=t,this.update()}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(t){this._wordWrap=t,this.update()}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth=t,this.update()}},{key:"fill",get:function(){return this._originalFill},set:function(t){if(t!==this._originalFill){if(this._originalFill=t,this._isFillStyle(t)){var e=this;this._originalFill=this._createProxy(y({},u.g.defaultFillStyle,t),(function(){e._fill=(0,c.f)(y({},e._originalFill),u.g.defaultFillStyle)}))}this._fill=(0,c.f)(0===t?"black":t,u.g.defaultFillStyle),this.update()}}},{key:"stroke",get:function(){return this._originalStroke},set:function(t){if(t!==this._originalStroke){if(this._originalStroke=t,this._isFillStyle(t)){var e=this;this._originalStroke=this._createProxy(y({},u.g.defaultStrokeStyle,t),(function(){e._stroke=(0,c.m)(y({},e._originalStroke),u.g.defaultStrokeStyle)}))}this._stroke=(0,c.m)(t,u.g.defaultStrokeStyle),this.update()}}},{key:"_generateKey",value:function(){return this._styleKey=(0,l.L)(this),this._styleKey}},{key:"update",value:function(){this._styleKey=null,this.emit("update",this)}},{key:"reset",value:function(){var t=d.defaultTextStyle;for(var e in t)this[e]=t[e]}},{key:"styleKey",get:function(){return this._styleKey||this._generateKey()}},{key:"clone",value:function(){return new d({align:this.align,breakWords:this.breakWords,dropShadow:this._dropShadow?y({},this._dropShadow):null,fill:this._fill,fontFamily:this.fontFamily,fontSize:this.fontSize,fontStyle:this.fontStyle,fontVariant:this.fontVariant,fontWeight:this.fontWeight,leading:this.leading,letterSpacing:this.letterSpacing,lineHeight:this.lineHeight,padding:this.padding,stroke:this._stroke,textBaseline:this.textBaseline,whiteSpace:this.whiteSpace,wordWrap:this.wordWrap,wordWrapWidth:this.wordWrapWidth})}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.removeAllListeners();var e="boolean"===typeof t?t:null===t||void 0===t?void 0:t.texture;if(e){var n,r,i,o,a="boolean"===typeof t?t:null===t||void 0===t?void 0:t.textureSource;(null===(n=this._fill)||void 0===n?void 0:n.texture)&&this._fill.texture.destroy(a),(null===(r=this._originalFill)||void 0===r?void 0:r.texture)&&this._originalFill.texture.destroy(a),(null===(i=this._stroke)||void 0===i?void 0:i.texture)&&this._stroke.texture.destroy(a),(null===(o=this._originalStroke)||void 0===o?void 0:o.texture)&&this._originalStroke.texture.destroy(a)}this._fill=null,this._stroke=null,this.dropShadow=null,this._originalStroke=null,this._originalFill=null}},{key:"_createProxy",value:function(t,e){var n=this;return new Proxy(t,{set:function(t,r,i){return t[r]=i,null===e||void 0===e||e(r,i),n.update(),!0}})}},{key:"_isFillStyle",value:function(t){return null!==(null!==t&&void 0!==t?t:null)&&!(i.I.isColorLike(t)||v(t,a.f)||v(t,s.h))}}],n&&h(e.prototype,n),r&&h(e,r),d}(r.Z);S.defaultDropShadow={alpha:1,angle:Math.PI/6,blur:0,color:"black",distance:5},S.defaultTextStyle={align:"left",breakWords:!1,dropShadow:null,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,padding:0,stroke:null,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};var _=S;function k(t){var e=t;if("boolean"===typeof e.dropShadow&&e.dropShadow){var n,r,u,c,l,f=_.defaultDropShadow;t.dropShadow={alpha:null!==(n=e.dropShadowAlpha)&&void 0!==n?n:f.alpha,angle:null!==(r=e.dropShadowAngle)&&void 0!==r?r:f.angle,blur:null!==(u=e.dropShadowBlur)&&void 0!==u?u:f.blur,color:null!==(c=e.dropShadowColor)&&void 0!==c?c:f.color,distance:null!==(l=e.dropShadowDistance)&&void 0!==l?l:f.distance}}if(void 0!==e.strokeThickness){(0,o.a1)(o.PD,"strokeThickness is now a part of stroke");var h=e.stroke,d={};if(i.I.isColorLike(h))d.color=h;else if(v(h,a.f)||v(h,s.h))d.fill=h;else{if(!Object.hasOwnProperty.call(h,"color")&&!Object.hasOwnProperty.call(h,"fill"))throw new Error("Invalid stroke value.");d=h}t.stroke=y({},d,{width:e.strokeThickness})}if(Array.isArray(e.fillGradientStops)){var p;(0,o.a1)(o.PD,"gradient fill is now a fill pattern: `new FillGradient(...)`"),null==t.fontSize?t.fontSize=_.defaultTextStyle.fontSize:p="string"===typeof t.fontSize?parseInt(t.fontSize,10):t.fontSize;var m=new a.f({start:{x:0,y:0},end:{x:0,y:1.7*(p||0)}}),g=e.fillGradientStops.map((function(t){return i.I.shared.setValue(t).toNumber()}));g.forEach((function(t,e){var n=e/(g.length-1);m.addColorStop(n,t)})),t.fill={fill:m}}}},72100:function(t,e,n){"use strict";n.d(e,{c:function(){return l}});var r=n(56968),i=n(39406);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:" ",r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t._canvas,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.wordWrap,s="".concat(n,":").concat(r.styleKey);if(t._measurementCache[s])return t._measurementCache[s];var u=(0,i.M)(r),c=t.measureFont(u);0===c.fontSize&&(c.fontSize=r.fontSize,c.ascent=r.fontSize);var l=t.__context;l.font=u;for(var f=a?t._wordWrap(n,r,o):n,h=f.split(/(?:\r\n|\r|\n)/),d=new Array(h.length),p=0,v=0;v0)if(i)a-=n,u-=n;else{var c=(t.graphemeSegmenter(e).length-1)*n;a+=c,u+=c}return Math.max(a,u)}},{key:"_wordWrap",value:function(e,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t._canvas,i=r.getContext("2d",u),o=0,a="",s="",c=Object.create(null),l=n.letterSpacing,f=n.whiteSpace,h=t._collapseSpaces(f),d=t._collapseNewlines(f),p=!h,v=n.wordWrapWidth+l,y=t._tokenize(e),m=0;mv)if(""!==a&&(s+=t._addLine(a),a="",o=0),t.canBreakWords(g,n.breakWords))for(var _=t.wordWrapSplit(g),k=0;k<_.length;k++){for(var x=_[k],E=x,C=1;_[k+C];){var A=_[k+C];if(t.canBreakChars(E,A,g,k,n.breakWords))break;x+=A,E=A,C++}k+=C-1;var P=t._getFromCache(x,l,c,i);P+o>v&&(s+=t._addLine(a),p=!1,a="",o=0),a+=x,o+=P}else{a.length>0&&(s+=t._addLine(a),a="",o=0);var T=m===y.length-1;s+=t._addLine(g,!T),p=!1,a="",o=0}else S+o>v&&(p=!1,s+=t._addLine(a),a="",o=0),(a.length>0||!t.isBreakingSpace(g)||p)&&(a+=g,o+=S)}return s+=t._addLine(a,!1)}},{key:"_addLine",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=t._trimRight(e),e=n?"".concat(e,"\n"):e}},{key:"_getFromCache",value:function(e,n,r,i){var o=r[e];return"number"!==typeof o&&(o=t._measureText(e,n,i)+n,r[e]=o),o}},{key:"_collapseSpaces",value:function(t){return"normal"===t||"pre-line"===t}},{key:"_collapseNewlines",value:function(t){return"normal"===t}},{key:"_trimRight",value:function(e){if("string"!==typeof e)return"";for(var n=e.length-1;n>=0;n--){var r=e[n];if(!t.isBreakingSpace(r))break;e=e.slice(0,-1)}return e}},{key:"_isNewline",value:function(e){return"string"===typeof e&&t._newlines.includes(e.charCodeAt(0))}},{key:"isBreakingSpace",value:function(e,n){return"string"===typeof e&&t._breakingSpaces.includes(e.charCodeAt(0))}},{key:"_tokenize",value:function(e){var n=[],r="";if("string"!==typeof e)return n;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"";e?delete t._fonts[e]:t._fonts={}}},{key:"_canvas",get:function(){if(!t.__canvas){var e;try{var n=new OffscreenCanvas(0,0),i=n.getContext("2d",u);if(null===i||void 0===i?void 0:i.measureText)return t.__canvas=n,n;e=r.z.get().createCanvas()}catch(o){e=r.z.get().createCanvas()}e.width=e.height=10,t.__canvas=e}return t.__canvas}},{key:"_context",get:function(){return t.__context||(t.__context=t._canvas.getContext("2d",u)),t.__context}}],(n=null)&&a(e.prototype,n),o&&a(e,o),t}();c.METRICS_STRING="|\xc9q\xc5",c.BASELINE_SYMBOL="M",c.BASELINE_MULTIPLIER=1.4,c.HEIGHT_MULTIPLIER=2,c.graphemeSegmenter=function(){if("function"===typeof(null===Intl||void 0===Intl?void 0:Intl.Segmenter)){var t=new Intl.Segmenter;return function(e){return s(t.segment(e)).map((function(t){return t.segment}))}}return function(t){return s(t)}}(),c.experimentalLetterSpacing=!1,c._fonts={},c._newlines=[10,13],c._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288],c._measurementCache={};var l=c},39406:function(t,e,n){"use strict";n.d(e,{M:function(){return i}});var r=["serif","sans-serif","monospace","cursive","fantasy","system-ui"];function i(t){var e="number"===typeof t.fontSize?"".concat(t.fontSize,"px"):t.fontSize,n=t.fontFamily;Array.isArray(t.fontFamily)||(n=t.fontFamily.split(","));for(var i=n.length-1;i>=0;i--){var o=n[i].trim();/([\"\'])[^\'\"]+\1/.test(o)||r.includes(o)||(o='"'.concat(o,'"')),n[i]=o}return"".concat(t.fontStyle," ").concat(t.fontVariant," ").concat(t.fontWeight," ").concat(e," ").concat(n.join(","))}},3408:function(t,e,n){"use strict";n.d(e,{m:function(){return f}});var r=n(64404),i=n(81005),o=n(59193),a=n(69655),s=n(38495),u=n(17274);function c(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var l=1e5;function f(t,e,n){var f,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.texture===o.x.WHITE&&!t.fill)return r.I.shared.setValue(t.color).setAlpha(null!==(f=t.alpha)&&void 0!==f?f:1).toHexa();if(!t.fill){var d=e.createPattern(t.texture.source.resource,"repeat"),p=t.matrix.copyTo(i.y.shared);return p.scale(t.texture.frame.width,t.texture.frame.height),d.setTransform(p),d}if(c(t.fill,u.h)){var v=t.fill,y=e.createPattern(v.texture.source.resource,"repeat"),m=v.transform.copyTo(i.y.shared);return m.scale(v.texture.frame.width,v.texture.frame.height),y.setTransform(m),y}if(c(t.fill,s.f)){var g,b=t.fill,w="linear"===b.type,S="local"===b.textureSpace,_=1,k=1;S&&n&&(_=n.width+h,k=n.height+h);var x=!1;if(w){var E=b.start,C=b.end;g=e.createLinearGradient(E.x*_,E.y*k,C.x*_,C.y*k),x=Math.abs(C.x-E.x)=e.minX&&n<=e.maxX&&r>=e.minY&&r<=e.maxY}},{key:"onViewUpdate",value:function(){if(this._didViewChangeTick++,this._boundsDirty=!0,!this.didViewUpdate){this.didViewUpdate=!0;var t=this.renderGroup||this.parentRenderGroup;t&&t.onChildViewUpdate(this)}}},{key:"destroy",value:function(t){a(s(l.prototype),"destroy",this).call(this,t),this._bounds=null}},{key:"collectRenderablesSimple",value:function(t,e,n){var r=e.renderPipes,i=e.renderableGC;r.blendMode.setBlendMode(this,this.groupBlendMode,t),r[this.renderPipeId].addRenderable(this,t),i.addRenderable(this),this.didViewUpdate=!1;for(var o=this.children,a=o.length,s=0;s0&&void 0!==arguments[0]&&arguments[0];for(var n in this.textures)this.textures[n].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&(null===(t=this._texture)||void 0===t||t.destroy(),this.textureSource.destroy()),this._texture=null,this.textureSource=null,this.linkedSheets=[]}}],n&&h(e.prototype,n),r&&h(e,r),t}();d.BATCH_SIZE=1e3;var p=d;function v(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function y(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){v(o,r,i,a,s,"next",t)}function s(t){v(o,r,i,a,s,"throw",t)}a(void 0)}))}}function m(t,e){return null!=e&&"undefined"!==typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}var g=["jpg","png","jpeg","avif","webp","basis","etc2","bc7","bc6h","bc5","bc4","bc3","bc2","bc1","eac","astc"];function b(t,e,n){var r={};if(t.forEach((function(t){r[t]=e})),Object.keys(e.textures).forEach((function(t){r[t]=e.textures[t]})),!n){var i=l.E.dirname(t[0]);e.linkedSheets.forEach((function(t,n){var o=b(["".concat(i,"/").concat(e.data.meta.related_multi_packs[n])],t,!0);Object.assign(r,o)}))}return r}var w={extension:r.nw.Asset,cache:{test:function(t){return m(t,p)},getCacheableAssets:function(t,e){return b(t,e,!1)}},resolver:{extension:{type:r.nw.ResolveParser,name:"resolveSpritesheet"},test:function(t){var e=t.split("?")[0].split("."),n=e.pop(),r=e.pop();return"json"===n&&g.includes(r)},parse:function(t){var e,n,r=t.split(".");return{resolution:parseFloat(null!==(n=null===(e=s.H.RETINA_PREFIX.exec(t))||void 0===e?void 0:e[1])&&void 0!==n?n:"1"),format:r[r.length-2],src:t}}},loader:{name:"spritesheetLoader",extension:{type:r.nw.LoadParser,priority:a.Q.Normal,name:"spritesheetLoader"},testParse:function(t,e){return y(o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",".json"===l.E.extname(e.src).toLowerCase()&&!!t.frames);case 1:case"end":return n.stop()}}),n)})))()},parse:function(t,e,n){return y(o().mark((function r(){var i,a,s,f,h,d,v,y,g,b,w,S,_,k,x,E,C,A,P,T,O,M;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=null!==(a=null===e||void 0===e?void 0:e.data)&&void 0!==a?a:{},f=s.texture,h=s.imageFilename,d=s.textureOptions,(v=l.E.dirname(e.src))&&v.lastIndexOf("/")!==v.length-1&&(v+="/"),!m(f,c.x)){r.next=10;break}y=f,r.next=15;break;case 10:return g=(0,u.u)(v+(null!==h&&void 0!==h?h:t.meta.image),e.src),r.next=13,n.load([{src:g,data:d}]);case 13:b=r.sent,y=b[g];case 15:return w=new p(y.source,t),r.next=18,w.parse();case 18:if(S=null===t||void 0===t||null===(i=t.meta)||void 0===i?void 0:i.related_multi_packs,!Array.isArray(S)){r.next=56;break}_=[],k=!0,x=!1,E=void 0,r.prev=22,C=S[Symbol.iterator]();case 24:if(k=(A=C.next()).done){r.next=37;break}if("string"===typeof(P=A.value)){r.next=29;break}return r.abrupt("continue",34);case 29:if(O=v+P,!(null===(T=e.data)||void 0===T?void 0:T.ignoreMultiPack)){r.next=32;break}return r.abrupt("continue",34);case 32:O=(0,u.u)(O,e.src),_.push(n.load({src:O,data:{textureOptions:d,ignoreMultiPack:!0}}));case 34:k=!0,r.next=24;break;case 37:r.next=43;break;case 39:r.prev=39,r.t0=r.catch(22),x=!0,E=r.t0;case 43:r.prev=43,r.prev=44,k||null==C.return||C.return();case 46:if(r.prev=46,!x){r.next=49;break}throw E;case 49:return r.finish(46);case 50:return r.finish(43);case 51:return r.next=53,Promise.all(_);case 53:M=r.sent,w.linkedSheets=M,M.forEach((function(t){t.linkedSheets=[w].concat(w.linkedSheets.filter((function(e){return e!==t})))}));case 56:return r.abrupt("return",w);case 57:case"end":return r.stop()}}),r,null,[[22,39,43,51],[44,,46,50]])})))()},unload:function(t,e,n){return y(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.unload(t.textureSource._sourceOrigin);case 2:t.destroy(!1);case 3:case"end":return e.stop()}}),e)})))()}}};r.Rw.add(w)},29453:function(t,e,n){"use strict";n.d(e,{v:function(){return c}});var r=n(95024);function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];i(this,t),this.next=null,this.previous=null,this._destroyed=!1,this._fn=e,this._context=n,this.priority=r,this._once=o}var e,n,r;return e=t,n=[{key:"match",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this._fn===t&&this._context===e}},{key:"emit",value:function(t){this._fn&&(this._context?this._fn.call(this._context,t):this._fn(t));var e=this.next;return this._once&&this.destroy(!0),this._destroyed&&(this.next=null),e}},{key:"connect",value:function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}},{key:"destroy",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this._fn=null,this._context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e}}],n&&o(e.prototype,n),r&&o(e,r),t}();function s(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:r.u.NORMAL;return this._addListener(new a(t,e,n))}},{key:"addOnce",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.u.NORMAL;return this._addListener(new a(t,e,n,!0))}},{key:"_addListener",value:function(t){var e=this._head.next,n=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(n);break}n=e,e=e.next}t.previous||t.connect(n)}else t.connect(n);return this._startIfPossible(),this}},{key:"remove",value:function(t,e){for(var n=this._head.next;n;)n=n.match(t,e)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this}},{key:"count",get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t}},{key:"start",value:function(){this.started||(this.started=!0,this._requestIfNeeded())}},{key:"stop",value:function(){this.started&&(this.started=!1,this._cancelIfNeeded())}},{key:"destroy",value:function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}}},{key:"update",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now();if(n>this.lastTime){if((e=this.elapsedMS=n-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var r=n-this._lastFrame|0;if(r=i||0===n)){var o=i-(n=e+n>i?i-e:n);for(r=e;r0&&void 0!==arguments[0]?arguments[0]:"default";return void 0===r[t]&&(r[t]=-1),++r[t]}},93409:function(t,e,n){"use strict";function r(t,e,n){var r=n.orig,i=r.width,o=r.height,a=n.trim;if(a){var s=a.width,u=a.height;t.minX=a.x-e._x*i,t.maxX=t.minX+s,t.minY=a.y-e._y*o,t.maxY=t.minY+u}else t.minX=-e._x*i,t.maxX=t.minX+i,t.minY=-e._y*o,t.maxY=t.minY+o}n.d(e,{w:function(){return r}})},5214:function(t,e,n){"use strict";n.d(e,{C:function(){return c},l:function(){return u}});var r=n(92846),i=n(21422);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:3;if(!r[e]){var i=(new Error).stack;"undefined"===typeof i?console.warn("PixiJS Deprecation Warning: ","".concat(e,"\nDeprecated since v").concat(t)):(i=i.split("\n").splice(n).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6","".concat(e,"\nDeprecated since v").concat(t)),console.warn(i),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ","".concat(e,"\nDeprecated since v").concat(t)),console.warn(i))),r[e]=!0}}},69655:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n]*?)$/i.test(t)},isBlobUrl:function(t){return t.startsWith("blob:")},hasProtocol:function(t){return/^[^/:]+:/.test(this.toPosix(t))},getProtocol:function(t){i(t),t=this.toPosix(t);var e=/^file:\/\/\//.exec(t);if(e)return e[0];var n=/^[^/:]+:\/{0,2}/.exec(t);return n?n[0]:""},toAbsolute:function(t,e,n){if(i(t),this.isDataUrl(t)||this.isBlobUrl(t))return t;var s=o(this.toPosix(null!==e&&void 0!==e?e:r.z.get().getBaseUrl())),u=o(this.toPosix(null!==n&&void 0!==n?n:this.rootname(s)));return(t=this.toPosix(t)).startsWith("/")?a.join(u,t.slice(1)):this.isAbsolute(t)?t:this.join(s,t)},normalize:function(t){if(i(t),0===t.length)return".";if(this.isDataUrl(t)||this.isBlobUrl(t))return t;var e="",n=(t=this.toPosix(t)).startsWith("/");this.hasProtocol(t)&&(e=this.rootname(t),t=t.slice(e.length));var r=t.endsWith("/");return(t=function(t,e){for(var n="",r=0,i=-1,o=0,a=-1,s=0;s<=t.length;++s){if(s2){var u=n.lastIndexOf("/");if(u!==n.length-1){-1===u?(n="",r=0):r=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,o=0;continue}}else if(2===n.length||1===n.length){n="",r=0,i=s,o=0;continue}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/".concat(t.slice(i+1,s)):n=t.slice(i+1,s),r=s-i-1;i=s,o=0}else 46===a&&-1!==o?++o:o=-1}return n}(t,!1)).length>0&&r&&(t+="/"),n?"/".concat(t):e+t},isAbsolute:function(t){return i(t),t=this.toPosix(t),!!this.hasProtocol(t)||t.startsWith("/")},join:function(){for(var t=arguments.length,e=new Array(t),n=0;n0)if(void 0===r)r=a;else{var s,u=null!==(s=e[o-1])&&void 0!==s?s:"";this.joinExtensions.includes(this.extname(u).toLowerCase())?r+="/../".concat(a):r+="/".concat(a)}}return void 0===r?".":this.normalize(r)},dirname:function(t){if(i(t),0===t.length)return".";for(var e=(t=this.toPosix(t)).charCodeAt(0),n=47===e,r=-1,o=!0,a=this.getProtocol(t),s=t,u=(t=t.slice(a.length)).length-1;u>=1;--u)if(47===(e=t.charCodeAt(u))){if(!o){r=u;break}}else o=!1;return-1===r?n?"/":this.isUrl(s)?a+t:a:n&&1===r?"//":a+t.slice(0,r)},rootname:function(t){i(t);var e="";if(e=(t=this.toPosix(t)).startsWith("/")?"/":this.getProtocol(t),this.isUrl(t)){var n=t.indexOf("/",e.length);(e=-1!==n?t.slice(0,n):t).endsWith("/")||(e+="/")}return e},basename:function(t,e){i(t),e&&i(e),t=o(this.toPosix(t));var n,r=0,a=-1,s=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var u=e.length-1,c=-1;for(n=t.length-1;n>=0;--n){var l=t.charCodeAt(n);if(47===l){if(!s){r=n+1;break}}else-1===c&&(s=!1,c=n+1),u>=0&&(l===e.charCodeAt(u)?-1===--u&&(a=n):(u=-1,a=c))}return r===a?a=c:-1===a&&(a=t.length),t.slice(r,a)}for(n=t.length-1;n>=0;--n)if(47===t.charCodeAt(n)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1);return-1===a?"":t.slice(r,a)},extname:function(t){i(t);for(var e=-1,n=0,r=-1,a=!0,s=0,u=(t=o(this.toPosix(t))).length-1;u>=0;--u){var c=t.charCodeAt(u);if(47!==c)-1===r&&(a=!1,r=u+1),46===c?-1===e?e=u:1!==s&&(s=1):-1!==e&&(s=-1);else if(!a){n=u+1;break}}return-1===e||-1===r||0===s||1===s&&e===r-1&&e===n+1?"":t.slice(e,r)},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var n,r=(t=o(this.toPosix(t))).charCodeAt(0),a=this.isAbsolute(t);e.root=this.rootname(t),n=a||this.hasProtocol(t)?1:0;for(var s=-1,u=0,c=-1,l=!0,f=t.length-1,h=0;f>=n;--f)if(47!==(r=t.charCodeAt(f)))-1===c&&(l=!1,c=f+1),46===r?-1===s?s=f:1!==h&&(h=1):-1!==s&&(h=-1);else if(!l){u=f+1;break}return-1===s||-1===c||0===h||1===h&&s===c-1&&s===u+1?-1!==c&&(e.base=e.name=0===u&&a?t.slice(1,c):t.slice(u,c)):(0===u&&a?(e.name=t.slice(1,s),e.base=t.slice(1,c)):(e.name=t.slice(u,s),e.base=t.slice(u,c)),e.ext=t.slice(s,c)),e.dir=this.dirname(t),e},sep:"/",delimiter:":",joinExtensions:[".html"]}},71759:function(t,e,n){"use strict";function r(t,e){for(var n=0;n0?this._pool[--this._index]:new this._classType).init)||void 0===e||e.call(n,t),n}},{key:"return",value:function(t){var e;null===(e=t.reset)||void 0===e||e.call(t),this._pool[this._index++]=t}},{key:"totalSize",get:function(){return this._count}},{key:"totalFree",get:function(){return this._index}},{key:"totalUsed",get:function(){return this._count-this._index}},{key:"clear",value:function(){this._pool.length=0,this._index=0}}])&&r(e.prototype,n),i&&r(e,i),t}()},30466:function(t,e,n){"use strict";n.d(e,{u:function(){return o}});var r=n(71759);function i(t,e){for(var n=0;nl;)if((c=s[l++])!==c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},66918:function(t,e,n){"use strict";var r=n(69283),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},59682:function(t,e,n){"use strict";var r=n(54538),i=n(30892),o=n(92586),a=n(85816);t.exports=function(t,e,n){for(var s=i(e),u=a.f,c=o.f,l=0;l0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},68072:function(t,e,n){"use strict";var r=n(48171),i=n(92586).f,o=n(1925),a=n(32481),s=n(19205),u=n(59682),c=n(76730);t.exports=function(t,e){var n,l,f,h,d,p=t.target,v=t.global,y=t.stat;if(n=v?r:y?r[p]||s(p,{}):r[p]&&r[p].prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(v?l:p+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},977:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},2426:function(t,e,n){"use strict";var r=n(977);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8670:function(t,e,n){"use strict";var r=n(2426),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},91239:function(t,e,n){"use strict";var r=n(91882),i=n(54538),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},69283:function(t,e,n){"use strict";var r=n(2426),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},25667:function(t,e,n){"use strict";var r=n(48171),i=n(12538),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},14538:function(t,e,n){"use strict";var r=n(78377),i=n(57958);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},48171:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},54538:function(t,e,n){"use strict";var r=n(69283),i=n(44689),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},33604:function(t){"use strict";t.exports={}},70214:function(t,e,n){"use strict";var r=n(25667);t.exports=r("document","documentElement")},24650:function(t,e,n){"use strict";var r=n(91882),i=n(977),o=n(32658);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8207:function(t,e,n){"use strict";var r=n(69283),i=n(977),o=n(66918),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},65309:function(t,e,n){"use strict";var r=n(69283),i=n(12538),o=n(46947),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},49591:function(t,e,n){"use strict";var r,i,o,a=n(23851),s=n(48171),u=n(1829),c=n(1925),l=n(54538),f=n(46947),h=n(78112),d=n(33604),p="Object already initialized",v=s.TypeError,y=s.WeakMap;if(a||f.state){var m=f.state||(f.state=new y);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new v(p);return e.facade=t,m.set(t,e),e},i=function(t){return m.get(t)||{}},o=function(t){return m.has(t)}}else{var g=h("state");d[g]=!0,r=function(t,e){if(l(t,g))throw new v(p);return e.facade=t,c(t,g,e),e},i=function(t){return l(t,g)?t[g]:{}},o=function(t){return l(t,g)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return n}}}},12538:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},76730:function(t,e,n){"use strict";var r=n(977),i=n(12538),o=/#|\.prototype\./,a=function(t,e){var n=u[s(t)];return n===l||n!==c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},57958:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},1829:function(t,e,n){"use strict";var r=n(12538);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},75001:function(t){"use strict";t.exports=!1},75172:function(t,e,n){"use strict";var r=n(25667),i=n(12538),o=n(54107),a=n(63941),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},26474:function(t,e,n){"use strict";var r=n(24518);t.exports=function(t){return r(t.length)}},82620:function(t,e,n){"use strict";var r=n(69283),i=n(977),o=n(12538),a=n(54538),s=n(91882),u=n(91239).CONFIGURABLE,c=n(65309),l=n(49591),f=l.enforce,h=l.get,d=String,p=Object.defineProperty,v=r("".slice),y=r("".replace),m=r([].join),g=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===v(d(e),0,7)&&(e="["+y(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=f(t);return a(r,"source")||(r.source=m(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||c(this)}),"toString")},33540:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},25609:function(t,e,n){"use strict";var r,i=n(82055),o=n(14743),a=n(29194),s=n(33604),u=n(70214),c=n(32658),l=n(78112),f=l("IE_PROTO"),h=function(){},d=function(t){return"