tentarcles-cli-bin 1.0.3 ā 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ttc.js +1 -1
package/ttc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var __webpack_modules__={2127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AuthService=void 0;const n=r(4868);const i=r(6796);const o=r(3836);const s="ttc_app_fb239d41c8f9463586e0cadcb6326c15";const a="http://localhost:3000/oauth/callback";const u="chat";class AuthService{constructor(e){this.tokenManager=new i.TokenManager;this.userClient=new n.UserRPCClient(e,(async()=>{const e=this.tokenManager.getUserToken();return e||""}))}async login(){var e;try{let t=await o.MenuSystem.showInput({message:"Email:",validate:e=>e.includes("@")||"Invalid email format"});let r=await o.MenuSystem.showInput({message:"Password:",validate:e=>e.length>0||"Password required"});console.log("\nš Logging in...");const n=await this.userClient.Auth.signin(t,r);if(n.status==="error"){throw new Error(n.data||"Authentication failed: Invalid credentials")}const i=(e=n.data)===null||e===void 0?void 0:e.token;if(!i){throw new Error("No token received from server")}this.tokenManager.setUserToken(i);console.log("ā
Login successful!\n");return i}catch(e){throw new Error(e instanceof Error?e.message:"Authentication failed: Invalid credentials")}}async selectAssistant(){try{console.log("š Fetching your assistants...\n");const e=await this.userClient.Assistant.fetchAssistants();if(e.status==="error"||!e.data||e.data.length===0){throw new Error("No assistants found. Please create an assistant first.")}const t=e.data;const r=t.map((e=>({name:`${e.name} (ID: ${e.id})`,value:e.id})));const n=await o.MenuSystem.show({title:"Select Assistant",message:"Choose an assistant to use for chat:",choices:r});if(!n){throw new Error("No assistant selected")}return n}catch(e){throw new Error(e instanceof Error?e.message:"Failed to fetch assistants")}}async setupChatAccess(e){var t,r;try{console.log("\nš Setting up chat access...");const n=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);const i=await this.userClient.AppOAuth.generateAuthorizationUrl(s,a,u,n);if(i.status==="error"){throw new Error("Failed to generate authorization URL")}const o=await this.userClient.AppOAuth.handleAuthorizationCallback(s,a,e,n,true,u);if(o.status==="error"||!((t=o.data)===null||t===void 0?void 0:t.authorizationCode)){console.log(o);throw new Error("OAuth flow failed: Authorization denied")}const c=o.data.authorizationCode;const l=await this.userClient.AppOAuth.exchangeCodeForToken(c,s,a);if(l.status==="error"||!((r=l.data)===null||r===void 0?void 0:r.accessToken)){throw new Error("OAuth flow failed: Unable to get access token")}const f=l.data.accessToken;this.tokenManager.setChatToken(f);console.log("ā
Chat access configured!\n");return f}catch(e){throw new Error(e instanceof Error?e.message:"OAuth flow failed: Please try again")}}async authenticate(e,t){try{e=e?e:await this.login();const r=await this.selectAssistant();const n=t?t:await this.setupChatAccess(r);return{userToken:e,chatToken:n}}catch(e){throw e}}async verifyTokens(){var e;try{const t=this.tokenManager.getChatToken();if(!t){return false}const r=await this.userClient.AppOAuth.validateToken(t);return r.status==="success"&&((e=r.data)===null||e===void 0?void 0:e.valid)===true}catch(e){return false}}}t.AuthService=AuthService},774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Chat=void 0;const n=r(137);const i=r(8889);const o=r(7520);const s=r(6313);const a=r(8546);const u=r(5243);const c=r(7041);const l=r(498);const f=r(3836);const d=r(3729);(0,i.config)();class Chat{constructor(e,t,r,i){this.current_user="";this.conversation_id="";this.isAwaitingPermission=false;this.isWaitingForResponse=false;this.pendingPermissions=[];this.conversation_id=t;this.spinner=new d.Spinner;this.current_user=this.get_current_user();n.ttc_ai.init(e,i);this.commandRegistry=new o.CommandRegistry;this.registerCommands()}registerCommands(){this.commandRegistry.register(s.chatCommand);this.commandRegistry.register(a.navCommand);this.commandRegistry.register(u.helpCommand);this.commandRegistry.register(c.logoutCommand);this.commandRegistry.register(c.authStatusCommand);this.commandRegistry.register(s.seturlCommand);this.commandRegistry.register(l.permissionsCommand)}get_current_user(){const e=r(857);const t=e.userInfo().username;return t}async speakToUser(e){this.spinner.stop();this.isWaitingForResponse=false;console.log(`\n[ttcAI] š¤: ${e}\n`)}async start(){console.log(`Connected to ${n.ttc_ai.ai.url}. Type /help for commands or /exit to quit.`);process.on("SIGINT",(()=>{console.log("\n\nGoodbye! š\n");process.exit(0)}));n.ttc_ai.subscribe("permission",(async e=>{this.spinner.stop();const{id:t,func:r}=e;const i=t.includes("sentinel");if(i){this.pendingPermissions.push({id:t,func:r,timestamp:new Date});console.log(`\nā ļø [Permission pending] Function: ${r.function}`);console.log(` Type /permissions to review and approve (${this.pendingPermissions.length} pending)\n`)}else{this.isAwaitingPermission=true;const e=await this.askForPermission(r);this.isAwaitingPermission=false;if(e){this.spinner.start()}await n.ttc_ai.approveFunction(t,e)}}));n.ttc_ai.subscribe("message",(async e=>{await this.speakToUser(e.message)}));n.ttc_ai.subscribe("function_call",(async e=>{this.spinner.stop();console.log(e);this.spinner.start()}));while(true){try{while(this.isWaitingForResponse||this.isAwaitingPermission){await new Promise((e=>setTimeout(e,100)))}const{input:e}=await f.MenuSystem.showInput({message:`[${this.current_user}] š¤:`,validate:()=>true}).then((e=>({input:e||""})));const t=e.trim();if(!t)continue;if(t.startsWith("/")){const e=t.slice(1).split(" ");const r=e[0];const n=e.slice(1);if(r==="exit"){console.log("Goodbye š\n");process.exit(0)}const i=await this.commandRegistry.execute(r,this,n);if(!i){console.log(`\nā Unknown command: /${r}`);console.log(`Type /help to see available commands.\n`)}continue}this.spinner.start();this.isWaitingForResponse=true;await n.ttc_ai.sendMessage(this.conversation_id,t)}catch(e){if(e.message&&e.message.includes("force closed the prompt")){console.log("\n\nGoodbye! š\n");process.exit(0)}throw e}}}async askForPermission(e){let t="";try{const r=e.arguments||{};if(Object.keys(r).length>0){t=JSON.stringify(r,null,2).split("\n").map((e=>` ${e}`)).join("\n")}}catch(e){}const r=await f.MenuSystem.show({title:`š Permission Required`,message:`Function: ${e.function}${t?`\n${t}\n`:"\n"}`,choices:[{name:"ā
Approve",value:"approve",description:"Allow this function to execute"},{name:"ā Deny",value:"deny",description:"Block this function"}],backOption:false});return r==="approve"}}t.Chat=Chat},7520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CommandRegistry=void 0;class CommandRegistry{constructor(){this.commands=new Map}register(e){this.commands.set(e.name,e)}get(e){return this.commands.get(e)}getAll(){return Array.from(this.commands.values())}has(e){return this.commands.has(e)}async execute(e,t,r){const n=this.get(e);if(!n){return false}await n.handler(t,r);return true}}t.CommandRegistry=CommandRegistry},7041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authStatusCommand=t.logoutCommand=void 0;const n=r(6796);const i=r(3836);async function logoutHandler(e,t){const r=await i.MenuSystem.showConfirm("Are you sure you want to logout?",false);if(r){const e=new n.TokenManager;e.clearTokens();console.log("\nā
Logged out successfully. Please restart the CLI.\n");process.exit(0)}}async function statusHandler(e,t){const r=new n.TokenManager;const i=r.getUserToken();const o=r.getChatToken();console.log("\nš Authentication Status:");console.log(`User Token: ${i?"ā
Present":"ā Missing"}`);console.log(`Chat Token: ${o?"ā
Present":"ā Missing"}`);if(i&&o){console.log(`\nš¢ Status: Authenticated`)}else{console.log(`\nš“ Status: Not authenticated`)}console.log()}t.logoutCommand={name:"logout",description:"Logout and clear saved credentials",handler:logoutHandler};t.authStatusCommand={name:"status",description:"Show authentication status",handler:statusHandler}},6313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.seturlCommand=t.chatCommand=void 0;const n=r(137);const i=r(3836);const o=r(6796);async function handleListChats(e){console.log("\nš Fetching your chats...\n");try{const t=await n.ttc_ai.fetchChats(1,50);if(t.length===0){console.log("No chats found. Create one to get started!\n");return}console.log(`Found ${t.length} chat(s):\n`);for(let r=0;r<t.length;r++){const n=t[r];const i=n===e.conversation_id;const o=i?"ā":" ";console.log(`${o} ${r+1}. ${n}${i?" (current)":""}`)}console.log()}catch(e){console.error("Error fetching chats:",e instanceof Error?e.message:e)}}async function handleCreateChat(e){const t=await i.MenuSystem.showInput({message:"Enter a name/ID for the new chat (or leave blank for auto-generated):",validate:e=>{if(e.trim().length===0)return true;if(e.trim().length>100)return"Name too long (max 100 characters)";return true}});if(t===null)return;try{console.log("\nšØ Creating new chat...\n");const r=await n.ttc_ai.createChat(t.trim()||undefined);console.log(`ā
Created new chat: ${r}\n`);const s=await i.MenuSystem.showConfirm("Switch to the new chat now?",true);if(s){const t=new o.TokenManager;e.conversation_id=r;t.setConversationId(r);console.log(`\nā
Switched to chat: ${r}\n`)}}catch(e){console.error("Error creating chat:",e instanceof Error?e.message:e)}}async function handleSwitchChat(e){try{const t=await n.ttc_ai.fetchChats(1,50);if(t.length===0){console.log("\nNo chats available to switch to.\n");return}const r=t.map(((t,r)=>({name:`${t}${t===e.conversation_id?" (current)":""}`,value:t})));const s=await i.MenuSystem.show({title:"Switch Chat",message:"Select a chat to switch to:",choices:r});if(s&&s!==e.conversation_id){const t=new o.TokenManager;e.conversation_id=s;t.setConversationId(s);console.log(`\nā
Switched to chat: ${s}\n`)}}catch(e){console.error("Error switching chat:",e instanceof Error?e.message:e)}}async function handleDeleteChat(e){try{const t=await n.ttc_ai.fetchChats(1,50);if(t.length===0){console.log("\nNo chats available to delete.\n");return}const r=t.map((e=>({name:e,value:e})));const s=await i.MenuSystem.show({title:"Delete Chat",message:"Select a chat to delete:",choices:r});if(!s)return;const a=await i.MenuSystem.showConfirm(`Are you sure you want to delete chat: ${s}?`,false);if(a){await n.ttc_ai.deleteChat(s);console.log(`\nā
Deleted chat: ${s}\n`);if(s===e.conversation_id){const t=new o.TokenManager;console.log("Creating a new chat since you deleted the current one...\n");const r=await n.ttc_ai.createChat(undefined);e.conversation_id=r;t.setConversationId(r);console.log(`ā
Switched to new chat: ${r}\n`)}}}catch(e){console.error("Error deleting chat:",e instanceof Error?e.message:e)}}async function chatMenuHandler(e,t){while(true){const t=await i.MenuSystem.show({title:"Chat Management",message:"What would you like to do?",choices:[{name:"š List Chats",value:"list"},{name:"šØ Create New Chat",value:"create"},{name:"š Switch Chat",value:"switch"},{name:"šļø Delete Chat",value:"delete"}]});if(!t){console.log("\n");break}switch(t){case"list":await handleListChats(e);break;case"create":await handleCreateChat(e);break;case"switch":await handleSwitchChat(e);break;case"delete":await handleDeleteChat(e);break}}}async function handleSetUrl(e,t){const r=new o.TokenManager;const n=r.getUrl();console.log(`\nš Current server URL: ${n||"Not set"}\n`);const s=await i.MenuSystem.showInput({message:"Enter new server URL:",default:n||"http://localhost:3000",validate:e=>{if(!e.trim())return"URL cannot be empty";try{new URL(e);return true}catch{return"Invalid URL format"}}});if(!s)return;r.setUrl(s);console.log(`\nā
Server URL updated to: ${s}`);console.log(`ā ļø Please restart the CLI for changes to take effect.\n`)}t.chatCommand={name:"chat",description:"Manage your chats (list, create, switch, delete)",handler:chatMenuHandler};t.seturlCommand={name:"seturl",description:"Change the server URL",handler:handleSetUrl}},5243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.helpCommand=void 0;async function helpHandler(e,t){const r=e.commandRegistry.getAll();console.log("\n"+"=".repeat(50));console.log(" Available Commands");console.log("=".repeat(50)+"\n");r.forEach((e=>{console.log(` /${e.name.padEnd(15)} - ${e.description}`)}));console.log(` /exit${" ".repeat(10)} - Exit the chat`);console.log("\n"+"=".repeat(50)+"\n")}t.helpCommand={name:"help",description:"Show available commands and their descriptions",handler:helpHandler}},8546:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.navCommand=void 0;const s=r(3836);const a=o(r(6928));const u=o(r(9896));async function navMenuHandler(e,t){while(true){const e=await s.MenuSystem.show({title:"Directory Navigation",message:"What would you like to do?",choices:[{name:"š Change Directory",value:"cd"},{name:"š List Current Directory",value:"ls"},{name:"š Show Current Path",value:"pwd"}]});if(!e){console.log("\n");break}switch(e){case"cd":await handleChangeDirectory();break;case"ls":await handleListDirectory();break;case"pwd":await handleShowPath();break}}}async function handleChangeDirectory(){const e=await s.MenuSystem.showInput({message:"Enter directory path (or .. for parent, ~ for home):",default:process.cwd(),validate:e=>{if(!e.trim())return"Path cannot be empty";return true}});if(!e)return;try{let t=e.trim();if(t==="~"){t=r(857).homedir()}else if(t===".."){t=a.dirname(process.cwd())}else if(!a.isAbsolute(t)){t=a.resolve(process.cwd(),t)}if(!u.existsSync(t)){console.log(`\nā Directory does not exist: ${t}\n`);return}if(!u.statSync(t).isDirectory()){console.log(`\nā Not a directory: ${t}\n`);return}process.chdir(t);console.log(`\nā
Changed directory to: ${process.cwd()}\n`)}catch(e){console.error("\nā Error changing directory:",e instanceof Error?e.message:e);console.log()}}async function handleListDirectory(){try{const e=process.cwd();console.log(`\nš Contents of ${e}:\n`);const t=u.readdirSync(e);if(t.length===0){console.log("(empty directory)\n");return}const r=[];const n=[];for(const i of t){const t=a.join(e,i);try{const e=u.statSync(t);if(e.isDirectory()){r.push(i)}else{n.push(i)}}catch{}}if(r.length>0){console.log("Directories:");r.sort().forEach((e=>console.log(` š ${e}/`)));console.log()}if(n.length>0){console.log("Files:");n.sort().forEach((e=>console.log(` š ${e}`)));console.log()}}catch(e){console.error("\nā Error listing directory:",e instanceof Error?e.message:e);console.log()}}async function handleShowPath(){const e=process.cwd();console.log(`\nš Current directory: ${e}\n`)}t.navCommand={name:"cd",description:"Navigate directories and view file system",handler:navMenuHandler}},498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.permissionsCommand=void 0;const n=r(3836);const i=r(137);t.permissionsCommand={name:"permissions",description:"View and manage pending permissions",handler:async(e,t)=>{if(e.pendingPermissions.length===0){console.log("\nā
No pending permissions.\n");return}console.log(`\nš ${e.pendingPermissions.length} pending permission(s)\n`);while(e.pendingPermissions.length>0){const t=e.pendingPermissions[0];let r="";try{const e=t.func.arguments||{};if(Object.keys(e).length>0){r=JSON.stringify(e,null,2).split("\n").map((e=>` ${e}`)).join("\n")}}catch(e){}const o=getTimeAgo(t.timestamp);const s=await n.MenuSystem.show({title:`š Permission Request (${e.pendingPermissions.length} remaining)`,message:`Function: ${t.func.function}\nRequested: ${o}${r?`\n${r}\n`:"\n"}`,choices:[{name:"ā
Approve",value:"approve",description:"Allow this function to execute"},{name:"ā Deny",value:"deny",description:"Block this function"},{name:"ā
ā
Approve All",value:"approve_all",description:"Approve all pending permissions"},{name:"āā Deny All",value:"deny_all",description:"Deny all pending permissions"},{name:"āļø Skip",value:"skip",description:"Review later"},{name:"ā Exit",value:"exit",description:"Return to chat"}],backOption:false});if(s==="approve"){e.pendingPermissions.shift();e.spinner.start();await i.ttc_ai.approveFunction(t.id,true);console.log(`\nā
Approved: ${t.func.function}\n`)}else if(s==="deny"){e.pendingPermissions.shift();await i.ttc_ai.approveFunction(t.id,false);console.log(`\nā Denied: ${t.func.function}\n`)}else if(s==="approve_all"){const t=[...e.pendingPermissions];e.pendingPermissions=[];e.spinner.start();for(const e of t){await i.ttc_ai.approveFunction(e.id,true)}console.log(`\nā
Approved all ${t.length} permission(s)\n`);break}else if(s==="deny_all"){const t=[...e.pendingPermissions];e.pendingPermissions=[];for(const e of t){await i.ttc_ai.approveFunction(e.id,false)}console.log(`\nā Denied all ${t.length} permission(s)\n`);break}else if(s==="skip"){const r=e.pendingPermissions.shift();e.pendingPermissions.push(r);console.log(`\nāļø Skipped: ${t.func.function}\n`)}else if(s==="exit"||s===null){console.log(`\nš ${e.pendingPermissions.length} permission(s) still pending. Type /permissions to review.\n`);break}}if(e.pendingPermissions.length===0){console.log("ā
All permissions processed.\n")}}};function getTimeAgo(e){const t=Math.floor(((new Date).getTime()-e.getTime())/1e3);if(t<60)return`${t}s ago`;if(t<3600)return`${Math.floor(t/60)}m ago`;if(t<86400)return`${Math.floor(t/3600)}h ago`;return`${Math.floor(t/86400)}d ago`}},3836:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MenuSystem=void 0;const i=n(r(592));class MenuSystem{static async show(e){const t=[...e.choices];if(e.backOption!==false){t.push({name:"ā Back to Chat",value:"__back__"})}console.log(`\n${"=".repeat(50)}`);console.log(` ${e.title}`);console.log(`${"=".repeat(50)}\n`);const{selection:r}=await i.default.prompt([{type:"list",name:"selection",message:e.message,choices:t.map((e=>({name:e.description?`${e.name} - ${e.description}`:e.name,value:e.value}))),pageSize:15}]);if(r==="__back__"){return null}return r}static async showInput(e){const{input:t}=await i.default.prompt([{type:"input",name:"input",message:e.message,default:e.default,validate:e.validate}]);return t}static async showConfirm(e,t=false){const{confirmed:r}=await i.default.prompt([{type:"confirm",name:"confirmed",message:e,default:t}]);return r}}t.MenuSystem=MenuSystem},3729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Spinner=void 0;class Spinner{constructor(e="Thinking"){this.timer=null;this.frames=["ā ","ā ","ā ¹","ā ø","ā ¼","ā “","ā ¦","ā §","ā ","ā "];this.currentFrame=0;this.message=e}start(){if(this.timer)return;process.stdout.write("[?25l");this.timer=setInterval((()=>{const e=this.frames[this.currentFrame];this.currentFrame=(this.currentFrame+1)%this.frames.length;if(process.stdout.isTTY){process.stdout.clearLine(0);process.stdout.cursorTo(0);process.stdout.write(`[36m${e}[0m ${this.message}...`)}}),80)}stop(){if(this.timer){clearInterval(this.timer);this.timer=null;if(process.stdout.isTTY){process.stdout.clearLine(0);process.stdout.cursorTo(0)}process.stdout.write("[?25h")}}}t.Spinner=Spinner},6796:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.TokenManager=void 0;const s=o(r(9896));const a=o(r(6928));const u=o(r(857));class TokenManager{constructor(){this.configPath=this.getConfigPath()}getConfigPath(){return a.join(u.homedir(),".ttcrc")}loadConfig(){try{if(!s.existsSync(this.configPath)){return{}}const e=s.readFileSync(this.configPath,"utf-8");const t=JSON.parse(e);return t}catch(e){console.error("Error loading config:",e instanceof Error?e.message:e);return{}}}saveConfig(e){try{const t=JSON.stringify(e,null,2);s.writeFileSync(this.configPath,t,"utf-8");if(process.platform!=="win32"){s.chmodSync(this.configPath,384)}}catch(e){console.error("Error saving config:",e instanceof Error?e.message:e);throw new Error("Unable to save credentials: Permission denied")}}getUserToken(){const e=this.loadConfig();return e.TTC_USER_TOKEN||null}getChatToken(){const e=this.loadConfig();return e.TTC_CHAT_TOKEN||null}setUserToken(e){const t=this.loadConfig();t.TTC_USER_TOKEN=e;this.saveConfig(t)}setChatToken(e){const t=this.loadConfig();t.TTC_CHAT_TOKEN=e;this.saveConfig(t)}clearTokens(){try{if(s.existsSync(this.configPath)){s.unlinkSync(this.configPath)}}catch(e){console.error("Error clearing tokens:",e instanceof Error?e.message:e)}}hasValidTokens(){const e=this.getUserToken();const t=this.getChatToken();return!!(e&&t)}getConversationId(){const e=this.loadConfig();return e.CONVERSATION_ID||null}setConversationId(e){const t=this.loadConfig();t.CONVERSATION_ID=e;this.saveConfig(t)}getScid(){const e=this.loadConfig();return e.SCID||null}setScid(e){const t=this.loadConfig();t.SCID=e;this.saveConfig(t)}getUrl(){const e=this.loadConfig();return e.SERVER_URL||null}setUrl(e){const t=this.loadConfig();t.SERVER_URL=e;this.saveConfig(t)}}t.TokenManager=TokenManager},4868:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});t.UserRPCClient=void 0;const i=r(3588);let o="";const uuid=()=>{const e="ttc_scid";let t=typeof localStorage!=="undefined"?localStorage.getItem(e):o;if(!t){t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);if(typeof localStorage!=="undefined"){localStorage.setItem(e,t)}else{o=t}}return t};class UserRPCClient{constructor(e,t,r){this.Saas={async getCreditPackages(){return await n.apiCallback("Saas.getCreditPackages")},async getUserTransactions(){return await n.apiCallback("Saas.getUserTransactions")},async getAllCreditPurchases(e,t){return await n.apiCallback("Saas.getAllCreditPurchases",[e,t])}};this.Assistant={async createAssistant(e,t,r){return await n.apiCallback("Assistant.createAssistant",[e,t,r])},async fetchAssistant(e){return await n.apiCallback("Assistant.fetchAssistant",[e])},async fetchAssistants(){return await n.apiCallback("Assistant.fetchAssistants")},async assignModelToAssistant(e,t){return await n.apiCallback("Assistant.assignModelToAssistant",[e,t])},async fetchAssistantWithModel(e){return await n.apiCallback("Assistant.fetchAssistantWithModel",[e])},async getAssistantAnalytics(e){return await n.apiCallback("Assistant.getAssistantAnalytics",[e])},async getAssistantApps(e){return await n.apiCallback("Assistant.getAssistantApps",[e])},async unassignModelFromAssistant(e){return await n.apiCallback("Assistant.unassignModelFromAssistant",[e])},async updateAssistant(e,t,r,i){return await n.apiCallback("Assistant.updateAssistant",[e,t,r,i])},async assignAssistantToAppUser(e,t){return await n.apiCallback("Assistant.assignAssistantToAppUser",[e,t])},async removeAssistantFromAppUser(e){return await n.apiCallback("Assistant.removeAssistantFromAppUser",[e])},async fetchAssistantsForApp(e){return await n.apiCallback("Assistant.fetchAssistantsForApp",[e])},async fetchGlobalMemory(e){return await n.apiCallback("Assistant.fetchGlobalMemory",[e])},async updateGlobalMemory(e,t){return await n.apiCallback("Assistant.updateGlobalMemory",[e,t])},async fetchSentinelSessions(e){return await n.apiCallback("Assistant.fetchSentinelSessions",[e])},async fetchSentinelLogs(e){return await n.apiCallback("Assistant.fetchSentinelLogs",[e])},async unassignVoiceModel(e){return await n.apiCallback("Assistant.unassignVoiceModel",[e])},async assignVoiceModel(e,t){return await n.apiCallback("Assistant.assignVoiceModel",[e,t])},async fetchAssistantVoiceModels(e){return await n.apiCallback("Assistant.fetchAssistantVoiceModels",[e])}};this.TCC={async get_models(e){return await n.apiCallback("TCC.get_models",[e])},async conversation_stats(e){return await n.apiCallback("TCC.conversation_stats",[e])},async change_to_model(e,t,r){return await n.apiCallback("TCC.change_to_model",[e,t,r])},async trigger(e,t,r){return await n.apiCallback("TCC.trigger",[e,t,r])},async invoke_construct(e,t){return await n.apiCallback("TCC.invoke_construct",[e,t])},async select_context(e,t){return await n.apiCallback("TCC.select_context",[e,t])}};this.ttcCore={async chatAI(e,t){return await n.apiCallback("ttcCore.chatAI",[e,t])},async functionResponse(e,t,r){return await n.apiCallback("ttcCore.functionResponse",[e,t,r])},async fetchChatHistory(e,t,r){return await n.apiCallback("ttcCore.fetchChatHistory",[e,t,r])},async setAppFunctions(e,t){return await n.apiCallback("ttcCore.setAppFunctions",[e,t])},async createChat(e){return await n.apiCallback("ttcCore.createChat",[e])},async updateChat(e,t){return await n.apiCallback("ttcCore.updateChat",[e,t])},async fetchChats(e,t){return await n.apiCallback("ttcCore.fetchChats",[e,t])},async fetchChat(e){return await n.apiCallback("ttcCore.fetchChat",[e])},async deleteChat(e){return await n.apiCallback("ttcCore.deleteChat",[e])},async clearChatHistory(e,t){return await n.apiCallback("ttcCore.clearChatHistory",[e,t])},async fetchEmote(){return await n.apiCallback("ttcCore.fetchEmote")},async fetchOrigins(e){return await n.apiCallback("ttcCore.fetchOrigins",[e])}};this.Auth={async signup(e,t,r){return await n.apiCallback("Auth.signup",[e,t,r])},async me(){return await n.apiCallback("Auth.me")},async signin(e,t){return await n.apiCallback("Auth.signin",[e,t])},async changepassword(e,t){return await n.apiCallback("Auth.changepassword",[e,t])},async googleoauth(e){return await n.apiCallback("Auth.googleoauth",[e])},async signInGoogle(e,t,r){return await n.apiCallback("Auth.signInGoogle",[e,t,r])}};this.AppOAuth={async generateAuthorizationUrl(e,t,r,i){return await n.apiCallback("AppOAuth.generateAuthorizationUrl",[e,t,r,i])},async handleAuthorizationCallback(e,t,r,i,o,s){return await n.apiCallback("AppOAuth.handleAuthorizationCallback",[e,t,r,i,o,s])},async exchangeCodeForToken(e,t,r){return await n.apiCallback("AppOAuth.exchangeCodeForToken",[e,t,r])},async refreshToken(e,t){return await n.apiCallback("AppOAuth.refreshToken",[e,t])},async revokeToken(e,t){return await n.apiCallback("AppOAuth.revokeToken",[e,t])},async getAuthorizationDetails(e){return await n.apiCallback("AppOAuth.getAuthorizationDetails",[e])},async listAuthorizedApps(){return await n.apiCallback("AppOAuth.listAuthorizedApps")},async fetchAppDetails(e){return await n.apiCallback("AppOAuth.fetchAppDetails",[e])},async validateToken(e){return await n.apiCallback("AppOAuth.validateToken",[e])}};this.ttcApp={async appAnalytics(e,t){return await n.apiCallback("ttcApp.appAnalytics",[e,t])},async createApp(e,t,r,i){return await n.apiCallback("ttcApp.createApp",[e,t,r,i])},async validateSubdomain(e){return await n.apiCallback("ttcApp.validateSubdomain",[e])},async updateApp(e,t,r,i,o){return await n.apiCallback("ttcApp.updateApp",[e,t,r,i,o])},async generateToken(e,t){return await n.apiCallback("ttcApp.generateToken",[e,t])},async fetchApp(e){return await n.apiCallback("ttcApp.fetchApp",[e])},async fetchApps(){return await n.apiCallback("ttcApp.fetchApps")},async deleteApp(e){return await n.apiCallback("ttcApp.deleteApp",[e])},async deleteAppUser(e,t){return await n.apiCallback("ttcApp.deleteAppUser",[e,t])},async fetchAppUsers(e,t,r){return await n.apiCallback("ttcApp.fetchAppUsers",[e,t,r])},async addOrigin(e,t,r,i){return await n.apiCallback("ttcApp.addOrigin",[e,t,r,i])},async fetchOrigins(e){return await n.apiCallback("ttcApp.fetchOrigins",[e])},async updateOrigin(e,t,r,i){return await n.apiCallback("ttcApp.updateOrigin",[e,t,r,i])},async deleteOrigin(e,t){return await n.apiCallback("ttcApp.deleteOrigin",[e,t])},async setAppRagRepository(e,t){return await n.apiCallback("ttcApp.setAppRagRepository",[e,t])},async removeAppRagRepository(e){return await n.apiCallback("ttcApp.removeAppRagRepository",[e])}};this.Media={async uploadImage(e,t,r){return await n.mediaCallback("Media.uploadImage",[e,t],r)}};this.Model={async addModel(e,t,r,i,o){return await n.apiCallback("Model.addModel",[e,t,r,i,o])},async fetchModels(){return await n.apiCallback("Model.fetchModels")},async updateModel(e,t,r,i){return await n.apiCallback("Model.updateModel",[e,t,r,i])},async deleteModel(e){return await n.apiCallback("Model.deleteModel",[e])},async fetchAppModels(e){return await n.apiCallback("Model.fetchAppModels",[e])},async deleteAppModel(e,t){return await n.apiCallback("Model.deleteAppModel",[e,t])},async selectModelForApp(e,t){return await n.apiCallback("Model.selectModelForApp",[e,t])},async getAppsUsedByModel(e){return await n.apiCallback("Model.getAppsUsedByModel",[e])},async getAssistantsUsingModel(e){return await n.apiCallback("Model.getAssistantsUsingModel",[e])},async getModelQueue(e){return await n.apiCallback("Model.getModelQueue",[e])}};this.Orobii={async fetch_consultee_info(e){return await n.apiCallback("Orobii.fetch_consultee_info",[e])},async search_consultee_conversation_history(e,t,r,i){return await n.apiCallback("Orobii.search_consultee_conversation_history",[e,t,r,i])},async search_consultee_notes(e,t,r){return await n.apiCallback("Orobii.search_consultee_notes",[e,t,r])},async search_consultee_memory(e,t,r){return await n.apiCallback("Orobii.search_consultee_memory",[e,t,r])},async submit_consultee_message(e,t){return await n.apiCallback("Orobii.submit_consultee_message",[e,t])}};this.TTCRag={async create(e,t,r,i){return await n.apiCallback("TTCRag.create",[e,t,r,i])},async getRepository(e){return await n.apiCallback("TTCRag.getRepository",[e])},async listRepository(e,t){return await n.apiCallback("TTCRag.listRepository",[e,t])},async updateRepository(e,t){return await n.apiCallback("TTCRag.updateRepository",[e,t])},async delete(e){return await n.apiCallback("TTCRag.delete",[e])},async uploadfile(e,t){return await n.mediaCallback("TTCRag.uploadfile",[e],t)},async listfiles(e,t){return await n.apiCallback("TTCRag.listfiles",[e,t])},async deletefile(e,t){return await n.apiCallback("TTCRag.deletefile",[e,t])},async searchRAG(e,t){return await n.apiCallback("TTCRag.searchRAG",[e,t])}};n.token_cb=t;n.url=e;n._scid=uuid();if(r)this.connectSocket(e,r)}async connectSocket(e,t){try{const r=(0,i.io)(e,{auth:{authorization:await n.token_cb(),_scid:n._scid}});if(t)t(r)}catch(e){console.error("Error initializing socket:",e.message)}}}t.UserRPCClient=UserRPCClient;n=UserRPCClient;UserRPCClient.url="http://localhost:3000/rpc";UserRPCClient.apiCallback=async(e,t)=>{try{if(!n.token_cb)throw new Error("UserRPCClient.token_cb is not set");const r=await n.token_cb();const i=await fetch(`${n.url}/rpc`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}:${n._scid}`},body:JSON.stringify({method:e,params:t})});if(!i.ok){throw new Error(`API error: ${i.status} ${i.statusText}`)}return await i.json()}catch(e){console.error("Error calling API:",e);throw e}};UserRPCClient.mediaCallback=async(e,t,r)=>{try{if(!n.token_cb)throw new Error("UserRPCClient.token_cb is not set");const i=await n.token_cb();const o=new FormData;o.append("method",e);if(t)o.append("params",JSON.stringify(t));if(r)o.append("file",r);const s=await fetch(`${n.url}/rpc`,{method:"POST",headers:{Authorization:`Bearer ${i}:${n._scid}`},body:o});if(!s.ok){throw new Error(`Media API error: ${s.status} ${s.statusText}`)}return await s.json()}catch(e){console.error("Error calling Media API:",e);throw e}}},9016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDangerousCommand=void 0;const isDangerousCommand=e=>{const t=[/\brm\b/,/rm\s+-rf\s+\//,/rm\s+-rf\s+~/,/rm\s+-rf\s+\./,/rm\s+-rf\s+\/\*/,/dd\s+if=.*of=\/dev\/(sd[a-z]|hd[a-z])/,/mkfs\.\w+\s+\/dev\/(sd[a-z]|hd[a-z])/,/chmod\s+-R\s+0+\s+\//,/chown\s+-R\s+.*\s+\//,/:\s*\(\s*\)\s*\{\s*:\s*\|\s*:\s*&\s*\}\s*;\s*:/,/kill\s+-9\s+-1/,/sudo\s+apt-get\s+remove\s+--purge\s+python3/,/sudo\s+yum\s+erase\s+glibc/,/del\s+\/f\s+\/s\s+\/q\s+C:\\\*/,/rmdir\s+\/s\s+\/q\s+C:\\Windows/,/format\s+C:\s+\/fs:\w+\s+\/q/,/reg\s+delete\s+HKLM\s+\/f/,/reg\s+delete\s+HKCU\s+\/f/,/netsh\s+firewall\s+set\s+opmode\s+disable/,/taskkill\s+\/f\s+\/im\s+svchost\.exe/,/sudo\s+rm\s+-rf\s+\/usr/,/sudo\s+rm\s+-rf\s+\/lib/,/sudo\s+rm\s+-rf\s+\/bin/,/sudo\s+rm\s+-rf\s+\/etc/,/\/dev\/null/,/\/dev\/zero/,/\/dev\/urandom/,/\/proc\/sys/,/sysctl\s+-w/,/swapoff\s+-a/,/iptables\s+-F/,/ufw\s+disable/,/Remove-Item\s+-Path\s+C:\\\s+-Recurse\s+-Force/,/Set-ExecutionPolicy\s+Unrestricted\s+-Force/,/\[System\.IO\.File\]::WriteAllText.*boot\.ini/,/>\s*\/etc\/passwd/,/>\s*\/etc\/shadow/,/>\s*\/etc\/sudoers/,/>\s*\/etc\/hosts/,/>\s*\/etc\/crontab/,/>\s*\/etc\/fstab/,/>\s*\/boot\/grub\/grub.cfg/,/>\s*\/etc\/profile/,/>\s*\/etc\/bash.bashrc/,/echo\s+.*\s+>\s*\/etc\//,/cat\s+>\s*\/etc\//,/tee\s+\/etc\//,/>\s*C:\\Windows\\System32\\drivers\\etc\\hosts/,/>\s*C:\\Windows\\System32\\config\\SAM/,/>\s*C:\\Windows\\System32\\config\\SYSTEM/,/>\s*C:\\boot.ini/,/echo\s+.*\s+>\s*C:\\Windows\\/,/type\s+.*\s+>\s*C:\\Windows\\/,/>\s*\/proc\/sysrq-trigger/,/>\s*\/sys\/class\/backlight\//,/>\s*\/sys\/devices\/system\/cpu\//,/>\s*~\/\.bashrc/,/>\s*~\/\.bash_profile/,/>\s*~\/\.zshrc/,/>\s*~\/\.profile/,/>\s*~\/\.ssh\/authorized_keys/,/>\s*~\/\.ssh\/config/,/>\s*\/etc\/ssh\/sshd_config/,/>\s*\/etc\/systemd\/system\//,/>\s*\/lib\/systemd\/system\//,/>\s*\/var\/spool\/cron\//,/>\s*\/etc\/cron\.d\//,/>\s*\/var\/log\//,/truncate\s+-s\s+0\s+\/var\/log\//,/>\s*\/etc\/apt\/sources.list/,/>\s*\/etc\/yum.repos.d\//,/>\s*\/etc\/network\/interfaces/,/>\s*\/etc\/resolv.conf/,/>\s*\/etc\/netplan\//,/>\s*\/etc\/modules-load.d\//,/>\s*\/etc\/modprobe.d\//];const r=e.trim().toLowerCase();for(const e of t){if(e.test(r)){return true}}if(r.includes("rm -rf")&&(r.includes("/")||r.includes("~"))){return true}if(r.includes("format")&&r.includes("c:")){return true}if(r.includes("reg delete")&&(r.includes("hklm")||r.includes("hkcu"))){return true}if((r.includes(">")||r.includes(">>"))&&(r.includes("/etc/")||r.includes("c:\\windows\\system32")||r.includes("/proc/")||r.includes("/sys/"))){return true}return false};t.isDangerousCommand=isDangerousCommand},137:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ttc_ai=void 0;const i=n(r(4434));const o=r(8238);class ttc_ai{static async init(e,t){ttc_ai.event=new i.default;ttc_ai.ai=new o.ttcAI(e,t);await ttc_ai.ai.init()}static async createChat(e){var t;const r=await((t=ttc_ai.ai)===null||t===void 0?void 0:t.server.ttcCore.createChat(e));return r.data.chatId}static async fetchChats(e,t){var r;const n=await((r=ttc_ai.ai)===null||r===void 0?void 0:r.server.ttcCore.fetchChats(e,t));return n.data}static async fetchChat(e){var t;const r=await((t=ttc_ai.ai)===null||t===void 0?void 0:t.server.ttcCore.fetchChat(e));return r.data}static async deleteChat(e){var t;const r=await((t=ttc_ai.ai)===null||t===void 0?void 0:t.server.ttcCore.deleteChat(e));return r.data}static async sendMessage(e,t){await this.ai.internal.sendMessage(e,t)}static async approveFunction(e,t){const r=this.permissions[e];console.log(r,"Approved");if(r){r(t);delete this.permissions[e]}}static async askPermission(e,t,r){const n=`${e}-${t.function}`;if(!this.permissions[n]){this.permissions[n]=r}await this.emit("permission",{id:n,func:t})}static async subscribe(e,t){this.event.on(e,t)}static async emit(e,t){this.event.emit(e,t)}}t.ttc_ai=ttc_ai;ttc_ai.permissions={}},1212:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.TTCInternal=void 0;const a=r(137);const u=r(5317);const c=s(r(9896));const l=o(r(857));class TTCInternal{constructor(){this._setttcAI=e=>{this.ai=e};this.getFunctionDetails=e=>{var t;return(t=this.ai)===null||t===void 0?void 0:t.functions[e]};this.invokeCLI=async(e,t)=>{try{const r=(0,u.execSync)(e,{timeout:t*1e3}).toString();return r?r:"command executed successfully"}catch(e){return e.message}};this.sendMessage=async(e,t)=>{await this.ai.server.ttcCore.chatAI(e||"",t)};this.sendFunctionResponse=async(e,t)=>{await this.ai.server.ttcCore.functionResponse(e||"",t,[])};this.speakToUser=async(e,t)=>{await a.ttc_ai.emit("message",{conversation_id:e,message:t})};this.invokeInternal=async(e,t,r)=>{if(t!=="TTCInternal.speakToUser")console.log(`- ${t}: (${JSON.stringify(r)})`);switch(t){case"TTCInternal.speakToUser":return await this.speakToUser(e,r.message);case"TTCInternal.saveToken":return await this.saveToken(r.token);case"TTCInternal.fetchToken":return await this.fetchToken();case"TTCInternal.invokeCLI":return await this.invokeCLI(r.command,r.timeout);case"TTCInternal.fetchAppFunctions":return await this.fetchAppFunctions(e);case"TTCInternal.getFunctionDetails":return await this.getFunctionDetails(r.functionName);default:throw new Error(`Unknown function: ${t}`)}};this.token=""}saveToken(e){const t=`${l.homedir()}/ttc_token.txt`;c.default.writeFileSync(t,e)}fetchToken(){const e=`${l.homedir()}/ttc_token.txt`;this.token=this.token?this.token:c.default.existsSync(e)?c.default.readFileSync(e,"utf-8"):this.token;return this.token}async fetchAppFunctions(e){var t,r;await((t=this.ai)===null||t===void 0?void 0:t.fetchFunctions());await this.ai.server.ttcCore.setAppFunctions(e,(r=this.ai)===null||r===void 0?void 0:r.functions);return"App functions have been added to your system message"}get_internal_functions(){return[{name:"TTCInternal.saveToken",description:"Save a token for the current session",input_schema:`{ "token": "string" }`,output_schema:"any"},{name:"TTCInternal.fetchToken",description:"Fetch the current session token",input_schema:`{}`,output_schema:"any"},{name:"TTCInternal.invokeCLI",permission:true,description:"Invoke a command in the CLI, timeout is in seconds",input_schema:`{ "command": "string", "timeout": "number" }`,output_schema:"any"}]}}t.TTCInternal=TTCInternal},8238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ttcAI=void 0;const n=r(137);const i=r(1212);const o=r(5676);const s=r(9016);class ttcAI{constructor(e,t){this.functions={};this.init=async()=>{this.internal._setttcAI(this);await this.fetchFunctions()};this.handleSocket=async e=>{this.socket=e;this.socket.on("connect_error",(e=>{console.error("Socket connection error:",e.message||e)}));this.socket.on("function_call",(async e=>{const{conversation_id:t,functions:r}=e;await this.processFunctionCall(t,r)}))};this.url=e;this.chatToken=t;this.internal=new i.TTCInternal;this.server=new o.RPCClient(ttcAI.ttc_Uri,(async()=>t),this.handleSocket.bind(this))}async fetchFunctions(){try{const e=this.internal.get_internal_functions();const t=`?sapikey=${process.env.TTC_API_SECRET||""}`;const r=`${this.url}/api-docs${t}`;let n={methods:[]};try{const e=await fetch(r,{method:"GET",headers:{Authorization:`Bearer ${await o.RPCClient.token_cb()}`,"Content-Type":"application/json"}});n=await e.json()}catch(e){n.methods=[]}const i=[...e,...n.methods];this.functions=i.reduce(((e,t)=>{e[t.name]=t;return e}),{})}catch(e){console.log("Unable to fetch functions from server, confirm the server is running and the URL is correct and ask ttc to fetch functions again.")}}async invokeFunctions(e,t){const r=t.function.startsWith("TTCInternal.");if(r){return await this.internal.invokeInternal(e,t.function,t.arguments)}else{await n.ttc_ai.emit("function_call",`- ${t.function}: (${JSON.stringify(t.arguments)})`);return await this.invokeFunction(this.url,this.internal.fetchToken(),t)}}async invokeFunctionWithPermission(e,t){const r=await new Promise((r=>{n.ttc_ai.askPermission(e,t,(e=>{r(e)}))}));return{approved:r,p_response:r?await this.invokeFunctions(e,t):{error:"The user stopped you from carrying out this operation"}}}async invokeFunction(e,t,r){try{const n=await fetch(`${e}/rpc`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({method:r.function,params:Object.values(r.arguments)})});if(!n.ok){return n.statusText}return await n.json()}catch(e){console.error("Error calling API:",e);throw e}}async assessPermissionStatus(e){var t;if(e.function==="TTCInternal.invokeCLI"){const t=(0,s.isDangerousCommand)(e.arguments.command);if(t){return true}else{return false}}return((t=this.functions[e.function])===null||t===void 0?void 0:t.permission)===true}async processFunctionCall(e,t){try{const r=[];for(const n of t){let t=null;const i=await this.assessPermissionStatus(n);if(i){const{approved:i,p_response:o}=await this.invokeFunctionWithPermission(e,n);if(!i){r.push({function:n.function,response:{error:"Permission denied"}});continue}else{t=o}}else{t=await this.invokeFunctions(e,n)}if(t)r.push({function:n.function,response:t})}if(r.length>0)await this.internal.sendFunctionResponse(e,r)}catch(e){console.log(e)}}}t.ttcAI=ttcAI;ttcAI.ttc_Uri="https://api.tentarclesai.com"},5676:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});t.RPCClient=void 0;const i=r(3588);const o=r(6796);const _scid=()=>{const e=new o.TokenManager;let t=e.getScid();if(!t){t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);e.setScid(t)}return t};class RPCClient{constructor(e,t,r){this.ttcCore={async chatAI(e,t){return await n.apiCallback("ttcCore.chatAI",[e,t])},async functionResponse(e,t,r){return await n.apiCallback("ttcCore.functionResponse",[e,t,r])},async fetchChatHistory(e,t,r){return await n.apiCallback("ttcCore.fetchChatHistory",[e,t,r])},async setAppFunctions(e,t){return await n.apiCallback("ttcCore.setAppFunctions",[e,t])},async createChat(e){return await n.apiCallback("ttcCore.createChat",[e])},async updateChat(e,t){return await n.apiCallback("ttcCore.updateChat",[e,t])},async fetchChats(e,t){return await n.apiCallback("ttcCore.fetchChats",[e,t])},async fetchChat(e){return await n.apiCallback("ttcCore.fetchChat",[e])},async deleteChat(e){return await n.apiCallback("ttcCore.deleteChat",[e])},async clearChatHistory(e,t){return await n.apiCallback("ttcCore.clearChatHistory",[e,t])},async fetchEmote(){return await n.apiCallback("ttcCore.fetchEmote")},async fetchOrigins(e){return await n.apiCallback("ttcCore.fetchOrigins",[e])}};this.AppOAuth={async generateAuthorizationUrl(e,t,r,i){return await n.apiCallback("AppOAuth.generateAuthorizationUrl",[e,t,r,i])},async exchangeCodeForToken(e,t,r){return await n.apiCallback("AppOAuth.exchangeCodeForToken",[e,t,r])},async refreshToken(e,t){return await n.apiCallback("AppOAuth.refreshToken",[e,t])}};this.Media={async uploadImage(e,t,r){return await n.mediaCallback("Media.uploadImage",[e,t],r)}};this.TCC={async trigger(e,t,r){return await n.apiCallback("TCC.trigger",[e,t,r])},async invoke_construct(e,t){return await n.apiCallback("TCC.invoke_construct",[e,t])},async select_context(e,t){return await n.apiCallback("TCC.select_context",[e,t])}};n.token_cb=t;n.url=e;if(r)this.connectSocket(e,r)}async connectSocket(e,t){try{const r=(0,i.io)(e,{auth:{authorization:await n.token_cb(),_scid:_scid()}});if(t)t(r)}catch(e){console.error("Error initializing socket:",e.message)}}}t.RPCClient=RPCClient;n=RPCClient;RPCClient.url="https://api.tentarclesai.com";RPCClient.apiCallback=async(e,t)=>{try{if(!n.token_cb)throw new Error("RPCClient.token_cb is not set");const r=await n.token_cb();const i=await fetch(`${n.url}/rpc`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}:${_scid()}`},body:JSON.stringify({method:e,params:t})});if(!i.ok){throw new Error(`API error: ${i.status} ${i.statusText}`)}return await i.json()}catch(e){console.error("Error calling API:",e);throw e}};RPCClient.mediaCallback=async(e,t,r)=>{try{if(!n.token_cb)throw new Error("RPCClient.token_cb is not set");const i=await n.token_cb();const o=new FormData;o.append("method",e);if(t)o.append("params",JSON.stringify(t));if(r)o.append("file",r);const s=await fetch(`${n.url}/rpc`,{method:"POST",headers:{Authorization:`Bearer ${i}:${_scid()}`},body:o});if(!s.ok){throw new Error(`Media API error: ${s.status} ${s.statusText}`)}return await s.json()}catch(e){console.error("Error calling Media API:",e);throw e}}},6814:e=>{"use strict";const t=e.exports;e.exports["default"]=t;const r="[";const n="]";const i="";const o=";";const s=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return r+(e+1)+"G"}return r+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let n="";if(e<0){n+=r+-e+"D"}else if(e>0){n+=r+e+"C"}if(t<0){n+=r+-t+"A"}else if(t>0){n+=r+t+"B"}return n};t.cursorUp=(e=1)=>r+e+"A";t.cursorDown=(e=1)=>r+e+"B";t.cursorForward=(e=1)=>r+e+"C";t.cursorBackward=(e=1)=>r+e+"D";t.cursorLeft=r+"G";t.cursorSavePosition=s?"7":r+"s";t.cursorRestorePosition=s?"8":r+"u";t.cursorGetPosition=r+"6n";t.cursorNextLine=r+"E";t.cursorPrevLine=r+"F";t.cursorHide=r+"?25l";t.cursorShow=r+"?25h";t.eraseLines=e=>{let r="";for(let n=0;n<e;n++){r+=t.eraseLine+(n<e-1?t.cursorUp():"")}if(e){r+=t.cursorLeft}return r};t.eraseEndLine=r+"K";t.eraseStartLine=r+"1K";t.eraseLine=r+"2K";t.eraseDown=r+"J";t.eraseUp=r+"1J";t.eraseScreen=r+"2J";t.scrollUp=r+"S";t.scrollDown=r+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${r}0f`:`${t.eraseScreen}${r}3J${r}H`;t.beep=i;t.link=(e,t)=>[n,"8",o,o,t,i,e,n,"8",o,o,i].join("");t.image=(e,t={})=>{let r=`${n}1337;File=inline=1`;if(t.width){r+=`;width=${t.width}`}if(t.height){r+=`;height=${t.height}`}if(t.preserveAspectRatio===false){r+=";preserveAspectRatio=0"}return r+":"+e.toString("base64")+i};t.iTerm={setCwd:(e=process.cwd())=>`${n}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let r=`${n}1337;`;const o=typeof t.x!=="undefined";const s=typeof t.y!=="undefined";if((o||s)&&!(o&&s&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){r+=(o?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{r+=e}return r+i}}},21:e=>{"use strict";e.exports=({onlyFirst:e=false}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?undefined:"g")}},4412:(e,t,r)=>{"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const wrapAnsi256=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const wrapAnsi16m=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];const setLazyProperty=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let n;const makeDynamicStyles=(e,t,i,o)=>{if(n===undefined){n=r(4185)}const s=o?10:0;const a={};for(const[r,o]of Object.entries(n)){const n=r==="ansi16"?"ansi":r;if(r===t){a[n]=e(i,s)}else if(typeof o==="object"){a[n]=e(o[t],s)}}return a};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n)){t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},3080:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(1644));class Ascii{name(){return"ASCII"}match(e){const t=e.rawInput;for(let r=0;r<e.rawLen;r++){const n=t[r];if(n<32||n>126){return(0,i.default)(e,this,0)}}return(0,i.default)(e,this,100)}}t["default"]=Ascii},2348:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ISO_2022_CN=t.ISO_2022_KR=t.ISO_2022_JP=void 0;const i=n(r(1644));class ISO_2022{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(e){let t,r;let n;let o=0;let s=0;let a=0;let u;const c=e.inputBytes;const l=e.inputLen;e:for(t=0;t<l;t++){if(c[t]==27){t:for(n=0;n<this.escapeSequences.length;n++){const e=this.escapeSequences[n];if(l-t<e.length)continue t;for(r=1;r<e.length;r++)if(e[r]!=c[t+r])continue t;o++;t+=e.length-1;continue e}s++}if(c[t]==14||c[t]==15)a++}if(o==0)return null;u=(100*o-100*s)/(o+s);if(o+a<5)u-=(5-(o+a))*10;return u<=0?null:(0,i.default)(e,this,u)}}class ISO_2022_JP extends ISO_2022{constructor(){super(...arguments);this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}}t.ISO_2022_JP=ISO_2022_JP;class ISO_2022_KR extends ISO_2022{constructor(){super(...arguments);this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}}t.ISO_2022_KR=ISO_2022_KR;class ISO_2022_CN extends ISO_2022{constructor(){super(...arguments);this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}t.ISO_2022_CN=ISO_2022_CN},846:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gb_18030=t.euc_kr=t.euc_jp=t.big5=t.sjis=void 0;const i=n(r(1644));function binarySearch(e,t){const find=(e,t,r,n)=>{if(n<r)return-1;const i=Math.floor(r+n>>>1);if(t>e[i])return find(e,t,i+1,n);if(t<e[i])return find(e,t,r,i-1);return i};return find(e,t,0,e.length-1)}class IteratedChar{constructor(){this.charValue=0;this.index=0;this.nextIndex=0;this.error=false;this.done=false}reset(){this.charValue=0;this.index=-1;this.nextIndex=0;this.error=false;this.done=false}nextByte(e){if(this.nextIndex>=e.rawLen){this.done=true;return-1}const t=e.rawInput[this.nextIndex++]&255;return t}}class mbcs{constructor(){this.commonChars=[]}name(){return"mbcs"}match(e){let t=0,r=0,n=0,o=0,s=0;const a=new IteratedChar;e:{for(a.reset();this.nextChar(a,e);){o++;if(a.error){n++}else{const e=a.charValue&4294967295;if(e>255){t++;if(this.commonChars!=null){if(binarySearch(this.commonChars,e)>=0){r++}}}}if(n>=2&&n*5>=t){break e}}if(t<=10&&n==0){if(t==0&&o<10){s=0}else{s=10}break e}if(t<20*n){s=0;break e}if(this.commonChars==null){s=30+t-20*n;if(s>100){s=100}}else{const e=Math.log(t/4);const n=90/e;s=Math.floor(Math.log(r+1)*n+10);s=Math.min(s,100)}}return s==0?null:(0,i.default)(e,this,s)}nextChar(e,t){return true}}class sjis extends mbcs{constructor(){super(...arguments);this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(e,t){e.index=e.nextIndex;e.error=false;const r=e.charValue=e.nextByte(t);if(r<0)return false;if(r<=127||r>160&&r<=223)return true;const n=e.nextByte(t);if(n<0)return false;e.charValue=r<<8|n;if(!(n>=64&&n<=127||n>=128&&n<=255)){e.error=true}return true}}t.sjis=sjis;class big5 extends mbcs{constructor(){super(...arguments);this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex;e.error=false;const r=e.charValue=e.nextByte(t);if(r<0)return false;if(r<=127||r==255)return true;const n=e.nextByte(t);if(n<0)return false;e.charValue=e.charValue<<8|n;if(n<64||n==127||n==255)e.error=true;return true}}t.big5=big5;function eucNextChar(e,t){e.index=e.nextIndex;e.error=false;let r=0;let n=0;let i=0;e:{r=e.charValue=e.nextByte(t);if(r<0){e.done=true;break e}if(r<=141){break e}n=e.nextByte(t);e.charValue=e.charValue<<8|n;if(r>=161&&r<=254){if(n<161){e.error=true}break e}if(r==142){if(n<161){e.error=true}break e}if(r==143){i=e.nextByte(t);e.charValue=e.charValue<<8|i;if(i<161){e.error=true}}}return e.done==false}class euc_jp extends mbcs{constructor(){super(...arguments);this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689];this.nextChar=eucNextChar}name(){return"EUC-JP"}language(){return"ja"}}t.euc_jp=euc_jp;class euc_kr extends mbcs{constructor(){super(...arguments);this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373];this.nextChar=eucNextChar}name(){return"EUC-KR"}language(){return"ko"}}t.euc_kr=euc_kr;class gb_18030 extends mbcs{constructor(){super(...arguments);this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex;e.error=false;let r=0;let n=0;let i=0;let o=0;e:{r=e.charValue=e.nextByte(t);if(r<0){e.done=true;break e}if(r<=128){break e}n=e.nextByte(t);e.charValue=e.charValue<<8|n;if(r>=129&&r<=254){if(n>=64&&n<=126||n>=80&&n<=254){break e}if(n>=48&&n<=57){i=e.nextByte(t);if(i>=129&&i<=254){o=e.nextByte(t);if(o>=48&&o<=57){e.charValue=e.charValue<<16|i<<8|o;break e}}}e.error=true;break e}}return e.done==false}}t.gb_18030=gb_18030},4172:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.KOI8_R=t.windows_1256=t.windows_1251=t.ISO_8859_9=t.ISO_8859_8=t.ISO_8859_7=t.ISO_8859_6=t.ISO_8859_5=t.ISO_8859_2=t.ISO_8859_1=void 0;const i=n(r(1644));const o=16777215;class NGramParser{constructor(e,t){this.byteIndex=0;this.ngram=0;this.ngramCount=0;this.hitCount=0;this.spaceChar=32;this.ngramList=e;this.byteMap=t}search(e,t){let r=0;if(e[r+32]<=t)r+=32;if(e[r+16]<=t)r+=16;if(e[r+8]<=t)r+=8;if(e[r+4]<=t)r+=4;if(e[r+2]<=t)r+=2;if(e[r+1]<=t)r+=1;if(e[r]>t)r-=1;if(r<0||e[r]!=t)return-1;return r}lookup(e){this.ngramCount+=1;if(this.search(this.ngramList,e)>=0){this.hitCount+=1}}addByte(e){this.ngram=(this.ngram<<8)+(e&255)&o;this.lookup(this.ngram)}nextByte(e){if(this.byteIndex>=e.inputLen)return-1;return e.inputBytes[this.byteIndex++]&255}parse(e,t){let r,n=false;this.spaceChar=t;while((r=this.nextByte(e))>=0){const e=this.byteMap[r];if(e!=0){if(!(e==this.spaceChar&&n)){this.addByte(e)}n=e==this.spaceChar}}this.addByte(this.spaceChar);const i=this.hitCount/this.ngramCount;if(i>.33)return 98;return Math.floor(i*300)}}class NGramsPlusLang{constructor(e,t){this.fLang=e;this.fNGrams=t}}const isFlatNgrams=e=>Array.isArray(e)&&isFinite(e[0]);class sbcs{constructor(){this.spaceChar=32;this.nGramLang=undefined}ngrams(){return[]}byteMap(){return[]}name(e){return"sbcs"}language(){return this.nGramLang}match(e){this.nGramLang=undefined;const t=this.ngrams();if(isFlatNgrams(t)){const r=new NGramParser(t,this.byteMap());const n=r.parse(e,this.spaceChar);return n<=0?null:(0,i.default)(e,this,n)}let r=-1;for(let n=t.length-1;n>=0;n--){const i=t[n];const o=new NGramParser(i.fNGrams,this.byteMap());const s=o.parse(e,this.spaceChar);if(s>r){r=s;this.nGramLang=i.fLang}}return r<=0?null:(0,i.default)(e,this,r)}}class ISO_8859_1 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new NGramsPlusLang("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new NGramsPlusLang("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new NGramsPlusLang("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new NGramsPlusLang("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new NGramsPlusLang("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new NGramsPlusLang("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new NGramsPlusLang("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new NGramsPlusLang("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new NGramsPlusLang("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new NGramsPlusLang("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(e){return e&&e.c1Bytes?"windows-1252":"ISO-8859-1"}}t.ISO_8859_1=ISO_8859_1;class ISO_8859_2 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new NGramsPlusLang("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new NGramsPlusLang("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new NGramsPlusLang("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new NGramsPlusLang("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(e){return e&&e.c1Bytes?"windows-1250":"ISO-8859-2"}}t.ISO_8859_2=ISO_8859_2;class ISO_8859_5 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}}t.ISO_8859_5=ISO_8859_5;class ISO_8859_6 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}}t.ISO_8859_6=ISO_8859_6;class ISO_8859_7 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(e){return e&&e.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}}t.ISO_8859_7=ISO_8859_7;class ISO_8859_8 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new NGramsPlusLang("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new NGramsPlusLang("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(e){return e&&e.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}}t.ISO_8859_8=ISO_8859_8;class ISO_8859_9 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(e){return e&&e.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}}t.ISO_8859_9=ISO_8859_9;class windows_1251 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}}t.windows_1251=windows_1251;class windows_1256 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}}t.windows_1256=windows_1256;class KOI8_R extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}}t.KOI8_R=KOI8_R},6520:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.UTF_32LE=t.UTF_32BE=t.UTF_16LE=t.UTF_16BE=void 0;const i=n(r(1644));class UTF_16BE{name(){return"UTF-16BE"}match(e){const t=e.rawInput;if(t.length>=2&&(t[0]&255)==254&&(t[1]&255)==255){return(0,i.default)(e,this,100)}return null}}t.UTF_16BE=UTF_16BE;class UTF_16LE{name(){return"UTF-16LE"}match(e){const t=e.rawInput;if(t.length>=2&&(t[0]&255)==255&&(t[1]&255)==254){if(t.length>=4&&t[2]==0&&t[3]==0){return null}return(0,i.default)(e,this,100)}return null}}t.UTF_16LE=UTF_16LE;class UTF_32{name(){return"UTF-32"}getChar(e,t){return-1}match(e){let t=0,r=0,n=false,o=0;const s=e.rawLen/4*4;const a=e.rawInput;if(s==0){return null}if(this.getChar(a,0)==65279){n=true}for(let e=0;e<s;e+=4){const n=this.getChar(a,e);if(n<0||n>=1114111||n>=55296&&n<=57343){r+=1}else{t+=1}}if(n&&r==0){o=100}else if(n&&t>r*10){o=80}else if(t>3&&r==0){o=100}else if(t>0&&r==0){o=80}else if(t>r*10){o=25}return o==0?null:(0,i.default)(e,this,o)}}class UTF_32BE extends UTF_32{name(){return"UTF-32BE"}getChar(e,t){return(e[t+0]&255)<<24|(e[t+1]&255)<<16|(e[t+2]&255)<<8|e[t+3]&255}}t.UTF_32BE=UTF_32BE;class UTF_32LE extends UTF_32{name(){return"UTF-32LE"}getChar(e,t){return(e[t+3]&255)<<24|(e[t+2]&255)<<16|(e[t+1]&255)<<8|e[t+0]&255}}t.UTF_32LE=UTF_32LE},764:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(1644));class Utf8{name(){return"UTF-8"}match(e){let t=false,r=0,n=0,o=0,s;const a=e.rawInput;if(e.rawLen>=3&&(a[0]&255)==239&&(a[1]&255)==187&&(a[2]&255)==191){t=true}for(let t=0;t<e.rawLen;t++){const i=a[t];if((i&128)==0)continue;if((i&224)==192){o=1}else if((i&240)==224){o=2}else if((i&248)==240){o=3}else{n++;if(n>5)break;o=0}for(;;){t++;if(t>=e.rawLen)break;if((a[t]&192)!=128){n++;break}if(--o==0){r++;break}}}s=0;if(t&&n==0)s=100;else if(t&&r>n*10)s=80;else if(r>3&&n==0)s=100;else if(r>0&&n==0)s=80;else if(r==0&&n==0)s=10;else if(r>n*10)s=25;else return null;return(0,i.default)(e,this,s)}}t["default"]=Utf8},7401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});let n;t["default"]=()=>{if(true&&typeof e.exports==="object"){n=n?n:r(9896);return n}throw new Error("File system is not available")}},629:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.detectFileSync=t.detectFile=t.analyse=t.detect=void 0;const a=s(r(7401));const u=s(r(3080));const c=s(r(764));const l=o(r(6520));const f=o(r(846));const d=o(r(4172));const h=o(r(2348));const p=r(1680);const b=[new c.default,new l.UTF_16BE,new l.UTF_16LE,new l.UTF_32BE,new l.UTF_32LE,new f.sjis,new f.big5,new f.euc_jp,new f.euc_kr,new f.gb_18030,new h.ISO_2022_JP,new h.ISO_2022_KR,new h.ISO_2022_CN,new d.ISO_8859_1,new d.ISO_8859_2,new d.ISO_8859_5,new d.ISO_8859_6,new d.ISO_8859_7,new d.ISO_8859_8,new d.ISO_8859_9,new d.windows_1251,new d.windows_1256,new d.KOI8_R,new u.default];const detect=e=>{const r=(0,t.analyse)(e);return r.length>0?r[0].name:null};t.detect=detect;const analyse=e=>{if(!(0,p.isByteArray)(e)){throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array")}const t=[];for(let e=0;e<256;e++)t[e]=0;for(let r=e.length-1;r>=0;r--)t[e[r]&255]++;let r=false;for(let e=128;e<=159;e+=1){if(t[e]!==0){r=true;break}}const n={byteStats:t,c1Bytes:r,rawInput:e,rawLen:e.length,inputBytes:e,inputLen:e.length};const i=b.map((e=>e.match(n))).filter((e=>!!e)).sort(((e,t)=>t.confidence-e.confidence));return i};t.analyse=analyse;const detectFile=(e,r={})=>new Promise(((n,i)=>{let o;const s=(0,a.default)();const handler=(e,r)=>{if(o){s.closeSync(o)}if(e){i(e)}else{n((0,t.detect)(r))}};if(r&&r.sampleSize){o=s.openSync(e,"r");const t=Buffer.allocUnsafe(r.sampleSize);s.read(o,t,0,r.sampleSize,r.offset,(e=>{handler(e,t)}));return}s.readFile(e,handler)}));t.detectFile=detectFile;const detectFileSync=(e,r={})=>{const n=(0,a.default)();if(r&&r.sampleSize){const i=n.openSync(e,"r");const o=Buffer.allocUnsafe(r.sampleSize);n.readSync(i,o,0,r.sampleSize,r.offset);n.closeSync(i);return(0,t.detect)(o)}return(0,t.detect)(n.readFileSync(e))};t.detectFileSync=detectFileSync;t["default"]={analyse:t.analyse,detect:t.detect,detectFileSync:t.detectFileSync,detectFile:t.detectFile}},1644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=(e,t,r)=>({confidence:r,name:t.name(e),lang:t.language?t.language():undefined})},1680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isByteArray=void 0;const isByteArray=e=>{if(e==null||typeof e!="object")return false;return isFinite(e.length)&&e.length>=0};t.isByteArray=isByteArray},8695:(e,t,r)=>{"use strict";e.exports=cliWidth;function normalizeOpts(e){const t={defaultWidth:0,output:process.stdout,tty:r(2018)};if(!e){return t}Object.keys(t).forEach((function(r){if(!e[r]){e[r]=t[r]}}));return e}function cliWidth(e){const t=normalizeOpts(e);if(t.output.getWindowSize){return t.output.getWindowSize()[0]||t.defaultWidth}if(t.tty.getWindowSize){return t.tty.getWindowSize()[1]||t.defaultWidth}if(t.output.columns){return t.output.columns}if(process.env.CLI_WIDTH){const e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&e!==0){return e}}return t.defaultWidth}},6872:(e,t,r)=>{const n=r(4953);const i={};for(const e of Object.keys(n)){i[n[e]]=e}const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:r}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:r})}o.rgb.hsl=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.min(t,r,n);const o=Math.max(t,r,n);const s=o-i;let a;let u;if(o===i){a=0}else if(t===o){a=(r-n)/s}else if(r===o){a=2+(n-t)/s}else if(n===o){a=4+(t-r)/s}a=Math.min(a*60,360);if(a<0){a+=360}const c=(i+o)/2;if(o===i){u=0}else if(c<=.5){u=s/(o+i)}else{u=s/(2-o-i)}return[a,u*100,c*100]};o.rgb.hsv=function(e){let t;let r;let n;let i;let o;const s=e[0]/255;const a=e[1]/255;const u=e[2]/255;const c=Math.max(s,a,u);const l=c-Math.min(s,a,u);const diffc=function(e){return(c-e)/6/l+1/2};if(l===0){i=0;o=0}else{o=l/c;t=diffc(s);r=diffc(a);n=diffc(u);if(s===c){i=n-r}else if(a===c){i=1/3+t-n}else if(u===c){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,o*100,c*100]};o.rgb.hwb=function(e){const t=e[0];const r=e[1];let n=e[2];const i=o.rgb.hsl(e)[0];const s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.min(1-t,1-r,1-n);const o=(1-t-i)/(1-i)||0;const s=(1-r-i)/(1-i)||0;const a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=i[e];if(t){return t}let r=Infinity;let o;for(const t of Object.keys(n)){const i=n[t];const s=comparativeDistance(e,i);if(s<r){r=s;o=t}}return o};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){let t=e[0]/255;let r=e[1]/255;let n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805;const o=t*.2126+r*.7152+n*.0722;const s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0];let n=t[1];let i=t[2];r/=95.047;n/=100;i/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const s=116*n-16;const a=500*(r-n);const u=200*(n-i);return[s,a,u]};o.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;let i;let o;let s;if(r===0){s=n*255;return[s,s,s]}if(n<.5){i=n*(1+r)}else{i=n+r-n*r}const a=2*n-i;const u=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){s=a+(i-a)*6*o}else if(2*o<1){s=i}else if(3*o<2){s=a+(i-a)*(2/3-o)*6}else{s=a}u[e]=s*255}return u};o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100;let n=e[2]/100;let i=r;const o=Math.max(n,.01);n*=2;r*=n<=1?n:2-n;i*=o<=1?o:2-o;const s=(n+r)/2;const a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};o.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6;const o=t-Math.floor(t);const s=255*n*(1-r);const a=255*n*(1-r*o);const u=255*n*(1-r*(1-o));n*=255;switch(i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};o.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const n=e[2]/100;const i=Math.max(n,.01);let o;let s;s=(2-r)*n;const a=(2-r)*i;o=r*i;o/=a<=1?a:2-a;o=o||0;s/=2;return[t,o*100,s*100]};o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100;let n=e[2]/100;const i=r+n;let o;if(i>1){r/=i;n/=i}const s=Math.floor(6*t);const a=1-n;o=6*t-s;if((s&1)!==0){o=1-o}const u=r+o*(a-r);let c;let l;let f;switch(s){default:case 6:case 0:c=a;l=u;f=r;break;case 1:c=u;l=a;f=r;break;case 2:c=r;l=a;f=u;break;case 3:c=r;l=u;f=a;break;case 4:c=u;l=r;f=a;break;case 5:c=a;l=r;f=u;break}return[c*255,l*255,f*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;const i=e[3]/100;const o=1-Math.min(1,t*(1-i)+i);const s=1-Math.min(1,r*(1-i)+i);const a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;let i;let o;let s;i=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;s=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);return[i*255,o*255,s*255]};o.xyz.lab=function(e){let t=e[0];let r=e[1];let n=e[2];t/=95.047;r/=100;n/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16;const o=500*(t-r);const s=200*(r-n);return[i,o,s]};o.lab.xyz=function(e){const t=e[0];const r=e[1];const n=e[2];let i;let o;let s;o=(t+16)/116;i=r/500+o;s=o-n/200;const a=o**3;const u=i**3;const c=s**3;o=a>.008856?a:(o-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i*=95.047;o*=100;s*=108.883;return[i,o,s]};o.lab.lch=function(e){const t=e[0];const r=e[1];const n=e[2];let i;const o=Math.atan2(n,r);i=o*360/2/Math.PI;if(i<0){i+=360}const s=Math.sqrt(r*r+n*n);return[t,s,i]};o.lch.lab=function(e){const t=e[0];const r=e[1];const n=e[2];const i=n/360*2*Math.PI;const o=r*Math.cos(i);const s=r*Math.sin(i);return[t,o,s]};o.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let s=t===null?o.rgb.hsv(e)[2]:t;s=Math.round(s/50);if(s===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));if(s===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const r=e[1];const n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const r=(~~(e>50)+1)*.5;const n=(t&1)*r*255;const i=(t>>1&1)*r*255;const o=(t>>2&1)*r*255;return[n,i,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const r=Math.floor(e/36)/5*255;const n=Math.floor((t=e%36)/6)/5*255;const i=t%6/5*255;return[r,n,i]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let r=t[0];if(t[0].length===3){r=r.split("").map((e=>e+e)).join("")}const n=parseInt(r,16);const i=n>>16&255;const o=n>>8&255;const s=n&255;return[i,o,s]};o.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.max(Math.max(t,r),n);const o=Math.min(Math.min(t,r),n);const s=i-o;let a;let u;if(s<1){a=o/(1-s)}else{a=0}if(s<=0){u=0}else if(i===t){u=(r-n)/s%6}else if(i===r){u=2+(n-t)/s}else{u=4+(t-r)/s}u/=6;u%=1;return[u*360,s*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=r<.5?2*t*r:2*t*(1-r);let i=0;if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=t*r;let i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}const i=[0,0,0];const o=t%1*6;const s=o%1;const a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1;i[1]=s;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=s;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=s;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}u=(1-r)*n;return[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);let i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const n=r*(1-t)+.5*t;let i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=1-r;const i=n-t;let o=0;if(i<1){o=(n-i)/(1-i)}return[e[0],i*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const r=(t<<16)+(t<<8)+t;const n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},4185:(e,t,r)=>{const n=r(6872);const i=r(4200);const o={};const s=Object.keys(n);function wrapRaw(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}const n=e(t);if(typeof n==="object"){for(let e=n.length,t=0;t<e;t++){n[t]=Math.round(n[t])}}return n};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}s.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:n[e].channels});Object.defineProperty(o[e],"labels",{value:n[e].labels});const t=i(e);const r=Object.keys(t);r.forEach((r=>{const n=t[r];o[e][r]=wrapRounded(n);o[e][r].raw=wrapRaw(n)}))}));e.exports=o},4200:(e,t,r)=>{const n=r(6872);function buildGraph(){const e={};const t=Object.keys(n);for(let r=t.length,n=0;n<r;n++){e[t[n]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const r=[e];t[e].distance=0;while(r.length){const e=r.pop();const i=Object.keys(n[e]);for(let n=i.length,o=0;o<n;o++){const n=i[o];const s=t[n];if(s.distance===-1){s.distance=t[e].distance+1;s.parent=e;r.unshift(n)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){const r=[t[e].parent,e];let i=n[t[e].parent][e];let o=t[e].parent;while(t[o].parent){r.unshift(t[o].parent);i=link(n[t[o].parent][o],i);o=t[o].parent}i.conversion=r;return i}e.exports=function(e){const t=deriveBFS(e);const r={};const n=Object.keys(t);for(let e=n.length,i=0;i<e;i++){const e=n[i];const o=t[e];if(o.parent===null){continue}r[e]=wrapConversion(e,t)}return r}},4953:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6110:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(897)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let n;let i;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const i=n-(t||n);r.diff=i;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}o++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[o];t=i.call(r,n);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const s=r.log||createDebug.log;s.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(6110)}else{e.exports=r(5108)}},5108:(e,t,r)=>{const n=r(2018);const i=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const o=` ${i};1m${r} [0m`;t[0]=o+t[0].split("\n").join("\n"+o);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(897)(t);const{formatters:o}=e.exports;o.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},8889:(e,t,r)=>{const n=r(9896);const i=r(6928);const o=r(857);const s=r(6982);const a=r(56);const u=a.version;const c=["š encrypt with Dotenvx: https://dotenvx.com","š prevent committing .env to code: https://dotenvx.com/precommit","š prevent building .env in docker: https://dotenvx.com/prebuild","š” add observability to secrets: https://dotenvx.com/ops","š„ sync secrets across teammates & machines: https://dotenvx.com/ops","šļø backup and recover secrets: https://dotenvx.com/ops","ā
audit secrets and track compliance: https://dotenvx.com/ops","š add secrets lifecycle management: https://dotenvx.com/ops","š add access controls to secrets: https://dotenvx.com/ops","š ļø run anywhere with `dotenvx run -- yourcommand`","āļø specify custom .env file path with { path: '/custom/path/.env' }","āļø enable debug logging with { debug: true }","āļø override existing env vars with { override: true }","āļø suppress all logs with { quiet: true }","āļø write to custom object with { processEnv: myObject }","āļø load multiple .env files with { path: ['.env.local', '.env'] }"];function _getRandomTip(){return c[Math.floor(Math.random()*c.length)]}function parseBoolean(e){if(typeof e==="string"){return!["false","0","no","off",""].includes(e.toLowerCase())}return Boolean(e)}function supportsAnsi(){return process.stdout.isTTY}function dim(e){return supportsAnsi()?`[2m${e}[0m`:e}const l=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=l.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const i=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(i==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){e=e||{};const t=_vaultPath(e);e.path=t;const r=f.configDotenv(e);if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const i=n.length;let o;for(let e=0;e<i;e++){try{const t=n[e].trim();const i=_instructions(r,t);o=f.decrypt(i.ciphertext,i.key);break}catch(t){if(e+1>=i){throw t}}}return f.parse(o)}function _warn(e){console.error(`[dotenv@${u}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${u}][DEBUG] ${e}`)}function _log(e){console.log(`[dotenv@${u}] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const i=r.searchParams.get("environment");if(!i){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${i.toUpperCase()}`;const s=e.parsed[o];if(!s){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:s,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=i.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?i.join(o.homedir(),e.slice(1)):e}function _configVault(e){const t=parseBoolean(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug);const r=parseBoolean(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);if(t||!r){_log("Loading env from encrypted .env.vault")}const n=f._parseVault(e);let i=process.env;if(e&&e.processEnv!=null){i=e.processEnv}f.populate(i,n,e);return{parsed:n}}function configDotenv(e){const t=i.resolve(process.cwd(),".env");let r="utf8";let o=process.env;if(e&&e.processEnv!=null){o=e.processEnv}let s=parseBoolean(o.DOTENV_CONFIG_DEBUG||e&&e.debug);let a=parseBoolean(o.DOTENV_CONFIG_QUIET||e&&e.quiet);if(e&&e.encoding){r=e.encoding}else{if(s){_debug("No encoding is specified. UTF-8 is used by default")}}let u=[t];if(e&&e.path){if(!Array.isArray(e.path)){u=[_resolveHome(e.path)]}else{u=[];for(const t of e.path){u.push(_resolveHome(t))}}}let c;const l={};for(const t of u){try{const i=f.parse(n.readFileSync(t,{encoding:r}));f.populate(l,i,e)}catch(e){if(s){_debug(`Failed to load ${t} ${e.message}`)}c=e}}const d=f.populate(o,l,e);s=parseBoolean(o.DOTENV_CONFIG_DEBUG||s);a=parseBoolean(o.DOTENV_CONFIG_QUIET||a);if(s||!a){const e=Object.keys(d).length;const t=[];for(const e of u){try{const r=i.relative(process.cwd(),e);t.push(r)}catch(t){if(s){_debug(`Failed to load ${e} ${t.message}`)}c=t}}_log(`injecting env (${e}) from ${t.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`)}if(c){return{parsed:l,error:c}}else{return{parsed:l}}}function config(e){if(_dotenvKey(e).length===0){return f.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return f.configDotenv(e)}return f._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const i=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=s.createDecipheriv("aes-256-gcm",r,i);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const i=Boolean(r&&r.override);const o={};if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(i===true){e[r]=t[r];o[r]=t[r]}if(n){if(i===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r];o[r]=t[r]}}return o}const f={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=f.configDotenv;e.exports._configVault=f._configVault;e.exports._parseVault=f._parseVault;e.exports.config=f.config;e.exports.decrypt=f.decrypt;e.exports.parse=f.parse;e.exports.populate=f.populate;e.exports=f},872:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},3813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}},7978:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t._dbcs=DBCSCodec;var i=-1,o=-2,s=-10,a=-1e3,u=new Array(256),c=-1;for(var l=0;l<256;l++)u[l]=i;function DBCSCodec(e,t){this.encodingName=e.encodingName;if(!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=e.table();this.decodeTables=[];this.decodeTables[0]=u.slice(0);this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof e.gb18030==="function"){this.gb18030=e.gb18030();var s=this.decodeTables.length;this.decodeTables.push(u.slice(0));var c=this.decodeTables.length;this.decodeTables.push(u.slice(0));var l=this.decodeTables[0];for(var n=129;n<=254;n++){var f=this.decodeTables[a-l[n]];for(var d=48;d<=57;d++){if(f[d]===i){f[d]=a-s}else if(f[d]>a){throw new Error("gb18030 decode tables conflict at byte 2")}var h=this.decodeTables[a-f[d]];for(var p=129;p<=254;p++){if(h[p]===i){h[p]=a-c}else if(h[p]===a-c){continue}else if(h[p]>a){throw new Error("gb18030 decode tables conflict at byte 3")}var b=this.decodeTables[a-h[p]];for(var m=48;m<=57;m++){if(b[m]===i)b[m]=o}}}}}this.defaultCharUnicode=t.defaultCharUnicode;this.encodeTable=[];this.encodeTableSeq=[];var v={};if(e.encodeSkipVals)for(var n=0;n<e.encodeSkipVals.length;n++){var g=e.encodeSkipVals[n];if(typeof g==="number")v[g]=true;else for(var d=g.from;d<=g.to;d++)v[d]=true}this._fillEncodeTable(0,0,v);if(e.encodeAdd){for(var y in e.encodeAdd)if(Object.prototype.hasOwnProperty.call(e.encodeAdd,y))this._setEncodeChar(y.charCodeAt(0),e.encodeAdd[y])}this.defCharSB=this.encodeTable[0][t.defaultCharSingleByte.charCodeAt(0)];if(this.defCharSB===i)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===i)this.defCharSB="?".charCodeAt(0)}DBCSCodec.prototype.encoder=DBCSEncoder;DBCSCodec.prototype.decoder=DBCSDecoder;DBCSCodec.prototype._getDecodeTrieNode=function(e){var t=[];for(;e>0;e>>>=8)t.push(e&255);if(t.length==0)t.push(0);var r=this.decodeTables[0];for(var n=t.length-1;n>0;n--){var o=r[t[n]];if(o==i){r[t[n]]=a-this.decodeTables.length;this.decodeTables.push(r=u.slice(0))}else if(o<=a){r=this.decodeTables[a-o]}else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16))}return r};DBCSCodec.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16);var r=this._getDecodeTrieNode(t);t=t&255;for(var n=1;n<e.length;n++){var i=e[n];if(typeof i==="string"){for(var o=0;o<i.length;){var a=i.charCodeAt(o++);if(55296<=a&&a<56320){var u=i.charCodeAt(o++);if(56320<=u&&u<57344)r[t++]=65536+(a-55296)*1024+(u-56320);else throw new Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+e[0])}else if(4080<a&&a<=4095){var c=4095-a+2;var l=[];for(var f=0;f<c;f++)l.push(i.charCodeAt(o++));r[t++]=s-this.decodeTableSeq.length;this.decodeTableSeq.push(l)}else r[t++]=a}}else if(typeof i==="number"){var d=r[t-1]+1;for(var o=0;o<i;o++)r[t++]=d++}else throw new Error("Incorrect type '"+typeof i+"' given in "+this.encodingName+" at chunk "+e[0])}if(t>255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)};DBCSCodec.prototype._getEncodeBucket=function(e){var t=e>>8;if(this.encodeTable[t]===undefined)this.encodeTable[t]=u.slice(0);return this.encodeTable[t]};DBCSCodec.prototype._setEncodeChar=function(e,t){var r=this._getEncodeBucket(e);var n=e&255;if(r[n]<=s)this.encodeTableSeq[s-r[n]][c]=t;else if(r[n]==i)r[n]=t};DBCSCodec.prototype._setEncodeSequence=function(e,t){var r=e[0];var n=this._getEncodeBucket(r);var o=r&255;var a;if(n[o]<=s){a=this.encodeTableSeq[s-n[o]]}else{a={};if(n[o]!==i)a[c]=n[o];n[o]=s-this.encodeTableSeq.length;this.encodeTableSeq.push(a)}for(var u=1;u<e.length-1;u++){var l=a[r];if(typeof l==="object")a=l;else{a=a[r]={};if(l!==undefined)a[c]=l}}r=e[e.length-1];a[r]=t};DBCSCodec.prototype._fillEncodeTable=function(e,t,r){var n=this.decodeTables[e];var i=false;var o={};for(var u=0;u<256;u++){var c=n[u];var l=t+u;if(r[l])continue;if(c>=0){this._setEncodeChar(c,l);i=true}else if(c<=a){var f=a-c;if(!o[f]){var d=l<<8>>>0;if(this._fillEncodeTable(f,d,r))i=true;else o[f]=true}}else if(c<=s){this._setEncodeSequence(this.decodeTableSeq[s-c],l);i=true}}return i};function DBCSEncoder(e,t){this.leadSurrogate=-1;this.seqObj=undefined;this.encodeTable=t.encodeTable;this.encodeTableSeq=t.encodeTableSeq;this.defaultCharSingleByte=t.defCharSB;this.gb18030=t.gb18030}DBCSEncoder.prototype.write=function(e){var t=n.alloc(e.length*(this.gb18030?4:3)),r=this.leadSurrogate,o=this.seqObj,a=-1,u=0,l=0;while(true){if(a===-1){if(u==e.length)break;var f=e.charCodeAt(u++)}else{var f=a;a=-1}if(55296<=f&&f<57344){if(f<56320){if(r===-1){r=f;continue}else{r=f;f=i}}else{if(r!==-1){f=65536+(r-55296)*1024+(f-56320);r=-1}else{f=i}}}else if(r!==-1){a=f;f=i;r=-1}var d=i;if(o!==undefined&&f!=i){var h=o[f];if(typeof h==="object"){o=h;continue}else if(typeof h=="number"){d=h}else if(h==undefined){h=o[c];if(h!==undefined){d=h;a=f}else{}}o=undefined}else if(f>=0){var p=this.encodeTable[f>>8];if(p!==undefined)d=p[f&255];if(d<=s){o=this.encodeTableSeq[s-d];continue}if(d==i&&this.gb18030){var b=findIdx(this.gb18030.uChars,f);if(b!=-1){var d=this.gb18030.gbChars[b]+(f-this.gb18030.uChars[b]);t[l++]=129+Math.floor(d/12600);d=d%12600;t[l++]=48+Math.floor(d/1260);d=d%1260;t[l++]=129+Math.floor(d/10);d=d%10;t[l++]=48+d;continue}}}if(d===i)d=this.defaultCharSingleByte;if(d<256){t[l++]=d}else if(d<65536){t[l++]=d>>8;t[l++]=d&255}else if(d<16777216){t[l++]=d>>16;t[l++]=d>>8&255;t[l++]=d&255}else{t[l++]=d>>>24;t[l++]=d>>>16&255;t[l++]=d>>>8&255;t[l++]=d&255}}this.seqObj=o;this.leadSurrogate=r;return t.slice(0,l)};DBCSEncoder.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===undefined)return;var e=n.alloc(10),t=0;if(this.seqObj){var r=this.seqObj[c];if(r!==undefined){if(r<256){e[t++]=r}else{e[t++]=r>>8;e[t++]=r&255}}else{}this.seqObj=undefined}if(this.leadSurrogate!==-1){e[t++]=this.defaultCharSingleByte;this.leadSurrogate=-1}return e.slice(0,t)};DBCSEncoder.prototype.findIdx=findIdx;function DBCSDecoder(e,t){this.nodeIdx=0;this.prevBytes=[];this.decodeTables=t.decodeTables;this.decodeTableSeq=t.decodeTableSeq;this.defaultCharUnicode=t.defaultCharUnicode;this.gb18030=t.gb18030}DBCSDecoder.prototype.write=function(e){var t=n.alloc(e.length*2),r=this.nodeIdx,u=this.prevBytes,c=this.prevBytes.length,l=-this.prevBytes.length,f;for(var d=0,h=0;d<e.length;d++){var p=d>=0?e[d]:u[d+c];var f=this.decodeTables[r][p];if(f>=0){}else if(f===i){f=this.defaultCharUnicode.charCodeAt(0);d=l}else if(f===o){if(d>=3){var b=(e[d-3]-129)*12600+(e[d-2]-48)*1260+(e[d-1]-129)*10+(p-48)}else{var b=(u[d-3+c]-129)*12600+((d-2>=0?e[d-2]:u[d-2+c])-48)*1260+((d-1>=0?e[d-1]:u[d-1+c])-129)*10+(p-48)}var m=findIdx(this.gb18030.gbChars,b);f=this.gb18030.uChars[m]+b-this.gb18030.gbChars[m]}else if(f<=a){r=a-f;continue}else if(f<=s){var v=this.decodeTableSeq[s-f];for(var g=0;g<v.length-1;g++){f=v[g];t[h++]=f&255;t[h++]=f>>8}f=v[v.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+f+" at "+r+"/"+p);if(f>=65536){f-=65536;var y=55296|f>>10;t[h++]=y&255;t[h++]=y>>8;f=56320|f&1023}t[h++]=f&255;t[h++]=f>>8;r=0;l=d+1}this.nodeIdx=r;this.prevBytes=l>=0?Array.prototype.slice.call(e,l):u.slice(l+c).concat(Array.prototype.slice.call(e));return t.slice(0,h).toString("ucs2")};DBCSDecoder.prototype.end=function(){var e="";while(this.prevBytes.length>0){e+=this.defaultCharUnicode;var t=this.prevBytes.slice(1);this.prevBytes=[];this.nodeIdx=0;if(t.length>0)e+=this.write(t)}this.prevBytes=[];this.nodeIdx=0;return e};function findIdx(e,t){if(e[0]>t)return-1;var r=0,n=e.length;while(r<n-1){var i=r+(n-r+1>>1);if(e[i]<=t)r=i;else n=i}return r}},1802:(e,t,r)=>{"use strict";e.exports={shiftjis:{type:"_dbcs",table:function(){return r(679)},encodeAdd:{"Ā„":92,"ā¾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return r(6406)},encodeAdd:{"Ā„":92,"ā¾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return r(4488)}},gbk:{type:"_dbcs",table:function(){return r(4488).concat(r(5914))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return r(4488).concat(r(5914))},gb18030:function(){return r(9129)},encodeSkipVals:[128],encodeAdd:{"ā¬":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return r(1166)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return r(2324)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return r(2324).concat(r(3267))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},7585:(e,t,r)=>{"use strict";var n=[r(2356),r(2021),r(8771),r(8231),r(2473),r(7083),r(9487),r(7978),r(1802)];for(var i=0;i<n.length;i++){var o=n[i];for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s))t[s]=o[s]}},2356:(e,t,r)=>{"use strict";var n=r(2803).Buffer;e.exports={utf8:{type:"_internal",bomAware:true},cesu8:{type:"_internal",bomAware:true},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:true},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:InternalCodec};function InternalCodec(e,t){this.enc=e.encodingName;this.bomAware=e.bomAware;if(this.enc==="base64")this.encoder=InternalEncoderBase64;else if(this.enc==="cesu8"){this.enc="utf8";this.encoder=InternalEncoderCesu8;if(n.from("eda0bdedb2a9","hex").toString()!=="š©"){this.decoder=InternalDecoderCesu8;this.defaultCharUnicode=t.defaultCharUnicode}}}InternalCodec.prototype.encoder=InternalEncoder;InternalCodec.prototype.decoder=InternalDecoder;var i=r(3193).StringDecoder;if(!i.prototype.end)i.prototype.end=function(){};function InternalDecoder(e,t){this.decoder=new i(t.enc)}InternalDecoder.prototype.write=function(e){if(!n.isBuffer(e)){e=n.from(e)}return this.decoder.write(e)};InternalDecoder.prototype.end=function(){return this.decoder.end()};function InternalEncoder(e,t){this.enc=t.enc}InternalEncoder.prototype.write=function(e){return n.from(e,this.enc)};InternalEncoder.prototype.end=function(){};function InternalEncoderBase64(e,t){this.prevStr=""}InternalEncoderBase64.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;this.prevStr=e.slice(t);e=e.slice(0,t);return n.from(e,"base64")};InternalEncoderBase64.prototype.end=function(){return n.from(this.prevStr,"base64")};function InternalEncoderCesu8(e,t){}InternalEncoderCesu8.prototype.write=function(e){var t=n.alloc(e.length*3),r=0;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o<128)t[r++]=o;else if(o<2048){t[r++]=192+(o>>>6);t[r++]=128+(o&63)}else{t[r++]=224+(o>>>12);t[r++]=128+(o>>>6&63);t[r++]=128+(o&63)}}return t.slice(0,r)};InternalEncoderCesu8.prototype.end=function(){};function InternalDecoderCesu8(e,t){this.acc=0;this.contBytes=0;this.accBytes=0;this.defaultCharUnicode=t.defaultCharUnicode}InternalDecoderCesu8.prototype.write=function(e){var t=this.acc,r=this.contBytes,n=this.accBytes,i="";for(var o=0;o<e.length;o++){var s=e[o];if((s&192)!==128){if(r>0){i+=this.defaultCharUnicode;r=0}if(s<128){i+=String.fromCharCode(s)}else if(s<224){t=s&31;r=1;n=1}else if(s<240){t=s&15;r=2;n=1}else{i+=this.defaultCharUnicode}}else{if(r>0){t=t<<6|s&63;r--;n++;if(r===0){if(n===2&&t<128&&t>0)i+=this.defaultCharUnicode;else if(n===3&&t<2048)i+=this.defaultCharUnicode;else i+=String.fromCharCode(t)}}else{i+=this.defaultCharUnicode}}}this.acc=t;this.contBytes=r;this.accBytes=n;return i};InternalDecoderCesu8.prototype.end=function(){var e=0;if(this.contBytes>0)e+=this.defaultCharUnicode;return e}},2473:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t._sbcs=SBCSCodec;function SBCSCodec(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){var r="";for(var i=0;i<128;i++)r+=String.fromCharCode(i);e.chars=r+e.chars}this.decodeBuf=n.from(e.chars,"ucs2");var o=n.alloc(65536,t.defaultCharSingleByte.charCodeAt(0));for(var i=0;i<e.chars.length;i++)o[e.chars.charCodeAt(i)]=i;this.encodeBuf=o}SBCSCodec.prototype.encoder=SBCSEncoder;SBCSCodec.prototype.decoder=SBCSDecoder;function SBCSEncoder(e,t){this.encodeBuf=t.encodeBuf}SBCSEncoder.prototype.write=function(e){var t=n.alloc(e.length);for(var r=0;r<e.length;r++)t[r]=this.encodeBuf[e.charCodeAt(r)];return t};SBCSEncoder.prototype.end=function(){};function SBCSDecoder(e,t){this.decodeBuf=t.decodeBuf}SBCSDecoder.prototype.write=function(e){var t=this.decodeBuf;var r=n.alloc(e.length*2);var i=0,o=0;for(var s=0;s<e.length;s++){i=e[s]*2;o=s*2;r[o]=t[i];r[o+1]=t[i+1]}return r.toString("ucs2")};SBCSDecoder.prototype.end=function(){}},9487:e=>{"use strict";e.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"ā¬ļæ½ļæ½ļæ½ļæ½ā¦ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½āāāāā¢āāļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½Ā ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"ā¬ļæ½āļæ½āā¦ā ā”ļæ½ā°Å ā¹ÅŤŽŹ�āāāāā¢āāļæ½ā¢Å”āŗÅńžź ĖĖŤĦ§¨©Å«¬Ā®Ż°±ĖÅ“µ¶·¸Ä
Å»ĽĖľżÅĆĆÄĆĹÄĆÄĆÄĆÄĆĆÄÄÅÅĆĆÅĆĆÅÅ®ĆŰĆĆÅ¢ĆÅÔâÄäĺÄƧÄĆ©ÄĆ«ÄĆĆ®ÄÄÅÅóÓÅƶƷÅůúűüýţĖ"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ŠŠāŃāā¦ā ā”ā¬ā°Šā¹ŠŠŠŠŃāāāāā¢āāļæ½ā¢ŃāŗŃŃŃŃĀ ŠŃŠĀ¤Ņ¦§ŠĀ©ŠĀ«Ā¬ĀĀ®ŠĀ°Ā±ŠŃҵ¶·ŃāŃĀ»ŃŠ
ŃŃŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃ"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°Å ā¹Å���āāāāā¢āāĖā¢Å”āŗÅ�žŸ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆà ÔâãäÄæçèéêëìĆîïðñòóÓõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”ļæ½ā°ļæ½ā¹ļæ½ļæ½ļæ½ļæ½ļæ½āāāāā¢āāļæ½ā¢ļæ½āŗļæ½ļæ½ļæ½ļæ½Ā Ī
Ī£¤„¦§¨©�«¬Ā®ⰱ²³Īµ¶·ĪĪĪ»νĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪΠΔ�ΣΤ΄ΦΧΨΩΪΫάĪήίΰαβγΓεζηθικλμνξοĻĻĻĻĻĻ
ĻĻĻĻĻĻĻĻĻļæ½"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°Å ā¹Å����āāāāā¢āāĖā¢Å”āŗÅ��Ÿ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÄĆĆĆĆĆĆĆĆĆĆĆĆİÅĆà ÔâãäÄæçèéêëìĆîïÄñòóÓõö÷øùúûüıÅĆæ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°ļæ½ā¹ļæ½ļæ½ļæ½ļæ½ļæ½āāāāā¢āāĖā¢ļæ½āŗļæ½ļæ½ļæ½ļæ½Ā ”¢£āŖĀ„¦§¨©Ć«¬Ā®¯°±²³“µ¶·¸¹÷»¼½¾¿ְֱֲֳֵֶַָֹֺֻּֽ֓־ֿ××××װױײ׳ד�������××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×Ŗļæ½ļæ½āāļæ½"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"ā¬Ł¾āĘāā¦ā ā”Ėā°Ł¹ā¹ÅŚŚŚŚÆāāāāā¢āāŚ©ā¢ŚāŗÅāāŚŗĀ Ų¢£¤„¦§¨©ھ«¬Ā®¯°±²³“µ¶·¸¹Ų»¼½¾ŲŪŲ”Ų¢Ų£Ų¤Ų„Ų¦Ų§ŲØŲ©ŲŖŲ«Ų¬ŲŲ®ŲÆŲ°Ų±Ų²Ų³Ų“ŲµŲ¶ĆŲ·ŲøŲ¹ŲŗŁŁŁŁĆ ŁĆ¢Ł
ŁŁŁĆ§ĆØĆ©ĆŖĆ«ŁŁĆ®ĆÆŁŁŁŁĆ“ŁŁĆ·ŁĆ¹ŁĆ»Ć¼āāŪ"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"ā¬ļæ½āļæ½āā¦ā ā”ļæ½ā°ļæ½ā¹ļæ½ĀØĖĀøļæ½āāāāā¢āāļæ½ā¢ļæ½āŗļæ½ĀÆĖ� �¢£¤�¦§Ć©ū¬Ā®ð±²³“µ¶·ø¹Å»¼½¾æÄÄ®ÄÄĆĆ
ÄÄÄĆŹÄĢĶĪĻŠÅÅ
ĆÅĆĆĆŲÅÅÅŖĆŻŽĆÄ
ÄÆÄÄƤƄÄÄÄéźÄģķīļŔÅÅóÅõö÷ųÅÅūüżžĖ"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°ļæ½ā¹Å����āāāāā¢āāĖā¢ļæ½āŗÅ��Ÿ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆÄĆĆ
ĆĆĆĆĆĆĢĆĆĆÄĆĢĆĆĘ ĆĆĆĆĆĆĆĘÆĢĆà ÔâÄäÄæçèéêëĢĆîïÄṇ̃óÓƔö÷øùúûüưā«Ćæ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆà ÔâãäÄæçèéêëìĆîïðñòóÓõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄĖŤĽÅ§¨ŠÅŤŹĀŽŻ°Ä
ĖÅ“ľÅĖĀøÅ”ÅńźĖžżÅĆĆÄĆĹÄĆÄĆÄĆÄĆĆÄÄÅÅĆĆÅĆĆÅÅ®ĆŰĆĆÅ¢ĆÅÔâÄäĺÄƧÄĆ©ÄĆ«ÄĆĆ®ÄÄÅÅóÓÅƶƷÅůúűüýţĖ"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ĦĖ£¤�Ĥ§¨İÅÄÄ“Ā�ݰħ²³“µĄ·¸ıÅÄĵ½�żĆĆĆļæ½ĆÄÄĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆÄ ĆĆÄĆĆĆĆŬÅĆà Ôâ�äÄÄçèéêëìĆîï�ñòóÓĔö÷ÄùúûüÅÅĖ"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄĸŤĨϧ¨ŠÄĢŦĀޝ°Ä
ĖÅ“ĩļĖĀøÅ”ÄģŧÅžÅÄĆĆĆĆĆ
ĆÄ®ÄĆÄĆÄĆĆÄŖÄÅ
ÅĶĆĆĆĆĆŲĆĆĆÅØÅŖĆÄÔâãäÄæįÄĆ©ÄĆ«ÄĆƮīÄÅÅķÓõö÷øųúûüũūĖ"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ŠŠŠŠŠ
ŠŠŠŠŠŠŠĀŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃāŃŃŃŃŃŃŃŃŃŃŃѧŃŃ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ���¤�������ŲĀ�������������Ų���Ųļæ½Ų”Ų¢Ų£Ų¤Ų„Ų¦Ų§ŲØŲ©ŲŖŲ«Ų¬ŲŲ®ŲÆŲ°Ų±Ų²Ų³Ų“ŲµŲ¶Ų·ŲøŲ¹Ųŗļæ½ļæ½ļæ½ļæ½ļæ½ŁŁŁŁŁŁ
ŁŁŁŁŁŁŁŁŁŁŁŁŁļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ āāĀ£ā¬āÆĀ¦Ā§ĀØĀ©ĶŗĀ«Ā¬Ā�ⰱ²³ĪĪ
ĪĀ·ĪĪĪ»νĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪΠΔ�ΣΤ΄ΦΧΨΩΪΫάĪήίΰαβγΓεζηθικλμνξοĻĻĻĻĻĻ
ĻĻĻĻĻĻĻĻĻļæ½"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ �¢£¤„¦§¨©Ć«¬Ā®¯°±²³“µ¶·¸¹÷»¼½¾��������������������������������ā××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×Ŗļæ½ļæ½āāļæ½"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÄĆĆĆĆĆĆĆĆĆĆĆĆİÅĆà ÔâãäÄæçèéêëìĆîïÄñòóÓõö÷øùúûüıÅĆæ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄÄĢĪĨͧĻÄŠŦŽĀŪŰÄ
Äģīĩķ·ļÄŔŧžāÅ«ÅÄĆĆĆĆĆ
ĆÄ®ÄĆÄĆÄĆĆĆĆÅ
ÅĆĆĆĆÅØĆŲĆĆĆĆĆĆÄÔâãäÄæįÄĆ©ÄĆ«ÄĆîïðÅÅóÓõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ⢣¤ā¦§Ć©ū¬Ā®ð±²³āµ¶·ø¹Å»¼½¾æÄÄ®ÄÄĆĆ
ÄÄÄĆŹÄĢĶĪĻŠÅÅ
ĆÅĆĆĆŲÅÅÅŖĆŻŽĆÄ
ÄÆÄÄƤƄÄÄÄéźÄģķīļŔÅÅóÅõö÷ųÅÅūüżžā"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ įøįøĀ£ÄÄįøĀ§įŗĀ©įŗįøį»²Ā®ŸįøįøÄ Ä”į¹į¹Ā¶į¹įŗį¹įŗį¹ ỳįŗįŗ
į¹”ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÅ“ĆĆĆĆĆĆį¹ŖĆĆĆĆĆĆŶĆà ÔâãäÄæçèéêëìĆîïŵñòóÓõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£ā¬Ā„ЧŔ©ª«¬Ā®¯°±²³Žµ¶·ž¹º»ÅÅÅøĀæĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆà ÔâãäÄæçèéêëìĆîïðñòóÓõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄÄ
Åā¬āЧŔ©Č«ŹĀźŻ°±ÄÅŽā¶·žÄČĀ»ÅÅŸżĆĆĆÄĆÄĆĆĆĆĆĆĆĆĆĆÄÅĆĆĆÅĆÅŰĆĆĆĆÄČĆà ÔâÄƤÄæçèéêëìĆîïÄÅòóÓÅƶÅűùúûüÄČĆæ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆ¢£„ā§ĘĆ”ĆóúñĆªº¿⬽¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪΠΔΣΤ΄ΦΧΨΩαβγΓεζηθικλμνξοĻĻĻĻĻĻ
ĻĻĻāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāĻάĪĪ®ĻĪÆĻĻĻĻĪĪĪĪĪĪαā„ā¤ĪŖĪ«Ć·ā°āĀ·āāæĀ²ā Ā "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ÄüéÄäģÄÄÅÄÅÅīŹĆĆ
ĆƦĆÅöĢ¢ÅÅĆĆĆøĀ£ĆƤÄĪóŻżźā¦©®¬½¼Å«»āāāāā¤ÄÄÄÄā£āāāĮŠāāā“ā¬āāā¼Å²ÅŖāāā©ā¦ā āā¬Å½Ä
ÄÄÄįŔųūžāāāāāāāĆĆÅÅƵƵÅĶķĻļÅÄÅ
ā±⾶§÷ā°ā·¹³²ā Ā "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆĆøĀ£ĆĆĘĆ”ĆóúñĆªº¿®¬½¼”«»āāāāā¤ĆĆĆĀ©ā£āā⢄āāā“ā¬āāā¼Ć£Ćāāā©ā¦ā āā¬Ā¤Ć°ĆĆĆĆıĆĆĆāāāā¦ĆāĆĆĆĆƵƵþĆĆĆĆýÝ“±⾶§÷¸°¨·¹³²ā Ā "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ĆüéâäůÄƧÅĆ«ÅÅîŹĆÄĆĹĺÓöĽľÅÅĆĆŤńÅĆÄĆ”ĆóúÄÄ
ŽžÄĬźÄÅ«»āāāāā¤ĆĆÄÅā£āāāŻżāāā“ā¬āāā¼ÄÄāāā©ā¦ā āā¬Ā¤ÄÄÄĆÄÅĆĆÄāāāāŢŮāĆĆĆÅÅÅÅ Å”ÅĆÅŰýĆţ“ĀĖĖĖ˧÷¸°¨ĖűÅÅā Ā "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ŃŠŃŠŃŠŃŠŃŠ
ŃŠŃŠŃŠŃŠŃŠŃŠŃŠŃŠŃŠŃŠ®ŃŠŖŠ°ŠŠ±ŠŃŠ¦Š“ŠŠµŠŃФгŠĀ«Ā»āāāāā¤Ń
ЄиŠā£āāāŠ¹Šāāā“ā¬āāā¼ŠŗŠāāā©ā¦ā āā¬Ā¤Š»ŠŠ¼ŠŠ½ŠŠ¾ŠŠæāāāāŠŃāŠÆŃŠ ŃŠ”ŃŠ¢ŃŠ£Š¶ŠŠ²ŠŃЬāĀŃŠ«Š·ŠŃŠØŃŠŃŠ©ŃЧ§ā Ā "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×Ŗļæ½Ā£ļæ½Ć����������®¬½¼�«»āāāāā¤ļæ½ļæ½ļæ½Ā©ā£āā⢄āāā“ā¬āāā¼ļæ½ļæ½āāā©ā¦ā āā¬Ā¤ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½āāāā¦�ā������µ�������¯“±⾶§÷¸°¨·¹³²ā Ā "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîıĆĆ
ĆƦĆÓöòûùİĆĆĆøĀ£ĆÅÅĆ”ĆóúñĆÄÄ¿®¬½¼”«»āāāāā¤ĆĆĆĀ©ā£āā⢄āāā“ā¬āāā¼Ć£Ćāāā©ā¦ā āā¬Ā¤ĀŗĀŖĆĆĆļæ½ĆĆĆāāāā¦ĆāĆĆĆĆƵƵ�ĆĆĆĆìÿ¯“±�¾¶§÷¸°¨·¹³²ā Ā "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆĆøĀ£ĆĆĘĆ”ĆóúñĆªº¿®¬½¼”«»āāāāā¤ĆĆĆĀ©ā£āā⢄āāā“ā¬āāā¼Ć£Ćāāā©ā¦ā āā¬Ā¤Ć°ĆĆĆĆā¬ĆĆĆāāāā¦ĆāĆĆĆĆƵƵþĆĆĆĆýÝ“±⾶§÷¸°¨·¹³²ā Ā "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"Ćüéâãà ĆçêĆĆØĆĆƬĆĆĆĆĆÓõòĆùĆĆĆ¢£Ćā§ĆĆ”ĆóúñĆªº¿ì½¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèĆưĆĆĆ
ĆƦĆÓöþûĆýĆĆĆøĀ£Ćā§ĘĆ”ĆóúĆĆĆĆ¿⬽¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×ŖĀ¢Ā£Ā„ā§ĘĆ”ĆóúñĆªº¿⬽¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ĆüéâĆà ¶çêëèïîāƧĆĆĆĆ“ĆĆûù¤ĆĆ¢£ĆĆʦ“óú¨¸³¯Ć⬽¼¾«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$ŁŖ&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·āāāāāā¼ā¤ā¬āā“āāāāβāϱ½¼ā«»ﻷﻸ��ﻻﻼ� ĀļŗĀ£Ā¤ļŗļæ½ļæ½ļŗļŗļŗļŗŲļŗļŗ”ﺄ٠ٔ٢٣٤ل٦٧٨٩ļ»ŲﺱﺵﺹŲĀ¢ļŗļŗļŗļŗ
ļ»ļŗļŗļŗļŗļŗļŗļŗļŗ£ļŗ§ļŗ©ļŗ«ļŗļŗÆļŗ³ļŗ·ļŗ»ļŗæļ»ļ»
ļ»ļ»Ā¦Ā¬Ć·Ćļ»Łļ»ļ»ļ»ļ»ļ»£ļ»§ļ»«ļ»ļ»Æļ»³ļŗ½ļ»ļ»ļ»ļ»”ļ¹½Łļ»„ﻩﻬﻰﻲļ»ļ»ļ»µļ»¶ļ»ļ»ļ»±ā ļæ½"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆĆøĀ£Ćā§ĘĆ”ĆóúñĆªº¿⬽¼”«¤āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃъъъъѰāĀ·āā¤ā Ā "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ī�·¬¦āāĪāĪĪĪŖĪ��ĪΫ©Ī²³ά£ĪήίĻĪĻĻĪĪĪĪĪĪνĪĪ«»āāāāā¤ĪĪĪĪā£āāāĪĪāāā“ā¬āāā¼Ī Ī”āāā©ā¦ā āā¬Ī£Ī¤Ī„ΦΧΨΩαβγāāāāΓεāζηθικλμνξοĻĻĻĻĻαĻ
ĻϧĻĪ
°¨ĻĻΰĻā Ā "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§¨©ª«¬ĀĀ®ā¾Ā°Ā±Ā²Ā³Ā“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÅ ĆĆĆĆĆĆĆĆĆĆĆĆĆŽĆà ÔâãäÄæçèéêëìĆîïŔñòóÓõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ļŗĆ÷ﹱĀā āāāāāāﹹﹻﹽﹿﹷļŗļ»°ļ»³ļ»²ļ»ļ»ļ»ļ»¶ļ»øļ»ŗļ»¼Ā ¤ļŗļŗļŗļŗļŗļŗ£ŲĀﺧﺳ٠ٔ٢٣٤ل٦٧٨٩ﺷŲﺻﺿļ»Ųļ»Ų”Ų¢Ų£Ų¤Ų„Ų¦Ų§ŲØŲ©ŲŖŲ«Ų¬ŲŲ®ŲÆŲ°Ų±Ų²Ų³Ų“ŲµŲ¶Ų·ļ»Ų¹Ųŗļ»ļŗļŗļŗļ»ŁŁŁŁŁŁ
ŁŁŁŁŁŁŁŁŁŁŁŁŁļ»ļ»ļ»ļ£¼ļ»µļ»·ļ»¹ļ»»ļ»£ļ»§ļ»¬ļ»©ļæ½"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ŠŠŅŠŠ
ŠŠŠŠŠŠŠĀŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃāŃŃŅŃŃŃŃŃŃŃŃѧŃŃ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃŠŃŅŅŠŃŠŃŠŃĀ·āā¤ā Ā "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§Å©ª«¬Ā®¯°±²³Ÿµ¶·Å¹º»¼½¾¿ĆĆĆÄĆĆ
ĆĆĆĆĆĆĢĆĆĆÄĆĢĆĆĘ ĆĆĆĆĆĆĆĘÆĢĆà ÔâÄäÄæçèéêëĢĆîïÄṇ̃óÓƔö÷øùúûüưā«Ćæ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ąŗąŗąŗąŗąŗąŗŖąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗ”ąŗ¢ąŗ£ąŗ„ąŗ§ąŗ«ąŗąŗ®ļæ½ļæ½ļæ½ąŗÆąŗ°ąŗ²ąŗ³ąŗ“ąŗµąŗ¶ąŗ·ąŗøąŗ¹ąŗ¼ąŗ±ąŗ»ąŗ½ļæ½ļæ½ļæ½ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ļæ½ą»ą»āļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ļæ½ļæ½Ā¢Ā¬Ā¦ļæ½"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ą¹ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗą¹ą¹ą¹ā¬ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹Ā¢Ā¬Ā¦Ā "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"ā¬ĀĀĀĀā¦ĀĀĀĀĀĀĀĀĀĀĀāāāāā¢āāĀĀĀĀĀĀĀĀĀ ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£ā¬Ā„¦§Å©ª«¬Ā®¯°±²³Ÿµ¶·Å¹º»¼½¾¿ĆĆĆÄĆĆ
ĆĆĆĆĆĆĢĆĆĆÄĆĢĆĆĘ ĆĆĆĆĆĆĆĘÆĢĆà ÔâÄäÄæçèéêëĢĆîïÄṇ̃óÓƔö÷øùúûüưā«Ćæ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®Šā¢Ā“ĀØā ŽĆā±ā¤ā„āµāāāÅ”ā«ĀŖĀŗā¦Å¾ĆøĀæĀ”¬āĘāÄĀ«Äā¦Ā ĆĆĆÅÅÄāāāāāĆ·ā�©ā¤ā¹āŗĆĀ»āĀ·āāā°ĆÄĆÄĆĆĆĆĆĆĆÄĆĆĆĆıĖĖĀÆĻĆĖĀøĆƦĖ"},maccyrillic:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆā °¢£§ā¢Ā¶ŠĀ®Ā©ā¢ŠŃā ŠŃā±ā¤ā„ŃĀµāŠŠŃŠŃŠŃŠŃŃŠ
¬āĘāā«»ā¦Ā ŠŃŠŃŃāāāāāāĆ·āŠŃŠŃāŠŃŃŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃѤ"},macgreek:{type:"_sbcs",chars:"ù²Ć³ĆĆĪ
à âä΍çéèêë£ā¢Ć®ĆÆā¢Ā½ā°Ć“ö¦Āùûüā ĪĪĪĪĪĪ Ć®©ΣΪ§ā °Īαā¤ā„Ā„ĪĪĪĪĪĪĪΦΫΨΩάάĪĪ”āΤ«»ā¦Ā ΄ΧĪĪÅāāāāāāĆ·ĪĪĪĪĪήίĻĪĻαβĻΓεĻγηιξκλμνοĻĻĻĻĻĪøĻĻĻĻ
ζĻĻĪΰ�"},maciceland:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüư¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ĆưĆþý·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},macroman:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ā¹āŗļ¬ļ¬ā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},macromania:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ÄÅā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦ÄÅ¿”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ā¹āŗÅ¢Å£ā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},macthai:{type:"_sbcs",chars:"«»ā¦ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢āāļ¢ļæ½ā¢ļ¢ļ¢ļ¢
ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢āāļæ½Ā ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ีึืฺุู\ufeffāāāąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ā¢ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹Ā®Ā©ļæ½ļæ½ļæ½ļæ½"},macturkish:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸÄÄİıÅÅā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆļæ½ĖĖĀÆĖĖĖĀøĖĖĖ"},macukraine:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆā °Ņ£§ā¢Ā¶ŠĀ®Ā©ā¢ŠŃā ŠŃā±ā¤ā„ŃĀµŅŠŠŃŠŃŠŃŠŃŃŠ
¬āĘāā«»ā¦Ā ŠŃŠŃŃāāāāāāĆ·āŠŃŠŃāŠŃŃŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃѤ"},koi8r:{type:"_sbcs",chars:"āāāāāāāā¤ā¬ā“ā¼āāāāāāāāā ā āāāā¤ā„Ā ā”°²·÷āāāŃāāāāāāāāāāāāāā ā”Šā¢ā£ā¤ā„ā¦ā§āØā©āŖā«ā¬Ā©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},koi8u:{type:"_sbcs",chars:"āāāāāāāā¤ā¬ā“ā¼āāāāāāāāā ā āāāā¤ā„Ā ā”°²·÷āāāŃŃāŃŃāāāāāŅāāāā ā”ŠŠā£ŠŠā¦ā§āØā©āŖŅā¬Ā©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},koi8ru:{type:"_sbcs",chars:"āāāāāāāā¤ā¬ā“ā¼āāāāāāāāā ā āāāā¤ā„Ā ā”°²·÷āāāŃŃāŃŃāāāāāŅŃāāā ā”ŠŠā£ŠŠā¦ā§āØā©āŖŅŠĀ©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},koi8t:{type:"_sbcs",chars:"ŅŅāŅāā¦ā ā”ļæ½ā°Ņ³ā¹Ņ²Ņ·Ņ¶ļæ½Ņāāāāā¢āāļæ½ā¢ļæ½āŗļæ½ļæ½ļæ½ļæ½ļæ½ÓÆÓ®Ń¤ӣ¦§���«¬Ā®�°±²Šļæ½Ó¢Ā¶Ā·ļæ½āļæ½Ā»ļæ½ļæ½ļæ½Ā©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},armscii8:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ļæ½ÖÖ)(»«ā.Õ,-Öā¦ÕÕÕŌ±Õ”Ō²Õ¢Ō³Õ£Ō“Õ¤ŌµÕ„Ō¶Õ¦Ō·Õ§ŌøÕØŌ¹Õ©ŌŗÕŖŌ»Õ«Ō¼Õ¬Ō½ÕŌ¾Õ®ŌæÕÆÕÕ°ÕÕ±ÕÕ²ÕÕ³ÕÕ“Õ
ÕµÕÕ¶ÕÕ·ÕÕøÕÕ¹ÕÕŗÕÕ»ÕÕ¼ÕÕ½ÕÕ¾ÕÕæÕÖÕÖÕÖÕÖÕÖÕÖ
ÕÖÕļæ½"},rk1048:{type:"_sbcs",chars:"ŠŠāŃāā¦ā ā”ā¬ā°Šā¹ŠŅŅŗŠŃāāāāā¢āāļæ½ā¢ŃāŗŃŅһѠҰұÓ¤Ө¦§ŠĀ©Ņ«¬Ā®Ү°±ŠŃөµ¶·ŃāŅĀ»ÓŅ¢Ņ£ŅÆŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃ"},tcvn:{type:"_sbcs",chars:"\0ĆỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸĆồ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~Ćįŗ¢ĆĆįŗ įŗ¶įŗ¬Ćįŗŗįŗ¼Ćįŗøį»Ćį»ÄØĆį»Ćį»ĆĆį»į»į»į»į» į»į»¢ĆỦŨ ÄĆĆĆĘ ĘÆÄÄâêÓƔưÄįŗ°ĢĢĢĢ̣à ảãÔẔẲằẳẵắẓẮẦẨẪẤį»įŗ·įŗ§įŗ©įŗ«įŗ„įŗĆØį»įŗ»įŗ½Ć©įŗ¹į»į»į»
įŗæį»Ć¬į»į»įŗ¾į»Ä©Ćį»Ć²į»į»ĆµĆ³į»į»į»į»į»į»į»į»į»”į»į»£Ć¹į»į»§Å©Ćŗį»„ừį»į»Æį»©į»±į»³į»·į»¹Ć½į»µį»"},georgianacademy:{type:"_sbcs",chars:"ĀĀāĘāā¦ā ā”Ėā°Å ā¹ÅĀĀĀĀāāāāā¢āāĖā¢Å”āŗÅĀĀŸ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿įįįįįįįįįįįįįįįįį į”į¢į£į¤į„į¦į§įØį©įŖį«į¬įį®įÆį°į±į²į³į“įµį¶Ć§ĆØĆ©ĆŖĆ«Ć¬ĆîïðñòóÓõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"ĀĀāĘāā¦ā ā”Ėā°Å ā¹ÅĀĀĀĀāāāāā¢āāĖā¢Å”āŗÅĀĀŸ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿įįįįįįįį±įįįįįįį²įįįį į”į¢į³į£į¤į„į¦į§įØį©įŖį«į¬įį®į“įÆį°įµĆ¦Ć§ĆØĆ©ĆŖĆ«Ć¬ĆîïðñòóÓõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ŅŅÓ®Ņāā¦Ņ¶Ņ®Ņ²ŅÆŅ ӢҢŅŅŗŅøŅāāāāā¢āāҳҷҔӣңŅһҹ ŠŃŠÓØŅҰ§ŠĀ©Ó«¬ӯ®Ņ°ұŠŃŅө¶·ŃāÓĀ»ŃŅŖŅ«ŅŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃ"},viscii:{type:"_sbcs",chars:"\0ẲẓẪ\b\t\n\v\f\rỶỸồ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾį»į»į»į»į»į»į»į»į»į»¢į»į»į»į»į»į»į»į»¦ÅØį»¤į»²ĆắằặẄầẩįŗįŗ½įŗ¹įŗæį»į»į»
į»į»į»į»į»į» Ę į»į»į»į»į»°į»Øį»Ŗį»¬Ę”į»ĘÆĆĆĆĆįŗ¢ÄẳẵĆĆĆįŗŗĆĆĨỳÄứĆĆĆẔỷừį»ĆĆỹỵĆỔưà ÔâãảÄữẫèéêẻìĆÄ©į»ÄựòóÓõį»į»į»„ùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#Ā„%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}ā¾ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[Ā„]^_`abcdefghijklmnopqrstuvwxyz{|}ā¾ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½"},hproman8:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ĆĆĆĆĆĆĆĀ“ĖĖĀØĖĆĆā¤ĀÆĆý°ĆƧĆñ”¿¤£„§Ę¢âêÓûÔéóúà èòùäëöüĆ
Ć®ĆĆÄøæĆƬĆĆĆĆÆĆĆĆĆĆ£ĆưĆĆĆĆĆõŠŔĆÅøĆæĆþ·µ¶¾ā¼½ªº«ā »±�"},macintosh:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ā¹āŗļ¬ļ¬ā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"}}},7083:e=>{"use strict";e.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ĆÄÄĆÄĆĆĆ”Ä
ÄƤÄÄÄ鏟ÄĆÄÄÄÄóÄÓöõúÄÄüā °Ä£§ā¢Ā¶Ć®©ā¢ÄĀØā ģĮįĪā¤ā„īĶāāÅĻļĽľĹĺÅ
ÅŬāÅÅā«»ā¦Ā ÅÅĆÅÅāāāāāāĆ·āÅÅÅÅā¹āŗÅÅÅÅ āāÅ”ÅÅĆŤńĆŽžŪĆĆūŮĆůŰűŲųĆýķŻÅżĢĖ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃъъъъѰāĀ·āāā¬ā Ā "},mik:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃāā“ā¬āāā¼ā£āāāā©ā¦ā āā¬āāāāāā¤ā§āāāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},cp720:{type:"_sbcs",chars:"ĀĀéâĀĆ ĀçêëèïîĀĀĀĀŁŁĆ“¤ŁĆ»Ć¹Ų”آأؤ£؄ئابةتثجŲخدذرزسؓص«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŲ¶Ų·ŲøŲ¹ŲŗŁĀµŁŁŁŁ
ŁŁŁŁŁā”ŁŁŁŁŁŁā°āĀ·āāæĀ²ā Ā "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},8771:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t.utf16be=Utf16BECodec;function Utf16BECodec(){}Utf16BECodec.prototype.encoder=Utf16BEEncoder;Utf16BECodec.prototype.decoder=Utf16BEDecoder;Utf16BECodec.prototype.bomAware=true;function Utf16BEEncoder(){}Utf16BEEncoder.prototype.write=function(e){var t=n.from(e,"ucs2");for(var r=0;r<t.length;r+=2){var i=t[r];t[r]=t[r+1];t[r+1]=i}return t};Utf16BEEncoder.prototype.end=function(){};function Utf16BEDecoder(){this.overflowByte=-1}Utf16BEDecoder.prototype.write=function(e){if(e.length==0)return"";var t=n.alloc(e.length+1),r=0,i=0;if(this.overflowByte!==-1){t[0]=e[0];t[1]=this.overflowByte;r=1;i=2}for(;r<e.length-1;r+=2,i+=2){t[i]=e[r+1];t[i+1]=e[r]}this.overflowByte=r==e.length-1?e[e.length-1]:-1;return t.slice(0,i).toString("ucs2")};Utf16BEDecoder.prototype.end=function(){this.overflowByte=-1};t.utf16=Utf16Codec;function Utf16Codec(e,t){this.iconv=t}Utf16Codec.prototype.encoder=Utf16Encoder;Utf16Codec.prototype.decoder=Utf16Decoder;function Utf16Encoder(e,t){e=e||{};if(e.addBOM===undefined)e.addBOM=true;this.encoder=t.iconv.getEncoder("utf-16le",e)}Utf16Encoder.prototype.write=function(e){return this.encoder.write(e)};Utf16Encoder.prototype.end=function(){return this.encoder.end()};function Utf16Decoder(e,t){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=e||{};this.iconv=t.iconv}Utf16Decoder.prototype.write=function(e){if(!this.decoder){this.initialBufs.push(e);this.initialBufsLen+=e.length;if(this.initialBufsLen<16)return"";var t=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);var r="";for(var n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);this.initialBufs.length=this.initialBufsLen=0;return r}return this.decoder.write(e)};Utf16Decoder.prototype.end=function(){if(!this.decoder){var e=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);var t="";for(var r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();if(n)t+=n;this.initialBufs.length=this.initialBufsLen=0;return t}return this.decoder.end()};function detectEncoding(e,t){var r=[];var n=0;var i=0,o=0;e:for(var s=0;s<e.length;s++){var a=e[s];for(var u=0;u<a.length;u++){r.push(a[u]);if(r.length===2){if(n===0){if(r[0]===255&&r[1]===254)return"utf-16le";if(r[0]===254&&r[1]===255)return"utf-16be"}if(r[0]===0&&r[1]!==0)o++;if(r[0]!==0&&r[1]===0)i++;r.length=0;n++;if(n>=100){break e}}}}if(o>i)return"utf-16be";if(o<i)return"utf-16le";return t||"utf-16le"}},2021:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t._utf32=Utf32Codec;function Utf32Codec(e,t){this.iconv=t;this.bomAware=true;this.isLE=e.isLE}t.utf32le={type:"_utf32",isLE:true};t.utf32be={type:"_utf32",isLE:false};t.ucs4le="utf32le";t.ucs4be="utf32be";Utf32Codec.prototype.encoder=Utf32Encoder;Utf32Codec.prototype.decoder=Utf32Decoder;function Utf32Encoder(e,t){this.isLE=t.isLE;this.highSurrogate=0}Utf32Encoder.prototype.write=function(e){var t=n.from(e,"ucs2");var r=n.alloc(t.length*2);var i=this.isLE?r.writeUInt32LE:r.writeUInt32BE;var o=0;for(var s=0;s<t.length;s+=2){var a=t.readUInt16LE(s);var u=55296<=a&&a<56320;var c=56320<=a&&a<57344;if(this.highSurrogate){if(u||!c){i.call(r,this.highSurrogate,o);o+=4}else{var l=(this.highSurrogate-55296<<10|a-56320)+65536;i.call(r,l,o);o+=4;this.highSurrogate=0;continue}}if(u)this.highSurrogate=a;else{i.call(r,a,o);o+=4;this.highSurrogate=0}}if(o<r.length)r=r.slice(0,o);return r};Utf32Encoder.prototype.end=function(){if(!this.highSurrogate)return;var e=n.alloc(4);if(this.isLE)e.writeUInt32LE(this.highSurrogate,0);else e.writeUInt32BE(this.highSurrogate,0);this.highSurrogate=0;return e};function Utf32Decoder(e,t){this.isLE=t.isLE;this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0);this.overflow=[]}Utf32Decoder.prototype.write=function(e){if(e.length===0)return"";var t=0;var r=0;var i=n.alloc(e.length+4);var o=0;var s=this.isLE;var a=this.overflow;var u=this.badChar;if(a.length>0){for(;t<e.length&&a.length<4;t++)a.push(e[t]);if(a.length===4){if(s){r=a[t]|a[t+1]<<8|a[t+2]<<16|a[t+3]<<24}else{r=a[t+3]|a[t+2]<<8|a[t+1]<<16|a[t]<<24}a.length=0;o=_writeCodepoint(i,o,r,u)}}for(;t<e.length-3;t+=4){if(s){r=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}else{r=e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24}o=_writeCodepoint(i,o,r,u)}for(;t<e.length;t++){a.push(e[t])}return i.slice(0,o).toString("ucs2")};function _writeCodepoint(e,t,r,n){if(r<0||r>1114111){r=n}if(r>=65536){r-=65536;var i=55296|r>>10;e[t++]=i&255;e[t++]=i>>8;var r=56320|r&1023}e[t++]=r&255;e[t++]=r>>8;return t}Utf32Decoder.prototype.end=function(){this.overflow.length=0};t.utf32=Utf32AutoCodec;t.ucs4="utf32";function Utf32AutoCodec(e,t){this.iconv=t}Utf32AutoCodec.prototype.encoder=Utf32AutoEncoder;Utf32AutoCodec.prototype.decoder=Utf32AutoDecoder;function Utf32AutoEncoder(e,t){e=e||{};if(e.addBOM===undefined)e.addBOM=true;this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}Utf32AutoEncoder.prototype.write=function(e){return this.encoder.write(e)};Utf32AutoEncoder.prototype.end=function(){return this.encoder.end()};function Utf32AutoDecoder(e,t){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=e||{};this.iconv=t.iconv}Utf32AutoDecoder.prototype.write=function(e){if(!this.decoder){this.initialBufs.push(e);this.initialBufsLen+=e.length;if(this.initialBufsLen<32)return"";var t=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);var r="";for(var n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);this.initialBufs.length=this.initialBufsLen=0;return r}return this.decoder.write(e)};Utf32AutoDecoder.prototype.end=function(){if(!this.decoder){var e=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);var t="";for(var r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();if(n)t+=n;this.initialBufs.length=this.initialBufsLen=0;return t}return this.decoder.end()};function detectEncoding(e,t){var r=[];var n=0;var i=0,o=0;var s=0,a=0;e:for(var u=0;u<e.length;u++){var c=e[u];for(var l=0;l<c.length;l++){r.push(c[l]);if(r.length===4){if(n===0){if(r[0]===255&&r[1]===254&&r[2]===0&&r[3]===0){return"utf-32le"}if(r[0]===0&&r[1]===0&&r[2]===254&&r[3]===255){return"utf-32be"}}if(r[0]!==0||r[1]>16)o++;if(r[3]!==0||r[2]>16)i++;if(r[0]===0&&r[1]===0&&(r[2]!==0||r[3]!==0))a++;if((r[0]!==0||r[1]!==0)&&r[2]===0&&r[3]===0)s++;r.length=0;n++;if(n>=100){break e}}}}if(a-o>s-i)return"utf-32be";if(a-o<s-i)return"utf-32le";return t||"utf-32le"}},8231:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t.utf7=Utf7Codec;t.unicode11utf7="utf7";function Utf7Codec(e,t){this.iconv=t}Utf7Codec.prototype.encoder=Utf7Encoder;Utf7Codec.prototype.decoder=Utf7Decoder;Utf7Codec.prototype.bomAware=true;var i=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Utf7Encoder(e,t){this.iconv=t.iconv}Utf7Encoder.prototype.write=function(e){return n.from(e.replace(i,function(e){return"+"+(e==="+"?"":this.iconv.encode(e,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Utf7Encoder.prototype.end=function(){};function Utf7Decoder(e,t){this.iconv=t.iconv;this.inBase64=false;this.base64Accum=""}var o=/[A-Za-z0-9\/+]/;var s=[];for(var a=0;a<256;a++)s[a]=o.test(String.fromCharCode(a));var u="+".charCodeAt(0),c="-".charCodeAt(0),l="&".charCodeAt(0);Utf7Decoder.prototype.write=function(e){var t="",r=0,i=this.inBase64,o=this.base64Accum;for(var a=0;a<e.length;a++){if(!i){if(e[a]==u){t+=this.iconv.decode(e.slice(r,a),"ascii");r=a+1;i=true}}else{if(!s[e[a]]){if(a==r&&e[a]==c){t+="+"}else{var l=o+this.iconv.decode(e.slice(r,a),"ascii");t+=this.iconv.decode(n.from(l,"base64"),"utf16-be")}if(e[a]!=c)a--;r=a+1;i=false;o=""}}}if(!i){t+=this.iconv.decode(e.slice(r),"ascii")}else{var l=o+this.iconv.decode(e.slice(r),"ascii");var f=l.length-l.length%8;o=l.slice(f);l=l.slice(0,f);t+=this.iconv.decode(n.from(l,"base64"),"utf16-be")}this.inBase64=i;this.base64Accum=o;return t};Utf7Decoder.prototype.end=function(){var e="";if(this.inBase64&&this.base64Accum.length>0)e=this.iconv.decode(n.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return e};t.utf7imap=Utf7IMAPCodec;function Utf7IMAPCodec(e,t){this.iconv=t}Utf7IMAPCodec.prototype.encoder=Utf7IMAPEncoder;Utf7IMAPCodec.prototype.decoder=Utf7IMAPDecoder;Utf7IMAPCodec.prototype.bomAware=true;function Utf7IMAPEncoder(e,t){this.iconv=t.iconv;this.inBase64=false;this.base64Accum=n.alloc(6);this.base64AccumIdx=0}Utf7IMAPEncoder.prototype.write=function(e){var t=this.inBase64,r=this.base64Accum,i=this.base64AccumIdx,o=n.alloc(e.length*5+10),s=0;for(var a=0;a<e.length;a++){var u=e.charCodeAt(a);if(32<=u&&u<=126){if(t){if(i>0){s+=o.write(r.slice(0,i).toString("base64").replace(/\//g,",").replace(/=+$/,""),s);i=0}o[s++]=c;t=false}if(!t){o[s++]=u;if(u===l)o[s++]=c}}else{if(!t){o[s++]=l;t=true}if(t){r[i++]=u>>8;r[i++]=u&255;if(i==r.length){s+=o.write(r.toString("base64").replace(/\//g,","),s);i=0}}}}this.inBase64=t;this.base64AccumIdx=i;return o.slice(0,s)};Utf7IMAPEncoder.prototype.end=function(){var e=n.alloc(10),t=0;if(this.inBase64){if(this.base64AccumIdx>0){t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t);this.base64AccumIdx=0}e[t++]=c;this.inBase64=false}return e.slice(0,t)};function Utf7IMAPDecoder(e,t){this.iconv=t.iconv;this.inBase64=false;this.base64Accum=""}var f=s.slice();f[",".charCodeAt(0)]=true;Utf7IMAPDecoder.prototype.write=function(e){var t="",r=0,i=this.inBase64,o=this.base64Accum;for(var s=0;s<e.length;s++){if(!i){if(e[s]==l){t+=this.iconv.decode(e.slice(r,s),"ascii");r=s+1;i=true}}else{if(!f[e[s]]){if(s==r&&e[s]==c){t+="&"}else{var a=o+this.iconv.decode(e.slice(r,s),"ascii").replace(/,/g,"/");t+=this.iconv.decode(n.from(a,"base64"),"utf16-be")}if(e[s]!=c)s--;r=s+1;i=false;o=""}}}if(!i){t+=this.iconv.decode(e.slice(r),"ascii")}else{var a=o+this.iconv.decode(e.slice(r),"ascii").replace(/,/g,"/");var u=a.length-a.length%8;o=a.slice(u);a=a.slice(0,u);t+=this.iconv.decode(n.from(a,"base64"),"utf16-be")}this.inBase64=i;this.base64Accum=o;return t};Utf7IMAPDecoder.prototype.end=function(){var e="";if(this.inBase64&&this.base64Accum.length>0)e=this.iconv.decode(n.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return e}},4250:(e,t)=>{"use strict";var r="\ufeff";t.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(e,t){this.encoder=e;this.addBOM=true}PrependBOMWrapper.prototype.write=function(e){if(this.addBOM){e=r+e;this.addBOM=false}return this.encoder.write(e)};PrependBOMWrapper.prototype.end=function(){return this.encoder.end()};t.StripBOM=StripBOMWrapper;function StripBOMWrapper(e,t){this.decoder=e;this.pass=false;this.options=t||{}}StripBOMWrapper.prototype.write=function(e){var t=this.decoder.write(e);if(this.pass||!t)return t;if(t[0]===r){t=t.slice(1);if(typeof this.options.stripBOM==="function")this.options.stripBOM()}this.pass=true;return t};StripBOMWrapper.prototype.end=function(){return this.decoder.end()}},1748:(e,t,r)=>{"use strict";var n=r(2803).Buffer;var i=r(4250),o=e.exports;o.encodings=null;o.defaultCharUnicode="ļæ½";o.defaultCharSingleByte="?";o.encode=function encode(e,t,r){e=""+(e||"");var i=o.getEncoder(t,r);var s=i.write(e);var a=i.end();return a&&a.length>0?n.concat([s,a]):s};o.decode=function decode(e,t,r){if(typeof e==="string"){if(!o.skipDecodeWarning){console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");o.skipDecodeWarning=true}e=n.from(""+(e||""),"binary")}var i=o.getDecoder(t,r);var s=i.write(e);var a=i.end();return a?s+a:s};o.encodingExists=function encodingExists(e){try{o.getCodec(e);return true}catch(e){return false}};o.toEncoding=o.encode;o.fromEncoding=o.decode;o._codecDataCache={};o.getCodec=function getCodec(e){if(!o.encodings)o.encodings=r(7585);var t=o._canonicalizeEncoding(e);var n={};while(true){var i=o._codecDataCache[t];if(i)return i;var s=o.encodings[t];switch(typeof s){case"string":t=s;break;case"object":for(var a in s)n[a]=s[a];if(!n.encodingName)n.encodingName=t;t=s.type;break;case"function":if(!n.encodingName)n.encodingName=t;i=new s(n,o);o._codecDataCache[n.encodingName]=i;return i;default:throw new Error("Encoding not recognized: '"+e+"' (searched as: '"+t+"')")}}};o._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};o.getEncoder=function getEncoder(e,t){var r=o.getCodec(e),n=new r.encoder(t,r);if(r.bomAware&&t&&t.addBOM)n=new i.PrependBOM(n,t);return n};o.getDecoder=function getDecoder(e,t){var r=o.getCodec(e),n=new r.decoder(t,r);if(r.bomAware&&!(t&&t.stripBOM===false))n=new i.StripBOM(n,t);return n};o.enableStreamingAPI=function enableStreamingAPI(e){if(o.supportsStreams)return;var t=r(2281)(e);o.IconvLiteEncoderStream=t.IconvLiteEncoderStream;o.IconvLiteDecoderStream=t.IconvLiteDecoderStream;o.encodeStream=function encodeStream(e,t){return new o.IconvLiteEncoderStream(o.getEncoder(e,t),t)};o.decodeStream=function decodeStream(e,t){return new o.IconvLiteDecoderStream(o.getDecoder(e,t),t)};o.supportsStreams=true};var s;try{s=r(2203)}catch(e){}if(s&&s.Transform){o.enableStreamingAPI(s)}else{o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}}if(false){}},2281:(e,t,r)=>{"use strict";var n=r(2803).Buffer;e.exports=function(e){var t=e.Transform;function IconvLiteEncoderStream(e,r){this.conv=e;r=r||{};r.decodeStrings=false;t.call(this,r)}IconvLiteEncoderStream.prototype=Object.create(t.prototype,{constructor:{value:IconvLiteEncoderStream}});IconvLiteEncoderStream.prototype._transform=function(e,t,r){if(typeof e!="string")return r(new Error("Iconv encoding stream needs strings as its input."));try{var n=this.conv.write(e);if(n&&n.length)this.push(n);r()}catch(e){r(e)}};IconvLiteEncoderStream.prototype._flush=function(e){try{var t=this.conv.end();if(t&&t.length)this.push(t);e()}catch(t){e(t)}};IconvLiteEncoderStream.prototype.collect=function(e){var t=[];this.on("error",e);this.on("data",(function(e){t.push(e)}));this.on("end",(function(){e(null,n.concat(t))}));return this};function IconvLiteDecoderStream(e,r){this.conv=e;r=r||{};r.encoding=this.encoding="utf8";t.call(this,r)}IconvLiteDecoderStream.prototype=Object.create(t.prototype,{constructor:{value:IconvLiteDecoderStream}});IconvLiteDecoderStream.prototype._transform=function(e,t,r){if(!n.isBuffer(e)&&!(e instanceof Uint8Array))return r(new Error("Iconv decoding stream needs buffers as its input."));try{var i=this.conv.write(e);if(i&&i.length)this.push(i,this.encoding);r()}catch(e){r(e)}};IconvLiteDecoderStream.prototype._flush=function(e){try{var t=this.conv.end();if(t&&t.length)this.push(t,this.encoding);e()}catch(t){e(t)}};IconvLiteDecoderStream.prototype.collect=function(e){var t="";this.on("error",e);this.on("data",(function(e){t+=e}));this.on("end",(function(){e(null,t)}));return this};return{IconvLiteEncoderStream:IconvLiteEncoderStream,IconvLiteDecoderStream:IconvLiteDecoderStream}}},4519:e=>{"use strict";const isFullwidthCodePoint=e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false};e.exports=isFullwidthCodePoint;e.exports["default"]=isFullwidthCodePoint},744:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var o=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=i){return Math.round(e/i)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=i){return plural(e,o,i,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},8428:(e,t,r)=>{const n=r(2203);class MuteStream extends n{#e=null;constructor(e={}){super(e);this.writable=this.readable=true;this.muted=false;this.on("pipe",this._onpipe);this.replace=e.replace;this._prompt=e.prompt||null;this._hadControl=false}#t(e,t){if(this._dest){return this._dest[e]}if(this._src){return this._src[e]}return t}#r(e,...t){if(typeof this._dest?.[e]==="function"){this._dest[e](...t)}if(typeof this._src?.[e]==="function"){this._src[e](...t)}}get isTTY(){if(this.#e!==null){return this.#e}return this.#t("isTTY",false)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=true}unmute(){this.muted=false}_onpipe(e){this._src=e}pipe(e,t){this._dest=e;return super.pipe(e,t)}pause(){if(this._src){return this._src.pause()}}resume(){if(this._src){return this._src.resume()}}write(e){if(this.muted){if(!this.replace){return true}if(e.match(/^\u001b/)){if(e.indexOf(this._prompt)===0){e=e.slice(this._prompt.length);e=e.replace(/./g,this.replace);e=this._prompt+e}this._hadControl=true;return this.emit("data",e)}else{if(this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0){this._hadControl=false;this.emit("data",this._prompt);e=e.slice(this._prompt.length)}e=e.toString().replace(/./g,this.replace)}}this.emit("data",e)}end(e){if(this.muted){if(e&&this.replace){e=e.toString().replace(/./g,this.replace)}else{e=null}}if(e){this.emit("data",e)}this.emit("end")}destroy(...e){return this.#r("destroy",...e)}destroySoon(...e){return this.#r("destroySoon",...e)}close(...e){return this.#r("close",...e)}}e.exports=MuteStream},8312:e=>{function isPromise(e){return!!e&&(typeof e==="object"||typeof e==="function")&&typeof e.then==="function"}var t=e.exports=function(e,t,r="async"){if(typeof t==="string"){r=t;t=undefined}t=t||function(){};return function(){var n=arguments;var i=this;var o=new Promise((function(t,o){var s=false;const wrappedResolve=function(e){if(s){console.warn("Run-async promise already resolved.")}s=true;t(e)};var a=false;const wrappedReject=function(e){if(a){console.warn("Run-async promise already rejected.")}a=true;o(e)};var u=false;var c=false;var l=false;var doneFactory=function(){if(l){console.warn("Run-async async() called outside a valid run-async context, callback will be ignored.");return function(){}}if(c){console.warn("Run-async wrapped function (async) returned a promise.\nCalls to async() callback can have unexpected results.")}u=true;return function(e,t){if(e){wrappedReject(e)}else{wrappedResolve(t)}}};var f;if(i&&r&&Proxy){f=new Proxy(i,{get(e,t){if(t===r){if(t in e){console.warn(`${r} property is been shadowed by run-sync`)}return doneFactory}return Reflect.get(...arguments)}})}else{f={[r]:doneFactory}}var d=e.apply(f,Array.prototype.slice.call(n));if(u){if(isPromise(d)){console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve.")}}else{if(isPromise(d)){c=true;d.then(wrappedResolve,wrappedReject)}else{wrappedResolve(d)}}l=true}));o.then(t.bind(null,null),t);return o}};t.cb=function(e,r){return t((function(){var t=Array.prototype.slice.call(arguments);if(t.length===e.length-1){t.push(this.async())}return e.apply(this,t)}),r)}},4863:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0;t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0;t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0;t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var o=r(6692);Object.defineProperty(t,"Observable",{enumerable:true,get:function(){return o.Observable}});var s=r(2264);Object.defineProperty(t,"ConnectableObservable",{enumerable:true,get:function(){return s.ConnectableObservable}});var a=r(5609);Object.defineProperty(t,"observable",{enumerable:true,get:function(){return a.observable}});var u=r(3400);Object.defineProperty(t,"animationFrames",{enumerable:true,get:function(){return u.animationFrames}});var c=r(2357);Object.defineProperty(t,"Subject",{enumerable:true,get:function(){return c.Subject}});var l=r(279);Object.defineProperty(t,"BehaviorSubject",{enumerable:true,get:function(){return l.BehaviorSubject}});var f=r(9256);Object.defineProperty(t,"ReplaySubject",{enumerable:true,get:function(){return f.ReplaySubject}});var d=r(5889);Object.defineProperty(t,"AsyncSubject",{enumerable:true,get:function(){return d.AsyncSubject}});var h=r(7110);Object.defineProperty(t,"asap",{enumerable:true,get:function(){return h.asap}});Object.defineProperty(t,"asapScheduler",{enumerable:true,get:function(){return h.asapScheduler}});var p=r(5583);Object.defineProperty(t,"async",{enumerable:true,get:function(){return p.async}});Object.defineProperty(t,"asyncScheduler",{enumerable:true,get:function(){return p.asyncScheduler}});var b=r(64);Object.defineProperty(t,"queue",{enumerable:true,get:function(){return b.queue}});Object.defineProperty(t,"queueScheduler",{enumerable:true,get:function(){return b.queueScheduler}});var m=r(1968);Object.defineProperty(t,"animationFrame",{enumerable:true,get:function(){return m.animationFrame}});Object.defineProperty(t,"animationFrameScheduler",{enumerable:true,get:function(){return m.animationFrameScheduler}});var v=r(864);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:true,get:function(){return v.VirtualTimeScheduler}});Object.defineProperty(t,"VirtualAction",{enumerable:true,get:function(){return v.VirtualAction}});var g=r(3328);Object.defineProperty(t,"Scheduler",{enumerable:true,get:function(){return g.Scheduler}});var y=r(5208);Object.defineProperty(t,"Subscription",{enumerable:true,get:function(){return y.Subscription}});var _=r(2703);Object.defineProperty(t,"Subscriber",{enumerable:true,get:function(){return _.Subscriber}});var D=r(7166);Object.defineProperty(t,"Notification",{enumerable:true,get:function(){return D.Notification}});Object.defineProperty(t,"NotificationKind",{enumerable:true,get:function(){return D.NotificationKind}});var w=r(4424);Object.defineProperty(t,"pipe",{enumerable:true,get:function(){return w.pipe}});var C=r(1720);Object.defineProperty(t,"noop",{enumerable:true,get:function(){return C.noop}});var S=r(1418);Object.defineProperty(t,"identity",{enumerable:true,get:function(){return S.identity}});var E=r(65);Object.defineProperty(t,"isObservable",{enumerable:true,get:function(){return E.isObservable}});var O=r(436);Object.defineProperty(t,"lastValueFrom",{enumerable:true,get:function(){return O.lastValueFrom}});var k=r(7198);Object.defineProperty(t,"firstValueFrom",{enumerable:true,get:function(){return k.firstValueFrom}});var A=r(8775);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:true,get:function(){return A.ArgumentOutOfRangeError}});var P=r(1741);Object.defineProperty(t,"EmptyError",{enumerable:true,get:function(){return P.EmptyError}});var x=r(2069);Object.defineProperty(t,"NotFoundError",{enumerable:true,get:function(){return x.NotFoundError}});var T=r(3612);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:true,get:function(){return T.ObjectUnsubscribedError}});var F=r(8519);Object.defineProperty(t,"SequenceError",{enumerable:true,get:function(){return F.SequenceError}});var j=r(4176);Object.defineProperty(t,"TimeoutError",{enumerable:true,get:function(){return j.TimeoutError}});var M=r(4974);Object.defineProperty(t,"UnsubscriptionError",{enumerable:true,get:function(){return M.UnsubscriptionError}});var B=r(6919);Object.defineProperty(t,"bindCallback",{enumerable:true,get:function(){return B.bindCallback}});var I=r(9463);Object.defineProperty(t,"bindNodeCallback",{enumerable:true,get:function(){return I.bindNodeCallback}});var R=r(4253);Object.defineProperty(t,"combineLatest",{enumerable:true,get:function(){return R.combineLatest}});var L=r(8919);Object.defineProperty(t,"concat",{enumerable:true,get:function(){return L.concat}});var N=r(3125);Object.defineProperty(t,"connectable",{enumerable:true,get:function(){return N.connectable}});var U=r(3731);Object.defineProperty(t,"defer",{enumerable:true,get:function(){return U.defer}});var $=r(5458);Object.defineProperty(t,"empty",{enumerable:true,get:function(){return $.empty}});var W=r(6395);Object.defineProperty(t,"forkJoin",{enumerable:true,get:function(){return W.forkJoin}});var V=r(8687);Object.defineProperty(t,"from",{enumerable:true,get:function(){return V.from}});var q=r(4775);Object.defineProperty(t,"fromEvent",{enumerable:true,get:function(){return q.fromEvent}});var H=r(4237);Object.defineProperty(t,"fromEventPattern",{enumerable:true,get:function(){return H.fromEventPattern}});var G=r(9975);Object.defineProperty(t,"generate",{enumerable:true,get:function(){return G.generate}});var z=r(3719);Object.defineProperty(t,"iif",{enumerable:true,get:function(){return z.iif}});var K=r(8658);Object.defineProperty(t,"interval",{enumerable:true,get:function(){return K.interval}});var Y=r(6995);Object.defineProperty(t,"merge",{enumerable:true,get:function(){return Y.merge}});var J=r(2525);Object.defineProperty(t,"never",{enumerable:true,get:function(){return J.never}});var X=r(8482);Object.defineProperty(t,"of",{enumerable:true,get:function(){return X.of}});var Q=r(6756);Object.defineProperty(t,"onErrorResumeNext",{enumerable:true,get:function(){return Q.onErrorResumeNext}});var Z=r(822);Object.defineProperty(t,"pairs",{enumerable:true,get:function(){return Z.pairs}});var ee=r(673);Object.defineProperty(t,"partition",{enumerable:true,get:function(){return ee.partition}});var te=r(7446);Object.defineProperty(t,"race",{enumerable:true,get:function(){return te.race}});var re=r(3470);Object.defineProperty(t,"range",{enumerable:true,get:function(){return re.range}});var ne=r(2841);Object.defineProperty(t,"throwError",{enumerable:true,get:function(){return ne.throwError}});var ie=r(8914);Object.defineProperty(t,"timer",{enumerable:true,get:function(){return ie.timer}});var oe=r(2915);Object.defineProperty(t,"using",{enumerable:true,get:function(){return oe.using}});var se=r(9820);Object.defineProperty(t,"zip",{enumerable:true,get:function(){return se.zip}});var ae=r(1478);Object.defineProperty(t,"scheduled",{enumerable:true,get:function(){return ae.scheduled}});var ue=r(5458);Object.defineProperty(t,"EMPTY",{enumerable:true,get:function(){return ue.EMPTY}});var ce=r(2525);Object.defineProperty(t,"NEVER",{enumerable:true,get:function(){return ce.NEVER}});i(r(7516),t);var le=r(647);Object.defineProperty(t,"config",{enumerable:true,get:function(){return le.config}});var fe=r(3436);Object.defineProperty(t,"audit",{enumerable:true,get:function(){return fe.audit}});var de=r(7217);Object.defineProperty(t,"auditTime",{enumerable:true,get:function(){return de.auditTime}});var he=r(5805);Object.defineProperty(t,"buffer",{enumerable:true,get:function(){return he.buffer}});var pe=r(1442);Object.defineProperty(t,"bufferCount",{enumerable:true,get:function(){return pe.bufferCount}});var be=r(1896);Object.defineProperty(t,"bufferTime",{enumerable:true,get:function(){return be.bufferTime}});var me=r(165);Object.defineProperty(t,"bufferToggle",{enumerable:true,get:function(){return me.bufferToggle}});var ve=r(3261);Object.defineProperty(t,"bufferWhen",{enumerable:true,get:function(){return ve.bufferWhen}});var ge=r(5660);Object.defineProperty(t,"catchError",{enumerable:true,get:function(){return ge.catchError}});var ye=r(4031);Object.defineProperty(t,"combineAll",{enumerable:true,get:function(){return ye.combineAll}});var _e=r(6298);Object.defineProperty(t,"combineLatestAll",{enumerable:true,get:function(){return _e.combineLatestAll}});var De=r(809);Object.defineProperty(t,"combineLatestWith",{enumerable:true,get:function(){return De.combineLatestWith}});var we=r(5824);Object.defineProperty(t,"concatAll",{enumerable:true,get:function(){return we.concatAll}});var Ce=r(449);Object.defineProperty(t,"concatMap",{enumerable:true,get:function(){return Ce.concatMap}});var Se=r(6016);Object.defineProperty(t,"concatMapTo",{enumerable:true,get:function(){return Se.concatMapTo}});var Ee=r(3799);Object.defineProperty(t,"concatWith",{enumerable:true,get:function(){return Ee.concatWith}});var Oe=r(3201);Object.defineProperty(t,"connect",{enumerable:true,get:function(){return Oe.connect}});var ke=r(2372);Object.defineProperty(t,"count",{enumerable:true,get:function(){return ke.count}});var Ae=r(1704);Object.defineProperty(t,"debounce",{enumerable:true,get:function(){return Ae.debounce}});var Pe=r(7461);Object.defineProperty(t,"debounceTime",{enumerable:true,get:function(){return Pe.debounceTime}});var xe=r(7768);Object.defineProperty(t,"defaultIfEmpty",{enumerable:true,get:function(){return xe.defaultIfEmpty}});var Te=r(140);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return Te.delay}});var Fe=r(5184);Object.defineProperty(t,"delayWhen",{enumerable:true,get:function(){return Fe.delayWhen}});var je=r(595);Object.defineProperty(t,"dematerialize",{enumerable:true,get:function(){return je.dematerialize}});var Me=r(6623);Object.defineProperty(t,"distinct",{enumerable:true,get:function(){return Me.distinct}});var Be=r(8128);Object.defineProperty(t,"distinctUntilChanged",{enumerable:true,get:function(){return Be.distinctUntilChanged}});var Ie=r(7814);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:true,get:function(){return Ie.distinctUntilKeyChanged}});var Re=r(246);Object.defineProperty(t,"elementAt",{enumerable:true,get:function(){return Re.elementAt}});var Le=r(3026);Object.defineProperty(t,"endWith",{enumerable:true,get:function(){return Le.endWith}});var Ne=r(6008);Object.defineProperty(t,"every",{enumerable:true,get:function(){return Ne.every}});var Ue=r(4469);Object.defineProperty(t,"exhaust",{enumerable:true,get:function(){return Ue.exhaust}});var $e=r(186);Object.defineProperty(t,"exhaustAll",{enumerable:true,get:function(){return $e.exhaustAll}});var We=r(4419);Object.defineProperty(t,"exhaustMap",{enumerable:true,get:function(){return We.exhaustMap}});var Ve=r(6911);Object.defineProperty(t,"expand",{enumerable:true,get:function(){return Ve.expand}});var qe=r(1909);Object.defineProperty(t,"filter",{enumerable:true,get:function(){return qe.filter}});var He=r(477);Object.defineProperty(t,"finalize",{enumerable:true,get:function(){return He.finalize}});var Ge=r(1208);Object.defineProperty(t,"find",{enumerable:true,get:function(){return Ge.find}});var ze=r(6946);Object.defineProperty(t,"findIndex",{enumerable:true,get:function(){return ze.findIndex}});var Ke=r(5873);Object.defineProperty(t,"first",{enumerable:true,get:function(){return Ke.first}});var Ye=r(9337);Object.defineProperty(t,"groupBy",{enumerable:true,get:function(){return Ye.groupBy}});var Je=r(7720);Object.defineProperty(t,"ignoreElements",{enumerable:true,get:function(){return Je.ignoreElements}});var Xe=r(5954);Object.defineProperty(t,"isEmpty",{enumerable:true,get:function(){return Xe.isEmpty}});var Qe=r(7999);Object.defineProperty(t,"last",{enumerable:true,get:function(){return Qe.last}});var Ze=r(3297);Object.defineProperty(t,"map",{enumerable:true,get:function(){return Ze.map}});var et=r(8528);Object.defineProperty(t,"mapTo",{enumerable:true,get:function(){return et.mapTo}});var tt=r(2442);Object.defineProperty(t,"materialize",{enumerable:true,get:function(){return tt.materialize}});var rt=r(9593);Object.defineProperty(t,"max",{enumerable:true,get:function(){return rt.max}});var nt=r(3156);Object.defineProperty(t,"mergeAll",{enumerable:true,get:function(){return nt.mergeAll}});var it=r(9956);Object.defineProperty(t,"flatMap",{enumerable:true,get:function(){return it.flatMap}});var ot=r(2397);Object.defineProperty(t,"mergeMap",{enumerable:true,get:function(){return ot.mergeMap}});var st=r(5484);Object.defineProperty(t,"mergeMapTo",{enumerable:true,get:function(){return st.mergeMapTo}});var at=r(2222);Object.defineProperty(t,"mergeScan",{enumerable:true,get:function(){return at.mergeScan}});var ut=r(1779);Object.defineProperty(t,"mergeWith",{enumerable:true,get:function(){return ut.mergeWith}});var ct=r(315);Object.defineProperty(t,"min",{enumerable:true,get:function(){return ct.min}});var lt=r(6889);Object.defineProperty(t,"multicast",{enumerable:true,get:function(){return lt.multicast}});var ft=r(2366);Object.defineProperty(t,"observeOn",{enumerable:true,get:function(){return ft.observeOn}});var dt=r(2292);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:true,get:function(){return dt.onErrorResumeNextWith}});var ht=r(2219);Object.defineProperty(t,"pairwise",{enumerable:true,get:function(){return ht.pairwise}});var pt=r(8338);Object.defineProperty(t,"pluck",{enumerable:true,get:function(){return pt.pluck}});var bt=r(7160);Object.defineProperty(t,"publish",{enumerable:true,get:function(){return bt.publish}});var mt=r(734);Object.defineProperty(t,"publishBehavior",{enumerable:true,get:function(){return mt.publishBehavior}});var vt=r(6312);Object.defineProperty(t,"publishLast",{enumerable:true,get:function(){return vt.publishLast}});var gt=r(451);Object.defineProperty(t,"publishReplay",{enumerable:true,get:function(){return gt.publishReplay}});var yt=r(5434);Object.defineProperty(t,"raceWith",{enumerable:true,get:function(){return yt.raceWith}});var _t=r(9241);Object.defineProperty(t,"reduce",{enumerable:true,get:function(){return _t.reduce}});var Dt=r(2420);Object.defineProperty(t,"repeat",{enumerable:true,get:function(){return Dt.repeat}});var wt=r(1320);Object.defineProperty(t,"repeatWhen",{enumerable:true,get:function(){return wt.repeatWhen}});var Ct=r(6109);Object.defineProperty(t,"retry",{enumerable:true,get:function(){return Ct.retry}});var St=r(557);Object.defineProperty(t,"retryWhen",{enumerable:true,get:function(){return St.retryWhen}});var Et=r(2307);Object.defineProperty(t,"refCount",{enumerable:true,get:function(){return Et.refCount}});var Ot=r(845);Object.defineProperty(t,"sample",{enumerable:true,get:function(){return Ot.sample}});var kt=r(5640);Object.defineProperty(t,"sampleTime",{enumerable:true,get:function(){return kt.sampleTime}});var At=r(714);Object.defineProperty(t,"scan",{enumerable:true,get:function(){return At.scan}});var Pt=r(3468);Object.defineProperty(t,"sequenceEqual",{enumerable:true,get:function(){return Pt.sequenceEqual}});var xt=r(656);Object.defineProperty(t,"share",{enumerable:true,get:function(){return xt.share}});var Tt=r(8267);Object.defineProperty(t,"shareReplay",{enumerable:true,get:function(){return Tt.shareReplay}});var Ft=r(9779);Object.defineProperty(t,"single",{enumerable:true,get:function(){return Ft.single}});var jt=r(9428);Object.defineProperty(t,"skip",{enumerable:true,get:function(){return jt.skip}});var Mt=r(6532);Object.defineProperty(t,"skipLast",{enumerable:true,get:function(){return Mt.skipLast}});var Bt=r(8370);Object.defineProperty(t,"skipUntil",{enumerable:true,get:function(){return Bt.skipUntil}});var It=r(7511);Object.defineProperty(t,"skipWhile",{enumerable:true,get:function(){return It.skipWhile}});var Rt=r(7395);Object.defineProperty(t,"startWith",{enumerable:true,get:function(){return Rt.startWith}});var Lt=r(5282);Object.defineProperty(t,"subscribeOn",{enumerable:true,get:function(){return Lt.subscribeOn}});var Nt=r(4188);Object.defineProperty(t,"switchAll",{enumerable:true,get:function(){return Nt.switchAll}});var Ut=r(2789);Object.defineProperty(t,"switchMap",{enumerable:true,get:function(){return Ut.switchMap}});var $t=r(564);Object.defineProperty(t,"switchMapTo",{enumerable:true,get:function(){return $t.switchMapTo}});var Wt=r(8054);Object.defineProperty(t,"switchScan",{enumerable:true,get:function(){return Wt.switchScan}});var Vt=r(8072);Object.defineProperty(t,"take",{enumerable:true,get:function(){return Vt.take}});var qt=r(5656);Object.defineProperty(t,"takeLast",{enumerable:true,get:function(){return qt.takeLast}});var Ht=r(4046);Object.defineProperty(t,"takeUntil",{enumerable:true,get:function(){return Ht.takeUntil}});var Gt=r(1163);Object.defineProperty(t,"takeWhile",{enumerable:true,get:function(){return Gt.takeWhile}});var zt=r(5673);Object.defineProperty(t,"tap",{enumerable:true,get:function(){return zt.tap}});var Kt=r(8923);Object.defineProperty(t,"throttle",{enumerable:true,get:function(){return Kt.throttle}});var Yt=r(6558);Object.defineProperty(t,"throttleTime",{enumerable:true,get:function(){return Yt.throttleTime}});var Jt=r(4747);Object.defineProperty(t,"throwIfEmpty",{enumerable:true,get:function(){return Jt.throwIfEmpty}});var Xt=r(635);Object.defineProperty(t,"timeInterval",{enumerable:true,get:function(){return Xt.timeInterval}});var Qt=r(4176);Object.defineProperty(t,"timeout",{enumerable:true,get:function(){return Qt.timeout}});var Zt=r(840);Object.defineProperty(t,"timeoutWith",{enumerable:true,get:function(){return Zt.timeoutWith}});var er=r(2415);Object.defineProperty(t,"timestamp",{enumerable:true,get:function(){return er.timestamp}});var tr=r(829);Object.defineProperty(t,"toArray",{enumerable:true,get:function(){return tr.toArray}});var rr=r(2619);Object.defineProperty(t,"window",{enumerable:true,get:function(){return rr.window}});var nr=r(8024);Object.defineProperty(t,"windowCount",{enumerable:true,get:function(){return nr.windowCount}});var ir=r(6897);Object.defineProperty(t,"windowTime",{enumerable:true,get:function(){return ir.windowTime}});var or=r(783);Object.defineProperty(t,"windowToggle",{enumerable:true,get:function(){return or.windowToggle}});var sr=r(4243);Object.defineProperty(t,"windowWhen",{enumerable:true,get:function(){return sr.windowWhen}});var ar=r(5972);Object.defineProperty(t,"withLatestFrom",{enumerable:true,get:function(){return ar.withLatestFrom}});var ur=r(3210);Object.defineProperty(t,"zipAll",{enumerable:true,get:function(){return ur.zipAll}});var cr=r(2268);Object.defineProperty(t,"zipWith",{enumerable:true,get:function(){return cr.zipWith}})},5889:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsyncSubject=void 0;var i=r(2357);var o=function(e){n(AsyncSubject,e);function AsyncSubject(){var t=e!==null&&e.apply(this,arguments)||this;t._value=null;t._hasValue=false;t._isComplete=false;return t}AsyncSubject.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,o=t.thrownError,s=t.isStopped,a=t._isComplete;if(r){e.error(o)}else if(s||a){n&&e.next(i);e.complete()}};AsyncSubject.prototype.next=function(e){if(!this.isStopped){this._value=e;this._hasValue=true}};AsyncSubject.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value,i=t._isComplete;if(!i){this._isComplete=true;r&&e.prototype.next.call(this,n);e.prototype.complete.call(this)}};return AsyncSubject}(i.Subject);t.AsyncSubject=o},279:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.BehaviorSubject=void 0;var i=r(2357);var o=function(e){n(BehaviorSubject,e);function BehaviorSubject(t){var r=e.call(this)||this;r._value=t;return r}Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});BehaviorSubject.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);!r.closed&&t.next(this._value);return r};BehaviorSubject.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t){throw r}this._throwIfClosed();return n};BehaviorSubject.prototype.next=function(t){e.prototype.next.call(this,this._value=t)};return BehaviorSubject}(i.Subject);t.BehaviorSubject=o},7166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.observeNotification=t.Notification=t.NotificationKind=void 0;var n=r(5458);var i=r(8482);var o=r(2841);var s=r(3856);var a;(function(e){e["NEXT"]="N";e["ERROR"]="E";e["COMPLETE"]="C"})(a=t.NotificationKind||(t.NotificationKind={}));var u=function(){function Notification(e,t,r){this.kind=e;this.value=t;this.error=r;this.hasValue=e==="N"}Notification.prototype.observe=function(e){return observeNotification(this,e)};Notification.prototype.do=function(e,t,r){var n=this,i=n.kind,o=n.value,s=n.error;return i==="N"?e===null||e===void 0?void 0:e(o):i==="E"?t===null||t===void 0?void 0:t(s):r===null||r===void 0?void 0:r()};Notification.prototype.accept=function(e,t,r){var n;return s.isFunction((n=e)===null||n===void 0?void 0:n.next)?this.observe(e):this.do(e,t,r)};Notification.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,s=e.error;var a=t==="N"?i.of(r):t==="E"?o.throwError((function(){return s})):t==="C"?n.EMPTY:0;if(!a){throw new TypeError("Unexpected notification kind "+t)}return a};Notification.createNext=function(e){return new Notification("N",e)};Notification.createError=function(e){return new Notification("E",undefined,e)};Notification.createComplete=function(){return Notification.completeNotification};Notification.completeNotification=new Notification("C");return Notification}();t.Notification=u;function observeNotification(e,t){var r,n,i;var o=e,s=o.kind,a=o.value,u=o.error;if(typeof s!=="string"){throw new TypeError('Invalid notification, missing "kind"')}s==="N"?(r=t.next)===null||r===void 0?void 0:r.call(t,a):s==="E"?(n=t.error)===null||n===void 0?void 0:n.call(t,u):(i=t.complete)===null||i===void 0?void 0:i.call(t)}t.observeNotification=observeNotification},3722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0;t.COMPLETE_NOTIFICATION=function(){return createNotification("C",undefined,undefined)}();function errorNotification(e){return createNotification("E",undefined,e)}t.errorNotification=errorNotification;function nextNotification(e){return createNotification("N",e,undefined)}t.nextNotification=nextNotification;function createNotification(e,t,r){return{kind:e,value:t,error:r}}t.createNotification=createNotification},6692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Observable=void 0;var n=r(2703);var i=r(5208);var o=r(5609);var s=r(4424);var a=r(647);var u=r(3856);var c=r(4225);var l=function(){function Observable(e){if(e){this._subscribe=e}}Observable.prototype.lift=function(e){var t=new Observable;t.source=this;t.operator=e;return t};Observable.prototype.subscribe=function(e,t,r){var i=this;var o=isSubscriber(e)?e:new n.SafeSubscriber(e,t,r);c.errorContext((function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))}));return o};Observable.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}};Observable.prototype.forEach=function(e,t){var r=this;t=getPromiseCtor(t);return new t((function(t,i){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e);o.unsubscribe()}},error:i,complete:t});r.subscribe(o)}))};Observable.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)};Observable.prototype[o.observable]=function(){return this};Observable.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return s.pipeFromArray(e)(this)};Observable.prototype.toPromise=function(e){var t=this;e=getPromiseCtor(e);return new e((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))};Observable.create=function(e){return new Observable(e)};return Observable}();t.Observable=l;function getPromiseCtor(e){var t;return(t=e!==null&&e!==void 0?e:a.config.Promise)!==null&&t!==void 0?t:Promise}function isObserver(e){return e&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}function isSubscriber(e){return e&&e instanceof n.Subscriber||isObserver(e)&&i.isSubscription(e)}},9256:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.ReplaySubject=void 0;var i=r(2357);var o=r(1742);var s=function(e){n(ReplaySubject,e);function ReplaySubject(t,r,n){if(t===void 0){t=Infinity}if(r===void 0){r=Infinity}if(n===void 0){n=o.dateTimestampProvider}var i=e.call(this)||this;i._bufferSize=t;i._windowTime=r;i._timestampProvider=n;i._buffer=[];i._infiniteTimeWindow=true;i._infiniteTimeWindow=r===Infinity;i._bufferSize=Math.max(1,t);i._windowTime=Math.max(1,r);return i}ReplaySubject.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;if(!n){i.push(t);!o&&i.push(s.now()+a)}this._trimBuffer();e.prototype.next.call(this,t)};ReplaySubject.prototype._subscribe=function(e){this._throwIfClosed();this._trimBuffer();var t=this._innerSubscribe(e);var r=this,n=r._infiniteTimeWindow,i=r._buffer;var o=i.slice();for(var s=0;s<o.length&&!e.closed;s+=n?1:2){e.next(o[s])}this._checkFinalizedStatuses(e);return t};ReplaySubject.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow;var o=(i?1:2)*t;t<Infinity&&o<n.length&&n.splice(0,n.length-o);if(!i){var s=r.now();var a=0;for(var u=1;u<n.length&&n[u]<=s;u+=2){a=u}a&&n.splice(0,a+1)}};return ReplaySubject}(i.Subject);t.ReplaySubject=s},3328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;var n=r(1742);var i=function(){function Scheduler(e,t){if(t===void 0){t=Scheduler.now}this.schedulerActionCtor=e;this.now=t}Scheduler.prototype.schedule=function(e,t,r){if(t===void 0){t=0}return new this.schedulerActionCtor(this,e).schedule(r,t)};Scheduler.now=n.dateTimestampProvider.now;return Scheduler}();t.Scheduler=i},2357:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();var i=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.AnonymousSubject=t.Subject=void 0;var o=r(6692);var s=r(5208);var a=r(3612);var u=r(8645);var c=r(4225);var l=function(e){n(Subject,e);function Subject(){var t=e.call(this)||this;t.closed=false;t.currentObservers=null;t.observers=[];t.isStopped=false;t.hasError=false;t.thrownError=null;return t}Subject.prototype.lift=function(e){var t=new f(this,this);t.operator=e;return t};Subject.prototype._throwIfClosed=function(){if(this.closed){throw new a.ObjectUnsubscribedError}};Subject.prototype.next=function(e){var t=this;c.errorContext((function(){var r,n;t._throwIfClosed();if(!t.isStopped){if(!t.currentObservers){t.currentObservers=Array.from(t.observers)}try{for(var o=i(t.currentObservers),s=o.next();!s.done;s=o.next()){var a=s.value;a.next(e)}}catch(e){r={error:e}}finally{try{if(s&&!s.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}}}))};Subject.prototype.error=function(e){var t=this;c.errorContext((function(){t._throwIfClosed();if(!t.isStopped){t.hasError=t.isStopped=true;t.thrownError=e;var r=t.observers;while(r.length){r.shift().error(e)}}}))};Subject.prototype.complete=function(){var e=this;c.errorContext((function(){e._throwIfClosed();if(!e.isStopped){e.isStopped=true;var t=e.observers;while(t.length){t.shift().complete()}}}))};Subject.prototype.unsubscribe=function(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null};Object.defineProperty(Subject.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:false,configurable:true});Subject.prototype._trySubscribe=function(t){this._throwIfClosed();return e.prototype._trySubscribe.call(this,t)};Subject.prototype._subscribe=function(e){this._throwIfClosed();this._checkFinalizedStatuses(e);return this._innerSubscribe(e)};Subject.prototype._innerSubscribe=function(e){var t=this;var r=this,n=r.hasError,i=r.isStopped,o=r.observers;if(n||i){return s.EMPTY_SUBSCRIPTION}this.currentObservers=null;o.push(e);return new s.Subscription((function(){t.currentObservers=null;u.arrRemove(o,e)}))};Subject.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;if(r){e.error(n)}else if(i){e.complete()}};Subject.prototype.asObservable=function(){var e=new o.Observable;e.source=this;return e};Subject.create=function(e,t){return new f(e,t)};return Subject}(o.Observable);t.Subject=l;var f=function(e){n(AnonymousSubject,e);function AnonymousSubject(t,r){var n=e.call(this)||this;n.destination=t;n.source=r;return n}AnonymousSubject.prototype.next=function(e){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0?void 0:r.call(t,e)};AnonymousSubject.prototype.error=function(e){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0?void 0:r.call(t,e)};AnonymousSubject.prototype.complete=function(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0?void 0:t.call(e)};AnonymousSubject.prototype._subscribe=function(e){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&r!==void 0?r:s.EMPTY_SUBSCRIPTION};return AnonymousSubject}(l);t.AnonymousSubject=f},2703:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var i=r(3856);var o=r(5208);var s=r(647);var a=r(7493);var u=r(1720);var c=r(3722);var l=r(7465);var f=r(4225);var d=function(e){n(Subscriber,e);function Subscriber(r){var n=e.call(this)||this;n.isStopped=false;if(r){n.destination=r;if(o.isSubscription(r)){r.add(n)}}else{n.destination=t.EMPTY_OBSERVER}return n}Subscriber.create=function(e,t,r){return new b(e,t,r)};Subscriber.prototype.next=function(e){if(this.isStopped){handleStoppedNotification(c.nextNotification(e),this)}else{this._next(e)}};Subscriber.prototype.error=function(e){if(this.isStopped){handleStoppedNotification(c.errorNotification(e),this)}else{this.isStopped=true;this._error(e)}};Subscriber.prototype.complete=function(){if(this.isStopped){handleStoppedNotification(c.COMPLETE_NOTIFICATION,this)}else{this.isStopped=true;this._complete()}};Subscriber.prototype.unsubscribe=function(){if(!this.closed){this.isStopped=true;e.prototype.unsubscribe.call(this);this.destination=null}};Subscriber.prototype._next=function(e){this.destination.next(e)};Subscriber.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}};Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};return Subscriber}(o.Subscription);t.Subscriber=d;var h=Function.prototype.bind;function bind(e,t){return h.call(e,t)}var p=function(){function ConsumerObserver(e){this.partialObserver=e}ConsumerObserver.prototype.next=function(e){var t=this.partialObserver;if(t.next){try{t.next(e)}catch(e){handleUnhandledError(e)}}};ConsumerObserver.prototype.error=function(e){var t=this.partialObserver;if(t.error){try{t.error(e)}catch(e){handleUnhandledError(e)}}else{handleUnhandledError(e)}};ConsumerObserver.prototype.complete=function(){var e=this.partialObserver;if(e.complete){try{e.complete()}catch(e){handleUnhandledError(e)}}};return ConsumerObserver}();var b=function(e){n(SafeSubscriber,e);function SafeSubscriber(t,r,n){var o=e.call(this)||this;var a;if(i.isFunction(t)||!t){a={next:t!==null&&t!==void 0?t:undefined,error:r!==null&&r!==void 0?r:undefined,complete:n!==null&&n!==void 0?n:undefined}}else{var u;if(o&&s.config.useDeprecatedNextContext){u=Object.create(t);u.unsubscribe=function(){return o.unsubscribe()};a={next:t.next&&bind(t.next,u),error:t.error&&bind(t.error,u),complete:t.complete&&bind(t.complete,u)}}else{a=t}}o.destination=new p(a);return o}return SafeSubscriber}(d);t.SafeSubscriber=b;function handleUnhandledError(e){if(s.config.useDeprecatedSynchronousErrorHandling){f.captureError(e)}else{a.reportUnhandledError(e)}}function defaultErrorHandler(e){throw e}function handleStoppedNotification(e,t){var r=s.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.EMPTY_OBSERVER={closed:true,next:u.noop,error:defaultErrorHandler,complete:u.noop}},5208:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var s=r(3856);var a=r(4974);var u=r(8645);var c=function(){function Subscription(e){this.initialTeardown=e;this.closed=false;this._parentage=null;this._finalizers=null}Subscription.prototype.unsubscribe=function(){var e,t,r,u;var c;if(!this.closed){this.closed=true;var l=this._parentage;if(l){this._parentage=null;if(Array.isArray(l)){try{for(var f=n(l),d=f.next();!d.done;d=f.next()){var h=d.value;h.remove(this)}}catch(t){e={error:t}}finally{try{if(d&&!d.done&&(t=f.return))t.call(f)}finally{if(e)throw e.error}}}else{l.remove(this)}}var p=this.initialTeardown;if(s.isFunction(p)){try{p()}catch(e){c=e instanceof a.UnsubscriptionError?e.errors:[e]}}var b=this._finalizers;if(b){this._finalizers=null;try{for(var m=n(b),v=m.next();!v.done;v=m.next()){var g=v.value;try{execFinalizer(g)}catch(e){c=c!==null&&c!==void 0?c:[];if(e instanceof a.UnsubscriptionError){c=o(o([],i(c)),i(e.errors))}else{c.push(e)}}}}catch(e){r={error:e}}finally{try{if(v&&!v.done&&(u=m.return))u.call(m)}finally{if(r)throw r.error}}}if(c){throw new a.UnsubscriptionError(c)}}};Subscription.prototype.add=function(e){var t;if(e&&e!==this){if(this.closed){execFinalizer(e)}else{if(e instanceof Subscription){if(e.closed||e._hasParent(this)){return}e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}}};Subscription.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)};Subscription.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e};Subscription.prototype._removeParent=function(e){var t=this._parentage;if(t===e){this._parentage=null}else if(Array.isArray(t)){u.arrRemove(t,e)}};Subscription.prototype.remove=function(e){var t=this._finalizers;t&&u.arrRemove(t,e);if(e instanceof Subscription){e._removeParent(this)}};Subscription.EMPTY=function(){var e=new Subscription;e.closed=true;return e}();return Subscription}();t.Subscription=c;t.EMPTY_SUBSCRIPTION=c.EMPTY;function isSubscription(e){return e instanceof c||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}t.isSubscription=isSubscription;function execFinalizer(e){if(s.isFunction(e)){e()}else{e.unsubscribe()}}},647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.config=void 0;t.config={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false}},7198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firstValueFrom=void 0;var n=r(1741);var i=r(2703);function firstValueFrom(e,t){var r=typeof t==="object";return new Promise((function(o,s){var a=new i.SafeSubscriber({next:function(e){o(e);a.unsubscribe()},error:s,complete:function(){if(r){o(t.defaultValue)}else{s(new n.EmptyError)}}});e.subscribe(a)}))}t.firstValueFrom=firstValueFrom},436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lastValueFrom=void 0;var n=r(1741);function lastValueFrom(e,t){var r=typeof t==="object";return new Promise((function(i,o){var s=false;var a;e.subscribe({next:function(e){a=e;s=true},error:o,complete:function(){if(s){i(a)}else if(r){i(t.defaultValue)}else{o(new n.EmptyError)}}})}))}t.lastValueFrom=lastValueFrom},2264:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.ConnectableObservable=void 0;var i=r(6692);var o=r(5208);var s=r(2307);var a=r(5161);var u=r(6613);var c=function(e){n(ConnectableObservable,e);function ConnectableObservable(t,r){var n=e.call(this)||this;n.source=t;n.subjectFactory=r;n._subject=null;n._refCount=0;n._connection=null;if(u.hasLift(t)){n.lift=t.lift}return n}ConnectableObservable.prototype._subscribe=function(e){return this.getSubject().subscribe(e)};ConnectableObservable.prototype.getSubject=function(){var e=this._subject;if(!e||e.isStopped){this._subject=this.subjectFactory()}return this._subject};ConnectableObservable.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null;e===null||e===void 0?void 0:e.unsubscribe()};ConnectableObservable.prototype.connect=function(){var e=this;var t=this._connection;if(!t){t=this._connection=new o.Subscription;var r=this.getSubject();t.add(this.source.subscribe(a.createOperatorSubscriber(r,undefined,(function(){e._teardown();r.complete()}),(function(t){e._teardown();r.error(t)}),(function(){return e._teardown()}))));if(t.closed){this._connection=null;t=o.Subscription.EMPTY}}return t};ConnectableObservable.prototype.refCount=function(){return s.refCount()(this)};return ConnectableObservable}(i.Observable);t.ConnectableObservable=c},6919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bindCallback=void 0;var n=r(9081);function bindCallback(e,t,r){return n.bindCallbackInternals(false,e,t,r)}t.bindCallback=bindCallback},9081:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.bindCallbackInternals=void 0;var o=r(3903);var s=r(6692);var a=r(5282);var u=r(969);var c=r(2366);var l=r(5889);function bindCallbackInternals(e,t,r,f){if(r){if(o.isScheduler(r)){f=r}else{return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}return bindCallbackInternals(e,t,f).apply(this,n).pipe(u.mapOneOrManyArgs(r))}}}if(f){return function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}return bindCallbackInternals(e,t).apply(this,r).pipe(a.subscribeOn(f),c.observeOn(f))}}return function(){var r=this;var o=[];for(var a=0;a<arguments.length;a++){o[a]=arguments[a]}var u=new l.AsyncSubject;var c=true;return new s.Observable((function(s){var a=u.subscribe(s);if(c){c=false;var l=false;var f=false;t.apply(r,i(i([],n(o)),[function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(e){var n=t.shift();if(n!=null){u.error(n);return}}u.next(1<t.length?t:t[0]);f=true;if(l){u.complete()}}]));if(f){u.complete()}l=true}return a}))}}t.bindCallbackInternals=bindCallbackInternals},9463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bindNodeCallback=void 0;var n=r(9081);function bindNodeCallback(e,t,r){return n.bindCallbackInternals(true,e,t,r)}t.bindNodeCallback=bindNodeCallback},4253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.combineLatestInit=t.combineLatest=void 0;var n=r(6692);var i=r(2354);var o=r(8687);var s=r(1418);var a=r(969);var u=r(6909);var c=r(6579);var l=r(5161);var f=r(6804);function combineLatest(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=u.popScheduler(e);var l=u.popResultSelector(e);var f=i.argsArgArrayOrObject(e),d=f.args,h=f.keys;if(d.length===0){return o.from([],r)}var p=new n.Observable(combineLatestInit(d,r,h?function(e){return c.createObject(h,e)}:s.identity));return l?p.pipe(a.mapOneOrManyArgs(l)):p}t.combineLatest=combineLatest;function combineLatestInit(e,t,r){if(r===void 0){r=s.identity}return function(n){maybeSchedule(t,(function(){var i=e.length;var s=new Array(i);var a=i;var u=i;var _loop_1=function(i){maybeSchedule(t,(function(){var c=o.from(e[i],t);var f=false;c.subscribe(l.createOperatorSubscriber(n,(function(e){s[i]=e;if(!f){f=true;u--}if(!u){n.next(r(s.slice()))}}),(function(){if(! --a){n.complete()}})))}),n)};for(var c=0;c<i;c++){_loop_1(c)}}),n)}}t.combineLatestInit=combineLatestInit;function maybeSchedule(e,t,r){if(e){f.executeSchedule(r,e,t)}else{t()}}},8919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concat=void 0;var n=r(5824);var i=r(6909);var o=r(8687);function concat(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return n.concatAll()(o.from(e,i.popScheduler(e)))}t.concat=concat},3125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.connectable=void 0;var n=r(2357);var i=r(6692);var o=r(3731);var s={connector:function(){return new n.Subject},resetOnDisconnect:true};function connectable(e,t){if(t===void 0){t=s}var r=null;var n=t.connector,a=t.resetOnDisconnect,u=a===void 0?true:a;var c=n();var l=new i.Observable((function(e){return c.subscribe(e)}));l.connect=function(){if(!r||r.closed){r=o.defer((function(){return e})).subscribe(c);if(u){r.add((function(){return c=n()}))}}return r};return l}t.connectable=connectable},3731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defer=void 0;var n=r(6692);var i=r(8015);function defer(e){return new n.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}t.defer=defer},3400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.animationFrames=void 0;var n=r(6692);var i=r(2404);var o=r(3437);function animationFrames(e){return e?animationFramesFactory(e):s}t.animationFrames=animationFrames;function animationFramesFactory(e){return new n.Observable((function(t){var r=e||i.performanceTimestampProvider;var n=r.now();var s=0;var run=function(){if(!t.closed){s=o.animationFrameProvider.requestAnimationFrame((function(i){s=0;var o=r.now();t.next({timestamp:e?o:i,elapsed:o-n});run()}))}};run();return function(){if(s){o.animationFrameProvider.cancelAnimationFrame(s)}}}))}var s=animationFramesFactory()},5458:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.empty=t.EMPTY=void 0;var n=r(6692);t.EMPTY=new n.Observable((function(e){return e.complete()}));function empty(e){return e?emptyScheduled(e):t.EMPTY}t.empty=empty;function emptyScheduled(e){return new n.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}},6395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forkJoin=void 0;var n=r(6692);var i=r(2354);var o=r(8015);var s=r(6909);var a=r(5161);var u=r(969);var c=r(6579);function forkJoin(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=s.popResultSelector(e);var l=i.argsArgArrayOrObject(e),f=l.args,d=l.keys;var h=new n.Observable((function(e){var t=f.length;if(!t){e.complete();return}var r=new Array(t);var n=t;var i=t;var _loop_1=function(t){var s=false;o.innerFrom(f[t]).subscribe(a.createOperatorSubscriber(e,(function(e){if(!s){s=true;i--}r[t]=e}),(function(){return n--}),undefined,(function(){if(!n||!s){if(!i){e.next(d?c.createObject(d,r):r)}e.complete()}})))};for(var s=0;s<t;s++){_loop_1(s)}}));return r?h.pipe(u.mapOneOrManyArgs(r)):h}t.forkJoin=forkJoin},8687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.from=void 0;var n=r(1478);var i=r(8015);function from(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}t.from=from},4775:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};Object.defineProperty(t,"__esModule",{value:true});t.fromEvent=void 0;var i=r(8015);var o=r(6692);var s=r(2397);var a=r(4800);var u=r(3856);var c=r(969);var l=["addListener","removeListener"];var f=["addEventListener","removeEventListener"];var d=["on","off"];function fromEvent(e,t,r,h){if(u.isFunction(r)){h=r;r=undefined}if(h){return fromEvent(e,t,r).pipe(c.mapOneOrManyArgs(h))}var p=n(isEventTarget(e)?f.map((function(n){return function(i){return e[n](t,i,r)}})):isNodeStyleEventEmitter(e)?l.map(toCommonHandlerRegistry(e,t)):isJQueryStyleEventEmitter(e)?d.map(toCommonHandlerRegistry(e,t)):[],2),b=p[0],m=p[1];if(!b){if(a.isArrayLike(e)){return s.mergeMap((function(e){return fromEvent(e,t,r)}))(i.innerFrom(e))}}if(!b){throw new TypeError("Invalid event target")}return new o.Observable((function(e){var handler=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return e.next(1<t.length?t:t[0])};b(handler);return function(){return m(handler)}}))}t.fromEvent=fromEvent;function toCommonHandlerRegistry(e,t){return function(r){return function(n){return e[r](t,n)}}}function isNodeStyleEventEmitter(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}function isJQueryStyleEventEmitter(e){return u.isFunction(e.on)&&u.isFunction(e.off)}function isEventTarget(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}},4237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEventPattern=void 0;var n=r(6692);var i=r(3856);var o=r(969);function fromEventPattern(e,t,r){if(r){return fromEventPattern(e,t).pipe(o.mapOneOrManyArgs(r))}return new n.Observable((function(r){var handler=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return r.next(e.length===1?e[0]:e)};var n=e(handler);return i.isFunction(t)?function(){return t(handler,n)}:undefined}))}t.fromEventPattern=fromEventPattern},2598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSubscribable=void 0;var n=r(6692);function fromSubscribable(e){return new n.Observable((function(t){return e.subscribe(t)}))}t.fromSubscribable=fromSubscribable},9975:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});t.generate=void 0;var i=r(1418);var o=r(3903);var s=r(3731);var a=r(178);function generate(e,t,r,u,c){var l,f;var d;var h;if(arguments.length===1){l=e,h=l.initialState,t=l.condition,r=l.iterate,f=l.resultSelector,d=f===void 0?i.identity:f,c=l.scheduler}else{h=e;if(!u||o.isScheduler(u)){d=i.identity;c=u}else{d=u}}function gen(){var e;return n(this,(function(n){switch(n.label){case 0:e=h;n.label=1;case 1:if(!(!t||t(e)))return[3,4];return[4,d(e)];case 2:n.sent();n.label=3;case 3:e=r(e);return[3,1];case 4:return[2]}}))}return s.defer(c?function(){return a.scheduleIterable(gen(),c)}:gen)}t.generate=generate},3719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.iif=void 0;var n=r(3731);function iif(e,t,r){return n.defer((function(){return e()?t:r}))}t.iif=iif},8015:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof s==="function"?s(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,i){r=e[t](r),settle(n,i,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var s=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var a=r(4800);var u=r(9063);var c=r(6692);var l=r(1414);var f=r(1744);var d=r(9404);var h=r(6045);var p=r(2519);var b=r(3856);var m=r(7493);var v=r(5609);function innerFrom(e){if(e instanceof c.Observable){return e}if(e!=null){if(l.isInteropObservable(e)){return fromInteropObservable(e)}if(a.isArrayLike(e)){return fromArrayLike(e)}if(u.isPromise(e)){return fromPromise(e)}if(f.isAsyncIterable(e)){return fromAsyncIterable(e)}if(h.isIterable(e)){return fromIterable(e)}if(p.isReadableStreamLike(e)){return fromReadableStreamLike(e)}}throw d.createInvalidObservableTypeError(e)}t.innerFrom=innerFrom;function fromInteropObservable(e){return new c.Observable((function(t){var r=e[v.observable]();if(b.isFunction(r.subscribe)){return r.subscribe(t)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}t.fromInteropObservable=fromInteropObservable;function fromArrayLike(e){return new c.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++){t.next(e[r])}t.complete()}))}t.fromArrayLike=fromArrayLike;function fromPromise(e){return new c.Observable((function(t){e.then((function(e){if(!t.closed){t.next(e);t.complete()}}),(function(e){return t.error(e)})).then(null,m.reportUnhandledError)}))}t.fromPromise=fromPromise;function fromIterable(e){return new c.Observable((function(t){var r,n;try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;t.next(a);if(t.closed){return}}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(n=i.return))n.call(i)}finally{if(r)throw r.error}}t.complete()}))}t.fromIterable=fromIterable;function fromAsyncIterable(e){return new c.Observable((function(t){process(e,t).catch((function(e){return t.error(e)}))}))}t.fromAsyncIterable=fromAsyncIterable;function fromReadableStreamLike(e){return fromAsyncIterable(p.readableStreamLikeToAsyncGenerator(e))}t.fromReadableStreamLike=fromReadableStreamLike;function process(e,t){var r,s;var a,u;return n(this,void 0,void 0,(function(){var n,c;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]);r=o(e);i.label=1;case 1:return[4,r.next()];case 2:if(!(s=i.sent(),!s.done))return[3,4];n=s.value;t.next(n);if(t.closed){return[2]}i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:c=i.sent();a={error:c};return[3,11];case 6:i.trys.push([6,,9,10]);if(!(s&&!s.done&&(u=r.return)))return[3,8];return[4,u.call(r)];case 7:i.sent();i.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:t.complete();return[2]}}))}))}},8658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.interval=void 0;var n=r(5583);var i=r(8914);function interval(e,t){if(e===void 0){e=0}if(t===void 0){t=n.asyncScheduler}if(e<0){e=0}return i.timer(e,e,t)}t.interval=interval},6995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;var n=r(3156);var i=r(8015);var o=r(5458);var s=r(6909);var a=r(8687);function merge(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=s.popScheduler(e);var u=s.popNumber(e,Infinity);var c=e;return!c.length?o.EMPTY:c.length===1?i.innerFrom(c[0]):n.mergeAll(u)(a.from(c,r))}t.merge=merge},2525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.never=t.NEVER=void 0;var n=r(6692);var i=r(1720);t.NEVER=new n.Observable(i.noop);function never(){return t.NEVER}t.never=never},8482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.of=void 0;var n=r(6909);var i=r(8687);function of(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=n.popScheduler(e);return i.from(e,r)}t.of=of},6756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.onErrorResumeNext=void 0;var n=r(6692);var i=r(2353);var o=r(5161);var s=r(1720);var a=r(8015);function onErrorResumeNext(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=i.argsOrArgArray(e);return new n.Observable((function(e){var t=0;var subscribeNext=function(){if(t<r.length){var n=void 0;try{n=a.innerFrom(r[t++])}catch(e){subscribeNext();return}var i=new o.OperatorSubscriber(e,undefined,s.noop,s.noop);n.subscribe(i);i.add(subscribeNext)}else{e.complete()}};subscribeNext()}))}t.onErrorResumeNext=onErrorResumeNext},822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pairs=void 0;var n=r(8687);function pairs(e,t){return n.from(Object.entries(e),t)}t.pairs=pairs},673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.partition=void 0;var n=r(8103);var i=r(1909);var o=r(8015);function partition(e,t,r){return[i.filter(t,r)(o.innerFrom(e)),i.filter(n.not(t,r))(o.innerFrom(e))]}t.partition=partition},7446:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.raceInit=t.race=void 0;var n=r(6692);var i=r(8015);var o=r(2353);var s=r(5161);function race(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}e=o.argsOrArgArray(e);return e.length===1?i.innerFrom(e[0]):new n.Observable(raceInit(e))}t.race=race;function raceInit(e){return function(t){var r=[];var _loop_1=function(n){r.push(i.innerFrom(e[n]).subscribe(s.createOperatorSubscriber(t,(function(e){if(r){for(var i=0;i<r.length;i++){i!==n&&r[i].unsubscribe()}r=null}t.next(e)}))))};for(var n=0;r&&!t.closed&&n<e.length;n++){_loop_1(n)}}}t.raceInit=raceInit},3470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.range=void 0;var n=r(6692);var i=r(5458);function range(e,t,r){if(t==null){t=e;e=0}if(t<=0){return i.EMPTY}var o=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule((function(){if(n<o){t.next(n++);this.schedule()}else{t.complete()}}))}:function(t){var r=e;while(r<o&&!t.closed){t.next(r++)}t.complete()})}t.range=range},2841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwError=void 0;var n=r(6692);var i=r(3856);function throwError(e,t){var r=i.isFunction(e)?e:function(){return e};var init=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(init,0,e)}:init)}t.throwError=throwError},8914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timer=void 0;var n=r(6692);var i=r(5583);var o=r(3903);var s=r(9908);function timer(e,t,r){if(e===void 0){e=0}if(r===void 0){r=i.async}var a=-1;if(t!=null){if(o.isScheduler(t)){r=t}else{a=t}}return new n.Observable((function(t){var n=s.isValidDate(e)?+e-r.now():e;if(n<0){n=0}var i=0;return r.schedule((function(){if(!t.closed){t.next(i++);if(0<=a){this.schedule(undefined,a)}else{t.complete()}}}),n)}))}t.timer=timer},2915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.using=void 0;var n=r(6692);var i=r(8015);var o=r(5458);function using(e,t){return new n.Observable((function(r){var n=e();var s=t(n);var a=s?i.innerFrom(s):o.EMPTY;a.subscribe(r);return function(){if(n){n.unsubscribe()}}}))}t.using=using},9820:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.zip=void 0;var o=r(6692);var s=r(8015);var a=r(2353);var u=r(5458);var c=r(5161);var l=r(6909);function zip(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=l.popResultSelector(e);var f=a.argsOrArgArray(e);return f.length?new o.Observable((function(e){var t=f.map((function(){return[]}));var o=f.map((function(){return false}));e.add((function(){t=o=null}));var _loop_1=function(a){s.innerFrom(f[a]).subscribe(c.createOperatorSubscriber(e,(function(s){t[a].push(s);if(t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],n(u))):u);if(t.some((function(e,t){return!e.length&&o[t]}))){e.complete()}}}),(function(){o[a]=true;!t[a].length&&e.complete()})))};for(var a=0;!e.closed&&a<f.length;a++){_loop_1(a)}return function(){t=o=null}})):u.EMPTY}t.zip=zip},5161:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var i=r(2703);function createOperatorSubscriber(e,t,r,n,i){return new o(e,t,r,n,i)}t.createOperatorSubscriber=createOperatorSubscriber;var o=function(e){n(OperatorSubscriber,e);function OperatorSubscriber(t,r,n,i,o,s){var a=e.call(this,t)||this;a.onFinalize=o;a.shouldUnsubscribe=s;a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next;a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error;a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete;return a}OperatorSubscriber.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this);!r&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}};return OperatorSubscriber}(i.Subscriber);t.OperatorSubscriber=o},3436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.audit=void 0;var n=r(6613);var i=r(8015);var o=r(5161);function audit(e){return n.operate((function(t,r){var n=false;var s=null;var a=null;var u=false;var endDuration=function(){a===null||a===void 0?void 0:a.unsubscribe();a=null;if(n){n=false;var e=s;s=null;r.next(e)}u&&r.complete()};var cleanupDuration=function(){a=null;u&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,(function(t){n=true;s=t;if(!a){i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(r,endDuration,cleanupDuration))}}),(function(){u=true;(!n||!a||a.closed)&&r.complete()})))}))}t.audit=audit},7217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auditTime=void 0;var n=r(5583);var i=r(3436);var o=r(8914);function auditTime(e,t){if(t===void 0){t=n.asyncScheduler}return i.audit((function(){return o.timer(e,t)}))}t.auditTime=auditTime},5805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buffer=void 0;var n=r(6613);var i=r(1720);var o=r(5161);var s=r(8015);function buffer(e){return n.operate((function(t,r){var n=[];t.subscribe(o.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n);r.complete()})));s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){var e=n;n=[];r.next(e)}),i.noop));return function(){n=null}}))}t.buffer=buffer},1442:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.bufferCount=void 0;var i=r(6613);var o=r(5161);var s=r(8645);function bufferCount(e,t){if(t===void 0){t=null}t=t!==null&&t!==void 0?t:e;return i.operate((function(r,i){var a=[];var u=0;r.subscribe(o.createOperatorSubscriber(i,(function(r){var o,c,l,f;var d=null;if(u++%t===0){a.push([])}try{for(var h=n(a),p=h.next();!p.done;p=h.next()){var b=p.value;b.push(r);if(e<=b.length){d=d!==null&&d!==void 0?d:[];d.push(b)}}}catch(e){o={error:e}}finally{try{if(p&&!p.done&&(c=h.return))c.call(h)}finally{if(o)throw o.error}}if(d){try{for(var m=n(d),v=m.next();!v.done;v=m.next()){var b=v.value;s.arrRemove(a,b);i.next(b)}}catch(e){l={error:e}}finally{try{if(v&&!v.done&&(f=m.return))f.call(m)}finally{if(l)throw l.error}}}}),(function(){var e,t;try{for(var r=n(a),o=r.next();!o.done;o=r.next()){var s=o.value;i.next(s)}}catch(t){e={error:t}}finally{try{if(o&&!o.done&&(t=r.return))t.call(r)}finally{if(e)throw e.error}}i.complete()}),undefined,(function(){a=null})))}))}t.bufferCount=bufferCount},1896:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.bufferTime=void 0;var i=r(5208);var o=r(6613);var s=r(5161);var a=r(8645);var u=r(5583);var c=r(6909);var l=r(6804);function bufferTime(e){var t,r;var f=[];for(var d=1;d<arguments.length;d++){f[d-1]=arguments[d]}var h=(t=c.popScheduler(f))!==null&&t!==void 0?t:u.asyncScheduler;var p=(r=f[0])!==null&&r!==void 0?r:null;var b=f[1]||Infinity;return o.operate((function(t,r){var o=[];var u=false;var emit=function(e){var t=e.buffer,n=e.subs;n.unsubscribe();a.arrRemove(o,e);r.next(t);u&&startBuffer()};var startBuffer=function(){if(o){var t=new i.Subscription;r.add(t);var n=[];var s={buffer:n,subs:t};o.push(s);l.executeSchedule(t,h,(function(){return emit(s)}),e)}};if(p!==null&&p>=0){l.executeSchedule(r,h,startBuffer,p,true)}else{u=true}startBuffer();var c=s.createOperatorSubscriber(r,(function(e){var t,r;var i=o.slice();try{for(var s=n(i),a=s.next();!a.done;a=s.next()){var u=a.value;var c=u.buffer;c.push(e);b<=c.length&&emit(u)}}catch(e){t={error:e}}finally{try{if(a&&!a.done&&(r=s.return))r.call(s)}finally{if(t)throw t.error}}}),(function(){while(o===null||o===void 0?void 0:o.length){r.next(o.shift().buffer)}c===null||c===void 0?void 0:c.unsubscribe();r.complete();r.unsubscribe()}),undefined,(function(){return o=null}));t.subscribe(c)}))}t.bufferTime=bufferTime},165:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.bufferToggle=void 0;var i=r(5208);var o=r(6613);var s=r(8015);var a=r(5161);var u=r(1720);var c=r(8645);function bufferToggle(e,t){return o.operate((function(r,o){var l=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,(function(e){var r=[];l.push(r);var n=new i.Subscription;var emitBuffer=function(){c.arrRemove(l,r);o.next(r);n.unsubscribe()};n.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,emitBuffer,u.noop)))}),u.noop));r.subscribe(a.createOperatorSubscriber(o,(function(e){var t,r;try{for(var i=n(l),o=i.next();!o.done;o=i.next()){var s=o.value;s.push(e)}}catch(e){t={error:e}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}}),(function(){while(l.length>0){o.next(l.shift())}o.complete()})))}))}t.bufferToggle=bufferToggle},3261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bufferWhen=void 0;var n=r(6613);var i=r(1720);var o=r(5161);var s=r(8015);function bufferWhen(e){return n.operate((function(t,r){var n=null;var a=null;var openBuffer=function(){a===null||a===void 0?void 0:a.unsubscribe();var t=n;n=[];t&&r.next(t);s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(r,openBuffer,i.noop))};openBuffer();t.subscribe(o.createOperatorSubscriber(r,(function(e){return n===null||n===void 0?void 0:n.push(e)}),(function(){n&&r.next(n);r.complete()}),undefined,(function(){return n=a=null})))}))}t.bufferWhen=bufferWhen},5660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.catchError=void 0;var n=r(8015);var i=r(5161);var o=r(6613);function catchError(e){return o.operate((function(t,r){var o=null;var s=false;var a;o=t.subscribe(i.createOperatorSubscriber(r,undefined,undefined,(function(i){a=n.innerFrom(e(i,catchError(e)(t)));if(o){o.unsubscribe();o=null;a.subscribe(r)}else{s=true}})));if(s){o.unsubscribe();o=null;a.subscribe(r)}}))}t.catchError=catchError},4031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.combineAll=void 0;var n=r(6298);t.combineAll=n.combineLatestAll},4789:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.combineLatest=void 0;var o=r(4253);var s=r(6613);var a=r(2353);var u=r(969);var c=r(4424);var l=r(6909);function combineLatest(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=l.popResultSelector(e);return r?c.pipe(combineLatest.apply(void 0,i([],n(e))),u.mapOneOrManyArgs(r)):s.operate((function(t,r){o.combineLatestInit(i([t],n(a.argsOrArgArray(e))))(r)}))}t.combineLatest=combineLatest},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.combineLatestAll=void 0;var n=r(4253);var i=r(672);function combineLatestAll(e){return i.joinAllInternals(n.combineLatest,e)}t.combineLatestAll=combineLatestAll},809:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.combineLatestWith=void 0;var o=r(4789);function combineLatestWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.combineLatest.apply(void 0,i([],n(e)))}t.combineLatestWith=combineLatestWith},7964:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.concat=void 0;var o=r(6613);var s=r(5824);var a=r(6909);var u=r(8687);function concat(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=a.popScheduler(e);return o.operate((function(t,o){s.concatAll()(u.from(i([t],n(e)),r)).subscribe(o)}))}t.concat=concat},5824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatAll=void 0;var n=r(3156);function concatAll(){return n.mergeAll(1)}t.concatAll=concatAll},449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatMap=void 0;var n=r(2397);var i=r(3856);function concatMap(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}t.concatMap=concatMap},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatMapTo=void 0;var n=r(449);var i=r(3856);function concatMapTo(e,t){return i.isFunction(t)?n.concatMap((function(){return e}),t):n.concatMap((function(){return e}))}t.concatMapTo=concatMapTo},3799:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.concatWith=void 0;var o=r(7964);function concatWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.concat.apply(void 0,i([],n(e)))}t.concatWith=concatWith},3201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.connect=void 0;var n=r(2357);var i=r(8015);var o=r(6613);var s=r(2598);var a={connector:function(){return new n.Subject}};function connect(e,t){if(t===void 0){t=a}var r=t.connector;return o.operate((function(t,n){var o=r();i.innerFrom(e(s.fromSubscribable(o))).subscribe(n);n.add(t.subscribe(o))}))}t.connect=connect},2372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.count=void 0;var n=r(9241);function count(e){return n.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)}t.count=count},1704:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debounce=void 0;var n=r(6613);var i=r(1720);var o=r(5161);var s=r(8015);function debounce(e){return n.operate((function(t,r){var n=false;var a=null;var u=null;var emit=function(){u===null||u===void 0?void 0:u.unsubscribe();u=null;if(n){n=false;var e=a;a=null;r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,(function(t){u===null||u===void 0?void 0:u.unsubscribe();n=true;a=t;u=o.createOperatorSubscriber(r,emit,i.noop);s.innerFrom(e(t)).subscribe(u)}),(function(){emit();r.complete()}),undefined,(function(){a=u=null})))}))}t.debounce=debounce},7461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debounceTime=void 0;var n=r(5583);var i=r(6613);var o=r(5161);function debounceTime(e,t){if(t===void 0){t=n.asyncScheduler}return i.operate((function(r,n){var i=null;var s=null;var a=null;var emit=function(){if(i){i.unsubscribe();i=null;var e=s;s=null;n.next(e)}};function emitWhenIdle(){var r=a+e;var o=t.now();if(o<r){i=this.schedule(undefined,r-o);n.add(i);return}emit()}r.subscribe(o.createOperatorSubscriber(n,(function(r){s=r;a=t.now();if(!i){i=t.schedule(emitWhenIdle,e);n.add(i)}}),(function(){emit();n.complete()}),undefined,(function(){s=i=null})))}))}t.debounceTime=debounceTime},7768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultIfEmpty=void 0;var n=r(6613);var i=r(5161);function defaultIfEmpty(e){return n.operate((function(t,r){var n=false;t.subscribe(i.createOperatorSubscriber(r,(function(e){n=true;r.next(e)}),(function(){if(!n){r.next(e)}r.complete()})))}))}t.defaultIfEmpty=defaultIfEmpty},140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=void 0;var n=r(5583);var i=r(5184);var o=r(8914);function delay(e,t){if(t===void 0){t=n.asyncScheduler}var r=o.timer(e,t);return i.delayWhen((function(){return r}))}t.delay=delay},5184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delayWhen=void 0;var n=r(8919);var i=r(8072);var o=r(7720);var s=r(8528);var a=r(2397);var u=r(8015);function delayWhen(e,t){if(t){return function(r){return n.concat(t.pipe(i.take(1),o.ignoreElements()),r.pipe(delayWhen(e)))}}return a.mergeMap((function(t,r){return u.innerFrom(e(t,r)).pipe(i.take(1),s.mapTo(t))}))}t.delayWhen=delayWhen},595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dematerialize=void 0;var n=r(7166);var i=r(6613);var o=r(5161);function dematerialize(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){return n.observeNotification(e,t)})))}))}t.dematerialize=dematerialize},6623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.distinct=void 0;var n=r(6613);var i=r(5161);var o=r(1720);var s=r(8015);function distinct(e,t){return n.operate((function(r,n){var a=new Set;r.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;if(!a.has(r)){a.add(r);n.next(t)}})));t&&s.innerFrom(t).subscribe(i.createOperatorSubscriber(n,(function(){return a.clear()}),o.noop))}))}t.distinct=distinct},8128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.distinctUntilChanged=void 0;var n=r(1418);var i=r(6613);var o=r(5161);function distinctUntilChanged(e,t){if(t===void 0){t=n.identity}e=e!==null&&e!==void 0?e:defaultCompare;return i.operate((function(r,n){var i;var s=true;r.subscribe(o.createOperatorSubscriber(n,(function(r){var o=t(r);if(s||!e(i,o)){s=false;i=o;n.next(r)}})))}))}t.distinctUntilChanged=distinctUntilChanged;function defaultCompare(e,t){return e===t}},7814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.distinctUntilKeyChanged=void 0;var n=r(8128);function distinctUntilKeyChanged(e,t){return n.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}t.distinctUntilKeyChanged=distinctUntilKeyChanged},246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.elementAt=void 0;var n=r(8775);var i=r(1909);var o=r(4747);var s=r(7768);var a=r(8072);function elementAt(e,t){if(e<0){throw new n.ArgumentOutOfRangeError}var r=arguments.length>=2;return function(u){return u.pipe(i.filter((function(t,r){return r===e})),a.take(1),r?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new n.ArgumentOutOfRangeError})))}}t.elementAt=elementAt},3026:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.endWith=void 0;var o=r(8919);var s=r(8482);function endWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return function(t){return o.concat(t,s.of.apply(void 0,i([],n(e))))}}t.endWith=endWith},6008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.every=void 0;var n=r(6613);var i=r(5161);function every(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(i){if(!e.call(t,i,o++,r)){n.next(false);n.complete()}}),(function(){n.next(true);n.complete()})))}))}t.every=every},4469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exhaust=void 0;var n=r(186);t.exhaust=n.exhaustAll},186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exhaustAll=void 0;var n=r(4419);var i=r(1418);function exhaustAll(){return n.exhaustMap(i.identity)}t.exhaustAll=exhaustAll},4419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exhaustMap=void 0;var n=r(3297);var i=r(8015);var o=r(6613);var s=r(5161);function exhaustMap(e,t){if(t){return function(r){return r.pipe(exhaustMap((function(r,o){return i.innerFrom(e(r,o)).pipe(n.map((function(e,n){return t(r,e,o,n)})))})))}}return o.operate((function(t,r){var n=0;var o=null;var a=false;t.subscribe(s.createOperatorSubscriber(r,(function(t){if(!o){o=s.createOperatorSubscriber(r,undefined,(function(){o=null;a&&r.complete()}));i.innerFrom(e(t,n++)).subscribe(o)}}),(function(){a=true;!o&&r.complete()})))}))}t.exhaustMap=exhaustMap},6911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.expand=void 0;var n=r(6613);var i=r(7757);function expand(e,t,r){if(t===void 0){t=Infinity}t=(t||0)<1?Infinity:t;return n.operate((function(n,o){return i.mergeInternals(n,o,e,t,undefined,true,r)}))}t.expand=expand},1909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filter=void 0;var n=r(6613);var i=r(5161);function filter(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}t.filter=filter},477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.finalize=void 0;var n=r(6613);function finalize(e){return n.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}t.finalize=finalize},1208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFind=t.find=void 0;var n=r(6613);var i=r(5161);function find(e,t){return n.operate(createFind(e,t,"value"))}t.find=find;function createFind(e,t,r){var n=r==="index";return function(r,o){var s=0;r.subscribe(i.createOperatorSubscriber(o,(function(i){var a=s++;if(e.call(t,i,a,r)){o.next(n?a:i);o.complete()}}),(function(){o.next(n?-1:undefined);o.complete()})))}}t.createFind=createFind},6946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findIndex=void 0;var n=r(6613);var i=r(1208);function findIndex(e,t){return n.operate(i.createFind(e,t,"index"))}t.findIndex=findIndex},5873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.first=void 0;var n=r(1741);var i=r(1909);var o=r(8072);var s=r(7768);var a=r(4747);var u=r(1418);function first(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.identity,o.take(1),r?s.defaultIfEmpty(t):a.throwIfEmpty((function(){return new n.EmptyError})))}}t.first=first},9956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.flatMap=void 0;var n=r(2397);t.flatMap=n.mergeMap},9337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.groupBy=void 0;var n=r(6692);var i=r(8015);var o=r(2357);var s=r(6613);var a=r(5161);function groupBy(e,t,r,u){return s.operate((function(s,c){var l;if(!t||typeof t==="function"){l=t}else{r=t.duration,l=t.element,u=t.connector}var f=new Map;var notify=function(e){f.forEach(e);e(c)};var handleError=function(e){return notify((function(t){return t.error(e)}))};var d=0;var h=false;var p=new a.OperatorSubscriber(c,(function(t){try{var n=e(t);var s=f.get(n);if(!s){f.set(n,s=u?u():new o.Subject);var d=createGroupedObservable(n,s);c.next(d);if(r){var h=a.createOperatorSubscriber(s,(function(){s.complete();h===null||h===void 0?void 0:h.unsubscribe()}),undefined,undefined,(function(){return f.delete(n)}));p.add(i.innerFrom(r(d)).subscribe(h))}}s.next(l?l(t):t)}catch(e){handleError(e)}}),(function(){return notify((function(e){return e.complete()}))}),handleError,(function(){return f.clear()}),(function(){h=true;return d===0}));s.subscribe(p);function createGroupedObservable(e,t){var r=new n.Observable((function(e){d++;var r=t.subscribe(e);return function(){r.unsubscribe();--d===0&&h&&p.unsubscribe()}}));r.key=e;return r}}))}t.groupBy=groupBy},7720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ignoreElements=void 0;var n=r(6613);var i=r(5161);var o=r(1720);function ignoreElements(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))}))}t.ignoreElements=ignoreElements},5954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=void 0;var n=r(6613);var i=r(5161);function isEmpty(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(false);t.complete()}),(function(){t.next(true);t.complete()})))}))}t.isEmpty=isEmpty},672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinAllInternals=void 0;var n=r(1418);var i=r(969);var o=r(4424);var s=r(2397);var a=r(829);function joinAllInternals(e,t){return o.pipe(a.toArray(),s.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):n.identity)}t.joinAllInternals=joinAllInternals},7999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.last=void 0;var n=r(1741);var i=r(1909);var o=r(5656);var s=r(4747);var a=r(7768);var u=r(1418);function last(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.identity,o.takeLast(1),r?a.defaultIfEmpty(t):s.throwIfEmpty((function(){return new n.EmptyError})))}}t.last=last},3297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.map=void 0;var n=r(6613);var i=r(5161);function map(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))}t.map=map},8528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mapTo=void 0;var n=r(3297);function mapTo(e){return n.map((function(){return e}))}t.mapTo=mapTo},2442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.materialize=void 0;var n=r(7166);var i=r(6613);var o=r(5161);function materialize(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){t.next(n.Notification.createNext(e))}),(function(){t.next(n.Notification.createComplete());t.complete()}),(function(e){t.next(n.Notification.createError(e));t.complete()})))}))}t.materialize=materialize},9593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.max=void 0;var n=r(9241);var i=r(3856);function max(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}t.max=max},9675:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;var o=r(6613);var s=r(3156);var a=r(6909);var u=r(8687);function merge(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=a.popScheduler(e);var c=a.popNumber(e,Infinity);return o.operate((function(t,o){s.mergeAll(c)(u.from(i([t],n(e)),r)).subscribe(o)}))}t.merge=merge},3156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeAll=void 0;var n=r(2397);var i=r(1418);function mergeAll(e){if(e===void 0){e=Infinity}return n.mergeMap(i.identity,e)}t.mergeAll=mergeAll},7757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeInternals=void 0;var n=r(8015);var i=r(6804);var o=r(5161);function mergeInternals(e,t,r,s,a,u,c,l){var f=[];var d=0;var h=0;var p=false;var checkComplete=function(){if(p&&!f.length&&!d){t.complete()}};var outerNext=function(e){return d<s?doInnerSub(e):f.push(e)};var doInnerSub=function(e){u&&t.next(e);d++;var l=false;n.innerFrom(r(e,h++)).subscribe(o.createOperatorSubscriber(t,(function(e){a===null||a===void 0?void 0:a(e);if(u){outerNext(e)}else{t.next(e)}}),(function(){l=true}),undefined,(function(){if(l){try{d--;var _loop_1=function(){var e=f.shift();if(c){i.executeSchedule(t,c,(function(){return doInnerSub(e)}))}else{doInnerSub(e)}};while(f.length&&d<s){_loop_1()}checkComplete()}catch(e){t.error(e)}}})))};e.subscribe(o.createOperatorSubscriber(t,outerNext,(function(){p=true;checkComplete()})));return function(){l===null||l===void 0?void 0:l()}}t.mergeInternals=mergeInternals},2397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeMap=void 0;var n=r(3297);var i=r(8015);var o=r(6613);var s=r(7757);var a=r(3856);function mergeMap(e,t,r){if(r===void 0){r=Infinity}if(a.isFunction(t)){return mergeMap((function(r,o){return n.map((function(e,n){return t(r,e,o,n)}))(i.innerFrom(e(r,o)))}),r)}else if(typeof t==="number"){r=t}return o.operate((function(t,n){return s.mergeInternals(t,n,e,r)}))}t.mergeMap=mergeMap},5484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeMapTo=void 0;var n=r(2397);var i=r(3856);function mergeMapTo(e,t,r){if(r===void 0){r=Infinity}if(i.isFunction(t)){return n.mergeMap((function(){return e}),t,r)}if(typeof t==="number"){r=t}return n.mergeMap((function(){return e}),r)}t.mergeMapTo=mergeMapTo},2222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeScan=void 0;var n=r(6613);var i=r(7757);function mergeScan(e,t,r){if(r===void 0){r=Infinity}return n.operate((function(n,o){var s=t;return i.mergeInternals(n,o,(function(t,r){return e(s,t,r)}),r,(function(e){s=e}),false,undefined,(function(){return s=null}))}))}t.mergeScan=mergeScan},1779:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.mergeWith=void 0;var o=r(9675);function mergeWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.merge.apply(void 0,i([],n(e)))}t.mergeWith=mergeWith},315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.min=void 0;var n=r(9241);var i=r(3856);function min(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}t.min=min},6889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multicast=void 0;var n=r(2264);var i=r(3856);var o=r(3201);function multicast(e,t){var r=i.isFunction(e)?e:function(){return e};if(i.isFunction(t)){return o.connect(t,{connector:r})}return function(e){return new n.ConnectableObservable(e,r)}}t.multicast=multicast},2366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.observeOn=void 0;var n=r(6804);var i=r(6613);var o=r(5161);function observeOn(e,t){if(t===void 0){t=0}return i.operate((function(r,i){r.subscribe(o.createOperatorSubscriber(i,(function(r){return n.executeSchedule(i,e,(function(){return i.next(r)}),t)}),(function(){return n.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(r){return n.executeSchedule(i,e,(function(){return i.error(r)}),t)})))}))}t.observeOn=observeOn},2292:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var o=r(2353);var s=r(6756);function onErrorResumeNextWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=o.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,i([e],n(r)))}}t.onErrorResumeNextWith=onErrorResumeNextWith;t.onErrorResumeNext=onErrorResumeNextWith},2219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pairwise=void 0;var n=r(6613);var i=r(5161);function pairwise(){return n.operate((function(e,t){var r;var n=false;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=r;r=e;n&&t.next([i,e]);n=true})))}))}t.pairwise=pairwise},8338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pluck=void 0;var n=r(3297);function pluck(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=e.length;if(r===0){throw new Error("list of properties cannot be empty.")}return n.map((function(t){var n=t;for(var i=0;i<r;i++){var o=n===null||n===void 0?void 0:n[e[i]];if(typeof o!=="undefined"){n=o}else{return undefined}}return n}))}t.pluck=pluck},7160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publish=void 0;var n=r(2357);var i=r(6889);var o=r(3201);function publish(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}t.publish=publish},734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publishBehavior=void 0;var n=r(279);var i=r(2264);function publishBehavior(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return r}))}}t.publishBehavior=publishBehavior},6312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publishLast=void 0;var n=r(5889);var i=r(2264);function publishLast(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}t.publishLast=publishLast},451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publishReplay=void 0;var n=r(9256);var i=r(6889);var o=r(3856);function publishReplay(e,t,r,s){if(r&&!o.isFunction(r)){s=r}var a=o.isFunction(r)?r:undefined;return function(r){return i.multicast(new n.ReplaySubject(e,t,s),a)(r)}}t.publishReplay=publishReplay},5434:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.raceWith=void 0;var o=r(7446);var s=r(6613);var a=r(1418);function raceWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return!e.length?a.identity:s.operate((function(t,r){o.raceInit(i([t],n(e)))(r)}))}t.raceWith=raceWith},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reduce=void 0;var n=r(5590);var i=r(6613);function reduce(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,false,true))}t.reduce=reduce},2307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.refCount=void 0;var n=r(6613);var i=r(5161);function refCount(){return n.operate((function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,undefined,undefined,undefined,(function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var n=e._connection;var i=r;r=null;if(n&&(!i||n===i)){n.unsubscribe()}t.unsubscribe()}));e.subscribe(n);if(!n.closed){r=e.connect()}}))}t.refCount=refCount},2420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.repeat=void 0;var n=r(5458);var i=r(6613);var o=r(5161);var s=r(8015);var a=r(8914);function repeat(e){var t;var r=Infinity;var u;if(e!=null){if(typeof e==="object"){t=e.count,r=t===void 0?Infinity:t,u=e.delay}else{r=e}}return r<=0?function(){return n.EMPTY}:i.operate((function(e,t){var n=0;var i;var resubscribe=function(){i===null||i===void 0?void 0:i.unsubscribe();i=null;if(u!=null){var e=typeof u==="number"?a.timer(u):s.innerFrom(u(n));var r=o.createOperatorSubscriber(t,(function(){r.unsubscribe();subscribeToSource()}));e.subscribe(r)}else{subscribeToSource()}};var subscribeToSource=function(){var s=false;i=e.subscribe(o.createOperatorSubscriber(t,undefined,(function(){if(++n<r){if(i){resubscribe()}else{s=true}}else{t.complete()}})));if(s){resubscribe()}};subscribeToSource()}))}t.repeat=repeat},1320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.repeatWhen=void 0;var n=r(8015);var i=r(2357);var o=r(6613);var s=r(5161);function repeatWhen(e){return o.operate((function(t,r){var o;var a=false;var u;var c=false;var l=false;var checkComplete=function(){return l&&c&&(r.complete(),true)};var getCompletionSubject=function(){if(!u){u=new i.Subject;n.innerFrom(e(u)).subscribe(s.createOperatorSubscriber(r,(function(){if(o){subscribeForRepeatWhen()}else{a=true}}),(function(){c=true;checkComplete()})))}return u};var subscribeForRepeatWhen=function(){l=false;o=t.subscribe(s.createOperatorSubscriber(r,undefined,(function(){l=true;!checkComplete()&&getCompletionSubject().next()})));if(a){o.unsubscribe();o=null;a=false;subscribeForRepeatWhen()}};subscribeForRepeatWhen()}))}t.repeatWhen=repeatWhen},6109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;var n=r(6613);var i=r(5161);var o=r(1418);var s=r(8914);var a=r(8015);function retry(e){if(e===void 0){e=Infinity}var t;if(e&&typeof e==="object"){t=e}else{t={count:e}}var r=t.count,u=r===void 0?Infinity:r,c=t.delay,l=t.resetOnSuccess,f=l===void 0?false:l;return u<=0?o.identity:n.operate((function(e,t){var r=0;var n;var subscribeForRetry=function(){var o=false;n=e.subscribe(i.createOperatorSubscriber(t,(function(e){if(f){r=0}t.next(e)}),undefined,(function(e){if(r++<u){var resub_1=function(){if(n){n.unsubscribe();n=null;subscribeForRetry()}else{o=true}};if(c!=null){var l=typeof c==="number"?s.timer(c):a.innerFrom(c(e,r));var f=i.createOperatorSubscriber(t,(function(){f.unsubscribe();resub_1()}),(function(){t.complete()}));l.subscribe(f)}else{resub_1()}}else{t.error(e)}})));if(o){n.unsubscribe();n=null;subscribeForRetry()}};subscribeForRetry()}))}t.retry=retry},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryWhen=void 0;var n=r(8015);var i=r(2357);var o=r(6613);var s=r(5161);function retryWhen(e){return o.operate((function(t,r){var o;var a=false;var u;var subscribeForRetryWhen=function(){o=t.subscribe(s.createOperatorSubscriber(r,undefined,undefined,(function(t){if(!u){u=new i.Subject;n.innerFrom(e(u)).subscribe(s.createOperatorSubscriber(r,(function(){return o?subscribeForRetryWhen():a=true})))}if(u){u.next(t)}})));if(a){o.unsubscribe();o=null;a=false;subscribeForRetryWhen()}};subscribeForRetryWhen()}))}t.retryWhen=retryWhen},845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sample=void 0;var n=r(8015);var i=r(6613);var o=r(1720);var s=r(5161);function sample(e){return i.operate((function(t,r){var i=false;var a=null;t.subscribe(s.createOperatorSubscriber(r,(function(e){i=true;a=e})));n.innerFrom(e).subscribe(s.createOperatorSubscriber(r,(function(){if(i){i=false;var e=a;a=null;r.next(e)}}),o.noop))}))}t.sample=sample},5640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sampleTime=void 0;var n=r(5583);var i=r(845);var o=r(8658);function sampleTime(e,t){if(t===void 0){t=n.asyncScheduler}return i.sample(o.interval(e,t))}t.sampleTime=sampleTime},714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scan=void 0;var n=r(6613);var i=r(5590);function scan(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,true))}t.scan=scan},5590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scanInternals=void 0;var n=r(5161);function scanInternals(e,t,r,i,o){return function(s,a){var u=r;var c=t;var l=0;s.subscribe(n.createOperatorSubscriber(a,(function(t){var r=l++;c=u?e(c,t,r):(u=true,t);i&&a.next(c)}),o&&function(){u&&a.next(c);a.complete()}))}}t.scanInternals=scanInternals},3468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sequenceEqual=void 0;var n=r(6613);var i=r(5161);var o=r(8015);function sequenceEqual(e,t){if(t===void 0){t=function(e,t){return e===t}}return n.operate((function(r,n){var s=createState();var a=createState();var emit=function(e){n.next(e);n.complete()};var createSubscriber=function(e,r){var o=i.createOperatorSubscriber(n,(function(n){var i=r.buffer,o=r.complete;if(i.length===0){o?emit(false):e.buffer.push(n)}else{!t(n,i.shift())&&emit(false)}}),(function(){e.complete=true;var t=r.complete,n=r.buffer;t&&emit(n.length===0);o===null||o===void 0?void 0:o.unsubscribe()}));return o};r.subscribe(createSubscriber(s,a));o.innerFrom(e).subscribe(createSubscriber(a,s))}))}t.sequenceEqual=sequenceEqual;function createState(){return{buffer:[],complete:false}}},656:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.share=void 0;var o=r(8015);var s=r(2357);var a=r(2703);var u=r(6613);function share(e){if(e===void 0){e={}}var t=e.connector,r=t===void 0?function(){return new s.Subject}:t,n=e.resetOnError,i=n===void 0?true:n,c=e.resetOnComplete,l=c===void 0?true:c,f=e.resetOnRefCountZero,d=f===void 0?true:f;return function(e){var t;var n;var s;var c=0;var f=false;var h=false;var cancelReset=function(){n===null||n===void 0?void 0:n.unsubscribe();n=undefined};var reset=function(){cancelReset();t=s=undefined;f=h=false};var resetAndUnsubscribe=function(){var e=t;reset();e===null||e===void 0?void 0:e.unsubscribe()};return u.operate((function(e,u){c++;if(!h&&!f){cancelReset()}var p=s=s!==null&&s!==void 0?s:r();u.add((function(){c--;if(c===0&&!h&&!f){n=handleReset(resetAndUnsubscribe,d)}}));p.subscribe(u);if(!t&&c>0){t=new a.SafeSubscriber({next:function(e){return p.next(e)},error:function(e){h=true;cancelReset();n=handleReset(reset,i,e);p.error(e)},complete:function(){f=true;cancelReset();n=handleReset(reset,l);p.complete()}});o.innerFrom(e).subscribe(t)}}))(e)}}t.share=share;function handleReset(e,t){var r=[];for(var s=2;s<arguments.length;s++){r[s-2]=arguments[s]}if(t===true){e();return}if(t===false){return}var u=new a.SafeSubscriber({next:function(){u.unsubscribe();e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(u)}},8267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shareReplay=void 0;var n=r(9256);var i=r(656);function shareReplay(e,t,r){var o,s,a;var u;var c=false;if(e&&typeof e==="object"){o=e.bufferSize,u=o===void 0?Infinity:o,s=e.windowTime,t=s===void 0?Infinity:s,a=e.refCount,c=a===void 0?false:a,r=e.scheduler}else{u=e!==null&&e!==void 0?e:Infinity}return i.share({connector:function(){return new n.ReplaySubject(u,t,r)},resetOnError:true,resetOnComplete:false,resetOnRefCountZero:c})}t.shareReplay=shareReplay},9779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.single=void 0;var n=r(1741);var i=r(8519);var o=r(2069);var s=r(6613);var a=r(5161);function single(e){return s.operate((function(t,r){var s=false;var u;var c=false;var l=0;t.subscribe(a.createOperatorSubscriber(r,(function(n){c=true;if(!e||e(n,l++,t)){s&&r.error(new i.SequenceError("Too many matching values"));s=true;u=n}}),(function(){if(s){r.next(u);r.complete()}else{r.error(c?new o.NotFoundError("No matching values"):new n.EmptyError)}})))}))}t.single=single},9428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skip=void 0;var n=r(1909);function skip(e){return n.filter((function(t,r){return e<=r}))}t.skip=skip},6532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipLast=void 0;var n=r(1418);var i=r(6613);var o=r(5161);function skipLast(e){return e<=0?n.identity:i.operate((function(t,r){var n=new Array(e);var i=0;t.subscribe(o.createOperatorSubscriber(r,(function(t){var o=i++;if(o<e){n[o]=t}else{var s=o%e;var a=n[s];n[s]=t;r.next(a)}})));return function(){n=null}}))}t.skipLast=skipLast},8370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipUntil=void 0;var n=r(6613);var i=r(5161);var o=r(8015);var s=r(1720);function skipUntil(e){return n.operate((function(t,r){var n=false;var a=i.createOperatorSubscriber(r,(function(){a===null||a===void 0?void 0:a.unsubscribe();n=true}),s.noop);o.innerFrom(e).subscribe(a);t.subscribe(i.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))}t.skipUntil=skipUntil},7511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipWhile=void 0;var n=r(6613);var i=r(5161);function skipWhile(e){return n.operate((function(t,r){var n=false;var o=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))}t.skipWhile=skipWhile},7395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.startWith=void 0;var n=r(8919);var i=r(6909);var o=r(6613);function startWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=i.popScheduler(e);return o.operate((function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)}))}t.startWith=startWith},5282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.subscribeOn=void 0;var n=r(6613);function subscribeOn(e,t){if(t===void 0){t=0}return n.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}t.subscribeOn=subscribeOn},4188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchAll=void 0;var n=r(2789);var i=r(1418);function switchAll(){return n.switchMap(i.identity)}t.switchAll=switchAll},2789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchMap=void 0;var n=r(8015);var i=r(6613);var o=r(5161);function switchMap(e,t){return i.operate((function(r,i){var s=null;var a=0;var u=false;var checkComplete=function(){return u&&!s&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,(function(r){s===null||s===void 0?void 0:s.unsubscribe();var u=0;var c=a++;n.innerFrom(e(r,c)).subscribe(s=o.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,c,u++):e)}),(function(){s=null;checkComplete()})))}),(function(){u=true;checkComplete()})))}))}t.switchMap=switchMap},564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchMapTo=void 0;var n=r(2789);var i=r(3856);function switchMapTo(e,t){return i.isFunction(t)?n.switchMap((function(){return e}),t):n.switchMap((function(){return e}))}t.switchMapTo=switchMapTo},8054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchScan=void 0;var n=r(2789);var i=r(6613);function switchScan(e,t){return i.operate((function(r,i){var o=t;n.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(i);return function(){o=null}}))}t.switchScan=switchScan},8072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.take=void 0;var n=r(5458);var i=r(6613);var o=r(5161);function take(e){return e<=0?function(){return n.EMPTY}:i.operate((function(t,r){var n=0;t.subscribe(o.createOperatorSubscriber(r,(function(t){if(++n<=e){r.next(t);if(e<=n){r.complete()}}})))}))}t.take=take},5656:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.takeLast=void 0;var i=r(5458);var o=r(6613);var s=r(5161);function takeLast(e){return e<=0?function(){return i.EMPTY}:o.operate((function(t,r){var i=[];t.subscribe(s.createOperatorSubscriber(r,(function(t){i.push(t);e<i.length&&i.shift()}),(function(){var e,t;try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var a=s.value;r.next(a)}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(t=o.return))t.call(o)}finally{if(e)throw e.error}}r.complete()}),undefined,(function(){i=null})))}))}t.takeLast=takeLast},4046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.takeUntil=void 0;var n=r(6613);var i=r(5161);var o=r(8015);var s=r(1720);function takeUntil(e){return n.operate((function(t,r){o.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){return r.complete()}),s.noop));!r.closed&&t.subscribe(r)}))}t.takeUntil=takeUntil},1163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.takeWhile=void 0;var n=r(6613);var i=r(5161);function takeWhile(e,t){if(t===void 0){t=false}return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r);!i&&n.complete()})))}))}t.takeWhile=takeWhile},5673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tap=void 0;var n=r(3856);var i=r(6613);var o=r(5161);var s=r(1418);function tap(e,t,r){var a=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return a?i.operate((function(e,t){var r;(r=a.subscribe)===null||r===void 0?void 0:r.call(a);var n=true;e.subscribe(o.createOperatorSubscriber(t,(function(e){var r;(r=a.next)===null||r===void 0?void 0:r.call(a,e);t.next(e)}),(function(){var e;n=false;(e=a.complete)===null||e===void 0?void 0:e.call(a);t.complete()}),(function(e){var r;n=false;(r=a.error)===null||r===void 0?void 0:r.call(a,e);t.error(e)}),(function(){var e,t;if(n){(e=a.unsubscribe)===null||e===void 0?void 0:e.call(a)}(t=a.finalize)===null||t===void 0?void 0:t.call(a)})))})):s.identity}t.tap=tap},8923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttle=void 0;var n=r(6613);var i=r(5161);var o=r(8015);function throttle(e,t){return n.operate((function(r,n){var s=t!==null&&t!==void 0?t:{},a=s.leading,u=a===void 0?true:a,c=s.trailing,l=c===void 0?false:c;var f=false;var d=null;var h=null;var p=false;var endThrottling=function(){h===null||h===void 0?void 0:h.unsubscribe();h=null;if(l){send();p&&n.complete()}};var cleanupThrottling=function(){h=null;p&&n.complete()};var startThrottle=function(t){return h=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,endThrottling,cleanupThrottling))};var send=function(){if(f){f=false;var e=d;d=null;n.next(e);!p&&startThrottle(e)}};r.subscribe(i.createOperatorSubscriber(n,(function(e){f=true;d=e;!(h&&!h.closed)&&(u?send():startThrottle(e))}),(function(){p=true;!(l&&f&&h&&!h.closed)&&n.complete()})))}))}t.throttle=throttle},6558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttleTime=void 0;var n=r(5583);var i=r(8923);var o=r(8914);function throttleTime(e,t,r){if(t===void 0){t=n.asyncScheduler}var s=o.timer(e,t);return i.throttle((function(){return s}),r)}t.throttleTime=throttleTime},4747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwIfEmpty=void 0;var n=r(1741);var i=r(6613);var o=r(5161);function throwIfEmpty(e){if(e===void 0){e=defaultErrorFactory}return i.operate((function(t,r){var n=false;t.subscribe(o.createOperatorSubscriber(r,(function(e){n=true;r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))}t.throwIfEmpty=throwIfEmpty;function defaultErrorFactory(){return new n.EmptyError}},635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TimeInterval=t.timeInterval=void 0;var n=r(5583);var i=r(6613);var o=r(5161);function timeInterval(e){if(e===void 0){e=n.asyncScheduler}return i.operate((function(t,r){var n=e.now();t.subscribe(o.createOperatorSubscriber(r,(function(t){var i=e.now();var o=i-n;n=i;r.next(new s(t,o))})))}))}t.timeInterval=timeInterval;var s=function(){function TimeInterval(e,t){this.value=e;this.interval=t}return TimeInterval}();t.TimeInterval=s},4176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timeout=t.TimeoutError=void 0;var n=r(5583);var i=r(9908);var o=r(6613);var s=r(8015);var a=r(250);var u=r(5161);var c=r(6804);t.TimeoutError=a.createErrorClass((function(e){return function TimeoutErrorImpl(t){if(t===void 0){t=null}e(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=t}}));function timeout(e,t){var r=i.isValidDate(e)?{first:e}:typeof e==="number"?{each:e}:e,a=r.first,l=r.each,f=r.with,d=f===void 0?timeoutErrorFactory:f,h=r.scheduler,p=h===void 0?t!==null&&t!==void 0?t:n.asyncScheduler:h,b=r.meta,m=b===void 0?null:b;if(a==null&&l==null){throw new TypeError("No timeout provided.")}return o.operate((function(e,t){var r;var n;var i=null;var o=0;var startTimer=function(e){n=c.executeSchedule(t,p,(function(){try{r.unsubscribe();s.innerFrom(d({meta:m,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(u.createOperatorSubscriber(t,(function(e){n===null||n===void 0?void 0:n.unsubscribe();o++;t.next(i=e);l>0&&startTimer(l)}),undefined,undefined,(function(){if(!(n===null||n===void 0?void 0:n.closed)){n===null||n===void 0?void 0:n.unsubscribe()}i=null})));!o&&startTimer(a!=null?typeof a==="number"?a:+a-p.now():l)}))}t.timeout=timeout;function timeoutErrorFactory(e){throw new t.TimeoutError(e)}},840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timeoutWith=void 0;var n=r(5583);var i=r(9908);var o=r(4176);function timeoutWith(e,t,r){var s;var a;var u;r=r!==null&&r!==void 0?r:n.async;if(i.isValidDate(e)){s=e}else if(typeof e==="number"){a=e}if(t){u=function(){return t}}else{throw new TypeError("No observable provided to switch to")}if(s==null&&a==null){throw new TypeError("No timeout provided.")}return o.timeout({first:s,each:a,scheduler:r,with:u})}t.timeoutWith=timeoutWith},2415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timestamp=void 0;var n=r(1742);var i=r(3297);function timestamp(e){if(e===void 0){e=n.dateTimestampProvider}return i.map((function(t){return{value:t,timestamp:e.now()}}))}t.timestamp=timestamp},829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toArray=void 0;var n=r(9241);var i=r(6613);var arrReducer=function(e,t){return e.push(t),e};function toArray(){return i.operate((function(e,t){n.reduce(arrReducer,[])(e).subscribe(t)}))}t.toArray=toArray},2619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.window=void 0;var n=r(2357);var i=r(6613);var o=r(5161);var s=r(1720);var a=r(8015);function window(e){return i.operate((function(t,r){var i=new n.Subject;r.next(i.asObservable());var errorHandler=function(e){i.error(e);r.error(e)};t.subscribe(o.createOperatorSubscriber(r,(function(e){return i===null||i===void 0?void 0:i.next(e)}),(function(){i.complete();r.complete()}),errorHandler));a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){i.complete();r.next(i=new n.Subject)}),s.noop,errorHandler));return function(){i===null||i===void 0?void 0:i.unsubscribe();i=null}}))}t.window=window},8024:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.windowCount=void 0;var i=r(2357);var o=r(6613);var s=r(5161);function windowCount(e,t){if(t===void 0){t=0}var r=t>0?t:e;return o.operate((function(t,o){var a=[new i.Subject];var u=[];var c=0;o.next(a[0].asObservable());t.subscribe(s.createOperatorSubscriber(o,(function(t){var s,u;try{for(var l=n(a),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(t)}}catch(e){s={error:e}}finally{try{if(f&&!f.done&&(u=l.return))u.call(l)}finally{if(s)throw s.error}}var h=c-e+1;if(h>=0&&h%r===0){a.shift().complete()}if(++c%r===0){var p=new i.Subject;a.push(p);o.next(p.asObservable())}}),(function(){while(a.length>0){a.shift().complete()}o.complete()}),(function(e){while(a.length>0){a.shift().error(e)}o.error(e)}),(function(){u=null;a=null})))}))}t.windowCount=windowCount},6897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.windowTime=void 0;var n=r(2357);var i=r(5583);var o=r(5208);var s=r(6613);var a=r(5161);var u=r(8645);var c=r(6909);var l=r(6804);function windowTime(e){var t,r;var f=[];for(var d=1;d<arguments.length;d++){f[d-1]=arguments[d]}var h=(t=c.popScheduler(f))!==null&&t!==void 0?t:i.asyncScheduler;var p=(r=f[0])!==null&&r!==void 0?r:null;var b=f[1]||Infinity;return s.operate((function(t,r){var i=[];var s=false;var closeWindow=function(e){var t=e.window,r=e.subs;t.complete();r.unsubscribe();u.arrRemove(i,e);s&&startWindow()};var startWindow=function(){if(i){var t=new o.Subscription;r.add(t);var s=new n.Subject;var a={window:s,subs:t,seen:0};i.push(a);r.next(s.asObservable());l.executeSchedule(t,h,(function(){return closeWindow(a)}),e)}};if(p!==null&&p>=0){l.executeSchedule(r,h,startWindow,p,true)}else{s=true}startWindow();var loop=function(e){return i.slice().forEach(e)};var terminate=function(e){loop((function(t){var r=t.window;return e(r)}));e(r);r.unsubscribe()};t.subscribe(a.createOperatorSubscriber(r,(function(e){loop((function(t){t.window.next(e);b<=++t.seen&&closeWindow(t)}))}),(function(){return terminate((function(e){return e.complete()}))}),(function(e){return terminate((function(t){return t.error(e)}))})));return function(){i=null}}))}t.windowTime=windowTime},783:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.windowToggle=void 0;var i=r(2357);var o=r(5208);var s=r(6613);var a=r(8015);var u=r(5161);var c=r(1720);var l=r(8645);function windowToggle(e,t){return s.operate((function(r,s){var f=[];var handleError=function(e){while(0<f.length){f.shift().error(e)}s.error(e)};a.innerFrom(e).subscribe(u.createOperatorSubscriber(s,(function(e){var r=new i.Subject;f.push(r);var n=new o.Subscription;var closeWindow=function(){l.arrRemove(f,r);r.complete();n.unsubscribe()};var d;try{d=a.innerFrom(t(e))}catch(e){handleError(e);return}s.next(r.asObservable());n.add(d.subscribe(u.createOperatorSubscriber(s,closeWindow,c.noop,handleError)))}),c.noop));r.subscribe(u.createOperatorSubscriber(s,(function(e){var t,r;var i=f.slice();try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var a=s.value;a.next(e)}}catch(e){t={error:e}}finally{try{if(s&&!s.done&&(r=o.return))r.call(o)}finally{if(t)throw t.error}}}),(function(){while(0<f.length){f.shift().complete()}s.complete()}),handleError,(function(){while(0<f.length){f.shift().unsubscribe()}})))}))}t.windowToggle=windowToggle},4243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.windowWhen=void 0;var n=r(2357);var i=r(6613);var o=r(5161);var s=r(8015);function windowWhen(e){return i.operate((function(t,r){var i;var a;var handleError=function(e){i.error(e);r.error(e)};var openWindow=function(){a===null||a===void 0?void 0:a.unsubscribe();i===null||i===void 0?void 0:i.complete();i=new n.Subject;r.next(i.asObservable());var t;try{t=s.innerFrom(e())}catch(e){handleError(e);return}t.subscribe(a=o.createOperatorSubscriber(r,openWindow,openWindow,handleError))};openWindow();t.subscribe(o.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete();r.complete()}),handleError,(function(){a===null||a===void 0?void 0:a.unsubscribe();i=null})))}))}t.windowWhen=windowWhen},5972:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.withLatestFrom=void 0;var o=r(6613);var s=r(5161);var a=r(8015);var u=r(1418);var c=r(1720);var l=r(6909);function withLatestFrom(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=l.popResultSelector(e);return o.operate((function(t,o){var l=e.length;var f=new Array(l);var d=e.map((function(){return false}));var h=false;var _loop_1=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(o,(function(e){f[t]=e;if(!h&&!d[t]){d[t]=true;(h=d.every(u.identity))&&(d=null)}}),c.noop))};for(var p=0;p<l;p++){_loop_1(p)}t.subscribe(s.createOperatorSubscriber(o,(function(e){if(h){var t=i([e],n(f));o.next(r?r.apply(void 0,i([],n(t))):t)}})))}))}t.withLatestFrom=withLatestFrom},9700:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.zip=void 0;var o=r(9820);var s=r(6613);function zip(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return s.operate((function(t,r){o.zip.apply(void 0,i([t],n(e))).subscribe(r)}))}t.zip=zip},3210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.zipAll=void 0;var n=r(9820);var i=r(672);function zipAll(e){return i.joinAllInternals(n.zip,e)}t.zipAll=zipAll},2268:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.zipWith=void 0;var o=r(9700);function zipWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.zip.apply(void 0,i([],n(e)))}t.zipWith=zipWith},2111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleArray=void 0;var n=r(6692);function scheduleArray(e,t){return new n.Observable((function(r){var n=0;return t.schedule((function(){if(n===e.length){r.complete()}else{r.next(e[n++]);if(!r.closed){this.schedule()}}}))}))}t.scheduleArray=scheduleArray},6680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleAsyncIterable=void 0;var n=r(6692);var i=r(6804);function scheduleAsyncIterable(e,t){if(!e){throw new Error("Iterable cannot be null")}return new n.Observable((function(r){i.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,(function(){n.next().then((function(e){if(e.done){r.complete()}else{r.next(e.value)}}))}),0,true)}))}))}t.scheduleAsyncIterable=scheduleAsyncIterable},178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleIterable=void 0;var n=r(6692);var i=r(7650);var o=r(3856);var s=r(6804);function scheduleIterable(e,t){return new n.Observable((function(r){var n;s.executeSchedule(r,t,(function(){n=e[i.iterator]();s.executeSchedule(r,t,(function(){var e;var t;var i;try{e=n.next(),t=e.value,i=e.done}catch(e){r.error(e);return}if(i){r.complete()}else{r.next(t)}}),0,true)}));return function(){return o.isFunction(n===null||n===void 0?void 0:n.return)&&n.return()}}))}t.scheduleIterable=scheduleIterable},3145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleObservable=void 0;var n=r(8015);var i=r(2366);var o=r(5282);function scheduleObservable(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}t.scheduleObservable=scheduleObservable},9375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.schedulePromise=void 0;var n=r(8015);var i=r(2366);var o=r(5282);function schedulePromise(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}t.schedulePromise=schedulePromise},7439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleReadableStreamLike=void 0;var n=r(6680);var i=r(2519);function scheduleReadableStreamLike(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}t.scheduleReadableStreamLike=scheduleReadableStreamLike},1478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduled=void 0;var n=r(3145);var i=r(9375);var o=r(2111);var s=r(178);var a=r(6680);var u=r(1414);var c=r(9063);var l=r(4800);var f=r(6045);var d=r(1744);var h=r(9404);var p=r(2519);var b=r(7439);function scheduled(e,t){if(e!=null){if(u.isInteropObservable(e)){return n.scheduleObservable(e,t)}if(l.isArrayLike(e)){return o.scheduleArray(e,t)}if(c.isPromise(e)){return i.schedulePromise(e,t)}if(d.isAsyncIterable(e)){return a.scheduleAsyncIterable(e,t)}if(f.isIterable(e)){return s.scheduleIterable(e,t)}if(p.isReadableStreamLike(e)){return b.scheduleReadableStreamLike(e,t)}}throw h.createInvalidObservableTypeError(e)}t.scheduled=scheduled},609:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Action=void 0;var i=r(5208);var o=function(e){n(Action,e);function Action(t,r){return e.call(this)||this}Action.prototype.schedule=function(e,t){if(t===void 0){t=0}return this};return Action}(i.Subscription);t.Action=o},8426:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AnimationFrameAction=void 0;var i=r(6693);var o=r(3437);var s=function(e){n(AnimationFrameAction,e);function AnimationFrameAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;return n}AnimationFrameAction.prototype.requestAsyncId=function(t,r,n){if(n===void 0){n=0}if(n!==null&&n>0){return e.prototype.requestAsyncId.call(this,t,r,n)}t.actions.push(this);return t._scheduled||(t._scheduled=o.animationFrameProvider.requestAnimationFrame((function(){return t.flush(undefined)})))};AnimationFrameAction.prototype.recycleAsyncId=function(t,r,n){var i;if(n===void 0){n=0}if(n!=null?n>0:this.delay>0){return e.prototype.recycleAsyncId.call(this,t,r,n)}var s=t.actions;if(r!=null&&r===t._scheduled&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r){o.animationFrameProvider.cancelAnimationFrame(r);t._scheduled=undefined}return undefined};return AnimationFrameAction}(i.AsyncAction);t.AnimationFrameAction=s},9919:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AnimationFrameScheduler=void 0;var i=r(2318);var o=function(e){n(AnimationFrameScheduler,e);function AnimationFrameScheduler(){return e!==null&&e.apply(this,arguments)||this}AnimationFrameScheduler.prototype.flush=function(e){this._active=true;var t;if(e){t=e.id}else{t=this._scheduled;this._scheduled=undefined}var r=this.actions;var n;e=e||r.shift();do{if(n=e.execute(e.state,e.delay)){break}}while((e=r[0])&&e.id===t&&r.shift());this._active=false;if(n){while((e=r[0])&&e.id===t&&r.shift()){e.unsubscribe()}throw n}};return AnimationFrameScheduler}(i.AsyncScheduler);t.AnimationFrameScheduler=o},3636:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsapAction=void 0;var i=r(6693);var o=r(1639);var s=function(e){n(AsapAction,e);function AsapAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;return n}AsapAction.prototype.requestAsyncId=function(t,r,n){if(n===void 0){n=0}if(n!==null&&n>0){return e.prototype.requestAsyncId.call(this,t,r,n)}t.actions.push(this);return t._scheduled||(t._scheduled=o.immediateProvider.setImmediate(t.flush.bind(t,undefined)))};AsapAction.prototype.recycleAsyncId=function(t,r,n){var i;if(n===void 0){n=0}if(n!=null?n>0:this.delay>0){return e.prototype.recycleAsyncId.call(this,t,r,n)}var s=t.actions;if(r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r){o.immediateProvider.clearImmediate(r);if(t._scheduled===r){t._scheduled=undefined}}return undefined};return AsapAction}(i.AsyncAction);t.AsapAction=s},5981:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsapScheduler=void 0;var i=r(2318);var o=function(e){n(AsapScheduler,e);function AsapScheduler(){return e!==null&&e.apply(this,arguments)||this}AsapScheduler.prototype.flush=function(e){this._active=true;var t=this._scheduled;this._scheduled=undefined;var r=this.actions;var n;e=e||r.shift();do{if(n=e.execute(e.state,e.delay)){break}}while((e=r[0])&&e.id===t&&r.shift());this._active=false;if(n){while((e=r[0])&&e.id===t&&r.shift()){e.unsubscribe()}throw n}};return AsapScheduler}(i.AsyncScheduler);t.AsapScheduler=o},6693:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsyncAction=void 0;var i=r(609);var o=r(5747);var s=r(8645);var a=function(e){n(AsyncAction,e);function AsyncAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;n.pending=false;return n}AsyncAction.prototype.schedule=function(e,t){var r;if(t===void 0){t=0}if(this.closed){return this}this.state=e;var n=this.id;var i=this.scheduler;if(n!=null){this.id=this.recycleAsyncId(i,n,t)}this.pending=true;this.delay=t;this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,t);return this};AsyncAction.prototype.requestAsyncId=function(e,t,r){if(r===void 0){r=0}return o.intervalProvider.setInterval(e.flush.bind(e,this),r)};AsyncAction.prototype.recycleAsyncId=function(e,t,r){if(r===void 0){r=0}if(r!=null&&this.delay===r&&this.pending===false){return t}if(t!=null){o.intervalProvider.clearInterval(t)}return undefined};AsyncAction.prototype.execute=function(e,t){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var r=this._execute(e,t);if(r){return r}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};AsyncAction.prototype._execute=function(e,t){var r=false;var n;try{this.work(e)}catch(e){r=true;n=e?e:new Error("Scheduled action threw falsy error")}if(r){this.unsubscribe();return n}};AsyncAction.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler;var i=n.actions;this.work=this.state=this.scheduler=null;this.pending=false;s.arrRemove(i,this);if(r!=null){this.id=this.recycleAsyncId(n,r,null)}this.delay=null;e.prototype.unsubscribe.call(this)}};return AsyncAction}(i.Action);t.AsyncAction=a},2318:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsyncScheduler=void 0;var i=r(3328);var o=function(e){n(AsyncScheduler,e);function AsyncScheduler(t,r){if(r===void 0){r=i.Scheduler.now}var n=e.call(this,t,r)||this;n.actions=[];n._active=false;return n}AsyncScheduler.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var r;this._active=true;do{if(r=e.execute(e.state,e.delay)){break}}while(e=t.shift());this._active=false;if(r){while(e=t.shift()){e.unsubscribe()}throw r}};return AsyncScheduler}(i.Scheduler);t.AsyncScheduler=o},2330:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.QueueAction=void 0;var i=r(6693);var o=function(e){n(QueueAction,e);function QueueAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;return n}QueueAction.prototype.schedule=function(t,r){if(r===void 0){r=0}if(r>0){return e.prototype.schedule.call(this,t,r)}this.delay=r;this.state=t;this.scheduler.flush(this);return this};QueueAction.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)};QueueAction.prototype.requestAsyncId=function(t,r,n){if(n===void 0){n=0}if(n!=null&&n>0||n==null&&this.delay>0){return e.prototype.requestAsyncId.call(this,t,r,n)}t.flush(this);return 0};return QueueAction}(i.AsyncAction);t.QueueAction=o},687:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.QueueScheduler=void 0;var i=r(2318);var o=function(e){n(QueueScheduler,e);function QueueScheduler(){return e!==null&&e.apply(this,arguments)||this}return QueueScheduler}(i.AsyncScheduler);t.QueueScheduler=o},864:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.VirtualAction=t.VirtualTimeScheduler=void 0;var i=r(6693);var o=r(5208);var s=r(2318);var a=function(e){n(VirtualTimeScheduler,e);function VirtualTimeScheduler(t,r){if(t===void 0){t=u}if(r===void 0){r=Infinity}var n=e.call(this,t,(function(){return n.frame}))||this;n.maxFrames=r;n.frame=0;n.index=-1;return n}VirtualTimeScheduler.prototype.flush=function(){var e=this,t=e.actions,r=e.maxFrames;var n;var i;while((i=t[0])&&i.delay<=r){t.shift();this.frame=i.delay;if(n=i.execute(i.state,i.delay)){break}}if(n){while(i=t.shift()){i.unsubscribe()}throw n}};VirtualTimeScheduler.frameTimeFactor=10;return VirtualTimeScheduler}(s.AsyncScheduler);t.VirtualTimeScheduler=a;var u=function(e){n(VirtualAction,e);function VirtualAction(t,r,n){if(n===void 0){n=t.index+=1}var i=e.call(this,t,r)||this;i.scheduler=t;i.work=r;i.index=n;i.active=true;i.index=t.index=n;return i}VirtualAction.prototype.schedule=function(t,r){if(r===void 0){r=0}if(Number.isFinite(r)){if(!this.id){return e.prototype.schedule.call(this,t,r)}this.active=false;var n=new VirtualAction(this.scheduler,this.work);this.add(n);return n.schedule(t,r)}else{return o.Subscription.EMPTY}};VirtualAction.prototype.requestAsyncId=function(e,t,r){if(r===void 0){r=0}this.delay=e.frame+r;var n=e.actions;n.push(this);n.sort(VirtualAction.sortActions);return 1};VirtualAction.prototype.recycleAsyncId=function(e,t,r){if(r===void 0){r=0}return undefined};VirtualAction.prototype._execute=function(t,r){if(this.active===true){return e.prototype._execute.call(this,t,r)}};VirtualAction.sortActions=function(e,t){if(e.delay===t.delay){if(e.index===t.index){return 0}else if(e.index>t.index){return 1}else{return-1}}else if(e.delay>t.delay){return 1}else{return-1}};return VirtualAction}(i.AsyncAction);t.VirtualAction=u},1968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.animationFrame=t.animationFrameScheduler=void 0;var n=r(8426);var i=r(9919);t.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction);t.animationFrame=t.animationFrameScheduler},3437:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.animationFrameProvider=void 0;var o=r(5208);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame;var n=cancelAnimationFrame;var i=t.animationFrameProvider.delegate;if(i){r=i.requestAnimationFrame;n=i.cancelAnimationFrame}var s=r((function(t){n=undefined;e(t)}));return new o.Subscription((function(){return n===null||n===void 0?void 0:n(s)}))},requestAnimationFrame:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=t.animationFrameProvider.delegate;return((o===null||o===void 0?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=t.animationFrameProvider.delegate;return((o===null||o===void 0?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:undefined}},7110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asap=t.asapScheduler=void 0;var n=r(3636);var i=r(5981);t.asapScheduler=new i.AsapScheduler(n.AsapAction);t.asap=t.asapScheduler},5583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.async=t.asyncScheduler=void 0;var n=r(6693);var i=r(2318);t.asyncScheduler=new i.AsyncScheduler(n.AsyncAction);t.async=t.asyncScheduler},1742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dateTimestampProvider=void 0;t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:undefined}},1639:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.immediateProvider=void 0;var o=r(3815);var s=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=t.immediateProvider.delegate;return((o===null||o===void 0?void 0:o.setImmediate)||s).apply(void 0,i([],n(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((r===null||r===void 0?void 0:r.clearImmediate)||a)(e)},delegate:undefined}},5747:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.intervalProvider=void 0;t.intervalProvider={setInterval:function(e,i){var o=[];for(var s=2;s<arguments.length;s++){o[s-2]=arguments[s]}var a=t.intervalProvider.delegate;if(a===null||a===void 0?void 0:a.setInterval){return a.setInterval.apply(a,n([e,i],r(o)))}return setInterval.apply(void 0,n([e,i],r(o)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((r===null||r===void 0?void 0:r.clearInterval)||clearInterval)(e)},delegate:undefined}},2404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.performanceTimestampProvider=void 0;t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:undefined}},64:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.queue=t.queueScheduler=void 0;var n=r(2330);var i=r(687);t.queueScheduler=new i.QueueScheduler(n.QueueAction);t.queue=t.queueScheduler},7465:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.timeoutProvider=void 0;t.timeoutProvider={setTimeout:function(e,i){var o=[];for(var s=2;s<arguments.length;s++){o[s-2]=arguments[s]}var a=t.timeoutProvider.delegate;if(a===null||a===void 0?void 0:a.setTimeout){return a.setTimeout.apply(a,n([e,i],r(o)))}return setTimeout.apply(void 0,n([e,i],r(o)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((r===null||r===void 0?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:undefined}},7650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.iterator=t.getSymbolIterator=void 0;function getSymbolIterator(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}t.getSymbolIterator=getSymbolIterator;t.iterator=getSymbolIterator()},5609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.observable=void 0;t.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()},7516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArgumentOutOfRangeError=void 0;var n=r(250);t.ArgumentOutOfRangeError=n.createErrorClass((function(e){return function ArgumentOutOfRangeErrorImpl(){e(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}))},1741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EmptyError=void 0;var n=r(250);t.EmptyError=n.createErrorClass((function(e){return function EmptyErrorImpl(){e(this);this.name="EmptyError";this.message="no elements in sequence"}}))},3815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestTools=t.Immediate=void 0;var r=1;var n;var i={};function findAndClearHandle(e){if(e in i){delete i[e];return true}return false}t.Immediate={setImmediate:function(e){var t=r++;i[t]=true;if(!n){n=Promise.resolve()}n.then((function(){return findAndClearHandle(t)&&e()}));return t},clearImmediate:function(e){findAndClearHandle(e)}};t.TestTools={pending:function(){return Object.keys(i).length}}},2069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NotFoundError=void 0;var n=r(250);t.NotFoundError=n.createErrorClass((function(e){return function NotFoundErrorImpl(t){e(this);this.name="NotFoundError";this.message=t}}))},3612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ObjectUnsubscribedError=void 0;var n=r(250);t.ObjectUnsubscribedError=n.createErrorClass((function(e){return function ObjectUnsubscribedErrorImpl(){e(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}}))},8519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SequenceError=void 0;var n=r(250);t.SequenceError=n.createErrorClass((function(e){return function SequenceErrorImpl(t){e(this);this.name="SequenceError";this.message=t}}))},4974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnsubscriptionError=void 0;var n=r(250);t.UnsubscriptionError=n.createErrorClass((function(e){return function UnsubscriptionErrorImpl(t){e(this);this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=t}}))},6909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(3856);var i=r(3903);function last(e){return e[e.length-1]}function popResultSelector(e){return n.isFunction(last(e))?e.pop():undefined}t.popResultSelector=popResultSelector;function popScheduler(e){return i.isScheduler(last(e))?e.pop():undefined}t.popScheduler=popScheduler;function popNumber(e,t){return typeof last(e)==="number"?e.pop():t}t.popNumber=popNumber},2354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.argsArgArrayOrObject=void 0;var r=Array.isArray;var n=Object.getPrototypeOf,i=Object.prototype,o=Object.keys;function argsArgArrayOrObject(e){if(e.length===1){var t=e[0];if(r(t)){return{args:t,keys:null}}if(isPOJO(t)){var n=o(t);return{args:n.map((function(e){return t[e]})),keys:n}}}return{args:e,keys:null}}t.argsArgArrayOrObject=argsArgArrayOrObject;function isPOJO(e){return e&&typeof e==="object"&&n(e)===i}},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.argsOrArgArray=void 0;var r=Array.isArray;function argsOrArgArray(e){return e.length===1&&r(e[0])?e[0]:e}t.argsOrArgArray=argsOrArgArray},8645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arrRemove=void 0;function arrRemove(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}t.arrRemove=arrRemove},250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createErrorClass=void 0;function createErrorClass(e){var _super=function(e){Error.call(e);e.stack=(new Error).stack};var t=e(_super);t.prototype=Object.create(Error.prototype);t.prototype.constructor=t;return t}t.createErrorClass=createErrorClass},6579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createObject=void 0;function createObject(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})}t.createObject=createObject},4225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.captureError=t.errorContext=void 0;var n=r(647);var i=null;function errorContext(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t){i={errorThrown:false,error:null}}e();if(t){var r=i,o=r.errorThrown,s=r.error;i=null;if(o){throw s}}}else{e()}}t.errorContext=errorContext;function captureError(e){if(n.config.useDeprecatedSynchronousErrorHandling&&i){i.errorThrown=true;i.error=e}}t.captureError=captureError},6804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.executeSchedule=void 0;function executeSchedule(e,t,r,n,i){if(n===void 0){n=0}if(i===void 0){i=false}var o=t.schedule((function(){r();if(i){e.add(this.schedule(null,n))}else{this.unsubscribe()}}),n);e.add(o);if(!i){return o}}t.executeSchedule=executeSchedule},1418:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.identity=void 0;function identity(e){return e}t.identity=identity},4800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayLike=void 0;t.isArrayLike=function(e){return e&&typeof e.length==="number"&&typeof e!=="function"}},1744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=void 0;var n=r(3856);function isAsyncIterable(e){return Symbol.asyncIterator&&n.isFunction(e===null||e===void 0?void 0:e[Symbol.asyncIterator])}t.isAsyncIterable=isAsyncIterable},9908:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidDate=void 0;function isValidDate(e){return e instanceof Date&&!isNaN(e)}t.isValidDate=isValidDate},3856:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFunction=void 0;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction},1414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isInteropObservable=void 0;var n=r(5609);var i=r(3856);function isInteropObservable(e){return i.isFunction(e[n.observable])}t.isInteropObservable=isInteropObservable},6045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIterable=void 0;var n=r(7650);var i=r(3856);function isIterable(e){return i.isFunction(e===null||e===void 0?void 0:e[n.iterator])}t.isIterable=isIterable},65:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isObservable=void 0;var n=r(6692);var i=r(3856);function isObservable(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}t.isObservable=isObservable},9063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPromise=void 0;var n=r(3856);function isPromise(e){return n.isFunction(e===null||e===void 0?void 0:e.then)}t.isPromise=isPromise},2519:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)};var o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,s=[];return o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o;function verb(e){if(n[e])o[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||resume(e,t)}))}}function resume(e,t){try{step(n[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof i?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=r(3856);function readableStreamLikeToAsyncGenerator(e){return o(this,arguments,(function readableStreamLikeToAsyncGenerator_1(){var t,r,o,s;return n(this,(function(n){switch(n.label){case 0:t=e.getReader();n.label=1;case 1:n.trys.push([1,,9,10]);n.label=2;case 2:if(false){}return[4,i(t.read())];case 3:r=n.sent(),o=r.value,s=r.done;if(!s)return[3,5];return[4,i(void 0)];case 4:return[2,n.sent()];case 5:return[4,i(o)];case 6:return[4,n.sent()];case 7:n.sent();return[3,2];case 8:return[3,10];case 9:t.releaseLock();return[7];case 10:return[2]}}))}))}t.readableStreamLikeToAsyncGenerator=readableStreamLikeToAsyncGenerator;function isReadableStreamLike(e){return s.isFunction(e===null||e===void 0?void 0:e.getReader)}t.isReadableStreamLike=isReadableStreamLike},3903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isScheduler=void 0;var n=r(3856);function isScheduler(e){return e&&n.isFunction(e.schedule)}t.isScheduler=isScheduler},6613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.operate=t.hasLift=void 0;var n=r(3856);function hasLift(e){return n.isFunction(e===null||e===void 0?void 0:e.lift)}t.hasLift=hasLift;function operate(e){return function(t){if(hasLift(t)){return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}))}throw new TypeError("Unable to lift unknown Observable type")}}t.operate=operate},969:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.mapOneOrManyArgs=void 0;var o=r(3297);var s=Array.isArray;function callOrApply(e,t){return s(t)?e.apply(void 0,i([],n(t))):e(t)}function mapOneOrManyArgs(e){return o.map((function(t){return callOrApply(e,t)}))}t.mapOneOrManyArgs=mapOneOrManyArgs},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.noop=void 0;function noop(){}t.noop=noop},8103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.not=void 0;function not(e,t){return function(r,n){return!e.call(t,r,n)}}t.not=not},4424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pipeFromArray=t.pipe=void 0;var n=r(1418);function pipe(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return pipeFromArray(e)}t.pipe=pipe;function pipeFromArray(e){if(e.length===0){return n.identity}if(e.length===1){return e[0]}return function piped(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipeFromArray=pipeFromArray},7493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reportUnhandledError=void 0;var n=r(647);var i=r(7465);function reportUnhandledError(e){i.timeoutProvider.setTimeout((function(){var t=n.config.onUnhandledError;if(t){t(e)}else{throw e}}))}t.reportUnhandledError=reportUnhandledError},9404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInvalidObservableTypeError=void 0;function createInvalidObservableTypeError(e){return new TypeError("You provided "+(e!==null&&typeof e==="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}t.createInvalidObservableTypeError=createInvalidObservableTypeError},2803:(e,t,r)=>{"use strict";var n=r(181);var i=n.Buffer;var o={};var s;for(s in n){if(!n.hasOwnProperty(s))continue;if(s==="SlowBuffer"||s==="Buffer")continue;o[s]=n[s]}var a=o.Buffer={};for(s in i){if(!i.hasOwnProperty(s))continue;if(s==="allocUnsafe"||s==="allocUnsafeSlow")continue;a[s]=i[s]}o.Buffer.prototype=i.prototype;if(!a.from||a.from===Uint8Array.from){a.from=function(e,t,r){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return i(e,t,r)}}if(!a.alloc){a.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var n=i(e);if(!t||t.length===0){n.fill(0)}else if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}return n}}if(!o.kStringMaxLength){try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!o.constants){o.constants={MAX_LENGTH:o.kMaxLength};if(o.kStringMaxLength){o.constants.MAX_STRING_LENGTH=o.kStringMaxLength}}e.exports=o},60:(e,t,r)=>{"use strict";const n=r(3958);const i=r(4519);const o=r(872);const stringWidth=e=>{if(typeof e!=="string"||e.length===0){return 0}e=n(e);if(e.length===0){return 0}e=e.replace(o()," ");let t=0;for(let r=0;r<e.length;r++){const n=e.codePointAt(r);if(n<=31||n>=127&&n<=159){continue}if(n>=768&&n<=879){continue}if(n>65535){r++}t+=i(n)?2:1}return t};e.exports=stringWidth;e.exports["default"]=stringWidth},3958:(e,t,r)=>{"use strict";const n=r(21);e.exports=e=>typeof e==="string"?e.replace(n(),""):e},1450:(e,t,r)=>{"use strict";const n=r(857);const i=r(2018);const o=r(3813);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(s.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},3236:(e,t,r)=>{"use strict";const n=r(60);const i=r(3958);const o=r(4412);const s=new Set(["","Ā"]);const a=39;const wrapAnsi=e=>`${s.values().next().value}[${e}m`;const wordLengths=e=>e.split(" ").map((e=>n(e)));const wrapWord=(e,t,r)=>{const o=[...t];let a=false;let u=n(i(e[e.length-1]));for(const[t,i]of o.entries()){const c=n(i);if(u+c<=r){e[e.length-1]+=i}else{e.push(i);u=0}if(s.has(i)){a=true}else if(a&&i==="m"){a=false;continue}if(a){continue}u+=c;if(u===r&&t<o.length-1){e.push("");u=0}}if(!u&&e[e.length-1].length>0&&e.length>1){e[e.length-2]+=e.pop()}};const stringVisibleTrimSpacesRight=e=>{const t=e.split(" ");let r=t.length;while(r>0){if(n(t[r-1])>0){break}r--}if(r===t.length){return e}return t.slice(0,r).join(" ")+t.slice(r).join("")};const exec=(e,t,r={})=>{if(r.trim!==false&&e.trim()===""){return""}let i="";let u="";let c;const l=wordLengths(e);let f=[""];for(const[i,o]of e.split(" ").entries()){if(r.trim!==false){f[f.length-1]=f[f.length-1].trimLeft()}let e=n(f[f.length-1]);if(i!==0){if(e>=t&&(r.wordWrap===false||r.trim===false)){f.push("");e=0}if(e>0||r.trim===false){f[f.length-1]+=" ";e++}}if(r.hard&&l[i]>t){const r=t-e;const n=1+Math.floor((l[i]-r-1)/t);const s=Math.floor((l[i]-1)/t);if(s<n){f.push("")}wrapWord(f,o,t);continue}if(e+l[i]>t&&e>0&&l[i]>0){if(r.wordWrap===false&&e<t){wrapWord(f,o,t);continue}f.push("")}if(e+l[i]>t&&r.wordWrap===false){wrapWord(f,o,t);continue}f[f.length-1]+=o}if(r.trim!==false){f=f.map(stringVisibleTrimSpacesRight)}i=f.join("\n");for(const[e,t]of[...i].entries()){u+=t;if(s.has(t)){const t=parseFloat(/\d[^m]*/.exec(i.slice(e,e+4)));c=t===a?null:t}const r=o.codes.get(Number(c));if(c&&r){if(i[e+1]==="\n"){u+=wrapAnsi(r)}else if(t==="\n"){u+=wrapAnsi(c)}}}return u};e.exports=(e,t,r)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>exec(e,t,r))).join("\n")},1354:(e,t,r)=>{"use strict";const n=r(6681);n.createWebSocketStream=r(6412);n.Server=r(129);n.Receiver=r(893);n.Sender=r(7389);n.WebSocket=n;n.WebSocketServer=n.Server;e.exports=n},5803:(e,t,r)=>{"use strict";const{EMPTY_BUFFER:n}=r(1791);const i=Buffer[Symbol.species];function concat(e,t){if(e.length===0)return n;if(e.length===1)return e[0];const r=Buffer.allocUnsafe(t);let o=0;for(let t=0;t<e.length;t++){const n=e[t];r.set(n,o);o+=n.length}if(o<t){return new i(r.buffer,r.byteOffset,o)}return r}function _mask(e,t,r,n,i){for(let o=0;o<i;o++){r[n+o]=e[o]^t[o&3]}}function _unmask(e,t){for(let r=0;r<e.length;r++){e[r]^=t[r&3]}}function toArrayBuffer(e){if(e.length===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function toBuffer(e){toBuffer.readOnly=true;if(Buffer.isBuffer(e))return e;let t;if(e instanceof ArrayBuffer){t=new i(e)}else if(ArrayBuffer.isView(e)){t=new i(e.buffer,e.byteOffset,e.byteLength)}else{t=Buffer.from(e);toBuffer.readOnly=false}return t}e.exports={concat:concat,mask:_mask,toArrayBuffer:toArrayBuffer,toBuffer:toBuffer,unmask:_unmask};if(!process.env.WS_NO_BUFFER_UTIL){try{const t=r(8327);e.exports.mask=function(e,r,n,i,o){if(o<48)_mask(e,r,n,i,o);else t.mask(e,r,n,i,o)};e.exports.unmask=function(e,r){if(e.length<32)_unmask(e,r);else t.unmask(e,r)}}catch(e){}}},1791:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},4634:(e,t,r)=>{"use strict";const{kForOnEventAttribute:n,kListener:i}=r(1791);const o=Symbol("kCode");const s=Symbol("kData");const a=Symbol("kError");const u=Symbol("kMessage");const c=Symbol("kReason");const l=Symbol("kTarget");const f=Symbol("kType");const d=Symbol("kWasClean");class Event{constructor(e){this[l]=null;this[f]=e}get target(){return this[l]}get type(){return this[f]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(e,t={}){super(e);this[o]=t.code===undefined?0:t.code;this[c]=t.reason===undefined?"":t.reason;this[d]=t.wasClean===undefined?false:t.wasClean}get code(){return this[o]}get reason(){return this[c]}get wasClean(){return this[d]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(e,t={}){super(e);this[a]=t.error===undefined?null:t.error;this[u]=t.message===undefined?"":t.message}get error(){return this[a]}get message(){return this[u]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(e,t={}){super(e);this[s]=t.data===undefined?null:t.data}get data(){return this[s]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const h={addEventListener(e,t,r={}){for(const o of this.listeners(e)){if(!r[n]&&o[i]===t&&!o[n]){return}}let o;if(e==="message"){o=function onMessage(e,r){const n=new MessageEvent("message",{data:r?e:e.toString()});n[l]=this;callListener(t,this,n)}}else if(e==="close"){o=function onClose(e,r){const n=new CloseEvent("close",{code:e,reason:r.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[l]=this;callListener(t,this,n)}}else if(e==="error"){o=function onError(e){const r=new ErrorEvent("error",{error:e,message:e.message});r[l]=this;callListener(t,this,r)}}else if(e==="open"){o=function onOpen(){const e=new Event("open");e[l]=this;callListener(t,this,e)}}else{return}o[n]=!!r[n];o[i]=t;if(r.once){this.once(e,o)}else{this.on(e,o)}},removeEventListener(e,t){for(const r of this.listeners(e)){if(r[i]===t&&!r[n]){this.removeListener(e,r);break}}}};e.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:h,MessageEvent:MessageEvent};function callListener(e,t,r){if(typeof e==="object"&&e.handleEvent){e.handleEvent.call(e,r)}else{e.call(t,r)}}},1335:(e,t,r)=>{"use strict";const{tokenChars:n}=r(6615);function push(e,t,r){if(e[t]===undefined)e[t]=[r];else e[t].push(r)}function parse(e){const t=Object.create(null);let r=Object.create(null);let i=false;let o=false;let s=false;let a;let u;let c=-1;let l=-1;let f=-1;let d=0;for(;d<e.length;d++){l=e.charCodeAt(d);if(a===undefined){if(f===-1&&n[l]===1){if(c===-1)c=d}else if(d!==0&&(l===32||l===9)){if(f===-1&&c!==-1)f=d}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(f===-1)f=d;const n=e.slice(c,f);if(l===44){push(t,n,r);r=Object.create(null)}else{a=n}c=f=-1}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}else if(u===undefined){if(f===-1&&n[l]===1){if(c===-1)c=d}else if(l===32||l===9){if(f===-1&&c!==-1)f=d}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(f===-1)f=d;push(r,e.slice(c,f),true);if(l===44){push(t,a,r);r=Object.create(null);a=undefined}c=f=-1}else if(l===61&&c!==-1&&f===-1){u=e.slice(c,d);c=f=-1}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}else{if(o){if(n[l]!==1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(c===-1)c=d;else if(!i)i=true;o=false}else if(s){if(n[l]===1){if(c===-1)c=d}else if(l===34&&c!==-1){s=false;f=d}else if(l===92){o=true}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}else if(l===34&&e.charCodeAt(d-1)===61){s=true}else if(f===-1&&n[l]===1){if(c===-1)c=d}else if(c!==-1&&(l===32||l===9)){if(f===-1)f=d}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(f===-1)f=d;let n=e.slice(c,f);if(i){n=n.replace(/\\/g,"");i=false}push(r,u,n);if(l===44){push(t,a,r);r=Object.create(null);a=undefined}u=undefined;c=f=-1}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}}if(c===-1||s||l===32||l===9){throw new SyntaxError("Unexpected end of input")}if(f===-1)f=d;const h=e.slice(c,f);if(a===undefined){push(t,h,r)}else{if(u===undefined){push(r,h,true)}else if(i){push(r,u,h.replace(/\\/g,""))}else{push(r,u,h)}push(t,a,r)}return t}function format(e){return Object.keys(e).map((t=>{let r=e[t];if(!Array.isArray(r))r=[r];return r.map((e=>[t].concat(Object.keys(e).map((t=>{let r=e[t];if(!Array.isArray(r))r=[r];return r.map((e=>e===true?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}e.exports={format:format,parse:parse}},958:e=>{"use strict";const t=Symbol("kDone");const r=Symbol("kRun");class Limiter{constructor(e){this[t]=()=>{this.pending--;this[r]()};this.concurrency=e||Infinity;this.jobs=[];this.pending=0}add(e){this.jobs.push(e);this[r]()}[r](){if(this.pending===this.concurrency)return;if(this.jobs.length){const e=this.jobs.shift();this.pending++;e(this[t])}}}e.exports=Limiter},4376:(e,t,r)=>{"use strict";const n=r(3106);const i=r(5803);const o=r(958);const{kStatusCode:s}=r(1791);const a=Buffer[Symbol.species];const u=Buffer.from([0,0,255,255]);const c=Symbol("permessage-deflate");const l=Symbol("total-length");const f=Symbol("callback");const d=Symbol("buffers");const h=Symbol("error");let p;class PerMessageDeflate{constructor(e,t,r){this._maxPayload=r|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!p){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;p=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const e=this._deflate[f];this._deflate.close();this._deflate=null;if(e){e(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(e){const t=this._options;const r=e.find((e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true}));if(!r){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){r.server_no_context_takeover=true}if(t.clientNoContextTakeover){r.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){r.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){r.client_max_window_bits=t.clientMaxWindowBits}else if(r.client_max_window_bits===true||t.clientMaxWindowBits===false){delete r.client_max_window_bits}return r}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach((e=>{Object.keys(e).forEach((t=>{let r=e[t];if(r.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}r=r[0];if(t==="client_max_window_bits"){if(r!==true){const e=+r;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}r=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}}else if(t==="server_max_window_bits"){const e=+r;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}r=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(r!==true){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=r}))}));return e}decompress(e,t,r){p.add((n=>{this._decompress(e,t,((e,t)=>{n();r(e,t)}))}))}compress(e,t,r){p.add((n=>{this._compress(e,t,((e,t)=>{n();r(e,t)}))}))}_decompress(e,t,r){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t});this._inflate[c]=this;this._inflate[l]=0;this._inflate[d]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[f]=r;this._inflate.write(e);if(t)this._inflate.write(u);this._inflate.flush((()=>{const e=this._inflate[h];if(e){this._inflate.close();this._inflate=null;r(e);return}const n=i.concat(this._inflate[d],this._inflate[l]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[l]=0;this._inflate[d]=[];if(t&&this.params[`${o}_no_context_takeover`]){this._inflate.reset()}}r(null,n)}))}_compress(e,t,r){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t});this._deflate[l]=0;this._deflate[d]=[];this._deflate.on("data",deflateOnData)}this._deflate[f]=r;this._deflate.write(e);this._deflate.flush(n.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let e=i.concat(this._deflate[d],this._deflate[l]);if(t){e=new a(e.buffer,e.byteOffset,e.length-4)}this._deflate[f]=null;this._deflate[l]=0;this._deflate[d]=[];if(t&&this.params[`${o}_no_context_takeover`]){this._deflate.reset()}r(null,e)}))}}e.exports=PerMessageDeflate;function deflateOnData(e){this[d].push(e);this[l]+=e.length}function inflateOnData(e){this[l]+=e.length;if(this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[h]=new RangeError("Max payload size exceeded");this[h].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[h][s]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[c]._inflate=null;e[s]=1007;this[f](e)}},893:(e,t,r)=>{"use strict";const{Writable:n}=r(2203);const i=r(4376);const{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:a,kWebSocket:u}=r(1791);const{concat:c,toArrayBuffer:l,unmask:f}=r(5803);const{isValidStatusCode:d,isValidUTF8:h}=r(6615);const p=Buffer[Symbol.species];const b=0;const m=1;const v=2;const g=3;const y=4;const _=5;const D=6;class Receiver extends n{constructor(e={}){super();this._allowSynchronousEvents=e.allowSynchronousEvents!==undefined?e.allowSynchronousEvents:true;this._binaryType=e.binaryType||o[0];this._extensions=e.extensions||{};this._isServer=!!e.isServer;this._maxPayload=e.maxPayload|0;this._skipUTF8Validation=!!e.skipUTF8Validation;this[u]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._errored=false;this._loop=false;this._state=b}_write(e,t,r){if(this._opcode===8&&this._state==b)return r();this._bufferedBytes+=e.length;this._buffers.push(e);this.startLoop(r)}consume(e){this._bufferedBytes-=e;if(e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e);return new p(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const r=this._buffers[0];const n=t.length-e;if(e>=r.length){t.set(this._buffers.shift(),n)}else{t.set(new Uint8Array(r.buffer,r.byteOffset,e),n);this._buffers[0]=new p(r.buffer,r.byteOffset+e,r.length-e)}e-=r.length}while(e>0);return t}startLoop(e){this._loop=true;do{switch(this._state){case b:this.getInfo(e);break;case m:this.getPayloadLength16(e);break;case v:this.getPayloadLength64(e);break;case g:this.getMask();break;case y:this.getData(e);break;case _:case D:this._loop=false;return}}while(this._loop);if(!this._errored)e()}getInfo(e){if(this._bufferedBytes<2){this._loop=false;return}const t=this.consume(2);if((t[0]&48)!==0){const t=this.createError(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(t);return}const r=(t[0]&64)===64;if(r&&!this._extensions[i.extensionName]){const t=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");e(t);return}this._fin=(t[0]&128)===128;this._opcode=t[0]&15;this._payloadLength=t[1]&127;if(this._opcode===0){if(r){const t=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");e(t);return}if(!this._fragmented){const t=this.createError(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE");e(t);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){const t=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");e(t);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){const t=this.createError(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN");e(t);return}if(r){const t=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");e(t);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){const t=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(t);return}}else{const t=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");e(t);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(t[1]&128)===128;if(this._isServer){if(!this._masked){const t=this.createError(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK");e(t);return}}else if(this._masked){const t=this.createError(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK");e(t);return}if(this._payloadLength===126)this._state=m;else if(this._payloadLength===127)this._state=v;else this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=false;return}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>Math.pow(2,53-32)-1){const t=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(t);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4);this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){const t=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}}if(this._masked)this._state=g;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=false;return}t=this.consume(this._payloadLength);if(this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0){f(t,this._mask)}}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=_;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){const r=this._extensions[i.extensionName];r.decompress(e,this._fin,((e,r)=>{if(e)return t(e);if(r.length){this._messageLength+=r.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(e);return}this._fragments.push(r)}this.dataMessage(t);if(this._state===b)this.startLoop(t)}))}dataMessage(e){if(!this._fin){this._state=b;return}const t=this._messageLength;const r=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let n;if(this._binaryType==="nodebuffer"){n=c(r,t)}else if(this._binaryType==="arraybuffer"){n=l(c(r,t))}else{n=r}if(this._allowSynchronousEvents){this.emit("message",n,true);this._state=b}else{this._state=D;setImmediate((()=>{this.emit("message",n,true);this._state=b;this.startLoop(e)}))}}else{const n=c(r,t);if(!this._skipUTF8Validation&&!h(n)){const t=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");e(t);return}if(this._state===_||this._allowSynchronousEvents){this.emit("message",n,false);this._state=b}else{this._state=D;setImmediate((()=>{this.emit("message",n,false);this._state=b;this.startLoop(e)}))}}}controlMessage(e,t){if(this._opcode===8){if(e.length===0){this._loop=false;this.emit("conclude",1005,s);this.end()}else{const r=e.readUInt16BE(0);if(!d(r)){const e=this.createError(RangeError,`invalid status code ${r}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE");t(e);return}const n=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!h(n)){const e=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");t(e);return}this._loop=false;this.emit("conclude",r,n);this.end()}this._state=b;return}if(this._allowSynchronousEvents){this.emit(this._opcode===9?"ping":"pong",e);this._state=b}else{this._state=D;setImmediate((()=>{this.emit(this._opcode===9?"ping":"pong",e);this._state=b;this.startLoop(t)}))}}createError(e,t,r,n,i){this._loop=false;this._errored=true;const o=new e(r?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(o,this.createError);o.code=i;o[a]=n;return o}}e.exports=Receiver},7389:(e,t,r)=>{"use strict";const{Duplex:n}=r(2203);const{randomFillSync:i}=r(6982);const o=r(4376);const{EMPTY_BUFFER:s}=r(1791);const{isValidStatusCode:a}=r(6615);const{mask:u,toBuffer:c}=r(5803);const l=Symbol("kByteLength");const f=Buffer.alloc(4);const d=8*1024;let h;let p=d;class Sender{constructor(e,t,r){this._extensions=t||{};if(r){this._generateMask=r;this._maskBuffer=Buffer.alloc(4)}this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){let r;let n=false;let o=2;let s=false;if(t.mask){r=t.maskBuffer||f;if(t.generateMask){t.generateMask(r)}else{if(p===d){if(h===undefined){h=Buffer.alloc(d)}i(h,0,d);p=0}r[0]=h[p++];r[1]=h[p++];r[2]=h[p++];r[3]=h[p++]}s=(r[0]|r[1]|r[2]|r[3])===0;o=6}let a;if(typeof e==="string"){if((!t.mask||s)&&t[l]!==undefined){a=t[l]}else{e=Buffer.from(e);a=e.length}}else{a=e.length;n=t.mask&&t.readOnly&&!s}let c=a;if(a>=65536){o+=8;c=127}else if(a>125){o+=2;c=126}const b=Buffer.allocUnsafe(n?a+o:o);b[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)b[0]|=64;b[1]=c;if(c===126){b.writeUInt16BE(a,2)}else if(c===127){b[2]=b[3]=0;b.writeUIntBE(a,4,6)}if(!t.mask)return[b,e];b[1]|=128;b[o-4]=r[0];b[o-3]=r[1];b[o-2]=r[2];b[o-1]=r[3];if(s)return[b,e];if(n){u(e,r,b,o,a);return[b]}u(e,r,e,0,a);return[b,e]}close(e,t,r,n){let i;if(e===undefined){i=s}else if(typeof e!=="number"||!a(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||!t.length){i=Buffer.allocUnsafe(2);i.writeUInt16BE(e,0)}else{const r=Buffer.byteLength(t);if(r>123){throw new RangeError("The message must not be greater than 123 bytes")}i=Buffer.allocUnsafe(2+r);i.writeUInt16BE(e,0);if(typeof t==="string"){i.write(t,2)}else{i.set(t,2)}}const o={[l]:i.length,fin:true,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,i,false,o,n])}else{this.sendFrame(Sender.frame(i,o),n)}}ping(e,t,r){let n;let i;if(typeof e==="string"){n=Buffer.byteLength(e);i=false}else{e=c(e);n=e.length;i=c.readOnly}if(n>125){throw new RangeError("The data size must not be greater than 125 bytes")}const o={[l]:n,fin:true,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,e,false,o,r])}else{this.sendFrame(Sender.frame(e,o),r)}}pong(e,t,r){let n;let i;if(typeof e==="string"){n=Buffer.byteLength(e);i=false}else{e=c(e);n=e.length;i=c.readOnly}if(n>125){throw new RangeError("The data size must not be greater than 125 bytes")}const o={[l]:n,fin:true,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,e,false,o,r])}else{this.sendFrame(Sender.frame(e,o),r)}}send(e,t,r){const n=this._extensions[o.extensionName];let i=t.binary?2:1;let s=t.compress;let a;let u;if(typeof e==="string"){a=Buffer.byteLength(e);u=false}else{e=c(e);a=e.length;u=c.readOnly}if(this._firstFragment){this._firstFragment=false;if(s&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]){s=a>=n._threshold}this._compress=s}else{s=false;i=0}if(t.fin)this._firstFragment=true;if(n){const n={[l]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:s};if(this._deflating){this.enqueue([this.dispatch,e,this._compress,n,r])}else{this.dispatch(e,this._compress,n,r)}}else{this.sendFrame(Sender.frame(e,{[l]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:false}),r)}}dispatch(e,t,r,n){if(!t){this.sendFrame(Sender.frame(e,r),n);return}const i=this._extensions[o.extensionName];this._bufferedBytes+=r[l];this._deflating=true;i.compress(e,r.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");if(typeof n==="function")n(e);for(let t=0;t<this._queue.length;t++){const r=this._queue[t];const n=r[r.length-1];if(typeof n==="function")n(e)}return}this._bufferedBytes-=r[l];this._deflating=false;r.readOnly=false;this.sendFrame(Sender.frame(t,r),n);this.dequeue()}))}dequeue(){while(!this._deflating&&this._queue.length){const e=this._queue.shift();this._bufferedBytes-=e[3][l];Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][l];this._queue.push(e)}sendFrame(e,t){if(e.length===2){this._socket.cork();this._socket.write(e[0]);this._socket.write(e[1],t);this._socket.uncork()}else{this._socket.write(e[0],t)}}}e.exports=Sender},6412:(e,t,r)=>{"use strict";const{Duplex:n}=r(2203);function emitClose(e){e.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(e){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",e)}}function createWebSocketStream(e,t){let r=true;const i=new n({...t,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});e.on("message",(function message(t,r){const n=!r&&i._readableState.objectMode?t.toString():t;if(!i.push(n))e.pause()}));e.once("error",(function error(e){if(i.destroyed)return;r=false;i.destroy(e)}));e.once("close",(function close(){if(i.destroyed)return;i.push(null)}));i._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t);process.nextTick(emitClose,i);return}let o=false;e.once("error",(function error(e){o=true;n(e)}));e.once("close",(function close(){if(!o)n(t);process.nextTick(emitClose,i)}));if(r)e.terminate()};i._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",(function open(){i._final(t)}));return}if(e._socket===null)return;if(e._socket._writableState.finished){t();if(i._readableState.endEmitted)i.destroy()}else{e._socket.once("finish",(function finish(){t()}));e.close()}};i._read=function(){if(e.isPaused)e.resume()};i._write=function(t,r,n){if(e.readyState===e.CONNECTING){e.once("open",(function open(){i._write(t,r,n)}));return}e.send(t,n)};i.on("end",duplexOnEnd);i.on("error",duplexOnError);return i}e.exports=createWebSocketStream},3332:(e,t,r)=>{"use strict";const{tokenChars:n}=r(6615);function parse(e){const t=new Set;let r=-1;let i=-1;let o=0;for(o;o<e.length;o++){const s=e.charCodeAt(o);if(i===-1&&n[s]===1){if(r===-1)r=o}else if(o!==0&&(s===32||s===9)){if(i===-1&&r!==-1)i=o}else if(s===44){if(r===-1){throw new SyntaxError(`Unexpected character at index ${o}`)}if(i===-1)i=o;const n=e.slice(r,i);if(t.has(n)){throw new SyntaxError(`The "${n}" subprotocol is duplicated`)}t.add(n);r=i=-1}else{throw new SyntaxError(`Unexpected character at index ${o}`)}}if(r===-1||i!==-1){throw new SyntaxError("Unexpected end of input")}const s=e.slice(r,o);if(t.has(s)){throw new SyntaxError(`The "${s}" subprotocol is duplicated`)}t.add(s);return t}e.exports={parse:parse}},6615:(e,t,r)=>{"use strict";const{isUtf8:n}=r(181);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function _isValidUTF8(e){const t=e.length;let r=0;while(r<t){if((e[r]&128)===0){r++}else if((e[r]&224)===192){if(r+1===t||(e[r+1]&192)!==128||(e[r]&254)===192){return false}r+=2}else if((e[r]&240)===224){if(r+2>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160){return false}r+=3}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244){return false}r+=4}else{return false}}return true}e.exports={isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:i};if(n){e.exports.isValidUTF8=function(e){return e.length<24?_isValidUTF8(e):n(e)}}else if(!process.env.WS_NO_UTF_8_VALIDATE){try{const t=r(2414);e.exports.isValidUTF8=function(e){return e.length<32?_isValidUTF8(e):t(e)}}catch(e){}}},129:(e,t,r)=>{"use strict";const n=r(4434);const i=r(8611);const{Duplex:o}=r(2203);const{createHash:s}=r(6982);const a=r(1335);const u=r(4376);const c=r(3332);const l=r(6681);const{GUID:f,kWebSocket:d}=r(1791);const h=/^[+/0-9A-Za-z]{22}==$/;const p=0;const b=1;const m=2;class WebSocketServer extends n{constructor(e,t){super();e={allowSynchronousEvents:true,autoPong:true,maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:l,...e};if(e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(e.port!=null){this._server=i.createServer(((e,t)=>{const r=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"});t.end(r)}));this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){const e=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,n)=>{this.handleUpgrade(t,r,n,e)}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=e;this._state=p}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(this._state===m){if(e){this.once("close",(()=>{e(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(e)this.once("close",e);if(this._state===b)return;this._state=b;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const e=this._server;this._removeListeners();this._removeListeners=this._server=null;e.close((()=>{emitClose(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const r=t!==-1?e.url.slice(0,t):e.url;if(r!==this.options.path)return false}return true}handleUpgrade(e,t,r,n){t.on("error",socketOnError);const i=e.headers["sec-websocket-key"];const o=e.headers.upgrade;const s=+e.headers["sec-websocket-version"];if(e.method!=="GET"){const r="Invalid HTTP method";abortHandshakeOrEmitwsClientError(this,e,t,405,r);return}if(o===undefined||o.toLowerCase()!=="websocket"){const r="Invalid Upgrade header";abortHandshakeOrEmitwsClientError(this,e,t,400,r);return}if(i===undefined||!h.test(i)){const r="Missing or invalid Sec-WebSocket-Key header";abortHandshakeOrEmitwsClientError(this,e,t,400,r);return}if(s!==8&&s!==13){const r="Missing or invalid Sec-WebSocket-Version header";abortHandshakeOrEmitwsClientError(this,e,t,400,r);return}if(!this.shouldHandle(e)){abortHandshake(t,400);return}const l=e.headers["sec-websocket-protocol"];let f=new Set;if(l!==undefined){try{f=c.parse(l)}catch(r){const n="Invalid Sec-WebSocket-Protocol header";abortHandshakeOrEmitwsClientError(this,e,t,400,n);return}}const d=e.headers["sec-websocket-extensions"];const p={};if(this.options.perMessageDeflate&&d!==undefined){const r=new u(this.options.perMessageDeflate,true,this.options.maxPayload);try{const e=a.parse(d);if(e[u.extensionName]){r.accept(e[u.extensionName]);p[u.extensionName]=r}}catch(r){const n="Invalid or unacceptable Sec-WebSocket-Extensions header";abortHandshakeOrEmitwsClientError(this,e,t,400,n);return}}if(this.options.verifyClient){const o={origin:e.headers[`${s===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(o,((o,s,a,u)=>{if(!o){return abortHandshake(t,s||401,a,u)}this.completeUpgrade(p,i,f,e,t,r,n)}));return}if(!this.options.verifyClient(o))return abortHandshake(t,401)}this.completeUpgrade(p,i,f,e,t,r,n)}completeUpgrade(e,t,r,n,i,o,c){if(!i.readable||!i.writable)return i.destroy();if(i[d]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>p)return abortHandshake(i,503);const l=s("sha1").update(t+f).digest("base64");const h=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${l}`];const b=new this.options.WebSocket(null,undefined,this.options);if(r.size){const e=this.options.handleProtocols?this.options.handleProtocols(r,n):r.values().next().value;if(e){h.push(`Sec-WebSocket-Protocol: ${e}`);b._protocol=e}}if(e[u.extensionName]){const t=e[u.extensionName].params;const r=a.format({[u.extensionName]:[t]});h.push(`Sec-WebSocket-Extensions: ${r}`);b._extensions=e}this.emit("headers",h,n);i.write(h.concat("\r\n").join("\r\n"));i.removeListener("error",socketOnError);b.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(b);b.on("close",(()=>{this.clients.delete(b);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}c(b,n)}}e.exports=WebSocketServer;function addListeners(e,t){for(const r of Object.keys(t))e.on(r,t[r]);return function removeListeners(){for(const r of Object.keys(t)){e.removeListener(r,t[r])}}}function emitClose(e){e._state=m;e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,r,n){r=r||i.STATUS_CODES[t];n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n};e.once("finish",e.destroy);e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(n).map((e=>`${e}: ${n[e]}`)).join("\r\n")+"\r\n\r\n"+r)}function abortHandshakeOrEmitwsClientError(e,t,r,n,i){if(e.listenerCount("wsClientError")){const n=new Error(i);Error.captureStackTrace(n,abortHandshakeOrEmitwsClientError);e.emit("wsClientError",n,r,t)}else{abortHandshake(r,n,i)}}},6681:(e,t,r)=>{"use strict";const n=r(4434);const i=r(5692);const o=r(8611);const s=r(9278);const a=r(4756);const{randomBytes:u,createHash:c}=r(6982);const{Duplex:l,Readable:f}=r(2203);const{URL:d}=r(7016);const h=r(4376);const p=r(893);const b=r(7389);const{BINARY_TYPES:m,EMPTY_BUFFER:v,GUID:g,kForOnEventAttribute:y,kListener:_,kStatusCode:D,kWebSocket:w,NOOP:C}=r(1791);const{EventTarget:{addEventListener:S,removeEventListener:E}}=r(4634);const{format:O,parse:k}=r(1335);const{toBuffer:A}=r(5803);const P=30*1e3;const x=Symbol("kAborted");const T=[8,13];const F=["CONNECTING","OPEN","CLOSING","CLOSED"];const j=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class WebSocket extends n{constructor(e,t,r){super();this._binaryType=m[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=v;this._closeTimer=null;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(t===undefined){t=[]}else if(!Array.isArray(t)){if(typeof t==="object"&&t!==null){r=t;t=[]}else{t=[t]}}initAsClient(this,e,t,r)}else{this._autoPong=r.autoPong;this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(e){if(!m.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){const n=new p({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new b(e,this._extensions,r.generateMask);this._receiver=n;this._socket=e;n[w]=this;e[w]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);if(e.setTimeout)e.setTimeout(0);if(e.setNoDelay)e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[h.extensionName]){this._extensions[h.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";abortHandshake(this,this._req,e);return}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,(e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),P)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){r=e;e=t=undefined}else if(typeof t==="function"){r=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}if(t===undefined)t=!this._isServer;this._sender.ping(e||v,t,r)}pong(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){r=e;e=t=undefined}else if(typeof t==="function"){r=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}if(t===undefined)t=!this._isServer;this._sender.pong(e||v,t,r)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof t==="function"){r=t;t={}}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}const n={binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true,...t};if(!this._extensions[h.extensionName]){n.compress=false}this._sender.send(e||v,n,r)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";abortHandshake(this,this._req,e);return}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:F.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:F.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:F.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:F.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:F.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:F.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:F.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:F.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(WebSocket.prototype,e,{enumerable:true})}));["open","error","close","message"].forEach((e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{enumerable:true,get(){for(const t of this.listeners(e)){if(t[y])return t[_]}return null},set(t){for(const t of this.listeners(e)){if(t[y]){this.removeListener(e,t);break}}if(typeof t!=="function")return;this.addEventListener(e,t,{[y]:true})}})}));WebSocket.prototype.addEventListener=S;WebSocket.prototype.removeEventListener=E;e.exports=WebSocket;function initAsClient(e,t,r,n){const s={allowSynchronousEvents:true,autoPong:true,protocolVersion:T[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...n,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:"GET",host:undefined,path:undefined,port:undefined};e._autoPong=s.autoPong;if(!T.includes(s.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} `+`(supported versions: ${T.join(", ")})`)}let a;if(t instanceof d){a=t}else{try{a=new d(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}e._url=a.href;const l=a.protocol==="wss:";const f=a.protocol==="ws+unix:";let p;if(a.protocol!=="ws:"&&!l&&!f){p='The URL\'s protocol must be one of "ws:", "wss:", '+'"http:", "https", or "ws+unix:"'}else if(f&&!a.pathname){p="The URL's pathname is empty"}else if(a.hash){p="The URL contains a fragment identifier"}if(p){const t=new SyntaxError(p);if(e._redirects===0){throw t}else{emitErrorAndClose(e,t);return}}const b=l?443:80;const m=u(16).toString("base64");const v=l?i.request:o.request;const y=new Set;let _;s.createConnection=s.createConnection||(l?tlsConnect:netConnect);s.defaultPort=s.defaultPort||b;s.port=a.port||b;s.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname;s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":m,Connection:"Upgrade",Upgrade:"websocket"};s.path=a.pathname+a.search;s.timeout=s.handshakeTimeout;if(s.perMessageDeflate){_=new h(s.perMessageDeflate!==true?s.perMessageDeflate:{},false,s.maxPayload);s.headers["Sec-WebSocket-Extensions"]=O({[h.extensionName]:_.offer()})}if(r.length){for(const e of r){if(typeof e!=="string"||!j.test(e)||y.has(e)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}y.add(e)}s.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(s.origin){if(s.protocolVersion<13){s.headers["Sec-WebSocket-Origin"]=s.origin}else{s.headers.Origin=s.origin}}if(a.username||a.password){s.auth=`${a.username}:${a.password}`}if(f){const e=s.path.split(":");s.socketPath=e[0];s.path=e[1]}let D;if(s.followRedirects){if(e._redirects===0){e._originalIpc=f;e._originalSecure=l;e._originalHostOrSocketPath=f?s.socketPath:a.host;const t=n&&n.headers;n={...n,headers:{}};if(t){for(const[e,r]of Object.entries(t)){n.headers[e.toLowerCase()]=r}}}else if(e.listenerCount("redirect")===0){const t=f?e._originalIpc?s.socketPath===e._originalHostOrSocketPath:false:e._originalIpc?false:a.host===e._originalHostOrSocketPath;if(!t||e._originalSecure&&!l){delete s.headers.authorization;delete s.headers.cookie;if(!t)delete s.headers.host;s.auth=undefined}}if(s.auth&&!n.headers.authorization){n.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")}D=e._req=v(s);if(e._redirects){e.emit("redirect",e.url,D)}}else{D=e._req=v(s)}if(s.timeout){D.on("timeout",(()=>{abortHandshake(e,D,"Opening handshake has timed out")}))}D.on("error",(t=>{if(D===null||D[x])return;D=e._req=null;emitErrorAndClose(e,t)}));D.on("response",(i=>{const o=i.headers.location;const a=i.statusCode;if(o&&s.followRedirects&&a>=300&&a<400){if(++e._redirects>s.maxRedirects){abortHandshake(e,D,"Maximum redirects exceeded");return}D.abort();let i;try{i=new d(o,t)}catch(t){const r=new SyntaxError(`Invalid URL: ${o}`);emitErrorAndClose(e,r);return}initAsClient(e,i,r,n)}else if(!e.emit("unexpected-response",D,i)){abortHandshake(e,D,`Unexpected server response: ${i.statusCode}`)}}));D.on("upgrade",((t,r,n)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;D=e._req=null;const i=t.headers.upgrade;if(i===undefined||i.toLowerCase()!=="websocket"){abortHandshake(e,r,"Invalid Upgrade header");return}const o=c("sha1").update(m+g).digest("base64");if(t.headers["sec-websocket-accept"]!==o){abortHandshake(e,r,"Invalid Sec-WebSocket-Accept header");return}const a=t.headers["sec-websocket-protocol"];let u;if(a!==undefined){if(!y.size){u="Server sent a subprotocol but none was requested"}else if(!y.has(a)){u="Server sent an invalid subprotocol"}}else if(y.size){u="Server sent no subprotocol"}if(u){abortHandshake(e,r,u);return}if(a)e._protocol=a;const l=t.headers["sec-websocket-extensions"];if(l!==undefined){if(!_){const t="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(e,r,t);return}let t;try{t=k(l)}catch(t){const n="Invalid Sec-WebSocket-Extensions header";abortHandshake(e,r,n);return}const n=Object.keys(t);if(n.length!==1||n[0]!==h.extensionName){const t="Server indicated an extension that was not requested";abortHandshake(e,r,t);return}try{_.accept(t[h.extensionName])}catch(t){const n="Invalid Sec-WebSocket-Extensions header";abortHandshake(e,r,n);return}e._extensions[h.extensionName]=_}e.setSocket(r,n,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}));if(s.finishRequest){s.finishRequest(D,e)}else{D.end()}}function emitErrorAndClose(e,t){e._readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()}function netConnect(e){e.path=e.socketPath;return s.connect(e)}function tlsConnect(e){e.path=undefined;if(!e.servername&&e.servername!==""){e.servername=s.isIP(e.host)?"":e.host}return a.connect(e)}function abortHandshake(e,t,r){e._readyState=WebSocket.CLOSING;const n=new Error(r);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t[x]=true;t.abort();if(t.socket&&!t.socket.destroyed){t.socket.destroy()}process.nextTick(emitErrorAndClose,e,n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function sendAfterClose(e,t,r){if(t){const r=A(t).length;if(e._socket)e._sender._bufferedBytes+=r;else e._bufferedAmount+=r}if(r){const t=new Error(`WebSocket is not open: readyState ${e.readyState} `+`(${F[e.readyState]})`);process.nextTick(r,t)}}function receiverOnConclude(e,t){const r=this[w];r._closeFrameReceived=true;r._closeMessage=t;r._closeCode=e;if(r._socket[w]===undefined)return;r._socket.removeListener("data",socketOnData);process.nextTick(resume,r._socket);if(e===1005)r.close();else r.close(e,t)}function receiverOnDrain(){const e=this[w];if(!e.isPaused)e._socket.resume()}function receiverOnError(e){const t=this[w];if(t._socket[w]!==undefined){t._socket.removeListener("data",socketOnData);process.nextTick(resume,t._socket);t.close(e[D])}t.emit("error",e)}function receiverOnFinish(){this[w].emitClose()}function receiverOnMessage(e,t){this[w].emit("message",e,t)}function receiverOnPing(e){const t=this[w];if(t._autoPong)t.pong(e,!this._isServer,C);t.emit("ping",e)}function receiverOnPong(e){this[w].emit("pong",e)}function resume(e){e.resume()}function socketOnClose(){const e=this[w];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);e._readyState=WebSocket.CLOSING;let t;if(!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null){e._receiver.write(t)}e._receiver.end();this[w]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[w]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[w];e._readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[w];this.removeListener("error",socketOnError);this.on("error",C);if(e){e._readyState=WebSocket.CLOSING;this.destroy()}}},1451:(e,t,r)=>{
|
|
1
|
+
(()=>{var __webpack_modules__={2127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AuthService=void 0;const n=r(4868);const i=r(6796);const o=r(3836);const s="ttc_app_fb239d41c8f9463586e0cadcb6326c15";const a="http://localhost:3000/oauth/callback";const u="chat";class AuthService{constructor(e){this.tokenManager=new i.TokenManager;this.userClient=new n.UserRPCClient(e,(async()=>{const e=this.tokenManager.getUserToken();return e||""}))}async login(){var e;try{let t=await o.MenuSystem.showInput({message:"Email:",validate:e=>e.includes("@")||"Invalid email format"});let r=await o.MenuSystem.showInput({message:"Password:",validate:e=>e.length>0||"Password required"});console.log("\nš Logging in...");const n=await this.userClient.Auth.signin(t,r);if(n.status==="error"){throw new Error(n.data||"Authentication failed: Invalid credentials")}const i=(e=n.data)===null||e===void 0?void 0:e.token;if(!i){throw new Error("No token received from server")}this.tokenManager.setUserToken(i);console.log("ā
Login successful!\n");return i}catch(e){throw new Error(e instanceof Error?e.message:"Authentication failed: Invalid credentials")}}async selectAssistant(){try{console.log("š Fetching your assistants...\n");const e=await this.userClient.Assistant.fetchAssistants();if(e.status==="error"||!e.data||e.data.length===0){throw new Error("No assistants found. Please create an assistant first.")}const t=e.data;const r=t.map((e=>({name:`${e.name} (ID: ${e.id})`,value:e.id})));const n=await o.MenuSystem.show({title:"Select Assistant",message:"Choose an assistant to use for chat:",choices:r});if(!n){throw new Error("No assistant selected")}return n}catch(e){throw new Error(e instanceof Error?e.message:"Failed to fetch assistants")}}async setupChatAccess(e){var t,r;try{console.log("\nš Setting up chat access...");const n=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);const i=await this.userClient.AppOAuth.generateAuthorizationUrl(s,a,u,n);if(i.status==="error"){throw new Error("Failed to generate authorization URL")}const o=await this.userClient.AppOAuth.handleAuthorizationCallback(s,a,e,n,true,u);if(o.status==="error"||!((t=o.data)===null||t===void 0?void 0:t.authorizationCode)){console.log(o);throw new Error("OAuth flow failed: Authorization denied")}const c=o.data.authorizationCode;const l=await this.userClient.AppOAuth.exchangeCodeForToken(c,s,a);if(l.status==="error"||!((r=l.data)===null||r===void 0?void 0:r.accessToken)){throw new Error("OAuth flow failed: Unable to get access token")}const f=l.data.accessToken;this.tokenManager.setChatToken(f);console.log("ā
Chat access configured!\n");return f}catch(e){throw new Error(e instanceof Error?e.message:"OAuth flow failed: Please try again")}}async authenticate(e,t){try{e=e?e:await this.login();const r=await this.selectAssistant();const n=t?t:await this.setupChatAccess(r);return{userToken:e,chatToken:n}}catch(e){throw e}}async verifyTokens(){var e;try{const t=this.tokenManager.getChatToken();if(!t){return false}const r=await this.userClient.AppOAuth.validateToken(t);return r.status==="success"&&((e=r.data)===null||e===void 0?void 0:e.valid)===true}catch(e){return false}}}t.AuthService=AuthService},774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Chat=void 0;const n=r(137);const i=r(8889);const o=r(7520);const s=r(6313);const a=r(8546);const u=r(5243);const c=r(7041);const l=r(498);const f=r(3836);const d=r(3729);(0,i.config)();class Chat{constructor(e,t,r,i){this.current_user="";this.conversation_id="";this.isAwaitingPermission=false;this.isWaitingForResponse=false;this.pendingPermissions=[];this.conversation_id=t;this.spinner=new d.Spinner;this.current_user=this.get_current_user();n.ttc_ai.init(e,i);this.commandRegistry=new o.CommandRegistry;this.registerCommands()}registerCommands(){this.commandRegistry.register(s.chatCommand);this.commandRegistry.register(a.navCommand);this.commandRegistry.register(u.helpCommand);this.commandRegistry.register(c.logoutCommand);this.commandRegistry.register(c.authStatusCommand);this.commandRegistry.register(s.seturlCommand);this.commandRegistry.register(l.permissionsCommand)}get_current_user(){const e=r(857);const t=e.userInfo().username;return t}async speakToUser(e){this.spinner.stop();this.isWaitingForResponse=false;console.log(`\n[ttcAI] š¤: ${e}\n`)}async start(){console.log(`Connected to ${n.ttc_ai.ai.url}. Type /help for commands or /exit to quit.`);process.on("SIGINT",(()=>{console.log("\n\nGoodbye! š\n");process.exit(0)}));n.ttc_ai.subscribe("permission",(async e=>{this.spinner.stop();const{id:t,func:r}=e;const i=t.includes("sentinel");if(i){this.pendingPermissions.push({id:t,func:r,timestamp:new Date});console.log(`\nā ļø [Permission pending] Function: ${r.function}`);console.log(` Type /permissions to review and approve (${this.pendingPermissions.length} pending)\n`)}else{this.isAwaitingPermission=true;const e=await this.askForPermission(r);this.isAwaitingPermission=false;if(e){this.spinner.start()}await n.ttc_ai.approveFunction(t,e)}}));n.ttc_ai.subscribe("message",(async e=>{await this.speakToUser(e.message)}));n.ttc_ai.subscribe("function_call",(async e=>{this.spinner.stop();console.log(e);this.spinner.start()}));while(true){try{while(this.isWaitingForResponse||this.isAwaitingPermission){await new Promise((e=>setTimeout(e,100)))}const{input:e}=await f.MenuSystem.showInput({message:`[${this.current_user}] š¤:`,validate:()=>true}).then((e=>({input:e||""})));const t=e.trim();if(!t)continue;if(t.startsWith("/")){const e=t.slice(1).split(" ");const r=e[0];const n=e.slice(1);if(r==="exit"){console.log("Goodbye š\n");process.exit(0)}const i=await this.commandRegistry.execute(r,this,n);if(!i){console.log(`\nā Unknown command: /${r}`);console.log(`Type /help to see available commands.\n`)}continue}this.spinner.start();this.isWaitingForResponse=true;await n.ttc_ai.sendMessage(this.conversation_id,t)}catch(e){if(e.message&&e.message.includes("force closed the prompt")){console.log("\n\nGoodbye! š\n");process.exit(0)}throw e}}}async askForPermission(e){let t="";try{const r=e.arguments||{};if(Object.keys(r).length>0){t=JSON.stringify(r,null,2).split("\n").map((e=>` ${e}`)).join("\n")}}catch(e){}const r=await f.MenuSystem.show({title:`š Permission Required`,message:`Function: ${e.function}${t?`\n${t}\n`:"\n"}`,choices:[{name:"ā
Approve",value:"approve",description:"Allow this function to execute"},{name:"ā Deny",value:"deny",description:"Block this function"}],backOption:false});return r==="approve"}}t.Chat=Chat},7520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CommandRegistry=void 0;class CommandRegistry{constructor(){this.commands=new Map}register(e){this.commands.set(e.name,e)}get(e){return this.commands.get(e)}getAll(){return Array.from(this.commands.values())}has(e){return this.commands.has(e)}async execute(e,t,r){const n=this.get(e);if(!n){return false}await n.handler(t,r);return true}}t.CommandRegistry=CommandRegistry},7041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.authStatusCommand=t.logoutCommand=void 0;const n=r(6796);const i=r(3836);async function logoutHandler(e,t){const r=await i.MenuSystem.showConfirm("Are you sure you want to logout?",false);if(r){const e=new n.TokenManager;e.clearTokens();console.log("\nā
Logged out successfully. Please restart the CLI.\n");process.exit(0)}}async function statusHandler(e,t){const r=new n.TokenManager;const i=r.getUserToken();const o=r.getChatToken();console.log("\nš Authentication Status:");console.log(`User Token: ${i?"ā
Present":"ā Missing"}`);console.log(`Chat Token: ${o?"ā
Present":"ā Missing"}`);if(i&&o){console.log(`\nš¢ Status: Authenticated`)}else{console.log(`\nš“ Status: Not authenticated`)}console.log()}t.logoutCommand={name:"logout",description:"Logout and clear saved credentials",handler:logoutHandler};t.authStatusCommand={name:"status",description:"Show authentication status",handler:statusHandler}},6313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.seturlCommand=t.chatCommand=void 0;const n=r(137);const i=r(3836);const o=r(6796);async function handleListChats(e){console.log("\nš Fetching your chats...\n");try{const t=await n.ttc_ai.fetchChats(1,50);if(t.length===0){console.log("No chats found. Create one to get started!\n");return}console.log(`Found ${t.length} chat(s):\n`);for(let r=0;r<t.length;r++){const n=t[r];const i=n===e.conversation_id;const o=i?"ā":" ";console.log(`${o} ${r+1}. ${n}${i?" (current)":""}`)}console.log()}catch(e){console.error("Error fetching chats:",e instanceof Error?e.message:e)}}async function handleCreateChat(e){const t=await i.MenuSystem.showInput({message:"Enter a name/ID for the new chat (or leave blank for auto-generated):",validate:e=>{if(e.trim().length===0)return true;if(e.trim().length>100)return"Name too long (max 100 characters)";return true}});if(t===null)return;try{console.log("\nšØ Creating new chat...\n");const r=await n.ttc_ai.createChat(t.trim()||undefined);console.log(`ā
Created new chat: ${r}\n`);const s=await i.MenuSystem.showConfirm("Switch to the new chat now?",true);if(s){const t=new o.TokenManager;e.conversation_id=r;t.setConversationId(r);console.log(`\nā
Switched to chat: ${r}\n`)}}catch(e){console.error("Error creating chat:",e instanceof Error?e.message:e)}}async function handleSwitchChat(e){try{const t=await n.ttc_ai.fetchChats(1,50);if(t.length===0){console.log("\nNo chats available to switch to.\n");return}const r=t.map(((t,r)=>({name:`${t}${t===e.conversation_id?" (current)":""}`,value:t})));const s=await i.MenuSystem.show({title:"Switch Chat",message:"Select a chat to switch to:",choices:r});if(s&&s!==e.conversation_id){const t=new o.TokenManager;e.conversation_id=s;t.setConversationId(s);console.log(`\nā
Switched to chat: ${s}\n`)}}catch(e){console.error("Error switching chat:",e instanceof Error?e.message:e)}}async function handleDeleteChat(e){try{const t=await n.ttc_ai.fetchChats(1,50);if(t.length===0){console.log("\nNo chats available to delete.\n");return}const r=t.map((e=>({name:e,value:e})));const s=await i.MenuSystem.show({title:"Delete Chat",message:"Select a chat to delete:",choices:r});if(!s)return;const a=await i.MenuSystem.showConfirm(`Are you sure you want to delete chat: ${s}?`,false);if(a){await n.ttc_ai.deleteChat(s);console.log(`\nā
Deleted chat: ${s}\n`);if(s===e.conversation_id){const t=new o.TokenManager;console.log("Creating a new chat since you deleted the current one...\n");const r=await n.ttc_ai.createChat(undefined);e.conversation_id=r;t.setConversationId(r);console.log(`ā
Switched to new chat: ${r}\n`)}}}catch(e){console.error("Error deleting chat:",e instanceof Error?e.message:e)}}async function chatMenuHandler(e,t){while(true){const t=await i.MenuSystem.show({title:"Chat Management",message:"What would you like to do?",choices:[{name:"š List Chats",value:"list"},{name:"šØ Create New Chat",value:"create"},{name:"š Switch Chat",value:"switch"},{name:"šļø Delete Chat",value:"delete"}]});if(!t){console.log("\n");break}switch(t){case"list":await handleListChats(e);break;case"create":await handleCreateChat(e);break;case"switch":await handleSwitchChat(e);break;case"delete":await handleDeleteChat(e);break}}}async function handleSetUrl(e,t){const r=new o.TokenManager;const n=r.getUrl();console.log(`\nš Current server URL: ${n||"Not set"}\n`);const s=await i.MenuSystem.showInput({message:"Enter new server URL:",default:n||"http://localhost:3000",validate:e=>{if(!e.trim())return"URL cannot be empty";try{new URL(e);return true}catch{return"Invalid URL format"}}});if(!s)return;r.setUrl(s);console.log(`\nā
Server URL updated to: ${s}`);console.log(`ā ļø Please restart the CLI for changes to take effect.\n`)}t.chatCommand={name:"chat",description:"Manage your chats (list, create, switch, delete)",handler:chatMenuHandler};t.seturlCommand={name:"seturl",description:"Change the server URL",handler:handleSetUrl}},5243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.helpCommand=void 0;async function helpHandler(e,t){const r=e.commandRegistry.getAll();console.log("\n"+"=".repeat(50));console.log(" Available Commands");console.log("=".repeat(50)+"\n");r.forEach((e=>{console.log(` /${e.name.padEnd(15)} - ${e.description}`)}));console.log(` /exit${" ".repeat(10)} - Exit the chat`);console.log("\n"+"=".repeat(50)+"\n")}t.helpCommand={name:"help",description:"Show available commands and their descriptions",handler:helpHandler}},8546:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.navCommand=void 0;const s=r(3836);const a=o(r(6928));const u=o(r(9896));async function navMenuHandler(e,t){while(true){const e=await s.MenuSystem.show({title:"Directory Navigation",message:"What would you like to do?",choices:[{name:"š Change Directory",value:"cd"},{name:"š List Current Directory",value:"ls"},{name:"š Show Current Path",value:"pwd"}]});if(!e){console.log("\n");break}switch(e){case"cd":await handleChangeDirectory();break;case"ls":await handleListDirectory();break;case"pwd":await handleShowPath();break}}}async function handleChangeDirectory(){const e=await s.MenuSystem.showInput({message:"Enter directory path (or .. for parent, ~ for home):",default:process.cwd(),validate:e=>{if(!e.trim())return"Path cannot be empty";return true}});if(!e)return;try{let t=e.trim();if(t==="~"){t=r(857).homedir()}else if(t===".."){t=a.dirname(process.cwd())}else if(!a.isAbsolute(t)){t=a.resolve(process.cwd(),t)}if(!u.existsSync(t)){console.log(`\nā Directory does not exist: ${t}\n`);return}if(!u.statSync(t).isDirectory()){console.log(`\nā Not a directory: ${t}\n`);return}process.chdir(t);console.log(`\nā
Changed directory to: ${process.cwd()}\n`)}catch(e){console.error("\nā Error changing directory:",e instanceof Error?e.message:e);console.log()}}async function handleListDirectory(){try{const e=process.cwd();console.log(`\nš Contents of ${e}:\n`);const t=u.readdirSync(e);if(t.length===0){console.log("(empty directory)\n");return}const r=[];const n=[];for(const i of t){const t=a.join(e,i);try{const e=u.statSync(t);if(e.isDirectory()){r.push(i)}else{n.push(i)}}catch{}}if(r.length>0){console.log("Directories:");r.sort().forEach((e=>console.log(` š ${e}/`)));console.log()}if(n.length>0){console.log("Files:");n.sort().forEach((e=>console.log(` š ${e}`)));console.log()}}catch(e){console.error("\nā Error listing directory:",e instanceof Error?e.message:e);console.log()}}async function handleShowPath(){const e=process.cwd();console.log(`\nš Current directory: ${e}\n`)}t.navCommand={name:"cd",description:"Navigate directories and view file system",handler:navMenuHandler}},498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.permissionsCommand=void 0;const n=r(3836);const i=r(137);t.permissionsCommand={name:"permissions",description:"View and manage pending permissions",handler:async(e,t)=>{if(e.pendingPermissions.length===0){console.log("\nā
No pending permissions.\n");return}console.log(`\nš ${e.pendingPermissions.length} pending permission(s)\n`);while(e.pendingPermissions.length>0){const t=e.pendingPermissions[0];let r="";try{const e=t.func.arguments||{};if(Object.keys(e).length>0){r=JSON.stringify(e,null,2).split("\n").map((e=>` ${e}`)).join("\n")}}catch(e){}const o=getTimeAgo(t.timestamp);const s=await n.MenuSystem.show({title:`š Permission Request (${e.pendingPermissions.length} remaining)`,message:`Function: ${t.func.function}\nRequested: ${o}${r?`\n${r}\n`:"\n"}`,choices:[{name:"ā
Approve",value:"approve",description:"Allow this function to execute"},{name:"ā Deny",value:"deny",description:"Block this function"},{name:"ā
ā
Approve All",value:"approve_all",description:"Approve all pending permissions"},{name:"āā Deny All",value:"deny_all",description:"Deny all pending permissions"},{name:"āļø Skip",value:"skip",description:"Review later"},{name:"ā Exit",value:"exit",description:"Return to chat"}],backOption:false});if(s==="approve"){e.pendingPermissions.shift();e.spinner.start();await i.ttc_ai.approveFunction(t.id,true);console.log(`\nā
Approved: ${t.func.function}\n`)}else if(s==="deny"){e.pendingPermissions.shift();await i.ttc_ai.approveFunction(t.id,false);console.log(`\nā Denied: ${t.func.function}\n`)}else if(s==="approve_all"){const t=[...e.pendingPermissions];e.pendingPermissions=[];e.spinner.start();for(const e of t){await i.ttc_ai.approveFunction(e.id,true)}console.log(`\nā
Approved all ${t.length} permission(s)\n`);break}else if(s==="deny_all"){const t=[...e.pendingPermissions];e.pendingPermissions=[];for(const e of t){await i.ttc_ai.approveFunction(e.id,false)}console.log(`\nā Denied all ${t.length} permission(s)\n`);break}else if(s==="skip"){const r=e.pendingPermissions.shift();e.pendingPermissions.push(r);console.log(`\nāļø Skipped: ${t.func.function}\n`)}else if(s==="exit"||s===null){console.log(`\nš ${e.pendingPermissions.length} permission(s) still pending. Type /permissions to review.\n`);break}}if(e.pendingPermissions.length===0){console.log("ā
All permissions processed.\n")}}};function getTimeAgo(e){const t=Math.floor(((new Date).getTime()-e.getTime())/1e3);if(t<60)return`${t}s ago`;if(t<3600)return`${Math.floor(t/60)}m ago`;if(t<86400)return`${Math.floor(t/3600)}h ago`;return`${Math.floor(t/86400)}d ago`}},3836:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MenuSystem=void 0;const i=n(r(592));class MenuSystem{static async show(e){const t=[...e.choices];if(e.backOption!==false){t.push({name:"ā Back to Chat",value:"__back__"})}console.log(`\n${"=".repeat(50)}`);console.log(` ${e.title}`);console.log(`${"=".repeat(50)}\n`);const{selection:r}=await i.default.prompt([{type:"list",name:"selection",message:e.message,choices:t.map((e=>({name:e.description?`${e.name} - ${e.description}`:e.name,value:e.value}))),pageSize:15}]);if(r==="__back__"){return null}return r}static async showInput(e){const{input:t}=await i.default.prompt([{type:"input",name:"input",message:e.message,default:e.default,validate:e.validate}]);return t}static async showConfirm(e,t=false){const{confirmed:r}=await i.default.prompt([{type:"confirm",name:"confirmed",message:e,default:t}]);return r}}t.MenuSystem=MenuSystem},3729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Spinner=void 0;class Spinner{constructor(e="Thinking"){this.timer=null;this.frames=["ā ","ā ","ā ¹","ā ø","ā ¼","ā “","ā ¦","ā §","ā ","ā "];this.currentFrame=0;this.message=e}start(){}stop(){}}t.Spinner=Spinner},6796:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.TokenManager=void 0;const s=o(r(9896));const a=o(r(6928));const u=o(r(857));class TokenManager{constructor(){this.configPath=this.getConfigPath()}getConfigPath(){return a.join(u.homedir(),".ttcrc")}loadConfig(){try{if(!s.existsSync(this.configPath)){return{}}const e=s.readFileSync(this.configPath,"utf-8");const t=JSON.parse(e);return t}catch(e){console.error("Error loading config:",e instanceof Error?e.message:e);return{}}}saveConfig(e){try{const t=JSON.stringify(e,null,2);s.writeFileSync(this.configPath,t,"utf-8");if(process.platform!=="win32"){s.chmodSync(this.configPath,384)}}catch(e){console.error("Error saving config:",e instanceof Error?e.message:e);throw new Error("Unable to save credentials: Permission denied")}}getUserToken(){const e=this.loadConfig();return e.TTC_USER_TOKEN||null}getChatToken(){const e=this.loadConfig();return e.TTC_CHAT_TOKEN||null}setUserToken(e){const t=this.loadConfig();t.TTC_USER_TOKEN=e;this.saveConfig(t)}setChatToken(e){const t=this.loadConfig();t.TTC_CHAT_TOKEN=e;this.saveConfig(t)}clearTokens(){try{if(s.existsSync(this.configPath)){s.unlinkSync(this.configPath)}}catch(e){console.error("Error clearing tokens:",e instanceof Error?e.message:e)}}hasValidTokens(){const e=this.getUserToken();const t=this.getChatToken();return!!(e&&t)}getConversationId(){const e=this.loadConfig();return e.CONVERSATION_ID||null}setConversationId(e){const t=this.loadConfig();t.CONVERSATION_ID=e;this.saveConfig(t)}getScid(){const e=this.loadConfig();return e.SCID||null}setScid(e){const t=this.loadConfig();t.SCID=e;this.saveConfig(t)}getUrl(){const e=this.loadConfig();return e.SERVER_URL||null}setUrl(e){const t=this.loadConfig();t.SERVER_URL=e;this.saveConfig(t)}}t.TokenManager=TokenManager},4868:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});t.UserRPCClient=void 0;const i=r(3588);let o="";const uuid=()=>{const e="ttc_scid";let t=typeof localStorage!=="undefined"?localStorage.getItem(e):o;if(!t){t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);if(typeof localStorage!=="undefined"){localStorage.setItem(e,t)}else{o=t}}return t};class UserRPCClient{constructor(e,t,r){this.Saas={async getCreditPackages(){return await n.apiCallback("Saas.getCreditPackages")},async getUserTransactions(){return await n.apiCallback("Saas.getUserTransactions")},async getAllCreditPurchases(e,t){return await n.apiCallback("Saas.getAllCreditPurchases",[e,t])}};this.Assistant={async createAssistant(e,t,r){return await n.apiCallback("Assistant.createAssistant",[e,t,r])},async fetchAssistant(e){return await n.apiCallback("Assistant.fetchAssistant",[e])},async fetchAssistants(){return await n.apiCallback("Assistant.fetchAssistants")},async assignModelToAssistant(e,t){return await n.apiCallback("Assistant.assignModelToAssistant",[e,t])},async fetchAssistantWithModel(e){return await n.apiCallback("Assistant.fetchAssistantWithModel",[e])},async getAssistantAnalytics(e){return await n.apiCallback("Assistant.getAssistantAnalytics",[e])},async getAssistantApps(e){return await n.apiCallback("Assistant.getAssistantApps",[e])},async unassignModelFromAssistant(e){return await n.apiCallback("Assistant.unassignModelFromAssistant",[e])},async updateAssistant(e,t,r,i){return await n.apiCallback("Assistant.updateAssistant",[e,t,r,i])},async assignAssistantToAppUser(e,t){return await n.apiCallback("Assistant.assignAssistantToAppUser",[e,t])},async removeAssistantFromAppUser(e){return await n.apiCallback("Assistant.removeAssistantFromAppUser",[e])},async fetchAssistantsForApp(e){return await n.apiCallback("Assistant.fetchAssistantsForApp",[e])},async fetchGlobalMemory(e){return await n.apiCallback("Assistant.fetchGlobalMemory",[e])},async updateGlobalMemory(e,t){return await n.apiCallback("Assistant.updateGlobalMemory",[e,t])},async fetchSentinelSessions(e){return await n.apiCallback("Assistant.fetchSentinelSessions",[e])},async fetchSentinelLogs(e){return await n.apiCallback("Assistant.fetchSentinelLogs",[e])},async unassignVoiceModel(e){return await n.apiCallback("Assistant.unassignVoiceModel",[e])},async assignVoiceModel(e,t){return await n.apiCallback("Assistant.assignVoiceModel",[e,t])},async fetchAssistantVoiceModels(e){return await n.apiCallback("Assistant.fetchAssistantVoiceModels",[e])}};this.TCC={async get_models(e){return await n.apiCallback("TCC.get_models",[e])},async conversation_stats(e){return await n.apiCallback("TCC.conversation_stats",[e])},async change_to_model(e,t,r){return await n.apiCallback("TCC.change_to_model",[e,t,r])},async trigger(e,t,r){return await n.apiCallback("TCC.trigger",[e,t,r])},async invoke_construct(e,t){return await n.apiCallback("TCC.invoke_construct",[e,t])},async select_context(e,t){return await n.apiCallback("TCC.select_context",[e,t])}};this.ttcCore={async chatAI(e,t){return await n.apiCallback("ttcCore.chatAI",[e,t])},async functionResponse(e,t,r){return await n.apiCallback("ttcCore.functionResponse",[e,t,r])},async fetchChatHistory(e,t,r){return await n.apiCallback("ttcCore.fetchChatHistory",[e,t,r])},async setAppFunctions(e,t){return await n.apiCallback("ttcCore.setAppFunctions",[e,t])},async createChat(e){return await n.apiCallback("ttcCore.createChat",[e])},async updateChat(e,t){return await n.apiCallback("ttcCore.updateChat",[e,t])},async fetchChats(e,t){return await n.apiCallback("ttcCore.fetchChats",[e,t])},async fetchChat(e){return await n.apiCallback("ttcCore.fetchChat",[e])},async deleteChat(e){return await n.apiCallback("ttcCore.deleteChat",[e])},async clearChatHistory(e,t){return await n.apiCallback("ttcCore.clearChatHistory",[e,t])},async fetchEmote(){return await n.apiCallback("ttcCore.fetchEmote")},async fetchOrigins(e){return await n.apiCallback("ttcCore.fetchOrigins",[e])}};this.Auth={async signup(e,t,r){return await n.apiCallback("Auth.signup",[e,t,r])},async me(){return await n.apiCallback("Auth.me")},async signin(e,t){return await n.apiCallback("Auth.signin",[e,t])},async changepassword(e,t){return await n.apiCallback("Auth.changepassword",[e,t])},async googleoauth(e){return await n.apiCallback("Auth.googleoauth",[e])},async signInGoogle(e,t,r){return await n.apiCallback("Auth.signInGoogle",[e,t,r])}};this.AppOAuth={async generateAuthorizationUrl(e,t,r,i){return await n.apiCallback("AppOAuth.generateAuthorizationUrl",[e,t,r,i])},async handleAuthorizationCallback(e,t,r,i,o,s){return await n.apiCallback("AppOAuth.handleAuthorizationCallback",[e,t,r,i,o,s])},async exchangeCodeForToken(e,t,r){return await n.apiCallback("AppOAuth.exchangeCodeForToken",[e,t,r])},async refreshToken(e,t){return await n.apiCallback("AppOAuth.refreshToken",[e,t])},async revokeToken(e,t){return await n.apiCallback("AppOAuth.revokeToken",[e,t])},async getAuthorizationDetails(e){return await n.apiCallback("AppOAuth.getAuthorizationDetails",[e])},async listAuthorizedApps(){return await n.apiCallback("AppOAuth.listAuthorizedApps")},async fetchAppDetails(e){return await n.apiCallback("AppOAuth.fetchAppDetails",[e])},async validateToken(e){return await n.apiCallback("AppOAuth.validateToken",[e])}};this.ttcApp={async appAnalytics(e,t){return await n.apiCallback("ttcApp.appAnalytics",[e,t])},async createApp(e,t,r,i){return await n.apiCallback("ttcApp.createApp",[e,t,r,i])},async validateSubdomain(e){return await n.apiCallback("ttcApp.validateSubdomain",[e])},async updateApp(e,t,r,i,o){return await n.apiCallback("ttcApp.updateApp",[e,t,r,i,o])},async generateToken(e,t){return await n.apiCallback("ttcApp.generateToken",[e,t])},async fetchApp(e){return await n.apiCallback("ttcApp.fetchApp",[e])},async fetchApps(){return await n.apiCallback("ttcApp.fetchApps")},async deleteApp(e){return await n.apiCallback("ttcApp.deleteApp",[e])},async deleteAppUser(e,t){return await n.apiCallback("ttcApp.deleteAppUser",[e,t])},async fetchAppUsers(e,t,r){return await n.apiCallback("ttcApp.fetchAppUsers",[e,t,r])},async addOrigin(e,t,r,i){return await n.apiCallback("ttcApp.addOrigin",[e,t,r,i])},async fetchOrigins(e){return await n.apiCallback("ttcApp.fetchOrigins",[e])},async updateOrigin(e,t,r,i){return await n.apiCallback("ttcApp.updateOrigin",[e,t,r,i])},async deleteOrigin(e,t){return await n.apiCallback("ttcApp.deleteOrigin",[e,t])},async setAppRagRepository(e,t){return await n.apiCallback("ttcApp.setAppRagRepository",[e,t])},async removeAppRagRepository(e){return await n.apiCallback("ttcApp.removeAppRagRepository",[e])}};this.Media={async uploadImage(e,t,r){return await n.mediaCallback("Media.uploadImage",[e,t],r)}};this.Model={async addModel(e,t,r,i,o){return await n.apiCallback("Model.addModel",[e,t,r,i,o])},async fetchModels(){return await n.apiCallback("Model.fetchModels")},async updateModel(e,t,r,i){return await n.apiCallback("Model.updateModel",[e,t,r,i])},async deleteModel(e){return await n.apiCallback("Model.deleteModel",[e])},async fetchAppModels(e){return await n.apiCallback("Model.fetchAppModels",[e])},async deleteAppModel(e,t){return await n.apiCallback("Model.deleteAppModel",[e,t])},async selectModelForApp(e,t){return await n.apiCallback("Model.selectModelForApp",[e,t])},async getAppsUsedByModel(e){return await n.apiCallback("Model.getAppsUsedByModel",[e])},async getAssistantsUsingModel(e){return await n.apiCallback("Model.getAssistantsUsingModel",[e])},async getModelQueue(e){return await n.apiCallback("Model.getModelQueue",[e])}};this.Orobii={async fetch_consultee_info(e){return await n.apiCallback("Orobii.fetch_consultee_info",[e])},async search_consultee_conversation_history(e,t,r,i){return await n.apiCallback("Orobii.search_consultee_conversation_history",[e,t,r,i])},async search_consultee_notes(e,t,r){return await n.apiCallback("Orobii.search_consultee_notes",[e,t,r])},async search_consultee_memory(e,t,r){return await n.apiCallback("Orobii.search_consultee_memory",[e,t,r])},async submit_consultee_message(e,t){return await n.apiCallback("Orobii.submit_consultee_message",[e,t])}};this.TTCRag={async create(e,t,r,i){return await n.apiCallback("TTCRag.create",[e,t,r,i])},async getRepository(e){return await n.apiCallback("TTCRag.getRepository",[e])},async listRepository(e,t){return await n.apiCallback("TTCRag.listRepository",[e,t])},async updateRepository(e,t){return await n.apiCallback("TTCRag.updateRepository",[e,t])},async delete(e){return await n.apiCallback("TTCRag.delete",[e])},async uploadfile(e,t){return await n.mediaCallback("TTCRag.uploadfile",[e],t)},async listfiles(e,t){return await n.apiCallback("TTCRag.listfiles",[e,t])},async deletefile(e,t){return await n.apiCallback("TTCRag.deletefile",[e,t])},async searchRAG(e,t){return await n.apiCallback("TTCRag.searchRAG",[e,t])}};n.token_cb=t;n.url=e;n._scid=uuid();if(r)this.connectSocket(e,r)}async connectSocket(e,t){try{const r=(0,i.io)(e,{auth:{authorization:await n.token_cb(),_scid:n._scid}});if(t)t(r)}catch(e){console.error("Error initializing socket:",e.message)}}}t.UserRPCClient=UserRPCClient;n=UserRPCClient;UserRPCClient.url="http://localhost:3000/rpc";UserRPCClient.apiCallback=async(e,t)=>{try{if(!n.token_cb)throw new Error("UserRPCClient.token_cb is not set");const r=await n.token_cb();const i=await fetch(`${n.url}/rpc`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}:${n._scid}`},body:JSON.stringify({method:e,params:t})});if(!i.ok){throw new Error(`API error: ${i.status} ${i.statusText}`)}return await i.json()}catch(e){console.error("Error calling API:",e);throw e}};UserRPCClient.mediaCallback=async(e,t,r)=>{try{if(!n.token_cb)throw new Error("UserRPCClient.token_cb is not set");const i=await n.token_cb();const o=new FormData;o.append("method",e);if(t)o.append("params",JSON.stringify(t));if(r)o.append("file",r);const s=await fetch(`${n.url}/rpc`,{method:"POST",headers:{Authorization:`Bearer ${i}:${n._scid}`},body:o});if(!s.ok){throw new Error(`Media API error: ${s.status} ${s.statusText}`)}return await s.json()}catch(e){console.error("Error calling Media API:",e);throw e}}},9016:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isDangerousCommand=void 0;const isDangerousCommand=e=>{const t=[/\brm\b/,/rm\s+-rf\s+\//,/rm\s+-rf\s+~/,/rm\s+-rf\s+\./,/rm\s+-rf\s+\/\*/,/dd\s+if=.*of=\/dev\/(sd[a-z]|hd[a-z])/,/mkfs\.\w+\s+\/dev\/(sd[a-z]|hd[a-z])/,/chmod\s+-R\s+0+\s+\//,/chown\s+-R\s+.*\s+\//,/:\s*\(\s*\)\s*\{\s*:\s*\|\s*:\s*&\s*\}\s*;\s*:/,/kill\s+-9\s+-1/,/sudo\s+apt-get\s+remove\s+--purge\s+python3/,/sudo\s+yum\s+erase\s+glibc/,/del\s+\/f\s+\/s\s+\/q\s+C:\\\*/,/rmdir\s+\/s\s+\/q\s+C:\\Windows/,/format\s+C:\s+\/fs:\w+\s+\/q/,/reg\s+delete\s+HKLM\s+\/f/,/reg\s+delete\s+HKCU\s+\/f/,/netsh\s+firewall\s+set\s+opmode\s+disable/,/taskkill\s+\/f\s+\/im\s+svchost\.exe/,/sudo\s+rm\s+-rf\s+\/usr/,/sudo\s+rm\s+-rf\s+\/lib/,/sudo\s+rm\s+-rf\s+\/bin/,/sudo\s+rm\s+-rf\s+\/etc/,/\/dev\/null/,/\/dev\/zero/,/\/dev\/urandom/,/\/proc\/sys/,/sysctl\s+-w/,/swapoff\s+-a/,/iptables\s+-F/,/ufw\s+disable/,/Remove-Item\s+-Path\s+C:\\\s+-Recurse\s+-Force/,/Set-ExecutionPolicy\s+Unrestricted\s+-Force/,/\[System\.IO\.File\]::WriteAllText.*boot\.ini/,/>\s*\/etc\/passwd/,/>\s*\/etc\/shadow/,/>\s*\/etc\/sudoers/,/>\s*\/etc\/hosts/,/>\s*\/etc\/crontab/,/>\s*\/etc\/fstab/,/>\s*\/boot\/grub\/grub.cfg/,/>\s*\/etc\/profile/,/>\s*\/etc\/bash.bashrc/,/echo\s+.*\s+>\s*\/etc\//,/cat\s+>\s*\/etc\//,/tee\s+\/etc\//,/>\s*C:\\Windows\\System32\\drivers\\etc\\hosts/,/>\s*C:\\Windows\\System32\\config\\SAM/,/>\s*C:\\Windows\\System32\\config\\SYSTEM/,/>\s*C:\\boot.ini/,/echo\s+.*\s+>\s*C:\\Windows\\/,/type\s+.*\s+>\s*C:\\Windows\\/,/>\s*\/proc\/sysrq-trigger/,/>\s*\/sys\/class\/backlight\//,/>\s*\/sys\/devices\/system\/cpu\//,/>\s*~\/\.bashrc/,/>\s*~\/\.bash_profile/,/>\s*~\/\.zshrc/,/>\s*~\/\.profile/,/>\s*~\/\.ssh\/authorized_keys/,/>\s*~\/\.ssh\/config/,/>\s*\/etc\/ssh\/sshd_config/,/>\s*\/etc\/systemd\/system\//,/>\s*\/lib\/systemd\/system\//,/>\s*\/var\/spool\/cron\//,/>\s*\/etc\/cron\.d\//,/>\s*\/var\/log\//,/truncate\s+-s\s+0\s+\/var\/log\//,/>\s*\/etc\/apt\/sources.list/,/>\s*\/etc\/yum.repos.d\//,/>\s*\/etc\/network\/interfaces/,/>\s*\/etc\/resolv.conf/,/>\s*\/etc\/netplan\//,/>\s*\/etc\/modules-load.d\//,/>\s*\/etc\/modprobe.d\//];const r=e.trim().toLowerCase();for(const e of t){if(e.test(r)){return true}}if(r.includes("rm -rf")&&(r.includes("/")||r.includes("~"))){return true}if(r.includes("format")&&r.includes("c:")){return true}if(r.includes("reg delete")&&(r.includes("hklm")||r.includes("hkcu"))){return true}if((r.includes(">")||r.includes(">>"))&&(r.includes("/etc/")||r.includes("c:\\windows\\system32")||r.includes("/proc/")||r.includes("/sys/"))){return true}return false};t.isDangerousCommand=isDangerousCommand},137:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ttc_ai=void 0;const i=n(r(4434));const o=r(8238);class ttc_ai{static async init(e,t){ttc_ai.event=new i.default;ttc_ai.ai=new o.ttcAI(e,t);await ttc_ai.ai.init()}static async createChat(e){var t;const r=await((t=ttc_ai.ai)===null||t===void 0?void 0:t.server.ttcCore.createChat(e));return r.data.chatId}static async fetchChats(e,t){var r;const n=await((r=ttc_ai.ai)===null||r===void 0?void 0:r.server.ttcCore.fetchChats(e,t));return n.data}static async fetchChat(e){var t;const r=await((t=ttc_ai.ai)===null||t===void 0?void 0:t.server.ttcCore.fetchChat(e));return r.data}static async deleteChat(e){var t;const r=await((t=ttc_ai.ai)===null||t===void 0?void 0:t.server.ttcCore.deleteChat(e));return r.data}static async sendMessage(e,t){await this.ai.internal.sendMessage(e,t)}static async approveFunction(e,t){const r=this.permissions[e];console.log(r,"Approved");if(r){r(t);delete this.permissions[e]}}static async askPermission(e,t,r){const n=`${e}-${t.function}`;if(!this.permissions[n]){this.permissions[n]=r}await this.emit("permission",{id:n,func:t})}static async subscribe(e,t){this.event.on(e,t)}static async emit(e,t){this.event.emit(e,t)}}t.ttc_ai=ttc_ai;ttc_ai.permissions={}},1212:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.TTCInternal=void 0;const a=r(137);const u=r(5317);const c=s(r(9896));const l=o(r(857));class TTCInternal{constructor(){this._setttcAI=e=>{this.ai=e};this.getFunctionDetails=e=>{var t;return(t=this.ai)===null||t===void 0?void 0:t.functions[e]};this.invokeCLI=async(e,t)=>{try{const r=(0,u.execSync)(e,{timeout:t*1e3}).toString();return r?r:"command executed successfully"}catch(e){return e.message}};this.sendMessage=async(e,t)=>{await this.ai.server.ttcCore.chatAI(e||"",t)};this.sendFunctionResponse=async(e,t)=>{await this.ai.server.ttcCore.functionResponse(e||"",t,[])};this.speakToUser=async(e,t)=>{await a.ttc_ai.emit("message",{conversation_id:e,message:t})};this.invokeInternal=async(e,t,r)=>{if(t!=="TTCInternal.speakToUser")console.log(`- ${t}: (${JSON.stringify(r)})`);switch(t){case"TTCInternal.speakToUser":return await this.speakToUser(e,r.message);case"TTCInternal.saveToken":return await this.saveToken(r.token);case"TTCInternal.fetchToken":return await this.fetchToken();case"TTCInternal.invokeCLI":return await this.invokeCLI(r.command,r.timeout);case"TTCInternal.fetchAppFunctions":return await this.fetchAppFunctions(e);case"TTCInternal.getFunctionDetails":return await this.getFunctionDetails(r.functionName);default:throw new Error(`Unknown function: ${t}`)}};this.token=""}saveToken(e){const t=`${l.homedir()}/ttc_token.txt`;c.default.writeFileSync(t,e)}fetchToken(){const e=`${l.homedir()}/ttc_token.txt`;this.token=this.token?this.token:c.default.existsSync(e)?c.default.readFileSync(e,"utf-8"):this.token;return this.token}async fetchAppFunctions(e){var t,r;await((t=this.ai)===null||t===void 0?void 0:t.fetchFunctions());await this.ai.server.ttcCore.setAppFunctions(e,(r=this.ai)===null||r===void 0?void 0:r.functions);return"App functions have been added to your system message"}get_internal_functions(){return[{name:"TTCInternal.saveToken",description:"Save a token for the current session",input_schema:`{ "token": "string" }`,output_schema:"any"},{name:"TTCInternal.fetchToken",description:"Fetch the current session token",input_schema:`{}`,output_schema:"any"},{name:"TTCInternal.invokeCLI",permission:true,description:"Invoke a command in the CLI, timeout is in seconds",input_schema:`{ "command": "string", "timeout": "number" }`,output_schema:"any"}]}}t.TTCInternal=TTCInternal},8238:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ttcAI=void 0;const n=r(137);const i=r(1212);const o=r(5676);const s=r(9016);class ttcAI{constructor(e,t){this.functions={};this.init=async()=>{this.internal._setttcAI(this);await this.fetchFunctions()};this.handleSocket=async e=>{this.socket=e;this.socket.on("connect_error",(e=>{console.error("Socket connection error:",e.message||e)}));this.socket.on("function_call",(async e=>{const{conversation_id:t,functions:r}=e;await this.processFunctionCall(t,r)}))};this.url=e;this.chatToken=t;this.internal=new i.TTCInternal;this.server=new o.RPCClient(ttcAI.ttc_Uri,(async()=>t),this.handleSocket.bind(this))}async fetchFunctions(){try{const e=this.internal.get_internal_functions();const t=`?sapikey=${process.env.TTC_API_SECRET||""}`;const r=`${this.url}/api-docs${t}`;let n={methods:[]};try{const e=await fetch(r,{method:"GET",headers:{Authorization:`Bearer ${await o.RPCClient.token_cb()}`,"Content-Type":"application/json"}});n=await e.json()}catch(e){n.methods=[]}const i=[...e,...n.methods];this.functions=i.reduce(((e,t)=>{e[t.name]=t;return e}),{})}catch(e){console.log("Unable to fetch functions from server, confirm the server is running and the URL is correct and ask ttc to fetch functions again.")}}async invokeFunctions(e,t){const r=t.function.startsWith("TTCInternal.");if(r){return await this.internal.invokeInternal(e,t.function,t.arguments)}else{await n.ttc_ai.emit("function_call",`- ${t.function}: (${JSON.stringify(t.arguments)})`);return await this.invokeFunction(this.url,this.internal.fetchToken(),t)}}async invokeFunctionWithPermission(e,t){const r=await new Promise((r=>{n.ttc_ai.askPermission(e,t,(e=>{r(e)}))}));return{approved:r,p_response:r?await this.invokeFunctions(e,t):{error:"The user stopped you from carrying out this operation"}}}async invokeFunction(e,t,r){try{const n=await fetch(`${e}/rpc`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({method:r.function,params:Object.values(r.arguments)})});if(!n.ok){return n.statusText}return await n.json()}catch(e){console.error("Error calling API:",e);throw e}}async assessPermissionStatus(e){var t;if(e.function==="TTCInternal.invokeCLI"){const t=(0,s.isDangerousCommand)(e.arguments.command);if(t){return true}else{return false}}return((t=this.functions[e.function])===null||t===void 0?void 0:t.permission)===true}async processFunctionCall(e,t){try{const r=[];for(const n of t){let t=null;const i=await this.assessPermissionStatus(n);if(i){const{approved:i,p_response:o}=await this.invokeFunctionWithPermission(e,n);if(!i){r.push({function:n.function,response:{error:"Permission denied"}});continue}else{t=o}}else{t=await this.invokeFunctions(e,n)}if(t)r.push({function:n.function,response:t})}if(r.length>0)await this.internal.sendFunctionResponse(e,r)}catch(e){console.log(e)}}}t.ttcAI=ttcAI;ttcAI.ttc_Uri="https://api.tentarclesai.com"},5676:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:true});t.RPCClient=void 0;const i=r(3588);const o=r(6796);const _scid=()=>{const e=new o.TokenManager;let t=e.getScid();if(!t){t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);e.setScid(t)}return t};class RPCClient{constructor(e,t,r){this.ttcCore={async chatAI(e,t){return await n.apiCallback("ttcCore.chatAI",[e,t])},async functionResponse(e,t,r){return await n.apiCallback("ttcCore.functionResponse",[e,t,r])},async fetchChatHistory(e,t,r){return await n.apiCallback("ttcCore.fetchChatHistory",[e,t,r])},async setAppFunctions(e,t){return await n.apiCallback("ttcCore.setAppFunctions",[e,t])},async createChat(e){return await n.apiCallback("ttcCore.createChat",[e])},async updateChat(e,t){return await n.apiCallback("ttcCore.updateChat",[e,t])},async fetchChats(e,t){return await n.apiCallback("ttcCore.fetchChats",[e,t])},async fetchChat(e){return await n.apiCallback("ttcCore.fetchChat",[e])},async deleteChat(e){return await n.apiCallback("ttcCore.deleteChat",[e])},async clearChatHistory(e,t){return await n.apiCallback("ttcCore.clearChatHistory",[e,t])},async fetchEmote(){return await n.apiCallback("ttcCore.fetchEmote")},async fetchOrigins(e){return await n.apiCallback("ttcCore.fetchOrigins",[e])}};this.AppOAuth={async generateAuthorizationUrl(e,t,r,i){return await n.apiCallback("AppOAuth.generateAuthorizationUrl",[e,t,r,i])},async exchangeCodeForToken(e,t,r){return await n.apiCallback("AppOAuth.exchangeCodeForToken",[e,t,r])},async refreshToken(e,t){return await n.apiCallback("AppOAuth.refreshToken",[e,t])}};this.Media={async uploadImage(e,t,r){return await n.mediaCallback("Media.uploadImage",[e,t],r)}};this.TCC={async trigger(e,t,r){return await n.apiCallback("TCC.trigger",[e,t,r])},async invoke_construct(e,t){return await n.apiCallback("TCC.invoke_construct",[e,t])},async select_context(e,t){return await n.apiCallback("TCC.select_context",[e,t])}};n.token_cb=t;n.url=e;if(r)this.connectSocket(e,r)}async connectSocket(e,t){try{const r=(0,i.io)(e,{auth:{authorization:await n.token_cb(),_scid:_scid()}});if(t)t(r)}catch(e){console.error("Error initializing socket:",e.message)}}}t.RPCClient=RPCClient;n=RPCClient;RPCClient.url="https://api.tentarclesai.com";RPCClient.apiCallback=async(e,t)=>{try{if(!n.token_cb)throw new Error("RPCClient.token_cb is not set");const r=await n.token_cb();const i=await fetch(`${n.url}/rpc`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}:${_scid()}`},body:JSON.stringify({method:e,params:t})});if(!i.ok){throw new Error(`API error: ${i.status} ${i.statusText}`)}return await i.json()}catch(e){console.error("Error calling API:",e);throw e}};RPCClient.mediaCallback=async(e,t,r)=>{try{if(!n.token_cb)throw new Error("RPCClient.token_cb is not set");const i=await n.token_cb();const o=new FormData;o.append("method",e);if(t)o.append("params",JSON.stringify(t));if(r)o.append("file",r);const s=await fetch(`${n.url}/rpc`,{method:"POST",headers:{Authorization:`Bearer ${i}:${_scid()}`},body:o});if(!s.ok){throw new Error(`Media API error: ${s.status} ${s.statusText}`)}return await s.json()}catch(e){console.error("Error calling Media API:",e);throw e}}},6814:e=>{"use strict";const t=e.exports;e.exports["default"]=t;const r="[";const n="]";const i="";const o=";";const s=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return r+(e+1)+"G"}return r+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let n="";if(e<0){n+=r+-e+"D"}else if(e>0){n+=r+e+"C"}if(t<0){n+=r+-t+"A"}else if(t>0){n+=r+t+"B"}return n};t.cursorUp=(e=1)=>r+e+"A";t.cursorDown=(e=1)=>r+e+"B";t.cursorForward=(e=1)=>r+e+"C";t.cursorBackward=(e=1)=>r+e+"D";t.cursorLeft=r+"G";t.cursorSavePosition=s?"7":r+"s";t.cursorRestorePosition=s?"8":r+"u";t.cursorGetPosition=r+"6n";t.cursorNextLine=r+"E";t.cursorPrevLine=r+"F";t.cursorHide=r+"?25l";t.cursorShow=r+"?25h";t.eraseLines=e=>{let r="";for(let n=0;n<e;n++){r+=t.eraseLine+(n<e-1?t.cursorUp():"")}if(e){r+=t.cursorLeft}return r};t.eraseEndLine=r+"K";t.eraseStartLine=r+"1K";t.eraseLine=r+"2K";t.eraseDown=r+"J";t.eraseUp=r+"1J";t.eraseScreen=r+"2J";t.scrollUp=r+"S";t.scrollDown=r+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${r}0f`:`${t.eraseScreen}${r}3J${r}H`;t.beep=i;t.link=(e,t)=>[n,"8",o,o,t,i,e,n,"8",o,o,i].join("");t.image=(e,t={})=>{let r=`${n}1337;File=inline=1`;if(t.width){r+=`;width=${t.width}`}if(t.height){r+=`;height=${t.height}`}if(t.preserveAspectRatio===false){r+=";preserveAspectRatio=0"}return r+":"+e.toString("base64")+i};t.iTerm={setCwd:(e=process.cwd())=>`${n}50;CurrentDir=${e}${i}`,annotation:(e,t={})=>{let r=`${n}1337;`;const o=typeof t.x!=="undefined";const s=typeof t.y!=="undefined";if((o||s)&&!(o&&s&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){r+=(o?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{r+=e}return r+i}}},21:e=>{"use strict";e.exports=({onlyFirst:e=false}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?undefined:"g")}},4412:(e,t,r)=>{"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const wrapAnsi256=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const wrapAnsi16m=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];const setLazyProperty=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let n;const makeDynamicStyles=(e,t,i,o)=>{if(n===undefined){n=r(4185)}const s=o?10:0;const a={};for(const[r,o]of Object.entries(n)){const n=r==="ansi16"?"ansi":r;if(r===t){a[n]=e(i,s)}else if(typeof o==="object"){a[n]=e(o[t],s)}}return a};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,n]of Object.entries(t)){for(const[r,i]of Object.entries(n)){t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},3080:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(1644));class Ascii{name(){return"ASCII"}match(e){const t=e.rawInput;for(let r=0;r<e.rawLen;r++){const n=t[r];if(n<32||n>126){return(0,i.default)(e,this,0)}}return(0,i.default)(e,this,100)}}t["default"]=Ascii},2348:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ISO_2022_CN=t.ISO_2022_KR=t.ISO_2022_JP=void 0;const i=n(r(1644));class ISO_2022{constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(e){let t,r;let n;let o=0;let s=0;let a=0;let u;const c=e.inputBytes;const l=e.inputLen;e:for(t=0;t<l;t++){if(c[t]==27){t:for(n=0;n<this.escapeSequences.length;n++){const e=this.escapeSequences[n];if(l-t<e.length)continue t;for(r=1;r<e.length;r++)if(e[r]!=c[t+r])continue t;o++;t+=e.length-1;continue e}s++}if(c[t]==14||c[t]==15)a++}if(o==0)return null;u=(100*o-100*s)/(o+s);if(o+a<5)u-=(5-(o+a))*10;return u<=0?null:(0,i.default)(e,this,u)}}class ISO_2022_JP extends ISO_2022{constructor(){super(...arguments);this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}}t.ISO_2022_JP=ISO_2022_JP;class ISO_2022_KR extends ISO_2022{constructor(){super(...arguments);this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}}t.ISO_2022_KR=ISO_2022_KR;class ISO_2022_CN extends ISO_2022{constructor(){super(...arguments);this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}}t.ISO_2022_CN=ISO_2022_CN},846:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gb_18030=t.euc_kr=t.euc_jp=t.big5=t.sjis=void 0;const i=n(r(1644));function binarySearch(e,t){const find=(e,t,r,n)=>{if(n<r)return-1;const i=Math.floor(r+n>>>1);if(t>e[i])return find(e,t,i+1,n);if(t<e[i])return find(e,t,r,i-1);return i};return find(e,t,0,e.length-1)}class IteratedChar{constructor(){this.charValue=0;this.index=0;this.nextIndex=0;this.error=false;this.done=false}reset(){this.charValue=0;this.index=-1;this.nextIndex=0;this.error=false;this.done=false}nextByte(e){if(this.nextIndex>=e.rawLen){this.done=true;return-1}const t=e.rawInput[this.nextIndex++]&255;return t}}class mbcs{constructor(){this.commonChars=[]}name(){return"mbcs"}match(e){let t=0,r=0,n=0,o=0,s=0;const a=new IteratedChar;e:{for(a.reset();this.nextChar(a,e);){o++;if(a.error){n++}else{const e=a.charValue&4294967295;if(e>255){t++;if(this.commonChars!=null){if(binarySearch(this.commonChars,e)>=0){r++}}}}if(n>=2&&n*5>=t){break e}}if(t<=10&&n==0){if(t==0&&o<10){s=0}else{s=10}break e}if(t<20*n){s=0;break e}if(this.commonChars==null){s=30+t-20*n;if(s>100){s=100}}else{const e=Math.log(t/4);const n=90/e;s=Math.floor(Math.log(r+1)*n+10);s=Math.min(s,100)}}return s==0?null:(0,i.default)(e,this,s)}nextChar(e,t){return true}}class sjis extends mbcs{constructor(){super(...arguments);this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(e,t){e.index=e.nextIndex;e.error=false;const r=e.charValue=e.nextByte(t);if(r<0)return false;if(r<=127||r>160&&r<=223)return true;const n=e.nextByte(t);if(n<0)return false;e.charValue=r<<8|n;if(!(n>=64&&n<=127||n>=128&&n<=255)){e.error=true}return true}}t.sjis=sjis;class big5 extends mbcs{constructor(){super(...arguments);this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex;e.error=false;const r=e.charValue=e.nextByte(t);if(r<0)return false;if(r<=127||r==255)return true;const n=e.nextByte(t);if(n<0)return false;e.charValue=e.charValue<<8|n;if(n<64||n==127||n==255)e.error=true;return true}}t.big5=big5;function eucNextChar(e,t){e.index=e.nextIndex;e.error=false;let r=0;let n=0;let i=0;e:{r=e.charValue=e.nextByte(t);if(r<0){e.done=true;break e}if(r<=141){break e}n=e.nextByte(t);e.charValue=e.charValue<<8|n;if(r>=161&&r<=254){if(n<161){e.error=true}break e}if(r==142){if(n<161){e.error=true}break e}if(r==143){i=e.nextByte(t);e.charValue=e.charValue<<8|i;if(i<161){e.error=true}}}return e.done==false}class euc_jp extends mbcs{constructor(){super(...arguments);this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689];this.nextChar=eucNextChar}name(){return"EUC-JP"}language(){return"ja"}}t.euc_jp=euc_jp;class euc_kr extends mbcs{constructor(){super(...arguments);this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373];this.nextChar=eucNextChar}name(){return"EUC-KR"}language(){return"ko"}}t.euc_kr=euc_kr;class gb_18030 extends mbcs{constructor(){super(...arguments);this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex;e.error=false;let r=0;let n=0;let i=0;let o=0;e:{r=e.charValue=e.nextByte(t);if(r<0){e.done=true;break e}if(r<=128){break e}n=e.nextByte(t);e.charValue=e.charValue<<8|n;if(r>=129&&r<=254){if(n>=64&&n<=126||n>=80&&n<=254){break e}if(n>=48&&n<=57){i=e.nextByte(t);if(i>=129&&i<=254){o=e.nextByte(t);if(o>=48&&o<=57){e.charValue=e.charValue<<16|i<<8|o;break e}}}e.error=true;break e}}return e.done==false}}t.gb_18030=gb_18030},4172:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.KOI8_R=t.windows_1256=t.windows_1251=t.ISO_8859_9=t.ISO_8859_8=t.ISO_8859_7=t.ISO_8859_6=t.ISO_8859_5=t.ISO_8859_2=t.ISO_8859_1=void 0;const i=n(r(1644));const o=16777215;class NGramParser{constructor(e,t){this.byteIndex=0;this.ngram=0;this.ngramCount=0;this.hitCount=0;this.spaceChar=32;this.ngramList=e;this.byteMap=t}search(e,t){let r=0;if(e[r+32]<=t)r+=32;if(e[r+16]<=t)r+=16;if(e[r+8]<=t)r+=8;if(e[r+4]<=t)r+=4;if(e[r+2]<=t)r+=2;if(e[r+1]<=t)r+=1;if(e[r]>t)r-=1;if(r<0||e[r]!=t)return-1;return r}lookup(e){this.ngramCount+=1;if(this.search(this.ngramList,e)>=0){this.hitCount+=1}}addByte(e){this.ngram=(this.ngram<<8)+(e&255)&o;this.lookup(this.ngram)}nextByte(e){if(this.byteIndex>=e.inputLen)return-1;return e.inputBytes[this.byteIndex++]&255}parse(e,t){let r,n=false;this.spaceChar=t;while((r=this.nextByte(e))>=0){const e=this.byteMap[r];if(e!=0){if(!(e==this.spaceChar&&n)){this.addByte(e)}n=e==this.spaceChar}}this.addByte(this.spaceChar);const i=this.hitCount/this.ngramCount;if(i>.33)return 98;return Math.floor(i*300)}}class NGramsPlusLang{constructor(e,t){this.fLang=e;this.fNGrams=t}}const isFlatNgrams=e=>Array.isArray(e)&&isFinite(e[0]);class sbcs{constructor(){this.spaceChar=32;this.nGramLang=undefined}ngrams(){return[]}byteMap(){return[]}name(e){return"sbcs"}language(){return this.nGramLang}match(e){this.nGramLang=undefined;const t=this.ngrams();if(isFlatNgrams(t)){const r=new NGramParser(t,this.byteMap());const n=r.parse(e,this.spaceChar);return n<=0?null:(0,i.default)(e,this,n)}let r=-1;for(let n=t.length-1;n>=0;n--){const i=t[n];const o=new NGramParser(i.fNGrams,this.byteMap());const s=o.parse(e,this.spaceChar);if(s>r){r=s;this.nGramLang=i.fLang}}return r<=0?null:(0,i.default)(e,this,r)}}class ISO_8859_1 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new NGramsPlusLang("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new NGramsPlusLang("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new NGramsPlusLang("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new NGramsPlusLang("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new NGramsPlusLang("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new NGramsPlusLang("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new NGramsPlusLang("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new NGramsPlusLang("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new NGramsPlusLang("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new NGramsPlusLang("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(e){return e&&e.c1Bytes?"windows-1252":"ISO-8859-1"}}t.ISO_8859_1=ISO_8859_1;class ISO_8859_2 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new NGramsPlusLang("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new NGramsPlusLang("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new NGramsPlusLang("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new NGramsPlusLang("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(e){return e&&e.c1Bytes?"windows-1250":"ISO-8859-2"}}t.ISO_8859_2=ISO_8859_2;class ISO_8859_5 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}}t.ISO_8859_5=ISO_8859_5;class ISO_8859_6 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}}t.ISO_8859_6=ISO_8859_6;class ISO_8859_7 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(e){return e&&e.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}}t.ISO_8859_7=ISO_8859_7;class ISO_8859_8 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new NGramsPlusLang("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new NGramsPlusLang("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(e){return e&&e.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}}t.ISO_8859_8=ISO_8859_8;class ISO_8859_9 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(e){return e&&e.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}}t.ISO_8859_9=ISO_8859_9;class windows_1251 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}}t.windows_1251=windows_1251;class windows_1256 extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}}t.windows_1256=windows_1256;class KOI8_R extends sbcs{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}}t.KOI8_R=KOI8_R},6520:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.UTF_32LE=t.UTF_32BE=t.UTF_16LE=t.UTF_16BE=void 0;const i=n(r(1644));class UTF_16BE{name(){return"UTF-16BE"}match(e){const t=e.rawInput;if(t.length>=2&&(t[0]&255)==254&&(t[1]&255)==255){return(0,i.default)(e,this,100)}return null}}t.UTF_16BE=UTF_16BE;class UTF_16LE{name(){return"UTF-16LE"}match(e){const t=e.rawInput;if(t.length>=2&&(t[0]&255)==255&&(t[1]&255)==254){if(t.length>=4&&t[2]==0&&t[3]==0){return null}return(0,i.default)(e,this,100)}return null}}t.UTF_16LE=UTF_16LE;class UTF_32{name(){return"UTF-32"}getChar(e,t){return-1}match(e){let t=0,r=0,n=false,o=0;const s=e.rawLen/4*4;const a=e.rawInput;if(s==0){return null}if(this.getChar(a,0)==65279){n=true}for(let e=0;e<s;e+=4){const n=this.getChar(a,e);if(n<0||n>=1114111||n>=55296&&n<=57343){r+=1}else{t+=1}}if(n&&r==0){o=100}else if(n&&t>r*10){o=80}else if(t>3&&r==0){o=100}else if(t>0&&r==0){o=80}else if(t>r*10){o=25}return o==0?null:(0,i.default)(e,this,o)}}class UTF_32BE extends UTF_32{name(){return"UTF-32BE"}getChar(e,t){return(e[t+0]&255)<<24|(e[t+1]&255)<<16|(e[t+2]&255)<<8|e[t+3]&255}}t.UTF_32BE=UTF_32BE;class UTF_32LE extends UTF_32{name(){return"UTF-32LE"}getChar(e,t){return(e[t+3]&255)<<24|(e[t+2]&255)<<16|(e[t+1]&255)<<8|e[t+0]&255}}t.UTF_32LE=UTF_32LE},764:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(1644));class Utf8{name(){return"UTF-8"}match(e){let t=false,r=0,n=0,o=0,s;const a=e.rawInput;if(e.rawLen>=3&&(a[0]&255)==239&&(a[1]&255)==187&&(a[2]&255)==191){t=true}for(let t=0;t<e.rawLen;t++){const i=a[t];if((i&128)==0)continue;if((i&224)==192){o=1}else if((i&240)==224){o=2}else if((i&248)==240){o=3}else{n++;if(n>5)break;o=0}for(;;){t++;if(t>=e.rawLen)break;if((a[t]&192)!=128){n++;break}if(--o==0){r++;break}}}s=0;if(t&&n==0)s=100;else if(t&&r>n*10)s=80;else if(r>3&&n==0)s=100;else if(r>0&&n==0)s=80;else if(r==0&&n==0)s=10;else if(r>n*10)s=25;else return null;return(0,i.default)(e,this,s)}}t["default"]=Utf8},7401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});let n;t["default"]=()=>{if(true&&typeof e.exports==="object"){n=n?n:r(9896);return n}throw new Error("File system is not available")}},629:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),o=0;o<r.length;o++)if(r[o]!=="default")n(t,e,r[o]);i(t,e);return t}}();var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.detectFileSync=t.detectFile=t.analyse=t.detect=void 0;const a=s(r(7401));const u=s(r(3080));const c=s(r(764));const l=o(r(6520));const f=o(r(846));const d=o(r(4172));const h=o(r(2348));const p=r(1680);const b=[new c.default,new l.UTF_16BE,new l.UTF_16LE,new l.UTF_32BE,new l.UTF_32LE,new f.sjis,new f.big5,new f.euc_jp,new f.euc_kr,new f.gb_18030,new h.ISO_2022_JP,new h.ISO_2022_KR,new h.ISO_2022_CN,new d.ISO_8859_1,new d.ISO_8859_2,new d.ISO_8859_5,new d.ISO_8859_6,new d.ISO_8859_7,new d.ISO_8859_8,new d.ISO_8859_9,new d.windows_1251,new d.windows_1256,new d.KOI8_R,new u.default];const detect=e=>{const r=(0,t.analyse)(e);return r.length>0?r[0].name:null};t.detect=detect;const analyse=e=>{if(!(0,p.isByteArray)(e)){throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array")}const t=[];for(let e=0;e<256;e++)t[e]=0;for(let r=e.length-1;r>=0;r--)t[e[r]&255]++;let r=false;for(let e=128;e<=159;e+=1){if(t[e]!==0){r=true;break}}const n={byteStats:t,c1Bytes:r,rawInput:e,rawLen:e.length,inputBytes:e,inputLen:e.length};const i=b.map((e=>e.match(n))).filter((e=>!!e)).sort(((e,t)=>t.confidence-e.confidence));return i};t.analyse=analyse;const detectFile=(e,r={})=>new Promise(((n,i)=>{let o;const s=(0,a.default)();const handler=(e,r)=>{if(o){s.closeSync(o)}if(e){i(e)}else{n((0,t.detect)(r))}};if(r&&r.sampleSize){o=s.openSync(e,"r");const t=Buffer.allocUnsafe(r.sampleSize);s.read(o,t,0,r.sampleSize,r.offset,(e=>{handler(e,t)}));return}s.readFile(e,handler)}));t.detectFile=detectFile;const detectFileSync=(e,r={})=>{const n=(0,a.default)();if(r&&r.sampleSize){const i=n.openSync(e,"r");const o=Buffer.allocUnsafe(r.sampleSize);n.readSync(i,o,0,r.sampleSize,r.offset);n.closeSync(i);return(0,t.detect)(o)}return(0,t.detect)(n.readFileSync(e))};t.detectFileSync=detectFileSync;t["default"]={analyse:t.analyse,detect:t.detect,detectFileSync:t.detectFileSync,detectFile:t.detectFile}},1644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=(e,t,r)=>({confidence:r,name:t.name(e),lang:t.language?t.language():undefined})},1680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isByteArray=void 0;const isByteArray=e=>{if(e==null||typeof e!="object")return false;return isFinite(e.length)&&e.length>=0};t.isByteArray=isByteArray},8695:(e,t,r)=>{"use strict";e.exports=cliWidth;function normalizeOpts(e){const t={defaultWidth:0,output:process.stdout,tty:r(2018)};if(!e){return t}Object.keys(t).forEach((function(r){if(!e[r]){e[r]=t[r]}}));return e}function cliWidth(e){const t=normalizeOpts(e);if(t.output.getWindowSize){return t.output.getWindowSize()[0]||t.defaultWidth}if(t.tty.getWindowSize){return t.tty.getWindowSize()[1]||t.defaultWidth}if(t.output.columns){return t.output.columns}if(process.env.CLI_WIDTH){const e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&e!==0){return e}}return t.defaultWidth}},6872:(e,t,r)=>{const n=r(4953);const i={};for(const e of Object.keys(n)){i[n[e]]=e}const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:r}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:r})}o.rgb.hsl=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.min(t,r,n);const o=Math.max(t,r,n);const s=o-i;let a;let u;if(o===i){a=0}else if(t===o){a=(r-n)/s}else if(r===o){a=2+(n-t)/s}else if(n===o){a=4+(t-r)/s}a=Math.min(a*60,360);if(a<0){a+=360}const c=(i+o)/2;if(o===i){u=0}else if(c<=.5){u=s/(o+i)}else{u=s/(2-o-i)}return[a,u*100,c*100]};o.rgb.hsv=function(e){let t;let r;let n;let i;let o;const s=e[0]/255;const a=e[1]/255;const u=e[2]/255;const c=Math.max(s,a,u);const l=c-Math.min(s,a,u);const diffc=function(e){return(c-e)/6/l+1/2};if(l===0){i=0;o=0}else{o=l/c;t=diffc(s);r=diffc(a);n=diffc(u);if(s===c){i=n-r}else if(a===c){i=1/3+t-n}else if(u===c){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,o*100,c*100]};o.rgb.hwb=function(e){const t=e[0];const r=e[1];let n=e[2];const i=o.rgb.hsl(e)[0];const s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.min(1-t,1-r,1-n);const o=(1-t-i)/(1-i)||0;const s=(1-r-i)/(1-i)||0;const a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=i[e];if(t){return t}let r=Infinity;let o;for(const t of Object.keys(n)){const i=n[t];const s=comparativeDistance(e,i);if(s<r){r=s;o=t}}return o};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){let t=e[0]/255;let r=e[1]/255;let n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805;const o=t*.2126+r*.7152+n*.0722;const s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let r=t[0];let n=t[1];let i=t[2];r/=95.047;n/=100;i/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;const s=116*n-16;const a=500*(r-n);const u=200*(n-i);return[s,a,u]};o.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;let i;let o;let s;if(r===0){s=n*255;return[s,s,s]}if(n<.5){i=n*(1+r)}else{i=n+r-n*r}const a=2*n-i;const u=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){s=a+(i-a)*6*o}else if(2*o<1){s=i}else if(3*o<2){s=a+(i-a)*(2/3-o)*6}else{s=a}u[e]=s*255}return u};o.hsl.hsv=function(e){const t=e[0];let r=e[1]/100;let n=e[2]/100;let i=r;const o=Math.max(n,.01);n*=2;r*=n<=1?n:2-n;i*=o<=1?o:2-o;const s=(n+r)/2;const a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};o.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6;const o=t-Math.floor(t);const s=255*n*(1-r);const a=255*n*(1-r*o);const u=255*n*(1-r*(1-o));n*=255;switch(i){case 0:return[n,u,s];case 1:return[a,n,s];case 2:return[s,n,u];case 3:return[s,a,n];case 4:return[u,s,n];case 5:return[n,s,a]}};o.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const n=e[2]/100;const i=Math.max(n,.01);let o;let s;s=(2-r)*n;const a=(2-r)*i;o=r*i;o/=a<=1?a:2-a;o=o||0;s/=2;return[t,o*100,s*100]};o.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100;let n=e[2]/100;const i=r+n;let o;if(i>1){r/=i;n/=i}const s=Math.floor(6*t);const a=1-n;o=6*t-s;if((s&1)!==0){o=1-o}const u=r+o*(a-r);let c;let l;let f;switch(s){default:case 6:case 0:c=a;l=u;f=r;break;case 1:c=u;l=a;f=r;break;case 2:c=r;l=a;f=u;break;case 3:c=r;l=u;f=a;break;case 4:c=u;l=r;f=a;break;case 5:c=a;l=r;f=u;break}return[c*255,l*255,f*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;const i=e[3]/100;const o=1-Math.min(1,t*(1-i)+i);const s=1-Math.min(1,r*(1-i)+i);const a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};o.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;let i;let o;let s;i=t*3.2406+r*-1.5372+n*-.4986;o=t*-.9689+r*1.8758+n*.0415;s=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);return[i*255,o*255,s*255]};o.xyz.lab=function(e){let t=e[0];let r=e[1];let n=e[2];t/=95.047;r/=100;n/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16;const o=500*(t-r);const s=200*(r-n);return[i,o,s]};o.lab.xyz=function(e){const t=e[0];const r=e[1];const n=e[2];let i;let o;let s;o=(t+16)/116;i=r/500+o;s=o-n/200;const a=o**3;const u=i**3;const c=s**3;o=a>.008856?a:(o-16/116)/7.787;i=u>.008856?u:(i-16/116)/7.787;s=c>.008856?c:(s-16/116)/7.787;i*=95.047;o*=100;s*=108.883;return[i,o,s]};o.lab.lch=function(e){const t=e[0];const r=e[1];const n=e[2];let i;const o=Math.atan2(n,r);i=o*360/2/Math.PI;if(i<0){i+=360}const s=Math.sqrt(r*r+n*n);return[t,s,i]};o.lch.lab=function(e){const t=e[0];const r=e[1];const n=e[2];const i=n/360*2*Math.PI;const o=r*Math.cos(i);const s=r*Math.sin(i);return[t,o,s]};o.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let s=t===null?o.rgb.hsv(e)[2]:t;s=Math.round(s/50);if(s===0){return 30}let a=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));if(s===2){a+=60}return a};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const r=e[1];const n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const r=(~~(e>50)+1)*.5;const n=(t&1)*r*255;const i=(t>>1&1)*r*255;const o=(t>>2&1)*r*255;return[n,i,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const r=Math.floor(e/36)/5*255;const n=Math.floor((t=e%36)/6)/5*255;const i=t%6/5*255;return[r,n,i]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let r=t[0];if(t[0].length===3){r=r.split("").map((e=>e+e)).join("")}const n=parseInt(r,16);const i=n>>16&255;const o=n>>8&255;const s=n&255;return[i,o,s]};o.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const i=Math.max(Math.max(t,r),n);const o=Math.min(Math.min(t,r),n);const s=i-o;let a;let u;if(s<1){a=o/(1-s)}else{a=0}if(s<=0){u=0}else if(i===t){u=(r-n)/s%6}else if(i===r){u=2+(n-t)/s}else{u=4+(t-r)/s}u/=6;u%=1;return[u*360,s*100,a*100]};o.hsl.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=r<.5?2*t*r:2*t*(1-r);let i=0;if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=t*r;let i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}const i=[0,0,0];const o=t%1*6;const s=o%1;const a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1;i[1]=s;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=s;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=s;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}u=(1-r)*n;return[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);let i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const n=r*(1-t)+.5*t;let i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=1-r;const i=n-t;let o=0;if(i<1){o=(n-i)/(1-i)}return[e[0],i*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const r=(t<<16)+(t<<8)+t;const n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},4185:(e,t,r)=>{const n=r(6872);const i=r(4200);const o={};const s=Object.keys(n);function wrapRaw(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}const n=e(t);if(typeof n==="object"){for(let e=n.length,t=0;t<e;t++){n[t]=Math.round(n[t])}}return n};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}s.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:n[e].channels});Object.defineProperty(o[e],"labels",{value:n[e].labels});const t=i(e);const r=Object.keys(t);r.forEach((r=>{const n=t[r];o[e][r]=wrapRounded(n);o[e][r].raw=wrapRaw(n)}))}));e.exports=o},4200:(e,t,r)=>{const n=r(6872);function buildGraph(){const e={};const t=Object.keys(n);for(let r=t.length,n=0;n<r;n++){e[t[n]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const r=[e];t[e].distance=0;while(r.length){const e=r.pop();const i=Object.keys(n[e]);for(let n=i.length,o=0;o<n;o++){const n=i[o];const s=t[n];if(s.distance===-1){s.distance=t[e].distance+1;s.parent=e;r.unshift(n)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){const r=[t[e].parent,e];let i=n[t[e].parent][e];let o=t[e].parent;while(t[o].parent){r.unshift(t[o].parent);i=link(n[t[o].parent][o],i);o=t[o].parent}i.conversion=r;return i}e.exports=function(e){const t=deriveBFS(e);const r={};const n=Object.keys(t);for(let e=n.length,i=0;i<e;i++){const e=n[i];const o=t[e];if(o.parent===null){continue}r[e]=wrapConversion(e,t)}return r}},4953:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6110:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(897)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let n;let i;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const i=n-(t||n);r.diff=i;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}o++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[o];t=i.call(r,n);e.splice(o,1);o--}return t}));createDebug.formatArgs.call(r,e);const s=r.log||createDebug.log;s.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(6110)}else{e.exports=r(5108)}},5108:(e,t,r)=>{const n=r(2018);const i=r(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const o=` ${i};1m${r} [0m`;t[0]=o+t[0].split("\n").join("\n"+o);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(897)(t);const{formatters:o}=e.exports;o.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};o.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},8889:(e,t,r)=>{const n=r(9896);const i=r(6928);const o=r(857);const s=r(6982);const a=r(56);const u=a.version;const c=["š encrypt with Dotenvx: https://dotenvx.com","š prevent committing .env to code: https://dotenvx.com/precommit","š prevent building .env in docker: https://dotenvx.com/prebuild","š” add observability to secrets: https://dotenvx.com/ops","š„ sync secrets across teammates & machines: https://dotenvx.com/ops","šļø backup and recover secrets: https://dotenvx.com/ops","ā
audit secrets and track compliance: https://dotenvx.com/ops","š add secrets lifecycle management: https://dotenvx.com/ops","š add access controls to secrets: https://dotenvx.com/ops","š ļø run anywhere with `dotenvx run -- yourcommand`","āļø specify custom .env file path with { path: '/custom/path/.env' }","āļø enable debug logging with { debug: true }","āļø override existing env vars with { override: true }","āļø suppress all logs with { quiet: true }","āļø write to custom object with { processEnv: myObject }","āļø load multiple .env files with { path: ['.env.local', '.env'] }"];function _getRandomTip(){return c[Math.floor(Math.random()*c.length)]}function parseBoolean(e){if(typeof e==="string"){return!["false","0","no","off",""].includes(e.toLowerCase())}return Boolean(e)}function supportsAnsi(){return process.stdout.isTTY}function dim(e){return supportsAnsi()?`[2m${e}[0m`:e}const l=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function parse(e){const t={};let r=e.toString();r=r.replace(/\r\n?/gm,"\n");let n;while((n=l.exec(r))!=null){const e=n[1];let r=n[2]||"";r=r.trim();const i=r[0];r=r.replace(/^(['"`])([\s\S]*)\1$/gm,"$2");if(i==='"'){r=r.replace(/\\n/g,"\n");r=r.replace(/\\r/g,"\r")}t[e]=r}return t}function _parseVault(e){e=e||{};const t=_vaultPath(e);e.path=t;const r=f.configDotenv(e);if(!r.parsed){const e=new Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);e.code="MISSING_DATA";throw e}const n=_dotenvKey(e).split(",");const i=n.length;let o;for(let e=0;e<i;e++){try{const t=n[e].trim();const i=_instructions(r,t);o=f.decrypt(i.ciphertext,i.key);break}catch(t){if(e+1>=i){throw t}}}return f.parse(o)}function _warn(e){console.error(`[dotenv@${u}][WARN] ${e}`)}function _debug(e){console.log(`[dotenv@${u}][DEBUG] ${e}`)}function _log(e){console.log(`[dotenv@${u}] ${e}`)}function _dotenvKey(e){if(e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0){return e.DOTENV_KEY}if(process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0){return process.env.DOTENV_KEY}return""}function _instructions(e,t){let r;try{r=new URL(t)}catch(e){if(e.code==="ERR_INVALID_URL"){const e=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");e.code="INVALID_DOTENV_KEY";throw e}throw e}const n=r.password;if(!n){const e=new Error("INVALID_DOTENV_KEY: Missing key part");e.code="INVALID_DOTENV_KEY";throw e}const i=r.searchParams.get("environment");if(!i){const e=new Error("INVALID_DOTENV_KEY: Missing environment part");e.code="INVALID_DOTENV_KEY";throw e}const o=`DOTENV_VAULT_${i.toUpperCase()}`;const s=e.parsed[o];if(!s){const e=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);e.code="NOT_FOUND_DOTENV_ENVIRONMENT";throw e}return{ciphertext:s,key:n}}function _vaultPath(e){let t=null;if(e&&e.path&&e.path.length>0){if(Array.isArray(e.path)){for(const r of e.path){if(n.existsSync(r)){t=r.endsWith(".vault")?r:`${r}.vault`}}}else{t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`}}else{t=i.resolve(process.cwd(),".env.vault")}if(n.existsSync(t)){return t}return null}function _resolveHome(e){return e[0]==="~"?i.join(o.homedir(),e.slice(1)):e}function _configVault(e){const t=parseBoolean(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug);const r=parseBoolean(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);if(t||!r){_log("Loading env from encrypted .env.vault")}const n=f._parseVault(e);let i=process.env;if(e&&e.processEnv!=null){i=e.processEnv}f.populate(i,n,e);return{parsed:n}}function configDotenv(e){const t=i.resolve(process.cwd(),".env");let r="utf8";let o=process.env;if(e&&e.processEnv!=null){o=e.processEnv}let s=parseBoolean(o.DOTENV_CONFIG_DEBUG||e&&e.debug);let a=parseBoolean(o.DOTENV_CONFIG_QUIET||e&&e.quiet);if(e&&e.encoding){r=e.encoding}else{if(s){_debug("No encoding is specified. UTF-8 is used by default")}}let u=[t];if(e&&e.path){if(!Array.isArray(e.path)){u=[_resolveHome(e.path)]}else{u=[];for(const t of e.path){u.push(_resolveHome(t))}}}let c;const l={};for(const t of u){try{const i=f.parse(n.readFileSync(t,{encoding:r}));f.populate(l,i,e)}catch(e){if(s){_debug(`Failed to load ${t} ${e.message}`)}c=e}}const d=f.populate(o,l,e);s=parseBoolean(o.DOTENV_CONFIG_DEBUG||s);a=parseBoolean(o.DOTENV_CONFIG_QUIET||a);if(s||!a){const e=Object.keys(d).length;const t=[];for(const e of u){try{const r=i.relative(process.cwd(),e);t.push(r)}catch(t){if(s){_debug(`Failed to load ${e} ${t.message}`)}c=t}}_log(`injecting env (${e}) from ${t.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`)}if(c){return{parsed:l,error:c}}else{return{parsed:l}}}function config(e){if(_dotenvKey(e).length===0){return f.configDotenv(e)}const t=_vaultPath(e);if(!t){_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`);return f.configDotenv(e)}return f._configVault(e)}function decrypt(e,t){const r=Buffer.from(t.slice(-64),"hex");let n=Buffer.from(e,"base64");const i=n.subarray(0,12);const o=n.subarray(-16);n=n.subarray(12,-16);try{const e=s.createDecipheriv("aes-256-gcm",r,i);e.setAuthTag(o);return`${e.update(n)}${e.final()}`}catch(e){const t=e instanceof RangeError;const r=e.message==="Invalid key length";const n=e.message==="Unsupported state or unable to authenticate data";if(t||r){const e=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");e.code="INVALID_DOTENV_KEY";throw e}else if(n){const e=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");e.code="DECRYPTION_FAILED";throw e}else{throw e}}}function populate(e,t,r={}){const n=Boolean(r&&r.debug);const i=Boolean(r&&r.override);const o={};if(typeof t!=="object"){const e=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");e.code="OBJECT_REQUIRED";throw e}for(const r of Object.keys(t)){if(Object.prototype.hasOwnProperty.call(e,r)){if(i===true){e[r]=t[r];o[r]=t[r]}if(n){if(i===true){_debug(`"${r}" is already defined and WAS overwritten`)}else{_debug(`"${r}" is already defined and was NOT overwritten`)}}}else{e[r]=t[r];o[r]=t[r]}}return o}const f={configDotenv:configDotenv,_configVault:_configVault,_parseVault:_parseVault,config:config,decrypt:decrypt,parse:parse,populate:populate};e.exports.configDotenv=f.configDotenv;e.exports._configVault=f._configVault;e.exports._parseVault=f._parseVault;e.exports.config=f.config;e.exports.decrypt=f.decrypt;e.exports.parse=f.parse;e.exports.populate=f.populate;e.exports=f},872:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},3813:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}},7978:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t._dbcs=DBCSCodec;var i=-1,o=-2,s=-10,a=-1e3,u=new Array(256),c=-1;for(var l=0;l<256;l++)u[l]=i;function DBCSCodec(e,t){this.encodingName=e.encodingName;if(!e)throw new Error("DBCS codec is called without the data.");if(!e.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=e.table();this.decodeTables=[];this.decodeTables[0]=u.slice(0);this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof e.gb18030==="function"){this.gb18030=e.gb18030();var s=this.decodeTables.length;this.decodeTables.push(u.slice(0));var c=this.decodeTables.length;this.decodeTables.push(u.slice(0));var l=this.decodeTables[0];for(var n=129;n<=254;n++){var f=this.decodeTables[a-l[n]];for(var d=48;d<=57;d++){if(f[d]===i){f[d]=a-s}else if(f[d]>a){throw new Error("gb18030 decode tables conflict at byte 2")}var h=this.decodeTables[a-f[d]];for(var p=129;p<=254;p++){if(h[p]===i){h[p]=a-c}else if(h[p]===a-c){continue}else if(h[p]>a){throw new Error("gb18030 decode tables conflict at byte 3")}var b=this.decodeTables[a-h[p]];for(var m=48;m<=57;m++){if(b[m]===i)b[m]=o}}}}}this.defaultCharUnicode=t.defaultCharUnicode;this.encodeTable=[];this.encodeTableSeq=[];var v={};if(e.encodeSkipVals)for(var n=0;n<e.encodeSkipVals.length;n++){var g=e.encodeSkipVals[n];if(typeof g==="number")v[g]=true;else for(var d=g.from;d<=g.to;d++)v[d]=true}this._fillEncodeTable(0,0,v);if(e.encodeAdd){for(var y in e.encodeAdd)if(Object.prototype.hasOwnProperty.call(e.encodeAdd,y))this._setEncodeChar(y.charCodeAt(0),e.encodeAdd[y])}this.defCharSB=this.encodeTable[0][t.defaultCharSingleByte.charCodeAt(0)];if(this.defCharSB===i)this.defCharSB=this.encodeTable[0]["?"];if(this.defCharSB===i)this.defCharSB="?".charCodeAt(0)}DBCSCodec.prototype.encoder=DBCSEncoder;DBCSCodec.prototype.decoder=DBCSDecoder;DBCSCodec.prototype._getDecodeTrieNode=function(e){var t=[];for(;e>0;e>>>=8)t.push(e&255);if(t.length==0)t.push(0);var r=this.decodeTables[0];for(var n=t.length-1;n>0;n--){var o=r[t[n]];if(o==i){r[t[n]]=a-this.decodeTables.length;this.decodeTables.push(r=u.slice(0))}else if(o<=a){r=this.decodeTables[a-o]}else throw new Error("Overwrite byte in "+this.encodingName+", addr: "+e.toString(16))}return r};DBCSCodec.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16);var r=this._getDecodeTrieNode(t);t=t&255;for(var n=1;n<e.length;n++){var i=e[n];if(typeof i==="string"){for(var o=0;o<i.length;){var a=i.charCodeAt(o++);if(55296<=a&&a<56320){var u=i.charCodeAt(o++);if(56320<=u&&u<57344)r[t++]=65536+(a-55296)*1024+(u-56320);else throw new Error("Incorrect surrogate pair in "+this.encodingName+" at chunk "+e[0])}else if(4080<a&&a<=4095){var c=4095-a+2;var l=[];for(var f=0;f<c;f++)l.push(i.charCodeAt(o++));r[t++]=s-this.decodeTableSeq.length;this.decodeTableSeq.push(l)}else r[t++]=a}}else if(typeof i==="number"){var d=r[t-1]+1;for(var o=0;o<i;o++)r[t++]=d++}else throw new Error("Incorrect type '"+typeof i+"' given in "+this.encodingName+" at chunk "+e[0])}if(t>255)throw new Error("Incorrect chunk in "+this.encodingName+" at addr "+e[0]+": too long"+t)};DBCSCodec.prototype._getEncodeBucket=function(e){var t=e>>8;if(this.encodeTable[t]===undefined)this.encodeTable[t]=u.slice(0);return this.encodeTable[t]};DBCSCodec.prototype._setEncodeChar=function(e,t){var r=this._getEncodeBucket(e);var n=e&255;if(r[n]<=s)this.encodeTableSeq[s-r[n]][c]=t;else if(r[n]==i)r[n]=t};DBCSCodec.prototype._setEncodeSequence=function(e,t){var r=e[0];var n=this._getEncodeBucket(r);var o=r&255;var a;if(n[o]<=s){a=this.encodeTableSeq[s-n[o]]}else{a={};if(n[o]!==i)a[c]=n[o];n[o]=s-this.encodeTableSeq.length;this.encodeTableSeq.push(a)}for(var u=1;u<e.length-1;u++){var l=a[r];if(typeof l==="object")a=l;else{a=a[r]={};if(l!==undefined)a[c]=l}}r=e[e.length-1];a[r]=t};DBCSCodec.prototype._fillEncodeTable=function(e,t,r){var n=this.decodeTables[e];var i=false;var o={};for(var u=0;u<256;u++){var c=n[u];var l=t+u;if(r[l])continue;if(c>=0){this._setEncodeChar(c,l);i=true}else if(c<=a){var f=a-c;if(!o[f]){var d=l<<8>>>0;if(this._fillEncodeTable(f,d,r))i=true;else o[f]=true}}else if(c<=s){this._setEncodeSequence(this.decodeTableSeq[s-c],l);i=true}}return i};function DBCSEncoder(e,t){this.leadSurrogate=-1;this.seqObj=undefined;this.encodeTable=t.encodeTable;this.encodeTableSeq=t.encodeTableSeq;this.defaultCharSingleByte=t.defCharSB;this.gb18030=t.gb18030}DBCSEncoder.prototype.write=function(e){var t=n.alloc(e.length*(this.gb18030?4:3)),r=this.leadSurrogate,o=this.seqObj,a=-1,u=0,l=0;while(true){if(a===-1){if(u==e.length)break;var f=e.charCodeAt(u++)}else{var f=a;a=-1}if(55296<=f&&f<57344){if(f<56320){if(r===-1){r=f;continue}else{r=f;f=i}}else{if(r!==-1){f=65536+(r-55296)*1024+(f-56320);r=-1}else{f=i}}}else if(r!==-1){a=f;f=i;r=-1}var d=i;if(o!==undefined&&f!=i){var h=o[f];if(typeof h==="object"){o=h;continue}else if(typeof h=="number"){d=h}else if(h==undefined){h=o[c];if(h!==undefined){d=h;a=f}else{}}o=undefined}else if(f>=0){var p=this.encodeTable[f>>8];if(p!==undefined)d=p[f&255];if(d<=s){o=this.encodeTableSeq[s-d];continue}if(d==i&&this.gb18030){var b=findIdx(this.gb18030.uChars,f);if(b!=-1){var d=this.gb18030.gbChars[b]+(f-this.gb18030.uChars[b]);t[l++]=129+Math.floor(d/12600);d=d%12600;t[l++]=48+Math.floor(d/1260);d=d%1260;t[l++]=129+Math.floor(d/10);d=d%10;t[l++]=48+d;continue}}}if(d===i)d=this.defaultCharSingleByte;if(d<256){t[l++]=d}else if(d<65536){t[l++]=d>>8;t[l++]=d&255}else if(d<16777216){t[l++]=d>>16;t[l++]=d>>8&255;t[l++]=d&255}else{t[l++]=d>>>24;t[l++]=d>>>16&255;t[l++]=d>>>8&255;t[l++]=d&255}}this.seqObj=o;this.leadSurrogate=r;return t.slice(0,l)};DBCSEncoder.prototype.end=function(){if(this.leadSurrogate===-1&&this.seqObj===undefined)return;var e=n.alloc(10),t=0;if(this.seqObj){var r=this.seqObj[c];if(r!==undefined){if(r<256){e[t++]=r}else{e[t++]=r>>8;e[t++]=r&255}}else{}this.seqObj=undefined}if(this.leadSurrogate!==-1){e[t++]=this.defaultCharSingleByte;this.leadSurrogate=-1}return e.slice(0,t)};DBCSEncoder.prototype.findIdx=findIdx;function DBCSDecoder(e,t){this.nodeIdx=0;this.prevBytes=[];this.decodeTables=t.decodeTables;this.decodeTableSeq=t.decodeTableSeq;this.defaultCharUnicode=t.defaultCharUnicode;this.gb18030=t.gb18030}DBCSDecoder.prototype.write=function(e){var t=n.alloc(e.length*2),r=this.nodeIdx,u=this.prevBytes,c=this.prevBytes.length,l=-this.prevBytes.length,f;for(var d=0,h=0;d<e.length;d++){var p=d>=0?e[d]:u[d+c];var f=this.decodeTables[r][p];if(f>=0){}else if(f===i){f=this.defaultCharUnicode.charCodeAt(0);d=l}else if(f===o){if(d>=3){var b=(e[d-3]-129)*12600+(e[d-2]-48)*1260+(e[d-1]-129)*10+(p-48)}else{var b=(u[d-3+c]-129)*12600+((d-2>=0?e[d-2]:u[d-2+c])-48)*1260+((d-1>=0?e[d-1]:u[d-1+c])-129)*10+(p-48)}var m=findIdx(this.gb18030.gbChars,b);f=this.gb18030.uChars[m]+b-this.gb18030.gbChars[m]}else if(f<=a){r=a-f;continue}else if(f<=s){var v=this.decodeTableSeq[s-f];for(var g=0;g<v.length-1;g++){f=v[g];t[h++]=f&255;t[h++]=f>>8}f=v[v.length-1]}else throw new Error("iconv-lite internal error: invalid decoding table value "+f+" at "+r+"/"+p);if(f>=65536){f-=65536;var y=55296|f>>10;t[h++]=y&255;t[h++]=y>>8;f=56320|f&1023}t[h++]=f&255;t[h++]=f>>8;r=0;l=d+1}this.nodeIdx=r;this.prevBytes=l>=0?Array.prototype.slice.call(e,l):u.slice(l+c).concat(Array.prototype.slice.call(e));return t.slice(0,h).toString("ucs2")};DBCSDecoder.prototype.end=function(){var e="";while(this.prevBytes.length>0){e+=this.defaultCharUnicode;var t=this.prevBytes.slice(1);this.prevBytes=[];this.nodeIdx=0;if(t.length>0)e+=this.write(t)}this.prevBytes=[];this.nodeIdx=0;return e};function findIdx(e,t){if(e[0]>t)return-1;var r=0,n=e.length;while(r<n-1){var i=r+(n-r+1>>1);if(e[i]<=t)r=i;else n=i}return r}},1802:(e,t,r)=>{"use strict";e.exports={shiftjis:{type:"_dbcs",table:function(){return r(679)},encodeAdd:{"Ā„":92,"ā¾":126},encodeSkipVals:[{from:60736,to:63808}]},csshiftjis:"shiftjis",mskanji:"shiftjis",sjis:"shiftjis",windows31j:"shiftjis",ms31j:"shiftjis",xsjis:"shiftjis",windows932:"shiftjis",ms932:"shiftjis",932:"shiftjis",cp932:"shiftjis",eucjp:{type:"_dbcs",table:function(){return r(6406)},encodeAdd:{"Ā„":92,"ā¾":126}},gb2312:"cp936",gb231280:"cp936",gb23121980:"cp936",csgb2312:"cp936",csiso58gb231280:"cp936",euccn:"cp936",windows936:"cp936",ms936:"cp936",936:"cp936",cp936:{type:"_dbcs",table:function(){return r(4488)}},gbk:{type:"_dbcs",table:function(){return r(4488).concat(r(5914))}},xgbk:"gbk",isoir58:"gbk",gb18030:{type:"_dbcs",table:function(){return r(4488).concat(r(5914))},gb18030:function(){return r(9129)},encodeSkipVals:[128],encodeAdd:{"ā¬":41699}},chinese:"gb18030",windows949:"cp949",ms949:"cp949",949:"cp949",cp949:{type:"_dbcs",table:function(){return r(1166)}},cseuckr:"cp949",csksc56011987:"cp949",euckr:"cp949",isoir149:"cp949",korean:"cp949",ksc56011987:"cp949",ksc56011989:"cp949",ksc5601:"cp949",windows950:"cp950",ms950:"cp950",950:"cp950",cp950:{type:"_dbcs",table:function(){return r(2324)}},big5:"big5hkscs",big5hkscs:{type:"_dbcs",table:function(){return r(2324).concat(r(3267))},encodeSkipVals:[36457,36463,36478,36523,36532,36557,36560,36695,36713,36718,36811,36862,36973,36986,37060,37084,37105,37311,37551,37552,37553,37554,37585,37959,38090,38361,38652,39285,39798,39800,39803,39878,39902,39916,39926,40002,40019,40034,40040,40043,40055,40124,40125,40144,40279,40282,40388,40431,40443,40617,40687,40701,40800,40907,41079,41180,41183,36812,37576,38468,38637,41636,41637,41639,41638,41676,41678]},cnbig5:"big5hkscs",csbig5:"big5hkscs",xxbig5:"big5hkscs"}},7585:(e,t,r)=>{"use strict";var n=[r(2356),r(2021),r(8771),r(8231),r(2473),r(7083),r(9487),r(7978),r(1802)];for(var i=0;i<n.length;i++){var o=n[i];for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s))t[s]=o[s]}},2356:(e,t,r)=>{"use strict";var n=r(2803).Buffer;e.exports={utf8:{type:"_internal",bomAware:true},cesu8:{type:"_internal",bomAware:true},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:true},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:InternalCodec};function InternalCodec(e,t){this.enc=e.encodingName;this.bomAware=e.bomAware;if(this.enc==="base64")this.encoder=InternalEncoderBase64;else if(this.enc==="cesu8"){this.enc="utf8";this.encoder=InternalEncoderCesu8;if(n.from("eda0bdedb2a9","hex").toString()!=="š©"){this.decoder=InternalDecoderCesu8;this.defaultCharUnicode=t.defaultCharUnicode}}}InternalCodec.prototype.encoder=InternalEncoder;InternalCodec.prototype.decoder=InternalDecoder;var i=r(3193).StringDecoder;if(!i.prototype.end)i.prototype.end=function(){};function InternalDecoder(e,t){this.decoder=new i(t.enc)}InternalDecoder.prototype.write=function(e){if(!n.isBuffer(e)){e=n.from(e)}return this.decoder.write(e)};InternalDecoder.prototype.end=function(){return this.decoder.end()};function InternalEncoder(e,t){this.enc=t.enc}InternalEncoder.prototype.write=function(e){return n.from(e,this.enc)};InternalEncoder.prototype.end=function(){};function InternalEncoderBase64(e,t){this.prevStr=""}InternalEncoderBase64.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;this.prevStr=e.slice(t);e=e.slice(0,t);return n.from(e,"base64")};InternalEncoderBase64.prototype.end=function(){return n.from(this.prevStr,"base64")};function InternalEncoderCesu8(e,t){}InternalEncoderCesu8.prototype.write=function(e){var t=n.alloc(e.length*3),r=0;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o<128)t[r++]=o;else if(o<2048){t[r++]=192+(o>>>6);t[r++]=128+(o&63)}else{t[r++]=224+(o>>>12);t[r++]=128+(o>>>6&63);t[r++]=128+(o&63)}}return t.slice(0,r)};InternalEncoderCesu8.prototype.end=function(){};function InternalDecoderCesu8(e,t){this.acc=0;this.contBytes=0;this.accBytes=0;this.defaultCharUnicode=t.defaultCharUnicode}InternalDecoderCesu8.prototype.write=function(e){var t=this.acc,r=this.contBytes,n=this.accBytes,i="";for(var o=0;o<e.length;o++){var s=e[o];if((s&192)!==128){if(r>0){i+=this.defaultCharUnicode;r=0}if(s<128){i+=String.fromCharCode(s)}else if(s<224){t=s&31;r=1;n=1}else if(s<240){t=s&15;r=2;n=1}else{i+=this.defaultCharUnicode}}else{if(r>0){t=t<<6|s&63;r--;n++;if(r===0){if(n===2&&t<128&&t>0)i+=this.defaultCharUnicode;else if(n===3&&t<2048)i+=this.defaultCharUnicode;else i+=String.fromCharCode(t)}}else{i+=this.defaultCharUnicode}}}this.acc=t;this.contBytes=r;this.accBytes=n;return i};InternalDecoderCesu8.prototype.end=function(){var e=0;if(this.contBytes>0)e+=this.defaultCharUnicode;return e}},2473:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t._sbcs=SBCSCodec;function SBCSCodec(e,t){if(!e)throw new Error("SBCS codec is called without the data.");if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw new Error("Encoding '"+e.type+"' has incorrect 'chars' (must be of len 128 or 256)");if(e.chars.length===128){var r="";for(var i=0;i<128;i++)r+=String.fromCharCode(i);e.chars=r+e.chars}this.decodeBuf=n.from(e.chars,"ucs2");var o=n.alloc(65536,t.defaultCharSingleByte.charCodeAt(0));for(var i=0;i<e.chars.length;i++)o[e.chars.charCodeAt(i)]=i;this.encodeBuf=o}SBCSCodec.prototype.encoder=SBCSEncoder;SBCSCodec.prototype.decoder=SBCSDecoder;function SBCSEncoder(e,t){this.encodeBuf=t.encodeBuf}SBCSEncoder.prototype.write=function(e){var t=n.alloc(e.length);for(var r=0;r<e.length;r++)t[r]=this.encodeBuf[e.charCodeAt(r)];return t};SBCSEncoder.prototype.end=function(){};function SBCSDecoder(e,t){this.decodeBuf=t.decodeBuf}SBCSDecoder.prototype.write=function(e){var t=this.decodeBuf;var r=n.alloc(e.length*2);var i=0,o=0;for(var s=0;s<e.length;s++){i=e[s]*2;o=s*2;r[o]=t[i];r[o+1]=t[i+1]}return r.toString("ucs2")};SBCSDecoder.prototype.end=function(){}},9487:e=>{"use strict";e.exports={437:"cp437",737:"cp737",775:"cp775",850:"cp850",852:"cp852",855:"cp855",856:"cp856",857:"cp857",858:"cp858",860:"cp860",861:"cp861",862:"cp862",863:"cp863",864:"cp864",865:"cp865",866:"cp866",869:"cp869",874:"windows874",922:"cp922",1046:"cp1046",1124:"cp1124",1125:"cp1125",1129:"cp1129",1133:"cp1133",1161:"cp1161",1162:"cp1162",1163:"cp1163",1250:"windows1250",1251:"windows1251",1252:"windows1252",1253:"windows1253",1254:"windows1254",1255:"windows1255",1256:"windows1256",1257:"windows1257",1258:"windows1258",28591:"iso88591",28592:"iso88592",28593:"iso88593",28594:"iso88594",28595:"iso88595",28596:"iso88596",28597:"iso88597",28598:"iso88598",28599:"iso88599",28600:"iso885910",28601:"iso885911",28603:"iso885913",28604:"iso885914",28605:"iso885915",28606:"iso885916",windows874:{type:"_sbcs",chars:"ā¬ļæ½ļæ½ļæ½ļæ½ā¦ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½āāāāā¢āāļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½Ā ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"},win874:"windows874",cp874:"windows874",windows1250:{type:"_sbcs",chars:"ā¬ļæ½āļæ½āā¦ā ā”ļæ½ā°Å ā¹ÅŤŽŹ�āāāāā¢āāļæ½ā¢Å”āŗÅńžź ĖĖŤĦ§¨©Å«¬Ā®Ż°±ĖÅ“µ¶·¸Ä
Å»ĽĖľżÅĆĆÄĆĹÄĆÄĆÄĆÄĆĆÄÄÅÅĆĆÅĆĆÅÅ®ĆŰĆĆÅ¢ĆÅÔâÄäĺÄƧÄĆ©ÄĆ«ÄĆĆ®ÄÄÅÅóÓÅƶƷÅůúűüýţĖ"},win1250:"windows1250",cp1250:"windows1250",windows1251:{type:"_sbcs",chars:"ŠŠāŃāā¦ā ā”ā¬ā°Šā¹ŠŠŠŠŃāāāāā¢āāļæ½ā¢ŃāŗŃŃŃŃĀ ŠŃŠĀ¤Ņ¦§ŠĀ©ŠĀ«Ā¬ĀĀ®ŠĀ°Ā±ŠŃҵ¶·ŃāŃĀ»ŃŠ
ŃŃŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃ"},win1251:"windows1251",cp1251:"windows1251",windows1252:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°Å ā¹Å���āāāāā¢āāĖā¢Å”āŗÅ�žŸ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆà ÔâãäÄæçèéêëìĆîïðñòóÓõö÷øùúûüýþÿ"},win1252:"windows1252",cp1252:"windows1252",windows1253:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”ļæ½ā°ļæ½ā¹ļæ½ļæ½ļæ½ļæ½ļæ½āāāāā¢āāļæ½ā¢ļæ½āŗļæ½ļæ½ļæ½ļæ½Ā Ī
Ī£¤„¦§¨©�«¬Ā®ⰱ²³Īµ¶·ĪĪĪ»νĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪΠΔ�ΣΤ΄ΦΧΨΩΪΫάĪήίΰαβγΓεζηθικλμνξοĻĻĻĻĻĻ
ĻĻĻĻĻĻĻĻĻļæ½"},win1253:"windows1253",cp1253:"windows1253",windows1254:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°Å ā¹Å����āāāāā¢āāĖā¢Å”āŗÅ��Ÿ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÄĆĆĆĆĆĆĆĆĆĆĆĆİÅĆà ÔâãäÄæçèéêëìĆîïÄñòóÓõö÷øùúûüıÅĆæ"},win1254:"windows1254",cp1254:"windows1254",windows1255:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°ļæ½ā¹ļæ½ļæ½ļæ½ļæ½ļæ½āāāāā¢āāĖā¢ļæ½āŗļæ½ļæ½ļæ½ļæ½Ā ”¢£āŖĀ„¦§¨©Ć«¬Ā®¯°±²³“µ¶·¸¹÷»¼½¾¿ְֱֲֳֵֶַָֹֺֻּֽ֓־ֿ××××װױײ׳ד�������××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×Ŗļæ½ļæ½āāļæ½"},win1255:"windows1255",cp1255:"windows1255",windows1256:{type:"_sbcs",chars:"ā¬Ł¾āĘāā¦ā ā”Ėā°Ł¹ā¹ÅŚŚŚŚÆāāāāā¢āāŚ©ā¢ŚāŗÅāāŚŗĀ Ų¢£¤„¦§¨©ھ«¬Ā®¯°±²³“µ¶·¸¹Ų»¼½¾ŲŪŲ”Ų¢Ų£Ų¤Ų„Ų¦Ų§ŲØŲ©ŲŖŲ«Ų¬ŲŲ®ŲÆŲ°Ų±Ų²Ų³Ų“ŲµŲ¶ĆŲ·ŲøŲ¹ŲŗŁŁŁŁĆ ŁĆ¢Ł
ŁŁŁĆ§ĆØĆ©ĆŖĆ«ŁŁĆ®ĆÆŁŁŁŁĆ“ŁŁĆ·ŁĆ¹ŁĆ»Ć¼āāŪ"},win1256:"windows1256",cp1256:"windows1256",windows1257:{type:"_sbcs",chars:"ā¬ļæ½āļæ½āā¦ā ā”ļæ½ā°ļæ½ā¹ļæ½ĀØĖĀøļæ½āāāāā¢āāļæ½ā¢ļæ½āŗļæ½ĀÆĖ� �¢£¤�¦§Ć©ū¬Ā®ð±²³“µ¶·ø¹Å»¼½¾æÄÄ®ÄÄĆĆ
ÄÄÄĆŹÄĢĶĪĻŠÅÅ
ĆÅĆĆĆŲÅÅÅŖĆŻŽĆÄ
ÄÆÄÄƤƄÄÄÄéźÄģķīļŔÅÅóÅõö÷ųÅÅūüżžĖ"},win1257:"windows1257",cp1257:"windows1257",windows1258:{type:"_sbcs",chars:"ā¬ļæ½āĘāā¦ā ā”Ėā°ļæ½ā¹Å����āāāāā¢āāĖā¢ļæ½āŗÅ��Ÿ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆÄĆĆ
ĆĆĆĆĆĆĢĆĆĆÄĆĢĆĆĘ ĆĆĆĆĆĆĆĘÆĢĆà ÔâÄäÄæçèéêëĢĆîïÄṇ̃óÓƔö÷øùúûüưā«Ćæ"},win1258:"windows1258",cp1258:"windows1258",iso88591:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆà ÔâãäÄæçèéêëìĆîïðñòóÓõö÷øùúûüýþÿ"},cp28591:"iso88591",iso88592:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄĖŤĽÅ§¨ŠÅŤŹĀŽŻ°Ä
ĖÅ“ľÅĖĀøÅ”ÅńźĖžżÅĆĆÄĆĹÄĆÄĆÄĆÄĆĆÄÄÅÅĆĆÅĆĆÅÅ®ĆŰĆĆÅ¢ĆÅÔâÄäĺÄƧÄĆ©ÄĆ«ÄĆĆ®ÄÄÅÅóÓÅƶƷÅůúűüýţĖ"},cp28592:"iso88592",iso88593:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ĦĖ£¤�Ĥ§¨İÅÄÄ“Ā�ݰħ²³“µĄ·¸ıÅÄĵ½�żĆĆĆļæ½ĆÄÄĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆÄ ĆĆÄĆĆĆĆŬÅĆà Ôâ�äÄÄçèéêëìĆîï�ñòóÓĔö÷ÄùúûüÅÅĖ"},cp28593:"iso88593",iso88594:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄĸŤĨϧ¨ŠÄĢŦĀޝ°Ä
ĖÅ“ĩļĖĀøÅ”ÄģŧÅžÅÄĆĆĆĆĆ
ĆÄ®ÄĆÄĆÄĆĆÄŖÄÅ
ÅĶĆĆĆĆĆŲĆĆĆÅØÅŖĆÄÔâãäÄæįÄĆ©ÄĆ«ÄĆƮīÄÅÅķÓõö÷øųúûüũūĖ"},cp28594:"iso88594",iso88595:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ŠŠŠŠŠ
ŠŠŠŠŠŠŠĀŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃāŃŃŃŃŃŃŃŃŃŃŃѧŃŃ"},cp28595:"iso88595",iso88596:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ���¤�������ŲĀ�������������Ų���Ųļæ½Ų”Ų¢Ų£Ų¤Ų„Ų¦Ų§ŲØŲ©ŲŖŲ«Ų¬ŲŲ®ŲÆŲ°Ų±Ų²Ų³Ų“ŲµŲ¶Ų·ŲøŲ¹Ųŗļæ½ļæ½ļæ½ļæ½ļæ½ŁŁŁŁŁŁ
ŁŁŁŁŁŁŁŁŁŁŁŁŁļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½"},cp28596:"iso88596",iso88597:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ āāĀ£ā¬āÆĀ¦Ā§ĀØĀ©ĶŗĀ«Ā¬Ā�ⰱ²³ĪĪ
ĪĀ·ĪĪĪ»νĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪΠΔ�ΣΤ΄ΦΧΨΩΪΫάĪήίΰαβγΓεζηθικλμνξοĻĻĻĻĻĻ
ĻĻĻĻĻĻĻĻĻļæ½"},cp28597:"iso88597",iso88598:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ �¢£¤„¦§¨©Ć«¬Ā®¯°±²³“µ¶·¸¹÷»¼½¾��������������������������������ā××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×Ŗļæ½ļæ½āāļæ½"},cp28598:"iso88598",iso88599:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÄĆĆĆĆĆĆĆĆĆĆĆĆİÅĆà ÔâãäÄæçèéêëìĆîïÄñòóÓõö÷øùúûüıÅĆæ"},cp28599:"iso88599",iso885910:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄÄĢĪĨͧĻÄŠŦŽĀŪŰÄ
Äģīĩķ·ļÄŔŧžāÅ«ÅÄĆĆĆĆĆ
ĆÄ®ÄĆÄĆÄĆĆĆĆÅ
ÅĆĆĆĆÅØĆŲĆĆĆĆĆĆÄÔâãäÄæįÄĆ©ÄĆ«ÄĆîïðÅÅóÓõöũøųúûüýþĸ"},cp28600:"iso885910",iso885911:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"},cp28601:"iso885911",iso885913:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ⢣¤ā¦§Ć©ū¬Ā®ð±²³āµ¶·ø¹Å»¼½¾æÄÄ®ÄÄĆĆ
ÄÄÄĆŹÄĢĶĪĻŠÅÅ
ĆÅĆĆĆŲÅÅÅŖĆŻŽĆÄ
ÄÆÄÄƤƄÄÄÄéźÄģķīļŔÅÅóÅõö÷ųÅÅūüżžā"},cp28603:"iso885913",iso885914:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ įøįøĀ£ÄÄįøĀ§įŗĀ©įŗįøį»²Ā®ŸįøįøÄ Ä”į¹į¹Ā¶į¹įŗį¹įŗį¹ ỳįŗįŗ
į¹”ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÅ“ĆĆĆĆĆĆį¹ŖĆĆĆĆĆĆŶĆà ÔâãäÄæçèéêëìĆîïŵñòóÓõöṫøùúûüýŷÿ"},cp28604:"iso885914",iso885915:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£ā¬Ā„ЧŔ©ª«¬Ā®¯°±²³Žµ¶·ž¹º»ÅÅÅøĀæĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆĆà ÔâãäÄæçèéêëìĆîïðñòóÓõö÷øùúûüýþÿ"},cp28605:"iso885915",iso885916:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ÄÄ
Åā¬āЧŔ©Č«ŹĀźŻ°±ÄÅŽā¶·žÄČĀ»ÅÅŸżĆĆĆÄĆÄĆĆĆĆĆĆĆĆĆĆÄÅĆĆĆÅĆÅŰĆĆĆĆÄČĆà ÔâÄƤÄæçèéêëìĆîïÄÅòóÓÅƶÅűùúûüÄČĆæ"},cp28606:"iso885916",cp437:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆ¢£„ā§ĘĆ”ĆóúñĆªº¿⬽¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm437:"cp437",csibm437:"cp437",cp737:{type:"_sbcs",chars:"ĪĪĪĪĪĪĪĪĪĪĪĪĪĪĪΠΔΣΤ΄ΦΧΨΩαβγΓεζηθικλμνξοĻĻĻĻĻĻ
ĻĻĻāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāĻάĪĪ®ĻĪÆĻĻĻĻĪĪĪĪĪĪαā„ā¤ĪŖĪ«Ć·ā°āĀ·āāæĀ²ā Ā "},ibm737:"cp737",csibm737:"cp737",cp775:{type:"_sbcs",chars:"ÄüéÄäģÄÄÅÄÅÅīŹĆĆ
ĆƦĆÅöĢ¢ÅÅĆĆĆøĀ£ĆƤÄĪóŻżźā¦©®¬½¼Å«»āāāāā¤ÄÄÄÄā£āāāĮŠāāā“ā¬āāā¼Å²ÅŖāāā©ā¦ā āā¬Å½Ä
ÄÄÄįŔųūžāāāāāāāĆĆÅÅƵƵÅĶķĻļÅÄÅ
ā±⾶§÷ā°ā·¹³²ā Ā "},ibm775:"cp775",csibm775:"cp775",cp850:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆĆøĀ£ĆĆĘĆ”ĆóúñĆªº¿®¬½¼”«»āāāāā¤ĆĆĆĀ©ā£āā⢄āāā“ā¬āāā¼Ć£Ćāāā©ā¦ā āā¬Ā¤Ć°ĆĆĆĆıĆĆĆāāāā¦ĆāĆĆĆĆƵƵþĆĆĆĆýÝ“±⾶§÷¸°¨·¹³²ā Ā "},ibm850:"cp850",csibm850:"cp850",cp852:{type:"_sbcs",chars:"ĆüéâäůÄƧÅĆ«ÅÅîŹĆÄĆĹĺÓöĽľÅÅĆĆŤńÅĆÄĆ”ĆóúÄÄ
ŽžÄĬźÄÅ«»āāāāā¤ĆĆÄÅā£āāāŻżāāā“ā¬āāā¼ÄÄāāā©ā¦ā āā¬Ā¤ÄÄÄĆÄÅĆĆÄāāāāŢŮāĆĆĆÅÅÅÅ Å”ÅĆÅŰýĆţ“ĀĖĖĖ˧÷¸°¨ĖűÅÅā Ā "},ibm852:"cp852",csibm852:"cp852",cp855:{type:"_sbcs",chars:"ŃŠŃŠŃŠŃŠŃŠ
ŃŠŃŠŃŠŃŠŃŠŃŠŃŠŃŠŃŠŃŠ®ŃŠŖŠ°ŠŠ±ŠŃŠ¦Š“ŠŠµŠŃФгŠĀ«Ā»āāāāā¤Ń
ЄиŠā£āāāŠ¹Šāāā“ā¬āāā¼ŠŗŠāāā©ā¦ā āā¬Ā¤Š»ŠŠ¼ŠŠ½ŠŠ¾ŠŠæāāāāŠŃāŠÆŃŠ ŃŠ”ŃŠ¢ŃŠ£Š¶ŠŠ²ŠŃЬāĀŃŠ«Š·ŠŃŠØŃŠŃŠ©ŃЧ§ā Ā "},ibm855:"cp855",csibm855:"cp855",cp856:{type:"_sbcs",chars:"××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×Ŗļæ½Ā£ļæ½Ć����������®¬½¼�«»āāāāā¤ļæ½ļæ½ļæ½Ā©ā£āā⢄āāā“ā¬āāā¼ļæ½ļæ½āāā©ā¦ā āā¬Ā¤ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½āāāā¦�ā������µ�������¯“±⾶§÷¸°¨·¹³²ā Ā "},ibm856:"cp856",csibm856:"cp856",cp857:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîıĆĆ
ĆƦĆÓöòûùİĆĆĆøĀ£ĆÅÅĆ”ĆóúñĆÄÄ¿®¬½¼”«»āāāāā¤ĆĆĆĀ©ā£āā⢄āāā“ā¬āāā¼Ć£Ćāāā©ā¦ā āā¬Ā¤ĀŗĀŖĆĆĆļæ½ĆĆĆāāāā¦ĆāĆĆĆĆƵƵ�ĆĆĆĆìÿ¯“±�¾¶§÷¸°¨·¹³²ā Ā "},ibm857:"cp857",csibm857:"cp857",cp858:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆĆøĀ£ĆĆĘĆ”ĆóúñĆªº¿®¬½¼”«»āāāāā¤ĆĆĆĀ©ā£āā⢄āāā“ā¬āāā¼Ć£Ćāāā©ā¦ā āā¬Ā¤Ć°ĆĆĆĆā¬ĆĆĆāāāā¦ĆāĆĆĆĆƵƵþĆĆĆĆýÝ“±⾶§÷¸°¨·¹³²ā Ā "},ibm858:"cp858",csibm858:"cp858",cp860:{type:"_sbcs",chars:"Ćüéâãà ĆçêĆĆØĆĆƬĆĆĆĆĆÓõòĆùĆĆĆ¢£Ćā§ĆĆ”ĆóúñĆªº¿ì½¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm860:"cp860",csibm860:"cp860",cp861:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèĆưĆĆĆ
ĆƦĆÓöþûĆýĆĆĆøĀ£Ćā§ĘĆ”ĆóúĆĆĆĆ¿⬽¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm861:"cp861",csibm861:"cp861",cp862:{type:"_sbcs",chars:"××××××××××××××××× ×”×¢×£×¤×„×¦×§×Ø×©×ŖĀ¢Ā£Ā„ā§ĘĆ”ĆóúñĆªº¿⬽¼”«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm862:"cp862",csibm862:"cp862",cp863:{type:"_sbcs",chars:"ĆüéâĆà ¶çêëèïîāƧĆĆĆĆ“ĆĆûù¤ĆĆ¢£ĆĆʦ“óú¨¸³¯Ć⬽¼¾«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm863:"cp863",csibm863:"cp863",cp864:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$ŁŖ&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~°·āāāāāā¼ā¤ā¬āā“āāāāβāϱ½¼ā«»ﻷﻸ��ﻻﻼ� ĀļŗĀ£Ā¤ļŗļæ½ļæ½ļŗļŗļŗļŗŲļŗļŗ”ﺄ٠ٔ٢٣٤ل٦٧٨٩ļ»ŲﺱﺵﺹŲĀ¢ļŗļŗļŗļŗ
ļ»ļŗļŗļŗļŗļŗļŗļŗļŗ£ļŗ§ļŗ©ļŗ«ļŗļŗÆļŗ³ļŗ·ļŗ»ļŗæļ»ļ»
ļ»ļ»Ā¦Ā¬Ć·Ćļ»Łļ»ļ»ļ»ļ»ļ»£ļ»§ļ»«ļ»ļ»Æļ»³ļŗ½ļ»ļ»ļ»ļ»”ļ¹½Łļ»„ﻩﻬﻰﻲļ»ļ»ļ»µļ»¶ļ»ļ»ļ»±ā ļæ½"},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"Ćüéâäà ÄçêëèïîìĆĆ
ĆƦĆÓöòûùÿĆĆĆøĀ£Ćā§ĘĆ”ĆóúñĆªº¿⬽¼”«¤āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃъъъъѰāĀ·āā¤ā Ā "},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"������Ī�·¬¦āāĪāĪĪĪŖĪ��ĪΫ©Ī²³ά£ĪήίĻĪĻĻĪĪĪĪĪĪνĪĪ«»āāāāā¤ĪĪĪĪā£āāāĪĪāāā“ā¬āāā¼Ī Ī”āāā©ā¦ā āā¬Ī£Ī¤Ī„ΦΧΨΩαβγāāāāΓεāζηθικλμνξοĻĻĻĻĻαĻ
ĻϧĻĪ
°¨ĻĻΰĻā Ā "},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§¨©ª«¬ĀĀ®ā¾Ā°Ā±Ā²Ā³Ā“µ¶·¸¹º»¼½¾¿ĆĆĆĆĆĆ
ĆĆĆĆĆĆĆĆĆĆÅ ĆĆĆĆĆĆĆĆĆĆĆĆĆŽĆà ÔâãäÄæçèéêëìĆîïŔñòóÓõö÷øùúûüýžÿ"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"ļŗĆ÷ﹱĀā āāāāāāﹹﹻﹽﹿﹷļŗļ»°ļ»³ļ»²ļ»ļ»ļ»ļ»¶ļ»øļ»ŗļ»¼Ā ¤ļŗļŗļŗļŗļŗļŗ£ŲĀﺧﺳ٠ٔ٢٣٤ل٦٧٨٩ﺷŲﺻﺿļ»Ųļ»Ų”Ų¢Ų£Ų¤Ų„Ų¦Ų§ŲØŲ©ŲŖŲ«Ų¬ŲŲ®ŲÆŲ°Ų±Ų²Ų³Ų“ŲµŲ¶Ų·ļ»Ų¹Ųŗļ»ļŗļŗļŗļ»ŁŁŁŁŁŁ
ŁŁŁŁŁŁŁŁŁŁŁŁŁļ»ļ»ļ»ļ£¼ļ»µļ»·ļ»¹ļ»»ļ»£ļ»§ļ»¬ļ»©ļæ½"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ŠŠŅŠŠ
ŠŠŠŠŠŠŠĀŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃāŃŃŅŃŃŃŃŃŃŃŃѧŃŃ"},ibm1124:"cp1124",csibm1124:"cp1124",cp1125:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃŠŃŅŅŠŃŠŃŠŃĀ·āā¤ā Ā "},ibm1125:"cp1125",csibm1125:"cp1125",cp1129:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£¤„¦§Å©ª«¬Ā®¯°±²³Ÿµ¶·Å¹º»¼½¾¿ĆĆĆÄĆĆ
ĆĆĆĆĆĆĢĆĆĆÄĆĢĆĆĘ ĆĆĆĆĆĆĆĘÆĢĆà ÔâÄäÄæçèéêëĢĆîïÄṇ̃óÓƔö÷øùúûüưā«Ćæ"},ibm1129:"cp1129",csibm1129:"cp1129",cp1133:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ąŗąŗąŗąŗąŗąŗŖąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗąŗ”ąŗ¢ąŗ£ąŗ„ąŗ§ąŗ«ąŗąŗ®ļæ½ļæ½ļæ½ąŗÆąŗ°ąŗ²ąŗ³ąŗ“ąŗµąŗ¶ąŗ·ąŗøąŗ¹ąŗ¼ąŗ±ąŗ»ąŗ½ļæ½ļæ½ļæ½ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ļæ½ą»ą»āļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ą»ą»ą»ą»ą»ą»ą»ą»ą»ą»ļæ½ļæ½Ā¢Ā¬Ā¦ļæ½"},ibm1133:"cp1133",csibm1133:"cp1133",cp1161:{type:"_sbcs",chars:"ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ą¹ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗą¹ą¹ą¹ā¬ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹Ā¢Ā¬Ā¦Ā "},ibm1161:"cp1161",csibm1161:"cp1161",cp1162:{type:"_sbcs",chars:"ā¬ĀĀĀĀā¦ĀĀĀĀĀĀĀĀĀĀĀāāāāā¢āāĀĀĀĀĀĀĀĀĀ ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"},ibm1162:"cp1162",csibm1162:"cp1162",cp1163:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ”¢£ā¬Ā„¦§Å©ª«¬Ā®¯°±²³Ÿµ¶·Å¹º»¼½¾¿ĆĆĆÄĆĆ
ĆĆĆĆĆĆĢĆĆĆÄĆĢĆĆĘ ĆĆĆĆĆĆĆĘÆĢĆà ÔâÄäÄæçèéêëĢĆîïÄṇ̃óÓƔö÷øùúûüưā«Ćæ"},ibm1163:"cp1163",csibm1163:"cp1163",maccroatian:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®Šā¢Ā“ĀØā ŽĆā±ā¤ā„āµāāāÅ”ā«ĀŖĀŗā¦Å¾ĆøĀæĀ”¬āĘāÄĀ«Äā¦Ā ĆĆĆÅÅÄāāāāāĆ·ā�©ā¤ā¹āŗĆĀ»āĀ·āāā°ĆÄĆÄĆĆĆĆĆĆĆÄĆĆĆĆıĖĖĀÆĻĆĖĀøĆƦĖ"},maccyrillic:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆā °¢£§ā¢Ā¶ŠĀ®Ā©ā¢ŠŃā ŠŃā±ā¤ā„ŃĀµāŠŠŃŠŃŠŃŠŃŃŠ
¬āĘāā«»ā¦Ā ŠŃŠŃŃāāāāāāĆ·āŠŃŠŃāŠŃŃŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃѤ"},macgreek:{type:"_sbcs",chars:"ù²Ć³ĆĆĪ
à âä΍çéèêë£ā¢Ć®ĆÆā¢Ā½ā°Ć“ö¦Āùûüā ĪĪĪĪĪĪ Ć®©ΣΪ§ā °Īαā¤ā„Ā„ĪĪĪĪĪĪĪΦΫΨΩάάĪĪ”āΤ«»ā¦Ā ΄ΧĪĪÅāāāāāāĆ·ĪĪĪĪĪήίĻĪĻαβĻΓεĻγηιξκλμνοĻĻĻĻĻĪøĻĻĻĻ
ζĻĻĪΰ�"},maciceland:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüư¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ĆưĆþý·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},macroman:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ā¹āŗļ¬ļ¬ā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},macromania:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ÄÅā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦ÄÅ¿”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ā¹āŗÅ¢Å£ā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},macthai:{type:"_sbcs",chars:"«»ā¦ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢āāļ¢ļæ½ā¢ļ¢ļ¢ļ¢
ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢ļ¢āāļæ½Ā ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ีึืฺุู\ufeffāāāąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ā¢ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹Ā®Ā©ļæ½ļæ½ļæ½ļæ½"},macturkish:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸÄÄİıÅÅā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆļæ½ĖĖĀÆĖĖĖĀøĖĖĖ"},macukraine:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆā °Ņ£§ā¢Ā¶ŠĀ®Ā©ā¢ŠŃā ŠŃā±ā¤ā„ŃĀµŅŠŠŃŠŃŠŃŠŃŃŠ
¬āĘāā«»ā¦Ā ŠŃŠŃŃāāāāāāĆ·āŠŃŠŃāŠŃŃŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃѤ"},koi8r:{type:"_sbcs",chars:"āāāāāāāā¤ā¬ā“ā¼āāāāāāāāā ā āāāā¤ā„Ā ā”°²·÷āāāŃāāāāāāāāāāāāāā ā”Šā¢ā£ā¤ā„ā¦ā§āØā©āŖā«ā¬Ā©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},koi8u:{type:"_sbcs",chars:"āāāāāāāā¤ā¬ā“ā¼āāāāāāāāā ā āāāā¤ā„Ā ā”°²·÷āāāŃŃāŃŃāāāāāŅāāāā ā”ŠŠā£ŠŠā¦ā§āØā©āŖŅā¬Ā©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},koi8ru:{type:"_sbcs",chars:"āāāāāāāā¤ā¬ā“ā¼āāāāāāāāā ā āāāā¤ā„Ā ā”°²·÷āāāŃŃāŃŃāāāāāŅŃāāā ā”ŠŠā£ŠŠā¦ā§āØā©āŖŅŠĀ©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},koi8t:{type:"_sbcs",chars:"ŅŅāŅāā¦ā ā”ļæ½ā°Ņ³ā¹Ņ²Ņ·Ņ¶ļæ½Ņāāāāā¢āāļæ½ā¢ļæ½āŗļæ½ļæ½ļæ½ļæ½ļæ½ÓÆÓ®Ń¤ӣ¦§���«¬Ā®�°±²Šļæ½Ó¢Ā¶Ā·ļæ½āļæ½Ā»ļæ½ļæ½ļæ½Ā©ŃŠ°Š±ŃŠ“ŠµŃŠ³Ń
ийклмнопŃŃŃŃŃŠ¶Š²ŃŃŠ·ŃŃŃŃŃŠ®ŠŠŠ¦ŠŠŠ¤ŠŠ„ŠŠŠŠŠŠŠŠŠÆŠ Š”Š¢Š£ŠŠŠ¬Š«ŠŠØŠŠ©Š§ŠŖ"},armscii8:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ļæ½ÖÖ)(»«ā.Õ,-Öā¦ÕÕÕŌ±Õ”Ō²Õ¢Ō³Õ£Ō“Õ¤ŌµÕ„Ō¶Õ¦Ō·Õ§ŌøÕØŌ¹Õ©ŌŗÕŖŌ»Õ«Ō¼Õ¬Ō½ÕŌ¾Õ®ŌæÕÆÕÕ°ÕÕ±ÕÕ²ÕÕ³ÕÕ“Õ
ÕµÕÕ¶ÕÕ·ÕÕøÕÕ¹ÕÕŗÕÕ»ÕÕ¼ÕÕ½ÕÕ¾ÕÕæÕÖÕÖÕÖÕÖÕÖÕÖ
ÕÖÕļæ½"},rk1048:{type:"_sbcs",chars:"ŠŠāŃāā¦ā ā”ā¬ā°Šā¹ŠŅŅŗŠŃāāāāā¢āāļæ½ā¢ŃāŗŃŅһѠҰұÓ¤Ө¦§ŠĀ©Ņ«¬Ā®Ү°±ŠŃөµ¶·ŃāŅĀ»ÓŅ¢Ņ£ŅÆŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃ"},tcvn:{type:"_sbcs",chars:"\0ĆỤỪỬỮ\b\t\n\v\f\rỨỰỲỶỸĆồ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~Ćįŗ¢ĆĆįŗ įŗ¶įŗ¬Ćįŗŗįŗ¼Ćįŗøį»Ćį»ÄØĆį»Ćį»ĆĆį»į»į»į»į» į»į»¢ĆỦŨ ÄĆĆĆĘ ĘÆÄÄâêÓƔưÄįŗ°ĢĢĢĢ̣à ảãÔẔẲằẳẵắẓẮẦẨẪẤį»įŗ·įŗ§įŗ©įŗ«įŗ„įŗĆØį»įŗ»įŗ½Ć©įŗ¹į»į»į»
įŗæį»Ć¬į»į»įŗ¾į»Ä©Ćį»Ć²į»į»ĆµĆ³į»į»į»į»į»į»į»į»į»”į»į»£Ć¹į»į»§Å©Ćŗį»„ừį»į»Æį»©į»±į»³į»·į»¹Ć½į»µį»"},georgianacademy:{type:"_sbcs",chars:"ĀĀāĘāā¦ā ā”Ėā°Å ā¹ÅĀĀĀĀāāāāā¢āāĖā¢Å”āŗÅĀĀŸ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿įįįįįįįįįįįįįįįįį į”į¢į£į¤į„į¦į§įØį©įŖį«į¬įį®įÆį°į±į²į³į“įµį¶Ć§ĆØĆ©ĆŖĆ«Ć¬ĆîïðñòóÓõö÷øùúûüýþÿ"},georgianps:{type:"_sbcs",chars:"ĀĀāĘāā¦ā ā”Ėā°Å ā¹ÅĀĀĀĀāāāāā¢āāĖā¢Å”āŗÅĀĀŸ ”¢£¤„¦§¨©ª«¬Ā®¯°±²³“µ¶·¸¹º»¼½¾¿įįįįįįįį±įįįįįįį²įįįį į”į¢į³į£į¤į„į¦į§įØį©įŖį«į¬įį®į“įÆį°įµĆ¦Ć§ĆØĆ©ĆŖĆ«Ć¬ĆîïðñòóÓõö÷øùúûüýþÿ"},pt154:{type:"_sbcs",chars:"ŅŅÓ®Ņāā¦Ņ¶Ņ®Ņ²ŅÆŅ ӢҢŅŅŗŅøŅāāāāā¢āāҳҷҔӣңŅһҹ ŠŃŠÓØŅҰ§ŠĀ©Ó«¬ӯ®Ņ°ұŠŃŅө¶·ŃāÓĀ»ŃŅŖŅ«ŅŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃ"},viscii:{type:"_sbcs",chars:"\0ẲẓẪ\b\t\n\v\f\rỶỸồ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾį»į»į»į»į»į»į»į»į»į»¢į»į»į»į»į»į»į»į»¦ÅØį»¤į»²ĆắằặẄầẩįŗįŗ½įŗ¹įŗæį»į»į»
į»į»į»į»į»į» Ę į»į»į»į»į»°į»Øį»Ŗį»¬Ę”į»ĘÆĆĆĆĆįŗ¢ÄẳẵĆĆĆįŗŗĆĆĨỳÄứĆĆĆẔỷừį»ĆĆỹỵĆỔưà ÔâãảÄữẫèéêẻìĆÄ©į»ÄựòóÓõį»į»į»„ùúũủýợỮ"},iso646cn:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#Ā„%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}ā¾ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½"},iso646jp:{type:"_sbcs",chars:"\0\b\t\n\v\f\r !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[Ā„]^_`abcdefghijklmnopqrstuvwxyz{|}ā¾ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½"},hproman8:{type:"_sbcs",chars:"ĀĀĀĀĀĀ
ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ ĆĆĆĆĆĆĆĀ“ĖĖĀØĖĆĆā¤ĀÆĆý°ĆƧĆñ”¿¤£„§Ę¢âêÓûÔéóúà èòùäëöüĆ
Ć®ĆĆÄøæĆƬĆĆĆĆÆĆĆĆĆĆ£ĆưĆĆĆĆĆõŠŔĆÅøĆæĆþ·µ¶¾ā¼½ªº«ā »±�"},macintosh:{type:"_sbcs",chars:"ĆĆ
ĆĆĆĆĆÔà âäãÄçéèêëĆìîïñóòÓöõúùûüā °¢£§ā¢Ā¶Ć®©ā¢Ā“ĀØā ĆĆā±ā¤ā„„µāāāĻā«ĀŖĀŗā¦Ć¦ĆøĀæĀ”¬āĘāā«»ā¦Ā ĆĆĆÅÅāāāāāāĆ·āÿŸā¤ā¹āŗļ¬ļ¬ā”Ā·āāā°ĆĆĆĆĆĆĆĆĆĆĆļæ½ĆĆĆĆıĖĖĀÆĖĖĖĀøĖĖĖ"},ascii:{type:"_sbcs",chars:"��������������������������������������������������������������������������������������������������������������������������������"},tis620:{type:"_sbcs",chars:"ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ļæ½ąøąøąøąøąø
ąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąøąø ąø”ąø¢ąø£ąø¤ąø„ąø¦ąø§ąøØąø©ąøŖąø«ąø¬ąøąø®ąøÆąø°ąø±ąø²ąø³ąø“ąøµąø¶ąø·ąøøąø¹ąøŗļæ½ļæ½ļæ½ļæ½ąøæą¹ą¹ą¹ą¹ą¹ą¹
ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ą¹ļæ½ļæ½ļæ½ļæ½"}}},7083:e=>{"use strict";e.exports={10029:"maccenteuro",maccenteuro:{type:"_sbcs",chars:"ĆÄÄĆÄĆĆĆ”Ä
ÄƤÄÄÄ鏟ÄĆÄÄÄÄóÄÓöõúÄÄüā °Ä£§ā¢Ā¶Ć®©ā¢ÄĀØā ģĮįĪā¤ā„īĶāāÅĻļĽľĹĺÅ
ÅŬāÅÅā«»ā¦Ā ÅÅĆÅÅāāāāāāĆ·āÅÅÅÅā¹āŗÅÅÅÅ āāÅ”ÅÅĆŤńĆŽžŪĆĆūŮĆůŰűŲųĆýķŻÅżĢĖ"},808:"cp808",ibm808:"cp808",cp808:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопāāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃъъъъѰāĀ·āāā¬ā Ā "},mik:{type:"_sbcs",chars:"ŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠŠ Š”Š¢Š£Š¤Š„Š¦Š§ŠØŠ©ŠŖŠ«Š¬ŠŠ®ŠÆŠ°Š±Š²Š³Š“ежзийклмнопŃŃŃŃŃŃ
ŃŃŃŃŃŃŃŃŃŃāā“ā¬āāā¼ā£āāāā©ā¦ā āā¬āāāāāā¤ā§āāāāāāāāāαĆĪĻΣϵĻΦĪΩΓāĻεā©ā”±ā„ā¤ā ā”Ć·ā°āĀ·āāæĀ²ā Ā "},cp720:{type:"_sbcs",chars:"ĀĀéâĀĆ ĀçêëèïîĀĀĀĀŁŁĆ“¤ŁĆ»Ć¹Ų”آأؤ£؄ئابةتثجŲخدذرزسؓص«»āāāāā¤ā”ā¢āāā£āāāāāāāā“ā¬āāā¼āāāāā©ā¦ā āā¬ā§āØā¤ā„āāāāā«āŖāāāāāāāŲ¶Ų·ŲøŲ¹ŲŗŁĀµŁŁŁŁ
ŁŁŁŁŁā”ŁŁŁŁŁŁā°āĀ·āāæĀ²ā Ā "},ascii8bit:"ascii",usascii:"ascii",ansix34:"ascii",ansix341968:"ascii",ansix341986:"ascii",csascii:"ascii",cp367:"ascii",ibm367:"ascii",isoir6:"ascii",iso646us:"ascii",iso646irv:"ascii",us:"ascii",latin1:"iso88591",latin2:"iso88592",latin3:"iso88593",latin4:"iso88594",latin5:"iso88599",latin6:"iso885910",latin7:"iso885913",latin8:"iso885914",latin9:"iso885915",latin10:"iso885916",csisolatin1:"iso88591",csisolatin2:"iso88592",csisolatin3:"iso88593",csisolatin4:"iso88594",csisolatincyrillic:"iso88595",csisolatinarabic:"iso88596",csisolatingreek:"iso88597",csisolatinhebrew:"iso88598",csisolatin5:"iso88599",csisolatin6:"iso885910",l1:"iso88591",l2:"iso88592",l3:"iso88593",l4:"iso88594",l5:"iso88599",l6:"iso885910",l7:"iso885913",l8:"iso885914",l9:"iso885915",l10:"iso885916",isoir14:"iso646jp",isoir57:"iso646cn",isoir100:"iso88591",isoir101:"iso88592",isoir109:"iso88593",isoir110:"iso88594",isoir144:"iso88595",isoir127:"iso88596",isoir126:"iso88597",isoir138:"iso88598",isoir148:"iso88599",isoir157:"iso885910",isoir166:"tis620",isoir179:"iso885913",isoir199:"iso885914",isoir203:"iso885915",isoir226:"iso885916",cp819:"iso88591",ibm819:"iso88591",cyrillic:"iso88595",arabic:"iso88596",arabic8:"iso88596",ecma114:"iso88596",asmo708:"iso88596",greek:"iso88597",greek8:"iso88597",ecma118:"iso88597",elot928:"iso88597",hebrew:"iso88598",hebrew8:"iso88598",turkish:"iso88599",turkish8:"iso88599",thai:"iso885911",thai8:"iso885911",celtic:"iso885914",celtic8:"iso885914",isoceltic:"iso885914",tis6200:"tis620",tis62025291:"tis620",tis62025330:"tis620",1e4:"macroman",10006:"macgreek",10007:"maccyrillic",10079:"maciceland",10081:"macturkish",cspc8codepage437:"cp437",cspc775baltic:"cp775",cspc850multilingual:"cp850",cspcp852:"cp852",cspc862latinhebrew:"cp862",cpgr:"cp869",msee:"cp1250",mscyrl:"cp1251",msansi:"cp1252",msgreek:"cp1253",msturk:"cp1254",mshebr:"cp1255",msarab:"cp1256",winbaltrim:"cp1257",cp20866:"koi8r",20866:"koi8r",ibm878:"koi8r",cskoi8r:"koi8r",cp21866:"koi8u",21866:"koi8u",ibm1168:"koi8u",strk10482002:"rk1048",tcvn5712:"tcvn",tcvn57121:"tcvn",gb198880:"iso646cn",cn:"iso646cn",csiso14jisc6220ro:"iso646jp",jisc62201969ro:"iso646jp",jp:"iso646jp",cshproman8:"hproman8",r8:"hproman8",roman8:"hproman8",xroman8:"hproman8",ibm1051:"hproman8",mac:"macintosh",csmacintosh:"macintosh"}},8771:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t.utf16be=Utf16BECodec;function Utf16BECodec(){}Utf16BECodec.prototype.encoder=Utf16BEEncoder;Utf16BECodec.prototype.decoder=Utf16BEDecoder;Utf16BECodec.prototype.bomAware=true;function Utf16BEEncoder(){}Utf16BEEncoder.prototype.write=function(e){var t=n.from(e,"ucs2");for(var r=0;r<t.length;r+=2){var i=t[r];t[r]=t[r+1];t[r+1]=i}return t};Utf16BEEncoder.prototype.end=function(){};function Utf16BEDecoder(){this.overflowByte=-1}Utf16BEDecoder.prototype.write=function(e){if(e.length==0)return"";var t=n.alloc(e.length+1),r=0,i=0;if(this.overflowByte!==-1){t[0]=e[0];t[1]=this.overflowByte;r=1;i=2}for(;r<e.length-1;r+=2,i+=2){t[i]=e[r+1];t[i+1]=e[r]}this.overflowByte=r==e.length-1?e[e.length-1]:-1;return t.slice(0,i).toString("ucs2")};Utf16BEDecoder.prototype.end=function(){this.overflowByte=-1};t.utf16=Utf16Codec;function Utf16Codec(e,t){this.iconv=t}Utf16Codec.prototype.encoder=Utf16Encoder;Utf16Codec.prototype.decoder=Utf16Decoder;function Utf16Encoder(e,t){e=e||{};if(e.addBOM===undefined)e.addBOM=true;this.encoder=t.iconv.getEncoder("utf-16le",e)}Utf16Encoder.prototype.write=function(e){return this.encoder.write(e)};Utf16Encoder.prototype.end=function(){return this.encoder.end()};function Utf16Decoder(e,t){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=e||{};this.iconv=t.iconv}Utf16Decoder.prototype.write=function(e){if(!this.decoder){this.initialBufs.push(e);this.initialBufsLen+=e.length;if(this.initialBufsLen<16)return"";var t=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);var r="";for(var n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);this.initialBufs.length=this.initialBufsLen=0;return r}return this.decoder.write(e)};Utf16Decoder.prototype.end=function(){if(!this.decoder){var e=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);var t="";for(var r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();if(n)t+=n;this.initialBufs.length=this.initialBufsLen=0;return t}return this.decoder.end()};function detectEncoding(e,t){var r=[];var n=0;var i=0,o=0;e:for(var s=0;s<e.length;s++){var a=e[s];for(var u=0;u<a.length;u++){r.push(a[u]);if(r.length===2){if(n===0){if(r[0]===255&&r[1]===254)return"utf-16le";if(r[0]===254&&r[1]===255)return"utf-16be"}if(r[0]===0&&r[1]!==0)o++;if(r[0]!==0&&r[1]===0)i++;r.length=0;n++;if(n>=100){break e}}}}if(o>i)return"utf-16be";if(o<i)return"utf-16le";return t||"utf-16le"}},2021:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t._utf32=Utf32Codec;function Utf32Codec(e,t){this.iconv=t;this.bomAware=true;this.isLE=e.isLE}t.utf32le={type:"_utf32",isLE:true};t.utf32be={type:"_utf32",isLE:false};t.ucs4le="utf32le";t.ucs4be="utf32be";Utf32Codec.prototype.encoder=Utf32Encoder;Utf32Codec.prototype.decoder=Utf32Decoder;function Utf32Encoder(e,t){this.isLE=t.isLE;this.highSurrogate=0}Utf32Encoder.prototype.write=function(e){var t=n.from(e,"ucs2");var r=n.alloc(t.length*2);var i=this.isLE?r.writeUInt32LE:r.writeUInt32BE;var o=0;for(var s=0;s<t.length;s+=2){var a=t.readUInt16LE(s);var u=55296<=a&&a<56320;var c=56320<=a&&a<57344;if(this.highSurrogate){if(u||!c){i.call(r,this.highSurrogate,o);o+=4}else{var l=(this.highSurrogate-55296<<10|a-56320)+65536;i.call(r,l,o);o+=4;this.highSurrogate=0;continue}}if(u)this.highSurrogate=a;else{i.call(r,a,o);o+=4;this.highSurrogate=0}}if(o<r.length)r=r.slice(0,o);return r};Utf32Encoder.prototype.end=function(){if(!this.highSurrogate)return;var e=n.alloc(4);if(this.isLE)e.writeUInt32LE(this.highSurrogate,0);else e.writeUInt32BE(this.highSurrogate,0);this.highSurrogate=0;return e};function Utf32Decoder(e,t){this.isLE=t.isLE;this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0);this.overflow=[]}Utf32Decoder.prototype.write=function(e){if(e.length===0)return"";var t=0;var r=0;var i=n.alloc(e.length+4);var o=0;var s=this.isLE;var a=this.overflow;var u=this.badChar;if(a.length>0){for(;t<e.length&&a.length<4;t++)a.push(e[t]);if(a.length===4){if(s){r=a[t]|a[t+1]<<8|a[t+2]<<16|a[t+3]<<24}else{r=a[t+3]|a[t+2]<<8|a[t+1]<<16|a[t]<<24}a.length=0;o=_writeCodepoint(i,o,r,u)}}for(;t<e.length-3;t+=4){if(s){r=e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}else{r=e[t+3]|e[t+2]<<8|e[t+1]<<16|e[t]<<24}o=_writeCodepoint(i,o,r,u)}for(;t<e.length;t++){a.push(e[t])}return i.slice(0,o).toString("ucs2")};function _writeCodepoint(e,t,r,n){if(r<0||r>1114111){r=n}if(r>=65536){r-=65536;var i=55296|r>>10;e[t++]=i&255;e[t++]=i>>8;var r=56320|r&1023}e[t++]=r&255;e[t++]=r>>8;return t}Utf32Decoder.prototype.end=function(){this.overflow.length=0};t.utf32=Utf32AutoCodec;t.ucs4="utf32";function Utf32AutoCodec(e,t){this.iconv=t}Utf32AutoCodec.prototype.encoder=Utf32AutoEncoder;Utf32AutoCodec.prototype.decoder=Utf32AutoDecoder;function Utf32AutoEncoder(e,t){e=e||{};if(e.addBOM===undefined)e.addBOM=true;this.encoder=t.iconv.getEncoder(e.defaultEncoding||"utf-32le",e)}Utf32AutoEncoder.prototype.write=function(e){return this.encoder.write(e)};Utf32AutoEncoder.prototype.end=function(){return this.encoder.end()};function Utf32AutoDecoder(e,t){this.decoder=null;this.initialBufs=[];this.initialBufsLen=0;this.options=e||{};this.iconv=t.iconv}Utf32AutoDecoder.prototype.write=function(e){if(!this.decoder){this.initialBufs.push(e);this.initialBufsLen+=e.length;if(this.initialBufsLen<32)return"";var t=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);var r="";for(var n=0;n<this.initialBufs.length;n++)r+=this.decoder.write(this.initialBufs[n]);this.initialBufs.length=this.initialBufsLen=0;return r}return this.decoder.write(e)};Utf32AutoDecoder.prototype.end=function(){if(!this.decoder){var e=detectEncoding(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);var t="";for(var r=0;r<this.initialBufs.length;r++)t+=this.decoder.write(this.initialBufs[r]);var n=this.decoder.end();if(n)t+=n;this.initialBufs.length=this.initialBufsLen=0;return t}return this.decoder.end()};function detectEncoding(e,t){var r=[];var n=0;var i=0,o=0;var s=0,a=0;e:for(var u=0;u<e.length;u++){var c=e[u];for(var l=0;l<c.length;l++){r.push(c[l]);if(r.length===4){if(n===0){if(r[0]===255&&r[1]===254&&r[2]===0&&r[3]===0){return"utf-32le"}if(r[0]===0&&r[1]===0&&r[2]===254&&r[3]===255){return"utf-32be"}}if(r[0]!==0||r[1]>16)o++;if(r[3]!==0||r[2]>16)i++;if(r[0]===0&&r[1]===0&&(r[2]!==0||r[3]!==0))a++;if((r[0]!==0||r[1]!==0)&&r[2]===0&&r[3]===0)s++;r.length=0;n++;if(n>=100){break e}}}}if(a-o>s-i)return"utf-32be";if(a-o<s-i)return"utf-32le";return t||"utf-32le"}},8231:(e,t,r)=>{"use strict";var n=r(2803).Buffer;t.utf7=Utf7Codec;t.unicode11utf7="utf7";function Utf7Codec(e,t){this.iconv=t}Utf7Codec.prototype.encoder=Utf7Encoder;Utf7Codec.prototype.decoder=Utf7Decoder;Utf7Codec.prototype.bomAware=true;var i=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function Utf7Encoder(e,t){this.iconv=t.iconv}Utf7Encoder.prototype.write=function(e){return n.from(e.replace(i,function(e){return"+"+(e==="+"?"":this.iconv.encode(e,"utf16-be").toString("base64").replace(/=+$/,""))+"-"}.bind(this)))};Utf7Encoder.prototype.end=function(){};function Utf7Decoder(e,t){this.iconv=t.iconv;this.inBase64=false;this.base64Accum=""}var o=/[A-Za-z0-9\/+]/;var s=[];for(var a=0;a<256;a++)s[a]=o.test(String.fromCharCode(a));var u="+".charCodeAt(0),c="-".charCodeAt(0),l="&".charCodeAt(0);Utf7Decoder.prototype.write=function(e){var t="",r=0,i=this.inBase64,o=this.base64Accum;for(var a=0;a<e.length;a++){if(!i){if(e[a]==u){t+=this.iconv.decode(e.slice(r,a),"ascii");r=a+1;i=true}}else{if(!s[e[a]]){if(a==r&&e[a]==c){t+="+"}else{var l=o+this.iconv.decode(e.slice(r,a),"ascii");t+=this.iconv.decode(n.from(l,"base64"),"utf16-be")}if(e[a]!=c)a--;r=a+1;i=false;o=""}}}if(!i){t+=this.iconv.decode(e.slice(r),"ascii")}else{var l=o+this.iconv.decode(e.slice(r),"ascii");var f=l.length-l.length%8;o=l.slice(f);l=l.slice(0,f);t+=this.iconv.decode(n.from(l,"base64"),"utf16-be")}this.inBase64=i;this.base64Accum=o;return t};Utf7Decoder.prototype.end=function(){var e="";if(this.inBase64&&this.base64Accum.length>0)e=this.iconv.decode(n.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return e};t.utf7imap=Utf7IMAPCodec;function Utf7IMAPCodec(e,t){this.iconv=t}Utf7IMAPCodec.prototype.encoder=Utf7IMAPEncoder;Utf7IMAPCodec.prototype.decoder=Utf7IMAPDecoder;Utf7IMAPCodec.prototype.bomAware=true;function Utf7IMAPEncoder(e,t){this.iconv=t.iconv;this.inBase64=false;this.base64Accum=n.alloc(6);this.base64AccumIdx=0}Utf7IMAPEncoder.prototype.write=function(e){var t=this.inBase64,r=this.base64Accum,i=this.base64AccumIdx,o=n.alloc(e.length*5+10),s=0;for(var a=0;a<e.length;a++){var u=e.charCodeAt(a);if(32<=u&&u<=126){if(t){if(i>0){s+=o.write(r.slice(0,i).toString("base64").replace(/\//g,",").replace(/=+$/,""),s);i=0}o[s++]=c;t=false}if(!t){o[s++]=u;if(u===l)o[s++]=c}}else{if(!t){o[s++]=l;t=true}if(t){r[i++]=u>>8;r[i++]=u&255;if(i==r.length){s+=o.write(r.toString("base64").replace(/\//g,","),s);i=0}}}}this.inBase64=t;this.base64AccumIdx=i;return o.slice(0,s)};Utf7IMAPEncoder.prototype.end=function(){var e=n.alloc(10),t=0;if(this.inBase64){if(this.base64AccumIdx>0){t+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString("base64").replace(/\//g,",").replace(/=+$/,""),t);this.base64AccumIdx=0}e[t++]=c;this.inBase64=false}return e.slice(0,t)};function Utf7IMAPDecoder(e,t){this.iconv=t.iconv;this.inBase64=false;this.base64Accum=""}var f=s.slice();f[",".charCodeAt(0)]=true;Utf7IMAPDecoder.prototype.write=function(e){var t="",r=0,i=this.inBase64,o=this.base64Accum;for(var s=0;s<e.length;s++){if(!i){if(e[s]==l){t+=this.iconv.decode(e.slice(r,s),"ascii");r=s+1;i=true}}else{if(!f[e[s]]){if(s==r&&e[s]==c){t+="&"}else{var a=o+this.iconv.decode(e.slice(r,s),"ascii").replace(/,/g,"/");t+=this.iconv.decode(n.from(a,"base64"),"utf16-be")}if(e[s]!=c)s--;r=s+1;i=false;o=""}}}if(!i){t+=this.iconv.decode(e.slice(r),"ascii")}else{var a=o+this.iconv.decode(e.slice(r),"ascii").replace(/,/g,"/");var u=a.length-a.length%8;o=a.slice(u);a=a.slice(0,u);t+=this.iconv.decode(n.from(a,"base64"),"utf16-be")}this.inBase64=i;this.base64Accum=o;return t};Utf7IMAPDecoder.prototype.end=function(){var e="";if(this.inBase64&&this.base64Accum.length>0)e=this.iconv.decode(n.from(this.base64Accum,"base64"),"utf16-be");this.inBase64=false;this.base64Accum="";return e}},4250:(e,t)=>{"use strict";var r="\ufeff";t.PrependBOM=PrependBOMWrapper;function PrependBOMWrapper(e,t){this.encoder=e;this.addBOM=true}PrependBOMWrapper.prototype.write=function(e){if(this.addBOM){e=r+e;this.addBOM=false}return this.encoder.write(e)};PrependBOMWrapper.prototype.end=function(){return this.encoder.end()};t.StripBOM=StripBOMWrapper;function StripBOMWrapper(e,t){this.decoder=e;this.pass=false;this.options=t||{}}StripBOMWrapper.prototype.write=function(e){var t=this.decoder.write(e);if(this.pass||!t)return t;if(t[0]===r){t=t.slice(1);if(typeof this.options.stripBOM==="function")this.options.stripBOM()}this.pass=true;return t};StripBOMWrapper.prototype.end=function(){return this.decoder.end()}},1748:(e,t,r)=>{"use strict";var n=r(2803).Buffer;var i=r(4250),o=e.exports;o.encodings=null;o.defaultCharUnicode="ļæ½";o.defaultCharSingleByte="?";o.encode=function encode(e,t,r){e=""+(e||"");var i=o.getEncoder(t,r);var s=i.write(e);var a=i.end();return a&&a.length>0?n.concat([s,a]):s};o.decode=function decode(e,t,r){if(typeof e==="string"){if(!o.skipDecodeWarning){console.error("Iconv-lite warning: decode()-ing strings is deprecated. Refer to https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding");o.skipDecodeWarning=true}e=n.from(""+(e||""),"binary")}var i=o.getDecoder(t,r);var s=i.write(e);var a=i.end();return a?s+a:s};o.encodingExists=function encodingExists(e){try{o.getCodec(e);return true}catch(e){return false}};o.toEncoding=o.encode;o.fromEncoding=o.decode;o._codecDataCache={};o.getCodec=function getCodec(e){if(!o.encodings)o.encodings=r(7585);var t=o._canonicalizeEncoding(e);var n={};while(true){var i=o._codecDataCache[t];if(i)return i;var s=o.encodings[t];switch(typeof s){case"string":t=s;break;case"object":for(var a in s)n[a]=s[a];if(!n.encodingName)n.encodingName=t;t=s.type;break;case"function":if(!n.encodingName)n.encodingName=t;i=new s(n,o);o._codecDataCache[n.encodingName]=i;return i;default:throw new Error("Encoding not recognized: '"+e+"' (searched as: '"+t+"')")}}};o._canonicalizeEncoding=function(e){return(""+e).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g,"")};o.getEncoder=function getEncoder(e,t){var r=o.getCodec(e),n=new r.encoder(t,r);if(r.bomAware&&t&&t.addBOM)n=new i.PrependBOM(n,t);return n};o.getDecoder=function getDecoder(e,t){var r=o.getCodec(e),n=new r.decoder(t,r);if(r.bomAware&&!(t&&t.stripBOM===false))n=new i.StripBOM(n,t);return n};o.enableStreamingAPI=function enableStreamingAPI(e){if(o.supportsStreams)return;var t=r(2281)(e);o.IconvLiteEncoderStream=t.IconvLiteEncoderStream;o.IconvLiteDecoderStream=t.IconvLiteDecoderStream;o.encodeStream=function encodeStream(e,t){return new o.IconvLiteEncoderStream(o.getEncoder(e,t),t)};o.decodeStream=function decodeStream(e,t){return new o.IconvLiteDecoderStream(o.getDecoder(e,t),t)};o.supportsStreams=true};var s;try{s=r(2203)}catch(e){}if(s&&s.Transform){o.enableStreamingAPI(s)}else{o.encodeStream=o.decodeStream=function(){throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.")}}if(false){}},2281:(e,t,r)=>{"use strict";var n=r(2803).Buffer;e.exports=function(e){var t=e.Transform;function IconvLiteEncoderStream(e,r){this.conv=e;r=r||{};r.decodeStrings=false;t.call(this,r)}IconvLiteEncoderStream.prototype=Object.create(t.prototype,{constructor:{value:IconvLiteEncoderStream}});IconvLiteEncoderStream.prototype._transform=function(e,t,r){if(typeof e!="string")return r(new Error("Iconv encoding stream needs strings as its input."));try{var n=this.conv.write(e);if(n&&n.length)this.push(n);r()}catch(e){r(e)}};IconvLiteEncoderStream.prototype._flush=function(e){try{var t=this.conv.end();if(t&&t.length)this.push(t);e()}catch(t){e(t)}};IconvLiteEncoderStream.prototype.collect=function(e){var t=[];this.on("error",e);this.on("data",(function(e){t.push(e)}));this.on("end",(function(){e(null,n.concat(t))}));return this};function IconvLiteDecoderStream(e,r){this.conv=e;r=r||{};r.encoding=this.encoding="utf8";t.call(this,r)}IconvLiteDecoderStream.prototype=Object.create(t.prototype,{constructor:{value:IconvLiteDecoderStream}});IconvLiteDecoderStream.prototype._transform=function(e,t,r){if(!n.isBuffer(e)&&!(e instanceof Uint8Array))return r(new Error("Iconv decoding stream needs buffers as its input."));try{var i=this.conv.write(e);if(i&&i.length)this.push(i,this.encoding);r()}catch(e){r(e)}};IconvLiteDecoderStream.prototype._flush=function(e){try{var t=this.conv.end();if(t&&t.length)this.push(t,this.encoding);e()}catch(t){e(t)}};IconvLiteDecoderStream.prototype.collect=function(e){var t="";this.on("error",e);this.on("data",(function(e){t+=e}));this.on("end",(function(){e(null,t)}));return this};return{IconvLiteEncoderStream:IconvLiteEncoderStream,IconvLiteDecoderStream:IconvLiteDecoderStream}}},4519:e=>{"use strict";const isFullwidthCodePoint=e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)){return true}return false};e.exports=isFullwidthCodePoint;e.exports["default"]=isFullwidthCodePoint},744:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var o=i*7;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var c=(a[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*s;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var o=Math.abs(e);if(o>=i){return Math.round(e/i)+"d"}if(o>=n){return Math.round(e/n)+"h"}if(o>=r){return Math.round(e/r)+"m"}if(o>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var o=Math.abs(e);if(o>=i){return plural(e,o,i,"day")}if(o>=n){return plural(e,o,n,"hour")}if(o>=r){return plural(e,o,r,"minute")}if(o>=t){return plural(e,o,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},8428:(e,t,r)=>{const n=r(2203);class MuteStream extends n{#e=null;constructor(e={}){super(e);this.writable=this.readable=true;this.muted=false;this.on("pipe",this._onpipe);this.replace=e.replace;this._prompt=e.prompt||null;this._hadControl=false}#t(e,t){if(this._dest){return this._dest[e]}if(this._src){return this._src[e]}return t}#r(e,...t){if(typeof this._dest?.[e]==="function"){this._dest[e](...t)}if(typeof this._src?.[e]==="function"){this._src[e](...t)}}get isTTY(){if(this.#e!==null){return this.#e}return this.#t("isTTY",false)}set isTTY(e){this.#e=e}get rows(){return this.#t("rows")}get columns(){return this.#t("columns")}mute(){this.muted=true}unmute(){this.muted=false}_onpipe(e){this._src=e}pipe(e,t){this._dest=e;return super.pipe(e,t)}pause(){if(this._src){return this._src.pause()}}resume(){if(this._src){return this._src.resume()}}write(e){if(this.muted){if(!this.replace){return true}if(e.match(/^\u001b/)){if(e.indexOf(this._prompt)===0){e=e.slice(this._prompt.length);e=e.replace(/./g,this.replace);e=this._prompt+e}this._hadControl=true;return this.emit("data",e)}else{if(this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0){this._hadControl=false;this.emit("data",this._prompt);e=e.slice(this._prompt.length)}e=e.toString().replace(/./g,this.replace)}}this.emit("data",e)}end(e){if(this.muted){if(e&&this.replace){e=e.toString().replace(/./g,this.replace)}else{e=null}}if(e){this.emit("data",e)}this.emit("end")}destroy(...e){return this.#r("destroy",...e)}destroySoon(...e){return this.#r("destroySoon",...e)}close(...e){return this.#r("close",...e)}}e.exports=MuteStream},8312:e=>{function isPromise(e){return!!e&&(typeof e==="object"||typeof e==="function")&&typeof e.then==="function"}var t=e.exports=function(e,t,r="async"){if(typeof t==="string"){r=t;t=undefined}t=t||function(){};return function(){var n=arguments;var i=this;var o=new Promise((function(t,o){var s=false;const wrappedResolve=function(e){if(s){console.warn("Run-async promise already resolved.")}s=true;t(e)};var a=false;const wrappedReject=function(e){if(a){console.warn("Run-async promise already rejected.")}a=true;o(e)};var u=false;var c=false;var l=false;var doneFactory=function(){if(l){console.warn("Run-async async() called outside a valid run-async context, callback will be ignored.");return function(){}}if(c){console.warn("Run-async wrapped function (async) returned a promise.\nCalls to async() callback can have unexpected results.")}u=true;return function(e,t){if(e){wrappedReject(e)}else{wrappedResolve(t)}}};var f;if(i&&r&&Proxy){f=new Proxy(i,{get(e,t){if(t===r){if(t in e){console.warn(`${r} property is been shadowed by run-sync`)}return doneFactory}return Reflect.get(...arguments)}})}else{f={[r]:doneFactory}}var d=e.apply(f,Array.prototype.slice.call(n));if(u){if(isPromise(d)){console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve.")}}else{if(isPromise(d)){c=true;d.then(wrappedResolve,wrappedReject)}else{wrappedResolve(d)}}l=true}));o.then(t.bind(null,null),t);return o}};t.cb=function(e,r){return t((function(){var t=Array.prototype.slice.call(arguments);if(t.length===e.length-1){t.push(this.async())}return e.apply(this,t)}),r)}},4863:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0;t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0;t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0;t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var o=r(6692);Object.defineProperty(t,"Observable",{enumerable:true,get:function(){return o.Observable}});var s=r(2264);Object.defineProperty(t,"ConnectableObservable",{enumerable:true,get:function(){return s.ConnectableObservable}});var a=r(5609);Object.defineProperty(t,"observable",{enumerable:true,get:function(){return a.observable}});var u=r(3400);Object.defineProperty(t,"animationFrames",{enumerable:true,get:function(){return u.animationFrames}});var c=r(2357);Object.defineProperty(t,"Subject",{enumerable:true,get:function(){return c.Subject}});var l=r(279);Object.defineProperty(t,"BehaviorSubject",{enumerable:true,get:function(){return l.BehaviorSubject}});var f=r(9256);Object.defineProperty(t,"ReplaySubject",{enumerable:true,get:function(){return f.ReplaySubject}});var d=r(5889);Object.defineProperty(t,"AsyncSubject",{enumerable:true,get:function(){return d.AsyncSubject}});var h=r(7110);Object.defineProperty(t,"asap",{enumerable:true,get:function(){return h.asap}});Object.defineProperty(t,"asapScheduler",{enumerable:true,get:function(){return h.asapScheduler}});var p=r(5583);Object.defineProperty(t,"async",{enumerable:true,get:function(){return p.async}});Object.defineProperty(t,"asyncScheduler",{enumerable:true,get:function(){return p.asyncScheduler}});var b=r(64);Object.defineProperty(t,"queue",{enumerable:true,get:function(){return b.queue}});Object.defineProperty(t,"queueScheduler",{enumerable:true,get:function(){return b.queueScheduler}});var m=r(1968);Object.defineProperty(t,"animationFrame",{enumerable:true,get:function(){return m.animationFrame}});Object.defineProperty(t,"animationFrameScheduler",{enumerable:true,get:function(){return m.animationFrameScheduler}});var v=r(864);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:true,get:function(){return v.VirtualTimeScheduler}});Object.defineProperty(t,"VirtualAction",{enumerable:true,get:function(){return v.VirtualAction}});var g=r(3328);Object.defineProperty(t,"Scheduler",{enumerable:true,get:function(){return g.Scheduler}});var y=r(5208);Object.defineProperty(t,"Subscription",{enumerable:true,get:function(){return y.Subscription}});var _=r(2703);Object.defineProperty(t,"Subscriber",{enumerable:true,get:function(){return _.Subscriber}});var D=r(7166);Object.defineProperty(t,"Notification",{enumerable:true,get:function(){return D.Notification}});Object.defineProperty(t,"NotificationKind",{enumerable:true,get:function(){return D.NotificationKind}});var w=r(4424);Object.defineProperty(t,"pipe",{enumerable:true,get:function(){return w.pipe}});var C=r(1720);Object.defineProperty(t,"noop",{enumerable:true,get:function(){return C.noop}});var S=r(1418);Object.defineProperty(t,"identity",{enumerable:true,get:function(){return S.identity}});var E=r(65);Object.defineProperty(t,"isObservable",{enumerable:true,get:function(){return E.isObservable}});var O=r(436);Object.defineProperty(t,"lastValueFrom",{enumerable:true,get:function(){return O.lastValueFrom}});var k=r(7198);Object.defineProperty(t,"firstValueFrom",{enumerable:true,get:function(){return k.firstValueFrom}});var A=r(8775);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:true,get:function(){return A.ArgumentOutOfRangeError}});var P=r(1741);Object.defineProperty(t,"EmptyError",{enumerable:true,get:function(){return P.EmptyError}});var x=r(2069);Object.defineProperty(t,"NotFoundError",{enumerable:true,get:function(){return x.NotFoundError}});var T=r(3612);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:true,get:function(){return T.ObjectUnsubscribedError}});var F=r(8519);Object.defineProperty(t,"SequenceError",{enumerable:true,get:function(){return F.SequenceError}});var j=r(4176);Object.defineProperty(t,"TimeoutError",{enumerable:true,get:function(){return j.TimeoutError}});var M=r(4974);Object.defineProperty(t,"UnsubscriptionError",{enumerable:true,get:function(){return M.UnsubscriptionError}});var B=r(6919);Object.defineProperty(t,"bindCallback",{enumerable:true,get:function(){return B.bindCallback}});var I=r(9463);Object.defineProperty(t,"bindNodeCallback",{enumerable:true,get:function(){return I.bindNodeCallback}});var R=r(4253);Object.defineProperty(t,"combineLatest",{enumerable:true,get:function(){return R.combineLatest}});var L=r(8919);Object.defineProperty(t,"concat",{enumerable:true,get:function(){return L.concat}});var N=r(3125);Object.defineProperty(t,"connectable",{enumerable:true,get:function(){return N.connectable}});var U=r(3731);Object.defineProperty(t,"defer",{enumerable:true,get:function(){return U.defer}});var $=r(5458);Object.defineProperty(t,"empty",{enumerable:true,get:function(){return $.empty}});var W=r(6395);Object.defineProperty(t,"forkJoin",{enumerable:true,get:function(){return W.forkJoin}});var V=r(8687);Object.defineProperty(t,"from",{enumerable:true,get:function(){return V.from}});var q=r(4775);Object.defineProperty(t,"fromEvent",{enumerable:true,get:function(){return q.fromEvent}});var H=r(4237);Object.defineProperty(t,"fromEventPattern",{enumerable:true,get:function(){return H.fromEventPattern}});var G=r(9975);Object.defineProperty(t,"generate",{enumerable:true,get:function(){return G.generate}});var z=r(3719);Object.defineProperty(t,"iif",{enumerable:true,get:function(){return z.iif}});var K=r(8658);Object.defineProperty(t,"interval",{enumerable:true,get:function(){return K.interval}});var Y=r(6995);Object.defineProperty(t,"merge",{enumerable:true,get:function(){return Y.merge}});var J=r(2525);Object.defineProperty(t,"never",{enumerable:true,get:function(){return J.never}});var X=r(8482);Object.defineProperty(t,"of",{enumerable:true,get:function(){return X.of}});var Q=r(6756);Object.defineProperty(t,"onErrorResumeNext",{enumerable:true,get:function(){return Q.onErrorResumeNext}});var Z=r(822);Object.defineProperty(t,"pairs",{enumerable:true,get:function(){return Z.pairs}});var ee=r(673);Object.defineProperty(t,"partition",{enumerable:true,get:function(){return ee.partition}});var te=r(7446);Object.defineProperty(t,"race",{enumerable:true,get:function(){return te.race}});var re=r(3470);Object.defineProperty(t,"range",{enumerable:true,get:function(){return re.range}});var ne=r(2841);Object.defineProperty(t,"throwError",{enumerable:true,get:function(){return ne.throwError}});var ie=r(8914);Object.defineProperty(t,"timer",{enumerable:true,get:function(){return ie.timer}});var oe=r(2915);Object.defineProperty(t,"using",{enumerable:true,get:function(){return oe.using}});var se=r(9820);Object.defineProperty(t,"zip",{enumerable:true,get:function(){return se.zip}});var ae=r(1478);Object.defineProperty(t,"scheduled",{enumerable:true,get:function(){return ae.scheduled}});var ue=r(5458);Object.defineProperty(t,"EMPTY",{enumerable:true,get:function(){return ue.EMPTY}});var ce=r(2525);Object.defineProperty(t,"NEVER",{enumerable:true,get:function(){return ce.NEVER}});i(r(7516),t);var le=r(647);Object.defineProperty(t,"config",{enumerable:true,get:function(){return le.config}});var fe=r(3436);Object.defineProperty(t,"audit",{enumerable:true,get:function(){return fe.audit}});var de=r(7217);Object.defineProperty(t,"auditTime",{enumerable:true,get:function(){return de.auditTime}});var he=r(5805);Object.defineProperty(t,"buffer",{enumerable:true,get:function(){return he.buffer}});var pe=r(1442);Object.defineProperty(t,"bufferCount",{enumerable:true,get:function(){return pe.bufferCount}});var be=r(1896);Object.defineProperty(t,"bufferTime",{enumerable:true,get:function(){return be.bufferTime}});var me=r(165);Object.defineProperty(t,"bufferToggle",{enumerable:true,get:function(){return me.bufferToggle}});var ve=r(3261);Object.defineProperty(t,"bufferWhen",{enumerable:true,get:function(){return ve.bufferWhen}});var ge=r(5660);Object.defineProperty(t,"catchError",{enumerable:true,get:function(){return ge.catchError}});var ye=r(4031);Object.defineProperty(t,"combineAll",{enumerable:true,get:function(){return ye.combineAll}});var _e=r(6298);Object.defineProperty(t,"combineLatestAll",{enumerable:true,get:function(){return _e.combineLatestAll}});var De=r(809);Object.defineProperty(t,"combineLatestWith",{enumerable:true,get:function(){return De.combineLatestWith}});var we=r(5824);Object.defineProperty(t,"concatAll",{enumerable:true,get:function(){return we.concatAll}});var Ce=r(449);Object.defineProperty(t,"concatMap",{enumerable:true,get:function(){return Ce.concatMap}});var Se=r(6016);Object.defineProperty(t,"concatMapTo",{enumerable:true,get:function(){return Se.concatMapTo}});var Ee=r(3799);Object.defineProperty(t,"concatWith",{enumerable:true,get:function(){return Ee.concatWith}});var Oe=r(3201);Object.defineProperty(t,"connect",{enumerable:true,get:function(){return Oe.connect}});var ke=r(2372);Object.defineProperty(t,"count",{enumerable:true,get:function(){return ke.count}});var Ae=r(1704);Object.defineProperty(t,"debounce",{enumerable:true,get:function(){return Ae.debounce}});var Pe=r(7461);Object.defineProperty(t,"debounceTime",{enumerable:true,get:function(){return Pe.debounceTime}});var xe=r(7768);Object.defineProperty(t,"defaultIfEmpty",{enumerable:true,get:function(){return xe.defaultIfEmpty}});var Te=r(140);Object.defineProperty(t,"delay",{enumerable:true,get:function(){return Te.delay}});var Fe=r(5184);Object.defineProperty(t,"delayWhen",{enumerable:true,get:function(){return Fe.delayWhen}});var je=r(595);Object.defineProperty(t,"dematerialize",{enumerable:true,get:function(){return je.dematerialize}});var Me=r(6623);Object.defineProperty(t,"distinct",{enumerable:true,get:function(){return Me.distinct}});var Be=r(8128);Object.defineProperty(t,"distinctUntilChanged",{enumerable:true,get:function(){return Be.distinctUntilChanged}});var Ie=r(7814);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:true,get:function(){return Ie.distinctUntilKeyChanged}});var Re=r(246);Object.defineProperty(t,"elementAt",{enumerable:true,get:function(){return Re.elementAt}});var Le=r(3026);Object.defineProperty(t,"endWith",{enumerable:true,get:function(){return Le.endWith}});var Ne=r(6008);Object.defineProperty(t,"every",{enumerable:true,get:function(){return Ne.every}});var Ue=r(4469);Object.defineProperty(t,"exhaust",{enumerable:true,get:function(){return Ue.exhaust}});var $e=r(186);Object.defineProperty(t,"exhaustAll",{enumerable:true,get:function(){return $e.exhaustAll}});var We=r(4419);Object.defineProperty(t,"exhaustMap",{enumerable:true,get:function(){return We.exhaustMap}});var Ve=r(6911);Object.defineProperty(t,"expand",{enumerable:true,get:function(){return Ve.expand}});var qe=r(1909);Object.defineProperty(t,"filter",{enumerable:true,get:function(){return qe.filter}});var He=r(477);Object.defineProperty(t,"finalize",{enumerable:true,get:function(){return He.finalize}});var Ge=r(1208);Object.defineProperty(t,"find",{enumerable:true,get:function(){return Ge.find}});var ze=r(6946);Object.defineProperty(t,"findIndex",{enumerable:true,get:function(){return ze.findIndex}});var Ke=r(5873);Object.defineProperty(t,"first",{enumerable:true,get:function(){return Ke.first}});var Ye=r(9337);Object.defineProperty(t,"groupBy",{enumerable:true,get:function(){return Ye.groupBy}});var Je=r(7720);Object.defineProperty(t,"ignoreElements",{enumerable:true,get:function(){return Je.ignoreElements}});var Xe=r(5954);Object.defineProperty(t,"isEmpty",{enumerable:true,get:function(){return Xe.isEmpty}});var Qe=r(7999);Object.defineProperty(t,"last",{enumerable:true,get:function(){return Qe.last}});var Ze=r(3297);Object.defineProperty(t,"map",{enumerable:true,get:function(){return Ze.map}});var et=r(8528);Object.defineProperty(t,"mapTo",{enumerable:true,get:function(){return et.mapTo}});var tt=r(2442);Object.defineProperty(t,"materialize",{enumerable:true,get:function(){return tt.materialize}});var rt=r(9593);Object.defineProperty(t,"max",{enumerable:true,get:function(){return rt.max}});var nt=r(3156);Object.defineProperty(t,"mergeAll",{enumerable:true,get:function(){return nt.mergeAll}});var it=r(9956);Object.defineProperty(t,"flatMap",{enumerable:true,get:function(){return it.flatMap}});var ot=r(2397);Object.defineProperty(t,"mergeMap",{enumerable:true,get:function(){return ot.mergeMap}});var st=r(5484);Object.defineProperty(t,"mergeMapTo",{enumerable:true,get:function(){return st.mergeMapTo}});var at=r(2222);Object.defineProperty(t,"mergeScan",{enumerable:true,get:function(){return at.mergeScan}});var ut=r(1779);Object.defineProperty(t,"mergeWith",{enumerable:true,get:function(){return ut.mergeWith}});var ct=r(315);Object.defineProperty(t,"min",{enumerable:true,get:function(){return ct.min}});var lt=r(6889);Object.defineProperty(t,"multicast",{enumerable:true,get:function(){return lt.multicast}});var ft=r(2366);Object.defineProperty(t,"observeOn",{enumerable:true,get:function(){return ft.observeOn}});var dt=r(2292);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:true,get:function(){return dt.onErrorResumeNextWith}});var ht=r(2219);Object.defineProperty(t,"pairwise",{enumerable:true,get:function(){return ht.pairwise}});var pt=r(8338);Object.defineProperty(t,"pluck",{enumerable:true,get:function(){return pt.pluck}});var bt=r(7160);Object.defineProperty(t,"publish",{enumerable:true,get:function(){return bt.publish}});var mt=r(734);Object.defineProperty(t,"publishBehavior",{enumerable:true,get:function(){return mt.publishBehavior}});var vt=r(6312);Object.defineProperty(t,"publishLast",{enumerable:true,get:function(){return vt.publishLast}});var gt=r(451);Object.defineProperty(t,"publishReplay",{enumerable:true,get:function(){return gt.publishReplay}});var yt=r(5434);Object.defineProperty(t,"raceWith",{enumerable:true,get:function(){return yt.raceWith}});var _t=r(9241);Object.defineProperty(t,"reduce",{enumerable:true,get:function(){return _t.reduce}});var Dt=r(2420);Object.defineProperty(t,"repeat",{enumerable:true,get:function(){return Dt.repeat}});var wt=r(1320);Object.defineProperty(t,"repeatWhen",{enumerable:true,get:function(){return wt.repeatWhen}});var Ct=r(6109);Object.defineProperty(t,"retry",{enumerable:true,get:function(){return Ct.retry}});var St=r(557);Object.defineProperty(t,"retryWhen",{enumerable:true,get:function(){return St.retryWhen}});var Et=r(2307);Object.defineProperty(t,"refCount",{enumerable:true,get:function(){return Et.refCount}});var Ot=r(845);Object.defineProperty(t,"sample",{enumerable:true,get:function(){return Ot.sample}});var kt=r(5640);Object.defineProperty(t,"sampleTime",{enumerable:true,get:function(){return kt.sampleTime}});var At=r(714);Object.defineProperty(t,"scan",{enumerable:true,get:function(){return At.scan}});var Pt=r(3468);Object.defineProperty(t,"sequenceEqual",{enumerable:true,get:function(){return Pt.sequenceEqual}});var xt=r(656);Object.defineProperty(t,"share",{enumerable:true,get:function(){return xt.share}});var Tt=r(8267);Object.defineProperty(t,"shareReplay",{enumerable:true,get:function(){return Tt.shareReplay}});var Ft=r(9779);Object.defineProperty(t,"single",{enumerable:true,get:function(){return Ft.single}});var jt=r(9428);Object.defineProperty(t,"skip",{enumerable:true,get:function(){return jt.skip}});var Mt=r(6532);Object.defineProperty(t,"skipLast",{enumerable:true,get:function(){return Mt.skipLast}});var Bt=r(8370);Object.defineProperty(t,"skipUntil",{enumerable:true,get:function(){return Bt.skipUntil}});var It=r(7511);Object.defineProperty(t,"skipWhile",{enumerable:true,get:function(){return It.skipWhile}});var Rt=r(7395);Object.defineProperty(t,"startWith",{enumerable:true,get:function(){return Rt.startWith}});var Lt=r(5282);Object.defineProperty(t,"subscribeOn",{enumerable:true,get:function(){return Lt.subscribeOn}});var Nt=r(4188);Object.defineProperty(t,"switchAll",{enumerable:true,get:function(){return Nt.switchAll}});var Ut=r(2789);Object.defineProperty(t,"switchMap",{enumerable:true,get:function(){return Ut.switchMap}});var $t=r(564);Object.defineProperty(t,"switchMapTo",{enumerable:true,get:function(){return $t.switchMapTo}});var Wt=r(8054);Object.defineProperty(t,"switchScan",{enumerable:true,get:function(){return Wt.switchScan}});var Vt=r(8072);Object.defineProperty(t,"take",{enumerable:true,get:function(){return Vt.take}});var qt=r(5656);Object.defineProperty(t,"takeLast",{enumerable:true,get:function(){return qt.takeLast}});var Ht=r(4046);Object.defineProperty(t,"takeUntil",{enumerable:true,get:function(){return Ht.takeUntil}});var Gt=r(1163);Object.defineProperty(t,"takeWhile",{enumerable:true,get:function(){return Gt.takeWhile}});var zt=r(5673);Object.defineProperty(t,"tap",{enumerable:true,get:function(){return zt.tap}});var Kt=r(8923);Object.defineProperty(t,"throttle",{enumerable:true,get:function(){return Kt.throttle}});var Yt=r(6558);Object.defineProperty(t,"throttleTime",{enumerable:true,get:function(){return Yt.throttleTime}});var Jt=r(4747);Object.defineProperty(t,"throwIfEmpty",{enumerable:true,get:function(){return Jt.throwIfEmpty}});var Xt=r(635);Object.defineProperty(t,"timeInterval",{enumerable:true,get:function(){return Xt.timeInterval}});var Qt=r(4176);Object.defineProperty(t,"timeout",{enumerable:true,get:function(){return Qt.timeout}});var Zt=r(840);Object.defineProperty(t,"timeoutWith",{enumerable:true,get:function(){return Zt.timeoutWith}});var er=r(2415);Object.defineProperty(t,"timestamp",{enumerable:true,get:function(){return er.timestamp}});var tr=r(829);Object.defineProperty(t,"toArray",{enumerable:true,get:function(){return tr.toArray}});var rr=r(2619);Object.defineProperty(t,"window",{enumerable:true,get:function(){return rr.window}});var nr=r(8024);Object.defineProperty(t,"windowCount",{enumerable:true,get:function(){return nr.windowCount}});var ir=r(6897);Object.defineProperty(t,"windowTime",{enumerable:true,get:function(){return ir.windowTime}});var or=r(783);Object.defineProperty(t,"windowToggle",{enumerable:true,get:function(){return or.windowToggle}});var sr=r(4243);Object.defineProperty(t,"windowWhen",{enumerable:true,get:function(){return sr.windowWhen}});var ar=r(5972);Object.defineProperty(t,"withLatestFrom",{enumerable:true,get:function(){return ar.withLatestFrom}});var ur=r(3210);Object.defineProperty(t,"zipAll",{enumerable:true,get:function(){return ur.zipAll}});var cr=r(2268);Object.defineProperty(t,"zipWith",{enumerable:true,get:function(){return cr.zipWith}})},5889:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsyncSubject=void 0;var i=r(2357);var o=function(e){n(AsyncSubject,e);function AsyncSubject(){var t=e!==null&&e.apply(this,arguments)||this;t._value=null;t._hasValue=false;t._isComplete=false;return t}AsyncSubject.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,o=t.thrownError,s=t.isStopped,a=t._isComplete;if(r){e.error(o)}else if(s||a){n&&e.next(i);e.complete()}};AsyncSubject.prototype.next=function(e){if(!this.isStopped){this._value=e;this._hasValue=true}};AsyncSubject.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value,i=t._isComplete;if(!i){this._isComplete=true;r&&e.prototype.next.call(this,n);e.prototype.complete.call(this)}};return AsyncSubject}(i.Subject);t.AsyncSubject=o},279:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.BehaviorSubject=void 0;var i=r(2357);var o=function(e){n(BehaviorSubject,e);function BehaviorSubject(t){var r=e.call(this)||this;r._value=t;return r}Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:false,configurable:true});BehaviorSubject.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);!r.closed&&t.next(this._value);return r};BehaviorSubject.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t){throw r}this._throwIfClosed();return n};BehaviorSubject.prototype.next=function(t){e.prototype.next.call(this,this._value=t)};return BehaviorSubject}(i.Subject);t.BehaviorSubject=o},7166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.observeNotification=t.Notification=t.NotificationKind=void 0;var n=r(5458);var i=r(8482);var o=r(2841);var s=r(3856);var a;(function(e){e["NEXT"]="N";e["ERROR"]="E";e["COMPLETE"]="C"})(a=t.NotificationKind||(t.NotificationKind={}));var u=function(){function Notification(e,t,r){this.kind=e;this.value=t;this.error=r;this.hasValue=e==="N"}Notification.prototype.observe=function(e){return observeNotification(this,e)};Notification.prototype.do=function(e,t,r){var n=this,i=n.kind,o=n.value,s=n.error;return i==="N"?e===null||e===void 0?void 0:e(o):i==="E"?t===null||t===void 0?void 0:t(s):r===null||r===void 0?void 0:r()};Notification.prototype.accept=function(e,t,r){var n;return s.isFunction((n=e)===null||n===void 0?void 0:n.next)?this.observe(e):this.do(e,t,r)};Notification.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,s=e.error;var a=t==="N"?i.of(r):t==="E"?o.throwError((function(){return s})):t==="C"?n.EMPTY:0;if(!a){throw new TypeError("Unexpected notification kind "+t)}return a};Notification.createNext=function(e){return new Notification("N",e)};Notification.createError=function(e){return new Notification("E",undefined,e)};Notification.createComplete=function(){return Notification.completeNotification};Notification.completeNotification=new Notification("C");return Notification}();t.Notification=u;function observeNotification(e,t){var r,n,i;var o=e,s=o.kind,a=o.value,u=o.error;if(typeof s!=="string"){throw new TypeError('Invalid notification, missing "kind"')}s==="N"?(r=t.next)===null||r===void 0?void 0:r.call(t,a):s==="E"?(n=t.error)===null||n===void 0?void 0:n.call(t,u):(i=t.complete)===null||i===void 0?void 0:i.call(t)}t.observeNotification=observeNotification},3722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0;t.COMPLETE_NOTIFICATION=function(){return createNotification("C",undefined,undefined)}();function errorNotification(e){return createNotification("E",undefined,e)}t.errorNotification=errorNotification;function nextNotification(e){return createNotification("N",e,undefined)}t.nextNotification=nextNotification;function createNotification(e,t,r){return{kind:e,value:t,error:r}}t.createNotification=createNotification},6692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Observable=void 0;var n=r(2703);var i=r(5208);var o=r(5609);var s=r(4424);var a=r(647);var u=r(3856);var c=r(4225);var l=function(){function Observable(e){if(e){this._subscribe=e}}Observable.prototype.lift=function(e){var t=new Observable;t.source=this;t.operator=e;return t};Observable.prototype.subscribe=function(e,t,r){var i=this;var o=isSubscriber(e)?e:new n.SafeSubscriber(e,t,r);c.errorContext((function(){var e=i,t=e.operator,r=e.source;o.add(t?t.call(o,r):r?i._subscribe(o):i._trySubscribe(o))}));return o};Observable.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}};Observable.prototype.forEach=function(e,t){var r=this;t=getPromiseCtor(t);return new t((function(t,i){var o=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e);o.unsubscribe()}},error:i,complete:t});r.subscribe(o)}))};Observable.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)};Observable.prototype[o.observable]=function(){return this};Observable.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return s.pipeFromArray(e)(this)};Observable.prototype.toPromise=function(e){var t=this;e=getPromiseCtor(e);return new e((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))};Observable.create=function(e){return new Observable(e)};return Observable}();t.Observable=l;function getPromiseCtor(e){var t;return(t=e!==null&&e!==void 0?e:a.config.Promise)!==null&&t!==void 0?t:Promise}function isObserver(e){return e&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}function isSubscriber(e){return e&&e instanceof n.Subscriber||isObserver(e)&&i.isSubscription(e)}},9256:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.ReplaySubject=void 0;var i=r(2357);var o=r(1742);var s=function(e){n(ReplaySubject,e);function ReplaySubject(t,r,n){if(t===void 0){t=Infinity}if(r===void 0){r=Infinity}if(n===void 0){n=o.dateTimestampProvider}var i=e.call(this)||this;i._bufferSize=t;i._windowTime=r;i._timestampProvider=n;i._buffer=[];i._infiniteTimeWindow=true;i._infiniteTimeWindow=r===Infinity;i._bufferSize=Math.max(1,t);i._windowTime=Math.max(1,r);return i}ReplaySubject.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;if(!n){i.push(t);!o&&i.push(s.now()+a)}this._trimBuffer();e.prototype.next.call(this,t)};ReplaySubject.prototype._subscribe=function(e){this._throwIfClosed();this._trimBuffer();var t=this._innerSubscribe(e);var r=this,n=r._infiniteTimeWindow,i=r._buffer;var o=i.slice();for(var s=0;s<o.length&&!e.closed;s+=n?1:2){e.next(o[s])}this._checkFinalizedStatuses(e);return t};ReplaySubject.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow;var o=(i?1:2)*t;t<Infinity&&o<n.length&&n.splice(0,n.length-o);if(!i){var s=r.now();var a=0;for(var u=1;u<n.length&&n[u]<=s;u+=2){a=u}a&&n.splice(0,a+1)}};return ReplaySubject}(i.Subject);t.ReplaySubject=s},3328:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Scheduler=void 0;var n=r(1742);var i=function(){function Scheduler(e,t){if(t===void 0){t=Scheduler.now}this.schedulerActionCtor=e;this.now=t}Scheduler.prototype.schedule=function(e,t,r){if(t===void 0){t=0}return new this.schedulerActionCtor(this,e).schedule(r,t)};Scheduler.now=n.dateTimestampProvider.now;return Scheduler}();t.Scheduler=i},2357:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();var i=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.AnonymousSubject=t.Subject=void 0;var o=r(6692);var s=r(5208);var a=r(3612);var u=r(8645);var c=r(4225);var l=function(e){n(Subject,e);function Subject(){var t=e.call(this)||this;t.closed=false;t.currentObservers=null;t.observers=[];t.isStopped=false;t.hasError=false;t.thrownError=null;return t}Subject.prototype.lift=function(e){var t=new f(this,this);t.operator=e;return t};Subject.prototype._throwIfClosed=function(){if(this.closed){throw new a.ObjectUnsubscribedError}};Subject.prototype.next=function(e){var t=this;c.errorContext((function(){var r,n;t._throwIfClosed();if(!t.isStopped){if(!t.currentObservers){t.currentObservers=Array.from(t.observers)}try{for(var o=i(t.currentObservers),s=o.next();!s.done;s=o.next()){var a=s.value;a.next(e)}}catch(e){r={error:e}}finally{try{if(s&&!s.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}}}))};Subject.prototype.error=function(e){var t=this;c.errorContext((function(){t._throwIfClosed();if(!t.isStopped){t.hasError=t.isStopped=true;t.thrownError=e;var r=t.observers;while(r.length){r.shift().error(e)}}}))};Subject.prototype.complete=function(){var e=this;c.errorContext((function(){e._throwIfClosed();if(!e.isStopped){e.isStopped=true;var t=e.observers;while(t.length){t.shift().complete()}}}))};Subject.prototype.unsubscribe=function(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null};Object.defineProperty(Subject.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:false,configurable:true});Subject.prototype._trySubscribe=function(t){this._throwIfClosed();return e.prototype._trySubscribe.call(this,t)};Subject.prototype._subscribe=function(e){this._throwIfClosed();this._checkFinalizedStatuses(e);return this._innerSubscribe(e)};Subject.prototype._innerSubscribe=function(e){var t=this;var r=this,n=r.hasError,i=r.isStopped,o=r.observers;if(n||i){return s.EMPTY_SUBSCRIPTION}this.currentObservers=null;o.push(e);return new s.Subscription((function(){t.currentObservers=null;u.arrRemove(o,e)}))};Subject.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;if(r){e.error(n)}else if(i){e.complete()}};Subject.prototype.asObservable=function(){var e=new o.Observable;e.source=this;return e};Subject.create=function(e,t){return new f(e,t)};return Subject}(o.Observable);t.Subject=l;var f=function(e){n(AnonymousSubject,e);function AnonymousSubject(t,r){var n=e.call(this)||this;n.destination=t;n.source=r;return n}AnonymousSubject.prototype.next=function(e){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0?void 0:r.call(t,e)};AnonymousSubject.prototype.error=function(e){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0?void 0:r.call(t,e)};AnonymousSubject.prototype.complete=function(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0?void 0:t.call(e)};AnonymousSubject.prototype._subscribe=function(e){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&r!==void 0?r:s.EMPTY_SUBSCRIPTION};return AnonymousSubject}(l);t.AnonymousSubject=f},2703:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var i=r(3856);var o=r(5208);var s=r(647);var a=r(7493);var u=r(1720);var c=r(3722);var l=r(7465);var f=r(4225);var d=function(e){n(Subscriber,e);function Subscriber(r){var n=e.call(this)||this;n.isStopped=false;if(r){n.destination=r;if(o.isSubscription(r)){r.add(n)}}else{n.destination=t.EMPTY_OBSERVER}return n}Subscriber.create=function(e,t,r){return new b(e,t,r)};Subscriber.prototype.next=function(e){if(this.isStopped){handleStoppedNotification(c.nextNotification(e),this)}else{this._next(e)}};Subscriber.prototype.error=function(e){if(this.isStopped){handleStoppedNotification(c.errorNotification(e),this)}else{this.isStopped=true;this._error(e)}};Subscriber.prototype.complete=function(){if(this.isStopped){handleStoppedNotification(c.COMPLETE_NOTIFICATION,this)}else{this.isStopped=true;this._complete()}};Subscriber.prototype.unsubscribe=function(){if(!this.closed){this.isStopped=true;e.prototype.unsubscribe.call(this);this.destination=null}};Subscriber.prototype._next=function(e){this.destination.next(e)};Subscriber.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}};Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};return Subscriber}(o.Subscription);t.Subscriber=d;var h=Function.prototype.bind;function bind(e,t){return h.call(e,t)}var p=function(){function ConsumerObserver(e){this.partialObserver=e}ConsumerObserver.prototype.next=function(e){var t=this.partialObserver;if(t.next){try{t.next(e)}catch(e){handleUnhandledError(e)}}};ConsumerObserver.prototype.error=function(e){var t=this.partialObserver;if(t.error){try{t.error(e)}catch(e){handleUnhandledError(e)}}else{handleUnhandledError(e)}};ConsumerObserver.prototype.complete=function(){var e=this.partialObserver;if(e.complete){try{e.complete()}catch(e){handleUnhandledError(e)}}};return ConsumerObserver}();var b=function(e){n(SafeSubscriber,e);function SafeSubscriber(t,r,n){var o=e.call(this)||this;var a;if(i.isFunction(t)||!t){a={next:t!==null&&t!==void 0?t:undefined,error:r!==null&&r!==void 0?r:undefined,complete:n!==null&&n!==void 0?n:undefined}}else{var u;if(o&&s.config.useDeprecatedNextContext){u=Object.create(t);u.unsubscribe=function(){return o.unsubscribe()};a={next:t.next&&bind(t.next,u),error:t.error&&bind(t.error,u),complete:t.complete&&bind(t.complete,u)}}else{a=t}}o.destination=new p(a);return o}return SafeSubscriber}(d);t.SafeSubscriber=b;function handleUnhandledError(e){if(s.config.useDeprecatedSynchronousErrorHandling){f.captureError(e)}else{a.reportUnhandledError(e)}}function defaultErrorHandler(e){throw e}function handleStoppedNotification(e,t){var r=s.config.onStoppedNotification;r&&l.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.EMPTY_OBSERVER={closed:true,next:u.noop,error:defaultErrorHandler,complete:u.noop}},5208:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var s=r(3856);var a=r(4974);var u=r(8645);var c=function(){function Subscription(e){this.initialTeardown=e;this.closed=false;this._parentage=null;this._finalizers=null}Subscription.prototype.unsubscribe=function(){var e,t,r,u;var c;if(!this.closed){this.closed=true;var l=this._parentage;if(l){this._parentage=null;if(Array.isArray(l)){try{for(var f=n(l),d=f.next();!d.done;d=f.next()){var h=d.value;h.remove(this)}}catch(t){e={error:t}}finally{try{if(d&&!d.done&&(t=f.return))t.call(f)}finally{if(e)throw e.error}}}else{l.remove(this)}}var p=this.initialTeardown;if(s.isFunction(p)){try{p()}catch(e){c=e instanceof a.UnsubscriptionError?e.errors:[e]}}var b=this._finalizers;if(b){this._finalizers=null;try{for(var m=n(b),v=m.next();!v.done;v=m.next()){var g=v.value;try{execFinalizer(g)}catch(e){c=c!==null&&c!==void 0?c:[];if(e instanceof a.UnsubscriptionError){c=o(o([],i(c)),i(e.errors))}else{c.push(e)}}}}catch(e){r={error:e}}finally{try{if(v&&!v.done&&(u=m.return))u.call(m)}finally{if(r)throw r.error}}}if(c){throw new a.UnsubscriptionError(c)}}};Subscription.prototype.add=function(e){var t;if(e&&e!==this){if(this.closed){execFinalizer(e)}else{if(e instanceof Subscription){if(e.closed||e._hasParent(this)){return}e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}}};Subscription.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)};Subscription.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e};Subscription.prototype._removeParent=function(e){var t=this._parentage;if(t===e){this._parentage=null}else if(Array.isArray(t)){u.arrRemove(t,e)}};Subscription.prototype.remove=function(e){var t=this._finalizers;t&&u.arrRemove(t,e);if(e instanceof Subscription){e._removeParent(this)}};Subscription.EMPTY=function(){var e=new Subscription;e.closed=true;return e}();return Subscription}();t.Subscription=c;t.EMPTY_SUBSCRIPTION=c.EMPTY;function isSubscription(e){return e instanceof c||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}t.isSubscription=isSubscription;function execFinalizer(e){if(s.isFunction(e)){e()}else{e.unsubscribe()}}},647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.config=void 0;t.config={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false}},7198:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firstValueFrom=void 0;var n=r(1741);var i=r(2703);function firstValueFrom(e,t){var r=typeof t==="object";return new Promise((function(o,s){var a=new i.SafeSubscriber({next:function(e){o(e);a.unsubscribe()},error:s,complete:function(){if(r){o(t.defaultValue)}else{s(new n.EmptyError)}}});e.subscribe(a)}))}t.firstValueFrom=firstValueFrom},436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lastValueFrom=void 0;var n=r(1741);function lastValueFrom(e,t){var r=typeof t==="object";return new Promise((function(i,o){var s=false;var a;e.subscribe({next:function(e){a=e;s=true},error:o,complete:function(){if(s){i(a)}else if(r){i(t.defaultValue)}else{o(new n.EmptyError)}}})}))}t.lastValueFrom=lastValueFrom},2264:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.ConnectableObservable=void 0;var i=r(6692);var o=r(5208);var s=r(2307);var a=r(5161);var u=r(6613);var c=function(e){n(ConnectableObservable,e);function ConnectableObservable(t,r){var n=e.call(this)||this;n.source=t;n.subjectFactory=r;n._subject=null;n._refCount=0;n._connection=null;if(u.hasLift(t)){n.lift=t.lift}return n}ConnectableObservable.prototype._subscribe=function(e){return this.getSubject().subscribe(e)};ConnectableObservable.prototype.getSubject=function(){var e=this._subject;if(!e||e.isStopped){this._subject=this.subjectFactory()}return this._subject};ConnectableObservable.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null;e===null||e===void 0?void 0:e.unsubscribe()};ConnectableObservable.prototype.connect=function(){var e=this;var t=this._connection;if(!t){t=this._connection=new o.Subscription;var r=this.getSubject();t.add(this.source.subscribe(a.createOperatorSubscriber(r,undefined,(function(){e._teardown();r.complete()}),(function(t){e._teardown();r.error(t)}),(function(){return e._teardown()}))));if(t.closed){this._connection=null;t=o.Subscription.EMPTY}}return t};ConnectableObservable.prototype.refCount=function(){return s.refCount()(this)};return ConnectableObservable}(i.Observable);t.ConnectableObservable=c},6919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bindCallback=void 0;var n=r(9081);function bindCallback(e,t,r){return n.bindCallbackInternals(false,e,t,r)}t.bindCallback=bindCallback},9081:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.bindCallbackInternals=void 0;var o=r(3903);var s=r(6692);var a=r(5282);var u=r(969);var c=r(2366);var l=r(5889);function bindCallbackInternals(e,t,r,f){if(r){if(o.isScheduler(r)){f=r}else{return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}return bindCallbackInternals(e,t,f).apply(this,n).pipe(u.mapOneOrManyArgs(r))}}}if(f){return function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}return bindCallbackInternals(e,t).apply(this,r).pipe(a.subscribeOn(f),c.observeOn(f))}}return function(){var r=this;var o=[];for(var a=0;a<arguments.length;a++){o[a]=arguments[a]}var u=new l.AsyncSubject;var c=true;return new s.Observable((function(s){var a=u.subscribe(s);if(c){c=false;var l=false;var f=false;t.apply(r,i(i([],n(o)),[function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}if(e){var n=t.shift();if(n!=null){u.error(n);return}}u.next(1<t.length?t:t[0]);f=true;if(l){u.complete()}}]));if(f){u.complete()}l=true}return a}))}}t.bindCallbackInternals=bindCallbackInternals},9463:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bindNodeCallback=void 0;var n=r(9081);function bindNodeCallback(e,t,r){return n.bindCallbackInternals(true,e,t,r)}t.bindNodeCallback=bindNodeCallback},4253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.combineLatestInit=t.combineLatest=void 0;var n=r(6692);var i=r(2354);var o=r(8687);var s=r(1418);var a=r(969);var u=r(6909);var c=r(6579);var l=r(5161);var f=r(6804);function combineLatest(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=u.popScheduler(e);var l=u.popResultSelector(e);var f=i.argsArgArrayOrObject(e),d=f.args,h=f.keys;if(d.length===0){return o.from([],r)}var p=new n.Observable(combineLatestInit(d,r,h?function(e){return c.createObject(h,e)}:s.identity));return l?p.pipe(a.mapOneOrManyArgs(l)):p}t.combineLatest=combineLatest;function combineLatestInit(e,t,r){if(r===void 0){r=s.identity}return function(n){maybeSchedule(t,(function(){var i=e.length;var s=new Array(i);var a=i;var u=i;var _loop_1=function(i){maybeSchedule(t,(function(){var c=o.from(e[i],t);var f=false;c.subscribe(l.createOperatorSubscriber(n,(function(e){s[i]=e;if(!f){f=true;u--}if(!u){n.next(r(s.slice()))}}),(function(){if(! --a){n.complete()}})))}),n)};for(var c=0;c<i;c++){_loop_1(c)}}),n)}}t.combineLatestInit=combineLatestInit;function maybeSchedule(e,t,r){if(e){f.executeSchedule(r,e,t)}else{t()}}},8919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concat=void 0;var n=r(5824);var i=r(6909);var o=r(8687);function concat(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return n.concatAll()(o.from(e,i.popScheduler(e)))}t.concat=concat},3125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.connectable=void 0;var n=r(2357);var i=r(6692);var o=r(3731);var s={connector:function(){return new n.Subject},resetOnDisconnect:true};function connectable(e,t){if(t===void 0){t=s}var r=null;var n=t.connector,a=t.resetOnDisconnect,u=a===void 0?true:a;var c=n();var l=new i.Observable((function(e){return c.subscribe(e)}));l.connect=function(){if(!r||r.closed){r=o.defer((function(){return e})).subscribe(c);if(u){r.add((function(){return c=n()}))}}return r};return l}t.connectable=connectable},3731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defer=void 0;var n=r(6692);var i=r(8015);function defer(e){return new n.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}t.defer=defer},3400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.animationFrames=void 0;var n=r(6692);var i=r(2404);var o=r(3437);function animationFrames(e){return e?animationFramesFactory(e):s}t.animationFrames=animationFrames;function animationFramesFactory(e){return new n.Observable((function(t){var r=e||i.performanceTimestampProvider;var n=r.now();var s=0;var run=function(){if(!t.closed){s=o.animationFrameProvider.requestAnimationFrame((function(i){s=0;var o=r.now();t.next({timestamp:e?o:i,elapsed:o-n});run()}))}};run();return function(){if(s){o.animationFrameProvider.cancelAnimationFrame(s)}}}))}var s=animationFramesFactory()},5458:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.empty=t.EMPTY=void 0;var n=r(6692);t.EMPTY=new n.Observable((function(e){return e.complete()}));function empty(e){return e?emptyScheduled(e):t.EMPTY}t.empty=empty;function emptyScheduled(e){return new n.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}},6395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forkJoin=void 0;var n=r(6692);var i=r(2354);var o=r(8015);var s=r(6909);var a=r(5161);var u=r(969);var c=r(6579);function forkJoin(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=s.popResultSelector(e);var l=i.argsArgArrayOrObject(e),f=l.args,d=l.keys;var h=new n.Observable((function(e){var t=f.length;if(!t){e.complete();return}var r=new Array(t);var n=t;var i=t;var _loop_1=function(t){var s=false;o.innerFrom(f[t]).subscribe(a.createOperatorSubscriber(e,(function(e){if(!s){s=true;i--}r[t]=e}),(function(){return n--}),undefined,(function(){if(!n||!s){if(!i){e.next(d?c.createObject(d,r):r)}e.complete()}})))};for(var s=0;s<t;s++){_loop_1(s)}}));return r?h.pipe(u.mapOneOrManyArgs(r)):h}t.forkJoin=forkJoin},8687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.from=void 0;var n=r(1478);var i=r(8015);function from(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}t.from=from},4775:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};Object.defineProperty(t,"__esModule",{value:true});t.fromEvent=void 0;var i=r(8015);var o=r(6692);var s=r(2397);var a=r(4800);var u=r(3856);var c=r(969);var l=["addListener","removeListener"];var f=["addEventListener","removeEventListener"];var d=["on","off"];function fromEvent(e,t,r,h){if(u.isFunction(r)){h=r;r=undefined}if(h){return fromEvent(e,t,r).pipe(c.mapOneOrManyArgs(h))}var p=n(isEventTarget(e)?f.map((function(n){return function(i){return e[n](t,i,r)}})):isNodeStyleEventEmitter(e)?l.map(toCommonHandlerRegistry(e,t)):isJQueryStyleEventEmitter(e)?d.map(toCommonHandlerRegistry(e,t)):[],2),b=p[0],m=p[1];if(!b){if(a.isArrayLike(e)){return s.mergeMap((function(e){return fromEvent(e,t,r)}))(i.innerFrom(e))}}if(!b){throw new TypeError("Invalid event target")}return new o.Observable((function(e){var handler=function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return e.next(1<t.length?t:t[0])};b(handler);return function(){return m(handler)}}))}t.fromEvent=fromEvent;function toCommonHandlerRegistry(e,t){return function(r){return function(n){return e[r](t,n)}}}function isNodeStyleEventEmitter(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}function isJQueryStyleEventEmitter(e){return u.isFunction(e.on)&&u.isFunction(e.off)}function isEventTarget(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}},4237:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromEventPattern=void 0;var n=r(6692);var i=r(3856);var o=r(969);function fromEventPattern(e,t,r){if(r){return fromEventPattern(e,t).pipe(o.mapOneOrManyArgs(r))}return new n.Observable((function(r){var handler=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return r.next(e.length===1?e[0]:e)};var n=e(handler);return i.isFunction(t)?function(){return t(handler,n)}:undefined}))}t.fromEventPattern=fromEventPattern},2598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fromSubscribable=void 0;var n=r(6692);function fromSubscribable(e){return new n.Observable((function(t){return e.subscribe(t)}))}t.fromSubscribable=fromSubscribable},9975:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};Object.defineProperty(t,"__esModule",{value:true});t.generate=void 0;var i=r(1418);var o=r(3903);var s=r(3731);var a=r(178);function generate(e,t,r,u,c){var l,f;var d;var h;if(arguments.length===1){l=e,h=l.initialState,t=l.condition,r=l.iterate,f=l.resultSelector,d=f===void 0?i.identity:f,c=l.scheduler}else{h=e;if(!u||o.isScheduler(u)){d=i.identity;c=u}else{d=u}}function gen(){var e;return n(this,(function(n){switch(n.label){case 0:e=h;n.label=1;case 1:if(!(!t||t(e)))return[3,4];return[4,d(e)];case 2:n.sent();n.label=3;case 3:e=r(e);return[3,1];case 4:return[2]}}))}return s.defer(c?function(){return a.scheduleIterable(gen(),c)}:gen)}t.generate=generate},3719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.iif=void 0;var n=r(3731);function iif(e,t,r){return n.defer((function(){return e()?t:r}))}t.iif=iif},8015:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var o=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof s==="function"?s(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(n,i){r=e[t](r),settle(n,i,r.done,r.value)}))}}function settle(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var s=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var a=r(4800);var u=r(9063);var c=r(6692);var l=r(1414);var f=r(1744);var d=r(9404);var h=r(6045);var p=r(2519);var b=r(3856);var m=r(7493);var v=r(5609);function innerFrom(e){if(e instanceof c.Observable){return e}if(e!=null){if(l.isInteropObservable(e)){return fromInteropObservable(e)}if(a.isArrayLike(e)){return fromArrayLike(e)}if(u.isPromise(e)){return fromPromise(e)}if(f.isAsyncIterable(e)){return fromAsyncIterable(e)}if(h.isIterable(e)){return fromIterable(e)}if(p.isReadableStreamLike(e)){return fromReadableStreamLike(e)}}throw d.createInvalidObservableTypeError(e)}t.innerFrom=innerFrom;function fromInteropObservable(e){return new c.Observable((function(t){var r=e[v.observable]();if(b.isFunction(r.subscribe)){return r.subscribe(t)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}t.fromInteropObservable=fromInteropObservable;function fromArrayLike(e){return new c.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++){t.next(e[r])}t.complete()}))}t.fromArrayLike=fromArrayLike;function fromPromise(e){return new c.Observable((function(t){e.then((function(e){if(!t.closed){t.next(e);t.complete()}}),(function(e){return t.error(e)})).then(null,m.reportUnhandledError)}))}t.fromPromise=fromPromise;function fromIterable(e){return new c.Observable((function(t){var r,n;try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;t.next(a);if(t.closed){return}}}catch(e){r={error:e}}finally{try{if(o&&!o.done&&(n=i.return))n.call(i)}finally{if(r)throw r.error}}t.complete()}))}t.fromIterable=fromIterable;function fromAsyncIterable(e){return new c.Observable((function(t){process(e,t).catch((function(e){return t.error(e)}))}))}t.fromAsyncIterable=fromAsyncIterable;function fromReadableStreamLike(e){return fromAsyncIterable(p.readableStreamLikeToAsyncGenerator(e))}t.fromReadableStreamLike=fromReadableStreamLike;function process(e,t){var r,s;var a,u;return n(this,void 0,void 0,(function(){var n,c;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]);r=o(e);i.label=1;case 1:return[4,r.next()];case 2:if(!(s=i.sent(),!s.done))return[3,4];n=s.value;t.next(n);if(t.closed){return[2]}i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:c=i.sent();a={error:c};return[3,11];case 6:i.trys.push([6,,9,10]);if(!(s&&!s.done&&(u=r.return)))return[3,8];return[4,u.call(r)];case 7:i.sent();i.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:t.complete();return[2]}}))}))}},8658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.interval=void 0;var n=r(5583);var i=r(8914);function interval(e,t){if(e===void 0){e=0}if(t===void 0){t=n.asyncScheduler}if(e<0){e=0}return i.timer(e,e,t)}t.interval=interval},6995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;var n=r(3156);var i=r(8015);var o=r(5458);var s=r(6909);var a=r(8687);function merge(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=s.popScheduler(e);var u=s.popNumber(e,Infinity);var c=e;return!c.length?o.EMPTY:c.length===1?i.innerFrom(c[0]):n.mergeAll(u)(a.from(c,r))}t.merge=merge},2525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.never=t.NEVER=void 0;var n=r(6692);var i=r(1720);t.NEVER=new n.Observable(i.noop);function never(){return t.NEVER}t.never=never},8482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.of=void 0;var n=r(6909);var i=r(8687);function of(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=n.popScheduler(e);return i.from(e,r)}t.of=of},6756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.onErrorResumeNext=void 0;var n=r(6692);var i=r(2353);var o=r(5161);var s=r(1720);var a=r(8015);function onErrorResumeNext(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=i.argsOrArgArray(e);return new n.Observable((function(e){var t=0;var subscribeNext=function(){if(t<r.length){var n=void 0;try{n=a.innerFrom(r[t++])}catch(e){subscribeNext();return}var i=new o.OperatorSubscriber(e,undefined,s.noop,s.noop);n.subscribe(i);i.add(subscribeNext)}else{e.complete()}};subscribeNext()}))}t.onErrorResumeNext=onErrorResumeNext},822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pairs=void 0;var n=r(8687);function pairs(e,t){return n.from(Object.entries(e),t)}t.pairs=pairs},673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.partition=void 0;var n=r(8103);var i=r(1909);var o=r(8015);function partition(e,t,r){return[i.filter(t,r)(o.innerFrom(e)),i.filter(n.not(t,r))(o.innerFrom(e))]}t.partition=partition},7446:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.raceInit=t.race=void 0;var n=r(6692);var i=r(8015);var o=r(2353);var s=r(5161);function race(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}e=o.argsOrArgArray(e);return e.length===1?i.innerFrom(e[0]):new n.Observable(raceInit(e))}t.race=race;function raceInit(e){return function(t){var r=[];var _loop_1=function(n){r.push(i.innerFrom(e[n]).subscribe(s.createOperatorSubscriber(t,(function(e){if(r){for(var i=0;i<r.length;i++){i!==n&&r[i].unsubscribe()}r=null}t.next(e)}))))};for(var n=0;r&&!t.closed&&n<e.length;n++){_loop_1(n)}}}t.raceInit=raceInit},3470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.range=void 0;var n=r(6692);var i=r(5458);function range(e,t,r){if(t==null){t=e;e=0}if(t<=0){return i.EMPTY}var o=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule((function(){if(n<o){t.next(n++);this.schedule()}else{t.complete()}}))}:function(t){var r=e;while(r<o&&!t.closed){t.next(r++)}t.complete()})}t.range=range},2841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwError=void 0;var n=r(6692);var i=r(3856);function throwError(e,t){var r=i.isFunction(e)?e:function(){return e};var init=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(init,0,e)}:init)}t.throwError=throwError},8914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timer=void 0;var n=r(6692);var i=r(5583);var o=r(3903);var s=r(9908);function timer(e,t,r){if(e===void 0){e=0}if(r===void 0){r=i.async}var a=-1;if(t!=null){if(o.isScheduler(t)){r=t}else{a=t}}return new n.Observable((function(t){var n=s.isValidDate(e)?+e-r.now():e;if(n<0){n=0}var i=0;return r.schedule((function(){if(!t.closed){t.next(i++);if(0<=a){this.schedule(undefined,a)}else{t.complete()}}}),n)}))}t.timer=timer},2915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.using=void 0;var n=r(6692);var i=r(8015);var o=r(5458);function using(e,t){return new n.Observable((function(r){var n=e();var s=t(n);var a=s?i.innerFrom(s):o.EMPTY;a.subscribe(r);return function(){if(n){n.unsubscribe()}}}))}t.using=using},9820:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.zip=void 0;var o=r(6692);var s=r(8015);var a=r(2353);var u=r(5458);var c=r(5161);var l=r(6909);function zip(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=l.popResultSelector(e);var f=a.argsOrArgArray(e);return f.length?new o.Observable((function(e){var t=f.map((function(){return[]}));var o=f.map((function(){return false}));e.add((function(){t=o=null}));var _loop_1=function(a){s.innerFrom(f[a]).subscribe(c.createOperatorSubscriber(e,(function(s){t[a].push(s);if(t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],n(u))):u);if(t.some((function(e,t){return!e.length&&o[t]}))){e.complete()}}}),(function(){o[a]=true;!t[a].length&&e.complete()})))};for(var a=0;!e.closed&&a<f.length;a++){_loop_1(a)}return function(){t=o=null}})):u.EMPTY}t.zip=zip},5161:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var i=r(2703);function createOperatorSubscriber(e,t,r,n,i){return new o(e,t,r,n,i)}t.createOperatorSubscriber=createOperatorSubscriber;var o=function(e){n(OperatorSubscriber,e);function OperatorSubscriber(t,r,n,i,o,s){var a=e.call(this,t)||this;a.onFinalize=o;a.shouldUnsubscribe=s;a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next;a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error;a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete;return a}OperatorSubscriber.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this);!r&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}};return OperatorSubscriber}(i.Subscriber);t.OperatorSubscriber=o},3436:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.audit=void 0;var n=r(6613);var i=r(8015);var o=r(5161);function audit(e){return n.operate((function(t,r){var n=false;var s=null;var a=null;var u=false;var endDuration=function(){a===null||a===void 0?void 0:a.unsubscribe();a=null;if(n){n=false;var e=s;s=null;r.next(e)}u&&r.complete()};var cleanupDuration=function(){a=null;u&&r.complete()};t.subscribe(o.createOperatorSubscriber(r,(function(t){n=true;s=t;if(!a){i.innerFrom(e(t)).subscribe(a=o.createOperatorSubscriber(r,endDuration,cleanupDuration))}}),(function(){u=true;(!n||!a||a.closed)&&r.complete()})))}))}t.audit=audit},7217:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auditTime=void 0;var n=r(5583);var i=r(3436);var o=r(8914);function auditTime(e,t){if(t===void 0){t=n.asyncScheduler}return i.audit((function(){return o.timer(e,t)}))}t.auditTime=auditTime},5805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buffer=void 0;var n=r(6613);var i=r(1720);var o=r(5161);var s=r(8015);function buffer(e){return n.operate((function(t,r){var n=[];t.subscribe(o.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n);r.complete()})));s.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){var e=n;n=[];r.next(e)}),i.noop));return function(){n=null}}))}t.buffer=buffer},1442:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.bufferCount=void 0;var i=r(6613);var o=r(5161);var s=r(8645);function bufferCount(e,t){if(t===void 0){t=null}t=t!==null&&t!==void 0?t:e;return i.operate((function(r,i){var a=[];var u=0;r.subscribe(o.createOperatorSubscriber(i,(function(r){var o,c,l,f;var d=null;if(u++%t===0){a.push([])}try{for(var h=n(a),p=h.next();!p.done;p=h.next()){var b=p.value;b.push(r);if(e<=b.length){d=d!==null&&d!==void 0?d:[];d.push(b)}}}catch(e){o={error:e}}finally{try{if(p&&!p.done&&(c=h.return))c.call(h)}finally{if(o)throw o.error}}if(d){try{for(var m=n(d),v=m.next();!v.done;v=m.next()){var b=v.value;s.arrRemove(a,b);i.next(b)}}catch(e){l={error:e}}finally{try{if(v&&!v.done&&(f=m.return))f.call(m)}finally{if(l)throw l.error}}}}),(function(){var e,t;try{for(var r=n(a),o=r.next();!o.done;o=r.next()){var s=o.value;i.next(s)}}catch(t){e={error:t}}finally{try{if(o&&!o.done&&(t=r.return))t.call(r)}finally{if(e)throw e.error}}i.complete()}),undefined,(function(){a=null})))}))}t.bufferCount=bufferCount},1896:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.bufferTime=void 0;var i=r(5208);var o=r(6613);var s=r(5161);var a=r(8645);var u=r(5583);var c=r(6909);var l=r(6804);function bufferTime(e){var t,r;var f=[];for(var d=1;d<arguments.length;d++){f[d-1]=arguments[d]}var h=(t=c.popScheduler(f))!==null&&t!==void 0?t:u.asyncScheduler;var p=(r=f[0])!==null&&r!==void 0?r:null;var b=f[1]||Infinity;return o.operate((function(t,r){var o=[];var u=false;var emit=function(e){var t=e.buffer,n=e.subs;n.unsubscribe();a.arrRemove(o,e);r.next(t);u&&startBuffer()};var startBuffer=function(){if(o){var t=new i.Subscription;r.add(t);var n=[];var s={buffer:n,subs:t};o.push(s);l.executeSchedule(t,h,(function(){return emit(s)}),e)}};if(p!==null&&p>=0){l.executeSchedule(r,h,startBuffer,p,true)}else{u=true}startBuffer();var c=s.createOperatorSubscriber(r,(function(e){var t,r;var i=o.slice();try{for(var s=n(i),a=s.next();!a.done;a=s.next()){var u=a.value;var c=u.buffer;c.push(e);b<=c.length&&emit(u)}}catch(e){t={error:e}}finally{try{if(a&&!a.done&&(r=s.return))r.call(s)}finally{if(t)throw t.error}}}),(function(){while(o===null||o===void 0?void 0:o.length){r.next(o.shift().buffer)}c===null||c===void 0?void 0:c.unsubscribe();r.complete();r.unsubscribe()}),undefined,(function(){return o=null}));t.subscribe(c)}))}t.bufferTime=bufferTime},165:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.bufferToggle=void 0;var i=r(5208);var o=r(6613);var s=r(8015);var a=r(5161);var u=r(1720);var c=r(8645);function bufferToggle(e,t){return o.operate((function(r,o){var l=[];s.innerFrom(e).subscribe(a.createOperatorSubscriber(o,(function(e){var r=[];l.push(r);var n=new i.Subscription;var emitBuffer=function(){c.arrRemove(l,r);o.next(r);n.unsubscribe()};n.add(s.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(o,emitBuffer,u.noop)))}),u.noop));r.subscribe(a.createOperatorSubscriber(o,(function(e){var t,r;try{for(var i=n(l),o=i.next();!o.done;o=i.next()){var s=o.value;s.push(e)}}catch(e){t={error:e}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}}),(function(){while(l.length>0){o.next(l.shift())}o.complete()})))}))}t.bufferToggle=bufferToggle},3261:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bufferWhen=void 0;var n=r(6613);var i=r(1720);var o=r(5161);var s=r(8015);function bufferWhen(e){return n.operate((function(t,r){var n=null;var a=null;var openBuffer=function(){a===null||a===void 0?void 0:a.unsubscribe();var t=n;n=[];t&&r.next(t);s.innerFrom(e()).subscribe(a=o.createOperatorSubscriber(r,openBuffer,i.noop))};openBuffer();t.subscribe(o.createOperatorSubscriber(r,(function(e){return n===null||n===void 0?void 0:n.push(e)}),(function(){n&&r.next(n);r.complete()}),undefined,(function(){return n=a=null})))}))}t.bufferWhen=bufferWhen},5660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.catchError=void 0;var n=r(8015);var i=r(5161);var o=r(6613);function catchError(e){return o.operate((function(t,r){var o=null;var s=false;var a;o=t.subscribe(i.createOperatorSubscriber(r,undefined,undefined,(function(i){a=n.innerFrom(e(i,catchError(e)(t)));if(o){o.unsubscribe();o=null;a.subscribe(r)}else{s=true}})));if(s){o.unsubscribe();o=null;a.subscribe(r)}}))}t.catchError=catchError},4031:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.combineAll=void 0;var n=r(6298);t.combineAll=n.combineLatestAll},4789:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.combineLatest=void 0;var o=r(4253);var s=r(6613);var a=r(2353);var u=r(969);var c=r(4424);var l=r(6909);function combineLatest(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=l.popResultSelector(e);return r?c.pipe(combineLatest.apply(void 0,i([],n(e))),u.mapOneOrManyArgs(r)):s.operate((function(t,r){o.combineLatestInit(i([t],n(a.argsOrArgArray(e))))(r)}))}t.combineLatest=combineLatest},6298:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.combineLatestAll=void 0;var n=r(4253);var i=r(672);function combineLatestAll(e){return i.joinAllInternals(n.combineLatest,e)}t.combineLatestAll=combineLatestAll},809:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.combineLatestWith=void 0;var o=r(4789);function combineLatestWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.combineLatest.apply(void 0,i([],n(e)))}t.combineLatestWith=combineLatestWith},7964:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.concat=void 0;var o=r(6613);var s=r(5824);var a=r(6909);var u=r(8687);function concat(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=a.popScheduler(e);return o.operate((function(t,o){s.concatAll()(u.from(i([t],n(e)),r)).subscribe(o)}))}t.concat=concat},5824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatAll=void 0;var n=r(3156);function concatAll(){return n.mergeAll(1)}t.concatAll=concatAll},449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatMap=void 0;var n=r(2397);var i=r(3856);function concatMap(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}t.concatMap=concatMap},6016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatMapTo=void 0;var n=r(449);var i=r(3856);function concatMapTo(e,t){return i.isFunction(t)?n.concatMap((function(){return e}),t):n.concatMap((function(){return e}))}t.concatMapTo=concatMapTo},3799:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.concatWith=void 0;var o=r(7964);function concatWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.concat.apply(void 0,i([],n(e)))}t.concatWith=concatWith},3201:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.connect=void 0;var n=r(2357);var i=r(8015);var o=r(6613);var s=r(2598);var a={connector:function(){return new n.Subject}};function connect(e,t){if(t===void 0){t=a}var r=t.connector;return o.operate((function(t,n){var o=r();i.innerFrom(e(s.fromSubscribable(o))).subscribe(n);n.add(t.subscribe(o))}))}t.connect=connect},2372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.count=void 0;var n=r(9241);function count(e){return n.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)}t.count=count},1704:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debounce=void 0;var n=r(6613);var i=r(1720);var o=r(5161);var s=r(8015);function debounce(e){return n.operate((function(t,r){var n=false;var a=null;var u=null;var emit=function(){u===null||u===void 0?void 0:u.unsubscribe();u=null;if(n){n=false;var e=a;a=null;r.next(e)}};t.subscribe(o.createOperatorSubscriber(r,(function(t){u===null||u===void 0?void 0:u.unsubscribe();n=true;a=t;u=o.createOperatorSubscriber(r,emit,i.noop);s.innerFrom(e(t)).subscribe(u)}),(function(){emit();r.complete()}),undefined,(function(){a=u=null})))}))}t.debounce=debounce},7461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.debounceTime=void 0;var n=r(5583);var i=r(6613);var o=r(5161);function debounceTime(e,t){if(t===void 0){t=n.asyncScheduler}return i.operate((function(r,n){var i=null;var s=null;var a=null;var emit=function(){if(i){i.unsubscribe();i=null;var e=s;s=null;n.next(e)}};function emitWhenIdle(){var r=a+e;var o=t.now();if(o<r){i=this.schedule(undefined,r-o);n.add(i);return}emit()}r.subscribe(o.createOperatorSubscriber(n,(function(r){s=r;a=t.now();if(!i){i=t.schedule(emitWhenIdle,e);n.add(i)}}),(function(){emit();n.complete()}),undefined,(function(){s=i=null})))}))}t.debounceTime=debounceTime},7768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defaultIfEmpty=void 0;var n=r(6613);var i=r(5161);function defaultIfEmpty(e){return n.operate((function(t,r){var n=false;t.subscribe(i.createOperatorSubscriber(r,(function(e){n=true;r.next(e)}),(function(){if(!n){r.next(e)}r.complete()})))}))}t.defaultIfEmpty=defaultIfEmpty},140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delay=void 0;var n=r(5583);var i=r(5184);var o=r(8914);function delay(e,t){if(t===void 0){t=n.asyncScheduler}var r=o.timer(e,t);return i.delayWhen((function(){return r}))}t.delay=delay},5184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.delayWhen=void 0;var n=r(8919);var i=r(8072);var o=r(7720);var s=r(8528);var a=r(2397);var u=r(8015);function delayWhen(e,t){if(t){return function(r){return n.concat(t.pipe(i.take(1),o.ignoreElements()),r.pipe(delayWhen(e)))}}return a.mergeMap((function(t,r){return u.innerFrom(e(t,r)).pipe(i.take(1),s.mapTo(t))}))}t.delayWhen=delayWhen},595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dematerialize=void 0;var n=r(7166);var i=r(6613);var o=r(5161);function dematerialize(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){return n.observeNotification(e,t)})))}))}t.dematerialize=dematerialize},6623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.distinct=void 0;var n=r(6613);var i=r(5161);var o=r(1720);var s=r(8015);function distinct(e,t){return n.operate((function(r,n){var a=new Set;r.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;if(!a.has(r)){a.add(r);n.next(t)}})));t&&s.innerFrom(t).subscribe(i.createOperatorSubscriber(n,(function(){return a.clear()}),o.noop))}))}t.distinct=distinct},8128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.distinctUntilChanged=void 0;var n=r(1418);var i=r(6613);var o=r(5161);function distinctUntilChanged(e,t){if(t===void 0){t=n.identity}e=e!==null&&e!==void 0?e:defaultCompare;return i.operate((function(r,n){var i;var s=true;r.subscribe(o.createOperatorSubscriber(n,(function(r){var o=t(r);if(s||!e(i,o)){s=false;i=o;n.next(r)}})))}))}t.distinctUntilChanged=distinctUntilChanged;function defaultCompare(e,t){return e===t}},7814:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.distinctUntilKeyChanged=void 0;var n=r(8128);function distinctUntilKeyChanged(e,t){return n.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}t.distinctUntilKeyChanged=distinctUntilKeyChanged},246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.elementAt=void 0;var n=r(8775);var i=r(1909);var o=r(4747);var s=r(7768);var a=r(8072);function elementAt(e,t){if(e<0){throw new n.ArgumentOutOfRangeError}var r=arguments.length>=2;return function(u){return u.pipe(i.filter((function(t,r){return r===e})),a.take(1),r?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new n.ArgumentOutOfRangeError})))}}t.elementAt=elementAt},3026:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.endWith=void 0;var o=r(8919);var s=r(8482);function endWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return function(t){return o.concat(t,s.of.apply(void 0,i([],n(e))))}}t.endWith=endWith},6008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.every=void 0;var n=r(6613);var i=r(5161);function every(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(i){if(!e.call(t,i,o++,r)){n.next(false);n.complete()}}),(function(){n.next(true);n.complete()})))}))}t.every=every},4469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exhaust=void 0;var n=r(186);t.exhaust=n.exhaustAll},186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exhaustAll=void 0;var n=r(4419);var i=r(1418);function exhaustAll(){return n.exhaustMap(i.identity)}t.exhaustAll=exhaustAll},4419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.exhaustMap=void 0;var n=r(3297);var i=r(8015);var o=r(6613);var s=r(5161);function exhaustMap(e,t){if(t){return function(r){return r.pipe(exhaustMap((function(r,o){return i.innerFrom(e(r,o)).pipe(n.map((function(e,n){return t(r,e,o,n)})))})))}}return o.operate((function(t,r){var n=0;var o=null;var a=false;t.subscribe(s.createOperatorSubscriber(r,(function(t){if(!o){o=s.createOperatorSubscriber(r,undefined,(function(){o=null;a&&r.complete()}));i.innerFrom(e(t,n++)).subscribe(o)}}),(function(){a=true;!o&&r.complete()})))}))}t.exhaustMap=exhaustMap},6911:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.expand=void 0;var n=r(6613);var i=r(7757);function expand(e,t,r){if(t===void 0){t=Infinity}t=(t||0)<1?Infinity:t;return n.operate((function(n,o){return i.mergeInternals(n,o,e,t,undefined,true,r)}))}t.expand=expand},1909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.filter=void 0;var n=r(6613);var i=r(5161);function filter(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}t.filter=filter},477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.finalize=void 0;var n=r(6613);function finalize(e){return n.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}t.finalize=finalize},1208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createFind=t.find=void 0;var n=r(6613);var i=r(5161);function find(e,t){return n.operate(createFind(e,t,"value"))}t.find=find;function createFind(e,t,r){var n=r==="index";return function(r,o){var s=0;r.subscribe(i.createOperatorSubscriber(o,(function(i){var a=s++;if(e.call(t,i,a,r)){o.next(n?a:i);o.complete()}}),(function(){o.next(n?-1:undefined);o.complete()})))}}t.createFind=createFind},6946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findIndex=void 0;var n=r(6613);var i=r(1208);function findIndex(e,t){return n.operate(i.createFind(e,t,"index"))}t.findIndex=findIndex},5873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.first=void 0;var n=r(1741);var i=r(1909);var o=r(8072);var s=r(7768);var a=r(4747);var u=r(1418);function first(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.identity,o.take(1),r?s.defaultIfEmpty(t):a.throwIfEmpty((function(){return new n.EmptyError})))}}t.first=first},9956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.flatMap=void 0;var n=r(2397);t.flatMap=n.mergeMap},9337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.groupBy=void 0;var n=r(6692);var i=r(8015);var o=r(2357);var s=r(6613);var a=r(5161);function groupBy(e,t,r,u){return s.operate((function(s,c){var l;if(!t||typeof t==="function"){l=t}else{r=t.duration,l=t.element,u=t.connector}var f=new Map;var notify=function(e){f.forEach(e);e(c)};var handleError=function(e){return notify((function(t){return t.error(e)}))};var d=0;var h=false;var p=new a.OperatorSubscriber(c,(function(t){try{var n=e(t);var s=f.get(n);if(!s){f.set(n,s=u?u():new o.Subject);var d=createGroupedObservable(n,s);c.next(d);if(r){var h=a.createOperatorSubscriber(s,(function(){s.complete();h===null||h===void 0?void 0:h.unsubscribe()}),undefined,undefined,(function(){return f.delete(n)}));p.add(i.innerFrom(r(d)).subscribe(h))}}s.next(l?l(t):t)}catch(e){handleError(e)}}),(function(){return notify((function(e){return e.complete()}))}),handleError,(function(){return f.clear()}),(function(){h=true;return d===0}));s.subscribe(p);function createGroupedObservable(e,t){var r=new n.Observable((function(e){d++;var r=t.subscribe(e);return function(){r.unsubscribe();--d===0&&h&&p.unsubscribe()}}));r.key=e;return r}}))}t.groupBy=groupBy},7720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ignoreElements=void 0;var n=r(6613);var i=r(5161);var o=r(1720);function ignoreElements(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,o.noop))}))}t.ignoreElements=ignoreElements},5954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isEmpty=void 0;var n=r(6613);var i=r(5161);function isEmpty(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(false);t.complete()}),(function(){t.next(true);t.complete()})))}))}t.isEmpty=isEmpty},672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.joinAllInternals=void 0;var n=r(1418);var i=r(969);var o=r(4424);var s=r(2397);var a=r(829);function joinAllInternals(e,t){return o.pipe(a.toArray(),s.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):n.identity)}t.joinAllInternals=joinAllInternals},7999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.last=void 0;var n=r(1741);var i=r(1909);var o=r(5656);var s=r(4747);var a=r(7768);var u=r(1418);function last(e,t){var r=arguments.length>=2;return function(c){return c.pipe(e?i.filter((function(t,r){return e(t,r,c)})):u.identity,o.takeLast(1),r?a.defaultIfEmpty(t):s.throwIfEmpty((function(){return new n.EmptyError})))}}t.last=last},3297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.map=void 0;var n=r(6613);var i=r(5161);function map(e,t){return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,o++))})))}))}t.map=map},8528:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mapTo=void 0;var n=r(3297);function mapTo(e){return n.map((function(){return e}))}t.mapTo=mapTo},2442:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.materialize=void 0;var n=r(7166);var i=r(6613);var o=r(5161);function materialize(){return i.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(e){t.next(n.Notification.createNext(e))}),(function(){t.next(n.Notification.createComplete());t.complete()}),(function(e){t.next(n.Notification.createError(e));t.complete()})))}))}t.materialize=materialize},9593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.max=void 0;var n=r(9241);var i=r(3856);function max(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}t.max=max},9675:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.merge=void 0;var o=r(6613);var s=r(3156);var a=r(6909);var u=r(8687);function merge(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=a.popScheduler(e);var c=a.popNumber(e,Infinity);return o.operate((function(t,o){s.mergeAll(c)(u.from(i([t],n(e)),r)).subscribe(o)}))}t.merge=merge},3156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeAll=void 0;var n=r(2397);var i=r(1418);function mergeAll(e){if(e===void 0){e=Infinity}return n.mergeMap(i.identity,e)}t.mergeAll=mergeAll},7757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeInternals=void 0;var n=r(8015);var i=r(6804);var o=r(5161);function mergeInternals(e,t,r,s,a,u,c,l){var f=[];var d=0;var h=0;var p=false;var checkComplete=function(){if(p&&!f.length&&!d){t.complete()}};var outerNext=function(e){return d<s?doInnerSub(e):f.push(e)};var doInnerSub=function(e){u&&t.next(e);d++;var l=false;n.innerFrom(r(e,h++)).subscribe(o.createOperatorSubscriber(t,(function(e){a===null||a===void 0?void 0:a(e);if(u){outerNext(e)}else{t.next(e)}}),(function(){l=true}),undefined,(function(){if(l){try{d--;var _loop_1=function(){var e=f.shift();if(c){i.executeSchedule(t,c,(function(){return doInnerSub(e)}))}else{doInnerSub(e)}};while(f.length&&d<s){_loop_1()}checkComplete()}catch(e){t.error(e)}}})))};e.subscribe(o.createOperatorSubscriber(t,outerNext,(function(){p=true;checkComplete()})));return function(){l===null||l===void 0?void 0:l()}}t.mergeInternals=mergeInternals},2397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeMap=void 0;var n=r(3297);var i=r(8015);var o=r(6613);var s=r(7757);var a=r(3856);function mergeMap(e,t,r){if(r===void 0){r=Infinity}if(a.isFunction(t)){return mergeMap((function(r,o){return n.map((function(e,n){return t(r,e,o,n)}))(i.innerFrom(e(r,o)))}),r)}else if(typeof t==="number"){r=t}return o.operate((function(t,n){return s.mergeInternals(t,n,e,r)}))}t.mergeMap=mergeMap},5484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeMapTo=void 0;var n=r(2397);var i=r(3856);function mergeMapTo(e,t,r){if(r===void 0){r=Infinity}if(i.isFunction(t)){return n.mergeMap((function(){return e}),t,r)}if(typeof t==="number"){r=t}return n.mergeMap((function(){return e}),r)}t.mergeMapTo=mergeMapTo},2222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.mergeScan=void 0;var n=r(6613);var i=r(7757);function mergeScan(e,t,r){if(r===void 0){r=Infinity}return n.operate((function(n,o){var s=t;return i.mergeInternals(n,o,(function(t,r){return e(s,t,r)}),r,(function(e){s=e}),false,undefined,(function(){return s=null}))}))}t.mergeScan=mergeScan},1779:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.mergeWith=void 0;var o=r(9675);function mergeWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.merge.apply(void 0,i([],n(e)))}t.mergeWith=mergeWith},315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.min=void 0;var n=r(9241);var i=r(3856);function min(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}t.min=min},6889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multicast=void 0;var n=r(2264);var i=r(3856);var o=r(3201);function multicast(e,t){var r=i.isFunction(e)?e:function(){return e};if(i.isFunction(t)){return o.connect(t,{connector:r})}return function(e){return new n.ConnectableObservable(e,r)}}t.multicast=multicast},2366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.observeOn=void 0;var n=r(6804);var i=r(6613);var o=r(5161);function observeOn(e,t){if(t===void 0){t=0}return i.operate((function(r,i){r.subscribe(o.createOperatorSubscriber(i,(function(r){return n.executeSchedule(i,e,(function(){return i.next(r)}),t)}),(function(){return n.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(r){return n.executeSchedule(i,e,(function(){return i.error(r)}),t)})))}))}t.observeOn=observeOn},2292:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var o=r(2353);var s=r(6756);function onErrorResumeNextWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=o.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,i([e],n(r)))}}t.onErrorResumeNextWith=onErrorResumeNextWith;t.onErrorResumeNext=onErrorResumeNextWith},2219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pairwise=void 0;var n=r(6613);var i=r(5161);function pairwise(){return n.operate((function(e,t){var r;var n=false;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=r;r=e;n&&t.next([i,e]);n=true})))}))}t.pairwise=pairwise},8338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pluck=void 0;var n=r(3297);function pluck(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=e.length;if(r===0){throw new Error("list of properties cannot be empty.")}return n.map((function(t){var n=t;for(var i=0;i<r;i++){var o=n===null||n===void 0?void 0:n[e[i]];if(typeof o!=="undefined"){n=o}else{return undefined}}return n}))}t.pluck=pluck},7160:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publish=void 0;var n=r(2357);var i=r(6889);var o=r(3201);function publish(e){return e?function(t){return o.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}t.publish=publish},734:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publishBehavior=void 0;var n=r(279);var i=r(2264);function publishBehavior(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return r}))}}t.publishBehavior=publishBehavior},6312:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publishLast=void 0;var n=r(5889);var i=r(2264);function publishLast(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}t.publishLast=publishLast},451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.publishReplay=void 0;var n=r(9256);var i=r(6889);var o=r(3856);function publishReplay(e,t,r,s){if(r&&!o.isFunction(r)){s=r}var a=o.isFunction(r)?r:undefined;return function(r){return i.multicast(new n.ReplaySubject(e,t,s),a)(r)}}t.publishReplay=publishReplay},5434:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.raceWith=void 0;var o=r(7446);var s=r(6613);var a=r(1418);function raceWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return!e.length?a.identity:s.operate((function(t,r){o.raceInit(i([t],n(e)))(r)}))}t.raceWith=raceWith},9241:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reduce=void 0;var n=r(5590);var i=r(6613);function reduce(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,false,true))}t.reduce=reduce},2307:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.refCount=void 0;var n=r(6613);var i=r(5161);function refCount(){return n.operate((function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,undefined,undefined,undefined,(function(){if(!e||e._refCount<=0||0<--e._refCount){r=null;return}var n=e._connection;var i=r;r=null;if(n&&(!i||n===i)){n.unsubscribe()}t.unsubscribe()}));e.subscribe(n);if(!n.closed){r=e.connect()}}))}t.refCount=refCount},2420:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.repeat=void 0;var n=r(5458);var i=r(6613);var o=r(5161);var s=r(8015);var a=r(8914);function repeat(e){var t;var r=Infinity;var u;if(e!=null){if(typeof e==="object"){t=e.count,r=t===void 0?Infinity:t,u=e.delay}else{r=e}}return r<=0?function(){return n.EMPTY}:i.operate((function(e,t){var n=0;var i;var resubscribe=function(){i===null||i===void 0?void 0:i.unsubscribe();i=null;if(u!=null){var e=typeof u==="number"?a.timer(u):s.innerFrom(u(n));var r=o.createOperatorSubscriber(t,(function(){r.unsubscribe();subscribeToSource()}));e.subscribe(r)}else{subscribeToSource()}};var subscribeToSource=function(){var s=false;i=e.subscribe(o.createOperatorSubscriber(t,undefined,(function(){if(++n<r){if(i){resubscribe()}else{s=true}}else{t.complete()}})));if(s){resubscribe()}};subscribeToSource()}))}t.repeat=repeat},1320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.repeatWhen=void 0;var n=r(8015);var i=r(2357);var o=r(6613);var s=r(5161);function repeatWhen(e){return o.operate((function(t,r){var o;var a=false;var u;var c=false;var l=false;var checkComplete=function(){return l&&c&&(r.complete(),true)};var getCompletionSubject=function(){if(!u){u=new i.Subject;n.innerFrom(e(u)).subscribe(s.createOperatorSubscriber(r,(function(){if(o){subscribeForRepeatWhen()}else{a=true}}),(function(){c=true;checkComplete()})))}return u};var subscribeForRepeatWhen=function(){l=false;o=t.subscribe(s.createOperatorSubscriber(r,undefined,(function(){l=true;!checkComplete()&&getCompletionSubject().next()})));if(a){o.unsubscribe();o=null;a=false;subscribeForRepeatWhen()}};subscribeForRepeatWhen()}))}t.repeatWhen=repeatWhen},6109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retry=void 0;var n=r(6613);var i=r(5161);var o=r(1418);var s=r(8914);var a=r(8015);function retry(e){if(e===void 0){e=Infinity}var t;if(e&&typeof e==="object"){t=e}else{t={count:e}}var r=t.count,u=r===void 0?Infinity:r,c=t.delay,l=t.resetOnSuccess,f=l===void 0?false:l;return u<=0?o.identity:n.operate((function(e,t){var r=0;var n;var subscribeForRetry=function(){var o=false;n=e.subscribe(i.createOperatorSubscriber(t,(function(e){if(f){r=0}t.next(e)}),undefined,(function(e){if(r++<u){var resub_1=function(){if(n){n.unsubscribe();n=null;subscribeForRetry()}else{o=true}};if(c!=null){var l=typeof c==="number"?s.timer(c):a.innerFrom(c(e,r));var f=i.createOperatorSubscriber(t,(function(){f.unsubscribe();resub_1()}),(function(){t.complete()}));l.subscribe(f)}else{resub_1()}}else{t.error(e)}})));if(o){n.unsubscribe();n=null;subscribeForRetry()}};subscribeForRetry()}))}t.retry=retry},557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.retryWhen=void 0;var n=r(8015);var i=r(2357);var o=r(6613);var s=r(5161);function retryWhen(e){return o.operate((function(t,r){var o;var a=false;var u;var subscribeForRetryWhen=function(){o=t.subscribe(s.createOperatorSubscriber(r,undefined,undefined,(function(t){if(!u){u=new i.Subject;n.innerFrom(e(u)).subscribe(s.createOperatorSubscriber(r,(function(){return o?subscribeForRetryWhen():a=true})))}if(u){u.next(t)}})));if(a){o.unsubscribe();o=null;a=false;subscribeForRetryWhen()}};subscribeForRetryWhen()}))}t.retryWhen=retryWhen},845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sample=void 0;var n=r(8015);var i=r(6613);var o=r(1720);var s=r(5161);function sample(e){return i.operate((function(t,r){var i=false;var a=null;t.subscribe(s.createOperatorSubscriber(r,(function(e){i=true;a=e})));n.innerFrom(e).subscribe(s.createOperatorSubscriber(r,(function(){if(i){i=false;var e=a;a=null;r.next(e)}}),o.noop))}))}t.sample=sample},5640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sampleTime=void 0;var n=r(5583);var i=r(845);var o=r(8658);function sampleTime(e,t){if(t===void 0){t=n.asyncScheduler}return i.sample(o.interval(e,t))}t.sampleTime=sampleTime},714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scan=void 0;var n=r(6613);var i=r(5590);function scan(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,true))}t.scan=scan},5590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scanInternals=void 0;var n=r(5161);function scanInternals(e,t,r,i,o){return function(s,a){var u=r;var c=t;var l=0;s.subscribe(n.createOperatorSubscriber(a,(function(t){var r=l++;c=u?e(c,t,r):(u=true,t);i&&a.next(c)}),o&&function(){u&&a.next(c);a.complete()}))}}t.scanInternals=scanInternals},3468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sequenceEqual=void 0;var n=r(6613);var i=r(5161);var o=r(8015);function sequenceEqual(e,t){if(t===void 0){t=function(e,t){return e===t}}return n.operate((function(r,n){var s=createState();var a=createState();var emit=function(e){n.next(e);n.complete()};var createSubscriber=function(e,r){var o=i.createOperatorSubscriber(n,(function(n){var i=r.buffer,o=r.complete;if(i.length===0){o?emit(false):e.buffer.push(n)}else{!t(n,i.shift())&&emit(false)}}),(function(){e.complete=true;var t=r.complete,n=r.buffer;t&&emit(n.length===0);o===null||o===void 0?void 0:o.unsubscribe()}));return o};r.subscribe(createSubscriber(s,a));o.innerFrom(e).subscribe(createSubscriber(a,s))}))}t.sequenceEqual=sequenceEqual;function createState(){return{buffer:[],complete:false}}},656:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.share=void 0;var o=r(8015);var s=r(2357);var a=r(2703);var u=r(6613);function share(e){if(e===void 0){e={}}var t=e.connector,r=t===void 0?function(){return new s.Subject}:t,n=e.resetOnError,i=n===void 0?true:n,c=e.resetOnComplete,l=c===void 0?true:c,f=e.resetOnRefCountZero,d=f===void 0?true:f;return function(e){var t;var n;var s;var c=0;var f=false;var h=false;var cancelReset=function(){n===null||n===void 0?void 0:n.unsubscribe();n=undefined};var reset=function(){cancelReset();t=s=undefined;f=h=false};var resetAndUnsubscribe=function(){var e=t;reset();e===null||e===void 0?void 0:e.unsubscribe()};return u.operate((function(e,u){c++;if(!h&&!f){cancelReset()}var p=s=s!==null&&s!==void 0?s:r();u.add((function(){c--;if(c===0&&!h&&!f){n=handleReset(resetAndUnsubscribe,d)}}));p.subscribe(u);if(!t&&c>0){t=new a.SafeSubscriber({next:function(e){return p.next(e)},error:function(e){h=true;cancelReset();n=handleReset(reset,i,e);p.error(e)},complete:function(){f=true;cancelReset();n=handleReset(reset,l);p.complete()}});o.innerFrom(e).subscribe(t)}}))(e)}}t.share=share;function handleReset(e,t){var r=[];for(var s=2;s<arguments.length;s++){r[s-2]=arguments[s]}if(t===true){e();return}if(t===false){return}var u=new a.SafeSubscriber({next:function(){u.unsubscribe();e()}});return o.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(u)}},8267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shareReplay=void 0;var n=r(9256);var i=r(656);function shareReplay(e,t,r){var o,s,a;var u;var c=false;if(e&&typeof e==="object"){o=e.bufferSize,u=o===void 0?Infinity:o,s=e.windowTime,t=s===void 0?Infinity:s,a=e.refCount,c=a===void 0?false:a,r=e.scheduler}else{u=e!==null&&e!==void 0?e:Infinity}return i.share({connector:function(){return new n.ReplaySubject(u,t,r)},resetOnError:true,resetOnComplete:false,resetOnRefCountZero:c})}t.shareReplay=shareReplay},9779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.single=void 0;var n=r(1741);var i=r(8519);var o=r(2069);var s=r(6613);var a=r(5161);function single(e){return s.operate((function(t,r){var s=false;var u;var c=false;var l=0;t.subscribe(a.createOperatorSubscriber(r,(function(n){c=true;if(!e||e(n,l++,t)){s&&r.error(new i.SequenceError("Too many matching values"));s=true;u=n}}),(function(){if(s){r.next(u);r.complete()}else{r.error(c?new o.NotFoundError("No matching values"):new n.EmptyError)}})))}))}t.single=single},9428:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skip=void 0;var n=r(1909);function skip(e){return n.filter((function(t,r){return e<=r}))}t.skip=skip},6532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipLast=void 0;var n=r(1418);var i=r(6613);var o=r(5161);function skipLast(e){return e<=0?n.identity:i.operate((function(t,r){var n=new Array(e);var i=0;t.subscribe(o.createOperatorSubscriber(r,(function(t){var o=i++;if(o<e){n[o]=t}else{var s=o%e;var a=n[s];n[s]=t;r.next(a)}})));return function(){n=null}}))}t.skipLast=skipLast},8370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipUntil=void 0;var n=r(6613);var i=r(5161);var o=r(8015);var s=r(1720);function skipUntil(e){return n.operate((function(t,r){var n=false;var a=i.createOperatorSubscriber(r,(function(){a===null||a===void 0?void 0:a.unsubscribe();n=true}),s.noop);o.innerFrom(e).subscribe(a);t.subscribe(i.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))}t.skipUntil=skipUntil},7511:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.skipWhile=void 0;var n=r(6613);var i=r(5161);function skipWhile(e){return n.operate((function(t,r){var n=false;var o=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,o++)))&&r.next(t)})))}))}t.skipWhile=skipWhile},7395:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.startWith=void 0;var n=r(8919);var i=r(6909);var o=r(6613);function startWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=i.popScheduler(e);return o.operate((function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)}))}t.startWith=startWith},5282:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.subscribeOn=void 0;var n=r(6613);function subscribeOn(e,t){if(t===void 0){t=0}return n.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}t.subscribeOn=subscribeOn},4188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchAll=void 0;var n=r(2789);var i=r(1418);function switchAll(){return n.switchMap(i.identity)}t.switchAll=switchAll},2789:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchMap=void 0;var n=r(8015);var i=r(6613);var o=r(5161);function switchMap(e,t){return i.operate((function(r,i){var s=null;var a=0;var u=false;var checkComplete=function(){return u&&!s&&i.complete()};r.subscribe(o.createOperatorSubscriber(i,(function(r){s===null||s===void 0?void 0:s.unsubscribe();var u=0;var c=a++;n.innerFrom(e(r,c)).subscribe(s=o.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,c,u++):e)}),(function(){s=null;checkComplete()})))}),(function(){u=true;checkComplete()})))}))}t.switchMap=switchMap},564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchMapTo=void 0;var n=r(2789);var i=r(3856);function switchMapTo(e,t){return i.isFunction(t)?n.switchMap((function(){return e}),t):n.switchMap((function(){return e}))}t.switchMapTo=switchMapTo},8054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.switchScan=void 0;var n=r(2789);var i=r(6613);function switchScan(e,t){return i.operate((function(r,i){var o=t;n.switchMap((function(t,r){return e(o,t,r)}),(function(e,t){return o=t,t}))(r).subscribe(i);return function(){o=null}}))}t.switchScan=switchScan},8072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.take=void 0;var n=r(5458);var i=r(6613);var o=r(5161);function take(e){return e<=0?function(){return n.EMPTY}:i.operate((function(t,r){var n=0;t.subscribe(o.createOperatorSubscriber(r,(function(t){if(++n<=e){r.next(t);if(e<=n){r.complete()}}})))}))}t.take=take},5656:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.takeLast=void 0;var i=r(5458);var o=r(6613);var s=r(5161);function takeLast(e){return e<=0?function(){return i.EMPTY}:o.operate((function(t,r){var i=[];t.subscribe(s.createOperatorSubscriber(r,(function(t){i.push(t);e<i.length&&i.shift()}),(function(){var e,t;try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var a=s.value;r.next(a)}}catch(t){e={error:t}}finally{try{if(s&&!s.done&&(t=o.return))t.call(o)}finally{if(e)throw e.error}}r.complete()}),undefined,(function(){i=null})))}))}t.takeLast=takeLast},4046:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.takeUntil=void 0;var n=r(6613);var i=r(5161);var o=r(8015);var s=r(1720);function takeUntil(e){return n.operate((function(t,r){o.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){return r.complete()}),s.noop));!r.closed&&t.subscribe(r)}))}t.takeUntil=takeUntil},1163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.takeWhile=void 0;var n=r(6613);var i=r(5161);function takeWhile(e,t){if(t===void 0){t=false}return n.operate((function(r,n){var o=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){var i=e(r,o++);(i||t)&&n.next(r);!i&&n.complete()})))}))}t.takeWhile=takeWhile},5673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tap=void 0;var n=r(3856);var i=r(6613);var o=r(5161);var s=r(1418);function tap(e,t,r){var a=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return a?i.operate((function(e,t){var r;(r=a.subscribe)===null||r===void 0?void 0:r.call(a);var n=true;e.subscribe(o.createOperatorSubscriber(t,(function(e){var r;(r=a.next)===null||r===void 0?void 0:r.call(a,e);t.next(e)}),(function(){var e;n=false;(e=a.complete)===null||e===void 0?void 0:e.call(a);t.complete()}),(function(e){var r;n=false;(r=a.error)===null||r===void 0?void 0:r.call(a,e);t.error(e)}),(function(){var e,t;if(n){(e=a.unsubscribe)===null||e===void 0?void 0:e.call(a)}(t=a.finalize)===null||t===void 0?void 0:t.call(a)})))})):s.identity}t.tap=tap},8923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttle=void 0;var n=r(6613);var i=r(5161);var o=r(8015);function throttle(e,t){return n.operate((function(r,n){var s=t!==null&&t!==void 0?t:{},a=s.leading,u=a===void 0?true:a,c=s.trailing,l=c===void 0?false:c;var f=false;var d=null;var h=null;var p=false;var endThrottling=function(){h===null||h===void 0?void 0:h.unsubscribe();h=null;if(l){send();p&&n.complete()}};var cleanupThrottling=function(){h=null;p&&n.complete()};var startThrottle=function(t){return h=o.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,endThrottling,cleanupThrottling))};var send=function(){if(f){f=false;var e=d;d=null;n.next(e);!p&&startThrottle(e)}};r.subscribe(i.createOperatorSubscriber(n,(function(e){f=true;d=e;!(h&&!h.closed)&&(u?send():startThrottle(e))}),(function(){p=true;!(l&&f&&h&&!h.closed)&&n.complete()})))}))}t.throttle=throttle},6558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throttleTime=void 0;var n=r(5583);var i=r(8923);var o=r(8914);function throttleTime(e,t,r){if(t===void 0){t=n.asyncScheduler}var s=o.timer(e,t);return i.throttle((function(){return s}),r)}t.throttleTime=throttleTime},4747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.throwIfEmpty=void 0;var n=r(1741);var i=r(6613);var o=r(5161);function throwIfEmpty(e){if(e===void 0){e=defaultErrorFactory}return i.operate((function(t,r){var n=false;t.subscribe(o.createOperatorSubscriber(r,(function(e){n=true;r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))}t.throwIfEmpty=throwIfEmpty;function defaultErrorFactory(){return new n.EmptyError}},635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TimeInterval=t.timeInterval=void 0;var n=r(5583);var i=r(6613);var o=r(5161);function timeInterval(e){if(e===void 0){e=n.asyncScheduler}return i.operate((function(t,r){var n=e.now();t.subscribe(o.createOperatorSubscriber(r,(function(t){var i=e.now();var o=i-n;n=i;r.next(new s(t,o))})))}))}t.timeInterval=timeInterval;var s=function(){function TimeInterval(e,t){this.value=e;this.interval=t}return TimeInterval}();t.TimeInterval=s},4176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timeout=t.TimeoutError=void 0;var n=r(5583);var i=r(9908);var o=r(6613);var s=r(8015);var a=r(250);var u=r(5161);var c=r(6804);t.TimeoutError=a.createErrorClass((function(e){return function TimeoutErrorImpl(t){if(t===void 0){t=null}e(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=t}}));function timeout(e,t){var r=i.isValidDate(e)?{first:e}:typeof e==="number"?{each:e}:e,a=r.first,l=r.each,f=r.with,d=f===void 0?timeoutErrorFactory:f,h=r.scheduler,p=h===void 0?t!==null&&t!==void 0?t:n.asyncScheduler:h,b=r.meta,m=b===void 0?null:b;if(a==null&&l==null){throw new TypeError("No timeout provided.")}return o.operate((function(e,t){var r;var n;var i=null;var o=0;var startTimer=function(e){n=c.executeSchedule(t,p,(function(){try{r.unsubscribe();s.innerFrom(d({meta:m,lastValue:i,seen:o})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(u.createOperatorSubscriber(t,(function(e){n===null||n===void 0?void 0:n.unsubscribe();o++;t.next(i=e);l>0&&startTimer(l)}),undefined,undefined,(function(){if(!(n===null||n===void 0?void 0:n.closed)){n===null||n===void 0?void 0:n.unsubscribe()}i=null})));!o&&startTimer(a!=null?typeof a==="number"?a:+a-p.now():l)}))}t.timeout=timeout;function timeoutErrorFactory(e){throw new t.TimeoutError(e)}},840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timeoutWith=void 0;var n=r(5583);var i=r(9908);var o=r(4176);function timeoutWith(e,t,r){var s;var a;var u;r=r!==null&&r!==void 0?r:n.async;if(i.isValidDate(e)){s=e}else if(typeof e==="number"){a=e}if(t){u=function(){return t}}else{throw new TypeError("No observable provided to switch to")}if(s==null&&a==null){throw new TypeError("No timeout provided.")}return o.timeout({first:s,each:a,scheduler:r,with:u})}t.timeoutWith=timeoutWith},2415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.timestamp=void 0;var n=r(1742);var i=r(3297);function timestamp(e){if(e===void 0){e=n.dateTimestampProvider}return i.map((function(t){return{value:t,timestamp:e.now()}}))}t.timestamp=timestamp},829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toArray=void 0;var n=r(9241);var i=r(6613);var arrReducer=function(e,t){return e.push(t),e};function toArray(){return i.operate((function(e,t){n.reduce(arrReducer,[])(e).subscribe(t)}))}t.toArray=toArray},2619:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.window=void 0;var n=r(2357);var i=r(6613);var o=r(5161);var s=r(1720);var a=r(8015);function window(e){return i.operate((function(t,r){var i=new n.Subject;r.next(i.asObservable());var errorHandler=function(e){i.error(e);r.error(e)};t.subscribe(o.createOperatorSubscriber(r,(function(e){return i===null||i===void 0?void 0:i.next(e)}),(function(){i.complete();r.complete()}),errorHandler));a.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){i.complete();r.next(i=new n.Subject)}),s.noop,errorHandler));return function(){i===null||i===void 0?void 0:i.unsubscribe();i=null}}))}t.window=window},8024:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.windowCount=void 0;var i=r(2357);var o=r(6613);var s=r(5161);function windowCount(e,t){if(t===void 0){t=0}var r=t>0?t:e;return o.operate((function(t,o){var a=[new i.Subject];var u=[];var c=0;o.next(a[0].asObservable());t.subscribe(s.createOperatorSubscriber(o,(function(t){var s,u;try{for(var l=n(a),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(t)}}catch(e){s={error:e}}finally{try{if(f&&!f.done&&(u=l.return))u.call(l)}finally{if(s)throw s.error}}var h=c-e+1;if(h>=0&&h%r===0){a.shift().complete()}if(++c%r===0){var p=new i.Subject;a.push(p);o.next(p.asObservable())}}),(function(){while(a.length>0){a.shift().complete()}o.complete()}),(function(e){while(a.length>0){a.shift().error(e)}o.error(e)}),(function(){u=null;a=null})))}))}t.windowCount=windowCount},6897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.windowTime=void 0;var n=r(2357);var i=r(5583);var o=r(5208);var s=r(6613);var a=r(5161);var u=r(8645);var c=r(6909);var l=r(6804);function windowTime(e){var t,r;var f=[];for(var d=1;d<arguments.length;d++){f[d-1]=arguments[d]}var h=(t=c.popScheduler(f))!==null&&t!==void 0?t:i.asyncScheduler;var p=(r=f[0])!==null&&r!==void 0?r:null;var b=f[1]||Infinity;return s.operate((function(t,r){var i=[];var s=false;var closeWindow=function(e){var t=e.window,r=e.subs;t.complete();r.unsubscribe();u.arrRemove(i,e);s&&startWindow()};var startWindow=function(){if(i){var t=new o.Subscription;r.add(t);var s=new n.Subject;var a={window:s,subs:t,seen:0};i.push(a);r.next(s.asObservable());l.executeSchedule(t,h,(function(){return closeWindow(a)}),e)}};if(p!==null&&p>=0){l.executeSchedule(r,h,startWindow,p,true)}else{s=true}startWindow();var loop=function(e){return i.slice().forEach(e)};var terminate=function(e){loop((function(t){var r=t.window;return e(r)}));e(r);r.unsubscribe()};t.subscribe(a.createOperatorSubscriber(r,(function(e){loop((function(t){t.window.next(e);b<=++t.seen&&closeWindow(t)}))}),(function(){return terminate((function(e){return e.complete()}))}),(function(e){return terminate((function(t){return t.error(e)}))})));return function(){i=null}}))}t.windowTime=windowTime},783:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.windowToggle=void 0;var i=r(2357);var o=r(5208);var s=r(6613);var a=r(8015);var u=r(5161);var c=r(1720);var l=r(8645);function windowToggle(e,t){return s.operate((function(r,s){var f=[];var handleError=function(e){while(0<f.length){f.shift().error(e)}s.error(e)};a.innerFrom(e).subscribe(u.createOperatorSubscriber(s,(function(e){var r=new i.Subject;f.push(r);var n=new o.Subscription;var closeWindow=function(){l.arrRemove(f,r);r.complete();n.unsubscribe()};var d;try{d=a.innerFrom(t(e))}catch(e){handleError(e);return}s.next(r.asObservable());n.add(d.subscribe(u.createOperatorSubscriber(s,closeWindow,c.noop,handleError)))}),c.noop));r.subscribe(u.createOperatorSubscriber(s,(function(e){var t,r;var i=f.slice();try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var a=s.value;a.next(e)}}catch(e){t={error:e}}finally{try{if(s&&!s.done&&(r=o.return))r.call(o)}finally{if(t)throw t.error}}}),(function(){while(0<f.length){f.shift().complete()}s.complete()}),handleError,(function(){while(0<f.length){f.shift().unsubscribe()}})))}))}t.windowToggle=windowToggle},4243:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.windowWhen=void 0;var n=r(2357);var i=r(6613);var o=r(5161);var s=r(8015);function windowWhen(e){return i.operate((function(t,r){var i;var a;var handleError=function(e){i.error(e);r.error(e)};var openWindow=function(){a===null||a===void 0?void 0:a.unsubscribe();i===null||i===void 0?void 0:i.complete();i=new n.Subject;r.next(i.asObservable());var t;try{t=s.innerFrom(e())}catch(e){handleError(e);return}t.subscribe(a=o.createOperatorSubscriber(r,openWindow,openWindow,handleError))};openWindow();t.subscribe(o.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete();r.complete()}),handleError,(function(){a===null||a===void 0?void 0:a.unsubscribe();i=null})))}))}t.windowWhen=windowWhen},5972:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.withLatestFrom=void 0;var o=r(6613);var s=r(5161);var a=r(8015);var u=r(1418);var c=r(1720);var l=r(6909);function withLatestFrom(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=l.popResultSelector(e);return o.operate((function(t,o){var l=e.length;var f=new Array(l);var d=e.map((function(){return false}));var h=false;var _loop_1=function(t){a.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(o,(function(e){f[t]=e;if(!h&&!d[t]){d[t]=true;(h=d.every(u.identity))&&(d=null)}}),c.noop))};for(var p=0;p<l;p++){_loop_1(p)}t.subscribe(s.createOperatorSubscriber(o,(function(e){if(h){var t=i([e],n(f));o.next(r?r.apply(void 0,i([],n(t))):t)}})))}))}t.withLatestFrom=withLatestFrom},9700:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.zip=void 0;var o=r(9820);var s=r(6613);function zip(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return s.operate((function(t,r){o.zip.apply(void 0,i([t],n(e))).subscribe(r)}))}t.zip=zip},3210:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.zipAll=void 0;var n=r(9820);var i=r(672);function zipAll(e){return i.joinAllInternals(n.zip,e)}t.zipAll=zipAll},2268:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.zipWith=void 0;var o=r(9700);function zipWith(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return o.zip.apply(void 0,i([],n(e)))}t.zipWith=zipWith},2111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleArray=void 0;var n=r(6692);function scheduleArray(e,t){return new n.Observable((function(r){var n=0;return t.schedule((function(){if(n===e.length){r.complete()}else{r.next(e[n++]);if(!r.closed){this.schedule()}}}))}))}t.scheduleArray=scheduleArray},6680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleAsyncIterable=void 0;var n=r(6692);var i=r(6804);function scheduleAsyncIterable(e,t){if(!e){throw new Error("Iterable cannot be null")}return new n.Observable((function(r){i.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,(function(){n.next().then((function(e){if(e.done){r.complete()}else{r.next(e.value)}}))}),0,true)}))}))}t.scheduleAsyncIterable=scheduleAsyncIterable},178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleIterable=void 0;var n=r(6692);var i=r(7650);var o=r(3856);var s=r(6804);function scheduleIterable(e,t){return new n.Observable((function(r){var n;s.executeSchedule(r,t,(function(){n=e[i.iterator]();s.executeSchedule(r,t,(function(){var e;var t;var i;try{e=n.next(),t=e.value,i=e.done}catch(e){r.error(e);return}if(i){r.complete()}else{r.next(t)}}),0,true)}));return function(){return o.isFunction(n===null||n===void 0?void 0:n.return)&&n.return()}}))}t.scheduleIterable=scheduleIterable},3145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleObservable=void 0;var n=r(8015);var i=r(2366);var o=r(5282);function scheduleObservable(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}t.scheduleObservable=scheduleObservable},9375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.schedulePromise=void 0;var n=r(8015);var i=r(2366);var o=r(5282);function schedulePromise(e,t){return n.innerFrom(e).pipe(o.subscribeOn(t),i.observeOn(t))}t.schedulePromise=schedulePromise},7439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduleReadableStreamLike=void 0;var n=r(6680);var i=r(2519);function scheduleReadableStreamLike(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}t.scheduleReadableStreamLike=scheduleReadableStreamLike},1478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.scheduled=void 0;var n=r(3145);var i=r(9375);var o=r(2111);var s=r(178);var a=r(6680);var u=r(1414);var c=r(9063);var l=r(4800);var f=r(6045);var d=r(1744);var h=r(9404);var p=r(2519);var b=r(7439);function scheduled(e,t){if(e!=null){if(u.isInteropObservable(e)){return n.scheduleObservable(e,t)}if(l.isArrayLike(e)){return o.scheduleArray(e,t)}if(c.isPromise(e)){return i.schedulePromise(e,t)}if(d.isAsyncIterable(e)){return a.scheduleAsyncIterable(e,t)}if(f.isIterable(e)){return s.scheduleIterable(e,t)}if(p.isReadableStreamLike(e)){return b.scheduleReadableStreamLike(e,t)}}throw h.createInvalidObservableTypeError(e)}t.scheduled=scheduled},609:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Action=void 0;var i=r(5208);var o=function(e){n(Action,e);function Action(t,r){return e.call(this)||this}Action.prototype.schedule=function(e,t){if(t===void 0){t=0}return this};return Action}(i.Subscription);t.Action=o},8426:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AnimationFrameAction=void 0;var i=r(6693);var o=r(3437);var s=function(e){n(AnimationFrameAction,e);function AnimationFrameAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;return n}AnimationFrameAction.prototype.requestAsyncId=function(t,r,n){if(n===void 0){n=0}if(n!==null&&n>0){return e.prototype.requestAsyncId.call(this,t,r,n)}t.actions.push(this);return t._scheduled||(t._scheduled=o.animationFrameProvider.requestAnimationFrame((function(){return t.flush(undefined)})))};AnimationFrameAction.prototype.recycleAsyncId=function(t,r,n){var i;if(n===void 0){n=0}if(n!=null?n>0:this.delay>0){return e.prototype.recycleAsyncId.call(this,t,r,n)}var s=t.actions;if(r!=null&&r===t._scheduled&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r){o.animationFrameProvider.cancelAnimationFrame(r);t._scheduled=undefined}return undefined};return AnimationFrameAction}(i.AsyncAction);t.AnimationFrameAction=s},9919:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AnimationFrameScheduler=void 0;var i=r(2318);var o=function(e){n(AnimationFrameScheduler,e);function AnimationFrameScheduler(){return e!==null&&e.apply(this,arguments)||this}AnimationFrameScheduler.prototype.flush=function(e){this._active=true;var t;if(e){t=e.id}else{t=this._scheduled;this._scheduled=undefined}var r=this.actions;var n;e=e||r.shift();do{if(n=e.execute(e.state,e.delay)){break}}while((e=r[0])&&e.id===t&&r.shift());this._active=false;if(n){while((e=r[0])&&e.id===t&&r.shift()){e.unsubscribe()}throw n}};return AnimationFrameScheduler}(i.AsyncScheduler);t.AnimationFrameScheduler=o},3636:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsapAction=void 0;var i=r(6693);var o=r(1639);var s=function(e){n(AsapAction,e);function AsapAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;return n}AsapAction.prototype.requestAsyncId=function(t,r,n){if(n===void 0){n=0}if(n!==null&&n>0){return e.prototype.requestAsyncId.call(this,t,r,n)}t.actions.push(this);return t._scheduled||(t._scheduled=o.immediateProvider.setImmediate(t.flush.bind(t,undefined)))};AsapAction.prototype.recycleAsyncId=function(t,r,n){var i;if(n===void 0){n=0}if(n!=null?n>0:this.delay>0){return e.prototype.recycleAsyncId.call(this,t,r,n)}var s=t.actions;if(r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r){o.immediateProvider.clearImmediate(r);if(t._scheduled===r){t._scheduled=undefined}}return undefined};return AsapAction}(i.AsyncAction);t.AsapAction=s},5981:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsapScheduler=void 0;var i=r(2318);var o=function(e){n(AsapScheduler,e);function AsapScheduler(){return e!==null&&e.apply(this,arguments)||this}AsapScheduler.prototype.flush=function(e){this._active=true;var t=this._scheduled;this._scheduled=undefined;var r=this.actions;var n;e=e||r.shift();do{if(n=e.execute(e.state,e.delay)){break}}while((e=r[0])&&e.id===t&&r.shift());this._active=false;if(n){while((e=r[0])&&e.id===t&&r.shift()){e.unsubscribe()}throw n}};return AsapScheduler}(i.AsyncScheduler);t.AsapScheduler=o},6693:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsyncAction=void 0;var i=r(609);var o=r(5747);var s=r(8645);var a=function(e){n(AsyncAction,e);function AsyncAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;n.pending=false;return n}AsyncAction.prototype.schedule=function(e,t){var r;if(t===void 0){t=0}if(this.closed){return this}this.state=e;var n=this.id;var i=this.scheduler;if(n!=null){this.id=this.recycleAsyncId(i,n,t)}this.pending=true;this.delay=t;this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,t);return this};AsyncAction.prototype.requestAsyncId=function(e,t,r){if(r===void 0){r=0}return o.intervalProvider.setInterval(e.flush.bind(e,this),r)};AsyncAction.prototype.recycleAsyncId=function(e,t,r){if(r===void 0){r=0}if(r!=null&&this.delay===r&&this.pending===false){return t}if(t!=null){o.intervalProvider.clearInterval(t)}return undefined};AsyncAction.prototype.execute=function(e,t){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var r=this._execute(e,t);if(r){return r}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};AsyncAction.prototype._execute=function(e,t){var r=false;var n;try{this.work(e)}catch(e){r=true;n=e?e:new Error("Scheduled action threw falsy error")}if(r){this.unsubscribe();return n}};AsyncAction.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,n=t.scheduler;var i=n.actions;this.work=this.state=this.scheduler=null;this.pending=false;s.arrRemove(i,this);if(r!=null){this.id=this.recycleAsyncId(n,r,null)}this.delay=null;e.prototype.unsubscribe.call(this)}};return AsyncAction}(i.Action);t.AsyncAction=a},2318:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AsyncScheduler=void 0;var i=r(3328);var o=function(e){n(AsyncScheduler,e);function AsyncScheduler(t,r){if(r===void 0){r=i.Scheduler.now}var n=e.call(this,t,r)||this;n.actions=[];n._active=false;return n}AsyncScheduler.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var r;this._active=true;do{if(r=e.execute(e.state,e.delay)){break}}while(e=t.shift());this._active=false;if(r){while(e=t.shift()){e.unsubscribe()}throw r}};return AsyncScheduler}(i.Scheduler);t.AsyncScheduler=o},2330:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.QueueAction=void 0;var i=r(6693);var o=function(e){n(QueueAction,e);function QueueAction(t,r){var n=e.call(this,t,r)||this;n.scheduler=t;n.work=r;return n}QueueAction.prototype.schedule=function(t,r){if(r===void 0){r=0}if(r>0){return e.prototype.schedule.call(this,t,r)}this.delay=r;this.state=t;this.scheduler.flush(this);return this};QueueAction.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)};QueueAction.prototype.requestAsyncId=function(t,r,n){if(n===void 0){n=0}if(n!=null&&n>0||n==null&&this.delay>0){return e.prototype.requestAsyncId.call(this,t,r,n)}t.flush(this);return 0};return QueueAction}(i.AsyncAction);t.QueueAction=o},687:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.QueueScheduler=void 0;var i=r(2318);var o=function(e){n(QueueScheduler,e);function QueueScheduler(){return e!==null&&e.apply(this,arguments)||this}return QueueScheduler}(i.AsyncScheduler);t.QueueScheduler=o},864:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.VirtualAction=t.VirtualTimeScheduler=void 0;var i=r(6693);var o=r(5208);var s=r(2318);var a=function(e){n(VirtualTimeScheduler,e);function VirtualTimeScheduler(t,r){if(t===void 0){t=u}if(r===void 0){r=Infinity}var n=e.call(this,t,(function(){return n.frame}))||this;n.maxFrames=r;n.frame=0;n.index=-1;return n}VirtualTimeScheduler.prototype.flush=function(){var e=this,t=e.actions,r=e.maxFrames;var n;var i;while((i=t[0])&&i.delay<=r){t.shift();this.frame=i.delay;if(n=i.execute(i.state,i.delay)){break}}if(n){while(i=t.shift()){i.unsubscribe()}throw n}};VirtualTimeScheduler.frameTimeFactor=10;return VirtualTimeScheduler}(s.AsyncScheduler);t.VirtualTimeScheduler=a;var u=function(e){n(VirtualAction,e);function VirtualAction(t,r,n){if(n===void 0){n=t.index+=1}var i=e.call(this,t,r)||this;i.scheduler=t;i.work=r;i.index=n;i.active=true;i.index=t.index=n;return i}VirtualAction.prototype.schedule=function(t,r){if(r===void 0){r=0}if(Number.isFinite(r)){if(!this.id){return e.prototype.schedule.call(this,t,r)}this.active=false;var n=new VirtualAction(this.scheduler,this.work);this.add(n);return n.schedule(t,r)}else{return o.Subscription.EMPTY}};VirtualAction.prototype.requestAsyncId=function(e,t,r){if(r===void 0){r=0}this.delay=e.frame+r;var n=e.actions;n.push(this);n.sort(VirtualAction.sortActions);return 1};VirtualAction.prototype.recycleAsyncId=function(e,t,r){if(r===void 0){r=0}return undefined};VirtualAction.prototype._execute=function(t,r){if(this.active===true){return e.prototype._execute.call(this,t,r)}};VirtualAction.sortActions=function(e,t){if(e.delay===t.delay){if(e.index===t.index){return 0}else if(e.index>t.index){return 1}else{return-1}}else if(e.delay>t.delay){return 1}else{return-1}};return VirtualAction}(i.AsyncAction);t.VirtualAction=u},1968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.animationFrame=t.animationFrameScheduler=void 0;var n=r(8426);var i=r(9919);t.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction);t.animationFrame=t.animationFrameScheduler},3437:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.animationFrameProvider=void 0;var o=r(5208);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame;var n=cancelAnimationFrame;var i=t.animationFrameProvider.delegate;if(i){r=i.requestAnimationFrame;n=i.cancelAnimationFrame}var s=r((function(t){n=undefined;e(t)}));return new o.Subscription((function(){return n===null||n===void 0?void 0:n(s)}))},requestAnimationFrame:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=t.animationFrameProvider.delegate;return((o===null||o===void 0?void 0:o.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=t.animationFrameProvider.delegate;return((o===null||o===void 0?void 0:o.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:undefined}},7110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.asap=t.asapScheduler=void 0;var n=r(3636);var i=r(5981);t.asapScheduler=new i.AsapScheduler(n.AsapAction);t.asap=t.asapScheduler},5583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.async=t.asyncScheduler=void 0;var n=r(6693);var i=r(2318);t.asyncScheduler=new i.AsyncScheduler(n.AsyncAction);t.async=t.asyncScheduler},1742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dateTimestampProvider=void 0;t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:undefined}},1639:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.immediateProvider=void 0;var o=r(3815);var s=o.Immediate.setImmediate,a=o.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var o=t.immediateProvider.delegate;return((o===null||o===void 0?void 0:o.setImmediate)||s).apply(void 0,i([],n(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((r===null||r===void 0?void 0:r.clearImmediate)||a)(e)},delegate:undefined}},5747:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.intervalProvider=void 0;t.intervalProvider={setInterval:function(e,i){var o=[];for(var s=2;s<arguments.length;s++){o[s-2]=arguments[s]}var a=t.intervalProvider.delegate;if(a===null||a===void 0?void 0:a.setInterval){return a.setInterval.apply(a,n([e,i],r(o)))}return setInterval.apply(void 0,n([e,i],r(o)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((r===null||r===void 0?void 0:r.clearInterval)||clearInterval)(e)},delegate:undefined}},2404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.performanceTimestampProvider=void 0;t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:undefined}},64:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.queue=t.queueScheduler=void 0;var n=r(2330);var i=r(687);t.queueScheduler=new i.QueueScheduler(n.QueueAction);t.queue=t.queueScheduler},7465:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.timeoutProvider=void 0;t.timeoutProvider={setTimeout:function(e,i){var o=[];for(var s=2;s<arguments.length;s++){o[s-2]=arguments[s]}var a=t.timeoutProvider.delegate;if(a===null||a===void 0?void 0:a.setTimeout){return a.setTimeout.apply(a,n([e,i],r(o)))}return setTimeout.apply(void 0,n([e,i],r(o)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((r===null||r===void 0?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:undefined}},7650:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.iterator=t.getSymbolIterator=void 0;function getSymbolIterator(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}t.getSymbolIterator=getSymbolIterator;t.iterator=getSymbolIterator()},5609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.observable=void 0;t.observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}()},7516:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},8775:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArgumentOutOfRangeError=void 0;var n=r(250);t.ArgumentOutOfRangeError=n.createErrorClass((function(e){return function ArgumentOutOfRangeErrorImpl(){e(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}))},1741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EmptyError=void 0;var n=r(250);t.EmptyError=n.createErrorClass((function(e){return function EmptyErrorImpl(){e(this);this.name="EmptyError";this.message="no elements in sequence"}}))},3815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TestTools=t.Immediate=void 0;var r=1;var n;var i={};function findAndClearHandle(e){if(e in i){delete i[e];return true}return false}t.Immediate={setImmediate:function(e){var t=r++;i[t]=true;if(!n){n=Promise.resolve()}n.then((function(){return findAndClearHandle(t)&&e()}));return t},clearImmediate:function(e){findAndClearHandle(e)}};t.TestTools={pending:function(){return Object.keys(i).length}}},2069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NotFoundError=void 0;var n=r(250);t.NotFoundError=n.createErrorClass((function(e){return function NotFoundErrorImpl(t){e(this);this.name="NotFoundError";this.message=t}}))},3612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ObjectUnsubscribedError=void 0;var n=r(250);t.ObjectUnsubscribedError=n.createErrorClass((function(e){return function ObjectUnsubscribedErrorImpl(){e(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}}))},8519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SequenceError=void 0;var n=r(250);t.SequenceError=n.createErrorClass((function(e){return function SequenceErrorImpl(t){e(this);this.name="SequenceError";this.message=t}}))},4974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UnsubscriptionError=void 0;var n=r(250);t.UnsubscriptionError=n.createErrorClass((function(e){return function UnsubscriptionErrorImpl(t){e(this);this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=t}}))},6909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(3856);var i=r(3903);function last(e){return e[e.length-1]}function popResultSelector(e){return n.isFunction(last(e))?e.pop():undefined}t.popResultSelector=popResultSelector;function popScheduler(e){return i.isScheduler(last(e))?e.pop():undefined}t.popScheduler=popScheduler;function popNumber(e,t){return typeof last(e)==="number"?e.pop():t}t.popNumber=popNumber},2354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.argsArgArrayOrObject=void 0;var r=Array.isArray;var n=Object.getPrototypeOf,i=Object.prototype,o=Object.keys;function argsArgArrayOrObject(e){if(e.length===1){var t=e[0];if(r(t)){return{args:t,keys:null}}if(isPOJO(t)){var n=o(t);return{args:n.map((function(e){return t[e]})),keys:n}}}return{args:e,keys:null}}t.argsArgArrayOrObject=argsArgArrayOrObject;function isPOJO(e){return e&&typeof e==="object"&&n(e)===i}},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.argsOrArgArray=void 0;var r=Array.isArray;function argsOrArgArray(e){return e.length===1&&r(e[0])?e[0]:e}t.argsOrArgArray=argsOrArgArray},8645:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arrRemove=void 0;function arrRemove(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}t.arrRemove=arrRemove},250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createErrorClass=void 0;function createErrorClass(e){var _super=function(e){Error.call(e);e.stack=(new Error).stack};var t=e(_super);t.prototype=Object.create(Error.prototype);t.prototype.constructor=t;return t}t.createErrorClass=createErrorClass},6579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createObject=void 0;function createObject(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})}t.createObject=createObject},4225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.captureError=t.errorContext=void 0;var n=r(647);var i=null;function errorContext(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t){i={errorThrown:false,error:null}}e();if(t){var r=i,o=r.errorThrown,s=r.error;i=null;if(o){throw s}}}else{e()}}t.errorContext=errorContext;function captureError(e){if(n.config.useDeprecatedSynchronousErrorHandling&&i){i.errorThrown=true;i.error=e}}t.captureError=captureError},6804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.executeSchedule=void 0;function executeSchedule(e,t,r,n,i){if(n===void 0){n=0}if(i===void 0){i=false}var o=t.schedule((function(){r();if(i){e.add(this.schedule(null,n))}else{this.unsubscribe()}}),n);e.add(o);if(!i){return o}}t.executeSchedule=executeSchedule},1418:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.identity=void 0;function identity(e){return e}t.identity=identity},4800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isArrayLike=void 0;t.isArrayLike=function(e){return e&&typeof e.length==="number"&&typeof e!=="function"}},1744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAsyncIterable=void 0;var n=r(3856);function isAsyncIterable(e){return Symbol.asyncIterator&&n.isFunction(e===null||e===void 0?void 0:e[Symbol.asyncIterator])}t.isAsyncIterable=isAsyncIterable},9908:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidDate=void 0;function isValidDate(e){return e instanceof Date&&!isNaN(e)}t.isValidDate=isValidDate},3856:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFunction=void 0;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction},1414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isInteropObservable=void 0;var n=r(5609);var i=r(3856);function isInteropObservable(e){return i.isFunction(e[n.observable])}t.isInteropObservable=isInteropObservable},6045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIterable=void 0;var n=r(7650);var i=r(3856);function isIterable(e){return i.isFunction(e===null||e===void 0?void 0:e[n.iterator])}t.isIterable=isIterable},65:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isObservable=void 0;var n=r(6692);var i=r(3856);function isObservable(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}t.isObservable=isObservable},9063:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPromise=void 0;var n=r(3856);function isPromise(e){return n.isFunction(e===null||e===void 0?void 0:e.then)}t.isPromise=isPromise},2519:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function verb(e){return function(t){return step([e,t])}}function step(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)};var o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,s=[];return o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o;function verb(e){if(n[e])o[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||resume(e,t)}))}}function resume(e,t){try{step(n[e](t))}catch(e){settle(s[0][3],e)}}function step(e){e.value instanceof i?Promise.resolve(e.value.v).then(fulfill,reject):settle(s[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),s.shift(),s.length)resume(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:true});t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=r(3856);function readableStreamLikeToAsyncGenerator(e){return o(this,arguments,(function readableStreamLikeToAsyncGenerator_1(){var t,r,o,s;return n(this,(function(n){switch(n.label){case 0:t=e.getReader();n.label=1;case 1:n.trys.push([1,,9,10]);n.label=2;case 2:if(false){}return[4,i(t.read())];case 3:r=n.sent(),o=r.value,s=r.done;if(!s)return[3,5];return[4,i(void 0)];case 4:return[2,n.sent()];case 5:return[4,i(o)];case 6:return[4,n.sent()];case 7:n.sent();return[3,2];case 8:return[3,10];case 9:t.releaseLock();return[7];case 10:return[2]}}))}))}t.readableStreamLikeToAsyncGenerator=readableStreamLikeToAsyncGenerator;function isReadableStreamLike(e){return s.isFunction(e===null||e===void 0?void 0:e.getReader)}t.isReadableStreamLike=isReadableStreamLike},3903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isScheduler=void 0;var n=r(3856);function isScheduler(e){return e&&n.isFunction(e.schedule)}t.isScheduler=isScheduler},6613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.operate=t.hasLift=void 0;var n=r(3856);function hasLift(e){return n.isFunction(e===null||e===void 0?void 0:e.lift)}t.hasLift=hasLift;function operate(e){return function(t){if(hasLift(t)){return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}))}throw new TypeError("Unable to lift unknown Observable type")}}t.operate=operate},969:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{while((t===void 0||t-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(e){s={error:e}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return o};var i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:true});t.mapOneOrManyArgs=void 0;var o=r(3297);var s=Array.isArray;function callOrApply(e,t){return s(t)?e.apply(void 0,i([],n(t))):e(t)}function mapOneOrManyArgs(e){return o.map((function(t){return callOrApply(e,t)}))}t.mapOneOrManyArgs=mapOneOrManyArgs},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.noop=void 0;function noop(){}t.noop=noop},8103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.not=void 0;function not(e,t){return function(r,n){return!e.call(t,r,n)}}t.not=not},4424:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pipeFromArray=t.pipe=void 0;var n=r(1418);function pipe(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return pipeFromArray(e)}t.pipe=pipe;function pipeFromArray(e){if(e.length===0){return n.identity}if(e.length===1){return e[0]}return function piped(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipeFromArray=pipeFromArray},7493:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reportUnhandledError=void 0;var n=r(647);var i=r(7465);function reportUnhandledError(e){i.timeoutProvider.setTimeout((function(){var t=n.config.onUnhandledError;if(t){t(e)}else{throw e}}))}t.reportUnhandledError=reportUnhandledError},9404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createInvalidObservableTypeError=void 0;function createInvalidObservableTypeError(e){return new TypeError("You provided "+(e!==null&&typeof e==="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}t.createInvalidObservableTypeError=createInvalidObservableTypeError},2803:(e,t,r)=>{"use strict";var n=r(181);var i=n.Buffer;var o={};var s;for(s in n){if(!n.hasOwnProperty(s))continue;if(s==="SlowBuffer"||s==="Buffer")continue;o[s]=n[s]}var a=o.Buffer={};for(s in i){if(!i.hasOwnProperty(s))continue;if(s==="allocUnsafe"||s==="allocUnsafeSlow")continue;a[s]=i[s]}o.Buffer.prototype=i.prototype;if(!a.from||a.from===Uint8Array.from){a.from=function(e,t,r){if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e)}if(e&&typeof e.length==="undefined"){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}return i(e,t,r)}}if(!a.alloc){a.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError('The "size" argument must be of type number. Received type '+typeof e)}if(e<0||e>=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var n=i(e);if(!t||t.length===0){n.fill(0)}else if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}return n}}if(!o.kStringMaxLength){try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!o.constants){o.constants={MAX_LENGTH:o.kMaxLength};if(o.kStringMaxLength){o.constants.MAX_STRING_LENGTH=o.kStringMaxLength}}e.exports=o},60:(e,t,r)=>{"use strict";const n=r(3958);const i=r(4519);const o=r(872);const stringWidth=e=>{if(typeof e!=="string"||e.length===0){return 0}e=n(e);if(e.length===0){return 0}e=e.replace(o()," ");let t=0;for(let r=0;r<e.length;r++){const n=e.codePointAt(r);if(n<=31||n>=127&&n<=159){continue}if(n>=768&&n<=879){continue}if(n>65535){r++}t+=i(n)?2:1}return t};e.exports=stringWidth;e.exports["default"]=stringWidth},3958:(e,t,r)=>{"use strict";const n=r(21);e.exports=e=>typeof e==="string"?e.replace(n(),""):e},1450:(e,t,r)=>{"use strict";const n=r(857);const i=r(2018);const o=r(3813);const{env:s}=process;let a;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){a=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){a=1}if("FORCE_COLOR"in s){if(s.FORCE_COLOR==="true"){a=1}else if(s.FORCE_COLOR==="false"){a=0}else{a=s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(s.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in s))||s.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},3236:(e,t,r)=>{"use strict";const n=r(60);const i=r(3958);const o=r(4412);const s=new Set(["","Ā"]);const a=39;const wrapAnsi=e=>`${s.values().next().value}[${e}m`;const wordLengths=e=>e.split(" ").map((e=>n(e)));const wrapWord=(e,t,r)=>{const o=[...t];let a=false;let u=n(i(e[e.length-1]));for(const[t,i]of o.entries()){const c=n(i);if(u+c<=r){e[e.length-1]+=i}else{e.push(i);u=0}if(s.has(i)){a=true}else if(a&&i==="m"){a=false;continue}if(a){continue}u+=c;if(u===r&&t<o.length-1){e.push("");u=0}}if(!u&&e[e.length-1].length>0&&e.length>1){e[e.length-2]+=e.pop()}};const stringVisibleTrimSpacesRight=e=>{const t=e.split(" ");let r=t.length;while(r>0){if(n(t[r-1])>0){break}r--}if(r===t.length){return e}return t.slice(0,r).join(" ")+t.slice(r).join("")};const exec=(e,t,r={})=>{if(r.trim!==false&&e.trim()===""){return""}let i="";let u="";let c;const l=wordLengths(e);let f=[""];for(const[i,o]of e.split(" ").entries()){if(r.trim!==false){f[f.length-1]=f[f.length-1].trimLeft()}let e=n(f[f.length-1]);if(i!==0){if(e>=t&&(r.wordWrap===false||r.trim===false)){f.push("");e=0}if(e>0||r.trim===false){f[f.length-1]+=" ";e++}}if(r.hard&&l[i]>t){const r=t-e;const n=1+Math.floor((l[i]-r-1)/t);const s=Math.floor((l[i]-1)/t);if(s<n){f.push("")}wrapWord(f,o,t);continue}if(e+l[i]>t&&e>0&&l[i]>0){if(r.wordWrap===false&&e<t){wrapWord(f,o,t);continue}f.push("")}if(e+l[i]>t&&r.wordWrap===false){wrapWord(f,o,t);continue}f[f.length-1]+=o}if(r.trim!==false){f=f.map(stringVisibleTrimSpacesRight)}i=f.join("\n");for(const[e,t]of[...i].entries()){u+=t;if(s.has(t)){const t=parseFloat(/\d[^m]*/.exec(i.slice(e,e+4)));c=t===a?null:t}const r=o.codes.get(Number(c));if(c&&r){if(i[e+1]==="\n"){u+=wrapAnsi(r)}else if(t==="\n"){u+=wrapAnsi(c)}}}return u};e.exports=(e,t,r)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>exec(e,t,r))).join("\n")},1354:(e,t,r)=>{"use strict";const n=r(6681);n.createWebSocketStream=r(6412);n.Server=r(129);n.Receiver=r(893);n.Sender=r(7389);n.WebSocket=n;n.WebSocketServer=n.Server;e.exports=n},5803:(e,t,r)=>{"use strict";const{EMPTY_BUFFER:n}=r(1791);const i=Buffer[Symbol.species];function concat(e,t){if(e.length===0)return n;if(e.length===1)return e[0];const r=Buffer.allocUnsafe(t);let o=0;for(let t=0;t<e.length;t++){const n=e[t];r.set(n,o);o+=n.length}if(o<t){return new i(r.buffer,r.byteOffset,o)}return r}function _mask(e,t,r,n,i){for(let o=0;o<i;o++){r[n+o]=e[o]^t[o&3]}}function _unmask(e,t){for(let r=0;r<e.length;r++){e[r]^=t[r&3]}}function toArrayBuffer(e){if(e.length===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function toBuffer(e){toBuffer.readOnly=true;if(Buffer.isBuffer(e))return e;let t;if(e instanceof ArrayBuffer){t=new i(e)}else if(ArrayBuffer.isView(e)){t=new i(e.buffer,e.byteOffset,e.byteLength)}else{t=Buffer.from(e);toBuffer.readOnly=false}return t}e.exports={concat:concat,mask:_mask,toArrayBuffer:toArrayBuffer,toBuffer:toBuffer,unmask:_unmask};if(!process.env.WS_NO_BUFFER_UTIL){try{const t=r(8327);e.exports.mask=function(e,r,n,i,o){if(o<48)_mask(e,r,n,i,o);else t.mask(e,r,n,i,o)};e.exports.unmask=function(e,r){if(e.length<32)_unmask(e,r);else t.unmask(e,r)}}catch(e){}}},1791:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},4634:(e,t,r)=>{"use strict";const{kForOnEventAttribute:n,kListener:i}=r(1791);const o=Symbol("kCode");const s=Symbol("kData");const a=Symbol("kError");const u=Symbol("kMessage");const c=Symbol("kReason");const l=Symbol("kTarget");const f=Symbol("kType");const d=Symbol("kWasClean");class Event{constructor(e){this[l]=null;this[f]=e}get target(){return this[l]}get type(){return this[f]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(e,t={}){super(e);this[o]=t.code===undefined?0:t.code;this[c]=t.reason===undefined?"":t.reason;this[d]=t.wasClean===undefined?false:t.wasClean}get code(){return this[o]}get reason(){return this[c]}get wasClean(){return this[d]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(e,t={}){super(e);this[a]=t.error===undefined?null:t.error;this[u]=t.message===undefined?"":t.message}get error(){return this[a]}get message(){return this[u]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(e,t={}){super(e);this[s]=t.data===undefined?null:t.data}get data(){return this[s]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const h={addEventListener(e,t,r={}){for(const o of this.listeners(e)){if(!r[n]&&o[i]===t&&!o[n]){return}}let o;if(e==="message"){o=function onMessage(e,r){const n=new MessageEvent("message",{data:r?e:e.toString()});n[l]=this;callListener(t,this,n)}}else if(e==="close"){o=function onClose(e,r){const n=new CloseEvent("close",{code:e,reason:r.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[l]=this;callListener(t,this,n)}}else if(e==="error"){o=function onError(e){const r=new ErrorEvent("error",{error:e,message:e.message});r[l]=this;callListener(t,this,r)}}else if(e==="open"){o=function onOpen(){const e=new Event("open");e[l]=this;callListener(t,this,e)}}else{return}o[n]=!!r[n];o[i]=t;if(r.once){this.once(e,o)}else{this.on(e,o)}},removeEventListener(e,t){for(const r of this.listeners(e)){if(r[i]===t&&!r[n]){this.removeListener(e,r);break}}}};e.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:h,MessageEvent:MessageEvent};function callListener(e,t,r){if(typeof e==="object"&&e.handleEvent){e.handleEvent.call(e,r)}else{e.call(t,r)}}},1335:(e,t,r)=>{"use strict";const{tokenChars:n}=r(6615);function push(e,t,r){if(e[t]===undefined)e[t]=[r];else e[t].push(r)}function parse(e){const t=Object.create(null);let r=Object.create(null);let i=false;let o=false;let s=false;let a;let u;let c=-1;let l=-1;let f=-1;let d=0;for(;d<e.length;d++){l=e.charCodeAt(d);if(a===undefined){if(f===-1&&n[l]===1){if(c===-1)c=d}else if(d!==0&&(l===32||l===9)){if(f===-1&&c!==-1)f=d}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(f===-1)f=d;const n=e.slice(c,f);if(l===44){push(t,n,r);r=Object.create(null)}else{a=n}c=f=-1}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}else if(u===undefined){if(f===-1&&n[l]===1){if(c===-1)c=d}else if(l===32||l===9){if(f===-1&&c!==-1)f=d}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(f===-1)f=d;push(r,e.slice(c,f),true);if(l===44){push(t,a,r);r=Object.create(null);a=undefined}c=f=-1}else if(l===61&&c!==-1&&f===-1){u=e.slice(c,d);c=f=-1}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}else{if(o){if(n[l]!==1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(c===-1)c=d;else if(!i)i=true;o=false}else if(s){if(n[l]===1){if(c===-1)c=d}else if(l===34&&c!==-1){s=false;f=d}else if(l===92){o=true}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}else if(l===34&&e.charCodeAt(d-1)===61){s=true}else if(f===-1&&n[l]===1){if(c===-1)c=d}else if(c!==-1&&(l===32||l===9)){if(f===-1)f=d}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${d}`)}if(f===-1)f=d;let n=e.slice(c,f);if(i){n=n.replace(/\\/g,"");i=false}push(r,u,n);if(l===44){push(t,a,r);r=Object.create(null);a=undefined}u=undefined;c=f=-1}else{throw new SyntaxError(`Unexpected character at index ${d}`)}}}if(c===-1||s||l===32||l===9){throw new SyntaxError("Unexpected end of input")}if(f===-1)f=d;const h=e.slice(c,f);if(a===undefined){push(t,h,r)}else{if(u===undefined){push(r,h,true)}else if(i){push(r,u,h.replace(/\\/g,""))}else{push(r,u,h)}push(t,a,r)}return t}function format(e){return Object.keys(e).map((t=>{let r=e[t];if(!Array.isArray(r))r=[r];return r.map((e=>[t].concat(Object.keys(e).map((t=>{let r=e[t];if(!Array.isArray(r))r=[r];return r.map((e=>e===true?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}e.exports={format:format,parse:parse}},958:e=>{"use strict";const t=Symbol("kDone");const r=Symbol("kRun");class Limiter{constructor(e){this[t]=()=>{this.pending--;this[r]()};this.concurrency=e||Infinity;this.jobs=[];this.pending=0}add(e){this.jobs.push(e);this[r]()}[r](){if(this.pending===this.concurrency)return;if(this.jobs.length){const e=this.jobs.shift();this.pending++;e(this[t])}}}e.exports=Limiter},4376:(e,t,r)=>{"use strict";const n=r(3106);const i=r(5803);const o=r(958);const{kStatusCode:s}=r(1791);const a=Buffer[Symbol.species];const u=Buffer.from([0,0,255,255]);const c=Symbol("permessage-deflate");const l=Symbol("total-length");const f=Symbol("callback");const d=Symbol("buffers");const h=Symbol("error");let p;class PerMessageDeflate{constructor(e,t,r){this._maxPayload=r|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!p){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;p=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const e=this._deflate[f];this._deflate.close();this._deflate=null;if(e){e(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(e){const t=this._options;const r=e.find((e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true}));if(!r){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){r.server_no_context_takeover=true}if(t.clientNoContextTakeover){r.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){r.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){r.client_max_window_bits=t.clientMaxWindowBits}else if(r.client_max_window_bits===true||t.clientMaxWindowBits===false){delete r.client_max_window_bits}return r}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach((e=>{Object.keys(e).forEach((t=>{let r=e[t];if(r.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}r=r[0];if(t==="client_max_window_bits"){if(r!==true){const e=+r;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}r=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}}else if(t==="server_max_window_bits"){const e=+r;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}r=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(r!==true){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=r}))}));return e}decompress(e,t,r){p.add((n=>{this._decompress(e,t,((e,t)=>{n();r(e,t)}))}))}compress(e,t,r){p.add((n=>{this._compress(e,t,((e,t)=>{n();r(e,t)}))}))}_decompress(e,t,r){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t});this._inflate[c]=this;this._inflate[l]=0;this._inflate[d]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[f]=r;this._inflate.write(e);if(t)this._inflate.write(u);this._inflate.flush((()=>{const e=this._inflate[h];if(e){this._inflate.close();this._inflate=null;r(e);return}const n=i.concat(this._inflate[d],this._inflate[l]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[l]=0;this._inflate[d]=[];if(t&&this.params[`${o}_no_context_takeover`]){this._inflate.reset()}}r(null,n)}))}_compress(e,t,r){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t});this._deflate[l]=0;this._deflate[d]=[];this._deflate.on("data",deflateOnData)}this._deflate[f]=r;this._deflate.write(e);this._deflate.flush(n.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let e=i.concat(this._deflate[d],this._deflate[l]);if(t){e=new a(e.buffer,e.byteOffset,e.length-4)}this._deflate[f]=null;this._deflate[l]=0;this._deflate[d]=[];if(t&&this.params[`${o}_no_context_takeover`]){this._deflate.reset()}r(null,e)}))}}e.exports=PerMessageDeflate;function deflateOnData(e){this[d].push(e);this[l]+=e.length}function inflateOnData(e){this[l]+=e.length;if(this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[h]=new RangeError("Max payload size exceeded");this[h].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[h][s]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[c]._inflate=null;e[s]=1007;this[f](e)}},893:(e,t,r)=>{"use strict";const{Writable:n}=r(2203);const i=r(4376);const{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:a,kWebSocket:u}=r(1791);const{concat:c,toArrayBuffer:l,unmask:f}=r(5803);const{isValidStatusCode:d,isValidUTF8:h}=r(6615);const p=Buffer[Symbol.species];const b=0;const m=1;const v=2;const g=3;const y=4;const _=5;const D=6;class Receiver extends n{constructor(e={}){super();this._allowSynchronousEvents=e.allowSynchronousEvents!==undefined?e.allowSynchronousEvents:true;this._binaryType=e.binaryType||o[0];this._extensions=e.extensions||{};this._isServer=!!e.isServer;this._maxPayload=e.maxPayload|0;this._skipUTF8Validation=!!e.skipUTF8Validation;this[u]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._errored=false;this._loop=false;this._state=b}_write(e,t,r){if(this._opcode===8&&this._state==b)return r();this._bufferedBytes+=e.length;this._buffers.push(e);this.startLoop(r)}consume(e){this._bufferedBytes-=e;if(e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e);return new p(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const r=this._buffers[0];const n=t.length-e;if(e>=r.length){t.set(this._buffers.shift(),n)}else{t.set(new Uint8Array(r.buffer,r.byteOffset,e),n);this._buffers[0]=new p(r.buffer,r.byteOffset+e,r.length-e)}e-=r.length}while(e>0);return t}startLoop(e){this._loop=true;do{switch(this._state){case b:this.getInfo(e);break;case m:this.getPayloadLength16(e);break;case v:this.getPayloadLength64(e);break;case g:this.getMask();break;case y:this.getData(e);break;case _:case D:this._loop=false;return}}while(this._loop);if(!this._errored)e()}getInfo(e){if(this._bufferedBytes<2){this._loop=false;return}const t=this.consume(2);if((t[0]&48)!==0){const t=this.createError(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(t);return}const r=(t[0]&64)===64;if(r&&!this._extensions[i.extensionName]){const t=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");e(t);return}this._fin=(t[0]&128)===128;this._opcode=t[0]&15;this._payloadLength=t[1]&127;if(this._opcode===0){if(r){const t=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");e(t);return}if(!this._fragmented){const t=this.createError(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE");e(t);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){const t=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");e(t);return}this._compressed=r}else if(this._opcode>7&&this._opcode<11){if(!this._fin){const t=this.createError(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN");e(t);return}if(r){const t=this.createError(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1");e(t);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){const t=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(t);return}}else{const t=this.createError(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE");e(t);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(t[1]&128)===128;if(this._isServer){if(!this._masked){const t=this.createError(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK");e(t);return}}else if(this._masked){const t=this.createError(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK");e(t);return}if(this._payloadLength===126)this._state=m;else if(this._payloadLength===127)this._state=v;else this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=false;return}const t=this.consume(8);const r=t.readUInt32BE(0);if(r>Math.pow(2,53-32)-1){const t=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(t);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4);this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){const t=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}}if(this._masked)this._state=g;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=false;return}t=this.consume(this._payloadLength);if(this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0){f(t,this._mask)}}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=_;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){const r=this._extensions[i.extensionName];r.decompress(e,this._fin,((e,r)=>{if(e)return t(e);if(r.length){this._messageLength+=r.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(e);return}this._fragments.push(r)}this.dataMessage(t);if(this._state===b)this.startLoop(t)}))}dataMessage(e){if(!this._fin){this._state=b;return}const t=this._messageLength;const r=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let n;if(this._binaryType==="nodebuffer"){n=c(r,t)}else if(this._binaryType==="arraybuffer"){n=l(c(r,t))}else{n=r}if(this._allowSynchronousEvents){this.emit("message",n,true);this._state=b}else{this._state=D;setImmediate((()=>{this.emit("message",n,true);this._state=b;this.startLoop(e)}))}}else{const n=c(r,t);if(!this._skipUTF8Validation&&!h(n)){const t=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");e(t);return}if(this._state===_||this._allowSynchronousEvents){this.emit("message",n,false);this._state=b}else{this._state=D;setImmediate((()=>{this.emit("message",n,false);this._state=b;this.startLoop(e)}))}}}controlMessage(e,t){if(this._opcode===8){if(e.length===0){this._loop=false;this.emit("conclude",1005,s);this.end()}else{const r=e.readUInt16BE(0);if(!d(r)){const e=this.createError(RangeError,`invalid status code ${r}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE");t(e);return}const n=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!h(n)){const e=this.createError(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8");t(e);return}this._loop=false;this.emit("conclude",r,n);this.end()}this._state=b;return}if(this._allowSynchronousEvents){this.emit(this._opcode===9?"ping":"pong",e);this._state=b}else{this._state=D;setImmediate((()=>{this.emit(this._opcode===9?"ping":"pong",e);this._state=b;this.startLoop(t)}))}}createError(e,t,r,n,i){this._loop=false;this._errored=true;const o=new e(r?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(o,this.createError);o.code=i;o[a]=n;return o}}e.exports=Receiver},7389:(e,t,r)=>{"use strict";const{Duplex:n}=r(2203);const{randomFillSync:i}=r(6982);const o=r(4376);const{EMPTY_BUFFER:s}=r(1791);const{isValidStatusCode:a}=r(6615);const{mask:u,toBuffer:c}=r(5803);const l=Symbol("kByteLength");const f=Buffer.alloc(4);const d=8*1024;let h;let p=d;class Sender{constructor(e,t,r){this._extensions=t||{};if(r){this._generateMask=r;this._maskBuffer=Buffer.alloc(4)}this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){let r;let n=false;let o=2;let s=false;if(t.mask){r=t.maskBuffer||f;if(t.generateMask){t.generateMask(r)}else{if(p===d){if(h===undefined){h=Buffer.alloc(d)}i(h,0,d);p=0}r[0]=h[p++];r[1]=h[p++];r[2]=h[p++];r[3]=h[p++]}s=(r[0]|r[1]|r[2]|r[3])===0;o=6}let a;if(typeof e==="string"){if((!t.mask||s)&&t[l]!==undefined){a=t[l]}else{e=Buffer.from(e);a=e.length}}else{a=e.length;n=t.mask&&t.readOnly&&!s}let c=a;if(a>=65536){o+=8;c=127}else if(a>125){o+=2;c=126}const b=Buffer.allocUnsafe(n?a+o:o);b[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)b[0]|=64;b[1]=c;if(c===126){b.writeUInt16BE(a,2)}else if(c===127){b[2]=b[3]=0;b.writeUIntBE(a,4,6)}if(!t.mask)return[b,e];b[1]|=128;b[o-4]=r[0];b[o-3]=r[1];b[o-2]=r[2];b[o-1]=r[3];if(s)return[b,e];if(n){u(e,r,b,o,a);return[b]}u(e,r,e,0,a);return[b,e]}close(e,t,r,n){let i;if(e===undefined){i=s}else if(typeof e!=="number"||!a(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||!t.length){i=Buffer.allocUnsafe(2);i.writeUInt16BE(e,0)}else{const r=Buffer.byteLength(t);if(r>123){throw new RangeError("The message must not be greater than 123 bytes")}i=Buffer.allocUnsafe(2+r);i.writeUInt16BE(e,0);if(typeof t==="string"){i.write(t,2)}else{i.set(t,2)}}const o={[l]:i.length,fin:true,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,i,false,o,n])}else{this.sendFrame(Sender.frame(i,o),n)}}ping(e,t,r){let n;let i;if(typeof e==="string"){n=Buffer.byteLength(e);i=false}else{e=c(e);n=e.length;i=c.readOnly}if(n>125){throw new RangeError("The data size must not be greater than 125 bytes")}const o={[l]:n,fin:true,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,e,false,o,r])}else{this.sendFrame(Sender.frame(e,o),r)}}pong(e,t,r){let n;let i;if(typeof e==="string"){n=Buffer.byteLength(e);i=false}else{e=c(e);n=e.length;i=c.readOnly}if(n>125){throw new RangeError("The data size must not be greater than 125 bytes")}const o={[l]:n,fin:true,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,e,false,o,r])}else{this.sendFrame(Sender.frame(e,o),r)}}send(e,t,r){const n=this._extensions[o.extensionName];let i=t.binary?2:1;let s=t.compress;let a;let u;if(typeof e==="string"){a=Buffer.byteLength(e);u=false}else{e=c(e);a=e.length;u=c.readOnly}if(this._firstFragment){this._firstFragment=false;if(s&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]){s=a>=n._threshold}this._compress=s}else{s=false;i=0}if(t.fin)this._firstFragment=true;if(n){const n={[l]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:s};if(this._deflating){this.enqueue([this.dispatch,e,this._compress,n,r])}else{this.dispatch(e,this._compress,n,r)}}else{this.sendFrame(Sender.frame(e,{[l]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:false}),r)}}dispatch(e,t,r,n){if(!t){this.sendFrame(Sender.frame(e,r),n);return}const i=this._extensions[o.extensionName];this._bufferedBytes+=r[l];this._deflating=true;i.compress(e,r.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");if(typeof n==="function")n(e);for(let t=0;t<this._queue.length;t++){const r=this._queue[t];const n=r[r.length-1];if(typeof n==="function")n(e)}return}this._bufferedBytes-=r[l];this._deflating=false;r.readOnly=false;this.sendFrame(Sender.frame(t,r),n);this.dequeue()}))}dequeue(){while(!this._deflating&&this._queue.length){const e=this._queue.shift();this._bufferedBytes-=e[3][l];Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][l];this._queue.push(e)}sendFrame(e,t){if(e.length===2){this._socket.cork();this._socket.write(e[0]);this._socket.write(e[1],t);this._socket.uncork()}else{this._socket.write(e[0],t)}}}e.exports=Sender},6412:(e,t,r)=>{"use strict";const{Duplex:n}=r(2203);function emitClose(e){e.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(e){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",e)}}function createWebSocketStream(e,t){let r=true;const i=new n({...t,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});e.on("message",(function message(t,r){const n=!r&&i._readableState.objectMode?t.toString():t;if(!i.push(n))e.pause()}));e.once("error",(function error(e){if(i.destroyed)return;r=false;i.destroy(e)}));e.once("close",(function close(){if(i.destroyed)return;i.push(null)}));i._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t);process.nextTick(emitClose,i);return}let o=false;e.once("error",(function error(e){o=true;n(e)}));e.once("close",(function close(){if(!o)n(t);process.nextTick(emitClose,i)}));if(r)e.terminate()};i._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",(function open(){i._final(t)}));return}if(e._socket===null)return;if(e._socket._writableState.finished){t();if(i._readableState.endEmitted)i.destroy()}else{e._socket.once("finish",(function finish(){t()}));e.close()}};i._read=function(){if(e.isPaused)e.resume()};i._write=function(t,r,n){if(e.readyState===e.CONNECTING){e.once("open",(function open(){i._write(t,r,n)}));return}e.send(t,n)};i.on("end",duplexOnEnd);i.on("error",duplexOnError);return i}e.exports=createWebSocketStream},3332:(e,t,r)=>{"use strict";const{tokenChars:n}=r(6615);function parse(e){const t=new Set;let r=-1;let i=-1;let o=0;for(o;o<e.length;o++){const s=e.charCodeAt(o);if(i===-1&&n[s]===1){if(r===-1)r=o}else if(o!==0&&(s===32||s===9)){if(i===-1&&r!==-1)i=o}else if(s===44){if(r===-1){throw new SyntaxError(`Unexpected character at index ${o}`)}if(i===-1)i=o;const n=e.slice(r,i);if(t.has(n)){throw new SyntaxError(`The "${n}" subprotocol is duplicated`)}t.add(n);r=i=-1}else{throw new SyntaxError(`Unexpected character at index ${o}`)}}if(r===-1||i!==-1){throw new SyntaxError("Unexpected end of input")}const s=e.slice(r,o);if(t.has(s)){throw new SyntaxError(`The "${s}" subprotocol is duplicated`)}t.add(s);return t}e.exports={parse:parse}},6615:(e,t,r)=>{"use strict";const{isUtf8:n}=r(181);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function _isValidUTF8(e){const t=e.length;let r=0;while(r<t){if((e[r]&128)===0){r++}else if((e[r]&224)===192){if(r+1===t||(e[r+1]&192)!==128||(e[r]&254)===192){return false}r+=2}else if((e[r]&240)===224){if(r+2>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160){return false}r+=3}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244){return false}r+=4}else{return false}}return true}e.exports={isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:i};if(n){e.exports.isValidUTF8=function(e){return e.length<24?_isValidUTF8(e):n(e)}}else if(!process.env.WS_NO_UTF_8_VALIDATE){try{const t=r(2414);e.exports.isValidUTF8=function(e){return e.length<32?_isValidUTF8(e):t(e)}}catch(e){}}},129:(e,t,r)=>{"use strict";const n=r(4434);const i=r(8611);const{Duplex:o}=r(2203);const{createHash:s}=r(6982);const a=r(1335);const u=r(4376);const c=r(3332);const l=r(6681);const{GUID:f,kWebSocket:d}=r(1791);const h=/^[+/0-9A-Za-z]{22}==$/;const p=0;const b=1;const m=2;class WebSocketServer extends n{constructor(e,t){super();e={allowSynchronousEvents:true,autoPong:true,maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:l,...e};if(e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(e.port!=null){this._server=i.createServer(((e,t)=>{const r=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"});t.end(r)}));this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){const e=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,n)=>{this.handleUpgrade(t,r,n,e)}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=e;this._state=p}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(this._state===m){if(e){this.once("close",(()=>{e(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(e)this.once("close",e);if(this._state===b)return;this._state=b;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const e=this._server;this._removeListeners();this._removeListeners=this._server=null;e.close((()=>{emitClose(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const r=t!==-1?e.url.slice(0,t):e.url;if(r!==this.options.path)return false}return true}handleUpgrade(e,t,r,n){t.on("error",socketOnError);const i=e.headers["sec-websocket-key"];const o=e.headers.upgrade;const s=+e.headers["sec-websocket-version"];if(e.method!=="GET"){const r="Invalid HTTP method";abortHandshakeOrEmitwsClientError(this,e,t,405,r);return}if(o===undefined||o.toLowerCase()!=="websocket"){const r="Invalid Upgrade header";abortHandshakeOrEmitwsClientError(this,e,t,400,r);return}if(i===undefined||!h.test(i)){const r="Missing or invalid Sec-WebSocket-Key header";abortHandshakeOrEmitwsClientError(this,e,t,400,r);return}if(s!==8&&s!==13){const r="Missing or invalid Sec-WebSocket-Version header";abortHandshakeOrEmitwsClientError(this,e,t,400,r);return}if(!this.shouldHandle(e)){abortHandshake(t,400);return}const l=e.headers["sec-websocket-protocol"];let f=new Set;if(l!==undefined){try{f=c.parse(l)}catch(r){const n="Invalid Sec-WebSocket-Protocol header";abortHandshakeOrEmitwsClientError(this,e,t,400,n);return}}const d=e.headers["sec-websocket-extensions"];const p={};if(this.options.perMessageDeflate&&d!==undefined){const r=new u(this.options.perMessageDeflate,true,this.options.maxPayload);try{const e=a.parse(d);if(e[u.extensionName]){r.accept(e[u.extensionName]);p[u.extensionName]=r}}catch(r){const n="Invalid or unacceptable Sec-WebSocket-Extensions header";abortHandshakeOrEmitwsClientError(this,e,t,400,n);return}}if(this.options.verifyClient){const o={origin:e.headers[`${s===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(o,((o,s,a,u)=>{if(!o){return abortHandshake(t,s||401,a,u)}this.completeUpgrade(p,i,f,e,t,r,n)}));return}if(!this.options.verifyClient(o))return abortHandshake(t,401)}this.completeUpgrade(p,i,f,e,t,r,n)}completeUpgrade(e,t,r,n,i,o,c){if(!i.readable||!i.writable)return i.destroy();if(i[d]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>p)return abortHandshake(i,503);const l=s("sha1").update(t+f).digest("base64");const h=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${l}`];const b=new this.options.WebSocket(null,undefined,this.options);if(r.size){const e=this.options.handleProtocols?this.options.handleProtocols(r,n):r.values().next().value;if(e){h.push(`Sec-WebSocket-Protocol: ${e}`);b._protocol=e}}if(e[u.extensionName]){const t=e[u.extensionName].params;const r=a.format({[u.extensionName]:[t]});h.push(`Sec-WebSocket-Extensions: ${r}`);b._extensions=e}this.emit("headers",h,n);i.write(h.concat("\r\n").join("\r\n"));i.removeListener("error",socketOnError);b.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(b);b.on("close",(()=>{this.clients.delete(b);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}c(b,n)}}e.exports=WebSocketServer;function addListeners(e,t){for(const r of Object.keys(t))e.on(r,t[r]);return function removeListeners(){for(const r of Object.keys(t)){e.removeListener(r,t[r])}}}function emitClose(e){e._state=m;e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,r,n){r=r||i.STATUS_CODES[t];n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n};e.once("finish",e.destroy);e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(n).map((e=>`${e}: ${n[e]}`)).join("\r\n")+"\r\n\r\n"+r)}function abortHandshakeOrEmitwsClientError(e,t,r,n,i){if(e.listenerCount("wsClientError")){const n=new Error(i);Error.captureStackTrace(n,abortHandshakeOrEmitwsClientError);e.emit("wsClientError",n,r,t)}else{abortHandshake(r,n,i)}}},6681:(e,t,r)=>{"use strict";const n=r(4434);const i=r(5692);const o=r(8611);const s=r(9278);const a=r(4756);const{randomBytes:u,createHash:c}=r(6982);const{Duplex:l,Readable:f}=r(2203);const{URL:d}=r(7016);const h=r(4376);const p=r(893);const b=r(7389);const{BINARY_TYPES:m,EMPTY_BUFFER:v,GUID:g,kForOnEventAttribute:y,kListener:_,kStatusCode:D,kWebSocket:w,NOOP:C}=r(1791);const{EventTarget:{addEventListener:S,removeEventListener:E}}=r(4634);const{format:O,parse:k}=r(1335);const{toBuffer:A}=r(5803);const P=30*1e3;const x=Symbol("kAborted");const T=[8,13];const F=["CONNECTING","OPEN","CLOSING","CLOSED"];const j=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class WebSocket extends n{constructor(e,t,r){super();this._binaryType=m[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=v;this._closeTimer=null;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(t===undefined){t=[]}else if(!Array.isArray(t)){if(typeof t==="object"&&t!==null){r=t;t=[]}else{t=[t]}}initAsClient(this,e,t,r)}else{this._autoPong=r.autoPong;this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(e){if(!m.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){const n=new p({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new b(e,this._extensions,r.generateMask);this._receiver=n;this._socket=e;n[w]=this;e[w]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);if(e.setTimeout)e.setTimeout(0);if(e.setNoDelay)e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[h.extensionName]){this._extensions[h.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";abortHandshake(this,this._req,e);return}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,(e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),P)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){r=e;e=t=undefined}else if(typeof t==="function"){r=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}if(t===undefined)t=!this._isServer;this._sender.ping(e||v,t,r)}pong(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){r=e;e=t=undefined}else if(typeof t==="function"){r=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}if(t===undefined)t=!this._isServer;this._sender.pong(e||v,t,r)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof t==="function"){r=t;t={}}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}const n={binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true,...t};if(!this._extensions[h.extensionName]){n.compress=false}this._sender.send(e||v,n,r)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";abortHandshake(this,this._req,e);return}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:F.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:F.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:F.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:F.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:F.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:F.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:F.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:F.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(WebSocket.prototype,e,{enumerable:true})}));["open","error","close","message"].forEach((e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{enumerable:true,get(){for(const t of this.listeners(e)){if(t[y])return t[_]}return null},set(t){for(const t of this.listeners(e)){if(t[y]){this.removeListener(e,t);break}}if(typeof t!=="function")return;this.addEventListener(e,t,{[y]:true})}})}));WebSocket.prototype.addEventListener=S;WebSocket.prototype.removeEventListener=E;e.exports=WebSocket;function initAsClient(e,t,r,n){const s={allowSynchronousEvents:true,autoPong:true,protocolVersion:T[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...n,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:"GET",host:undefined,path:undefined,port:undefined};e._autoPong=s.autoPong;if(!T.includes(s.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} `+`(supported versions: ${T.join(", ")})`)}let a;if(t instanceof d){a=t}else{try{a=new d(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}}if(a.protocol==="http:"){a.protocol="ws:"}else if(a.protocol==="https:"){a.protocol="wss:"}e._url=a.href;const l=a.protocol==="wss:";const f=a.protocol==="ws+unix:";let p;if(a.protocol!=="ws:"&&!l&&!f){p='The URL\'s protocol must be one of "ws:", "wss:", '+'"http:", "https", or "ws+unix:"'}else if(f&&!a.pathname){p="The URL's pathname is empty"}else if(a.hash){p="The URL contains a fragment identifier"}if(p){const t=new SyntaxError(p);if(e._redirects===0){throw t}else{emitErrorAndClose(e,t);return}}const b=l?443:80;const m=u(16).toString("base64");const v=l?i.request:o.request;const y=new Set;let _;s.createConnection=s.createConnection||(l?tlsConnect:netConnect);s.defaultPort=s.defaultPort||b;s.port=a.port||b;s.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname;s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":m,Connection:"Upgrade",Upgrade:"websocket"};s.path=a.pathname+a.search;s.timeout=s.handshakeTimeout;if(s.perMessageDeflate){_=new h(s.perMessageDeflate!==true?s.perMessageDeflate:{},false,s.maxPayload);s.headers["Sec-WebSocket-Extensions"]=O({[h.extensionName]:_.offer()})}if(r.length){for(const e of r){if(typeof e!=="string"||!j.test(e)||y.has(e)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}y.add(e)}s.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(s.origin){if(s.protocolVersion<13){s.headers["Sec-WebSocket-Origin"]=s.origin}else{s.headers.Origin=s.origin}}if(a.username||a.password){s.auth=`${a.username}:${a.password}`}if(f){const e=s.path.split(":");s.socketPath=e[0];s.path=e[1]}let D;if(s.followRedirects){if(e._redirects===0){e._originalIpc=f;e._originalSecure=l;e._originalHostOrSocketPath=f?s.socketPath:a.host;const t=n&&n.headers;n={...n,headers:{}};if(t){for(const[e,r]of Object.entries(t)){n.headers[e.toLowerCase()]=r}}}else if(e.listenerCount("redirect")===0){const t=f?e._originalIpc?s.socketPath===e._originalHostOrSocketPath:false:e._originalIpc?false:a.host===e._originalHostOrSocketPath;if(!t||e._originalSecure&&!l){delete s.headers.authorization;delete s.headers.cookie;if(!t)delete s.headers.host;s.auth=undefined}}if(s.auth&&!n.headers.authorization){n.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")}D=e._req=v(s);if(e._redirects){e.emit("redirect",e.url,D)}}else{D=e._req=v(s)}if(s.timeout){D.on("timeout",(()=>{abortHandshake(e,D,"Opening handshake has timed out")}))}D.on("error",(t=>{if(D===null||D[x])return;D=e._req=null;emitErrorAndClose(e,t)}));D.on("response",(i=>{const o=i.headers.location;const a=i.statusCode;if(o&&s.followRedirects&&a>=300&&a<400){if(++e._redirects>s.maxRedirects){abortHandshake(e,D,"Maximum redirects exceeded");return}D.abort();let i;try{i=new d(o,t)}catch(t){const r=new SyntaxError(`Invalid URL: ${o}`);emitErrorAndClose(e,r);return}initAsClient(e,i,r,n)}else if(!e.emit("unexpected-response",D,i)){abortHandshake(e,D,`Unexpected server response: ${i.statusCode}`)}}));D.on("upgrade",((t,r,n)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;D=e._req=null;const i=t.headers.upgrade;if(i===undefined||i.toLowerCase()!=="websocket"){abortHandshake(e,r,"Invalid Upgrade header");return}const o=c("sha1").update(m+g).digest("base64");if(t.headers["sec-websocket-accept"]!==o){abortHandshake(e,r,"Invalid Sec-WebSocket-Accept header");return}const a=t.headers["sec-websocket-protocol"];let u;if(a!==undefined){if(!y.size){u="Server sent a subprotocol but none was requested"}else if(!y.has(a)){u="Server sent an invalid subprotocol"}}else if(y.size){u="Server sent no subprotocol"}if(u){abortHandshake(e,r,u);return}if(a)e._protocol=a;const l=t.headers["sec-websocket-extensions"];if(l!==undefined){if(!_){const t="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(e,r,t);return}let t;try{t=k(l)}catch(t){const n="Invalid Sec-WebSocket-Extensions header";abortHandshake(e,r,n);return}const n=Object.keys(t);if(n.length!==1||n[0]!==h.extensionName){const t="Server indicated an extension that was not requested";abortHandshake(e,r,t);return}try{_.accept(t[h.extensionName])}catch(t){const n="Invalid Sec-WebSocket-Extensions header";abortHandshake(e,r,n);return}e._extensions[h.extensionName]=_}e.setSocket(r,n,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}));if(s.finishRequest){s.finishRequest(D,e)}else{D.end()}}function emitErrorAndClose(e,t){e._readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()}function netConnect(e){e.path=e.socketPath;return s.connect(e)}function tlsConnect(e){e.path=undefined;if(!e.servername&&e.servername!==""){e.servername=s.isIP(e.host)?"":e.host}return a.connect(e)}function abortHandshake(e,t,r){e._readyState=WebSocket.CLOSING;const n=new Error(r);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t[x]=true;t.abort();if(t.socket&&!t.socket.destroyed){t.socket.destroy()}process.nextTick(emitErrorAndClose,e,n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function sendAfterClose(e,t,r){if(t){const r=A(t).length;if(e._socket)e._sender._bufferedBytes+=r;else e._bufferedAmount+=r}if(r){const t=new Error(`WebSocket is not open: readyState ${e.readyState} `+`(${F[e.readyState]})`);process.nextTick(r,t)}}function receiverOnConclude(e,t){const r=this[w];r._closeFrameReceived=true;r._closeMessage=t;r._closeCode=e;if(r._socket[w]===undefined)return;r._socket.removeListener("data",socketOnData);process.nextTick(resume,r._socket);if(e===1005)r.close();else r.close(e,t)}function receiverOnDrain(){const e=this[w];if(!e.isPaused)e._socket.resume()}function receiverOnError(e){const t=this[w];if(t._socket[w]!==undefined){t._socket.removeListener("data",socketOnData);process.nextTick(resume,t._socket);t.close(e[D])}t.emit("error",e)}function receiverOnFinish(){this[w].emitClose()}function receiverOnMessage(e,t){this[w].emit("message",e,t)}function receiverOnPing(e){const t=this[w];if(t._autoPong)t.pong(e,!this._isServer,C);t.emit("ping",e)}function receiverOnPong(e){this[w].emit("pong",e)}function resume(e){e.resume()}function socketOnClose(){const e=this[w];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);e._readyState=WebSocket.CLOSING;let t;if(!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null){e._receiver.write(t)}e._receiver.end();this[w]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[w]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[w];e._readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[w];this.removeListener("error",socketOnError);this.on("error",C);if(e){e._readyState=WebSocket.CLOSING;this.destroy()}}},1451:(e,t,r)=>{
|
|
2
2
|
/**
|
|
3
3
|
* Wrapper for built-in http.js to emulate the browser XMLHttpRequest object.
|
|
4
4
|
*
|