Files
hlt1995-qlScripts/caiyun-1.0.0-alpha.7.mjs
T
2025-08-28 12:37:17 +08:00

492 lines
1.2 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{createRequire}from'module';if(!globalThis.require)globalThis.require=createRequire(import.meta.url);
var n2=Object.create;var Ya=Object.defineProperty;var o2=Object.getOwnPropertyDescriptor;var u2=Object.getOwnPropertyNames;var c2=Object.getPrototypeOf,l2=Object.prototype.hasOwnProperty;var M=(s=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(s,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):s)(function(s){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+s+'" is not supported')});var k=(s,e)=>()=>(s&&(e=s(s=0)),e);var O=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports),pr=(s,e)=>{for(var t in e)Ya(s,t,{get:e[t],enumerable:!0})},rf=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u2(e))!l2.call(s,r)&&r!==t&&Ya(s,r,{get:()=>e[r],enumerable:!(i=o2(e,r))||i.enumerable});return s};var Dt=(s,e,t)=>(t=s!=null?n2(c2(s)):{},rf(e||!s||!s.__esModule?Ya(t,"default",{value:s,enumerable:!0}):t,s)),p2=s=>rf(Ya({},"__esModule",{value:!0}),s);var h=k(()=>{});var hr,h2,d2,uu,cu,af,ui,nf,of,dr=k(()=>{h();hr="12.0.1",h2="7.15.3",d2="8.3.3.20250521",uu=`1|127.0.0.1|1|${hr}|Xiaomi|22041216C||02-00-00-00-00-00|android 14|1080X2360|zh||||032|0|`,cu=`||9|${h2}|firefox|139.0|||linux unknow||zh-CN|||`,af=`||11|${d2}|PC|TGktMjAyNDA5MTcxMDA2||| Windows 11 (11.0)|1920X1020|Q2hpbmVzZSAoU2ltcGxpZmllZCk=|||`,ui=uu,nf="Mozilla/5.0 (Linux; Android 14; 22041216C Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/128.0.6613.88 Mobile Safari/537.36",of="1"});var Yt,ci,Qa,Za,lu,pu,fr,kt,en,qe=k(()=>{h();Yt="https://caiyun.feixin.10086.cn",ci="https://caiyun.feixin.10086.cn/market",Qa="https://html5.mail.10086.cn/mw2/together/s",Za="https://caiyun.feixin.10086.cn/market/lanternriddles/answeredPuzzles",lu="https://ai.yun.139.com",pu="https://yun.139.com/mrpInfo/ycloud/aixt",fr="https://cpactiv.buy.139.com/cloudphone-market",kt={AI_CLOUND_NUM:"ai_cloud_num",USER_ID:"user_id",SHARE_FIND:"share_find"},en={web:"10000034",pc:"10200153",android:"10000023"}});function uf(s){return s.post("https://personal-kd-njs.yun.139.com/hcy/file/list",{pageInfo:{pageSize:100,pageCursor:null},orderBy:"updated_at",orderDirection:"DESC",parentFileId:"/",imageThumbnailStyleList:["Small","Large"]},{headers:{"x-yun-api-version":"v1","x-yun-app-channel":"10000034","x-yun-client-info":"||9|7.13.6|edge||||linux unknow||zh-CN|||ZWRnZQ==||"}})}function cf(s,e,t){return s.post("https://yun.139.com/orchestration/personalCloud/catalog/v1.0/getDisk",{commonAccountInfo:{account:String(e)},catalogID:t,catalogType:-1,sortDirection:1,catalogSortType:0,contentSortType:0,filterType:0,startNumber:1,endNumber:100})}function hu({channelSrc:s="10000023",opType:e}){let t={"x-yun-api-version":"v1","x-yun-app-channel":s,"x-yun-op-type":"1"};if(s===en.pc)return console.log(`使用 PC 客户端上传文件,channelSrc: ${s}, opType: ${e}`),{...t,"x-yun-market-source":"001","x-yun-module-type":"100","x-yun-op-type":"1","x-yun-svc-type":"1","x-yun-client-info":af,"User-Agent":"Mozilla/5.0"};if(s===en.android){let i=e==="backup"?2:1;return{...t,"x-huawei-channelSrc":s,"x-yun-client-info":uu,"x-yun-op-type":i.toString(),"x-yun-sub-op-type":(i*100).toString()}}return{...t,"x-huawei-channelSrc":s||en.web,"x-yun-client-info":cu,"x-yun-device-id":cu}}function lf(s,{name:e,parentFileId:t,contentHash:i,size:r,channelSrc:a,opType:n}){return s.post("https://personal-kd-njs.yun.139.com/hcy/file/create",{parentFileId:t||"/",name:e,type:"file",size:r,fileRenameMode:"auto_rename",contentHash:i,contentHashAlgorithm:"SHA256",contentType:"application/oct-stream",parallelUpload:!1,partInfos:[{parallelHashCtx:{partOffset:0},partNumber:1,partSize:r}]},{headers:{...hu({channelSrc:a,opType:n})}})}function pf(s,{channelSrc:e,fileId:t,uploadId:i,contentHash:r,opType:a}){return s.post("https://personal-kd-njs.yun.139.com/hcy/file/complete",{fileId:t,uploadId:i,contentHash:r,contentHashAlgorithm:"SHA256"},{headers:{...hu({channelSrc:e,opType:a})}})}function hf(s,e,t){return s.put(e,t,{headers:{"content-type":"application/octet-stream",origin:"https://yun.139.com",referer:"https://yun.139.com/"},clearHeaders:!0,hooks:[]})}function df(s,e){return s.post("https://personal-kd-njs.yun.139.com/hcy/recyclebin/batchTrash",{fileIds:e},{headers:{...hu({channelSrc:"10000034"})}})}var tn=k(()=>{h();dr();qe()});function Ke(s,e="-"){return Array.isArray(s)?s.map(t=>Ke(t,e)).join(e):Array.from({length:s}).map(()=>Math.floor(Math.random()*16).toString(16)).join("")}function ut(s,e=s){return Math.floor(Math.random()*(e-s)+s)}function ff(s){return Array.from({length:s}).reduce(e=>{let t=Math.floor(Math.random()*62);return e+String.fromCharCode(t+(t<10?48:t<36?55:61))},"")}function mf(s,e){if(!s.match)return"";let t=s.match(`<${e}>(.*)</${e}>`);return t?t[1]:""}async function sn(s,e,t){let i=s.length;for(let r=0;r<i;r++){let a=s[r];await e(a),r<i-1&&t&&await t()}}function du(s,e,t){return Reflect.has(s,e)?Reflect.set(s,e,Reflect.get(s,e).concat(t)):Reflect.set(s,e,t)}function rn(s){s=s.replace("Basic ",""),s=f2(s);let e=Buffer.from(s,"base64").toString("utf-8"),[t,i,r]=e.split(":");return{phone:i,token:r,auth:`Basic ${s}`,platform:t,expire:Number(r.split("|")[3])}}function f2(s){return s.length%4===0?s:s+"=".repeat(4-s.length%4)}function gf(s){if(typeof s!="string")return 0;let e=0,t=null;if(s.length==0)return e;for(let i=0;i<s.length;i++)t=s.charCodeAt(i),e=(e<<5)-e+t,e=e&e;return e}function li(){try{return globalThis.URLSearchParams===void 0&&globalThis.HTTP}catch{return!1}}function mr(){let s=new Date;return s.getUTCFullYear()+Bt(s.getUTCMonth()+1)+Bt(s.getUTCDate())+Bt(s.getUTCHours()+8)+Bt(s.getUTCMinutes())+Bt(s.getUTCSeconds())}function Bt(s){return s<10?`0${s}`:`${s}`}function an(s){return s?Object.entries(s).reduce((e,[t,i])=>(e[t.toLowerCase()]=i,e),{}):{}}function nn(s){let e=Date.now();for(;Date.now()-e<s;);return s}function yf(){let s=new Date;return s.getUTCFullYear()+"",+Bt(s.getUTCMonth()+1)+"",+Bt(s.getUTCDate())+"",+Bt(s.getUTCHours()+8)+"",+Bt(s.getUTCMinutes())+"",+Bt(s.getUTCSeconds())}function on(s){return new Date(s).getMonth()===new Date().getMonth()}function xf(s){return typeof s=="string"}function bf(s){return typeof s>"u"}function wf(s){return s==null}function pi(s){return s.substring(0,3)+"*******"+s.substring(9)}var Pe=k(()=>{h()});function Df(s,e){return s.post(`${pu}/playAiClouds/getCloudReward`,e)}function kf(s,e){return s.post(`${pu}/playAiClouds/getPreCloudReward`,{type:0,...e},{headers:{"X-Requested-With":"com.chinamobile.mcloud",Referer:"https://yun.139.com/ai-helper/"}})}var vf=k(()=>{h();qe()});async function ie(s,e,t,...i){let r=typeof t=="string"?t:t.name;try{let{code:a,message:n,msg:o,result:u}=await e(...i);return a!==0?(s.logger.fatal(`${r}失败`,a,n||o),typeof t=="object"?t.isArray===!1?{}:[]:{}):u}catch(a){s.logger.error(`${r}异常`,a)}return typeof t=="object"?t.isArray===!1?{}:[]:{}}function Ef(s){return{newsign_139mail:"139 邮箱",sign_in_3:"移动云盘"}[s]||"未知应用"}function Cf(s){return{day:"每日任务",month:"每月任务",new:"新用户任务",time:"热门任务",hiddenabc:"隐藏任务",hidden:"隐藏任务",beiyong1:"临时任务"}[s]||"未知任务"}var Je=k(()=>{h()});async function hi(s,e,t){s.localStorage&&t&&await s.localStorage.setItem(e,{count:t,lastUpdate:new Date})}async function Tf(s,e,t){if(t)return await hi(s,e,t+=await fu(s,e)),t}async function fu(s,e){if(!s.localStorage)return;let t=await s.localStorage.getItem(e);return t&&on(t.lastUpdate)?t.count:0}var mu=k(()=>{h();Pe()});async function gu(s){if(s.logger.start("------【玩AI小天得云朵】------"),li()){s.logger.fail("AI云朵","当前环境为WPS,跳过");return}if(!s.store.aiSession||!s.store.aiSession.length){s.logger.fail("AI云朵","没有AI云朵对话记录,请确定AI红包任务已经运行");return}try{if(!s.config.userId){s.logger.fatal("AI云朵","获取用户ID失败");return}let e=s.node.encryptAiUserId(s.config.userId),t=await fu(s,kt.AI_CLOUND_NUM);if(t||await hi(s,kt.AI_CLOUND_NUM,t=await x2(s)||0),s.logger.info(`本月获取云朵数量: ${t}`),t>250)return;if(t>=197)return await Sf(s,{...s.store.aiSession[0],userId:e});for(let i=0;i<10;i++){let r=s.store.aiSession[ut(0,s.store.aiSession.length-1)];await Sf(s,{...r,userId:e}),await s.sleep(2e3)}}catch(e){s.logger.error("AI红包",e)}}async function Sf(s,e){return await Tf(s,kt.AI_CLOUND_NUM,await m2(s,e))}async function m2(s,e){try{let t=await g2(s,e);return t?await y2(s,{userId:e.userId,recordId:t}):void 0}catch(t){s.logger.error("AI云朵异常",t)}}async function g2({http:s,logger:e},t){try{let{code:i,msg:r,result:a}=await kf(s,t);if(i===52105)return e.debug("僵尸打开你的脑子,摇了摇头走了");if(i!==0){e.fail("抽取奖励失败",i,r);return}return e.debug("抽取奖励成功, 抽取",a.cloudNum),a.recordId}catch(i){e.error("抽取奖励异常",i)}}async function y2({http:s,logger:e},t){try{let{msg:i,code:r,result:a}=await Df(s,t);if(r!==0){e.fail("领取奖励失败",r,i);return}return e.success("领取奖励成功, 获取",a,"云朵"),a}catch(i){e.error("领取奖励异常",i)}}async function x2(s){let e=await ie(s,s.api.getCloudRecord,"获取云朵记录",1,300);return e?e.records.filter(i=>i.mark==="PlayAiodd"&&on(i.inserttime)).reduce((i,r)=>i+r.num,0):0}var Af=k(()=>{h();Pe();vf();qe();Je();mu()});var b2,w2,D2,jf,Pf,Ff=k(()=>{h();b2={1009:{id:1009,group:"month"},1010:{id:1010,group:"month"},1013:{id:1013,group:"month"},1016:{id:1016,group:"month"},1021:{id:1021,group:"month",runner:!0}},w2={106:{id:106,runner:!0,group:"day"},107:{id:107,runner:!0,group:"day"},110:{id:110,runner:!0,group:"month"},113:{id:113,group:"month"},115:{id:115,group:"month"},431:{id:431,group:"month"},434:{id:434,runner:void 0,group:"day"},435:{id:435,group:"month"},522:{id:522,group:"month",runner:!0}},D2={434:{id:434,group:"time"},447:{id:447,group:"time"}},jf={...b2,...w2,...D2},Pf=[117,437,991,406,385,120]});async function k2(s,e){try{let{success:t,data:i,code:r,message:a}=await s.api.querySpecToken(e);if(!t){s.logger.debug("获取 ssoToken 失败",r,a,i);return}return i.token}catch(t){s.logger.error("获取 ssoToken 异常",t)}}async function un(s,e){let t;for(let i=0;i<5;i++){if(t=await k2(s,e),t)return t;await s.sleep(2e3)}s.logger.fatal("获取 ssoToken 失败,请查看 debug 信息")}async function If(s){let e=await un(s,s.config.phone);if(e)try{let{code:t,summary:i,var:r}=await s.api.loginMail(e);if(t!=="S_OK"){s.logger.fatal("获取 sid 失败",t,i);return}return r}catch(t){s.logger.error("获取 sid 异常",t)}}async function yu(s){try{let{token:e,phone:t}=s.config,i=await s.api.authTokenRefresh(e,t);if(!i)return s.logger.error("authTokenRefresh 失败");let r=mf(i,"token");if(r)return r;s.logger.error(i)}catch(e){s.logger.error("刷新 token 失败",e)}}async function v2(s,e){return(await ie(s,s.api.tyrzLogin,"获取 ssoToken ",e)).token}async function cn(s){let e=await un(s,s.config.phone);if(e)return await v2(s,e)}async function xu(s){try{return s.api.getNoteAuthToken(s.config.token,s.config.phone)}catch(e){s.logger.error("获取云笔记 Auth Token 异常",e)}}async function E2(s){let{body:e}=await xu(s);if(!e)return;let t=e.match(/"userId":(\d+)/);if(t)return t[1]}async function _f(s){let e=await s.localStorage?.getItem(kt.USER_ID);if(e){s.config.userId=e;return}(e=await E2(s))&&(s.config.userId=e,await s.localStorage?.setItem(kt.USER_ID,e))}function C2(s,e){return s-Date.now()<e*864e5}async function ln(s){let{config:e,logger:t}=s;if(t.debug("------【检测账号有效期】------"),t.debug(`token 有效期 ${Math.floor((e.expire-Date.now())/864e5)} 天`),!!C2(e.expire,e.剩余多少天刷新token))return t.info("尝试生成新的 auth"),await S2(s)}function T2(s,e,t){return Buffer.from(`${t}:${e}:${s}`).toString("base64")}async function S2(s){let e=await yu(s);if(e){let{config:t}=s;return T2(e,t.phone,t.platform)}s.logger.error("生成新 auth 失败")}var gr=k(()=>{h();Pe();qe();Je()});async function bu(s){if(s.logger.start("------【AI红包】------"),li()){s.logger.fail("AI红包","当前环境为WPS,跳过");return}try{if(await A2(s),!await F2(s))return;await _f(s);let t=4;for(;!await P2(s)&&t>0;)t--}catch(e){s.logger.error("AI红包",e)}}async function A2({api:s,sleep:e}){let t="&marketName=National_LanternRiddlesal_LanternRiddles";await s.journaling("National_LanternRiddles_client_all","1008",t),await e(200),await s.journaling("National_LanternRiddles_pv","1008",t),await e(200),await s.journaling("National_LanternRiddles_client_isApp","1008",t),await e(200)}function j2(s,{sessionId:e,dialogueId:t}){s.store.aiSession||(s.store.aiSession=[]),s.store.aiSession.push({sessionId:e,dialogueId:t}),s.logger.debug("保存会话",e,t)}async function P2(s){let e=s.sleep;await e(1e3);let t=await I2(s);if(!t)return;let i=t[ut(0,t.length-1)];s.logger.debug("谜面 -> ",i.puzzle),await e(200);let{msg:r,exitMsg:a,needMatch:n,failMsg:o}=await _2(s,i.puzzle);if(a)throw new Error(a);if(o)return s.logger.fail("AI红包",o);if(!r)return s.logger.debug("获取AI聊天消息失败");let u=n?N2(r):r;if(!u)return s.logger.fail("AI红包","未获取到谜底",r);s.logger.debug("谜底 -> ",u),await e(400);let c=await B2(s,i.id,u);if(c===-1)return!0;if(c!==0)return;await e(400);let l=await O2(s,i.id);if(l===-1)return!0;if(typeof l!="number"){if(l!=="谢谢参与")return s.logger.success("获得",l),!0;s.logger.debug("获得",l)}}async function F2(s){try{let e=await If(s);if(!e)return;let{sid:t,rmkey:i}=e;if(t)return s.http.setCookie("sid",t,Yt),s.http.setCookie("RMKEY",i,Qa),t}catch(e){s.logger.error("邮箱登录异常",e)}}async function I2(s){let e=await ie(s,s.api.getIndexPuzzleCard,{name:"获取谜底列表"});if(!e.length){s.logger.fail("未获取到谜底列表,跳过任务");return}return e.filter(({puzzleTitleContext:t})=>t&&t.length<6).map(t=>({puzzle:t.puzzleTitleContext,id:t.id}))}async function _2(s,e){try{let{code:t,success:i,message:r,data:a}=await s.api.addChat(e,s.config.userId);return i?(a.sessionId&&j2(s,a),a.flowResult?{msg:a.flowResult.outContent,needMatch:!0}:a.leadCopy?{msg:a.leadCopy.linkName}:{failMsg:JSON.stringify({code:t,message:r,success:i,data:a})}):(s.logger.fail("获取AI聊天消息失败",t,r),t==="10000007"||t==="01000004"?{exitMsg:r}:{})}catch(t){s.logger.error("获取AI聊天消息异常",t)}}function N2(s){if(!s.includes("<p>")||!s.includes("——"))return;let[,e]=s.split("<p>"),[t]=e.split(/<\/p\s?>/);if(!t)return;let[,i]=t.trim().split(/—+/),r=i&&i.trim().replace(/<br\s?\/>/,"");return r&&r.split("/")[0]}async function B2(s,e,t){try{let{code:i,msg:r}=await s.api.submitAnswered(e,t);switch(i){case 0:return s.logger.debug("回答问题成功"),0;case 201:return s.logger.fail("回答问题成功,但",r),-1;default:return s.logger.fail("回答问题失败",i,r),1}}catch(i){s.logger.error("回答答案异常",i)}return 2}async function O2(s,e){try{let{code:t,msg:i,result:r}=await s.api.getAwarding(e);switch(t){case 0:return r.prizeName;case 10010020:return s.logger.fail("可能你需要去 APP 手动完成一次",t,i),-1;default:return s.logger.fail("打开红包失败",t,i),1}}catch(t){s.logger.error("打开红包",t)}return 2}var Nf=k(()=>{h();Pe();qe();Je();gr()});var Bf=k(()=>{h();qe()});var Of=k(()=>{h();Bf()});var Lf=O((wu,Du)=>{h();(function(s,e){typeof wu=="object"&&typeof Du<"u"?Du.exports=e():typeof define=="function"&&define.amd?define(e):(s=typeof globalThis<"u"?globalThis:s||self).dayjs=e()})(wu,function(){"use strict";var s=1e3,e=6e4,t=36e5,i="millisecond",r="second",a="minute",n="hour",o="day",u="week",c="month",l="quarter",p="year",d="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var _=["th","st","nd","rd"],B=W%100;return"["+W+(_[(B-20)%10]||_[B]||_[0])+"]"}},w=function(W,_,B){var V=String(W);return!V||V.length>=_?W:""+Array(_+1-V.length).join(B)+W},T={s:w,z:function(W){var _=-W.utcOffset(),B=Math.abs(_),V=Math.floor(B/60),q=B%60;return(_<=0?"+":"-")+w(V,2,"0")+":"+w(q,2,"0")},m:function W(_,B){if(_.date()<B.date())return-W(B,_);var V=12*(B.year()-_.year())+(B.month()-_.month()),q=_.clone().add(V,c),Y=B-q<0,Q=_.clone().add(V+(Y?-1:1),c);return+(-(V+(B-q)/(Y?q-Q:Q-q))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:c,y:p,w:u,d:o,D:d,h:n,m:a,s:r,ms:i,Q:l}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},S="en",E={};E[S]=y;var A="$isDayjsObject",F=function(W){return W instanceof $||!(!W||!W[A])},H=function W(_,B,V){var q;if(!_)return S;if(typeof _=="string"){var Y=_.toLowerCase();E[Y]&&(q=Y),B&&(E[Y]=B,q=Y);var Q=_.split("-");if(!q&&Q.length>1)return W(Q[0])}else{var ce=_.name;E[ce]=_,q=ce}return!V&&q&&(S=q),q||!V&&S},ee=function(W,_){if(F(W))return W.clone();var B=typeof _=="object"?_:{};return B.date=W,B.args=arguments,new $(B)},te=T;te.l=H,te.i=F,te.w=function(W,_){return ee(W,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var $=function(){function W(B){this.$L=H(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var _=W.prototype;return _.parse=function(B){this.$d=function(V){var q=V.date,Y=V.utc;if(q===null)return new Date(NaN);if(te.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var Q=q.match(f);if(Q){var ce=Q[2]-1||0,P=(Q[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Q[1],ce,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,P)):new Date(Q[1],ce,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,P)}}return new Date(q)}(B),this.init()},_.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},_.$utils=function(){return te},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(B,V){var q=ee(B);return this.startOf(V)<=q&&q<=this.endOf(V)},_.isAfter=function(B,V){return ee(B)<this.startOf(V)},_.isBefore=function(B,V){return this.endOf(V)<ee(B)},_.$g=function(B,V,q){return te.u(B)?this[V]:this.set(q,B)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(B,V){var q=this,Y=!!te.u(V)||V,Q=te.p(B),ce=function(je,ke){var ot=te.w(q.$u?Date.UTC(q.$y,ke,je):new Date(q.$y,ke,je),q);return Y?ot:ot.endOf(o)},P=function(je,ke){return te.w(q.toDate()[je].apply(q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(ke)),q)},I=this.$W,R=this.$M,J=this.$D,ae="set"+(this.$u?"UTC":"");switch(Q){case p:return Y?ce(1,0):ce(31,11);case c:return Y?ce(1,R):ce(0,R+1);case u:var le=this.$locale().weekStart||0,ge=(I<le?I+7:I)-le;return ce(Y?J-ge:J+(6-ge),R);case o:case d:return P(ae+"Hours",0);case n:return P(ae+"Minutes",1);case a:return P(ae+"Seconds",2);case r:return P(ae+"Milliseconds",3);default:return this.clone()}},_.endOf=function(B){return this.startOf(B,!1)},_.$set=function(B,V){var q,Y=te.p(B),Q="set"+(this.$u?"UTC":""),ce=(q={},q[o]=Q+"Date",q[d]=Q+"Date",q[c]=Q+"Month",q[p]=Q+"FullYear",q[n]=Q+"Hours",q[a]=Q+"Minutes",q[r]=Q+"Seconds",q[i]=Q+"Milliseconds",q)[Y],P=Y===o?this.$D+(V-this.$W):V;if(Y===c||Y===p){var I=this.clone().set(d,1);I.$d[ce](P),I.init(),this.$d=I.set(d,Math.min(this.$D,I.daysInMonth())).$d}else ce&&this.$d[ce](P);return this.init(),this},_.set=function(B,V){return this.clone().$set(B,V)},_.get=function(B){return this[te.p(B)]()},_.add=function(B,V){var q,Y=this;B=Number(B);var Q=te.p(V),ce=function(R){var J=ee(Y);return te.w(J.date(J.date()+Math.round(R*B)),Y)};if(Q===c)return this.set(c,this.$M+B);if(Q===p)return this.set(p,this.$y+B);if(Q===o)return ce(1);if(Q===u)return ce(7);var P=(q={},q[a]=e,q[n]=t,q[r]=s,q)[Q]||1,I=this.$d.getTime()+B*P;return te.w(I,this)},_.subtract=function(B,V){return this.add(-1*B,V)},_.format=function(B){var V=this,q=this.$locale();if(!this.isValid())return q.invalidDate||m;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",Q=te.z(this),ce=this.$H,P=this.$m,I=this.$M,R=q.weekdays,J=q.months,ae=q.meridiem,le=function(ke,ot,Ms,Nt){return ke&&(ke[ot]||ke(V,Y))||Ms[ot].slice(0,Nt)},ge=function(ke){return te.s(ce%12||12,ke,"0")},je=ae||function(ke,ot,Ms){var Nt=ke<12?"AM":"PM";return Ms?Nt.toLowerCase():Nt};return Y.replace(g,function(ke,ot){return ot||function(Ms){switch(Ms){case"YY":return String(V.$y).slice(-2);case"YYYY":return te.s(V.$y,4,"0");case"M":return I+1;case"MM":return te.s(I+1,2,"0");case"MMM":return le(q.monthsShort,I,J,3);case"MMMM":return le(J,I);case"D":return V.$D;case"DD":return te.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return le(q.weekdaysMin,V.$W,R,2);case"ddd":return le(q.weekdaysShort,V.$W,R,3);case"dddd":return R[V.$W];case"H":return String(ce);case"HH":return te.s(ce,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return je(ce,P,!0);case"A":return je(ce,P,!1);case"m":return String(P);case"mm":return te.s(P,2,"0");case"s":return String(V.$s);case"ss":return te.s(V.$s,2,"0");case"SSS":return te.s(V.$ms,3,"0");case"Z":return Q}return null}(ke)||Q.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(B,V,q){var Y,Q=this,ce=te.p(V),P=ee(B),I=(P.utcOffset()-this.utcOffset())*e,R=this-P,J=function(){return te.m(Q,P)};switch(ce){case p:Y=J()/12;break;case c:Y=J();break;case l:Y=J()/3;break;case u:Y=(R-I)/6048e5;break;case o:Y=(R-I)/864e5;break;case n:Y=R/t;break;case a:Y=R/e;break;case r:Y=R/s;break;default:Y=R}return q?Y:te.a(Y)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return E[this.$L]},_.locale=function(B,V){if(!B)return this.$L;var q=this.clone(),Y=H(B,V,!0);return Y&&(q.$L=Y),q},_.clone=function(){return te.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},W}(),ue=$.prototype;return ee.prototype=ue,[["$ms",i],["$s",r],["$m",a],["$H",n],["$W",o],["$M",c],["$y",p],["$D",d]].forEach(function(W){ue[W[1]]=function(_){return this.$g(_,W[0],W[1])}}),ee.extend=function(W,_){return W.$i||(W(_,$,ee),W.$i=!0),ee},ee.locale=H,ee.isDayjs=F,ee.unix=function(W){return ee(1e3*W)},ee.en=E[S],ee.Ls=E,ee.p={},ee})});function zf(s,e){return s===e||Number.isNaN(s)&&Number.isNaN(e)}var Mf=k(()=>{h()});function Rf(s){return typeof s=="string"||typeof s=="symbol"?s:Object.is(s.valueOf(),-0)?"-0":s.toString()}var qf=k(()=>{h()});function Uf(s){let e=[],t=s.length;if(t===0)return e;let i=0,r="",a="",n=!1;for(s.charCodeAt(0)===46&&(e.push(""),i++);i<t;){let o=s[i];a?o==="\\"&&i+1<t?(i++,r+=s[i]):o===a?a="":r+=o:n?o==='"'||o==="'"?a=o:o==="]"?(n=!1,e.push(r),r=""):r+=o:o==="["?(n=!0,r&&(e.push(r),r="")):o==="."?r&&(e.push(r),r=""):r+=o,i++}return r&&e.push(r),e}var Hf=k(()=>{h()});function ku(s){return s!==null&&(typeof s=="object"||typeof s=="function")}var $f=k(()=>{h()});function Vf(s,e=Number.MAX_SAFE_INTEGER){switch(typeof s){case"number":return Number.isInteger(s)&&s>=0&&s<e;case"symbol":return!1;case"string":return z2.test(s)}}var z2,Wf=k(()=>{h();z2=/^(?:0|[1-9]\d*)$/});function Gf(s){return typeof s=="symbol"||s instanceof Symbol}var Kf=k(()=>{h()});function Jf(s,e){return Array.isArray(s)?!1:typeof s=="number"||typeof s=="boolean"||s==null||Gf(s)?!0:typeof s=="string"&&(R2.test(s)||!M2.test(s))||e!=null&&Object.hasOwn(e,s)}var M2,R2,Xf=k(()=>{h();Kf();M2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R2=/^\w*$/});var Yf,Qf=k(()=>{h();Mf();Yf=(s,e,t)=>{let i=s[e];(!(Object.hasOwn(s,e)&&zf(i,t))||t===void 0&&!(e in s))&&(s[e]=t)}});function ds(s,e,t){if(s==null&&!ku(s))return s;let i=Jf(e,s)?[e]:Array.isArray(e)?e:typeof e=="string"?Uf(e):[e],r=s;for(let a=0;a<i.length&&r!=null;a++){let n=Rf(i[a]),o=t;if(a!==i.length-1){let u=r[n];o=ku(u)?u:Vf(i[a+1])?[]:{}}Yf(r,n,o),r=r[n]}return s}var Zf=k(()=>{h();Qf();Wf();Xf();qf();$f();Hf()});var em=k(()=>{h();Zf()});function vu(s){if(s===null||typeof s!="object")return!1;let e=Object.getPrototypeOf(s);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in s?!1:Symbol.toStringTag in s?Object.prototype.toString.call(s)==="[object Module]":!0}function Tu(s,e,t=".",i){if(!vu(e))return Tu(s,{},t,i);let r=Object.assign({},e);for(let a in s){if(a==="__proto__"||a==="constructor")continue;let n=s[a];n!=null&&(i&&i(r,a,n,t)||(Array.isArray(n)&&Array.isArray(r[a])?r[a]=[...n,...r[a]]:vu(n)&&vu(r[a])?r[a]=Tu(n,r[a],(t?`${t}.`:"")+a.toString(),i):r[a]=n))}return r}function q2(s){return(...e)=>e.reduce((t,i)=>Tu(t,i,"",s),{})}function H2(s){return Object.prototype.toString.call(s)==="[object Object]"}function $2(s){return!(!H2(s)||!s.message&&!s.args||s.stack)}function Cu(s,e={},t=3){return s===void 0?t:typeof s=="number"?s:e[s]&&e[s].level!==void 0?e[s].level:t}function sm(s={}){return new _e(s)}var Be,pn,U2,Eu,tm,_e,Su=k(()=>{h();Be={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},pn={silent:{level:-1},fatal:{level:Be.fatal},error:{level:Be.error},warn:{level:Be.warn},log:{level:Be.log},info:{level:Be.info},success:{level:Be.success},fail:{level:Be.fail},ready:{level:Be.info},start:{level:Be.info},box:{level:Be.info},debug:{level:Be.debug},trace:{level:Be.trace},verbose:{level:Be.verbose}};U2=q2();Eu=!1,tm=[],_e=class s{options;_lastLog;_mockFn;constructor(e={}){let t=e.types||pn;this.options=U2({...e,defaults:{...e.defaults},level:Cu(e.level,t),reporters:[...e.reporters||[]]},{types:pn,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let i in t){let r={type:i,...this.options.defaults,...t[i]};this[i]=this._wrapLogFn(r),this[i].raw=this._wrapLogFn(r,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=Cu(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){let t=new s({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){let t=this.options.reporters.indexOf(e);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(let e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=i=>{this[t].raw(String(i).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){Eu=!0}resumeLogs(){Eu=!1;let e=tm.splice(0);for(let t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){let t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(let i in this.options.types)this[i]=t(i,this.options.types[i])||this[i],this[i].raw=this[i]}_wrapLogFn(e,t){return(...i)=>{if(Eu){tm.push([this,e,i,t]);return}return this._logFn(e,i,t)}}_logFn(e,t,i){if((e.level||0)>this.level)return!1;let r={date:new Date,args:[],...e,level:Cu(e.level,this.options.types)};!i&&t.length===1&&$2(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(`
`)),r.args.push(`
`+r.additional.join(`
`)),delete r.additional),r.type=typeof r.type=="string"?r.type.toLowerCase():"log",r.tag=typeof r.tag=="string"?r.tag:"";let a=(o=!1)=>{let u=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&u>0){let c=[...this._lastLog.object.args];u>1&&c.push(`(repeated ${u} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}o&&(this._lastLog.object=r,this._log(r))};clearTimeout(this._lastLog.timeout);let n=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,n<this.options.throttle)try{let o=JSON.stringify([r.type,r.tag,r.args]),u=this._lastLog.serialized===o;if(this._lastLog.serialized=o,u&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(a,this.options.throttle);return}}catch{}a(!0)}_log(e){for(let t of this.options.reporters)t.log(e,{options:this.options})}};_e.prototype.add=_e.prototype.addReporter;_e.prototype.remove=_e.prototype.removeReporter;_e.prototype.clear=_e.prototype.removeReporter;_e.prototype.withScope=_e.prototype.withTag;_e.prototype.mock=_e.prototype.mockTypes;_e.prototype.pause=_e.prototype.pauseLogs;_e.prototype.resume=_e.prototype.resumeLogs});import{formatWithOptions as im}from"node:util";import{sep as V2}from"node:path";function ju(s,e){let t=process.cwd()+V2;return s.split(`
`).splice(e.split(`
`).length).map(r=>r.trim().replace("file://","").replace(t,""))}function W2(s,e){return(e.__write||e.write).call(e,s)}var Au,yr,rm=k(()=>{h();Au=s=>s?`[${s}]`:"",yr=class{formatStack(e,t,i){let r=" ".repeat((i?.errorLevel||0)+1);return r+ju(e,t).join(`
${r}`)}formatError(e,t){let i=e.message??im(t,e),r=e.stack?this.formatStack(e.stack,i,t):"",a=t?.errorLevel||0,n=a>0?`${" ".repeat(a)}[cause]: `:"",o=e.cause?`
`+this.formatError(e.cause,{...t,errorLevel:a+1}):"";return n+i+`
`+r+o}formatArgs(e,t){let i=e.map(r=>r&&typeof r.stack=="string"?this.formatError(r,t):r);return im(t,...i)}formatDate(e,t){return t.date?e.toLocaleTimeString():""}filterAndJoin(e){return e.filter(Boolean).join(" ")}formatLogObj(e,t){let i=this.formatArgs(e.args,t);return e.type==="box"?`
`+[Au(e.tag),e.title&&e.title,...i.split(`
`)].filter(Boolean).map(r=>" > "+r).join(`
`)+`
`:this.filterAndJoin([Au(e.type),Au(e.tag),i])}log(e,t){let i=this.formatLogObj(e,{columns:t.options.stdout.columns||0,...t.options.formatOptions});return W2(i+`
`,e.level<2?t.options.stderr||process.stderr:t.options.stdout||process.stdout)}}});import*as hn from"node:tty";function cm(s,e,t,i,r=e.slice(0,Math.max(0,s))+i,a=e.slice(Math.max(0,s+t.length)),n=a.indexOf(t)){return r+(n<0?a:cm(n,a,t,i))}function eS(s,e,t,i,r){return s<0?t+e+i:t+cm(s,e,i,r)+i}function tS(s,e,t=s,i=s.length+1){return r=>r||!(r===""||r===void 0)?eS((""+r).indexOf(e,i),r,s,e,t):""}function re(s,e,t){return tS(`\x1B[${s}m`,`\x1B[${e}m`,t)}function sS(s=Z2){return s?am:Object.fromEntries(Object.keys(am).map(e=>[e,String]))}function iS(s,e="reset"){return Xe[s]||Xe[e]}function fs(s){return s.replace(new RegExp(rS,"g"),"")}function lm(s,e={}){let t={...e,style:{...aS,...e.style}},i=s.split(`
`),r=[],a=iS(t.style.borderColor),n={...typeof t.style.borderStyle=="string"?nm[t.style.borderStyle]||nm.solid:t.style.borderStyle};if(a)for(let m in n)n[m]=a(n[m]);let o=t.style.padding%2===0?t.style.padding:t.style.padding+1,u=i.length+o,c=Math.max(...i.map(m=>fs(m).length),t.title?fs(t.title).length:0)+o,l=c+o,p=t.style.marginLeft>0?" ".repeat(t.style.marginLeft):"";if(t.style.marginTop>0&&r.push("".repeat(t.style.marginTop)),t.title){let m=a?a(t.title):t.title,f=n.h.repeat(Math.floor((c-fs(t.title).length)/2)),g=n.h.repeat(c-fs(t.title).length-fs(f).length+o);r.push(`${p}${n.tl}${f}${m}${g}${n.tr}`)}else r.push(`${p}${n.tl}${n.h.repeat(l)}${n.tr}`);let d=t.style.valign==="center"?Math.floor((u-i.length)/2):t.style.valign==="top"?u-i.length-o:u-i.length;for(let m=0;m<u;m++)if(m<d||m>=d+i.length)r.push(`${p}${n.v}${" ".repeat(l)}${n.v}`);else{let f=i[m-d],g=" ".repeat(o),y=" ".repeat(c-fs(f).length);r.push(`${p}${n.v}${g}${f}${y}${n.v}`)}return r.push(`${p}${n.bl}${n.h.repeat(l)}${n.br}`),t.style.marginBottom>0&&r.push("".repeat(t.style.marginBottom)),r.join(`
`)}var ms,om,G2,K2,J2,X2,um,Y2,Q2,Z2,am,Xe,rS,nm,aS,pm=k(()=>{h();({env:ms={},argv:om=[],platform:G2=""}=typeof process>"u"?{}:process),K2="NO_COLOR"in ms||om.includes("--no-color"),J2="FORCE_COLOR"in ms||om.includes("--color"),X2=G2==="win32",um=ms.TERM==="dumb",Y2=hn&&hn.isatty&&hn.isatty(1)&&ms.TERM&&!um,Q2="CI"in ms&&("GITHUB_ACTIONS"in ms||"GITLAB_CI"in ms||"CIRCLECI"in ms),Z2=!K2&&(J2||X2&&!um||Y2||Q2);am={reset:re(0,0),bold:re(1,22,"\x1B[22m\x1B[1m"),dim:re(2,22,"\x1B[22m\x1B[2m"),italic:re(3,23),underline:re(4,24),inverse:re(7,27),hidden:re(8,28),strikethrough:re(9,29),black:re(30,39),red:re(31,39),green:re(32,39),yellow:re(33,39),blue:re(34,39),magenta:re(35,39),cyan:re(36,39),white:re(37,39),gray:re(90,39),bgBlack:re(40,49),bgRed:re(41,49),bgGreen:re(42,49),bgYellow:re(43,49),bgBlue:re(44,49),bgMagenta:re(45,49),bgCyan:re(46,49),bgWhite:re(47,49),blackBright:re(90,39),redBright:re(91,39),greenBright:re(92,39),yellowBright:re(93,39),blueBright:re(94,39),magentaBright:re(95,39),cyanBright:re(96,39),whiteBright:re(97,39),bgBlackBright:re(100,49),bgRedBright:re(101,49),bgGreenBright:re(102,49),bgYellowBright:re(103,49),bgBlueBright:re(104,49),bgMagentaBright:re(105,49),bgCyanBright:re(106,49),bgWhiteBright:re(107,49)};Xe=sS();rS=[String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`,String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");nm={solid:{tl:"┌",tr:"┐",bl:"└",br:"┘",h:"─",v:"│"},double:{tl:"╔",tr:"╗",bl:"╚",br:"╝",h:"═",v:"║"},doubleSingle:{tl:"╓",tr:"╖",bl:"╙",br:"╜",h:"─",v:"║"},doubleSingleRounded:{tl:"╭",tr:"╮",bl:"╰",br:"╯",h:"─",v:"║"},singleThick:{tl:"┏",tr:"┓",bl:"┗",br:"┛",h:"━",v:"┃"},singleDouble:{tl:"╒",tr:"╕",bl:"╘",br:"╛",h:"═",v:"│"},singleDoubleRounded:{tl:"╭",tr:"╮",bl:"╰",br:"╯",h:"═",v:"│"},rounded:{tl:"╭",tr:"╮",bl:"╰",br:"╯",h:"─",v:"│"}},aS={borderColor:"white",borderStyle:"rounded",valign:"center",padding:2,marginLeft:1,marginTop:1,marginBottom:1}});var _m={};pr(_m,{kCancel:()=>Fm,prompt:()=>Im});import vt,{stdin as nS,stdout as oS}from"node:process";import hm from"node:readline";import{WriteStream as uS}from"node:tty";function cS(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function lS(){if(dm)return Pu;dm=1;let s="\x1B",e=`${s}[`,t="\x07",i={to(n,o){return o?`${e}${o+1};${n+1}H`:`${e}${n+1}G`},move(n,o){let u="";return n<0?u+=`${e}${-n}D`:n>0&&(u+=`${e}${n}C`),o<0?u+=`${e}${-o}A`:o>0&&(u+=`${e}${o}B`),u},up:(n=1)=>`${e}${n}A`,down:(n=1)=>`${e}${n}B`,forward:(n=1)=>`${e}${n}C`,backward:(n=1)=>`${e}${n}D`,nextLine:(n=1)=>`${e}E`.repeat(n),prevLine:(n=1)=>`${e}F`.repeat(n),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:`${s}7`,restore:`${s}8`},r={up:(n=1)=>`${e}S`.repeat(n),down:(n=1)=>`${e}T`.repeat(n)},a={screen:`${e}2J`,up:(n=1)=>`${e}1J`.repeat(n),down:(n=1)=>`${e}J`.repeat(n),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(n){let o="";for(let u=0;u<n;u++)o+=this.line+(u<n-1?i.up():"");return n&&(o+=i.left),o}};return Pu={cursor:i,scroll:r,erase:a,beep:t},Pu}function pS(){if(fm)return dn.exports;fm=1;let s=process||{},e=s.argv||[],t=s.env||{},i=!(t.NO_COLOR||e.includes("--no-color"))&&(!!t.FORCE_COLOR||e.includes("--color")||s.platform==="win32"||(s.stdout||{}).isTTY&&t.TERM!=="dumb"||!!t.CI),r=(o,u,c=o)=>l=>{let p=""+l,d=p.indexOf(u,o.length);return~d?o+a(p,u,c,d)+u:o+p+u},a=(o,u,c,l)=>{let p="",d=0;do p+=o.substring(d,l)+c,d=l+u.length,l=o.indexOf(u,d);while(~l);return p+o.substring(d)},n=(o=i)=>{let u=o?r:()=>String;return{isColorSupported:o,reset:u("\x1B[0m","\x1B[0m"),bold:u("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:u("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:u("\x1B[3m","\x1B[23m"),underline:u("\x1B[4m","\x1B[24m"),inverse:u("\x1B[7m","\x1B[27m"),hidden:u("\x1B[8m","\x1B[28m"),strikethrough:u("\x1B[9m","\x1B[29m"),black:u("\x1B[30m","\x1B[39m"),red:u("\x1B[31m","\x1B[39m"),green:u("\x1B[32m","\x1B[39m"),yellow:u("\x1B[33m","\x1B[39m"),blue:u("\x1B[34m","\x1B[39m"),magenta:u("\x1B[35m","\x1B[39m"),cyan:u("\x1B[36m","\x1B[39m"),white:u("\x1B[37m","\x1B[39m"),gray:u("\x1B[90m","\x1B[39m"),bgBlack:u("\x1B[40m","\x1B[49m"),bgRed:u("\x1B[41m","\x1B[49m"),bgGreen:u("\x1B[42m","\x1B[49m"),bgYellow:u("\x1B[43m","\x1B[49m"),bgBlue:u("\x1B[44m","\x1B[49m"),bgMagenta:u("\x1B[45m","\x1B[49m"),bgCyan:u("\x1B[46m","\x1B[49m"),bgWhite:u("\x1B[47m","\x1B[49m"),blackBright:u("\x1B[90m","\x1B[39m"),redBright:u("\x1B[91m","\x1B[39m"),greenBright:u("\x1B[92m","\x1B[39m"),yellowBright:u("\x1B[93m","\x1B[39m"),blueBright:u("\x1B[94m","\x1B[39m"),magentaBright:u("\x1B[95m","\x1B[39m"),cyanBright:u("\x1B[96m","\x1B[39m"),whiteBright:u("\x1B[97m","\x1B[39m"),bgBlackBright:u("\x1B[100m","\x1B[49m"),bgRedBright:u("\x1B[101m","\x1B[49m"),bgGreenBright:u("\x1B[102m","\x1B[49m"),bgYellowBright:u("\x1B[103m","\x1B[49m"),bgBlueBright:u("\x1B[104m","\x1B[49m"),bgMagentaBright:u("\x1B[105m","\x1B[49m"),bgCyanBright:u("\x1B[106m","\x1B[49m"),bgWhiteBright:u("\x1B[107m","\x1B[49m")}};return dn.exports=n(),dn.exports.createColors=n,dn.exports}function dS({onlyFirst:s=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,s?void 0:"g")}function Cm(s){if(typeof s!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);return s.replace(fS,"")}function Tm(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function xr(s,e={}){if(typeof s!="string"||s.length===0||(e={ambiguousIsNarrow:!0,...e},s=Cm(s),s.length===0))return 0;s=s.replace(xS()," ");let t=e.ambiguousIsNarrow?1:2,i=0;for(let r of s){let a=r.codePointAt(0);if(!(a<=31||a>=127&&a<=159||a>=768&&a<=879))switch(gS.eastAsianWidth(r)){case"F":case"W":i+=2;break;case"A":i+=t;break;default:i+=1}}return i}function DS(){let s=new Map;for(let[e,t]of Object.entries(ve)){for(let[i,r]of Object.entries(t))ve[i]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[i]=ve[i],s.set(r[0],r[1]);Object.defineProperty(ve,e,{value:t,enumerable:!1})}return Object.defineProperty(ve,"codes",{value:s,enumerable:!1}),ve.color.close="\x1B[39m",ve.bgColor.close="\x1B[49m",ve.color.ansi=mm(),ve.color.ansi256=gm(),ve.color.ansi16m=ym(),ve.bgColor.ansi=mm(Fu),ve.bgColor.ansi256=gm(Fu),ve.bgColor.ansi16m=ym(Fu),Object.defineProperties(ve,{rgbToAnsi256:{value:(e,t,i)=>e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[i]=t;i.length===3&&(i=[...i].map(a=>a+a).join(""));let r=Number.parseInt(i,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>ve.rgbToAnsi256(...ve.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,i,r;if(e>=232)t=((e-232)*10+8)/255,i=t,r=t;else{e-=16;let o=e%36;t=Math.floor(e/36)/5,i=Math.floor(o/6)/5,r=o%6/5}let a=Math.max(t,i,r)*2;if(a===0)return 30;let n=30+(Math.round(r)<<2|Math.round(i)<<1|Math.round(t));return a===2&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(e,t,i)=>ve.ansi256ToAnsi(ve.rgbToAnsi256(e,t,i)),enumerable:!1},hexToAnsi:{value:e=>ve.ansi256ToAnsi(ve.hexToAnsi256(e)),enumerable:!1}}),ve}function wm(s,e,t){return String(s).normalize().replace(/\r\n/g,`
`).split(`
`).map(i=>SS(i,e,t)).join(`
`)}function Pm(s,e){if(typeof s=="string")return mn.aliases.get(s)===e;for(let t of s)if(t!==void 0&&Pm(t,e))return!0;return!1}function jS(s,e){if(s===e)return;let t=s.split(`
`),i=e.split(`
`),r=[];for(let a=0;a<Math.max(t.length,i.length);a++)t[a]!==i[a]&&r.push(a);return r}function fn(s,e){let t=s;t.isTTY&&t.setRawMode(e)}function LS(){return vt.platform!=="win32"?vt.env.TERM!=="linux":!!vt.env.CI||!!vt.env.WT_SESSION||!!vt.env.TERMINUS_SUBLIME||vt.env.ConEmuTask==="{cmd::Cmder}"||vt.env.TERM_PROGRAM==="Terminus-Sublime"||vt.env.TERM_PROGRAM==="vscode"||vt.env.TERM==="xterm-256color"||vt.env.TERM==="alacritty"||vt.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}async function Im(s,e={}){let t=i=>{if(typeof i!="symbol"||i.toString()!=="Symbol(clack:cancel)")return i;switch(e.cancel){case"reject":{let r=new Error("Prompt cancelled.");throw r.name="ConsolaPromptCancelledError",Error.captureStackTrace&&Error.captureStackTrace(r,Im),r}case"undefined":return;case"null":return null;case"symbol":return Fm;default:case"default":return e.default??e.initial}};if(!e.type||e.type==="text")return await VS({message:s,defaultValue:e.default,placeholder:e.placeholder,initialValue:e.initial}).then(t);if(e.type==="confirm")return await WS({message:s,initialValue:e.initial}).then(t);if(e.type==="select")return await GS({message:s,options:e.options.map(i=>typeof i=="string"?{value:i,label:i}:i),initialValue:e.initial}).then(t);if(e.type==="multiselect")return await KS({message:s,options:e.options.map(i=>typeof i=="string"?{value:i,label:i}:i),required:e.required,initialValues:e.initial}).then(t);throw new Error(`Unknown prompt type: ${e.type}`)}var Pu,dm,Et,dn,fm,hS,z,fS,Sm,mS,gS,yS,xS,Fu,mm,gm,ym,ve,bS,wS,kS,gn,vS,Mu,Am,ES,jm,Ru,xm,bm,CS,Iu,TS,SS,AS,mn,Dm,PS,FS,ct,di,_u,IS,_S,km,NS,BS,OS,vm,Nu,Bu,zS,Ct,MS,RS,qS,US,xe,fi,Ou,Lu,HS,Em,$S,yn,zu,VS,WS,GS,KS,Fm,Nm=k(()=>{h();Et=lS(),dn={exports:{}};hS=pS(),z=cS(hS);fS=dS();Sm={exports:{}};(function(s){var e={};s.exports=e,e.eastAsianWidth=function(i){var r=i.charCodeAt(0),a=i.length==2?i.charCodeAt(1):0,n=r;return 55296<=r&&r<=56319&&56320<=a&&a<=57343&&(r&=1023,a&=1023,n=r<<10|a,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},e.characterLength=function(i){var r=this.eastAsianWidth(i);return r=="F"||r=="W"||r=="A"?2:1};function t(i){return i.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}e.length=function(i){for(var r=t(i),a=0,n=0;n<r.length;n++)a=a+this.characterLength(r[n]);return a},e.slice=function(i,r,a){textLen=e.length(i),r=r||0,a=a||1,r<0&&(r=textLen+r),a<0&&(a=textLen+a);for(var n="",o=0,u=t(i),c=0;c<u.length;c++){var l=u[c],p=e.length(l);if(o>=r-(p==2?1:0))if(o+p<=a)n+=l;else break;o+=p}return n}})(Sm);mS=Sm.exports,gS=Tm(mS),yS=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\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])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\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\uDF7C\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\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\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\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\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-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*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\u26A7\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},xS=Tm(yS);Fu=10,mm=(s=0)=>e=>`\x1B[${e+s}m`,gm=(s=0)=>e=>`\x1B[${38+s};5;${e}m`,ym=(s=0)=>(e,t,i)=>`\x1B[${38+s};2;${e};${t};${i}m`,ve={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(ve.modifier);bS=Object.keys(ve.color),wS=Object.keys(ve.bgColor);[...bS,...wS];kS=DS(),gn=new Set(["\x1B","›"]),vS=39,Mu="\x07",Am="[",ES="]",jm="m",Ru=`${ES}8;;`,xm=s=>`${gn.values().next().value}${Am}${s}${jm}`,bm=s=>`${gn.values().next().value}${Ru}${s}${Mu}`,CS=s=>s.split(" ").map(e=>xr(e)),Iu=(s,e,t)=>{let i=[...e],r=!1,a=!1,n=xr(Cm(s[s.length-1]));for(let[o,u]of i.entries()){let c=xr(u);if(n+c<=t?s[s.length-1]+=u:(s.push(u),n=0),gn.has(u)&&(r=!0,a=i.slice(o+1).join("").startsWith(Ru)),r){a?u===Mu&&(r=!1,a=!1):u===jm&&(r=!1);continue}n+=c,n===t&&o<i.length-1&&(s.push(""),n=0)}!n&&s[s.length-1].length>0&&s.length>1&&(s[s.length-2]+=s.pop())},TS=s=>{let e=s.split(" "),t=e.length;for(;t>0&&!(xr(e[t-1])>0);)t--;return t===e.length?s:e.slice(0,t).join(" ")+e.slice(t).join("")},SS=(s,e,t={})=>{if(t.trim!==!1&&s.trim()==="")return"";let i="",r,a,n=CS(s),o=[""];for(let[c,l]of s.split(" ").entries()){t.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let p=xr(o[o.length-1]);if(c!==0&&(p>=e&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),p=0),(p>0||t.trim===!1)&&(o[o.length-1]+=" ",p++)),t.hard&&n[c]>e){let d=e-p,m=1+Math.floor((n[c]-d-1)/e);Math.floor((n[c]-1)/e)<m&&o.push(""),Iu(o,l,e);continue}if(p+n[c]>e&&p>0&&n[c]>0){if(t.wordWrap===!1&&p<e){Iu(o,l,e);continue}o.push("")}if(p+n[c]>e&&t.wordWrap===!1){Iu(o,l,e);continue}o[o.length-1]+=l}t.trim!==!1&&(o=o.map(c=>TS(c)));let u=[...o.join(`
`)];for(let[c,l]of u.entries()){if(i+=l,gn.has(l)){let{groups:d}=new RegExp(`(?:\\${Am}(?<code>\\d+)m|\\${Ru}(?<uri>.*)${Mu})`).exec(u.slice(c).join(""))||{groups:{}};if(d.code!==void 0){let m=Number.parseFloat(d.code);r=m===vS?void 0:m}else d.uri!==void 0&&(a=d.uri.length===0?void 0:d.uri)}let p=kS.codes.get(Number(r));u[c+1]===`
`?(a&&(i+=bm("")),r&&p&&(i+=xm(p))):l===`
`&&(r&&p&&(i+=xm(r)),a&&(i+=bm(a)))}return i};AS=["up","down","left","right","space","enter","cancel"],mn={actions:new Set(AS),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};globalThis.process.platform.startsWith("win");Dm=Symbol("clack:cancel");PS=Object.defineProperty,FS=(s,e,t)=>e in s?PS(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,ct=(s,e,t)=>(FS(s,typeof e!="symbol"?e+"":e,t),t),di=class{constructor(e,t=!0){ct(this,"input"),ct(this,"output"),ct(this,"_abortSignal"),ct(this,"rl"),ct(this,"opts"),ct(this,"_render"),ct(this,"_track",!1),ct(this,"_prevFrame",""),ct(this,"_subscribers",new Map),ct(this,"_cursor",0),ct(this,"state","initial"),ct(this,"error",""),ct(this,"value");let{input:i=nS,output:r=oS,render:a,signal:n,...o}=e;this.opts=o,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=a.bind(this),this._track=t,this._abortSignal=n,this.input=i,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let i=this._subscribers.get(e)??[];i.push(t),this._subscribers.set(e,i)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let i=this._subscribers.get(e)??[],r=[];for(let a of i)a.cb(...t),a.once&&r.push(()=>i.splice(i.indexOf(a),1));for(let a of r)a()}prompt(){return new Promise((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(Dm);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let i=new uS(0);i._write=(r,a,n)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),n()},this.input.pipe(i),this.rl=hm.createInterface({input:this.input,output:i,tabSize:2,prompt:"",escapeCodeTimeout:50}),hm.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),fn(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(Et.cursor.show),this.output.off("resize",this.render),fn(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(Et.cursor.show),this.output.off("resize",this.render),fn(this.input,!1),e(Dm)})})}onKeypress(e,t){if(this.state==="error"&&(this.state="active"),t?.name&&(!this._track&&mn.aliases.has(t.name)&&this.emit("cursor",mn.aliases.get(t.name)),mn.actions.has(t.name)&&this.emit("cursor",t.name)),e&&(e.toLowerCase()==="y"||e.toLowerCase()==="n")&&this.emit("confirm",e.toLowerCase()==="y"),e===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),e&&this.emit("key",e.toLowerCase()),t?.name==="return"){if(this.opts.validate){let i=this.opts.validate(this.value);i&&(this.error=i instanceof Error?i.message:i,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}Pm([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
`),fn(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=wm(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
`).length-1;this.output.write(Et.cursor.move(-999,e*-1))}render(){let e=wm(this._render(this)??"",process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if(this.state==="initial")this.output.write(Et.cursor.hide);else{let t=jS(this._prevFrame,e);if(this.restoreCursor(),t&&t?.length===1){let i=t[0];this.output.write(Et.cursor.move(0,i)),this.output.write(Et.erase.lines(1));let r=e.split(`
`);this.output.write(r[i]),this._prevFrame=e,this.output.write(Et.cursor.move(0,r.length-i-1));return}if(t&&t?.length>1){let i=t[0];this.output.write(Et.cursor.move(0,i)),this.output.write(Et.erase.down());let r=e.split(`
`).slice(i);this.output.write(r.join(`
`)),this._prevFrame=e;return}this.output.write(Et.erase.down())}this.output.write(e),this.state==="initial"&&(this.state="active"),this._prevFrame=e}}},_u=class extends di{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(Et.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}},IS=Object.defineProperty,_S=(s,e,t)=>e in s?IS(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,km=(s,e,t)=>(_S(s,typeof e!="symbol"?e+"":e,t),t),NS=class extends di{constructor(s){super(s,!1),km(this,"options"),km(this,"cursor",0),this.options=s.options,this.value=[...s.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:e})=>e===s.cursorAt),0),this.on("key",e=>{e==="a"&&this.toggleAll()}),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let s=this.value.length===this.options.length;this.value=s?[]:this.options.map(e=>e.value)}toggleValue(){let s=this.value.includes(this._value);this.value=s?this.value.filter(e=>e!==this._value):[...this.value,this._value]}},BS=Object.defineProperty,OS=(s,e,t)=>e in s?BS(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,vm=(s,e,t)=>(OS(s,typeof e!="symbol"?e+"":e,t),t),Nu=class extends di{constructor(e){super(e,!1),vm(this,"options"),vm(this,"cursor",0),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},Bu=class extends di{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}█`;let e=this.value.slice(0,this.cursor),[t,...i]=this.value.slice(this.cursor);return`${e}${z.inverse(t)}${i.join("")}`}get cursor(){return this._cursor}constructor(e){super(e),this.on("finalize",()=>{this.value||(this.value=e.defaultValue)})}};zS=LS(),Ct=(s,e)=>zS?s:e,MS=Ct("❯",">"),RS=Ct("■","x"),qS=Ct("▲","x"),US=Ct("✔","√"),xe=Ct(""),fi=Ct(""),Ou=Ct("●",">"),Lu=Ct("○"," "),HS=Ct("◻","[•]"),Em=Ct("◼","[+]"),$S=Ct("◻","[ ]"),yn=s=>{switch(s){case"initial":case"active":return z.cyan(MS);case"cancel":return z.red(RS);case"error":return z.yellow(qS);case"submit":return z.green(US)}},zu=s=>{let{cursor:e,options:t,style:i}=s,r=s.maxItems??Number.POSITIVE_INFINITY,a=Math.max(process.stdout.rows-4,0),n=Math.min(a,Math.max(r,5)),o=0;e>=o+n-3?o=Math.max(Math.min(e-n+3,t.length-n),0):e<o+2&&(o=Math.max(e-2,0));let u=n<t.length&&o>0,c=n<t.length&&o+n<t.length;return t.slice(o,o+n).map((l,p,d)=>{let m=p===0&&u,f=p===d.length-1&&c;return m||f?z.dim("..."):i(l,p+o===e)})},VS=s=>new Bu({validate:s.validate,placeholder:s.placeholder,defaultValue:s.defaultValue,initialValue:s.initialValue,render(){let e=`${z.gray(xe)}
${yn(this.state)} ${s.message}
`,t=s.placeholder?z.inverse(s.placeholder[0])+z.dim(s.placeholder.slice(1)):z.inverse(z.hidden("_")),i=this.value?this.valueWithCursor:t;switch(this.state){case"error":return`${e.trim()}
${z.yellow(xe)} ${i}
${z.yellow(fi)} ${z.yellow(this.error)}
`;case"submit":return`${e}${z.gray(xe)} ${z.dim(this.value||s.placeholder)}`;case"cancel":return`${e}${z.gray(xe)} ${z.strikethrough(z.dim(this.value??""))}${this.value?.trim()?`
${z.gray(xe)}`:""}`;default:return`${e}${z.cyan(xe)} ${i}
${z.cyan(fi)}
`}}}).prompt(),WS=s=>{let e=s.active??"Yes",t=s.inactive??"No";return new _u({active:e,inactive:t,initialValue:s.initialValue??!0,render(){let i=`${z.gray(xe)}
${yn(this.state)} ${s.message}
`,r=this.value?e:t;switch(this.state){case"submit":return`${i}${z.gray(xe)} ${z.dim(r)}`;case"cancel":return`${i}${z.gray(xe)} ${z.strikethrough(z.dim(r))}
${z.gray(xe)}`;default:return`${i}${z.cyan(xe)} ${this.value?`${z.green(Ou)} ${e}`:`${z.dim(Lu)} ${z.dim(e)}`} ${z.dim("/")} ${this.value?`${z.dim(Lu)} ${z.dim(t)}`:`${z.green(Ou)} ${t}`}
${z.cyan(fi)}
`}}}).prompt()},GS=s=>{let e=(t,i)=>{let r=t.label??String(t.value);switch(i){case"selected":return`${z.dim(r)}`;case"active":return`${z.green(Ou)} ${r} ${t.hint?z.dim(`(${t.hint})`):""}`;case"cancelled":return`${z.strikethrough(z.dim(r))}`;default:return`${z.dim(Lu)} ${z.dim(r)}`}};return new Nu({options:s.options,initialValue:s.initialValue,render(){let t=`${z.gray(xe)}
${yn(this.state)} ${s.message}
`;switch(this.state){case"submit":return`${t}${z.gray(xe)} ${e(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${z.gray(xe)} ${e(this.options[this.cursor],"cancelled")}
${z.gray(xe)}`;default:return`${t}${z.cyan(xe)} ${zu({cursor:this.cursor,options:this.options,maxItems:s.maxItems,style:(i,r)=>e(i,r?"active":"inactive")}).join(`
${z.cyan(xe)} `)}
${z.cyan(fi)}
`}}}).prompt()},KS=s=>{let e=(t,i)=>{let r=t.label??String(t.value);return i==="active"?`${z.cyan(HS)} ${r} ${t.hint?z.dim(`(${t.hint})`):""}`:i==="selected"?`${z.green(Em)} ${z.dim(r)}`:i==="cancelled"?`${z.strikethrough(z.dim(r))}`:i==="active-selected"?`${z.green(Em)} ${r} ${t.hint?z.dim(`(${t.hint})`):""}`:i==="submitted"?`${z.dim(r)}`:`${z.dim($S)} ${z.dim(r)}`};return new NS({options:s.options,initialValues:s.initialValues,required:s.required??!0,cursorAt:s.cursorAt,validate(t){if(this.required&&t.length===0)return`Please select at least one option.
${z.reset(z.dim(`Press ${z.gray(z.bgWhite(z.inverse(" space ")))} to select, ${z.gray(z.bgWhite(z.inverse(" enter ")))} to submit`))}`},render(){let t=`${z.gray(xe)}
${yn(this.state)} ${s.message}
`,i=(r,a)=>{let n=this.value.includes(r.value);return a&&n?e(r,"active-selected"):n?e(r,"selected"):e(r,a?"active":"inactive")};switch(this.state){case"submit":return`${t}${z.gray(xe)} ${this.options.filter(({value:r})=>this.value.includes(r)).map(r=>e(r,"submitted")).join(z.dim(", "))||z.dim("none")}`;case"cancel":{let r=this.options.filter(({value:a})=>this.value.includes(a)).map(a=>e(a,"cancelled")).join(z.dim(", "));return`${t}${z.gray(xe)} ${r.trim()?`${r}
${z.gray(xe)}`:""}`}case"error":{let r=this.error.split(`
`).map((a,n)=>n===0?`${z.yellow(fi)} ${z.yellow(a)}`:` ${a}`).join(`
`);return`${t+z.yellow(xe)} ${zu({options:this.options,cursor:this.cursor,maxItems:s.maxItems,style:i}).join(`
${z.yellow(xe)} `)}
${r}
`}default:return`${t}${z.cyan(xe)} ${zu({options:this.options,cursor:this.cursor,maxItems:s.maxItems,style:i}).join(`
${z.cyan(xe)} `)}
${z.cyan(fi)}
`}}}).prompt()};`${z.gray(xe)}`;Fm=Symbol.for("cancel")});var Um={};pr(Um,{Consola:()=>_e,LogLevels:()=>Be,LogTypes:()=>pn,consola:()=>IA,createConsola:()=>qm,default:()=>IA});import Bm from"node:process";function YS(){if(globalThis.process?.env)for(let s of XS){let e=s[1]||s[0];if(globalThis.process?.env[e])return{name:s[0].toLowerCase(),...s[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:!1}:{name:"",ci:!1}}function Rs(s){return s?s!=="false":!1}function pA(){let s=lA.find(e=>e[0]);if(s)return{name:s[1]}}function dA({onlyFirst:s=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,s?void 0:"g")}function mA(s){if(typeof s!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);return s.replace(fA,"")}function gA(s){return s===161||s===164||s===167||s===168||s===170||s===173||s===174||s>=176&&s<=180||s>=182&&s<=186||s>=188&&s<=191||s===198||s===208||s===215||s===216||s>=222&&s<=225||s===230||s>=232&&s<=234||s===236||s===237||s===240||s===242||s===243||s>=247&&s<=250||s===252||s===254||s===257||s===273||s===275||s===283||s===294||s===295||s===299||s>=305&&s<=307||s===312||s>=319&&s<=322||s===324||s>=328&&s<=331||s===333||s===338||s===339||s===358||s===359||s===363||s===462||s===464||s===466||s===468||s===470||s===472||s===474||s===476||s===593||s===609||s===708||s===711||s>=713&&s<=715||s===717||s===720||s>=728&&s<=731||s===733||s===735||s>=768&&s<=879||s>=913&&s<=929||s>=931&&s<=937||s>=945&&s<=961||s>=963&&s<=969||s===1025||s>=1040&&s<=1103||s===1105||s===8208||s>=8211&&s<=8214||s===8216||s===8217||s===8220||s===8221||s>=8224&&s<=8226||s>=8228&&s<=8231||s===8240||s===8242||s===8243||s===8245||s===8251||s===8254||s===8308||s===8319||s>=8321&&s<=8324||s===8364||s===8451||s===8453||s===8457||s===8467||s===8470||s===8481||s===8482||s===8486||s===8491||s===8531||s===8532||s>=8539&&s<=8542||s>=8544&&s<=8555||s>=8560&&s<=8569||s===8585||s>=8592&&s<=8601||s===8632||s===8633||s===8658||s===8660||s===8679||s===8704||s===8706||s===8707||s===8711||s===8712||s===8715||s===8719||s===8721||s===8725||s===8730||s>=8733&&s<=8736||s===8739||s===8741||s>=8743&&s<=8748||s===8750||s>=8756&&s<=8759||s===8764||s===8765||s===8776||s===8780||s===8786||s===8800||s===8801||s>=8804&&s<=8807||s===8810||s===8811||s===8814||s===8815||s===8834||s===8835||s===8838||s===8839||s===8853||s===8857||s===8869||s===8895||s===8978||s>=9312&&s<=9449||s>=9451&&s<=9547||s>=9552&&s<=9587||s>=9600&&s<=9615||s>=9618&&s<=9621||s===9632||s===9633||s>=9635&&s<=9641||s===9650||s===9651||s===9654||s===9655||s===9660||s===9661||s===9664||s===9665||s>=9670&&s<=9672||s===9675||s>=9678&&s<=9681||s>=9698&&s<=9701||s===9711||s===9733||s===9734||s===9737||s===9742||s===9743||s===9756||s===9758||s===9792||s===9794||s===9824||s===9825||s>=9827&&s<=9829||s>=9831&&s<=9834||s===9836||s===9837||s===9839||s===9886||s===9887||s===9919||s>=9926&&s<=9933||s>=9935&&s<=9939||s>=9941&&s<=9953||s===9955||s===9960||s===9961||s>=9963&&s<=9969||s===9972||s>=9974&&s<=9977||s===9979||s===9980||s===9982||s===9983||s===10045||s>=10102&&s<=10111||s>=11094&&s<=11097||s>=12872&&s<=12879||s>=57344&&s<=63743||s>=65024&&s<=65039||s===65533||s>=127232&&s<=127242||s>=127248&&s<=127277||s>=127280&&s<=127337||s>=127344&&s<=127373||s===127375||s===127376||s>=127387&&s<=127404||s>=917760&&s<=917999||s>=983040&&s<=1048573||s>=1048576&&s<=1114109}function yA(s){return s===12288||s>=65281&&s<=65376||s>=65504&&s<=65510}function xA(s){return s>=4352&&s<=4447||s===8986||s===8987||s===9001||s===9002||s>=9193&&s<=9196||s===9200||s===9203||s===9725||s===9726||s===9748||s===9749||s>=9776&&s<=9783||s>=9800&&s<=9811||s===9855||s>=9866&&s<=9871||s===9875||s===9889||s===9898||s===9899||s===9917||s===9918||s===9924||s===9925||s===9934||s===9940||s===9962||s===9970||s===9971||s===9973||s===9978||s===9981||s===9989||s===9994||s===9995||s===10024||s===10060||s===10062||s>=10067&&s<=10069||s===10071||s>=10133&&s<=10135||s===10160||s===10175||s===11035||s===11036||s===11088||s===11093||s>=11904&&s<=11929||s>=11931&&s<=12019||s>=12032&&s<=12245||s>=12272&&s<=12287||s>=12289&&s<=12350||s>=12353&&s<=12438||s>=12441&&s<=12543||s>=12549&&s<=12591||s>=12593&&s<=12686||s>=12688&&s<=12773||s>=12783&&s<=12830||s>=12832&&s<=12871||s>=12880&&s<=42124||s>=42128&&s<=42182||s>=43360&&s<=43388||s>=44032&&s<=55203||s>=63744&&s<=64255||s>=65040&&s<=65049||s>=65072&&s<=65106||s>=65108&&s<=65126||s>=65128&&s<=65131||s>=94176&&s<=94180||s===94192||s===94193||s>=94208&&s<=100343||s>=100352&&s<=101589||s>=101631&&s<=101640||s>=110576&&s<=110579||s>=110581&&s<=110587||s===110589||s===110590||s>=110592&&s<=110882||s===110898||s>=110928&&s<=110930||s===110933||s>=110948&&s<=110951||s>=110960&&s<=111355||s>=119552&&s<=119638||s>=119648&&s<=119670||s===126980||s===127183||s===127374||s>=127377&&s<=127386||s>=127488&&s<=127490||s>=127504&&s<=127547||s>=127552&&s<=127560||s===127568||s===127569||s>=127584&&s<=127589||s>=127744&&s<=127776||s>=127789&&s<=127797||s>=127799&&s<=127868||s>=127870&&s<=127891||s>=127904&&s<=127946||s>=127951&&s<=127955||s>=127968&&s<=127984||s===127988||s>=127992&&s<=128062||s===128064||s>=128066&&s<=128252||s>=128255&&s<=128317||s>=128331&&s<=128334||s>=128336&&s<=128359||s===128378||s===128405||s===128406||s===128420||s>=128507&&s<=128591||s>=128640&&s<=128709||s===128716||s>=128720&&s<=128722||s>=128725&&s<=128727||s>=128732&&s<=128735||s===128747||s===128748||s>=128756&&s<=128764||s>=128992&&s<=129003||s===129008||s>=129292&&s<=129338||s>=129340&&s<=129349||s>=129351&&s<=129535||s>=129648&&s<=129660||s>=129664&&s<=129673||s>=129679&&s<=129734||s>=129742&&s<=129756||s>=129759&&s<=129769||s>=129776&&s<=129784||s>=131072&&s<=196605||s>=196608&&s<=262141}function bA(s){if(!Number.isSafeInteger(s))throw new TypeError(`Expected a code point, got \`${typeof s}\`.`)}function wA(s,{ambiguousAsWide:e=!1}={}){return bA(s),yA(s)||xA(s)||e&&gA(s)?2:1}function EA(s,e={}){if(typeof s!="string"||s.length===0)return 0;let{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:i=!1}=e;if(i||(s=mA(s)),s.length===0)return 0;let r=0,a={ambiguousAsWide:!t};for(let{segment:n}of kA.segment(s)){let o=n.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!vA.test(n)){if(DA().test(n)){r+=2;continue}r+=wA(o,a)}}return r}function CA(){let{env:s}=Bm,{TERM:e,TERM_PROGRAM:t}=s;return Bm.platform!=="win32"?e!=="linux":!!s.WT_SESSION||!!s.TERMINUS_SUBLIME||s.ConEmuTask==="{cmd::Cmder}"||t==="Terminus-Sublime"||t==="vscode"||e==="xterm-256color"||e==="alacritty"||e==="rxvt-unicode"||e==="rxvt-unicode-256color"||s.TERMINAL_EMULATOR==="JetBrains-JediTerm"}function zm(s){return!(typeof Intl=="object")||!Intl.Segmenter?fs(s).length:EA(s)}function xn(s){return s.replace(/`([^`]+)`/gm,(e,t)=>Xe.cyan(t)).replace(/\s+_([^_]+)_\s+/gm,(e,t)=>` ${Xe.underline(t)} `)}function jA(s="white"){return Xe[s]||Xe.white}function PA(s="bgWhite"){return Xe[`bg${s[0].toUpperCase()}${s.slice(1)}`]||Xe.bgWhite}function qm(s={}){let e=FA();return process.env.CONSOLA_LEVEL&&(e=Number.parseInt(process.env.CONSOLA_LEVEL)??e),sm({level:e,defaults:{level:e},stdout:process.stdout,stderr:process.stderr,prompt:(...i)=>Promise.resolve().then(()=>(Nm(),_m)).then(r=>r.prompt(...i)),reporters:s.reporters||[s.fancy??!(Uu||Hu)?new qu:new yr],...s})}function FA(){return ZS?Be.debug:Hu?Be.warn:Be.info}var bn,br,gs,JS,XS,Mm,QS,Uu,Rm,ZS,Hu,eA,tA,sA,Om,iA,rA,aA,nA,oA,uA,cA,lA,hA,fA,DA,kA,vA,TA,SA,AA,Ot,Lm,qu,IA,Hm=k(()=>{h();Su();Su();rm();pm();bn=Object.create(null),br=s=>globalThis.process?.env||import.meta.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(s?bn:globalThis),gs=new Proxy(bn,{get(s,e){return br()[e]??bn[e]},has(s,e){let t=br();return e in t||e in bn},set(s,e,t){let i=br(!0);return i[e]=t,!0},deleteProperty(s,e){if(!e)return!1;let t=br(!0);return delete t[e],!0},ownKeys(){let s=br(!0);return Object.keys(s)}}),JS=typeof process<"u"&&process.env&&process.env.NODE_ENV||"",XS=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:!0}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:!0}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:!1}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:!1}],["VERCEL","VERCEL_ENV",{ci:!1}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:!1}],["CODESANDBOX","CODESANDBOX_HOST",{ci:!1}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:!0}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:!0}]];Mm=YS();Mm.name;QS=globalThis.process?.platform||"",Uu=Rs(gs.CI)||Mm.ci!==!1,Rm=Rs(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY),ZS=Rs(gs.DEBUG),Hu=JS==="test"||Rs(gs.TEST);Rs(gs.MINIMAL);eA=/^win/i.test(QS);!Rs(gs.NO_COLOR)&&(Rs(gs.FORCE_COLOR)||(Rm||eA)&&gs.TERM);tA=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(tA?.split(".")[0]);sA=globalThis.process||Object.create(null),Om={versions:{}};new Proxy(sA,{get(s,e){if(e==="env")return gs;if(e in s)return s[e];if(e in Om)return Om[e]}});iA=globalThis.process?.release?.name==="node",rA=!!globalThis.Bun||!!globalThis.process?.versions?.bun,aA=!!globalThis.Deno,nA=!!globalThis.fastly,oA=!!globalThis.Netlify,uA=!!globalThis.EdgeRuntime,cA=globalThis.navigator?.userAgent==="Cloudflare-Workers",lA=[[oA,"netlify"],[uA,"edge-light"],[cA,"workerd"],[nA,"fastly"],[aA,"deno"],[rA,"bun"],[iA,"node"]];hA=pA();hA?.name;fA=dA();DA=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,kA=globalThis.Intl?.Segmenter?new Intl.Segmenter:{segment:s=>s.split("")},vA=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");TA={info:"cyan",fail:"red",success:"green",ready:"green",start:"magenta"},SA={0:"red",1:"yellow"},AA=CA(),Ot=(s,e)=>AA?s:e,Lm={error:Ot("✖","×"),fatal:Ot("✖","×"),ready:Ot("✔","√"),warn:Ot("⚠","‼"),info:Ot("ℹ","i"),success:Ot("✔","√"),debug:Ot("⚙","D"),trace:Ot("→","→"),fail:Ot("✖","×"),start:Ot("◐","o"),log:""};qu=class extends yr{formatStack(e,t,i){let r=" ".repeat((i?.errorLevel||0)+1);return`
${r}`+ju(e,t).map(a=>" "+a.replace(/^at +/,n=>Xe.gray(n)).replace(/\((.+)\)/,(n,o)=>`(${Xe.cyan(o)})`)).join(`
${r}`)}formatType(e,t,i){let r=TA[e.type]||SA[e.level]||"gray";if(t)return PA(r)(Xe.black(` ${e.type.toUpperCase()} `));let a=typeof Lm[e.type]=="string"?Lm[e.type]:e.icon||e.type;return a?jA(r)(a):""}formatLogObj(e,t){let[i,...r]=this.formatArgs(e.args,t).split(`
`);if(e.type==="box")return lm(xn(i+(r.length>0?`
`+r.join(`
`):"")),{title:e.title?xn(e.title):void 0,style:e.style});let a=this.formatDate(e.date,t),n=a&&Xe.gray(a),o=e.badge??e.level<2,u=this.formatType(e,o,t),c=e.tag?Xe.gray(e.tag):"",l,p=this.filterAndJoin([u,xn(i)]),d=this.filterAndJoin(t.columns?[c,n]:[c]),m=(t.columns||0)-zm(p)-zm(d)-2;if(l=m>0&&(t.columns||0)>=80?p+" ".repeat(m)+d:(d?`${Xe.gray(`[${d}]`)} `:"")+p,l+=xn(r.length>0?`
`+r.join(`
`):""),e.type==="trace"){let f=new Error("Trace: "+e.message);l+=this.formatStack(f.stack||"",f.message)}return o?`
`+l+`
`:l}};IA=qm()});import{createCipheriv as dq,createDecipheriv as fq,createHash as _A,randomBytes as mq,randomUUID as $m}from"node:crypto";function wr(s){return new Promise(e=>setTimeout(()=>e(s),s))}async function qs(s){let{createConsola:e,consola:t}=await Promise.resolve().then(()=>(Hm(),Um));return t.options.level=5,e({level:5,reporters:[{log:({type:i,args:r,level:a,date:n})=>{if(s&&s.pushData){let o=r.reduce((u,c)=>`${u} ${c}`,"").substring(1);s.pushData.push({msg:o,type:i,level:a,date:n})}t[i].apply(t,r)}}]})}function Wm(s,e){return _A(s).update(e).digest("hex")}function Gm(s){return Wm("sha256",s)}function $u(s){return Wm("md5",s)}async function wn({pushData:s,message:e,sendNotify:t,createRequest:i}){if(s.length&&e){if(e.onlyError&&!s.some(a=>a.type==="error"))return;let r=s.filter(a=>a.level<4).map(a=>`[${a.type} ${a.date.toLocaleTimeString()}]${a.msg}`).join(`
`);r&&await t({logger:await qs(),http:{fetch:a=>i().request(a)}},e,e.title||"asign 运行推送",r)}}function Km(s){return(0,Vm.default)(s).format("YYYY-MM-DD HH:mm:ss")}function NA(s,e,t,i,r=""){let a=i===1?"seedMdYYLIZfbCxg":"sekaMdYYLIZfbCfm";return $u(a+s+e+t+r+a)}function ys(s,e=1,t){let i=$m(),r=$m();return{"x-request-id":i,"x-timestamp":s.toString(),"x-nonce":r,"x-signature":NA(i,s,r,e,t)}}var Vm,lt=k(()=>{h();Vm=Dt(Lf(),1);em()});async function BA(s,{name:e,parentFileId:t,channelSrc:i,size:r,ext:a,contentHash:n,...o}){try{r||(r=ut(1,1e3)),e||(e="asign-"+Ke(4)+(a||".png"));let{data:u,code:c,message:l,success:p}=await lf(s.http,{name:e,parentFileId:t,contentHash:n,size:r,channelSrc:i,...o});if(!p)return s.logger.error("上传文件请求失败",c,l),{};let{exist:d,rapidUpload:m,uploadId:f,fileId:g,partInfos:y}=u;return d?(s.logger.debug("文件已存在"),{}):m?(s.logger.debug("急速上传"),du(s.store,"files",[g]),{fileId:g}):{uploadId:f,fileId:g,uploadUrl:y[0].uploadUrl}}catch(u){s.logger.error("上传文件请求异常",u)}return{}}async function Vu(s,e,t){try{let i=Gm(t),r=typeof t=="string"?t.length:t.byteLength,{uploadUrl:a,uploadId:n,fileId:o}=await BA(s,{...e,contentHash:i,size:r});if(!a||!o)return!1;s.logger.debug("别着急,文件上传中。。。");let u=await hf(s.http,a,t);if(a.includes("<"))return s.logger.error("上传文件失败",u),!1;du(s.store,"files",[o]),s.logger.debug("上传文件成功 1");let{success:c,code:l,message:p}=await pf(s.http,{fileId:o,uploadId:n,contentHash:i,channelSrc:e.channelSrc,...e});return c?(s.logger.debug("上传文件成功 2"),!0):(s.logger.error("上传文件失败",l,p),!1)}catch(i){s.logger.error("上传文件异常",i)}return!1}async function xs(s,e){try{let t=Ke(32);return await Vu(s,{...e,parentFileId:"/"},t)}catch(t){s.logger.error("uploadRandomFile 异常",t)}}function Jm(){return"/"}var Xm=k(()=>{h();Pe();lt();tn()});var Dr=k(()=>{h();Nf();Of();Xm()});async function Ym(s,e,t){await HA(s,e.id,e.currstep)&&(await zA(s,e),t.push(e.id),await s.sleep(500))}async function OA(s,e,t){switch(e.id===434&&(s.store.shareCount=eg(e.name),s.logger.debug("shareCount",s.store.shareCount)),e.groupid){case"beiyong1":if(await Ym(s,e,t),e.name.includes("上传")&&(e.name.includes("图")||e.name.includes("照"))){s.logger.debug("尝试完成",e.name),await xs(s);return}case"month":if(e.marketname==="sign_in_3"&&s.store.curMonthBackup===!1&&new Date().getDate()<20){s.logger.debug("跳过任务(未开启备份)",e.name);return}default:{if(jf[e.id]){await Ym(s,e,t);return}if(!Pf.includes(e.id)){await kr(s,e.id);return}}}}function eg(s){return+s.replace("分享文件得云朵<span id='share_title'>","").replace("/7</span>","")}function LA(s,e){let t=eg(e);t>s.store.shareCount&&s.logger.success("分享文件有好礼",t,"天")}async function Wu(s){s.logger.start("------【任务列表】------");let e=await Qm(s),t=[];e.sort((r,a)=>r.id-a.id);for(let r of e)s.config.tasks?.skipTasks?.includes(r.id)||r.state==="FINISH"||r.enable!==1||await OA(s,r,t);let i=[1021];for(let r of await Qm(s)){if(i.includes(r.id))continue;if(r.id===434){LA(s,r.name);continue}r.id===481&&r.currstep===2&&await kr(s,481,"randomCloudTask"),r.id===478&&r.state!=="FINISH"&&await kr(s,478,"randomCloudTask");let a=n=>s.logger.fail(n,`请前往${Ef(r.marketname)}手动完成${Cf(r.groupid)}:${r.name}(${r.id})`);if(t.includes(r.id)){if(r.state==="FINISH"){s.logger.success("成功",r.name);continue}if(r.id===522){r.process===0?a("失败"):s.logger.info(r.name,"本月已经完成",r.process,"次");continue}a("失败");continue}(r.groupid==="month"||r.groupid==="day"||r.groupid==="cloudEmail")&&r.state!=="FINISH"&&a("未完成")}}async function zA(s,e){let t=MA(s);switch(e.id){case 110:case 522:return await t[e.id]?.(s,e.process);default:return await t[e.id]?.(s,e)}}function MA(s){return{113:async e=>{await yu(e),nn(1e3),await xs(e,{channelSrc:"10200153"})},106:e=>xs(e),107:UA,434:KA,110:s.node&&s.node.uploadTask,522:qA,1021:RA}}async function Qm(s){let e=await Zm(s,"sign_in_3"),t=await Zm(s,"newsign_139mail");return e.concat(t)}async function RA(s,e){try{let{out:t}=e.button;if(!t)return;if(t.canReceive===1){s.logger.debug("可以领取通知奖励",e.id),await ie(s,s.api.receiveTask,"领取邮件通知奖励",e.id);return}t.day&&s.logger.debug("邮箱通知已经开启",t.day,"天")}catch(t){s.logger.error("邮件通知异常",t)}}async function qA(s,e){s.logger.info("开始执行每月100次上传任务");for(let t=0;t<s.config.tasks.每月上传任务单日数量&&!(e>=100);t++)await xs(s),await s.sleep(500)}async function Zm(s,e="sign_in_3"){let t=await ie(s,s.api.getTaskList,"获取任务列表",e);return Object.values(t).flat()}async function UA(s){if(!s.config.token){s.logger.info("未配置 authToken,跳过云笔记任务执行");return}let{headers:e}=await xu(s);if(!e||!e.app_auth){s.logger.info("获取鉴权信息失败,跳过云笔记任务执行");return}try{let t=Ke(32);await s.api.createNote(t,`${Ke(3)}`,s.config.phone,e),await s.sleep(2e3),await s.api.deleteNote(t,e)}catch(t){s.logger.error("创建云笔记异常",t)}}async function HA(s,e,t=0){let i={434:22};return i[e]&&t===i[e]?(await kr(s,e),!0):t===0?await kr(s,e):!0}async function $A(s){try{let{message:e,code:t,data:i,success:r}=await uf(s.http);if(r)return s.logger.debug("测试 file/list"),i.items.filter(n=>n.type==="file").map(n=>({name:n.name,id:n.fileId}));if(t==="04510001")return!1;s.logger.fail("获取文件列表失败",t,e)}catch(e){s.logger.error("获取文件列表异常",e)}}async function VA(s){try{let{message:e,code:t,data:i,success:r}=await cf(s.http,s.config.phone,s.config.catalog);if(r)return s.logger.debug("测试 file/list"),(i.getDiskResult?.contentList).map(n=>({name:n.contentName,id:n.contentID}));if(t==="04510001")return!1;s.logger.fail("获取文件列表失败",t,e)}catch(e){s.logger.error("获取文件列表异常",e)}}async function WA(s){let e=s.config.文件获取方式===1?await $A(s):await VA(s);if(e){let t=e.find(i=>i.name==="中国移动云盘产品手册.pdf"||i.name==="欢迎使用彩云.pdf"||i.name.startsWith("asign-"))||e[ut(0,e.length-1)];return t?{id:t.id,name:t.name}:{id:void 0}}return{id:s.config.tasks.shareFile||s.store.files?.[0]}}async function GA(s,e){try{let{code:t,message:i,data:r}=await s.api.delOutLink(s.config.phone,e);if(t==="0")return s.logger.debug("删除分享成功",e,i),!0;s.logger.debug("分享文件失败",t,i,r.result)}catch(t){s.logger.debug("删除分享文件失败",t)}}async function KA(s){try{let{id:e,name:t}=await WA(s);if(!e){s.logger.debug("本次没有上传任务,跳过分享任务");return}s.logger.debug("分享",e,t||"");let{code:i,message:r,data:a}=await s.api.getOutLink(s.config.phone,[e],"");if(i==="0"){s.logger.success("分享文件成功(分享成功不等于任务完成)",r);try{await GA(s,[a.getOutLinkRes.getOutLinkResSet[0].linkID])}catch{}return!0}s.logger.fail("分享文件失败",i,r,a&&a.result)}catch(e){s.logger.error("分享文件异常",e)}}async function kr(s,e,t){try{let{code:i,msg:r,result:a}=await s.api.clickTask(e,t);if(i===0)return a&&a.msg&&s.logger.info(e,a.msg),!0;s.logger.fail(`点击任务${e}失败`,r)}catch(i){s.logger.error(`点击任务${e}异常`,i)}return!1}var tg=k(()=>{h();Pe();tn();Ff();Dr();Je();gr()});async function Gu(s){s.logger.start("------【备份好礼】------");try{let{state:e,curMonth:t}=await ie(s,s.api.getBackupGift,"backupGiftTask");if(!t)return;switch(e){case-1:s.logger.warn("未开启备份,请前往 APP 手动开启");return;case 1:s.logger.success("本月已领取");return;case 0:s.logger.info("领取备份奖励");let i=await ie(s,s.api.receiveBackupGift,"backupGiftTask");typeof i=="number"&&s.logger.success("领取成功,获得云朵",i);return;default:s.logger.warn("未知状态",e)}}catch(e){s.logger.error("备份好礼",e)}}var sg=k(()=>{h();Je()});function Ku(s){if(s===null||typeof s!="object")return!1;let e=Object.getPrototypeOf(s);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in s?!1:Symbol.toStringTag in s?Object.prototype.toString.call(s)==="[object Module]":!0}function Ju(s,e,t=".",i){if(!Ku(e))return Ju(s,{},t,i);let r=Object.assign({},e);for(let a in s){if(a==="__proto__"||a==="constructor")continue;let n=s[a];n!=null&&(i&&i(r,a,n,t)||(Array.isArray(n)&&Array.isArray(r[a])?r[a]=[...n,...r[a]]:Ku(n)&&Ku(r[a])?r[a]=Ju(n,r[a],(t?`${t}.`:"")+a.toString(),i):r[a]=n))}return r}function Xu(s){return(...e)=>e.reduce((t,i)=>Ju(t,i,"",s),{})}var vr,Rq,qq,Yu=k(()=>{h();vr=Xu(),Rq=Xu((s,e,t)=>{if(s[e]!==void 0&&typeof t=="function")return s[e]=t(s[e]),!0}),qq=Xu((s,e,t)=>{if(Array.isArray(s[e])&&typeof t=="function")return s[e]=t(s[e]),!0})});function QA(s,e){if(s==="__proto__"||s==="constructor"&&e&&typeof e=="object"&&"prototype"in e){ZA(s);return}return e}function ZA(s){console.warn(`[destr] Dropping "${s}" key to prevent prototype pollution.`)}function Us(s,e={}){if(typeof s!="string")return s;if(s[0]==='"'&&s[s.length-1]==='"'&&s.indexOf("\\")===-1)return s.slice(1,-1);let t=s.trim();if(t.length<=9)switch(t.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!YA.test(s)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return s}try{if(JA.test(s)||XA.test(s)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(s,QA)}return JSON.parse(s)}catch(i){if(e.strict)throw i;return s}}var JA,XA,YA,Qu=k(()=>{h();JA=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,XA=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,YA=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/});function ej(s){return ag.includes(s)}function tj(s){return ng.includes(s)}function sj(s){return og.includes(s)}function ig(s){if(s===null)return"null";switch(typeof s){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(s)?"NaN":"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(kn(s))return"Observable";if(Tt(s))return"Array";if(Er(s))return"Buffer";let e=he(s);if(e)return e;if(s instanceof String||s instanceof Boolean||s instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}function ij(s){return ze(s?.then)&&ze(s?.catch)}function ug(s){return e=>ac(e)&&Math.abs(e%2)===s}function cg(s,...e){return xy(Array.prototype.every,s,e)}function ec(s,...e){return(Tt(s)?s:[s]).some(i=>xy(Array.prototype.some,i,e))}function Tt(s,e){return Array.isArray(s)?ze(e)?s.every(t=>e(t)):!0:!1}function lg(s){return he(s)==="ArrayBuffer"}function pg(s){return!cc(s)&&!ze(s)&&fc(s.length)}function hg(s){return he(s)==="AsyncFunction"}function dg(s){return tc(s)&&ze(s.next)&&ze(s.throw)}function fg(s){return he(s)==="AsyncGeneratorFunction"}function tc(s){return ze(s?.[Symbol.asyncIterator])}function mg(s){return typeof s=="bigint"}function gg(s){return he(s)==="BigInt64Array"}function yg(s){return he(s)==="BigUint64Array"}function xg(s){return he(s)==="Blob"}function bg(s){return s===!0||s===!1}function wg(s){return ze(s)&&!Object.hasOwn(s,"prototype")}function Er(s){return s?.constructor?.isBuffer?.(s)??!1}function Dg(s){return ze(s)&&s.toString().startsWith("class ")}function kg(s){return he(s)==="DataView"}function sc(s){return he(s)==="Date"}function vg(s,e){return s==null?!1:Object.getPrototypeOf(s)===e.prototype}function Eg(s){return Tt(s)&&s.length===0}function Cg(s){return mi(s)&&s.size===0}function Tg(s){return yi(s)&&!mi(s)&&!xi(s)&&Object.keys(s).length===0}function Sg(s){return xi(s)&&s.size===0}function ic(s){return Lt(s)&&s.length===0}function Dn(s){return ic(s)||mc(s)}function Ag(s,e){return Object.values(e).includes(s)}function jg(s){return he(s)==="Error"}function Pg(s){return ug(0)(s)}function Fg(s){return!s}function Ig(s){return he(s)==="Float32Array"}function _g(s){return he(s)==="Float64Array"}function Ng(s){return he(s)==="FormData"}function ze(s){return typeof s=="function"}function Bg(s){return nc(s)&&ze(s?.next)&&ze(s?.throw)}function Og(s){return he(s)==="GeneratorFunction"}function rc(s){return yi(s)&&s.nodeType===rj&&Lt(s.nodeName)&&!lc(s)&&aj.every(e=>e in s)}function Lg(s){return s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY}function zg(s,e){if(gi(e))return s>=Math.min(0,e)&&s<=Math.max(e,0);if(Tt(e)&&e.length===2)return s>=Math.min(...e)&&s<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)}function Mg(s){return he(s)==="Int16Array"}function Rg(s){return he(s)==="Int32Array"}function qg(s){return he(s)==="Int8Array"}function ac(s){return Number.isInteger(s)}function nc(s){return ze(s?.[Symbol.iterator])}function mi(s){return he(s)==="Map"}function oc(s){return Number.isNaN(s)}function uc(s){return he(s)==="Promise"}function Ug(s){return gi(s)&&s<0}function Hg(s){return yi(s)&&ze(s.pipe)&&!kn(s)}function $g(s){return Tt(s)&&s.length>0}function Vg(s){return mi(s)&&s.size>0}function Wg(s){return yi(s)&&!mi(s)&&!xi(s)&&Object.keys(s).length>0}function Gg(s){return xi(s)&&s.size>0}function Kg(s){return Lt(s)&&s.length>0}function Jg(s){return Lt(s)&&!Dn(s)}function Cr(s){return s===null}function cc(s){return Cr(s)||dc(s)}function gi(s){return typeof s=="number"&&!Number.isNaN(s)}function Xg(s){return Lt(s)&&!Dn(s)&&!Number.isNaN(Number(s))}function yi(s){return!Cr(s)&&(typeof s=="object"||ze(s))}function kn(s){return s?s===s[Symbol.observable]?.()||s===s["@@observable"]?.():!1}function Yg(s){return ug(1)(s)}function lc(s){if(typeof s!="object"||s===null)return!1;let e=Object.getPrototypeOf(s);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)}function Qg(s){return gi(s)&&s>0}function Zg(s){return Cr(s)||sj(typeof s)}function ey(s){return uc(s)||ij(s)}function ty(s){return ec([Lt,gi,hc],s)}function sy(s){return he(s)==="RegExp"}function pc(s){return Number.isSafeInteger(s)}function xi(s){return he(s)==="Set"}function iy(s){return he(s)==="SharedArrayBuffer"}function Lt(s){return typeof s=="string"}function hc(s){return typeof s=="symbol"}function ry(s){return!!s}function ay(s,e){return Tt(e)&&Tt(s)&&e.length===s.length?e.every((t,i)=>t(s[i])):!1}function ny(s){return ej(he(s))}function oy(s){return he(s)==="Uint16Array"}function uy(s){return he(s)==="Uint32Array"}function cy(s){return he(s)==="Uint8Array"}function ly(s){return he(s)==="Uint8ClampedArray"}function dc(s){return s===void 0}function py(s){return he(s)==="URL"}function hy(s){return he(s)==="URLSearchParams"}function dy(s){if(!Lt(s))return!1;try{return new URL(s),!0}catch{return!1}}function fy(s){return sc(s)&&!oc(Number(s))}function fc(s){return pc(s)&&s>=0}function my(s){return he(s)==="WeakMap"}function gy(s){return he(s)==="WeakRef"}function yy(s){return he(s)==="WeakSet"}function mc(s){return Lt(s)&&/^\s+$/.test(s)}function xy(s,e,t){if(!ze(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(t.length===0)throw new TypeError("Invalid number of values");return s.call(t,e)}function L(s,e){return`Expected value which is \`${s}\`, received value of type \`${Zu(e)}\`.`}function rg(s){return Array.from(new Set(s))}function by(s,e){let t=rg((Tt(s)?s:[s]).map(r=>`\`${r}\``)),i=rg(e.map(r=>`\`${Zu(r)}\``));return`Expected values which are ${oj.format(t)}. Received values of type${i.length>1?"s":""} ${nj.format(i)}.`}function uj(s){return Object.keys(s)}function wy(s){return cj.includes(s)}function lj(s,...e){if(!cg(s,...e)){let t=wy(s.name)?gc[s.name]:"predicate returns truthy for all values";throw new TypeError(by(t,e))}}function pj(s,...e){if(!ec(s,...e)){let i=(Tt(s)?s:[s]).map(r=>wy(r.name)?gc[r.name]:"predicate returns truthy for any value");throw new TypeError(by(i,e))}}function hj(s,e,t){if(!Tt(s))throw new TypeError(t??L("Array",s));if(e)for(let i of s)e(i,t)}function dj(s,e){if(!lg(s))throw new TypeError(e??L("ArrayBuffer",s))}function fj(s,e){if(!pg(s))throw new TypeError(e??L("array-like",s))}function mj(s,e){if(!hg(s))throw new TypeError(e??L("AsyncFunction",s))}function gj(s,e){if(!dg(s))throw new TypeError(e??L("AsyncGenerator",s))}function yj(s,e){if(!fg(s))throw new TypeError(e??L("AsyncGeneratorFunction",s))}function xj(s,e){if(!tc(s))throw new TypeError(e??L("AsyncIterable",s))}function bj(s,e){if(!mg(s))throw new TypeError(e??L("bigint",s))}function wj(s,e){if(!gg(s))throw new TypeError(e??L("BigInt64Array",s))}function Dj(s,e){if(!yg(s))throw new TypeError(e??L("BigUint64Array",s))}function kj(s,e){if(!xg(s))throw new TypeError(e??L("Blob",s))}function vj(s,e){if(!bg(s))throw new TypeError(e??L("boolean",s))}function Ej(s,e){if(!wg(s))throw new TypeError(e??L("Function",s))}function Cj(s,e){if(!Er(s))throw new TypeError(e??L("Buffer",s))}function Tj(s,e){if(!Dg(s))throw new TypeError(e??L("Class",s))}function Sj(s,e){if(!kg(s))throw new TypeError(e??L("DataView",s))}function Aj(s,e){if(!sc(s))throw new TypeError(e??L("Date",s))}function jj(s,e,t){if(!vg(s,e))throw new TypeError(t??L("T",s))}function Pj(s,e){if(!Eg(s))throw new TypeError(e??L("empty array",s))}function Fj(s,e){if(!Cg(s))throw new TypeError(e??L("empty map",s))}function Ij(s,e){if(!Tg(s))throw new TypeError(e??L("empty object",s))}function _j(s,e){if(!Sg(s))throw new TypeError(e??L("empty set",s))}function Nj(s,e){if(!ic(s))throw new TypeError(e??L("empty string",s))}function Bj(s,e){if(!Dn(s))throw new TypeError(e??L("empty string or whitespace",s))}function Oj(s,e,t){if(!Ag(s,e))throw new TypeError(t??L("EnumCase",s))}function Lj(s,e){if(!jg(s))throw new TypeError(e??L("Error",s))}function zj(s,e){if(!Pg(s))throw new TypeError(e??L("even integer",s))}function Mj(s,e){if(!Fg(s))throw new TypeError(e??L("falsy",s))}function Rj(s,e){if(!Ig(s))throw new TypeError(e??L("Float32Array",s))}function qj(s,e){if(!_g(s))throw new TypeError(e??L("Float64Array",s))}function Uj(s,e){if(!Ng(s))throw new TypeError(e??L("FormData",s))}function Hj(s,e){if(!ze(s))throw new TypeError(e??L("Function",s))}function $j(s,e){if(!Bg(s))throw new TypeError(e??L("Generator",s))}function Vj(s,e){if(!Og(s))throw new TypeError(e??L("GeneratorFunction",s))}function Wj(s,e){if(!rc(s))throw new TypeError(e??L("HTMLElement",s))}function Gj(s,e){if(!Lg(s))throw new TypeError(e??L("infinite number",s))}function Kj(s,e,t){if(!zg(s,e))throw new TypeError(t??L("in range",s))}function Jj(s,e){if(!Mg(s))throw new TypeError(e??L("Int16Array",s))}function Xj(s,e){if(!Rg(s))throw new TypeError(e??L("Int32Array",s))}function Yj(s,e){if(!qg(s))throw new TypeError(e??L("Int8Array",s))}function Qj(s,e){if(!ac(s))throw new TypeError(e??L("integer",s))}function Zj(s,e){if(!nc(s))throw new TypeError(e??L("Iterable",s))}function eP(s,e){if(!mi(s))throw new TypeError(e??L("Map",s))}function tP(s,e){if(!oc(s))throw new TypeError(e??L("NaN",s))}function sP(s,e){if(!uc(s))throw new TypeError(e??L("native Promise",s))}function iP(s,e){if(!Ug(s))throw new TypeError(e??L("negative number",s))}function rP(s,e){if(!Hg(s))throw new TypeError(e??L("Node.js Stream",s))}function aP(s,e){if(!$g(s))throw new TypeError(e??L("non-empty array",s))}function nP(s,e){if(!Vg(s))throw new TypeError(e??L("non-empty map",s))}function oP(s,e){if(!Wg(s))throw new TypeError(e??L("non-empty object",s))}function uP(s,e){if(!Gg(s))throw new TypeError(e??L("non-empty set",s))}function cP(s,e){if(!Kg(s))throw new TypeError(e??L("non-empty string",s))}function lP(s,e){if(!Jg(s))throw new TypeError(e??L("non-empty string and not whitespace",s))}function pP(s,e){if(!Cr(s))throw new TypeError(e??L("null",s))}function hP(s,e){if(!cc(s))throw new TypeError(e??L("null or undefined",s))}function dP(s,e){if(!gi(s))throw new TypeError(e??L("number",s))}function fP(s,e){if(!Xg(s))throw new TypeError(e??L("string with a number",s))}function mP(s,e){if(!yi(s))throw new TypeError(e??L("Object",s))}function gP(s,e){if(!kn(s))throw new TypeError(e??L("Observable",s))}function yP(s,e){if(!Yg(s))throw new TypeError(e??L("odd integer",s))}function xP(s,e){if(!lc(s))throw new TypeError(e??L("plain object",s))}function bP(s,e){if(!Qg(s))throw new TypeError(e??L("positive number",s))}function wP(s,e){if(!Zg(s))throw new TypeError(e??L("primitive",s))}function DP(s,e){if(!ey(s))throw new TypeError(e??L("Promise",s))}function kP(s,e){if(!ty(s))throw new TypeError(e??L("PropertyKey",s))}function vP(s,e){if(!sy(s))throw new TypeError(e??L("RegExp",s))}function EP(s,e){if(!pc(s))throw new TypeError(e??L("integer",s))}function CP(s,e){if(!xi(s))throw new TypeError(e??L("Set",s))}function TP(s,e){if(!iy(s))throw new TypeError(e??L("SharedArrayBuffer",s))}function SP(s,e){if(!Lt(s))throw new TypeError(e??L("string",s))}function AP(s,e){if(!hc(s))throw new TypeError(e??L("symbol",s))}function jP(s,e){if(!ry(s))throw new TypeError(e??L("truthy",s))}function PP(s,e,t){if(!ay(s,e))throw new TypeError(t??L("tuple-like",s))}function FP(s,e){if(!ny(s))throw new TypeError(e??L("TypedArray",s))}function IP(s,e){if(!oy(s))throw new TypeError(e??L("Uint16Array",s))}function _P(s,e){if(!uy(s))throw new TypeError(e??L("Uint32Array",s))}function NP(s,e){if(!cy(s))throw new TypeError(e??L("Uint8Array",s))}function BP(s,e){if(!ly(s))throw new TypeError(e??L("Uint8ClampedArray",s))}function OP(s,e){if(!dc(s))throw new TypeError(e??L("undefined",s))}function LP(s,e){if(!py(s))throw new TypeError(e??L("URL",s))}function zP(s,e){if(!hy(s))throw new TypeError(e??L("URLSearchParams",s))}function MP(s,e){if(!dy(s))throw new TypeError(e??L("string with a URL",s))}function RP(s,e){if(!fy(s))throw new TypeError(e??L("valid Date",s))}function qP(s,e){if(!fc(s))throw new TypeError(e??L("valid length",s))}function UP(s,e){if(!my(s))throw new TypeError(e??L("WeakMap",s))}function HP(s,e){if(!gy(s))throw new TypeError(e??L("WeakRef",s))}function $P(s,e){if(!yy(s))throw new TypeError(e??L("WeakSet",s))}function VP(s,e){if(!mc(s))throw new TypeError(e??L("whitespace string",s))}var ag,ng,og,Wq,he,Zu,rj,aj,nj,oj,N,gc,cj,v,Qt=k(()=>{h();ag=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];ng=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","WeakRef","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement","NaN",...ag];og=["null","undefined","string","number","bigint","boolean","symbol"];Wq=["positive number","negative number","Class","string with a number","null or undefined","Iterable","AsyncIterable","native Promise","EnumCase","string with a URL","truthy","falsy","primitive","integer","plain object","TypedArray","array-like","tuple-like","Node.js Stream","infinite number","empty array","non-empty array","empty string","empty string or whitespace","non-empty string","non-empty string and not whitespace","empty object","non-empty object","empty set","non-empty set","empty map","non-empty map","PropertyKey","even integer","odd integer","T","in range","predicate returns truthy for any value","predicate returns truthy for all values","valid Date","valid length","whitespace string",...ng,...og],he=s=>{let e=Object.prototype.toString.call(s).slice(8,-1);if(/HTML\w+Element/.test(e)&&rc(s))return"HTMLElement";if(tj(e))return e};Zu=Object.assign(ig,{all:cg,any:ec,array:Tt,arrayBuffer:lg,arrayLike:pg,asyncFunction:hg,asyncGenerator:dg,asyncGeneratorFunction:fg,asyncIterable:tc,bigint:mg,bigInt64Array:gg,bigUint64Array:yg,blob:xg,boolean:bg,boundFunction:wg,buffer:Er,class:Dg,dataView:kg,date:sc,detect:ig,directInstanceOf:vg,emptyArray:Eg,emptyMap:Cg,emptyObject:Tg,emptySet:Sg,emptyString:ic,emptyStringOrWhitespace:Dn,enumCase:Ag,error:jg,evenInteger:Pg,falsy:Fg,float32Array:Ig,float64Array:_g,formData:Ng,function:ze,generator:Bg,generatorFunction:Og,htmlElement:rc,infinite:Lg,inRange:zg,int16Array:Mg,int32Array:Rg,int8Array:qg,integer:ac,iterable:nc,map:mi,nan:oc,nativePromise:uc,negativeNumber:Ug,nodeStream:Hg,nonEmptyArray:$g,nonEmptyMap:Vg,nonEmptyObject:Wg,nonEmptySet:Gg,nonEmptyString:Kg,nonEmptyStringAndNotWhitespace:Jg,null:Cr,nullOrUndefined:cc,number:gi,numericString:Xg,object:yi,observable:kn,oddInteger:Yg,plainObject:lc,positiveNumber:Qg,primitive:Zg,promise:ey,propertyKey:ty,regExp:sy,safeInteger:pc,set:xi,sharedArrayBuffer:iy,string:Lt,symbol:hc,truthy:ry,tupleLike:ay,typedArray:ny,uint16Array:oy,uint32Array:uy,uint8Array:cy,uint8ClampedArray:ly,undefined:dc,urlInstance:py,urlSearchParams:hy,urlString:dy,validDate:fy,validLength:fc,weakMap:my,weakRef:gy,weakSet:yy,whitespaceString:mc});rj=1,aj=["innerHTML","ownerDocument","style","attributes","nodeValue"];nj=new Intl.ListFormat("en",{style:"long",type:"conjunction"}),oj=new Intl.ListFormat("en",{style:"long",type:"disjunction"});N={all:lj,any:pj,array:hj,arrayBuffer:dj,arrayLike:fj,asyncFunction:mj,asyncGenerator:gj,asyncGeneratorFunction:yj,asyncIterable:xj,bigint:bj,bigInt64Array:wj,bigUint64Array:Dj,blob:kj,boolean:vj,boundFunction:Ej,buffer:Cj,class:Tj,dataView:Sj,date:Aj,directInstanceOf:jj,emptyArray:Pj,emptyMap:Fj,emptyObject:Ij,emptySet:_j,emptyString:Nj,emptyStringOrWhitespace:Bj,enumCase:Oj,error:Lj,evenInteger:zj,falsy:Mj,float32Array:Rj,float64Array:qj,formData:Uj,function:Hj,generator:$j,generatorFunction:Vj,htmlElement:Wj,infinite:Gj,inRange:Kj,int16Array:Jj,int32Array:Xj,int8Array:Yj,integer:Qj,iterable:Zj,map:eP,nan:tP,nativePromise:sP,negativeNumber:iP,nodeStream:rP,nonEmptyArray:aP,nonEmptyMap:nP,nonEmptyObject:oP,nonEmptySet:uP,nonEmptyString:cP,nonEmptyStringAndNotWhitespace:lP,null:pP,nullOrUndefined:hP,number:dP,numericString:fP,object:mP,observable:gP,oddInteger:yP,plainObject:xP,positiveNumber:bP,primitive:wP,promise:DP,propertyKey:kP,regExp:vP,safeInteger:EP,set:CP,sharedArrayBuffer:TP,string:SP,symbol:AP,truthy:jP,tupleLike:PP,typedArray:FP,uint16Array:IP,uint32Array:_P,uint8Array:NP,uint8ClampedArray:BP,undefined:OP,urlInstance:LP,urlSearchParams:zP,urlString:MP,validDate:RP,validLength:qP,weakMap:UP,weakRef:HP,weakSet:$P,whitespaceString:VP},gc={isArray:"Array",isArrayBuffer:"ArrayBuffer",isArrayLike:"array-like",isAsyncFunction:"AsyncFunction",isAsyncGenerator:"AsyncGenerator",isAsyncGeneratorFunction:"AsyncGeneratorFunction",isAsyncIterable:"AsyncIterable",isBigint:"bigint",isBigInt64Array:"BigInt64Array",isBigUint64Array:"BigUint64Array",isBlob:"Blob",isBoolean:"boolean",isBoundFunction:"Function",isBuffer:"Buffer",isClass:"Class",isDataView:"DataView",isDate:"Date",isDirectInstanceOf:"T",isEmptyArray:"empty array",isEmptyMap:"empty map",isEmptyObject:"empty object",isEmptySet:"empty set",isEmptyString:"empty string",isEmptyStringOrWhitespace:"empty string or whitespace",isEnumCase:"EnumCase",isError:"Error",isEvenInteger:"even integer",isFalsy:"falsy",isFloat32Array:"Float32Array",isFloat64Array:"Float64Array",isFormData:"FormData",isFunction:"Function",isGenerator:"Generator",isGeneratorFunction:"GeneratorFunction",isHtmlElement:"HTMLElement",isInfinite:"infinite number",isInRange:"in range",isInt16Array:"Int16Array",isInt32Array:"Int32Array",isInt8Array:"Int8Array",isInteger:"integer",isIterable:"Iterable",isMap:"Map",isNan:"NaN",isNativePromise:"native Promise",isNegativeNumber:"negative number",isNodeStream:"Node.js Stream",isNonEmptyArray:"non-empty array",isNonEmptyMap:"non-empty map",isNonEmptyObject:"non-empty object",isNonEmptySet:"non-empty set",isNonEmptyString:"non-empty string",isNonEmptyStringAndNotWhitespace:"non-empty string and not whitespace",isNull:"null",isNullOrUndefined:"null or undefined",isNumber:"number",isNumericString:"string with a number",isObject:"Object",isObservable:"Observable",isOddInteger:"odd integer",isPlainObject:"plain object",isPositiveNumber:"positive number",isPrimitive:"primitive",isPromise:"Promise",isPropertyKey:"PropertyKey",isRegExp:"RegExp",isSafeInteger:"integer",isSet:"Set",isSharedArrayBuffer:"SharedArrayBuffer",isString:"string",isSymbol:"symbol",isTruthy:"truthy",isTupleLike:"tuple-like",isTypedArray:"TypedArray",isUint16Array:"Uint16Array",isUint32Array:"Uint32Array",isUint8Array:"Uint8Array",isUint8ClampedArray:"Uint8ClampedArray",isUndefined:"undefined",isUrlInstance:"URL",isUrlSearchParams:"URLSearchParams",isUrlString:"string with a URL",isValidDate:"valid Date",isValidLength:"valid length",isWeakMap:"WeakMap",isWeakRef:"WeakRef",isWeakSet:"WeakSet",isWhitespaceString:"whitespace string"};cj=uj(gc);v=Zu});var yc,zt,bi,Dy=k(()=>{h();yc=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},zt=Object.freeze({pending:Symbol("pending"),canceled:Symbol("canceled"),resolved:Symbol("resolved"),rejected:Symbol("rejected")}),bi=class s{static fn(e){return(...t)=>new s((i,r,a)=>{t.push(a),e(...t).then(i,r)})}#s=[];#i=!0;#e=zt.pending;#t;#r;constructor(e){this.#t=new Promise((t,i)=>{this.#r=i;let r=o=>{(this.#e!==zt.canceled||!n.shouldReject)&&(t(o),this.#a(zt.resolved))},a=o=>{(this.#e!==zt.canceled||!n.shouldReject)&&(i(o),this.#a(zt.rejected))},n=o=>{if(this.#e!==zt.pending)throw new Error(`The \`onCancel\` handler was attached after the promise ${this.#e.description}.`);this.#s.push(o)};Object.defineProperties(n,{shouldReject:{get:()=>this.#i,set:o=>{this.#i=o}}}),e(r,a,n)})}then(e,t){return this.#t.then(e,t)}catch(e){return this.#t.catch(e)}finally(e){return this.#t.finally(e)}cancel(e){if(this.#e===zt.pending){if(this.#a(zt.canceled),this.#s.length>0)try{for(let t of this.#s)t()}catch(t){this.#r(t);return}this.#i&&this.#r(new yc(e))}}get isCanceled(){return this.#e===zt.canceled}#a(e){this.#e===zt.pending&&(this.#e=e)}};Object.setPrototypeOf(bi.prototype,Promise.prototype)});function WP(s){return v.object(s)&&"_onResponse"in s}var Ee,vn,bs,En,Tr,Sr,Ar,Cn,Tn,wi=k(()=>{h();Qt();Ee=class extends Error{input;code;stack;response;request;timings;constructor(e,t,i){if(super(e,{cause:t}),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=t.code??"ERR_GOT_REQUEST_ERROR",this.input=t.input,WP(i)?(Object.defineProperty(this,"request",{enumerable:!1,value:i}),Object.defineProperty(this,"response",{enumerable:!1,value:i.response}),this.options=i.options):this.options=i,this.timings=this.request?.timings,v.string(t.stack)&&v.string(this.stack)){let r=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(r).split(`
`).reverse(),n=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split(`
`).reverse();for(;n.length>0&&n[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,r)}${a.reverse().join(`
`)}${n.reverse().join(`
`)}`}}},vn=class extends Ee{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}},bs=class extends Ee{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}},En=class extends Ee{constructor(e,t){super(e.message,e,t),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}},Tr=class extends Ee{constructor(e,t){super(e.message,e,t),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}},Sr=class extends Ee{timings;event;constructor(e,t,i){super(e.message,e,i),this.name="TimeoutError",this.event=e.event,this.timings=t}},Ar=class extends Ee{constructor(e,t){super(e.message,e,t),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}},Cn=class extends Ee{constructor(e){super("Retrying",{},e),this.name="RetryError",this.code="ERR_RETRYING"}},Tn=class extends Ee{constructor(e){super("This operation was aborted.",{},e),this.code="ERR_ABORTED",this.name="AbortError"}}});var ky=O((bc,wc)=>{"use strict";h();Object.defineProperty(bc,"__esModule",{value:!0});function GP(s){return s.encrypted}var xc=(s,e)=>{let t;typeof e=="function"?t={connect:e}:t=e;let i=typeof t.connect=="function",r=typeof t.secureConnect=="function",a=typeof t.close=="function",n=()=>{i&&t.connect(),GP(s)&&r&&(s.authorized?t.secureConnect():s.authorizationError||s.once("secureConnect",t.secureConnect)),a&&s.once("close",t.close)};s.writable&&!s.connecting?n():s.connecting?s.once("connect",n):s.destroyed&&a&&t.close(s._hadError)};bc.default=xc;wc.exports=xc;wc.exports.default=xc});import{errorMonitor as KP}from"events";import{types as JP}from"util";var vy,XP,Ey,Cy=k(()=>{h();vy=Dt(ky(),1),XP=s=>{if(s.timings)return s.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};s.timings=e;let t=n=>{n.once(KP,()=>{e.error=Date.now(),e.phases.total=e.error-e.start})};t(s);let i=()=>{e.abort=Date.now(),e.phases.total=e.abort-e.start};s.prependOnceListener("abort",i);let r=n=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,JP.isProxy(n))return;let o=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};n.prependOnceListener("lookup",o),(0,vy.default)(n,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(n.removeListener("lookup",o),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};s.socket?r(s.socket):s.prependOnceListener("socket",r);let a=()=>{e.upload=Date.now(),e.phases.request=e.upload-(e.secureConnect??e.connect)};return s.writableFinished?a():s.prependOnceListener("finish",a),s.prependOnceListener("response",n=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,n.timings=e,t(n),n.prependOnceListener("end",()=>{s.off("abort",i),n.off("aborted",i),!e.phases.total&&(e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start)}),n.prependOnceListener("aborted",i)}),e},Ey=XP});function kc(s,e){if(e={defaultProtocol:"http",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,...e},typeof e.defaultProtocol=="string"&&!e.defaultProtocol.endsWith(":")&&(e.defaultProtocol=`${e.defaultProtocol}:`),s=s.trim(),/^data:/i.test(s))return tF(s,e);if(eF(s))return s;let t=s.startsWith("//");!t&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let r=new URL(s);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&r.protocol==="https:"&&(r.protocol="http:"),e.forceHttps&&r.protocol==="http:"&&(r.protocol="https:"),e.stripAuthentication&&(r.username="",r.password=""),e.stripHash?r.hash="":e.stripTextFragment&&(r.hash=r.hash.replace(/#?:~:text.*?$/i,"")),r.pathname){let n=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,o=0,u="";for(;;){let l=n.exec(r.pathname);if(!l)break;let p=l[0],d=l.index,m=r.pathname.slice(o,d);u+=m.replace(/\/{2,}/g,"/"),u+=p,o=d+p.length}let c=r.pathname.slice(o,r.pathname.length);u+=c.replace(/\/{2,}/g,"/"),r.pathname=u}if(r.pathname)try{r.pathname=decodeURI(r.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let n=r.pathname.split("/"),o=n[n.length-1];Dc(o,e.removeDirectoryIndex)&&(n=n.slice(0,-1),r.pathname=n.slice(1).join("/")+"/")}if(r.hostname&&(r.hostname=r.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(r.hostname)&&(r.hostname=r.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let n of[...r.searchParams.keys()])Dc(n,e.removeQueryParameters)&&r.searchParams.delete(n);if(!Array.isArray(e.keepQueryParameters)&&e.removeQueryParameters===!0&&(r.search=""),Array.isArray(e.keepQueryParameters)&&e.keepQueryParameters.length>0)for(let n of[...r.searchParams.keys()])Dc(n,e.keepQueryParameters)||r.searchParams.delete(n);if(e.sortQueryParameters){r.searchParams.sort();try{r.search=decodeURIComponent(r.search)}catch{}}e.removeTrailingSlash&&(r.pathname=r.pathname.replace(/\/$/,"")),e.removeExplicitPort&&r.port&&(r.port="");let a=s;return s=r.toString(),!e.removeSingleSlash&&r.pathname==="/"&&!a.endsWith("/")&&r.hash===""&&(s=s.replace(/\/$/,"")),(e.removeTrailingSlash||r.pathname==="/")&&r.hash===""&&e.removeSingleSlash&&(s=s.replace(/\/$/,"")),t&&!e.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),e.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s}var YP,QP,Dc,ZP,eF,tF,Ty=k(()=>{h();YP="text/plain",QP="us-ascii",Dc=(s,e)=>e.some(t=>t instanceof RegExp?t.test(s):t===s),ZP=new Set(["https:","http:","file:"]),eF=s=>{try{let{protocol:e}=new URL(s);return e.endsWith(":")&&!e.includes(".")&&!ZP.has(e)}catch{return!1}},tF=(s,{stripHash:e})=>{let t=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!t)throw new Error(`Invalid URL: ${s}`);let{type:i,data:r,hash:a}=t.groups,n=i.split(";");a=e?"":a;let o=!1;n[n.length-1]==="base64"&&(n.pop(),o=!0);let u=n.shift()?.toLowerCase()??"",l=[...n.map(p=>{let[d,m=""]=p.split("=").map(f=>f.trim());return d==="charset"&&(m=m.toLowerCase(),m===QP)?"":`${d}${m?`=${m}`:""}`}).filter(Boolean)];return o&&l.push("base64"),(l.length>0||u&&u!==YP)&&l.unshift(u),`data:${l.join(";")},${o?r.trim():r}${a?`#${a}`:""}`}});function sF(s,{checkOpen:e=!0}={}){return s!==null&&typeof s=="object"&&(s.writable||s.readable||!e||s.writable===void 0&&s.readable===void 0)&&typeof s.pipe=="function"}function Sy(s,{checkOpen:e=!0}={}){return sF(s,{checkOpen:e})&&(s.readable||!e)&&typeof s.read=="function"&&typeof s.readable=="boolean"&&typeof s.readableObjectMode=="boolean"&&typeof s.destroy=="function"&&typeof s.destroyed=="boolean"}var Ay=k(()=>{h()});function jy(){return this[Ec].next()}function Py(s){return this[Ec].return(s)}function Cc({preventCancel:s=!1}={}){let e=this.getReader(),t=new vc(e,s),i=Object.create(rF);return i[Ec]=t,i}var iF,vc,Ec,rF,Fy=k(()=>{h();iF=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),vc=class{#s;#i;#e=!1;#t=void 0;constructor(e,t){this.#s=e,this.#i=t}next(){let e=()=>this.#r();return this.#t=this.#t?this.#t.then(e,e):e(),this.#t}return(e){let t=()=>this.#a(e);return this.#t?this.#t.then(t,t):t()}async#r(){if(this.#e)return{done:!0,value:void 0};let e;try{e=await this.#s.read()}catch(t){throw this.#t=void 0,this.#e=!0,this.#s.releaseLock(),t}return e.done&&(this.#t=void 0,this.#e=!0,this.#s.releaseLock()),e}async#a(e){if(this.#e)return{done:!0,value:e};if(this.#e=!0,!this.#i){let t=this.#s.cancel(e);return this.#s.releaseLock(),await t,{done:!0,value:e}}return this.#s.releaseLock(),{done:!0,value:e}}},Ec=Symbol();Object.defineProperty(jy,"name",{value:"next"});Object.defineProperty(Py,"name",{value:"return"});rF=Object.create(iF,{next:{enumerable:!0,configurable:!0,writable:!0,value:jy},return:{enumerable:!0,configurable:!0,writable:!0,value:Py}})});var Iy=k(()=>{h()});var _y=k(()=>{h();Fy();Iy()});var Ny,aF,nF,oF,jr,Tc=k(()=>{h();Ay();_y();Ny=s=>{if(Sy(s,{checkOpen:!1})&&jr.on!==void 0)return nF(s);if(typeof s?.[Symbol.asyncIterator]=="function")return s;if(aF.call(s)==="[object ReadableStream]")return Cc.call(s);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:aF}=Object.prototype,nF=async function*(s){let e=new AbortController,t={};oF(s,e,t);try{for await(let[i]of jr.on(s,"data",{signal:e.signal}))yield i}catch(i){if(t.error!==void 0)throw t.error;if(!e.signal.aborted)throw i}finally{s.destroy()}},oF=async(s,e,t)=>{try{await jr.finished(s,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(i){t.error=i}finally{e.abort()}},jr={}});var Ly,uF,zy,By,cF,Oy,Sn,My=k(()=>{h();Tc();Ly=async(s,{init:e,convertChunk:t,getSize:i,truncateChunk:r,addChunk:a,getFinalChunk:n,finalize:o},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{let c=Ny(s),l=e();l.length=0;try{for await(let p of c){let d=cF(p),m=t[d](p,l);zy({convertedChunk:m,state:l,getSize:i,truncateChunk:r,addChunk:a,maxBuffer:u})}return uF({state:l,convertChunk:t,getSize:i,truncateChunk:r,addChunk:a,getFinalChunk:n,maxBuffer:u}),o(l)}catch(p){let d=typeof p=="object"&&p!==null?p:new Error(p);throw d.bufferedData=o(l),d}},uF=({state:s,getSize:e,truncateChunk:t,addChunk:i,getFinalChunk:r,maxBuffer:a})=>{let n=r(s);n!==void 0&&zy({convertedChunk:n,state:s,getSize:e,truncateChunk:t,addChunk:i,maxBuffer:a})},zy=({convertedChunk:s,state:e,getSize:t,truncateChunk:i,addChunk:r,maxBuffer:a})=>{let n=t(s),o=e.length+n;if(o<=a){By(s,e,r,o);return}let u=i(s,a-e.length);throw u!==void 0&&By(u,e,r,a),new Sn},By=(s,e,t,i)=>{e.contents=t(s,e,i),e.length=i},cF=s=>{let e=typeof s;if(e==="string")return"string";if(e!=="object"||s===null)return"others";if(globalThis.Buffer?.isBuffer(s))return"buffer";let t=Oy.call(s);return t==="[object ArrayBuffer]"?"arrayBuffer":t==="[object DataView]"?"dataView":Number.isInteger(s.byteLength)&&Number.isInteger(s.byteOffset)&&Oy.call(s.buffer)==="[object ArrayBuffer]"?"typedArray":"others"},{toString:Oy}=Object.prototype,Sn=class extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}});var Ry,qy,Uy,Hy=k(()=>{h();Ry=()=>{},qy=s=>{throw new Error(`Streams in object mode are not supported: ${String(s)}`)},Uy=s=>s.length});async function Sc(s,e){return Ly(s,xF,e)}var lF,pF,hF,$y,Vy,dF,fF,mF,gF,Gy,Wy,yF,Ky,xF,Jy=k(()=>{h();My();Hy();lF=()=>({contents:new ArrayBuffer(0)}),pF=s=>hF.encode(s),hF=new TextEncoder,$y=s=>new Uint8Array(s),Vy=s=>new Uint8Array(s.buffer,s.byteOffset,s.byteLength),dF=(s,e)=>s.slice(0,e),fF=(s,{contents:e,length:t},i)=>{let r=Ky()?gF(e,i):mF(e,i);return new Uint8Array(r).set(s,t),r},mF=(s,e)=>{if(e<=s.byteLength)return s;let t=new ArrayBuffer(Gy(e));return new Uint8Array(t).set(new Uint8Array(s),0),t},gF=(s,e)=>{if(e<=s.maxByteLength)return s.resize(e),s;let t=new ArrayBuffer(e,{maxByteLength:Gy(e)});return new Uint8Array(t).set(new Uint8Array(s),0),t},Gy=s=>Wy**Math.ceil(Math.log(s)/Math.log(Wy)),Wy=2,yF=({contents:s,length:e})=>Ky()?s:s.slice(0,e),Ky=()=>"resize"in ArrayBuffer.prototype,xF={init:lF,convertChunk:{string:pF,buffer:$y,arrayBuffer:$y,dataView:Vy,typedArray:Vy,others:qy},getSize:Uy,truncateChunk:dF,addChunk:fF,getFinalChunk:Ry,finalize:yF}});async function An(s,e){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return Xy(await Sc(s,e))}catch(t){throw t.bufferedData!==void 0&&(t.bufferedData=Xy(t.bufferedData)),t}}var Xy,Yy=k(()=>{h();Jy();Xy=s=>globalThis.Buffer.from(s)});var Qy=k(()=>{h();Yy()});import{on as bF}from"node:events";import{finished as wF}from"node:stream/promises";var Zy=k(()=>{h();Tc();Qy();Object.assign(jr,{on:bF,finished:wF})});var tx=O((WU,ex)=>{"use strict";h();var DF=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),kF=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),vF=new Set([500,502,503,504]),EF={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},CF={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Hs(s){let e=parseInt(s,10);return isFinite(e)?e:0}function TF(s){return s?vF.has(s.status):!0}function Ac(s){let e={};if(!s)return e;let t=s.trim().split(/,/);for(let i of t){let[r,a]=i.split(/=/,2);e[r.trim()]=a===void 0?!0:a.trim().replace(/^"|"$/g,"")}return e}function SF(s){let e=[];for(let t in s){let i=s[t];e.push(i===!0?t:t+"="+i)}if(e.length)return e.join(", ")}ex.exports=class{constructor(e,t,{shared:i,cacheHeuristic:r,immutableMinTimeToLive:a,ignoreCargoCult:n,_fromObject:o}={}){if(o){this._fromObject(o);return}if(!t||!t.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=i!==!1,this._cacheHeuristic=r!==void 0?r:.1,this._immutableMinTtl=a!==void 0?a:24*3600*1e3,this._status="status"in t?t.status:200,this._resHeaders=t.headers,this._rescc=Ac(t.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=t.headers.vary?e.headers:null,this._reqcc=Ac(e.headers["cache-control"]),n&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":SF(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&kF.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||DF.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let t=Ac(e.headers["cache-control"]);return t["no-cache"]||/no-cache/.test(e.headers.pragma)||t["max-age"]&&this.age()>t["max-age"]||t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]||this.stale()&&!(t["max-stale"]&&!this._rescc["must-revalidate"]&&(t["max-stale"]===!0||t["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let i of t)if(e.headers[i]!==this._reqHeaders[i])return!1;return!0}_copyWithoutHopByHopHeaders(e){let t={};for(let i in e)EF[i]||(t[i]=e[i]);if(e.connection){let i=e.connection.trim().split(/\s*,\s*/);for(let r of i)delete t[r]}if(t.warning){let i=t.warning.split(/,/).filter(r=>!/^\s*1[0-9][0-9]/.test(r));i.length?t.warning=i.join(",").trim():delete t.warning}return t}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),t=this.age();return t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(t)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return Hs(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return Hs(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Hs(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,t=this.date();if(this._resHeaders.expires){let i=Date.parse(this._resHeaders.expires);return Number.isNaN(i)||i<t?0:Math.max(e,(i-t)/1e3)}if(this._resHeaders["last-modified"]){let i=Date.parse(this._resHeaders["last-modified"]);if(isFinite(i)&&t>i)return Math.max(e,(t-i)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),t=e+Hs(this._rescc["stale-if-error"]),i=e+Hs(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,i)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Hs(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+Hs(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let t=this._copyWithoutHopByHopHeaders(e.headers);if(delete t["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete t["if-none-match"],delete t["if-modified-since"],t;if(this._resHeaders.etag&&(t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete t["if-modified-since"],t["if-none-match"]){let r=t["if-none-match"].split(/,/).filter(a=>!/^\s*W\//.test(a));r.length?t["if-none-match"]=r.join(",").trim():delete t["if-none-match"]}}else this._resHeaders["last-modified"]&&!t["if-modified-since"]&&(t["if-modified-since"]=this._resHeaders["last-modified"]);return t}revalidatedPolicy(e,t){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&TF(t))return{modified:!1,matches:!1,policy:this};if(!t||!t.headers)throw Error("Response headers missing");let i=!1;if(t.status!==void 0&&t.status!=304?i=!1:t.headers.etag&&!/^\s*W\//.test(t.headers.etag)?i=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag:this._resHeaders.etag&&t.headers.etag?i=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?i=this._resHeaders["last-modified"]===t.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]&&(i=!0),!i)return{policy:new this.constructor(e,t),modified:t.status!=304,matches:!1};let r={};for(let n in this._resHeaders)r[n]=n in t.headers&&!CF[n]?t.headers[n]:this._resHeaders[n];let a=Object.assign({},t,{status:this._status,method:this._method,headers:r});return{policy:new this.constructor(e,a,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});function Di(s){return Object.fromEntries(Object.entries(s).map(([e,t])=>[e.toLowerCase(),t]))}var jc=k(()=>{h()});import{Readable as AF}from"node:stream";var ki,sx=k(()=>{h();jc();ki=class extends AF{statusCode;headers;body;url;constructor({statusCode:e,headers:t,body:i,url:r}){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof t!="object")throw new TypeError("Argument `headers` should be an object");if(!(i instanceof Uint8Array))throw new TypeError("Argument `body` should be a buffer");if(typeof r!="string")throw new TypeError("Argument `url` should be a string");super({read(){this.push(i),this.push(null)}}),this.statusCode=e,this.headers=Di(t),this.body=i,this.url=r}}});var ix=O(Pc=>{h();Pc.stringify=function s(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var t="",i=Array.isArray(e);t=i?"[":"{";var r=!0;for(var a in e){var n=typeof e[a]=="function"||!i&&typeof e[a]>"u";Object.hasOwnProperty.call(e,a)&&!n&&(r||(t+=","),r=!1,i?e[a]==null?t+="null":t+=s(e[a]):e[a]!==void 0&&(t+=s(a)+":"+s(e[a])))}return t+=i?"]":"}",t}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};Pc.parse=function(s){return JSON.parse(s,function(e,t){return typeof t=="string"?/^:base64:/.test(t)?Buffer.from(t.substring(8),"base64"):/^:/.test(t)?t.substring(1):t:t})}});var ox=O((sH,nx)=>{"use strict";h();var jF=M("events"),rx=ix(),PF=s=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let t=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(M(e[t]))(s)}return new Map},ax=["sqlite","postgres","mysql","mongo","redis","tiered"],Fc=class extends jF{constructor(e,{emitErrors:t=!0,...i}={}){if(super(),this.opts={namespace:"keyv",serialize:rx.stringify,deserialize:rx.parse,...typeof e=="string"?{uri:e}:e,...i},!this.opts.store){let a={...this.opts};this.opts.store=PF(a)}if(this.opts.compression){let a=this.opts.compression;this.opts.serialize=a.serialize.bind(a),this.opts.deserialize=a.deserialize.bind(a)}typeof this.opts.store.on=="function"&&t&&this.opts.store.on("error",a=>this.emit("error",a)),this.opts.store.namespace=this.opts.namespace;let r=a=>async function*(){for await(let[n,o]of typeof a=="function"?a(this.opts.store.namespace):a){let u=await this.opts.deserialize(o);if(!(this.opts.store.namespace&&!n.includes(this.opts.store.namespace))){if(typeof u.expires=="number"&&Date.now()>u.expires){this.delete(n);continue}yield[this._getKeyUnprefix(n),u.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=r(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=r(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return ax.includes(this.opts.store.opts.dialect)||ax.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(t=>`${this.opts.namespace}:${t}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){let{store:i}=this.opts,r=Array.isArray(e),a=r?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(r&&i.getMany===void 0){let n=[];for(let o of a)n.push(Promise.resolve().then(()=>i.get(o)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(o).then(()=>{}):t&&t.raw?u:u.value}));return Promise.allSettled(n).then(o=>{let u=[];for(let c of o)u.push(c.value);return u})}return Promise.resolve().then(()=>r?i.getMany(a):i.get(a)).then(n=>typeof n=="string"?this.opts.deserialize(n):this.opts.compression?this.opts.deserialize(n):n).then(n=>{if(n!=null)return r?n.map((o,u)=>{if(typeof o=="string"&&(o=this.opts.deserialize(o)),o!=null){if(typeof o.expires=="number"&&Date.now()>o.expires){this.delete(e[u]).then(()=>{});return}return t&&t.raw?o:o.value}}):typeof n.expires=="number"&&Date.now()>n.expires?this.delete(e).then(()=>{}):t&&t.raw?n:n.value})}set(e,t,i){let r=this._getKeyPrefix(e);typeof i>"u"&&(i=this.opts.ttl),i===0&&(i=void 0);let{store:a}=this.opts;return Promise.resolve().then(()=>{let n=typeof i=="number"?Date.now()+i:null;return typeof t=="symbol"&&this.emit("error","symbol cannot be serialized"),t={value:t,expires:n},this.opts.serialize(t)}).then(n=>a.set(r,n,i)).then(()=>!0)}delete(e){let{store:t}=this.opts;if(Array.isArray(e)){let r=this._getKeyPrefixArray(e);if(t.deleteMany===void 0){let a=[];for(let n of r)a.push(t.delete(n));return Promise.allSettled(a).then(n=>n.every(o=>o.value===!0))}return Promise.resolve().then(()=>t.deleteMany(r))}let i=this._getKeyPrefix(e);return Promise.resolve().then(()=>t.delete(i))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let t=this._getKeyPrefix(e),{store:i}=this.opts;return Promise.resolve().then(async()=>typeof i.has=="function"?i.has(t):await i.get(t)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};nx.exports=Fc});function Ic(s,e){if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set([...Object.keys(s),...FF]),i={};for(let r of t)r in e||(i[r]={get(){let a=s[r];return typeof a=="function"?a.bind(s):a},set(a){s[r]=a},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),s.once("aborted",()=>{e.destroy(),e.emit("aborted")}),s.once("close",()=>{s.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}var FF,ux=k(()=>{h();FF=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"]});var jn,Zt,_c=k(()=>{h();jn=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}},Zt=class extends Error{constructor(e){super(e.message),Object.assign(this,e)}}});import IF from"node:events";import Pn from"node:url";import _F from"node:crypto";import NF,{PassThrough as BF}from"node:stream";var Fn,Pr,Bc,OF,LF,zF,Nc,cx,lx,px=k(()=>{h();Ty();Zy();Fn=Dt(tx(),1);sx();Pr=Dt(ox(),1);ux();_c();_c();Bc=class{constructor(e,t){this.hooks=new Map,this.request=()=>(i,r)=>{let a;if(typeof i=="string")a=Nc(Pn.parse(i)),i={};else if(i instanceof Pn.URL)a=Nc(Pn.parse(i.toString())),i={};else{let[d,...m]=(i.path??"").split("?"),f=m.length>0?`?${m.join("?")}`:"";a=Nc({...i,pathname:d,search:f})}i={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...i,...zF(a)},i.headers=Object.fromEntries(OF(i.headers).map(([d,m])=>[d.toLowerCase(),m]));let n=new IF,o=kc(Pn.format(a),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),u=`${i.method}:${o}`;i.body&&i.method!==void 0&&["POST","PATCH","PUT"].includes(i.method)&&(i.body instanceof NF.Readable?i.cache=!1:u+=`:${_F.createHash("md5").update(i.body).digest("hex")}`);let c=!1,l=!1,p=d=>{l=!0;let m=!1,f=()=>{},g=new Promise(w=>{f=()=>{m||(m=!0,w())}}),y=async w=>{if(c){w.status=w.statusCode;let S=Fn.default.fromObject(c.cachePolicy).revalidatedPolicy(d,w);if(!S.modified){w.resume(),await new Promise(A=>{w.once("end",A)});let E=cx(S.policy.responseHeaders());w=new ki({statusCode:c.statusCode,headers:E,body:c.body,url:c.url}),w.cachePolicy=S.policy,w.fromCache=!0}}w.fromCache||(w.cachePolicy=new Fn.default(d,w,d),w.fromCache=!1);let T;d.cache&&w.cachePolicy.storable()?(T=LF(w),(async()=>{try{let S=An(w);await Promise.race([g,new Promise(H=>w.once("end",H)),new Promise(H=>w.once("close",H))]);let E=await S,A={url:w.url,statusCode:w.fromCache?c.statusCode:w.statusCode,body:E,cachePolicy:w.cachePolicy.toObject()},F=d.strictTtl?w.cachePolicy.timeToLive():void 0;if(d.maxTtl&&(F=F?Math.min(F,d.maxTtl):d.maxTtl),this.hooks.size>0)for(let H of this.hooks.keys())A=await this.runHook(H,A,w);await this.cache.set(u,A,F)}catch(S){n.emit("error",new Zt(S))}})()):d.cache&&c&&(async()=>{try{await this.cache.delete(u)}catch(S){n.emit("error",new Zt(S))}})(),n.emit("response",T??w),typeof r=="function"&&r(T??w)};try{let w=this.cacheRequest(d,y);w.once("error",f),w.once("abort",f),w.once("destroy",f),n.emit("request",w)}catch(w){n.emit("error",new jn(w))}};return(async()=>{let d=async f=>{await Promise.resolve();let g=f.cache?await this.cache.get(u):void 0;if(g===void 0&&!f.forceRefresh){p(f);return}let y=Fn.default.fromObject(g.cachePolicy);if(y.satisfiesWithoutRevalidation(f)&&!f.forceRefresh){let w=cx(y.responseHeaders()),T=new ki({statusCode:g.statusCode,headers:w,body:g.body,url:g.url});T.cachePolicy=y,T.fromCache=!0,n.emit("response",T),typeof r=="function"&&r(T)}else y.satisfiesWithoutRevalidation(f)&&Date.now()>=y.timeToLive()&&f.forceRefresh?(await this.cache.delete(u),f.headers=y.revalidationHeaders(f),p(f)):(c=g,f.headers=y.revalidationHeaders(f),p(f))},m=f=>n.emit("error",new Zt(f));if(this.cache instanceof Pr.default){let f=this.cache;f.once("error",m),n.on("error",()=>f.removeListener("error",m)),n.on("response",()=>f.removeListener("error",m))}try{await d(i)}catch(f){i.automaticFailover&&!l&&p(i),n.emit("error",new Zt(f))}})(),n},this.addHook=(i,r)=>{this.hooks.has(i)||this.hooks.set(i,r)},this.removeHook=i=>this.hooks.delete(i),this.getHook=i=>this.hooks.get(i),this.runHook=async(i,...r)=>this.hooks.get(i)?.(...r),t instanceof Pr.default?this.cache=t:typeof t=="string"?this.cache=new Pr.default({uri:t,namespace:"cacheable-request"}):this.cache=new Pr.default({store:t,namespace:"cacheable-request"}),this.request=this.request.bind(this),this.cacheRequest=e}},OF=Object.entries,LF=s=>{let e=new BF({autoDestroy:!1});return Ic(s,e),s.pipe(e)},zF=s=>{let e={...s};return e.path=`${s.pathname||"/"}${s.search||""}`,delete e.pathname,delete e.search,e},Nc=s=>({protocol:s.protocol,auth:s.auth,hostname:s.hostname||s.host||"localhost",port:s.port,pathname:s.pathname,search:s.search}),cx=s=>{let e=[];for(let t of Object.keys(s))e[t.toLowerCase()]=s[t];return e},lx=Bc});var dx=O((DH,hx)=>{"use strict";h();var MF=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];hx.exports=(s,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(s).concat(MF)),i={};for(let r of t)r in e||(i[r]={get(){let a=s[r];return typeof a=="function"?a.bind(s):a},set(a){s[r]=a},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),s.once("aborted",()=>{e.destroy(),e.emit("aborted")}),s.once("close",()=>{s.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var mx=O((vH,fx)=>{"use strict";h();var{Transform:RF,PassThrough:qF}=M("stream"),Oc=M("zlib"),UF=dx();fx.exports=s=>{let e=(s.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return s;let t=e==="br";if(t&&typeof Oc.createBrotliDecompress!="function")return s.destroy(new Error("Brotli is not supported on Node.js < 12")),s;let i=!0,r=new RF({transform(o,u,c){i=!1,c(null,o)},flush(o){o()}}),a=new qF({autoDestroy:!1,destroy(o,u){s.destroy(),u(o)}}),n=t?Oc.createBrotliDecompress():Oc.createUnzip();return n.once("error",o=>{if(i&&!s.readable){a.end();return}a.destroy(o)}),UF(s,a),s.pipe(r).pipe(n).pipe(a),a}});function*kx(s){if(s.byteLength<=gx){yield s;return}let e=0;for(;e<s.byteLength;){let t=Math.min(s.byteLength-e,gx),i=s.buffer.slice(e,e+t);e+=i.byteLength,yield new Uint8Array(i)}}async function*$F(s){let e=s.getReader();for(;;){let{done:t,value:i}=await e.read();if(t)break;yield i}}async function*yx(s){for await(let e of s)yield*kx(e)}function WF(){let s=16,e="";for(;s--;)e+=xx[Math.random()*xx.length<<0];return e}function bx(s){if(GF(s)!=="object")return!1;let e=Object.getPrototypeOf(s);return e==null?!0:(e.constructor&&e.constructor.toString())===Object.toString()}function wx(s,e){if(typeof e=="string"){for(let[t,i]of Object.entries(s))if(e.toLowerCase()===t.toLowerCase())return i}}var Mc,Ce,Mt,Fr,Lc,es,HF,gx,VF,xx,vx,GF,KF,Or,Dx,vi,JF,In,ws,Ir,_n,_r,$s,Nr,Br,Nn,Bn,Rc,zc,Ex,Cx,qc=k(()=>{h();Mc=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)},Ce=(s,e,t)=>(Mc(s,e,"read from private field"),t?t.call(s):e.get(s)),Mt=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)},Fr=(s,e,t,i)=>(Mc(s,e,"write to private field"),i?i.call(s,t):e.set(s,t),t),Lc=(s,e,t)=>(Mc(s,e,"access private method"),t),es=s=>typeof s=="function",HF=s=>es(s[Symbol.asyncIterator]),gx=65536;VF=s=>{if(HF(s))return yx(s);if(es(s.getReader))return yx($F(s));throw new TypeError("Unsupported data source: Expected either ReadableStream or async iterable.")},xx="abcdefghijklmnopqrstuvwxyz0123456789";vx=s=>String(s).replace(/\r|\n/g,(e,t,i)=>e==="\r"&&i[t+1]!==`
`||e===`
`&&i[t-1]!=="\r"?`\r
`:e),GF=s=>Object.prototype.toString.call(s).slice(8,-1).toLowerCase();KF=s=>new Proxy(s,{get:(e,t)=>wx(e,t),has:(e,t)=>wx(e,t)!==void 0}),Or=s=>!!(s&&es(s.constructor)&&s[Symbol.toStringTag]==="FormData"&&es(s.append)&&es(s.getAll)&&es(s.entries)&&es(s[Symbol.iterator])),Dx=s=>String(s).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22"),vi=s=>!!(s&&typeof s=="object"&&es(s.constructor)&&s[Symbol.toStringTag]==="File"&&es(s.stream)&&s.name!=null),JF={enableAdditionalHeaders:!1},In={writable:!1,configurable:!1},Cx=class{constructor(s,e,t){if(Mt(this,Bn),Mt(this,zc),Mt(this,ws,`\r
`),Mt(this,Ir,void 0),Mt(this,_n,void 0),Mt(this,_r,"-".repeat(2)),Mt(this,$s,new TextEncoder),Mt(this,Nr,void 0),Mt(this,Br,void 0),Mt(this,Nn,void 0),!Or(s))throw new TypeError("Expected first argument to be a FormData instance.");let i;if(bx(e)?t=e:i=e,i||(i=WF()),typeof i!="string")throw new TypeError("Expected boundary argument to be a string.");if(t&&!bx(t))throw new TypeError("Expected options argument to be an object.");Fr(this,Br,Array.from(s.entries())),Fr(this,Nn,{...JF,...t}),Fr(this,Ir,Ce(this,$s).encode(Ce(this,ws))),Fr(this,_n,Ce(this,Ir).byteLength),this.boundary=`form-data-boundary-${i}`,this.contentType=`multipart/form-data; boundary=${this.boundary}`,Fr(this,Nr,Ce(this,$s).encode(`${Ce(this,_r)}${this.boundary}${Ce(this,_r)}${Ce(this,ws).repeat(2)}`));let r={"Content-Type":this.contentType},a=Lc(this,zc,Ex).call(this);a&&(this.contentLength=a,r["Content-Length"]=a),this.headers=KF(Object.freeze(r)),Object.defineProperties(this,{boundary:In,contentType:In,contentLength:In,headers:In})}*values(){for(let[s,e]of Ce(this,Br)){let t=vi(e)?e:Ce(this,$s).encode(vx(e));yield Lc(this,Bn,Rc).call(this,s,t),yield t,yield Ce(this,Ir)}yield Ce(this,Nr)}async*encode(){for(let s of this.values())vi(s)?yield*VF(s.stream()):yield*kx(s)}[Symbol.iterator](){return this.values()}[Symbol.asyncIterator](){return this.encode()}};ws=new WeakMap;Ir=new WeakMap;_n=new WeakMap;_r=new WeakMap;$s=new WeakMap;Nr=new WeakMap;Br=new WeakMap;Nn=new WeakMap;Bn=new WeakSet;Rc=function(s,e){let t="";if(t+=`${Ce(this,_r)}${this.boundary}${Ce(this,ws)}`,t+=`Content-Disposition: form-data; name="${Dx(s)}"`,vi(e)&&(t+=`; filename="${Dx(e.name)}"${Ce(this,ws)}`,t+=`Content-Type: ${e.type||"application/octet-stream"}`),Ce(this,Nn).enableAdditionalHeaders===!0){let i=vi(e)?e.size:e.byteLength;i!=null&&!isNaN(i)&&(t+=`${Ce(this,ws)}Content-Length: ${i}`)}return Ce(this,$s).encode(`${t}${Ce(this,ws).repeat(2)}`)};zc=new WeakSet;Ex=function(){let s=0;for(let[e,t]of Ce(this,Br)){let i=vi(t)?t:Ce(this,$s).encode(vx(t)),r=vi(i)?i.size:i.byteLength;if(r==null||isNaN(r))return;s+=Lc(this,Bn,Rc).call(this,e,i).byteLength,s+=r,s+=Ce(this,_n)}return String(s+Ce(this,Nr).byteLength)}});function Lr(s){return v.nodeStream(s)&&v.function(s.getBoundary)}var Uc=k(()=>{h();Qt()});import{Buffer as XF}from"node:buffer";import{promisify as YF}from"node:util";async function Hc(s,e){if(e&&"content-length"in e)return Number(e["content-length"]);if(!s)return 0;if(v.string(s))return XF.byteLength(s);if(v.buffer(s))return s.length;if(Lr(s))return YF(s.getLength.bind(s))()}var Tx=k(()=>{h();Qt();Uc()});function zr(s,e,t){let i={};for(let r of t){let a=(...n)=>{e.emit(r,...n)};i[r]=a,s.on(r,a)}return()=>{for(let[r,a]of Object.entries(i))s.off(r,a)}}var $c=k(()=>{h()});function Vc(){let s=[];return{once(e,t,i){e.once(t,i),s.push({origin:e,event:t,fn:i})},unhandleAll(){for(let e of s){let{origin:t,event:i,fn:r}=e;t.removeListener(i,r)}s.length=0}}}var Sx=k(()=>{h()});import QF from"node:net";function Wc(s,e,t){if(Ax in s)return ZF;s[Ax]=!0;let i=[],{once:r,unhandleAll:a}=Vc(),n=new Map,o=(y,w,T)=>{let S=setTimeout(w,y,y,T);S.unref?.();let E=()=>{n.set(T,!0),clearTimeout(S)};return i.push(E),E},{host:u,hostname:c}=t,l=(y,w)=>{setTimeout(()=>{n.has(w)||s.destroy(new Mr(y,w))},0)},p=()=>{for(let y of i)y();a()};if(s.once("error",y=>{if(p(),s.listenerCount("error")===0)throw y}),e.request!==void 0){let y=o(e.request,l,"request");r(s,"response",w=>{r(w,"end",y)})}if(e.socket!==void 0){let{socket:y}=e,w=()=>{l(y,"socket")};s.setTimeout(y,w),i.push(()=>{s.removeListener("timeout",w)})}let d=e.lookup!==void 0,m=e.connect!==void 0,f=e.secureConnect!==void 0,g=e.send!==void 0;return(d||m||f||g)&&r(s,"socket",y=>{let{socketPath:w}=s;if(y.connecting){let T=!!(w??QF.isIP(c??u??"")!==0);if(d&&!T&&y.address().address===void 0){let S=o(e.lookup,l,"lookup");r(y,"lookup",S)}if(m){let S=()=>o(e.connect,l,"connect");T?r(y,"connect",S()):r(y,"lookup",E=>{E===null&&r(y,"connect",S())})}f&&t.protocol==="https:"&&r(y,"connect",()=>{let S=o(e.secureConnect,l,"secureConnect");r(y,"secureConnect",S)})}if(g){let T=()=>o(e.send,l,"send");y.connecting?r(y,"connect",()=>{r(s,"upload-complete",T())}):r(s,"upload-complete",T())}}),e.response!==void 0&&r(s,"upload-complete",()=>{let y=o(e.response,l,"response");r(s,"response",y)}),e.read!==void 0&&r(s,"response",y=>{let w=o(e.read,l,"read");r(y,"end",w)}),p}var Ax,ZF,Mr,jx=k(()=>{h();Sx();Ax=Symbol("reentry"),ZF=()=>{},Mr=class extends Error{event;code;constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`),this.event=t,this.name="TimeoutError",this.code="ETIMEDOUT"}}});function Gc(s){s=s;let e={protocol:s.protocol,hostname:v.string(s.hostname)&&s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname,host:s.host,hash:s.hash,search:s.search,pathname:s.pathname,href:s.href,path:`${s.pathname||""}${s.search||""}`};return v.string(s.port)&&s.port.length>0&&(e.port=Number(s.port)),(s.username||s.password)&&(e.auth=`${s.username||""}:${s.password||""}`),e}var Px=k(()=>{h();Qt()});var Rr,Fx=k(()=>{h();Rr=class{weakMap;map;constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,t){typeof e=="object"?this.weakMap.set(e,t):this.map.set(e,t)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}}});var e3,Ix,_x=k(()=>{h();e3=({attemptCount:s,retryOptions:e,error:t,retryAfter:i,computedValue:r})=>{if(t.name==="RetryError")return 1;if(s>e.limit)return 0;let a=e.methods.includes(t.options.method),n=e.errorCodes.includes(t.code),o=t.response&&e.statusCodes.includes(t.response.statusCode);if(!a||!n&&!o)return 0;if(t.response){if(i)return i>r?0:i;if(t.response.statusCode===413)return 0}let u=Math.random()*e.noise;return Math.min(2**(s-1)*1e3,e.backoffLimit)+u},Ix=e3});import{V4MAPPED as t3,ADDRCONFIG as s3,ALL as Mx,promises as i3,lookup as r3}from"node:dns";import{promisify as Kc}from"node:util";import a3 from"node:os";var Nx,Ei,Jc,Bx,n3,Ox,o3,Lx,u3,On,zx,c3,l3,p3,qr,Rx=k(()=>{h();({Resolver:Nx}=i3),Ei=Symbol("cacheableLookupCreateConnection"),Jc=Symbol("cacheableLookupInstance"),Bx=Symbol("expires"),n3=typeof Mx=="number",Ox=s=>{if(!(s&&typeof s.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},o3=s=>{for(let e of s)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},Lx=()=>{let s=!1,e=!1;for(let t of Object.values(a3.networkInterfaces()))for(let i of t)if(!i.internal&&(i.family==="IPv6"?e=!0:s=!0,s&&e))return{has4:s,has6:e};return{has4:s,has6:e}},u3=s=>Symbol.iterator in s,On=s=>s.catch(e=>{if(e.code==="ENODATA"||e.code==="ENOTFOUND"||e.code==="ENOENT")return[];throw e}),zx={ttl:!0},c3={all:!0},l3={all:!0,family:4},p3={all:!0,family:6},qr=class{constructor({cache:e=new Map,maxTtl:t=1/0,fallbackDuration:i=3600,errorTtl:r=.15,resolver:a=new Nx,lookup:n=r3}={}){if(this.maxTtl=t,this.errorTtl=r,this._cache=e,this._resolver=a,this._dnsLookup=n&&Kc(n),this.stats={cache:0,query:0},this._resolver instanceof Nx?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Kc(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Kc(this._resolver.resolve6.bind(this._resolver))),this._iface=Lx(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,this.fallbackDuration=i,i>0){let o=setInterval(()=>{this._hostnamesToFallback.clear()},i*1e3);o.unref&&o.unref(),this._fallbackInterval=o}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,i){if(typeof t=="function"?(i=t,t={}):typeof t=="number"&&(t={family:t}),!i)throw new Error("Callback must be a function.");this.lookupAsync(e,t).then(r=>{t.all?i(null,r):i(null,r.address,r.family,r.expires,r.ttl,r.source)},i)}async lookupAsync(e,t={}){typeof t=="number"&&(t={family:t});let i=await this.query(e);if(t.family===6){let r=i.filter(a=>a.family===6);t.hints&t3&&(n3&&t.hints&Mx||r.length===0)?o3(i):i=r}else t.family===4&&(i=i.filter(r=>r.family===4));if(t.hints&s3){let{_iface:r}=this;i=i.filter(a=>a.family===6?r.has6:r.has4)}if(i.length===0){let r=new Error(`cacheableLookup ENOTFOUND ${e}`);throw r.code="ENOTFOUND",r.hostname=e,r}return t.all?i:i[0]}async query(e){let t="cache",i=await this._cache.get(e);if(i&&this.stats.cache++,!i){let r=this._pending[e];if(r)this.stats.cache++,i=await r;else{t="query";let a=this.queryAndCache(e);this._pending[e]=a,this.stats.query++;try{i=await a}finally{delete this._pending[e]}}}return i=i.map(r=>({...r,source:t})),i}async _resolve(e){let[t,i]=await Promise.all([On(this._resolve4(e,zx)),On(this._resolve6(e,zx))]),r=0,a=0,n=0,o=Date.now();for(let u of t)u.family=4,u.expires=o+u.ttl*1e3,r=Math.max(r,u.ttl);for(let u of i)u.family=6,u.expires=o+u.ttl*1e3,a=Math.max(a,u.ttl);return t.length>0?i.length>0?n=Math.min(r,a):n=r:n=a,{entries:[...t,...i],cacheTtl:n}}async _lookup(e){try{let[t,i]=await Promise.all([On(this._dnsLookup(e,l3)),On(this._dnsLookup(e,p3))]);return{entries:[...t,...i],cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,t,i){if(this.maxTtl>0&&i>0){i=Math.min(i,this.maxTtl)*1e3,t[Bx]=Date.now()+i;try{await this._cache.set(e,t,i)}catch(r){this.lookupAsync=async()=>{let a=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw a.cause=r,a}}u3(this._cache)&&this._tick(i)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,c3);let t=await this._resolve(e);t.entries.length===0&&this._dnsLookup&&(t=await this._lookup(e),t.entries.length!==0&&this.fallbackDuration>0&&this._hostnamesToFallback.add(e));let i=t.entries.length===0?this.errorTtl:t.cacheTtl;return await this._set(e,t.entries,i),t.entries}_tick(e){let t=this._nextRemovalTime;(!t||e<t)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let i=1/0,r=Date.now();for(let[a,n]of this._cache){let o=n[Bx];r>=o?this._cache.delete(a):o<i&&(i=o)}i!==1/0&&this._tick(i-r)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(Ox(e),Ei in e)throw new Error("CacheableLookup has been already installed");e[Ei]=e.createConnection,e[Jc]=this,e.createConnection=(t,i)=>("lookup"in t||(t.lookup=this.lookup),e[Ei](t,i))}uninstall(e){if(Ox(e),e[Ei]){if(e[Jc]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Ei],delete e[Ei],delete e[Jc]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=Lx(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}}});var Yc=O((i$,qx)=>{"use strict";h();var Xc=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){if(this.cache.set(e,t),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[i,r]of this.oldCache.entries())this.onEviction(i,r);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(let t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}};qx.exports=Xc});var Qc=O((a$,Ux)=>{"use strict";h();Ux.exports=s=>{if(s.listenerCount("error")!==0)return s;s.__destroy=s._destroy,s._destroy=(...t)=>{let i=t.pop();s.__destroy(...t,async r=>{await Promise.resolve(),i(r)})};let e=t=>{Promise.resolve().then(()=>{s.emit("error",t)})};return s.once("error",e),Promise.resolve().then(()=>{s.off("error",e)}),s}});var Vs=O((o$,Kx)=>{"use strict";h();var{URL:Hx}=M("url"),h3=M("events"),d3=M("tls"),f3=M("http2"),m3=Yc(),g3=Qc(),Ye=Symbol("currentStreamCount"),$x=Symbol("request"),Qe=Symbol("cachedOriginSet"),Ds=Symbol("gracefullyClosing"),Ln=Symbol("length"),Vx=["createConnection","maxDeflateDynamicTableSize","maxSettings","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","peerMaxConcurrentStreams","settings","family","localAddress","rejectUnauthorized","pskCallback","minDHSize","path","socket","ca","cert","sigalgs","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","honorCipherOrder","key","privateKeyEngine","privateKeyIdentifier","maxVersion","minVersion","pfx","secureOptions","secureProtocol","sessionIdContext","ticketKeys"],y3=(s,e,t)=>{let i=0,r=s.length;for(;i<r;){let a=i+r>>>1;t(s[a],e)?i=a+1:r=a}return i},x3=(s,e)=>s.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,Zc=(s,e)=>{for(let t=0;t<s.length;t++){let i=s[t];i[Qe].length>0&&i[Qe].length<e[Qe].length&&i[Qe].every(r=>e[Qe].includes(r))&&i[Ye]+e[Ye]<=e.remoteSettings.maxConcurrentStreams&&Gx(i)}},Wx=(s,e)=>{for(let t=0;t<s.length;t++){let i=s[t];if(e[Qe].length>0&&e[Qe].length<i[Qe].length&&e[Qe].every(r=>i[Qe].includes(r))&&e[Ye]+i[Ye]<=i.remoteSettings.maxConcurrentStreams)return Gx(e),!0}return!1},Gx=s=>{s[Ds]=!0,s[Ye]===0&&s.close()},Ci=class s extends h3{constructor({timeout:e=0,maxSessions:t=Number.POSITIVE_INFINITY,maxEmptySessions:i=10,maxCachedTlsSessions:r=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=t,this.maxEmptySessions=i,this._emptySessionCount=0,this._sessionCount=0,this.settings={enablePush:!1,initialWindowSize:1024*1024*32},this.tlsSessionCache=new m3({maxSize:r})}get protocol(){return"https:"}normalizeOptions(e){let t="";for(let i=0;i<Vx.length;i++){let r=Vx[i];t+=":",e&&e[r]!==void 0&&(t+=e[r])}return t}_processQueue(){if(this._sessionCount>=this.maxSessions){this.closeEmptySessions(this.maxSessions-this._sessionCount+1);return}for(let e in this.queue)for(let t in this.queue[e]){let i=this.queue[e][t];i.completed||(i.completed=!0,i())}}_isBetterSession(e,t){return e>t}_accept(e,t,i,r){let a=0;for(;a<t.length&&e[Ye]<e.remoteSettings.maxConcurrentStreams;)t[a].resolve(e),a++;t.splice(0,a),t.length>0&&(this.getSession(i,r,t),t.length=0)}getSession(e,t,i){return new Promise((r,a)=>{Array.isArray(i)&&i.length>0?(i=[...i],r()):i=[{resolve:r,reject:a}];try{if(typeof e=="string")e=new Hx(e);else if(!(e instanceof Hx))throw new TypeError("The `origin` argument needs to be a string or an URL object");if(t){let{servername:l}=t,{hostname:p}=e;if(l&&p!==l)throw new Error(`Origin ${p} differs from servername ${l}`)}}catch(l){for(let p=0;p<i.length;p++)i[p].reject(l);return}let n=this.normalizeOptions(t),o=e.origin;if(n in this.sessions){let l=this.sessions[n],p=-1,d=-1,m;for(let f=0;f<l.length;f++){let g=l[f],y=g.remoteSettings.maxConcurrentStreams;if(y<p)break;if(!g[Qe].includes(o))continue;let w=g[Ye];w>=y||g[Ds]||g.destroyed||(m||(p=y),this._isBetterSession(w,d)&&(m=g,d=w))}if(m){this._accept(m,i,o,t);return}}if(n in this.queue){if(o in this.queue[n]){this.queue[n][o].listeners.push(...i);return}}else this.queue[n]={[Ln]:0};let u=()=>{n in this.queue&&this.queue[n][o]===c&&(delete this.queue[n][o],--this.queue[n][Ln]===0&&delete this.queue[n])},c=async()=>{this._sessionCount++;let l=`${o}:${n}`,p=!1,d;try{let m={...t};m.settings===void 0&&(m.settings=this.settings),m.session===void 0&&(m.session=this.tlsSessionCache.get(l)),d=await(m.createConnection||this.createConnection).call(this,e,m),m.createConnection=()=>d;let g=f3.connect(e,m);g[Ye]=0,g[Ds]=!1;let y=()=>{let{socket:S}=g,E;return S.servername===!1?(S.servername=S.remoteAddress,E=g.originSet,S.servername=!1):E=g.originSet,E},w=()=>g[Ye]<g.remoteSettings.maxConcurrentStreams;g.socket.once("session",S=>{this.tlsSessionCache.set(l,S)}),g.once("error",S=>{for(let E=0;E<i.length;E++)i[E].reject(S);this.tlsSessionCache.delete(l)}),g.setTimeout(this.timeout,()=>{g.destroy()}),g.once("close",()=>{if(this._sessionCount--,p){this._emptySessionCount--;let S=this.sessions[n];S.length===1?delete this.sessions[n]:S.splice(S.indexOf(g),1)}else{u();let S=new Error("Session closed without receiving a SETTINGS frame");S.code="HTTP2WRAPPER_NOSETTINGS";for(let E=0;E<i.length;E++)i[E].reject(S)}this._processQueue()});let T=()=>{let S=this.queue[n];if(!S)return;let E=g[Qe];for(let A=0;A<E.length;A++){let F=E[A];if(F in S){let{listeners:H,completed:ee}=S[F],te=0;for(;te<H.length&&w();)H[te].resolve(g),te++;if(S[F].listeners.splice(0,te),S[F].listeners.length===0&&!ee&&(delete S[F],--S[Ln]===0)){delete this.queue[n];break}if(!w())break}}};g.on("origin",()=>{g[Qe]=y()||[],g[Ds]=!1,Wx(this.sessions[n],g),!(g[Ds]||!w())&&(T(),w()&&Zc(this.sessions[n],g))}),g.once("remoteSettings",()=>{if(c.destroyed){let S=new Error("Agent has been destroyed");for(let E=0;E<i.length;E++)i[E].reject(S);g.destroy();return}if(g.setLocalWindowSize&&g.setLocalWindowSize(1024*1024*4),g[Qe]=y()||[],g.socket.encrypted){let S=g[Qe][0];if(S!==o){let E=new Error(`Requested origin ${o} does not match server ${S}`);for(let A=0;A<i.length;A++)i[A].reject(E);g.destroy();return}}u();{let S=this.sessions;if(n in S){let E=S[n];E.splice(y3(E,g,x3),0,g)}else S[n]=[g]}p=!0,this._emptySessionCount++,this.emit("session",g),this._accept(g,i,o,t),g[Ye]===0&&this._emptySessionCount>this.maxEmptySessions&&this.closeEmptySessions(this._emptySessionCount-this.maxEmptySessions),g.on("remoteSettings",()=>{w()&&(T(),w()&&Zc(this.sessions[n],g))})}),g[$x]=g.request,g.request=(S,E)=>{if(g[Ds])throw new Error("The session is gracefully closing. No new streams are allowed.");let A=g[$x](S,E);return g.ref(),g[Ye]++===0&&this._emptySessionCount--,A.once("close",()=>{if(--g[Ye]===0&&(this._emptySessionCount++,g.unref(),this._emptySessionCount>this.maxEmptySessions||g[Ds])){g.close();return}g.destroyed||g.closed||w()&&!Wx(this.sessions[n],g)&&(Zc(this.sessions[n],g),T(),g[Ye]===0&&this._processQueue())}),A}}catch(m){u(),this._sessionCount--;for(let f=0;f<i.length;f++)i[f].reject(m)}};c.listeners=i,c.completed=!1,c.destroyed=!1,this.queue[n][o]=c,this.queue[n][Ln]++,this._processQueue()})}request(e,t,i,r){return new Promise((a,n)=>{this.getSession(e,t,[{reject:n,resolve:o=>{try{let u=o.request(i,r);g3(u),a(u)}catch(u){n(u)}}}])})}async createConnection(e,t){return s.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];let i=e.port||443,r=e.hostname;typeof t.servername>"u"&&(t.servername=r);let a=d3.connect(i,r,t);return t.socket&&(a._peername={family:void 0,address:void 0,port:i}),a}closeEmptySessions(e=Number.POSITIVE_INFINITY){let t=0,{sessions:i}=this;for(let r in i){let a=i[r];for(let n=0;n<a.length;n++){let o=a[n];if(o[Ye]===0&&(t++,o.close(),t>=e))return t}}return t}destroy(e){let{sessions:t,queue:i}=this;for(let r in t){let a=t[r];for(let n=0;n<a.length;n++)a[n].destroy(e)}for(let r in i){let a=i[r];for(let n in a)a[n].destroyed=!0}this.queue={},this.tlsSessionCache.clear()}get emptySessionCount(){return this._emptySessionCount}get pendingSessionCount(){return this._sessionCount-this._emptySessionCount}get sessionCount(){return this._sessionCount}};Ci.kCurrentStreamCount=Ye;Ci.kGracefullyClosing=Ds;Kx.exports={Agent:Ci,globalAgent:new Ci}});var tl=O((c$,Jx)=>{"use strict";h();var{Readable:b3}=M("stream"),el=class extends b3{constructor(e,t){super({emitClose:!1,autoDestroy:!0,highWaterMark:t}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this._dumped=!1}get connection(){return this.socket}set connection(e){this.socket=e}_destroy(e,t){this.readableEnded||(this.aborted=!0),t(),this.req._request.destroy(e)}setTimeout(e,t){return this.req.setTimeout(e,t),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};Jx.exports=el});var Yx=O((p$,Xx)=>{"use strict";h();Xx.exports=(s,e,t)=>{for(let i of t)s.on(i,(...r)=>e.emit(i,...r))}});var Ur=O((f$,Qx)=>{"use strict";h();var Ws=(s,e,t)=>{Qx.exports[e]=class extends s{constructor(...r){super(typeof t=="string"?t:t(r)),this.name=`${super.name} [${e}]`,this.code=e}}};Ws(TypeError,"ERR_INVALID_ARG_TYPE",s=>{let e=s[0].includes(".")?"property":"argument",t=s[1],i=Array.isArray(t);return i&&(t=`${t.slice(0,-1).join(", ")} or ${t.slice(-1)}`),`The "${s[0]}" ${e} must be ${i?"one of":"of"} type ${t}. Received ${typeof s[2]}`});Ws(TypeError,"ERR_INVALID_PROTOCOL",s=>`Protocol "${s[0]}" not supported. Expected "${s[1]}"`);Ws(Error,"ERR_HTTP_HEADERS_SENT",s=>`Cannot ${s[0]} headers after they are sent to the client`);Ws(TypeError,"ERR_INVALID_HTTP_TOKEN",s=>`${s[0]} must be a valid HTTP token [${s[1]}]`);Ws(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",s=>`Invalid value "${s[0]} for header "${s[1]}"`);Ws(TypeError,"ERR_INVALID_CHAR",s=>`Invalid character in ${s[0]} [${s[1]}]`);Ws(Error,"ERR_HTTP2_NO_SOCKET_MANIPULATION","HTTP/2 sockets should not be directly manipulated (e.g. read and written)")});var eb=O((g$,Zx)=>{"use strict";h();Zx.exports=s=>{switch(s){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var sl=O((x$,tb)=>{"use strict";h();var{ERR_INVALID_HTTP_TOKEN:w3}=Ur(),D3=eb(),k3=/^[\^`\-\w!#$%&*+.|~]+$/;tb.exports=s=>{if(typeof s!="string"||!k3.test(s)&&!D3(s))throw new w3("Header name",s)}});var il=O((w$,sb)=>{"use strict";h();var{ERR_HTTP_INVALID_HEADER_VALUE:v3,ERR_INVALID_CHAR:E3}=Ur(),C3=/[^\t\u0020-\u007E\u0080-\u00FF]/;sb.exports=(s,e)=>{if(typeof e>"u")throw new v3(e,s);if(C3.test(e))throw new E3("header content",s)}});var ab=O((k$,rb)=>{"use strict";h();var{ERR_HTTP2_NO_SOCKET_MANIPULATION:ib}=Ur(),T3={has(s,e){let t=s.session===void 0?s:s.session.socket;return e in s||e in t},get(s,e){switch(e){case"on":case"once":case"end":case"emit":case"destroy":return s[e].bind(s);case"writable":case"destroyed":return s[e];case"readable":return s.destroyed?!1:s.readable;case"setTimeout":{let{session:t}=s;return t!==void 0?t.setTimeout.bind(t):s.setTimeout.bind(s)}case"write":case"read":case"pause":case"resume":throw new ib;default:{let t=s.session===void 0?s:s.session.socket,i=t[e];return typeof i=="function"?i.bind(t):i}}},getPrototypeOf(s){return s.session!==void 0?Reflect.getPrototypeOf(s.session.socket):Reflect.getPrototypeOf(s)},set(s,e,t){switch(e){case"writable":case"readable":case"destroyed":case"on":case"once":case"end":case"emit":case"destroy":return s[e]=t,!0;case"setTimeout":{let{session:i}=s;return i===void 0?s.setTimeout=t:i.setTimeout=t,!0}case"write":case"read":case"pause":case"resume":throw new ib;default:{let i=s.session===void 0?s:s.session.socket;return i[e]=t,!0}}}};rb.exports=T3});var ol=O((E$,pb)=>{"use strict";h();var{URL:rl,urlToHttpOptions:nb}=M("url"),S3=M("http2"),{Writable:A3}=M("stream"),{Agent:j3,globalAgent:P3}=Vs(),F3=tl(),I3=Yx(),{ERR_INVALID_ARG_TYPE:zn,ERR_INVALID_PROTOCOL:_3,ERR_HTTP_HEADERS_SENT:ob}=Ur(),N3=sl(),B3=il(),O3=ab(),{HTTP2_HEADER_STATUS:ub,HTTP2_HEADER_METHOD:cb,HTTP2_HEADER_PATH:lb,HTTP2_HEADER_AUTHORITY:Hr,HTTP2_METHOD_CONNECT:L3}=S3.constants,Me=Symbol("headers"),Ti=Symbol("origin"),$r=Symbol("session"),al=Symbol("options"),Mn=Symbol("flushedHeaders"),Si=Symbol("jobs"),Vr=Symbol("pendingAgentPromise"),nl=class extends A3{constructor(e,t,i){if(super({autoDestroy:!1,emitClose:!1}),typeof e=="string"?e=nb(new rl(e)):e instanceof rl?e=nb(e):e={...e},typeof t=="function"||t===void 0?(i=t,t=e):t=Object.assign(e,t),t.h2session){if(this[$r]=t.h2session,this[$r].destroyed)throw new Error("The session has been closed already");this.protocol=this[$r].socket.encrypted?"https:":"http:"}else if(t.agent===!1)this.agent=new j3({maxEmptySessions:0});else if(typeof t.agent>"u"||t.agent===null)this.agent=P3;else if(typeof t.agent.request=="function")this.agent=t.agent;else throw new zn("options.agent",["http2wrapper.Agent-like Object","undefined","false"],t.agent);if(this.agent&&(this.protocol=this.agent.protocol),t.protocol&&t.protocol!==this.protocol)throw new _3(t.protocol,this.protocol);t.port||(t.port=t.defaultPort||this.agent&&this.agent.defaultPort||443),t.host=t.hostname||t.host||"localhost",delete t.hostname;let{timeout:r}=t;t.timeout=void 0,this[Me]=Object.create(null),this[Si]=[],this[Vr]=void 0,this.socket=null,this.connection=null,this.method=t.method||"GET",this.method==="CONNECT"&&(t.path==="/"||t.path===void 0)||(this.path=t.path),this.res=null,this.aborted=!1,this.reusedSocket=!1;let{headers:a}=t;if(a)for(let o in a)this.setHeader(o,a[o]);t.auth&&!("authorization"in this[Me])&&(this[Me].authorization="Basic "+Buffer.from(t.auth).toString("base64")),t.session=t.tlsSession,t.path=t.socketPath,this[al]=t,this[Ti]=new rl(`${this.protocol}//${t.servername||t.host}:${t.port}`);let n=t._reuseSocket;n&&(t.createConnection=(...o)=>n.destroyed?this.agent.createConnection(...o):n,this.agent.getSession(this[Ti],this[al]).catch(()=>{})),r&&this.setTimeout(r),i&&this.once("response",i),this[Mn]=!1}get method(){return this[Me][cb]}set method(e){e&&(this[Me][cb]=e.toUpperCase())}get path(){let e=this.method==="CONNECT"?Hr:lb;return this[Me][e]}set path(e){if(e){let t=this.method==="CONNECT"?Hr:lb;this[Me][t]=e}}get host(){return this[Ti].hostname}set host(e){}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,t,i){if(this._mustNotHaveABody){i(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let r=()=>this._request.write(e,t,i);this._request?r():this[Si].push(r)}_final(e){this.flushHeaders();let t=()=>{if(this._mustNotHaveABody||this.method==="CONNECT"){e();return}this._request.end(e)};this._request?t():this[Si].push(t)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}async _destroy(e,t){this.res&&this.res._dump(),this._request?this._request.destroy():process.nextTick(()=>{this.emit("close")});try{await this[Vr]}catch(i){this.aborted&&(e=i)}t(e)}async flushHeaders(){if(this[Mn]||this.destroyed)return;this[Mn]=!0;let e=this.method===L3,t=i=>{if(this._request=i,this.destroyed){i.destroy();return}e||I3(i,this,["timeout","continue"]),i.once("error",a=>{this.destroy(a)}),i.once("aborted",()=>{let{res:a}=this;a?(a.aborted=!0,a.emit("aborted"),a.destroy()):this.destroy(new Error("The server aborted the HTTP/2 stream"))});let r=(a,n,o)=>{let u=new F3(this.socket,i.readableHighWaterMark);this.res=u,u.url=`${this[Ti].origin}${this.path}`,u.req=this,u.statusCode=a[ub],u.headers=a,u.rawHeaders=o,u.once("end",()=>{u.complete=!0,u.socket=null,u.connection=null}),e?(u.upgrade=!0,this.emit("connect",u,i,Buffer.alloc(0))?this.emit("close"):i.destroy()):(i.on("data",c=>{!u._dumped&&!u.push(c)&&i.pause()}),i.once("end",()=>{this.aborted||u.push(null)}),this.emit("response",u)||u._dump())};i.once("response",r),i.once("headers",a=>this.emit("information",{statusCode:a[ub]})),i.once("trailers",(a,n,o)=>{let{res:u}=this;if(u===null){r(a,n,o);return}u.trailers=a,u.rawTrailers=o}),i.once("close",()=>{let{aborted:a,res:n}=this;if(n){a&&(n.aborted=!0,n.emit("aborted"),n.destroy());let o=()=>{n.emit("close"),this.destroy(),this.emit("close")};n.readable?n.once("end",o):o();return}if(!this.destroyed){this.destroy(new Error("The HTTP/2 stream has been early terminated")),this.emit("close");return}this.destroy(),this.emit("close")}),this.socket=new Proxy(i,O3);for(let a of this[Si])a();this[Si].length=0,this.emit("socket",this.socket)};if(!(Hr in this[Me])&&!e&&(this[Me][Hr]=this[Ti].host),this[$r])try{t(this[$r].request(this[Me]))}catch(i){this.destroy(i)}else{this.reusedSocket=!0;try{let i=this.agent.request(this[Ti],this[al],this[Me]);this[Vr]=i,t(await i),this[Vr]=!1}catch(i){this[Vr]=!1,this.destroy(i)}}}get connection(){return this.socket}set connection(e){this.socket=e}getHeaderNames(){return Object.keys(this[Me])}hasHeader(e){if(typeof e!="string")throw new zn("name","string",e);return!!this[Me][e.toLowerCase()]}getHeader(e){if(typeof e!="string")throw new zn("name","string",e);return this[Me][e.toLowerCase()]}get headersSent(){return this[Mn]}removeHeader(e){if(typeof e!="string")throw new zn("name","string",e);if(this.headersSent)throw new ob("remove");delete this[Me][e.toLowerCase()]}setHeader(e,t){if(this.headersSent)throw new ob("set");N3(e),B3(e,t);let i=e.toLowerCase();if(i==="connection"){if(t.toLowerCase()==="keep-alive")return;throw new Error(`Invalid 'connection' header: ${t}`)}i==="host"&&this.method==="CONNECT"?this[Me][Hr]=t:this[Me][i]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){let i=()=>this._request.setTimeout(e,t);return this._request?i():this[Si].push(i),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};pb.exports=nl});var db=O((T$,hb)=>{"use strict";h();var z3=M("tls");hb.exports=(s={},e=z3.connect)=>new Promise((t,i)=>{let r=!1,a,n=async()=>{await u,a.off("timeout",o),a.off("error",i),s.resolveSocket?(t({alpnProtocol:a.alpnProtocol,socket:a,timeout:r}),r&&(await Promise.resolve(),a.emit("timeout"))):(a.destroy(),t({alpnProtocol:a.alpnProtocol,timeout:r}))},o=async()=>{r=!0,n()},u=(async()=>{try{a=await e(s,n),a.on("error",i),a.once("timeout",o)}catch(c){i(c)}})()})});var mb=O((A$,fb)=>{"use strict";h();var{isIP:M3}=M("net"),R3=M("assert"),q3=s=>{if(s[0]==="["){let t=s.indexOf("]");return R3(t!==-1),s.slice(1,t)}let e=s.indexOf(":");return e===-1?s:s.slice(0,e)};fb.exports=s=>{let e=q3(s);return M3(e)?"":e}});var vb=O((P$,Wr)=>{"use strict";h();var{URL:gb,urlToHttpOptions:yb}=M("url"),xb=M("http"),ul=M("https"),U3=db(),H3=Yc(),{Agent:$3,globalAgent:V3}=Vs(),W3=ol(),G3=mb(),bb=Qc(),wb=new H3({maxSize:100}),K3=new Map,J3=(s,e,t)=>{e._httpMessage={shouldKeepAlive:!0};let i=()=>{s.emit("free",e,t)};e.on("free",i);let r=()=>{s.removeSocket(e,t)};e.on("close",r);let a=()=>{let{freeSockets:o}=s;for(let u of Object.values(o))if(u.includes(e)){e.destroy();return}};e.on("timeout",a);let n=()=>{s.removeSocket(e,t),e.off("close",r),e.off("free",i),e.off("timeout",a),e.off("agentRemove",n)};e.on("agentRemove",n),s.emit("free",e,t)},Db=(s,e=new Map,t=void 0)=>async i=>{let r=`${i.host}:${i.port}:${i.ALPNProtocols.sort()}`;if(!s.has(r)){if(e.has(r))return{alpnProtocol:(await e.get(r)).alpnProtocol};let{path:a}=i;i.path=i.socketPath;let n=U3(i,t);e.set(r,n);try{let o=await n;return s.set(r,o.alpnProtocol),e.delete(r),i.path=a,o}catch(o){throw e.delete(r),i.path=a,o}}return{alpnProtocol:s.get(r)}},kb=Db(wb,K3);Wr.exports=async(s,e,t)=>{if(typeof s=="string"?s=yb(new gb(s)):s instanceof gb?s=yb(s):s={...s},typeof e=="function"||e===void 0?(t=e,e=s):e=Object.assign(s,e),e.ALPNProtocols=e.ALPNProtocols||["h2","http/1.1"],!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let i=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||G3(e.headers&&e.headers.host||e.host),e.port=e.port||(i?443:80),e._defaultAgent=i?ul.globalAgent:xb.globalAgent;let r=e.resolveProtocol||kb,{agent:a}=e;if(a!==void 0&&a!==!1&&a.constructor.name!=="Object")throw new Error("The `options.agent` can be only an object `http`, `https` or `http2` properties");if(i){e.resolveSocket=!0;let{socket:n,alpnProtocol:o,timeout:u}=await r(e);if(u){n&&n.destroy();let l=new Error(`Timed out resolving ALPN: ${e.timeout} ms`);throw l.code="ETIMEDOUT",l.ms=e.timeout,l}n&&e.createConnection&&(n.destroy(),n=void 0),delete e.resolveSocket;let c=o==="h2";if(a&&(a=c?a.http2:a.https,e.agent=a),a===void 0&&(a=c?V3:ul.globalAgent),n)if(a===!1)n.destroy();else{let l=(c?$3:ul.Agent).prototype.createConnection;a.createConnection===l?c?e._reuseSocket=n:J3(a,n,e):n.destroy()}if(c)return bb(new W3(e,t))}else a&&(e.agent=a.http);return e.headers&&(e.headers={...e.headers},e.headers[":authority"]&&(e.headers.host||(e.headers.host=e.headers[":authority"]),delete e.headers[":authority"]),delete e.headers[":method"],delete e.headers[":scheme"],delete e.headers[":path"]),bb(xb.request(e,t))};Wr.exports.protocolCache=wb;Wr.exports.resolveProtocol=kb;Wr.exports.createResolveProtocol=Db});var cl=O((I$,Eb)=>{"use strict";h();var X3=M("stream"),Y3=M("tls"),Q3=new Y3.TLSSocket(new X3.PassThrough)._handle._parentWrap.constructor;Eb.exports=Q3});var pl=O((N$,Cb)=>{"use strict";h();var ll=class extends Error{constructor(e,t=""){super(`The proxy server rejected the request with status code ${e} (${t||"empty status message"})`),this.statusCode=e,this.statusMessage=t}};Cb.exports=ll});var Sb=O((O$,Tb)=>{"use strict";h();var Z3=(s,e,t)=>{if(!t.some(r=>typeof r==="string"?typeof e===r:e instanceof r)){let r=t.map(a=>typeof a=="string"?a:a.name);throw new TypeError(`Expected '${s}' to be a type of ${r.join(" or ")}, got ${typeof e}`)}};Tb.exports=Z3});var hl=O((z$,jb)=>{"use strict";h();var{URL:Ab}=M("url"),Rn=Sb();jb.exports=(s,e)=>{Rn("proxyOptions",e,["object"]),Rn("proxyOptions.headers",e.headers,["object","undefined"]),Rn("proxyOptions.raw",e.raw,["boolean","undefined"]),Rn("proxyOptions.url",e.url,[Ab,"string"]);let t=new Ab(e.url);s.proxyOptions={raw:!0,...e,headers:{...e.headers},url:t}}});var qn=O((R$,Pb)=>{"use strict";h();Pb.exports=s=>{let{username:e,password:t}=s.proxyOptions.url;if(e||t){let i=`${e}:${t}`,r=`Basic ${Buffer.from(i).toString("base64")}`;return{"proxy-authorization":r,authorization:r}}return{}}});var Bb=O((U$,Nb)=>{"use strict";h();var eI=M("tls"),tI=M("http"),Fb=M("https"),sI=cl(),{globalAgent:iI}=Vs(),rI=pl(),Ib=hl(),aI=qn(),_b=(s,e,t)=>{(async()=>{try{let{proxyOptions:i}=s,{url:r,headers:a,raw:n}=i,o=await iI.request(r,i,{...aI(s),...a,":method":"CONNECT",":authority":`${e.host}:${e.port}`});o.once("error",t),o.once("response",u=>{let c=u[":status"];if(c!==200){t(new rI(c,""));return}let l=s instanceof Fb.Agent;if(n&&l){e.socket=o;let d=eI.connect(e);d.once("close",()=>{o.destroy()}),t(null,d);return}let p=new sI(o);p.encrypted=!1,p._handle.getpeername=d=>{d.family=void 0,d.address=void 0,d.port=void 0},t(null,p)})}catch(i){t(i)}})()},dl=class extends tI.Agent{constructor(e){super(e),Ib(this,e.proxyOptions)}createConnection(e,t){_b(this,e,t)}},fl=class extends Fb.Agent{constructor(e){super(e),Ib(this,e.proxyOptions)}createConnection(e,t){_b(this,e,t)}};Nb.exports={HttpOverHttp2:dl,HttpsOverHttp2:fl}});var gl=O(($$,Ob)=>{"use strict";h();var{Agent:nI}=Vs(),oI=cl(),uI=pl(),cI=hl(),ml=class extends nI{constructor(e){super(e),cI(this,e.proxyOptions)}async createConnection(e,t){let i=`${e.hostname}:${e.port||443}`,[r,a,n]=await this._getProxyStream(i);if(a!==200)throw new uI(a,n);if(this.proxyOptions.raw)t.socket=r;else{let o=new oI(r);return o.encrypted=!1,o._handle.getpeername=u=>{u.family=void 0,u.address=void 0,u.port=void 0},o}return super.createConnection(e,t)}};Ob.exports=ml});var zb=O((W$,Lb)=>{"use strict";h();var{globalAgent:lI}=Vs(),pI=gl(),hI=qn(),dI=s=>new Promise((e,t)=>{s.once("error",t),s.once("response",i=>{s.off("error",t),e(i[":status"])})}),yl=class extends pI{async _getProxyStream(e){let{proxyOptions:t}=this,i={...hI(this),...t.headers,":method":"CONNECT",":authority":e},r=await lI.request(t.url,t,i),a=await dI(r);return[r,a,""]}};Lb.exports=yl});var Rb=O((K$,Mb)=>{"use strict";h();var fI=M("http"),mI=M("https"),gI=gl(),yI=qn(),xI=s=>new Promise((e,t)=>{let i=(r,a,n)=>{a.unshift(n),s.off("error",t),e([a,r.statusCode,r.statusMessage])};s.once("error",t),s.once("connect",i)}),Un=class extends gI{async _getProxyStream(e){let{proxyOptions:t}=this,{url:i,headers:r}=this.proxyOptions,n=(i.protocol==="https:"?mI:fI).request({...t,hostname:i.hostname,port:i.port,path:e,headers:{...yI(this),...r,host:e},method:"CONNECT"}).end();return xI(n)}};Mb.exports={Http2OverHttp:Un,Http2OverHttps:Un}});var Ub=O((X$,qb)=>{"use strict";h();var bI=M("http2"),{Agent:wI,globalAgent:DI}=Vs(),xl=ol(),kI=tl(),vI=vb(),{HttpOverHttp2:EI,HttpsOverHttp2:CI}=Bb(),TI=zb(),{Http2OverHttp:SI,Http2OverHttps:AI}=Rb(),jI=sl(),PI=il(),FI=(s,e,t)=>new xl(s,e,t),II=(s,e,t)=>{let i=new xl(s,e,t);return i.end(),i};qb.exports={...bI,ClientRequest:xl,IncomingMessage:kI,Agent:wI,globalAgent:DI,request:FI,get:II,auto:vI,proxies:{HttpOverHttp2:EI,HttpsOverHttp2:CI,Http2OverHttp2:TI,Http2OverHttp:SI,Http2OverHttps:AI},validateHeaderName:jI,validateHeaderValue:PI}});function bl(s){let e=[],t=s.split(",");for(let i of t){let[r,...a]=i.split(";"),n=r.trim();if(n[0]!=="<"||n.at(-1)!==">")throw new Error(`Invalid format of the Link header reference: ${n}`);let o=n.slice(1,-1),u={};if(a.length===0)throw new Error(`Unexpected end of Link header parameters: ${a.join(";")}`);for(let c of a){let l=c.trim(),p=l.indexOf("=");if(p===-1)throw new Error(`Failed to parse Link header: ${s}`);let d=l.slice(0,p).trim(),m=l.slice(p+1).trim();u[d]=m}e.push({reference:o,parameters:u})}return e}var Hb=k(()=>{h()});import _I from"node:process";import{promisify as $b,inspect as NI}from"node:util";import{checkServerIdentity as BI}from"node:tls";import OI from"node:https";import LI from"node:http";function MI(s){for(let e in s){let t=s[e];N.any([v.string,v.number,v.boolean,v.null,v.undefined],t)}}var Gb,Vb,zI,RI,Hn,qI,UI,HI,$I,VI,Wb,mt,Gr=k(()=>{h();Qt();jc();Rx();Gb=Dt(Ub(),1);qc();Hb();[Vb,zI]=_I.versions.node.split(".").map(Number);RI=new Map,qI=()=>Hn||(Hn=new qr,Hn),UI={request:void 0,agent:{http:void 0,https:void 0,http2:void 0},h2session:void 0,decompress:!0,timeout:{connect:void 0,lookup:void 0,read:void 0,request:void 0,response:void 0,secureConnect:void 0,send:void 0,socket:void 0},prefixUrl:"",body:void 0,form:void 0,json:void 0,cookieJar:void 0,ignoreInvalidCookies:!1,searchParams:void 0,dnsLookup:void 0,dnsCache:void 0,context:{},hooks:{init:[],beforeRequest:[],beforeError:[],beforeRedirect:[],beforeRetry:[],afterResponse:[]},followRedirect:!0,maxRedirects:10,cache:void 0,throwHttpErrors:!0,username:"",password:"",http2:!1,allowGetBody:!1,headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},methodRewriting:!1,dnsLookupIpVersion:void 0,parseJson:JSON.parse,stringifyJson:JSON.stringify,retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:s})=>s,backoffLimit:Number.POSITIVE_INFINITY,noise:100},localAddress:void 0,method:"GET",createConnection:void 0,cacheOptions:{shared:void 0,cacheHeuristic:void 0,immutableMinTimeToLive:void 0,ignoreCargoCult:void 0},https:{alpnProtocols:void 0,rejectUnauthorized:void 0,checkServerIdentity:void 0,certificateAuthority:void 0,key:void 0,certificate:void 0,passphrase:void 0,pfx:void 0,ciphers:void 0,honorCipherOrder:void 0,minVersion:void 0,maxVersion:void 0,signatureAlgorithms:void 0,tlsSessionLifetime:void 0,dhparam:void 0,ecdhCurve:void 0,certificateRevocationLists:void 0},encoding:void 0,resolveBodyOnly:!1,isStream:!1,responseType:"text",url:void 0,pagination:{transform(s){return s.request.options.responseType==="json"?s.body:JSON.parse(s.body)},paginate({response:s}){let e=s.headers.link;if(typeof e!="string"||e.trim()==="")return!1;let i=bl(e).find(r=>r.parameters.rel==="next"||r.parameters.rel==='"next"');return i?{url:new URL(i.reference,s.url)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:Number.POSITIVE_INFINITY,backoff:0,requestLimit:1e4,stackAllItems:!1},setHost:!0,maxHeaderSize:void 0,signal:void 0,enableUnixSockets:!1},HI=s=>{let{hooks:e,retry:t}=s,i={...s,context:{...s.context},cacheOptions:{...s.cacheOptions},https:{...s.https},agent:{...s.agent},headers:{...s.headers},retry:{...t,errorCodes:[...t.errorCodes],methods:[...t.methods],statusCodes:[...t.statusCodes]},timeout:{...s.timeout},hooks:{init:[...e.init],beforeRequest:[...e.beforeRequest],beforeError:[...e.beforeError],beforeRedirect:[...e.beforeRedirect],beforeRetry:[...e.beforeRetry],afterResponse:[...e.afterResponse]},searchParams:s.searchParams?new URLSearchParams(s.searchParams):void 0,pagination:{...s.pagination}};return i.url!==void 0&&(i.prefixUrl=""),i},$I=s=>{let{hooks:e,retry:t}=s,i={...s};return v.object(s.context)&&(i.context={...s.context}),v.object(s.cacheOptions)&&(i.cacheOptions={...s.cacheOptions}),v.object(s.https)&&(i.https={...s.https}),v.object(s.cacheOptions)&&(i.cacheOptions={...i.cacheOptions}),v.object(s.agent)&&(i.agent={...s.agent}),v.object(s.headers)&&(i.headers={...s.headers}),v.object(t)&&(i.retry={...t},v.array(t.errorCodes)&&(i.retry.errorCodes=[...t.errorCodes]),v.array(t.methods)&&(i.retry.methods=[...t.methods]),v.array(t.statusCodes)&&(i.retry.statusCodes=[...t.statusCodes])),v.object(s.timeout)&&(i.timeout={...s.timeout}),v.object(e)&&(i.hooks={...e},v.array(e.init)&&(i.hooks.init=[...e.init]),v.array(e.beforeRequest)&&(i.hooks.beforeRequest=[...e.beforeRequest]),v.array(e.beforeError)&&(i.hooks.beforeError=[...e.beforeError]),v.array(e.beforeRedirect)&&(i.hooks.beforeRedirect=[...e.beforeRedirect]),v.array(e.beforeRetry)&&(i.hooks.beforeRetry=[...e.beforeRetry]),v.array(e.afterResponse)&&(i.hooks.afterResponse=[...e.afterResponse])),v.object(s.pagination)&&(i.pagination={...s.pagination}),i},VI=s=>{let e=[s.timeout.socket,s.timeout.connect,s.timeout.lookup,s.timeout.request,s.timeout.secureConnect].filter(t=>typeof t=="number");if(e.length>0)return Math.min(...e)},Wb=(s,e,t)=>{let i=s.hooks?.init;if(i)for(let r of i)r(e,t)},mt=class s{_unixOptions;_internals;_merging;_init;constructor(e,t,i){if(N.any([v.string,v.urlInstance,v.object,v.undefined],e),N.any([v.object,v.undefined],t),N.any([v.object,v.undefined],i),e instanceof s||t instanceof s)throw new TypeError("The defaults must be passed as the third argument");this._internals=HI(i?._internals??i??UI),this._init=[...i?._init??[]],this._merging=!1,this._unixOptions=void 0;try{if(v.plainObject(e))try{this.merge(e),this.merge(t)}finally{this.url=e.url}else try{this.merge(t)}finally{if(t?.url!==void 0)if(e===void 0)this.url=t.url;else throw new TypeError("The `url` option is mutually exclusive with the `input` argument");else e!==void 0&&(this.url=e)}}catch(r){throw r.options=this,r}}merge(e){if(e){if(e instanceof s){for(let t of e._init)this.merge(t);return}e=$I(e),Wb(this,e,this),Wb(e,e,this),this._merging=!0,"isStream"in e&&(this.isStream=e.isStream);try{let t=!1;for(let i in e){if(i==="mutableDefaults"||i==="handlers"||i==="url")continue;if(!(i in this))throw new Error(`Unexpected option: ${i}`);let r=e[i];r!==void 0&&(this[i]=r,t=!0)}t&&this._init.push(e)}finally{this._merging=!1}}}get request(){return this._internals.request}set request(e){N.any([v.function,v.undefined],e),this._internals.request=e}get agent(){return this._internals.agent}set agent(e){N.plainObject(e);for(let t in e){if(!(t in this._internals.agent))throw new TypeError(`Unexpected agent option: ${t}`);N.any([v.object,v.undefined],e[t])}this._merging?Object.assign(this._internals.agent,e):this._internals.agent={...e}}get h2session(){return this._internals.h2session}set h2session(e){this._internals.h2session=e}get decompress(){return this._internals.decompress}set decompress(e){N.boolean(e),this._internals.decompress=e}get timeout(){return this._internals.timeout}set timeout(e){N.plainObject(e);for(let t in e){if(!(t in this._internals.timeout))throw new Error(`Unexpected timeout option: ${t}`);N.any([v.number,v.undefined],e[t])}this._merging?Object.assign(this._internals.timeout,e):this._internals.timeout={...e}}get prefixUrl(){return this._internals.prefixUrl}set prefixUrl(e){if(N.any([v.string,v.urlInstance],e),e===""){this._internals.prefixUrl="";return}if(e=e.toString(),e.endsWith("/")||(e+="/"),this._internals.prefixUrl&&this._internals.url){let{href:t}=this._internals.url;this._internals.url.href=e+t.slice(this._internals.prefixUrl.length)}this._internals.prefixUrl=e}get body(){return this._internals.body}set body(e){N.any([v.string,v.buffer,v.nodeStream,v.generator,v.asyncGenerator,Or,v.undefined],e),v.nodeStream(e)&&N.truthy(e.readable),e!==void 0&&(N.undefined(this._internals.form),N.undefined(this._internals.json)),this._internals.body=e}get form(){return this._internals.form}set form(e){N.any([v.plainObject,v.undefined],e),e!==void 0&&(N.undefined(this._internals.body),N.undefined(this._internals.json)),this._internals.form=e}get json(){return this._internals.json}set json(e){e!==void 0&&(N.undefined(this._internals.body),N.undefined(this._internals.form)),this._internals.json=e}get url(){return this._internals.url}set url(e){if(N.any([v.string,v.urlInstance,v.undefined],e),e===void 0){this._internals.url=void 0;return}if(v.string(e)&&e.startsWith("/"))throw new Error("`url` must not start with a slash");let t=`${this.prefixUrl}${e.toString()}`,i=new URL(t);if(this._internals.url=i,i.protocol==="unix:"&&(i.href=`http://unix${i.pathname}${i.search}`),i.protocol!=="http:"&&i.protocol!=="https:"){let r=new Error(`Unsupported protocol: ${i.protocol}`);throw r.code="ERR_UNSUPPORTED_PROTOCOL",r}if(this._internals.username&&(i.username=this._internals.username,this._internals.username=""),this._internals.password&&(i.password=this._internals.password,this._internals.password=""),this._internals.searchParams&&(i.search=this._internals.searchParams.toString(),this._internals.searchParams=void 0),i.hostname==="unix"){if(!this._internals.enableUnixSockets)throw new Error("Using UNIX domain sockets but option `enableUnixSockets` is not enabled");let r=/(?<socketPath>.+?):(?<path>.+)/.exec(`${i.pathname}${i.search}`);if(r?.groups){let{socketPath:a,path:n}=r.groups;this._unixOptions={socketPath:a,path:n,host:""}}else this._unixOptions=void 0;return}this._unixOptions=void 0}get cookieJar(){return this._internals.cookieJar}set cookieJar(e){if(N.any([v.object,v.undefined],e),e===void 0){this._internals.cookieJar=void 0;return}let{setCookie:t,getCookieString:i}=e;N.function(t),N.function(i),t.length===4&&i.length===0?(t=$b(t.bind(e)),i=$b(i.bind(e)),this._internals.cookieJar={setCookie:t,getCookieString:i}):this._internals.cookieJar=e}get signal(){return this._internals.signal}set signal(e){N.object(e),this._internals.signal=e}get ignoreInvalidCookies(){return this._internals.ignoreInvalidCookies}set ignoreInvalidCookies(e){N.boolean(e),this._internals.ignoreInvalidCookies=e}get searchParams(){return this._internals.url?this._internals.url.searchParams:(this._internals.searchParams===void 0&&(this._internals.searchParams=new URLSearchParams),this._internals.searchParams)}set searchParams(e){N.any([v.string,v.object,v.undefined],e);let t=this._internals.url;if(e===void 0){this._internals.searchParams=void 0,t&&(t.search="");return}let i=this.searchParams,r;if(v.string(e))r=new URLSearchParams(e);else if(e instanceof URLSearchParams)r=e;else{MI(e),r=new URLSearchParams;for(let a in e){let n=e[a];n===null?r.append(a,""):n===void 0?i.delete(a):r.append(a,n)}}if(this._merging){for(let a of r.keys())i.delete(a);for(let[a,n]of r)i.append(a,n)}else t?t.search=i.toString():this._internals.searchParams=i}get searchParameters(){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}set searchParameters(e){throw new Error("The `searchParameters` option does not exist. Use `searchParams` instead.")}get dnsLookup(){return this._internals.dnsLookup}set dnsLookup(e){N.any([v.function,v.undefined],e),this._internals.dnsLookup=e}get dnsCache(){return this._internals.dnsCache}set dnsCache(e){N.any([v.object,v.boolean,v.undefined],e),e===!0?this._internals.dnsCache=qI():e===!1?this._internals.dnsCache=void 0:this._internals.dnsCache=e}get context(){return this._internals.context}set context(e){N.object(e),this._merging?Object.assign(this._internals.context,e):this._internals.context={...e}}get hooks(){return this._internals.hooks}set hooks(e){N.object(e);for(let t in e){if(!(t in this._internals.hooks))throw new Error(`Unexpected hook event: ${t}`);let i=t,r=e[i];if(N.any([v.array,v.undefined],r),r)for(let a of r)N.function(a);if(this._merging)r&&this._internals.hooks[i].push(...r);else{if(!r)throw new Error(`Missing hook event: ${t}`);this._internals.hooks[t]=[...r]}}}get followRedirect(){return this._internals.followRedirect}set followRedirect(e){N.any([v.boolean,v.function],e),this._internals.followRedirect=e}get followRedirects(){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}set followRedirects(e){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}get maxRedirects(){return this._internals.maxRedirects}set maxRedirects(e){N.number(e),this._internals.maxRedirects=e}get cache(){return this._internals.cache}set cache(e){N.any([v.object,v.string,v.boolean,v.undefined],e),e===!0?this._internals.cache=RI:e===!1?this._internals.cache=void 0:this._internals.cache=e}get throwHttpErrors(){return this._internals.throwHttpErrors}set throwHttpErrors(e){N.boolean(e),this._internals.throwHttpErrors=e}get username(){let e=this._internals.url,t=e?e.username:this._internals.username;return decodeURIComponent(t)}set username(e){N.string(e);let t=this._internals.url,i=encodeURIComponent(e);t?t.username=i:this._internals.username=i}get password(){let e=this._internals.url,t=e?e.password:this._internals.password;return decodeURIComponent(t)}set password(e){N.string(e);let t=this._internals.url,i=encodeURIComponent(e);t?t.password=i:this._internals.password=i}get http2(){return this._internals.http2}set http2(e){N.boolean(e),this._internals.http2=e}get allowGetBody(){return this._internals.allowGetBody}set allowGetBody(e){N.boolean(e),this._internals.allowGetBody=e}get headers(){return this._internals.headers}set headers(e){N.plainObject(e),this._merging?Object.assign(this._internals.headers,Di(e)):this._internals.headers=Di(e)}get methodRewriting(){return this._internals.methodRewriting}set methodRewriting(e){N.boolean(e),this._internals.methodRewriting=e}get dnsLookupIpVersion(){return this._internals.dnsLookupIpVersion}set dnsLookupIpVersion(e){if(e!==void 0&&e!==4&&e!==6)throw new TypeError(`Invalid DNS lookup IP version: ${e}`);this._internals.dnsLookupIpVersion=e}get parseJson(){return this._internals.parseJson}set parseJson(e){N.function(e),this._internals.parseJson=e}get stringifyJson(){return this._internals.stringifyJson}set stringifyJson(e){N.function(e),this._internals.stringifyJson=e}get retry(){return this._internals.retry}set retry(e){if(N.plainObject(e),N.any([v.function,v.undefined],e.calculateDelay),N.any([v.number,v.undefined],e.maxRetryAfter),N.any([v.number,v.undefined],e.limit),N.any([v.array,v.undefined],e.methods),N.any([v.array,v.undefined],e.statusCodes),N.any([v.array,v.undefined],e.errorCodes),N.any([v.number,v.undefined],e.noise),e.noise&&Math.abs(e.noise)>100)throw new Error(`The maximum acceptable retry noise is +/- 100ms, got ${e.noise}`);for(let i in e)if(!(i in this._internals.retry))throw new Error(`Unexpected retry option: ${i}`);this._merging?Object.assign(this._internals.retry,e):this._internals.retry={...e};let{retry:t}=this._internals;t.methods=[...new Set(t.methods.map(i=>i.toUpperCase()))],t.statusCodes=[...new Set(t.statusCodes)],t.errorCodes=[...new Set(t.errorCodes)]}get localAddress(){return this._internals.localAddress}set localAddress(e){N.any([v.string,v.undefined],e),this._internals.localAddress=e}get method(){return this._internals.method}set method(e){N.string(e),this._internals.method=e.toUpperCase()}get createConnection(){return this._internals.createConnection}set createConnection(e){N.any([v.function,v.undefined],e),this._internals.createConnection=e}get cacheOptions(){return this._internals.cacheOptions}set cacheOptions(e){N.plainObject(e),N.any([v.boolean,v.undefined],e.shared),N.any([v.number,v.undefined],e.cacheHeuristic),N.any([v.number,v.undefined],e.immutableMinTimeToLive),N.any([v.boolean,v.undefined],e.ignoreCargoCult);for(let t in e)if(!(t in this._internals.cacheOptions))throw new Error(`Cache option \`${t}\` does not exist`);this._merging?Object.assign(this._internals.cacheOptions,e):this._internals.cacheOptions={...e}}get https(){return this._internals.https}set https(e){N.plainObject(e),N.any([v.boolean,v.undefined],e.rejectUnauthorized),N.any([v.function,v.undefined],e.checkServerIdentity),N.any([v.string,v.object,v.array,v.undefined],e.certificateAuthority),N.any([v.string,v.object,v.array,v.undefined],e.key),N.any([v.string,v.object,v.array,v.undefined],e.certificate),N.any([v.string,v.undefined],e.passphrase),N.any([v.string,v.buffer,v.array,v.undefined],e.pfx),N.any([v.array,v.undefined],e.alpnProtocols),N.any([v.string,v.undefined],e.ciphers),N.any([v.string,v.buffer,v.undefined],e.dhparam),N.any([v.string,v.undefined],e.signatureAlgorithms),N.any([v.string,v.undefined],e.minVersion),N.any([v.string,v.undefined],e.maxVersion),N.any([v.boolean,v.undefined],e.honorCipherOrder),N.any([v.number,v.undefined],e.tlsSessionLifetime),N.any([v.string,v.undefined],e.ecdhCurve),N.any([v.string,v.buffer,v.array,v.undefined],e.certificateRevocationLists);for(let t in e)if(!(t in this._internals.https))throw new Error(`HTTPS option \`${t}\` does not exist`);this._merging?Object.assign(this._internals.https,e):this._internals.https={...e}}get encoding(){return this._internals.encoding}set encoding(e){if(e===null)throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");N.any([v.string,v.undefined],e),this._internals.encoding=e}get resolveBodyOnly(){return this._internals.resolveBodyOnly}set resolveBodyOnly(e){N.boolean(e),this._internals.resolveBodyOnly=e}get isStream(){return this._internals.isStream}set isStream(e){N.boolean(e),this._internals.isStream=e}get responseType(){return this._internals.responseType}set responseType(e){if(e===void 0){this._internals.responseType="text";return}if(e!=="text"&&e!=="buffer"&&e!=="json")throw new Error(`Invalid \`responseType\` option: ${e}`);this._internals.responseType=e}get pagination(){return this._internals.pagination}set pagination(e){N.object(e),this._merging?Object.assign(this._internals.pagination,e):this._internals.pagination=e}get auth(){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}set auth(e){throw new Error("Parameter `auth` is deprecated. Use `username` / `password` instead.")}get setHost(){return this._internals.setHost}set setHost(e){N.boolean(e),this._internals.setHost=e}get maxHeaderSize(){return this._internals.maxHeaderSize}set maxHeaderSize(e){N.any([v.number,v.undefined],e),this._internals.maxHeaderSize=e}get enableUnixSockets(){return this._internals.enableUnixSockets}set enableUnixSockets(e){N.boolean(e),this._internals.enableUnixSockets=e}toJSON(){return{...this._internals}}[Symbol.for("nodejs.util.inspect.custom")](e,t){return NI(this._internals,t)}createNativeRequestOptions(){let e=this._internals,t=e.url,i;t.protocol==="https:"?i=e.http2?e.agent:e.agent.https:i=e.agent.http;let{https:r}=e,{pfx:a}=r;return v.array(a)&&v.plainObject(a[0])&&(a=a.map(n=>({buf:n.buffer,passphrase:n.passphrase}))),{...e.cacheOptions,...this._unixOptions,ALPNProtocols:r.alpnProtocols,ca:r.certificateAuthority,cert:r.certificate,key:r.key,passphrase:r.passphrase,pfx:r.pfx,rejectUnauthorized:r.rejectUnauthorized,checkServerIdentity:r.checkServerIdentity??BI,ciphers:r.ciphers,honorCipherOrder:r.honorCipherOrder,minVersion:r.minVersion,maxVersion:r.maxVersion,sigalgs:r.signatureAlgorithms,sessionTimeout:r.tlsSessionLifetime,dhparam:r.dhparam,ecdhCurve:r.ecdhCurve,crl:r.certificateRevocationLists,lookup:e.dnsLookup??e.dnsCache?.lookup,family:e.dnsLookupIpVersion,agent:i,setHost:e.setHost,method:e.method,maxHeaderSize:e.maxHeaderSize,localAddress:e.localAddress,headers:e.headers,createConnection:e.createConnection,timeout:e.http2?VI(e):void 0,h2session:e.h2session}}getRequestFunction(){let e=this._internals.url,{request:t}=this._internals;return!t&&e?this.getFallbackRequestFunction():t}getFallbackRequestFunction(){let e=this._internals.url;if(e){if(e.protocol==="https:"){if(this._internals.http2){if(Vb<15||Vb===15&&zI<10){let t=new Error("To use the `http2` option, install Node.js 15.10.0 or above");throw t.code="EUNSUPPORTED",t}return Gb.default.auto}return OI.request}return LI.request}}freeze(){let e=this._internals;Object.freeze(e),Object.freeze(e.hooks),Object.freeze(e.hooks.afterResponse),Object.freeze(e.hooks.beforeError),Object.freeze(e.hooks.beforeRedirect),Object.freeze(e.hooks.beforeRequest),Object.freeze(e.hooks.beforeRetry),Object.freeze(e.hooks.init),Object.freeze(e.https),Object.freeze(e.cacheOptions),Object.freeze(e.agent),Object.freeze(e.headers),Object.freeze(e.timeout),Object.freeze(e.retry),Object.freeze(e.retry.errorCodes),Object.freeze(e.retry.methods),Object.freeze(e.retry.statusCodes)}}});var ji,Ai,wl,$n=k(()=>{h();wi();ji=s=>{let{statusCode:e}=s,{followRedirect:t}=s.request.options,r=(typeof t=="function"?t(s):t)?299:399;return e>=200&&e<=r||e===304},Ai=class extends Ee{constructor(e,t){let{options:i}=t.request;super(`${e.message} in "${i.url.toString()}"`,e,t.request),this.name="ParseError",this.code="ERR_BODY_PARSE_FAILURE"}},wl=(s,e,t,i)=>{let{rawBody:r}=s;try{if(e==="text")return r.toString(i);if(e==="json")return r.length===0?"":t(r.toString(i));if(e==="buffer")return r}catch(a){throw new Ai(a,s)}throw new Ai({message:`Unknown body type '${e}'`,name:"Error"},s)}});function WI(s){return s.writable&&!s.writableEnded}var Kb,Jb=k(()=>{h();Kb=WI});function Vn(s){return s.protocol==="unix:"||s.hostname==="unix"}var Xb=k(()=>{h()});import Qb from"node:process";import{Buffer as Kr}from"node:buffer";import{Duplex as GI}from"node:stream";import KI,{ServerResponse as Yb}from"node:http";var Zb,JI,XI,Dl,YI,QI,Wn,Gs,Gn=k(()=>{h();Cy();px();Zb=Dt(mx(),1);Qt();qc();Tx();Uc();$c();jx();Px();Fx();_x();Gr();$n();Jb();Xb();wi();JI=v.string(Qb.versions.brotli),XI=new Set(["GET","HEAD"]),Dl=new Rr,YI=new Set([300,301,302,303,304,307,308]),QI=["socket","connect","continue","information","upgrade"],Wn=()=>{},Gs=class s extends GI{["constructor"];_noPipe;options;response;requestUrl;redirectUrls;retryCount;_stopRetry;_downloadedSize;_uploadedSize;_stopReading;_pipedServerResponses;_request;_responseSize;_bodySize;_unproxyEvents;_isFromCache;_cannotHaveBody;_triggerRead;_cancelTimeouts;_removeListeners;_nativeResponse;_flushed;_aborted;_requestInitialized;constructor(e,t,i){super({autoDestroy:!1,highWaterMark:0}),this._downloadedSize=0,this._uploadedSize=0,this._stopReading=!1,this._pipedServerResponses=new Set,this._cannotHaveBody=!1,this._unproxyEvents=Wn,this._triggerRead=!1,this._cancelTimeouts=Wn,this._removeListeners=Wn,this._jobs=[],this._flushed=!1,this._requestInitialized=!1,this._aborted=!1,this.redirectUrls=[],this.retryCount=0,this._stopRetry=Wn,this.on("pipe",a=>{a?.headers&&Object.assign(this.options.headers,a.headers)}),this.on("newListener",a=>{if(a==="retry"&&this.listenerCount("retry")>0)throw new Error("A retry listener has been attached already.")});try{if(this.options=new mt(e,t,i),!this.options.url){if(this.options.prefixUrl==="")throw new TypeError("Missing `url` property");this.options.url=""}this.requestUrl=this.options.url}catch(a){let{options:n}=a;n&&(this.options=n),this.flush=async()=>{this.flush=async()=>{},this.destroy(a)};return}let{body:r}=this.options;if(v.nodeStream(r)&&r.once("error",a=>{this._flushed?this._beforeError(new Tr(a,this)):this.flush=async()=>{this.flush=async()=>{},this._beforeError(new Tr(a,this))}}),this.options.signal){let a=()=>{this.options.signal?.reason?.name==="TimeoutError"?this.destroy(new Sr(this.options.signal.reason,this.timings,this)):this.destroy(new Tn(this))};this.options.signal.aborted?a():(this.options.signal.addEventListener("abort",a),this._removeListeners=()=>{this.options.signal?.removeEventListener("abort",a)})}}async flush(){if(!this._flushed){this._flushed=!0;try{if(await this._finalizeBody(),this.destroyed)return;if(await this._makeRequest(),this.destroyed){this._request?.destroy();return}for(let e of this._jobs)e();this._jobs.length=0,this._requestInitialized=!0}catch(e){this._beforeError(e)}}}_beforeError(e){if(this._stopReading)return;let{response:t,options:i}=this,r=this.retryCount+(e.name==="RetryError"?0:1);this._stopReading=!0,e instanceof Ee||(e=new Ee(e.message,e,this));let a=e;(async()=>{if(t?.readable&&!t.rawBody&&!this._request?.socket?.destroyed&&(t.setEncoding(this.readableEncoding),await this._setRawBody(t)&&(t.body=t.rawBody.toString())),this.listenerCount("retry")!==0){let n;try{let o;t&&"retry-after"in t.headers&&(o=Number(t.headers["retry-after"]),Number.isNaN(o)?(o=Date.parse(t.headers["retry-after"])-Date.now(),o<=0&&(o=1)):o*=1e3);let u=i.retry;n=await u.calculateDelay({attemptCount:r,retryOptions:u,error:a,retryAfter:o,computedValue:Ix({attemptCount:r,retryOptions:u,error:a,retryAfter:o,computedValue:u.maxRetryAfter??i.timeout.request??Number.POSITIVE_INFINITY})})}catch(o){this._error(new Ee(o.message,o,this));return}if(n){if(await new Promise(o=>{let u=setTimeout(o,n);this._stopRetry=()=>{clearTimeout(u),o()}}),this.destroyed)return;try{for(let o of this.options.hooks.beforeRetry)await o(a,this.retryCount+1)}catch(o){this._error(new Ee(o.message,e,this));return}if(this.destroyed)return;this.destroy(),this.emit("retry",this.retryCount+1,e,o=>{let u=new s(i.url,o,i);return u.retryCount=this.retryCount+1,Qb.nextTick(()=>{u.flush()}),u});return}}this._error(a)})()}_read(){this._triggerRead=!0;let{response:e}=this;if(e&&!this._stopReading){e.readableLength&&(this._triggerRead=!1);let t;for(;(t=e.read())!==null;){this._downloadedSize+=t.length;let i=this.downloadProgress;i.percent<1&&this.emit("downloadProgress",i),this.push(t)}}}_write(e,t,i){let r=()=>{this._writeRequest(e,t,i)};this._requestInitialized?r():this._jobs.push(r)}_final(e){let t=()=>{if(!this._request||this._request.destroyed){e();return}this._request.end(i=>{this._request?._writableState?.errored||(i||(this._bodySize=this._uploadedSize,this.emit("uploadProgress",this.uploadProgress),this._request?.emit("upload-complete")),e(i))})};this._requestInitialized?t():this._jobs.push(t)}_destroy(e,t){if(this._stopReading=!0,this.flush=async()=>{},this._stopRetry(),this._cancelTimeouts(),this._removeListeners(),this.options){let{body:i}=this.options;v.nodeStream(i)&&i.destroy()}this._request&&this._request.destroy(),e!==null&&!v.undefined(e)&&!(e instanceof Ee)&&(e=new Ee(e.message,e,this)),t(e)}pipe(e,t){return e instanceof Yb&&this._pipedServerResponses.add(e),super.pipe(e,t)}unpipe(e){return e instanceof Yb&&this._pipedServerResponses.delete(e),super.unpipe(e),this}async _finalizeBody(){let{options:e}=this,{headers:t}=e,i=!v.undefined(e.form),r=!v.undefined(e.json),a=!v.undefined(e.body),n=XI.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=n,i||r||a){if(n)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);let o=!v.string(t["content-type"]);if(a){if(Or(e.body)){let c=new Cx(e.body);o&&(t["content-type"]=c.headers["Content-Type"]),"Content-Length"in c.headers&&(t["content-length"]=c.headers["Content-Length"]),e.body=c.encode()}Lr(e.body)&&o&&(t["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`)}else if(i){o&&(t["content-type"]="application/x-www-form-urlencoded");let{form:c}=e;e.form=void 0,e.body=new URLSearchParams(c).toString()}else{o&&(t["content-type"]="application/json");let{json:c}=e;e.json=void 0,e.body=e.stringifyJson(c)}let u=await Hc(e.body,e.headers);v.undefined(t["content-length"])&&v.undefined(t["transfer-encoding"])&&!n&&!v.undefined(u)&&(t["content-length"]=String(u))}e.responseType==="json"&&!("accept"in e.headers)&&(e.headers.accept="application/json"),this._bodySize=Number(t["content-length"])||void 0}async _onResponseBase(e){if(this.isAborted)return;let{options:t}=this,{url:i}=t;this._nativeResponse=e,t.decompress&&(e=(0,Zb.default)(e));let r=e.statusCode,a=e;a.statusMessage=a.statusMessage??KI.STATUS_CODES[r],a.url=t.url.toString(),a.requestUrl=this.requestUrl,a.redirectUrls=this.redirectUrls,a.request=this,a.isFromCache=this._nativeResponse.fromCache??!1,a.ip=this.ip,a.retryCount=this.retryCount,a.ok=ji(a),this._isFromCache=a.isFromCache,this._responseSize=Number(e.headers["content-length"])||void 0,this.response=a,e.once("end",()=>{this._responseSize=this._downloadedSize,this.emit("downloadProgress",this.downloadProgress)}),e.once("error",o=>{this._aborted=!0,e.destroy(),this._beforeError(new Ar(o,this))}),e.once("aborted",()=>{this._aborted=!0,this._beforeError(new Ar({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let n=e.headers["set-cookie"];if(v.object(t.cookieJar)&&n){let o=n.map(async u=>t.cookieJar.setCookie(u,i.toString()));t.ignoreInvalidCookies&&(o=o.map(async u=>{try{await u}catch{}}));try{await Promise.all(o)}catch(u){this._beforeError(u);return}}if(!this.isAborted){if(e.headers.location&&YI.has(r)&&(typeof t.followRedirect=="function"?t.followRedirect(a):t.followRedirect)){if(e.resume(),this._cancelTimeouts(),this._unproxyEvents(),this.redirectUrls.length>=t.maxRedirects){this._beforeError(new vn(this));return}this._request=void 0;let u=new mt(void 0,void 0,this.options),c=r===303&&u.method!=="GET"&&u.method!=="HEAD",l=r!==307&&r!==308,p=u.methodRewriting&&l;(c||p)&&(u.method="GET",u.body=void 0,u.json=void 0,u.form=void 0,delete u.headers["content-length"]);try{let d=Kr.from(e.headers.location,"binary").toString(),m=new URL(d,i);if(!Vn(i)&&Vn(m)){this._beforeError(new Ee("Cannot redirect to UNIX socket",{},this));return}m.hostname!==i.hostname||m.port!==i.port?("host"in u.headers&&delete u.headers.host,"cookie"in u.headers&&delete u.headers.cookie,"authorization"in u.headers&&delete u.headers.authorization,(u.username||u.password)&&(u.username="",u.password="")):(m.username=u.username,m.password=u.password),this.redirectUrls.push(m),u.prefixUrl="",u.url=m;for(let f of u.hooks.beforeRedirect)await f(u,a);this.emit("redirect",u,a),this.options=u,await this._makeRequest()}catch(d){this._beforeError(d);return}return}if(t.isStream&&t.throwHttpErrors&&!ji(a)){this._beforeError(new bs(a));return}if(e.on("readable",()=>{this._triggerRead&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this._noPipe){await this._setRawBody()&&this.emit("response",e);return}this.emit("response",e);for(let o of this._pipedServerResponses)if(!o.headersSent){for(let u in e.headers){let c=t.decompress?u!=="content-encoding":!0,l=e.headers[u];c&&o.setHeader(u,l)}o.statusCode=r}}}async _setRawBody(e=this){if(e.readableEnded)return!1;try{let t=await e.toArray(),i=Er(t.at(0))?Kr.concat(t):Kr.from(t.join(""));if(!this.isAborted)return this.response.rawBody=i,!0}catch{}return!1}async _onResponse(e){try{await this._onResponseBase(e)}catch(t){this._beforeError(t)}}_onRequest(e){let{options:t}=this,{timeout:i,url:r}=t;Ey(e),this.options.http2&&e.setTimeout(0),this._cancelTimeouts=Wc(e,i,r);let a=t.cache?"cacheableResponse":"response";e.once(a,n=>{this._onResponse(n)}),e.once("error",n=>{this._aborted=!0,e.destroy(),n=n instanceof Mr?new Sr(n,this.timings,this):new Ee(n.message,n,this),this._beforeError(n)}),this._unproxyEvents=zr(e,this,QI),this._request=e,this.emit("uploadProgress",this.uploadProgress),this._sendBody(),this.emit("request",e)}async _asyncWrite(e){return new Promise((t,i)=>{super.write(e,r=>{if(r){i(r);return}t()})})}_sendBody(){let{body:e}=this.options,t=this.redirectUrls.length===0?this:this._request??this;v.nodeStream(e)?e.pipe(t):v.generator(e)||v.asyncGenerator(e)?(async()=>{try{for await(let i of e)await this._asyncWrite(i);super.end()}catch(i){this._beforeError(i)}})():v.undefined(e)?(this._cannotHaveBody||this._noPipe)&&t.end():(this._writeRequest(e,void 0,()=>{}),t.end())}_prepareCache(e){if(!Dl.has(e)){let t=new lx((i,r)=>{let a=i._request(i,r);return v.promise(a)&&(a.once=(n,o)=>{if(n==="error")(async()=>{try{await a}catch(u){o(u)}})();else if(n==="abort"||n==="destroy")(async()=>{try{(await a).once(n,o)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${n}`);return a}),a},e);Dl.set(e,t.request())}}async _createCacheableRequest(e,t){return new Promise((i,r)=>{Object.assign(t,Gc(e));let a,n=Dl.get(t.cache)(t,async o=>{if(o._readableState.autoDestroy=!1,a){let u=()=>{o.req&&(o.complete=o.req.res.complete)};o.prependOnceListener("end",u),u(),(await a).emit("cacheableResponse",o)}i(o)});n.once("error",r),n.once("request",async o=>{a=o,i(a)})})}async _makeRequest(){let{options:e}=this,{headers:t,username:i,password:r}=e,a=e.cookieJar;for(let c in t)if(v.undefined(t[c]))delete t[c];else if(v.null(t[c]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${c}\` header`);if(e.decompress&&v.undefined(t["accept-encoding"])&&(t["accept-encoding"]=JI?"gzip, deflate, br":"gzip, deflate"),i||r){let c=Kr.from(`${i}:${r}`).toString("base64");t.authorization=`Basic ${c}`}if(a){let c=await a.getCookieString(e.url.toString());v.nonEmptyString(c)&&(t.cookie=c)}e.prefixUrl="";let n;for(let c of e.hooks.beforeRequest){let l=await c(e);if(!v.undefined(l)){n=()=>l;break}}n||=e.getRequestFunction();let o=e.url;this._requestOptions=e.createNativeRequestOptions(),e.cache&&(this._requestOptions._request=n,this._requestOptions.cache=e.cache,this._requestOptions.body=e.body,this._prepareCache(e.cache));let u=e.cache?this._createCacheableRequest:n;try{let c=u(o,this._requestOptions);v.promise(c)&&(c=await c),v.undefined(c)&&(c=e.getFallbackRequestFunction()(o,this._requestOptions),v.promise(c)&&(c=await c)),Kb(c)?this._onRequest(c):this.writable?(this.once("finish",()=>{this._onResponse(c)}),this._sendBody()):this._onResponse(c)}catch(c){throw c instanceof Zt?new En(c,this):c}}async _error(e){try{if(!(e instanceof bs&&!this.options.throwHttpErrors))for(let t of this.options.hooks.beforeError)e=await t(e)}catch(t){e=new Ee(t.message,t,this)}this.destroy(e)}_writeRequest(e,t,i){!this._request||this._request.destroyed||this._request.write(e,t,r=>{if(!r&&!this._request.destroyed){this._uploadedSize+=Kr.byteLength(e,t);let a=this.uploadProgress;a.percent<1&&this.emit("uploadProgress",a)}i(r)})}get ip(){return this.socket?.remoteAddress}get isAborted(){return this._aborted}get socket(){return this._request?.socket??void 0}get downloadProgress(){let e;return this._responseSize?e=this._downloadedSize/this._responseSize:this._responseSize===this._downloadedSize?e=1:e=0,{percent:e,transferred:this._downloadedSize,total:this._responseSize}}get uploadProgress(){let e;return this._bodySize?e=this._uploadedSize/this._bodySize:this._bodySize===this._uploadedSize?e=1:e=0,{percent:e,transferred:this._uploadedSize,total:this._bodySize}}get timings(){return this._request?.timings}get isFromCache(){return this._isFromCache}get reusedSocket(){return this._request?.reusedSocket}}});var Kn,kl=k(()=>{h();wi();Kn=class extends Ee{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}}});import{EventEmitter as ZI}from"node:events";function Jn(s){let e,t,i,r=new ZI,a=new bi((o,u,c)=>{c(()=>{e.destroy()}),c.shouldReject=!1,c(()=>{u(new Kn(e))});let l=p=>{c(()=>{});let d=s??new Gs(void 0,void 0,i);d.retryCount=p,d._noPipe=!0,e=d,d.once("response",async g=>{let y=(g.headers["content-encoding"]??"").toLowerCase(),w=y==="gzip"||y==="deflate"||y==="br",{options:T}=d;if(w&&!T.decompress)g.body=g.rawBody;else try{g.body=wl(g,T.responseType,T.parseJson,T.encoding)}catch(S){try{g.body=g.rawBody.toString()}catch(E){d._beforeError(new Ai(E,g));return}if(ji(g)){d._beforeError(S);return}}try{let S=T.hooks.afterResponse;for(let[E,A]of S.entries())if(g=await A(g,async F=>{throw T.merge(F),T.prefixUrl="",F.url&&(T.url=F.url),T.hooks.afterResponse=T.hooks.afterResponse.slice(0,E),new Cn(d)}),!(v.object(g)&&v.number(g.statusCode)&&!v.nullOrUndefined(g.body)))throw new TypeError("The `afterResponse` hook returned an invalid value")}catch(S){d._beforeError(S);return}if(t=g,!ji(g)){d._beforeError(new bs(g));return}d.destroy(),o(d.options.resolveBodyOnly?g.body:g)});let m=g=>{if(a.isCanceled)return;let{options:y}=d;if(g instanceof bs&&!y.throwHttpErrors){let{response:w}=g;d.destroy(),o(d.options.resolveBodyOnly?w.body:w);return}u(g)};d.once("error",m);let f=d.options?.body;d.once("retry",(g,y)=>{s=void 0;let w=d.options.body;if(f===w&&v.nodeStream(w)){y.message="Cannot retry with consumed body stream",m(y);return}i=d.options,l(g)}),zr(d,r,e_),v.undefined(s)&&d.flush()};l(0)});a.on=(o,u)=>(r.on(o,u),a),a.off=(o,u)=>(r.off(o,u),a);let n=o=>{let u=(async()=>{await a;let{options:c}=t.request;return wl(t,o,c.parseJson,c.encoding)})();return Object.defineProperties(u,Object.getOwnPropertyDescriptors(a)),u};return a.json=()=>{if(e.options){let{headers:o}=e.options;!e.writableFinished&&!("accept"in o)&&(o.accept="application/json")}return n("json")},a.buffer=()=>n("buffer"),a.text=()=>n("text"),a}var e_,ew=k(()=>{h();Qt();Dy();wi();Gn();$n();$c();kl();e_=["request","response","redirect","uploadProgress","downloadProgress"]});import{setTimeout as t_}from"node:timers/promises";var s_,i_,tw,sw,iw=k(()=>{h();Qt();ew();Gn();Gr();s_=s=>v.function(s),i_=["get","post","put","patch","head","delete"],tw=s=>{s={options:new mt(void 0,void 0,s.options),handlers:[...s.handlers],mutableDefaults:s.mutableDefaults},Object.defineProperty(s,"mutableDefaults",{enumerable:!0,configurable:!1,writable:!1});let e=(i,r,a=s.options)=>{let n=new Gs(i,r,a),o,u=p=>(n.options=p,n._noPipe=!p?.isStream,n.flush(),p?.isStream?n:(o||=Jn(n),o)),c=0,l=p=>{let m=(s.handlers[c++]??u)(p,l);if(v.promise(m)&&!n.options?.isStream&&(o||=Jn(n),m!==o)){let f=Object.getOwnPropertyDescriptors(o);for(let g in f)g in m&&delete f[g];Object.defineProperties(m,f),m.cancel=o.cancel}return m};return l(n.options)};e.extend=(...i)=>{let r=new mt(void 0,void 0,s.options),a=[...s.handlers],n;for(let o of i)s_(o)?(r.merge(o.defaults.options),a.push(...o.defaults.handlers),n=o.defaults.mutableDefaults):(r.merge(o),o.handlers&&a.push(...o.handlers),n=o.mutableDefaults);return tw({options:r,handlers:a,mutableDefaults:!!n})};let t=async function*(i,r){let a=new mt(i,r,s.options);a.resolveBodyOnly=!1;let{pagination:n}=a;N.function(n.transform),N.function(n.shouldContinue),N.function(n.filter),N.function(n.paginate),N.number(n.countLimit),N.number(n.requestLimit),N.number(n.backoff);let o=[],{countLimit:u}=n,c=0;for(;c<n.requestLimit;){c!==0&&await t_(n.backoff);let l=await e(void 0,void 0,a),p=await n.transform(l),d=[];N.array(p);for(let f of p)if(n.filter({item:f,currentItems:d,allItems:o})&&(!n.shouldContinue({item:f,currentItems:d,allItems:o})||(yield f,n.stackAllItems&&o.push(f),d.push(f),--u<=0)))return;let m=n.paginate({response:l,currentItems:d,allItems:o});if(m===!1)return;m===l.request.options?a=l.request.options:(a.merge(m),N.any([v.urlInstance,v.undefined],m.url),m.url!==void 0&&(a.prefixUrl="",a.url=m.url)),c++}};e.paginate=t,e.paginate.all=async(i,r)=>{let a=[];for await(let n of t(i,r))a.push(n);return a},e.paginate.each=t,e.stream=(i,r)=>e(i,{...r,isStream:!0});for(let i of i_)e[i]=(r,a)=>e(r,{...a,method:i}),e.stream[i]=(r,a)=>e(r,{...a,method:i,isStream:!0});return s.mutableDefaults||(Object.freeze(s.handlers),s.options.freeze()),Object.defineProperty(e,"defaults",{value:s,writable:!1,configurable:!1,enumerable:!0}),e},sw=tw});var rw=k(()=>{h()});var r_,vl,aw=k(()=>{h();iw();Gr();Gr();$n();Gn();wi();kl();rw();r_={options:new mt,handlers:[],mutableDefaults:!1},vl=sw(r_)});var a_,Xn,El=k(()=>{h();a_=typeof global=="object"&&global&&global.Object===Object&&global,Xn=a_});var n_,o_,gt,Ks=k(()=>{h();El();n_=typeof self=="object"&&self&&self.Object===Object&&self,o_=Xn||n_||Function("return this")(),gt=o_});var u_,Pi,Cl=k(()=>{h();Ks();u_=gt.Symbol,Pi=u_});function p_(s){var e=c_.call(s,Jr),t=s[Jr];try{s[Jr]=void 0;var i=!0}catch{}var r=l_.call(s);return i&&(e?s[Jr]=t:delete s[Jr]),r}var nw,c_,l_,Jr,ow,uw=k(()=>{h();Cl();nw=Object.prototype,c_=nw.hasOwnProperty,l_=nw.toString,Jr=Pi?Pi.toStringTag:void 0;ow=p_});function f_(s){return d_.call(s)}var h_,d_,cw,lw=k(()=>{h();h_=Object.prototype,d_=h_.toString;cw=f_});function y_(s){return s==null?s===void 0?g_:m_:pw&&pw in Object(s)?ow(s):cw(s)}var m_,g_,pw,ks,Xr=k(()=>{h();Cl();uw();lw();m_="[object Null]",g_="[object Undefined]",pw=Pi?Pi.toStringTag:void 0;ks=y_});function x_(s){return s!=null&&typeof s=="object"}var Rt,Fi=k(()=>{h();Rt=x_});var b_,Yr,Tl=k(()=>{h();b_=Array.isArray,Yr=b_});function w_(s){var e=typeof s;return s!=null&&(e=="object"||e=="function")}var at,vs=k(()=>{h();at=w_});function D_(s){return s}var Yn,Sl=k(()=>{h();Yn=D_});function T_(s){if(!at(s))return!1;var e=ks(s);return e==v_||e==E_||e==k_||e==C_}var k_,v_,E_,C_,Ii,Qn=k(()=>{h();Xr();vs();k_="[object AsyncFunction]",v_="[object Function]",E_="[object GeneratorFunction]",C_="[object Proxy]";Ii=T_});var S_,Zn,hw=k(()=>{h();Ks();S_=gt["__core-js_shared__"],Zn=S_});function A_(s){return!!dw&&dw in s}var dw,fw,mw=k(()=>{h();hw();dw=function(){var s=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}();fw=A_});function F_(s){if(s!=null){try{return P_.call(s)}catch{}try{return s+""}catch{}}return""}var j_,P_,gw,yw=k(()=>{h();j_=Function.prototype,P_=j_.toString;gw=F_});function M_(s){if(!at(s)||fw(s))return!1;var e=Ii(s)?z_:__;return e.test(gw(s))}var I_,__,N_,B_,O_,L_,z_,xw,bw=k(()=>{h();Qn();mw();vs();yw();I_=/[\\^$.*+?()[\]{}|]/g,__=/^\[object .+?Constructor\]$/,N_=Function.prototype,B_=Object.prototype,O_=N_.toString,L_=B_.hasOwnProperty,z_=RegExp("^"+O_.call(L_).replace(I_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");xw=M_});function R_(s,e){return s?.[e]}var ww,Dw=k(()=>{h();ww=R_});function q_(s,e){var t=ww(s,e);return xw(t)?t:void 0}var _i,eo=k(()=>{h();bw();Dw();_i=q_});var kw,U_,vw,Ew=k(()=>{h();vs();kw=Object.create,U_=function(){function s(){}return function(e){if(!at(e))return{};if(kw)return kw(e);s.prototype=e;var t=new s;return s.prototype=void 0,t}}(),vw=U_});function H_(s,e,t){switch(t.length){case 0:return s.call(e);case 1:return s.call(e,t[0]);case 2:return s.call(e,t[0],t[1]);case 3:return s.call(e,t[0],t[1],t[2])}return s.apply(e,t)}var Cw,Tw=k(()=>{h();Cw=H_});function $_(s,e){var t=-1,i=s.length;for(e||(e=Array(i));++t<i;)e[t]=s[t];return e}var Sw,Aw=k(()=>{h();Sw=$_});function K_(s){var e=0,t=0;return function(){var i=G_(),r=W_-(i-t);if(t=i,r>0){if(++e>=V_)return arguments[0]}else e=0;return s.apply(void 0,arguments)}}var V_,W_,G_,jw,Pw=k(()=>{h();V_=800,W_=16,G_=Date.now;jw=K_});function J_(s){return function(){return s}}var Fw,Iw=k(()=>{h();Fw=J_});var X_,Ni,Al=k(()=>{h();eo();X_=function(){try{var s=_i(Object,"defineProperty");return s({},"",{}),s}catch{}}(),Ni=X_});var Y_,_w,Nw=k(()=>{h();Iw();Al();Sl();Y_=Ni?function(s,e){return Ni(s,"toString",{configurable:!0,enumerable:!1,value:Fw(e),writable:!0})}:Yn,_w=Y_});var Q_,Bw,Ow=k(()=>{h();Nw();Pw();Q_=jw(_w),Bw=Q_});function tN(s,e){var t=typeof s;return e=e??Z_,!!e&&(t=="number"||t!="symbol"&&eN.test(s))&&s>-1&&s%1==0&&s<e}var Z_,eN,to,jl=k(()=>{h();Z_=9007199254740991,eN=/^(?:0|[1-9]\d*)$/;to=tN});function sN(s,e,t){e=="__proto__"&&Ni?Ni(s,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):s[e]=t}var Bi,so=k(()=>{h();Al();Bi=sN});function iN(s,e){return s===e||s!==s&&e!==e}var Es,Qr=k(()=>{h();Es=iN});function nN(s,e,t){var i=s[e];(!(aN.call(s,e)&&Es(i,t))||t===void 0&&!(e in s))&&Bi(s,e,t)}var rN,aN,Lw,zw=k(()=>{h();so();Qr();rN=Object.prototype,aN=rN.hasOwnProperty;Lw=nN});function oN(s,e,t,i){var r=!t;t||(t={});for(var a=-1,n=e.length;++a<n;){var o=e[a],u=i?i(t[o],s[o],o,t,s):void 0;u===void 0&&(u=s[o]),r?Bi(t,o,u):Lw(t,o,u)}return t}var Mw,Rw=k(()=>{h();zw();so();Mw=oN});function uN(s,e,t){return e=qw(e===void 0?s.length-1:e,0),function(){for(var i=arguments,r=-1,a=qw(i.length-e,0),n=Array(a);++r<a;)n[r]=i[e+r];r=-1;for(var o=Array(e+1);++r<e;)o[r]=i[r];return o[e]=t(n),Cw(s,this,o)}}var qw,Uw,Hw=k(()=>{h();Tw();qw=Math.max;Uw=uN});function cN(s,e){return Bw(Uw(s,e,Yn),s+"")}var $w,Vw=k(()=>{h();Sl();Hw();Ow();$w=cN});function pN(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=lN}var lN,io,Pl=k(()=>{h();lN=9007199254740991;io=pN});function hN(s){return s!=null&&io(s.length)&&!Ii(s)}var Oi,ro=k(()=>{h();Qn();Pl();Oi=hN});function dN(s,e,t){if(!at(t))return!1;var i=typeof e;return(i=="number"?Oi(t)&&to(e,t.length):i=="string"&&e in t)?Es(t[e],s):!1}var Ww,Gw=k(()=>{h();Qr();ro();jl();vs();Ww=dN});function fN(s){return $w(function(e,t){var i=-1,r=t.length,a=r>1?t[r-1]:void 0,n=r>2?t[2]:void 0;for(a=s.length>3&&typeof a=="function"?(r--,a):void 0,n&&Ww(t[0],t[1],n)&&(a=r<3?void 0:a,r=1),e=Object(e);++i<r;){var o=t[i];o&&s(e,o,i,a)}return e})}var Kw,Jw=k(()=>{h();Vw();Gw();Kw=fN});function gN(s){var e=s&&s.constructor,t=typeof e=="function"&&e.prototype||mN;return s===t}var mN,ao,Fl=k(()=>{h();mN=Object.prototype;ao=gN});function yN(s,e){for(var t=-1,i=Array(s);++t<s;)i[t]=e(t);return i}var Xw,Yw=k(()=>{h();Xw=yN});function bN(s){return Rt(s)&&ks(s)==xN}var xN,Il,Qw=k(()=>{h();Xr();Fi();xN="[object Arguments]";Il=bN});var Zw,wN,DN,kN,Zr,_l=k(()=>{h();Qw();Fi();Zw=Object.prototype,wN=Zw.hasOwnProperty,DN=Zw.propertyIsEnumerable,kN=Il(function(){return arguments}())?Il:function(s){return Rt(s)&&wN.call(s,"callee")&&!DN.call(s,"callee")},Zr=kN});function vN(){return!1}var eD,tD=k(()=>{h();eD=vN});var rD,sD,EN,iD,CN,TN,no,Nl=k(()=>{h();Ks();tD();rD=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sD=rD&&typeof module=="object"&&module&&!module.nodeType&&module,EN=sD&&sD.exports===rD,iD=EN?gt.Buffer:void 0,CN=iD?iD.isBuffer:void 0,TN=CN||eD,no=TN});function YN(s){return Rt(s)&&io(s.length)&&!!be[ks(s)]}var SN,AN,jN,PN,FN,IN,_N,NN,BN,ON,LN,zN,MN,RN,qN,UN,HN,$N,VN,WN,GN,KN,JN,XN,be,aD,nD=k(()=>{h();Xr();Pl();Fi();SN="[object Arguments]",AN="[object Array]",jN="[object Boolean]",PN="[object Date]",FN="[object Error]",IN="[object Function]",_N="[object Map]",NN="[object Number]",BN="[object Object]",ON="[object RegExp]",LN="[object Set]",zN="[object String]",MN="[object WeakMap]",RN="[object ArrayBuffer]",qN="[object DataView]",UN="[object Float32Array]",HN="[object Float64Array]",$N="[object Int8Array]",VN="[object Int16Array]",WN="[object Int32Array]",GN="[object Uint8Array]",KN="[object Uint8ClampedArray]",JN="[object Uint16Array]",XN="[object Uint32Array]",be={};be[UN]=be[HN]=be[$N]=be[VN]=be[WN]=be[GN]=be[KN]=be[JN]=be[XN]=!0;be[SN]=be[AN]=be[RN]=be[jN]=be[qN]=be[PN]=be[FN]=be[IN]=be[_N]=be[NN]=be[BN]=be[ON]=be[LN]=be[zN]=be[MN]=!1;aD=YN});function QN(s){return function(e){return s(e)}}var oD,uD=k(()=>{h();oD=QN});var cD,ea,ZN,Bl,eB,Ol,lD=k(()=>{h();El();cD=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ea=cD&&typeof module=="object"&&module&&!module.nodeType&&module,ZN=ea&&ea.exports===cD,Bl=ZN&&Xn.process,eB=function(){try{var s=ea&&ea.require&&ea.require("util").types;return s||Bl&&Bl.binding&&Bl.binding("util")}catch{}}(),Ol=eB});var pD,tB,oo,Ll=k(()=>{h();nD();uD();lD();pD=Ol&&Ol.isTypedArray,tB=pD?oD(pD):aD,oo=tB});function rB(s,e){var t=Yr(s),i=!t&&Zr(s),r=!t&&!i&&no(s),a=!t&&!i&&!r&&oo(s),n=t||i||r||a,o=n?Xw(s.length,String):[],u=o.length;for(var c in s)(e||iB.call(s,c))&&!(n&&(c=="length"||r&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||to(c,u)))&&o.push(c);return o}var sB,iB,hD,dD=k(()=>{h();Yw();_l();Tl();Nl();jl();Ll();sB=Object.prototype,iB=sB.hasOwnProperty;hD=rB});function aB(s,e){return function(t){return s(e(t))}}var fD,mD=k(()=>{h();fD=aB});function nB(s){var e=[];if(s!=null)for(var t in Object(s))e.push(t);return e}var gD,yD=k(()=>{h();gD=nB});function cB(s){if(!at(s))return gD(s);var e=ao(s),t=[];for(var i in s)i=="constructor"&&(e||!uB.call(s,i))||t.push(i);return t}var oB,uB,xD,bD=k(()=>{h();vs();Fl();yD();oB=Object.prototype,uB=oB.hasOwnProperty;xD=cB});function lB(s){return Oi(s)?hD(s,!0):xD(s)}var uo,zl=k(()=>{h();dD();bD();ro();uo=lB});var pB,ts,ta=k(()=>{h();eo();pB=_i(Object,"create"),ts=pB});function hB(){this.__data__=ts?ts(null):{},this.size=0}var wD,DD=k(()=>{h();ta();wD=hB});function dB(s){var e=this.has(s)&&delete this.__data__[s];return this.size-=e?1:0,e}var kD,vD=k(()=>{h();kD=dB});function yB(s){var e=this.__data__;if(ts){var t=e[s];return t===fB?void 0:t}return gB.call(e,s)?e[s]:void 0}var fB,mB,gB,ED,CD=k(()=>{h();ta();fB="__lodash_hash_undefined__",mB=Object.prototype,gB=mB.hasOwnProperty;ED=yB});function wB(s){var e=this.__data__;return ts?e[s]!==void 0:bB.call(e,s)}var xB,bB,TD,SD=k(()=>{h();ta();xB=Object.prototype,bB=xB.hasOwnProperty;TD=wB});function kB(s,e){var t=this.__data__;return this.size+=this.has(s)?0:1,t[s]=ts&&e===void 0?DB:e,this}var DB,AD,jD=k(()=>{h();ta();DB="__lodash_hash_undefined__";AD=kB});function Li(s){var e=-1,t=s==null?0:s.length;for(this.clear();++e<t;){var i=s[e];this.set(i[0],i[1])}}var Ml,PD=k(()=>{h();DD();vD();CD();SD();jD();Li.prototype.clear=wD;Li.prototype.delete=kD;Li.prototype.get=ED;Li.prototype.has=TD;Li.prototype.set=AD;Ml=Li});function vB(){this.__data__=[],this.size=0}var FD,ID=k(()=>{h();FD=vB});function EB(s,e){for(var t=s.length;t--;)if(Es(s[t][0],e))return t;return-1}var Cs,sa=k(()=>{h();Qr();Cs=EB});function SB(s){var e=this.__data__,t=Cs(e,s);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():TB.call(e,t,1),--this.size,!0}var CB,TB,_D,ND=k(()=>{h();sa();CB=Array.prototype,TB=CB.splice;_D=SB});function AB(s){var e=this.__data__,t=Cs(e,s);return t<0?void 0:e[t][1]}var BD,OD=k(()=>{h();sa();BD=AB});function jB(s){return Cs(this.__data__,s)>-1}var LD,zD=k(()=>{h();sa();LD=jB});function PB(s,e){var t=this.__data__,i=Cs(t,s);return i<0?(++this.size,t.push([s,e])):t[i][1]=e,this}var MD,RD=k(()=>{h();sa();MD=PB});function zi(s){var e=-1,t=s==null?0:s.length;for(this.clear();++e<t;){var i=s[e];this.set(i[0],i[1])}}var Ts,ia=k(()=>{h();ID();ND();OD();zD();RD();zi.prototype.clear=FD;zi.prototype.delete=_D;zi.prototype.get=BD;zi.prototype.has=LD;zi.prototype.set=MD;Ts=zi});var FB,co,Rl=k(()=>{h();eo();Ks();FB=_i(gt,"Map"),co=FB});function IB(){this.size=0,this.__data__={hash:new Ml,map:new(co||Ts),string:new Ml}}var qD,UD=k(()=>{h();PD();ia();Rl();qD=IB});function _B(s){var e=typeof s;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?s!=="__proto__":s===null}var HD,$D=k(()=>{h();HD=_B});function NB(s,e){var t=s.__data__;return HD(e)?t[typeof e=="string"?"string":"hash"]:t.map}var Ss,ra=k(()=>{h();$D();Ss=NB});function BB(s){var e=Ss(this,s).delete(s);return this.size-=e?1:0,e}var VD,WD=k(()=>{h();ra();VD=BB});function OB(s){return Ss(this,s).get(s)}var GD,KD=k(()=>{h();ra();GD=OB});function LB(s){return Ss(this,s).has(s)}var JD,XD=k(()=>{h();ra();JD=LB});function zB(s,e){var t=Ss(this,s),i=t.size;return t.set(s,e),this.size+=t.size==i?0:1,this}var YD,QD=k(()=>{h();ra();YD=zB});function Mi(s){var e=-1,t=s==null?0:s.length;for(this.clear();++e<t;){var i=s[e];this.set(i[0],i[1])}}var ZD,e0=k(()=>{h();UD();WD();KD();XD();QD();Mi.prototype.clear=qD;Mi.prototype.delete=VD;Mi.prototype.get=GD;Mi.prototype.has=JD;Mi.prototype.set=YD;ZD=Mi});var MB,lo,ql=k(()=>{h();mD();MB=fD(Object.getPrototypeOf,Object),lo=MB});function VB(s){if(!Rt(s)||ks(s)!=RB)return!1;var e=lo(s);if(e===null)return!0;var t=HB.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&t0.call(t)==$B}var RB,qB,UB,t0,HB,$B,aa,Ul=k(()=>{h();Xr();ql();Fi();RB="[object Object]",qB=Function.prototype,UB=Object.prototype,t0=qB.toString,HB=UB.hasOwnProperty,$B=t0.call(Object);aa=VB});function WB(){this.__data__=new Ts,this.size=0}var s0,i0=k(()=>{h();ia();s0=WB});function GB(s){var e=this.__data__,t=e.delete(s);return this.size=e.size,t}var r0,a0=k(()=>{h();r0=GB});function KB(s){return this.__data__.get(s)}var n0,o0=k(()=>{h();n0=KB});function JB(s){return this.__data__.has(s)}var u0,c0=k(()=>{h();u0=JB});function YB(s,e){var t=this.__data__;if(t instanceof Ts){var i=t.__data__;if(!co||i.length<XB-1)return i.push([s,e]),this.size=++t.size,this;t=this.__data__=new ZD(i)}return t.set(s,e),this.size=t.size,this}var XB,l0,p0=k(()=>{h();ia();Rl();e0();XB=200;l0=YB});function Ri(s){var e=this.__data__=new Ts(s);this.size=e.size}var h0,d0=k(()=>{h();ia();i0();a0();o0();c0();p0();Ri.prototype.clear=s0;Ri.prototype.delete=r0;Ri.prototype.get=n0;Ri.prototype.has=u0;Ri.prototype.set=l0;h0=Ri});function ZB(s,e){if(e)return s.slice();var t=s.length,i=g0?g0(t):new s.constructor(t);return s.copy(i),i}var y0,f0,QB,m0,g0,x0,b0=k(()=>{h();Ks();y0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,f0=y0&&typeof module=="object"&&module&&!module.nodeType&&module,QB=f0&&f0.exports===y0,m0=QB?gt.Buffer:void 0,g0=m0?m0.allocUnsafe:void 0;x0=ZB});var e6,Hl,w0=k(()=>{h();Ks();e6=gt.Uint8Array,Hl=e6});function t6(s){var e=new s.constructor(s.byteLength);return new Hl(e).set(new Hl(s)),e}var D0,k0=k(()=>{h();w0();D0=t6});function s6(s,e){var t=e?D0(s.buffer):s.buffer;return new s.constructor(t,s.byteOffset,s.length)}var v0,E0=k(()=>{h();k0();v0=s6});function i6(s){return typeof s.constructor=="function"&&!ao(s)?vw(lo(s)):{}}var C0,T0=k(()=>{h();Ew();ql();Fl();C0=i6});function r6(s){return function(e,t,i){for(var r=-1,a=Object(e),n=i(e),o=n.length;o--;){var u=n[s?o:++r];if(t(a[u],u,a)===!1)break}return e}}var S0,A0=k(()=>{h();S0=r6});var a6,j0,P0=k(()=>{h();A0();a6=S0(),j0=a6});function n6(s,e,t){(t!==void 0&&!Es(s[e],t)||t===void 0&&!(e in s))&&Bi(s,e,t)}var na,$l=k(()=>{h();so();Qr();na=n6});function o6(s){return Rt(s)&&Oi(s)}var F0,I0=k(()=>{h();ro();Fi();F0=o6});function u6(s,e){if(!(e==="constructor"&&typeof s[e]=="function")&&e!="__proto__")return s[e]}var oa,Vl=k(()=>{h();oa=u6});function c6(s){return Mw(s,uo(s))}var _0,N0=k(()=>{h();Rw();zl();_0=c6});function l6(s,e,t,i,r,a,n){var o=oa(s,t),u=oa(e,t),c=n.get(u);if(c){na(s,t,c);return}var l=a?a(o,u,t+"",s,e,n):void 0,p=l===void 0;if(p){var d=Yr(u),m=!d&&no(u),f=!d&&!m&&oo(u);l=u,d||m||f?Yr(o)?l=o:F0(o)?l=Sw(o):m?(p=!1,l=x0(u,!0)):f?(p=!1,l=v0(u,!0)):l=[]:aa(u)||Zr(u)?(l=o,Zr(o)?l=_0(o):(!at(o)||Ii(o))&&(l=C0(u))):p=!1}p&&(n.set(u,l),r(l,u,i,a,n),n.delete(u)),na(s,t,l)}var B0,O0=k(()=>{h();$l();b0();E0();Aw();T0();_l();Tl();I0();Nl();Qn();vs();Ul();Ll();Vl();N0();B0=l6});function L0(s,e,t,i,r){s!==e&&j0(e,function(a,n){if(r||(r=new h0),at(a))B0(s,e,n,t,L0,i,r);else{var o=i?i(oa(s,n),a,n+"",s,e,r):void 0;o===void 0&&(o=a),na(s,n,o)}},uo)}var z0,M0=k(()=>{h();d0();$l();P0();O0();vs();zl();Vl();z0=L0});var p6,Wl,R0=k(()=>{h();M0();Jw();p6=Kw(function(s,e,t){z0(s,e,t)}),Wl=p6});var q0=k(()=>{h();Ul();R0();});var J0={};pr(J0,{decode:()=>Xl,default:()=>b6,encode:()=>Yl,toASCII:()=>K0,toUnicode:()=>G0,ucs2decode:()=>Jl,ucs2encode:()=>V0});function As(s){throw new RangeError(m6[s])}function g6(s,e){let t=[],i=s.length;for(;i--;)t[i]=e(s[i]);return t}function $0(s,e){let t=s.split("@"),i="";t.length>1&&(i=t[0]+"@",s=t[1]),s=s.replace(f6,".");let r=s.split("."),a=g6(r,e).join(".");return i+a}function Jl(s){let e=[],t=0,i=s.length;for(;t<i;){let r=s.charCodeAt(t++);if(r>=55296&&r<=56319&&t<i){let a=s.charCodeAt(t++);(a&64512)==56320?e.push(((r&1023)<<10)+(a&1023)+65536):(e.push(r),t--)}else e.push(r)}return e}var H0,h6,d6,f6,m6,Gl,qt,Kl,V0,y6,U0,W0,Xl,Yl,G0,K0,x6,b6,X0=k(()=>{"use strict";h();H0="-",h6=/^xn--/,d6=/[^\0-\x7F]/,f6=/[\x2E\u3002\uFF0E\uFF61]/g,m6={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Gl=35,qt=Math.floor,Kl=String.fromCharCode;V0=s=>String.fromCodePoint(...s),y6=function(s){return s>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36},U0=function(s,e){return s+22+75*(s<26)-((e!=0)<<5)},W0=function(s,e,t){let i=0;for(s=t?qt(s/700):s>>1,s+=qt(s/e);s>Gl*26>>1;i+=36)s=qt(s/Gl);return qt(i+(Gl+1)*s/(s+38))},Xl=function(s){let e=[],t=s.length,i=0,r=128,a=72,n=s.lastIndexOf(H0);n<0&&(n=0);for(let o=0;o<n;++o)s.charCodeAt(o)>=128&&As("not-basic"),e.push(s.charCodeAt(o));for(let o=n>0?n+1:0;o<t;){let u=i;for(let l=1,p=36;;p+=36){o>=t&&As("invalid-input");let d=y6(s.charCodeAt(o++));d>=36&&As("invalid-input"),d>qt((2147483647-i)/l)&&As("overflow"),i+=d*l;let m=p<=a?1:p>=a+26?26:p-a;if(d<m)break;let f=36-m;l>qt(2147483647/f)&&As("overflow"),l*=f}let c=e.length+1;a=W0(i-u,c,u==0),qt(i/c)>2147483647-r&&As("overflow"),r+=qt(i/c),i%=c,e.splice(i++,0,r)}return String.fromCodePoint(...e)},Yl=function(s){let e=[];s=Jl(s);let t=s.length,i=128,r=0,a=72;for(let u of s)u<128&&e.push(Kl(u));let n=e.length,o=n;for(n&&e.push(H0);o<t;){let u=2147483647;for(let l of s)l>=i&&l<u&&(u=l);let c=o+1;u-i>qt((2147483647-r)/c)&&As("overflow"),r+=(u-i)*c,i=u;for(let l of s)if(l<i&&++r>2147483647&&As("overflow"),l===i){let p=r;for(let d=36;;d+=36){let m=d<=a?1:d>=a+26?26:d-a;if(p<m)break;let f=p-m,g=36-m;e.push(Kl(U0(m+f%g,0))),p=qt(f/g)}e.push(Kl(U0(p,0))),a=W0(r,c,o===n),r=0,++o}++r,++i}return e.join("")},G0=function(s){return $0(s,function(e){return h6.test(e)?Xl(e.slice(4).toLowerCase()):e})},K0=function(s){return $0(s,function(e){return d6.test(e)?"xn--"+Yl(e):e})},x6={version:"2.3.1",ucs2:{decode:Jl,encode:V0},decode:Xl,encode:Yl,toASCII:K0,toUnicode:G0},b6=x6});var Q0=O((HQ,Y0)=>{"use strict";h();Y0.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var tk=O(Ql=>{"use strict";h();var w6=Object.prototype.hasOwnProperty,D6;function Z0(s){try{return decodeURIComponent(s.replace(/\+/g," "))}catch{return null}}function ek(s){try{return encodeURIComponent(s)}catch{return null}}function k6(s){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},i;i=e.exec(s);){var r=Z0(i[1]),a=Z0(i[2]);r===null||a===null||r in t||(t[r]=a)}return t}function v6(s,e){e=e||"";var t=[],i,r;typeof e!="string"&&(e="?");for(r in s)if(w6.call(s,r)){if(i=s[r],!i&&(i===null||i===D6||isNaN(i))&&(i=""),r=ek(r),i=ek(i),r===null||i===null)continue;t.push(r+"="+i)}return t.length?e+t.join("&"):""}Ql.stringify=v6;Ql.parse=k6});var ck=O((GQ,uk)=>{"use strict";h();var ik=Q0(),po=tk(),E6=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,rk=/[\n\r\t]/g,C6=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,ak=/:\d+$/,T6=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,S6=/^[a-zA-Z]:/;function ep(s){return(s||"").toString().replace(E6,"")}var Zl=[["#","hash"],["?","query"],function(e,t){return Ut(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],sk={hash:1,query:1};function nk(s){var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e={};var t=e.location||{};s=s||t;var i={},r=typeof s,a;if(s.protocol==="blob:")i=new Ht(unescape(s.pathname),{});else if(r==="string"){i=new Ht(s,{});for(a in sk)delete i[a]}else if(r==="object"){for(a in s)a in sk||(i[a]=s[a]);i.slashes===void 0&&(i.slashes=C6.test(s.href))}return i}function Ut(s){return s==="file:"||s==="ftp:"||s==="http:"||s==="https:"||s==="ws:"||s==="wss:"}function ok(s,e){s=ep(s),s=s.replace(rk,""),e=e||{};var t=T6.exec(s),i=t[1]?t[1].toLowerCase():"",r=!!t[2],a=!!t[3],n=0,o;return r?a?(o=t[2]+t[3]+t[4],n=t[2].length+t[3].length):(o=t[2]+t[4],n=t[2].length):a?(o=t[3]+t[4],n=t[3].length):o=t[4],i==="file:"?n>=2&&(o=o.slice(2)):Ut(i)?o=t[4]:i?r&&(o=o.slice(2)):n>=2&&Ut(e.protocol)&&(o=t[4]),{protocol:i,slashes:r||Ut(i),slashesCount:n,rest:o}}function A6(s,e){if(s==="")return e;for(var t=(e||"/").split("/").slice(0,-1).concat(s.split("/")),i=t.length,r=t[i-1],a=!1,n=0;i--;)t[i]==="."?t.splice(i,1):t[i]===".."?(t.splice(i,1),n++):n&&(i===0&&(a=!0),t.splice(i,1),n--);return a&&t.unshift(""),(r==="."||r==="..")&&t.push(""),t.join("/")}function Ht(s,e,t){if(s=ep(s),s=s.replace(rk,""),!(this instanceof Ht))return new Ht(s,e,t);var i,r,a,n,o,u,c=Zl.slice(),l=typeof e,p=this,d=0;for(l!=="object"&&l!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=po.parse),e=nk(e),r=ok(s||"",e),i=!r.protocol&&!r.slashes,p.slashes=r.slashes||i&&e.slashes,p.protocol=r.protocol||e.protocol||"",s=r.rest,(r.protocol==="file:"&&(r.slashesCount!==2||S6.test(s))||!r.slashes&&(r.protocol||r.slashesCount<2||!Ut(p.protocol)))&&(c[3]=[/(.*)/,"pathname"]);d<c.length;d++){if(n=c[d],typeof n=="function"){s=n(s,p);continue}a=n[0],u=n[1],a!==a?p[u]=s:typeof a=="string"?(o=a==="@"?s.lastIndexOf(a):s.indexOf(a),~o&&(typeof n[2]=="number"?(p[u]=s.slice(0,o),s=s.slice(o+n[2])):(p[u]=s.slice(o),s=s.slice(0,o)))):(o=a.exec(s))&&(p[u]=o[1],s=s.slice(0,o.index)),p[u]=p[u]||i&&n[3]&&e[u]||"",n[4]&&(p[u]=p[u].toLowerCase())}t&&(p.query=t(p.query)),i&&e.slashes&&p.pathname.charAt(0)!=="/"&&(p.pathname!==""||e.pathname!=="")&&(p.pathname=A6(p.pathname,e.pathname)),p.pathname.charAt(0)!=="/"&&Ut(p.protocol)&&(p.pathname="/"+p.pathname),ik(p.port,p.protocol)||(p.host=p.hostname,p.port=""),p.username=p.password="",p.auth&&(o=p.auth.indexOf(":"),~o?(p.username=p.auth.slice(0,o),p.username=encodeURIComponent(decodeURIComponent(p.username)),p.password=p.auth.slice(o+1),p.password=encodeURIComponent(decodeURIComponent(p.password))):p.username=encodeURIComponent(decodeURIComponent(p.auth)),p.auth=p.password?p.username+":"+p.password:p.username),p.origin=p.protocol!=="file:"&&Ut(p.protocol)&&p.host?p.protocol+"//"+p.host:"null",p.href=p.toString()}function j6(s,e,t){var i=this;switch(s){case"query":typeof e=="string"&&e.length&&(e=(t||po.parse)(e)),i[s]=e;break;case"port":i[s]=e,ik(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[s]="");break;case"hostname":i[s]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[s]=e,ak.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!t;break;case"pathname":case"hash":if(e){var r=s==="pathname"?"/":"#";i[s]=e.charAt(0)!==r?r+e:e}else i[s]=e;break;case"username":case"password":i[s]=encodeURIComponent(e);break;case"auth":var a=e.indexOf(":");~a?(i.username=e.slice(0,a),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(a+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var n=0;n<Zl.length;n++){var o=Zl[n];o[4]&&(i[o[1]]=i[o[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&Ut(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function P6(s){(!s||typeof s!="function")&&(s=po.stringify);var e,t=this,i=t.host,r=t.protocol;r&&r.charAt(r.length-1)!==":"&&(r+=":");var a=r+(t.protocol&&t.slashes||Ut(t.protocol)?"//":"");return t.username?(a+=t.username,t.password&&(a+=":"+t.password),a+="@"):t.password?(a+=":"+t.password,a+="@"):t.protocol!=="file:"&&Ut(t.protocol)&&!i&&t.pathname!=="/"&&(a+="@"),(i[i.length-1]===":"||ak.test(t.hostname)&&!t.port)&&(i+=":"),a+=i+t.pathname,e=typeof t.query=="object"?s(t.query):t.query,e&&(a+=e.charAt(0)!=="?"?"?"+e:e),t.hash&&(a+=t.hash),a}Ht.prototype={set:j6,toString:P6};Ht.extractProtocol=ok;Ht.location=nk;Ht.trimLeft=ep;Ht.qs=po;uk.exports=Ht});var fk=O(Js=>{"use strict";h();Object.defineProperties(Js,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function F6(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var tp,lk;function I6(){if(lk)return tp;lk=1;let s=2147483647,e=36,t=1,i=26,r=38,a=700,n=72,o=128,u="-",c=/^xn--/,l=/[^\0-\x7F]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=e-t,f=Math.floor,g=String.fromCharCode;function y($){throw new RangeError(d[$])}function w($,ue){let W=[],_=$.length;for(;_--;)W[_]=ue($[_]);return W}function T($,ue){let W=$.split("@"),_="";W.length>1&&(_=W[0]+"@",$=W[1]),$=$.replace(p,".");let B=$.split("."),V=w(B,ue).join(".");return _+V}function S($){let ue=[],W=0,_=$.length;for(;W<_;){let B=$.charCodeAt(W++);if(B>=55296&&B<=56319&&W<_){let V=$.charCodeAt(W++);(V&64512)==56320?ue.push(((B&1023)<<10)+(V&1023)+65536):(ue.push(B),W--)}else ue.push(B)}return ue}let E=$=>String.fromCodePoint(...$),A=function($){return $>=48&&$<58?26+($-48):$>=65&&$<91?$-65:$>=97&&$<123?$-97:e},F=function($,ue){return $+22+75*($<26)-((ue!=0)<<5)},H=function($,ue,W){let _=0;for($=W?f($/a):$>>1,$+=f($/ue);$>m*i>>1;_+=e)$=f($/m);return f(_+(m+1)*$/($+r))},ee=function($){let ue=[],W=$.length,_=0,B=o,V=n,q=$.lastIndexOf(u);q<0&&(q=0);for(let Y=0;Y<q;++Y)$.charCodeAt(Y)>=128&&y("not-basic"),ue.push($.charCodeAt(Y));for(let Y=q>0?q+1:0;Y<W;){let Q=_;for(let P=1,I=e;;I+=e){Y>=W&&y("invalid-input");let R=A($.charCodeAt(Y++));R>=e&&y("invalid-input"),R>f((s-_)/P)&&y("overflow"),_+=R*P;let J=I<=V?t:I>=V+i?i:I-V;if(R<J)break;let ae=e-J;P>f(s/ae)&&y("overflow"),P*=ae}let ce=ue.length+1;V=H(_-Q,ce,Q==0),f(_/ce)>s-B&&y("overflow"),B+=f(_/ce),_%=ce,ue.splice(_++,0,B)}return String.fromCodePoint(...ue)},te=function($){let ue=[];$=S($);let W=$.length,_=o,B=0,V=n;for(let Q of $)Q<128&&ue.push(g(Q));let q=ue.length,Y=q;for(q&&ue.push(u);Y<W;){let Q=s;for(let P of $)P>=_&&P<Q&&(Q=P);let ce=Y+1;Q-_>f((s-B)/ce)&&y("overflow"),B+=(Q-_)*ce,_=Q;for(let P of $)if(P<_&&++B>s&&y("overflow"),P===_){let I=B;for(let R=e;;R+=e){let J=R<=V?t:R>=V+i?i:R-V;if(I<J)break;let ae=I-J,le=e-J;ue.push(g(F(J+ae%le,0))),I=f(ae/le)}ue.push(g(F(I,0))),V=H(B,ce,Y===q),B=0,++Y}++B,++_}return ue.join("")};return tp={version:"2.3.1",ucs2:{decode:S,encode:E},decode:ee,encode:te,toASCII:function($){return T($,function(ue){return l.test(ue)?"xn--"+te(ue):ue})},toUnicode:function($){return T($,function(ue){return c.test(ue)?ee(ue.slice(4).toLowerCase()):ue})}},tp}var _6=I6(),ua=F6(_6),N6=["ac","com.ac","edu.ac","gov.ac","mil.ac","net.ac","org.ac","ad","ae","ac.ae","co.ae","gov.ae","mil.ae","net.ae","org.ae","sch.ae","aero","airline.aero","airport.aero","accident-investigation.aero","accident-prevention.aero","aerobatic.aero","aeroclub.aero","aerodrome.aero","agents.aero","air-surveillance.aero","air-traffic-control.aero","aircraft.aero","airtraffic.aero","ambulance.aero","association.aero","author.aero","ballooning.aero","broker.aero","caa.aero","cargo.aero","catering.aero","certification.aero","championship.aero","charter.aero","civilaviation.aero","club.aero","conference.aero","consultant.aero","consulting.aero","control.aero","council.aero","crew.aero","design.aero","dgca.aero","educator.aero","emergency.aero","engine.aero","engineer.aero","entertainment.aero","equipment.aero","exchange.aero","express.aero","federation.aero","flight.aero","freight.aero","fuel.aero","gliding.aero","government.aero","groundhandling.aero","group.aero","hanggliding.aero","homebuilt.aero","insurance.aero","journal.aero","journalist.aero","leasing.aero","logistics.aero","magazine.aero","maintenance.aero","marketplace.aero","media.aero","microlight.aero","modelling.aero","navigation.aero","parachuting.aero","paragliding.aero","passenger-association.aero","pilot.aero","press.aero","production.aero","recreation.aero","repbody.aero","res.aero","research.aero","rotorcraft.aero","safety.aero","scientist.aero","services.aero","show.aero","skydiving.aero","software.aero","student.aero","taxi.aero","trader.aero","trading.aero","trainer.aero","union.aero","workinggroup.aero","works.aero","af","com.af","edu.af","gov.af","net.af","org.af","ag","co.ag","com.ag","net.ag","nom.ag","org.ag","ai","com.ai","net.ai","off.ai","org.ai","al","com.al","edu.al","gov.al","mil.al","net.al","org.al","am","co.am","com.am","commune.am","net.am","org.am","ao","co.ao","ed.ao","edu.ao","gov.ao","gv.ao","it.ao","og.ao","org.ao","pb.ao","aq","ar","bet.ar","com.ar","coop.ar","edu.ar","gob.ar","gov.ar","int.ar","mil.ar","musica.ar","mutual.ar","net.ar","org.ar","senasa.ar","tur.ar","arpa","e164.arpa","home.arpa","in-addr.arpa","ip6.arpa","iris.arpa","uri.arpa","urn.arpa","as","gov.as","asia","at","ac.at","sth.ac.at","co.at","gv.at","or.at","au","asn.au","com.au","edu.au","gov.au","id.au","net.au","org.au","conf.au","oz.au","act.au","nsw.au","nt.au","qld.au","sa.au","tas.au","vic.au","wa.au","act.edu.au","catholic.edu.au","nsw.edu.au","nt.edu.au","qld.edu.au","sa.edu.au","tas.edu.au","vic.edu.au","wa.edu.au","qld.gov.au","sa.gov.au","tas.gov.au","vic.gov.au","wa.gov.au","schools.nsw.edu.au","aw","com.aw","ax","az","biz.az","com.az","edu.az","gov.az","info.az","int.az","mil.az","name.az","net.az","org.az","pp.az","pro.az","ba","com.ba","edu.ba","gov.ba","mil.ba","net.ba","org.ba","bb","biz.bb","co.bb","com.bb","edu.bb","gov.bb","info.bb","net.bb","org.bb","store.bb","tv.bb","*.bd","be","ac.be","bf","gov.bf","bg","0.bg","1.bg","2.bg","3.bg","4.bg","5.bg","6.bg","7.bg","8.bg","9.bg","a.bg","b.bg","c.bg","d.bg","e.bg","f.bg","g.bg","h.bg","i.bg","j.bg","k.bg","l.bg","m.bg","n.bg","o.bg","p.bg","q.bg","r.bg","s.bg","t.bg","u.bg","v.bg","w.bg","x.bg","y.bg","z.bg","bh","com.bh","edu.bh","gov.bh","net.bh","org.bh","bi","co.bi","com.bi","edu.bi","or.bi","org.bi","biz","bj","africa.bj","agro.bj","architectes.bj","assur.bj","avocats.bj","co.bj","com.bj","eco.bj","econo.bj","edu.bj","info.bj","loisirs.bj","money.bj","net.bj","org.bj","ote.bj","restaurant.bj","resto.bj","tourism.bj","univ.bj","bm","com.bm","edu.bm","gov.bm","net.bm","org.bm","bn","com.bn","edu.bn","gov.bn","net.bn","org.bn","bo","com.bo","edu.bo","gob.bo","int.bo","mil.bo","net.bo","org.bo","tv.bo","web.bo","academia.bo","agro.bo","arte.bo","blog.bo","bolivia.bo","ciencia.bo","cooperativa.bo","democracia.bo","deporte.bo","ecologia.bo","economia.bo","empresa.bo","indigena.bo","industria.bo","info.bo","medicina.bo","movimiento.bo","musica.bo","natural.bo","nombre.bo","noticias.bo","patria.bo","plurinacional.bo","politica.bo","profesional.bo","pueblo.bo","revista.bo","salud.bo","tecnologia.bo","tksat.bo","transporte.bo","wiki.bo","br","9guacu.br","abc.br","adm.br","adv.br","agr.br","aju.br","am.br","anani.br","aparecida.br","app.br","arq.br","art.br","ato.br","b.br","barueri.br","belem.br","bet.br","bhz.br","bib.br","bio.br","blog.br","bmd.br","boavista.br","bsb.br","campinagrande.br","campinas.br","caxias.br","cim.br","cng.br","cnt.br","com.br","contagem.br","coop.br","coz.br","cri.br","cuiaba.br","curitiba.br","def.br","des.br","det.br","dev.br","ecn.br","eco.br","edu.br","emp.br","enf.br","eng.br","esp.br","etc.br","eti.br","far.br","feira.br","flog.br","floripa.br","fm.br","fnd.br","fortal.br","fot.br","foz.br","fst.br","g12.br","geo.br","ggf.br","goiania.br","gov.br","ac.gov.br","al.gov.br","am.gov.br","ap.gov.br","ba.gov.br","ce.gov.br","df.gov.br","es.gov.br","go.gov.br","ma.gov.br","mg.gov.br","ms.gov.br","mt.gov.br","pa.gov.br","pb.gov.br","pe.gov.br","pi.gov.br","pr.gov.br","rj.gov.br","rn.gov.br","ro.gov.br","rr.gov.br","rs.gov.br","sc.gov.br","se.gov.br","sp.gov.br","to.gov.br","gru.br","imb.br","ind.br","inf.br","jab.br","jampa.br","jdf.br","joinville.br","jor.br","jus.br","leg.br","leilao.br","lel.br","log.br","londrina.br","macapa.br","maceio.br","manaus.br","maringa.br","mat.br","med.br","mil.br","morena.br","mp.br","mus.br","natal.br","net.br","niteroi.br","*.nom.br","not.br","ntr.br","odo.br","ong.br","org.br","osasco.br","palmas.br","poa.br","ppg.br","pro.br","psc.br","psi.br","pvh.br","qsl.br","radio.br","rec.br","recife.br","rep.br","ribeirao.br","rio.br","riobranco.br","riopreto.br","salvador.br","sampa.br","santamaria.br","santoandre.br","saobernardo.br","saogonca.br","seg.br","sjc.br","slg.br","slz.br","sorocaba.br","srv.br","taxi.br","tc.br","tec.br","teo.br","the.br","tmp.br","trd.br","tur.br","tv.br","udi.br","vet.br","vix.br","vlog.br","wiki.br","zlg.br","bs","com.bs","edu.bs","gov.bs","net.bs","org.bs","bt","com.bt","edu.bt","gov.bt","net.bt","org.bt","bv","bw","co.bw","org.bw","by","gov.by","mil.by","com.by","of.by","bz","co.bz","com.bz","edu.bz","gov.bz","net.bz","org.bz","ca","ab.ca","bc.ca","mb.ca","nb.ca","nf.ca","nl.ca","ns.ca","nt.ca","nu.ca","on.ca","pe.ca","qc.ca","sk.ca","yk.ca","gc.ca","cat","cc","cd","gov.cd","cf","cg","ch","ci","ac.ci","aéroport.ci","asso.ci","co.ci","com.ci","ed.ci","edu.ci","go.ci","gouv.ci","int.ci","net.ci","or.ci","org.ci","*.ck","!www.ck","cl","co.cl","gob.cl","gov.cl","mil.cl","cm","co.cm","com.cm","gov.cm","net.cm","cn","ac.cn","com.cn","edu.cn","gov.cn","mil.cn","net.cn","org.cn","公司.cn","網絡.cn","网络.cn","ah.cn","bj.cn","cq.cn","fj.cn","gd.cn","gs.cn","gx.cn","gz.cn","ha.cn","hb.cn","he.cn","hi.cn","hk.cn","hl.cn","hn.cn","jl.cn","js.cn","jx.cn","ln.cn","mo.cn","nm.cn","nx.cn","qh.cn","sc.cn","sd.cn","sh.cn","sn.cn","sx.cn","tj.cn","tw.cn","xj.cn","xz.cn","yn.cn","zj.cn","co","com.co","edu.co","gov.co","mil.co","net.co","nom.co","org.co","com","coop","cr","ac.cr","co.cr","ed.cr","fi.cr","go.cr","or.cr","sa.cr","cu","com.cu","edu.cu","gob.cu","inf.cu","nat.cu","net.cu","org.cu","cv","com.cv","edu.cv","id.cv","int.cv","net.cv","nome.cv","org.cv","publ.cv","cw","com.cw","edu.cw","net.cw","org.cw","cx","gov.cx","cy","ac.cy","biz.cy","com.cy","ekloges.cy","gov.cy","ltd.cy","mil.cy","net.cy","org.cy","press.cy","pro.cy","tm.cy","cz","de","dj","dk","dm","co.dm","com.dm","edu.dm","gov.dm","net.dm","org.dm","do","art.do","com.do","edu.do","gob.do","gov.do","mil.do","net.do","org.do","sld.do","web.do","dz","art.dz","asso.dz","com.dz","edu.dz","gov.dz","net.dz","org.dz","pol.dz","soc.dz","tm.dz","ec","com.ec","edu.ec","fin.ec","gob.ec","gov.ec","info.ec","k12.ec","med.ec","mil.ec","net.ec","org.ec","pro.ec","edu","ee","aip.ee","com.ee","edu.ee","fie.ee","gov.ee","lib.ee","med.ee","org.ee","pri.ee","riik.ee","eg","ac.eg","com.eg","edu.eg","eun.eg","gov.eg","info.eg","me.eg","mil.eg","name.eg","net.eg","org.eg","sci.eg","sport.eg","tv.eg","*.er","es","com.es","edu.es","gob.es","nom.es","org.es","et","biz.et","com.et","edu.et","gov.et","info.et","name.et","net.et","org.et","eu","fi","aland.fi","fj","ac.fj","biz.fj","com.fj","gov.fj","info.fj","mil.fj","name.fj","net.fj","org.fj","pro.fj","*.fk","fm","com.fm","edu.fm","net.fm","org.fm","fo","fr","asso.fr","com.fr","gouv.fr","nom.fr","prd.fr","tm.fr","avoues.fr","cci.fr","greta.fr","huissier-justice.fr","ga","gb","gd","edu.gd","gov.gd","ge","com.ge","edu.ge","gov.ge","net.ge","org.ge","pvt.ge","school.ge","gf","gg","co.gg","net.gg","org.gg","gh","com.gh","edu.gh","gov.gh","mil.gh","org.gh","gi","com.gi","edu.gi","gov.gi","ltd.gi","mod.gi","org.gi","gl","co.gl","com.gl","edu.gl","net.gl","org.gl","gm","gn","ac.gn","com.gn","edu.gn","gov.gn","net.gn","org.gn","gov","gp","asso.gp","com.gp","edu.gp","mobi.gp","net.gp","org.gp","gq","gr","com.gr","edu.gr","gov.gr","net.gr","org.gr","gs","gt","com.gt","edu.gt","gob.gt","ind.gt","mil.gt","net.gt","org.gt","gu","com.gu","edu.gu","gov.gu","guam.gu","info.gu","net.gu","org.gu","web.gu","gw","gy","co.gy","com.gy","edu.gy","gov.gy","net.gy","org.gy","hk","com.hk","edu.hk","gov.hk","idv.hk","net.hk","org.hk","个人.hk","個人.hk","公司.hk","政府.hk","敎育.hk","教育.hk","箇人.hk","組織.hk","組织.hk","網絡.hk","網络.hk","组織.hk","组织.hk","网絡.hk","网络.hk","hm","hn","com.hn","edu.hn","gob.hn","mil.hn","net.hn","org.hn","hr","com.hr","from.hr","iz.hr","name.hr","ht","adult.ht","art.ht","asso.ht","com.ht","coop.ht","edu.ht","firm.ht","gouv.ht","info.ht","med.ht","net.ht","org.ht","perso.ht","pol.ht","pro.ht","rel.ht","shop.ht","hu","2000.hu","agrar.hu","bolt.hu","casino.hu","city.hu","co.hu","erotica.hu","erotika.hu","film.hu","forum.hu","games.hu","hotel.hu","info.hu","ingatlan.hu","jogasz.hu","konyvelo.hu","lakas.hu","media.hu","news.hu","org.hu","priv.hu","reklam.hu","sex.hu","shop.hu","sport.hu","suli.hu","szex.hu","tm.hu","tozsde.hu","utazas.hu","video.hu","id","ac.id","biz.id","co.id","desa.id","go.id","mil.id","my.id","net.id","or.id","ponpes.id","sch.id","web.id","ie","gov.ie","il","ac.il","co.il","gov.il","idf.il","k12.il","muni.il","net.il","org.il","ישראל","אקדמיה.ישראל","ישוב.ישראל","צהל.ישראל","ממשל.ישראל","im","ac.im","co.im","ltd.co.im","plc.co.im","com.im","net.im","org.im","tt.im","tv.im","in","5g.in","6g.in","ac.in","ai.in","am.in","bihar.in","biz.in","business.in","ca.in","cn.in","co.in","com.in","coop.in","cs.in","delhi.in","dr.in","edu.in","er.in","firm.in","gen.in","gov.in","gujarat.in","ind.in","info.in","int.in","internet.in","io.in","me.in","mil.in","net.in","nic.in","org.in","pg.in","post.in","pro.in","res.in","travel.in","tv.in","uk.in","up.in","us.in","info","int","eu.int","io","co.io","com.io","edu.io","gov.io","mil.io","net.io","nom.io","org.io","iq","com.iq","edu.iq","gov.iq","mil.iq","net.iq","org.iq","ir","ac.ir","co.ir","gov.ir","id.ir","net.ir","org.ir","sch.ir","ایران.ir","ايران.ir","is","it","edu.it","gov.it","abr.it","abruzzo.it","aosta-valley.it","aostavalley.it","bas.it","basilicata.it","cal.it","calabria.it","cam.it","campania.it","emilia-romagna.it","emiliaromagna.it","emr.it","friuli-v-giulia.it","friuli-ve-giulia.it","friuli-vegiulia.it","friuli-venezia-giulia.it","friuli-veneziagiulia.it","friuli-vgiulia.it","friuliv-giulia.it","friulive-giulia.it","friulivegiulia.it","friulivenezia-giulia.it","friuliveneziagiulia.it","friulivgiulia.it","fvg.it","laz.it","lazio.it","lig.it","liguria.it","lom.it","lombardia.it","lombardy.it","lucania.it","mar.it","marche.it","mol.it","molise.it","piedmont.it","piemonte.it","pmn.it","pug.it","puglia.it","sar.it","sardegna.it","sardinia.it","sic.it","sicilia.it","sicily.it","taa.it","tos.it","toscana.it","trentin-sud-tirol.it","trentin-süd-tirol.it","trentin-sudtirol.it","trentin-südtirol.it","trentin-sued-tirol.it","trentin-suedtirol.it","trentino.it","trentino-a-adige.it","trentino-aadige.it","trentino-alto-adige.it","trentino-altoadige.it","trentino-s-tirol.it","trentino-stirol.it","trentino-sud-tirol.it","trentino-süd-tirol.it","trentino-sudtirol.it","trentino-südtirol.it","trentino-sued-tirol.it","trentino-suedtirol.it","trentinoa-adige.it","trentinoaadige.it","trentinoalto-adige.it","trentinoaltoadige.it","trentinos-tirol.it","trentinostirol.it","trentinosud-tirol.it","trentinosüd-tirol.it","trentinosudtirol.it","trentinosüdtirol.it","trentinosued-tirol.it","trentinosuedtirol.it","trentinsud-tirol.it","trentinsüd-tirol.it","trentinsudtirol.it","trentinsüdtirol.it","trentinsued-tirol.it","trentinsuedtirol.it","tuscany.it","umb.it","umbria.it","val-d-aosta.it","val-daosta.it","vald-aosta.it","valdaosta.it","valle-aosta.it","valle-d-aosta.it","valle-daosta.it","valleaosta.it","valled-aosta.it","valledaosta.it","vallee-aoste.it","vallée-aoste.it","vallee-d-aoste.it","vallée-d-aoste.it","valleeaoste.it","valléeaoste.it","valleedaoste.it","valléedaoste.it","vao.it","vda.it","ven.it","veneto.it","ag.it","agrigento.it","al.it","alessandria.it","alto-adige.it","altoadige.it","an.it","ancona.it","andria-barletta-trani.it","andria-trani-barletta.it","andriabarlettatrani.it","andriatranibarletta.it","ao.it","aosta.it","aoste.it","ap.it","aq.it","aquila.it","ar.it","arezzo.it","ascoli-piceno.it","ascolipiceno.it","asti.it","at.it","av.it","avellino.it","ba.it","balsan.it","balsan-sudtirol.it","balsan-südtirol.it","balsan-suedtirol.it","bari.it","barletta-trani-andria.it","barlettatraniandria.it","belluno.it","benevento.it","bergamo.it","bg.it","bi.it","biella.it","bl.it","bn.it","bo.it","bologna.it","bolzano.it","bolzano-altoadige.it","bozen.it","bozen-sudtirol.it","bozen-südtirol.it","bozen-suedtirol.it","br.it","brescia.it","brindisi.it","bs.it","bt.it","bulsan.it","bulsan-sudtirol.it","bulsan-südtirol.it","bulsan-suedtirol.it","bz.it","ca.it","cagliari.it","caltanissetta.it","campidano-medio.it","campidanomedio.it","campobasso.it","carbonia-iglesias.it","carboniaiglesias.it","carrara-massa.it","carraramassa.it","caserta.it","catania.it","catanzaro.it","cb.it","ce.it","cesena-forli.it","cesena-forlì.it","cesenaforli.it","cesenaforlì.it","ch.it","chieti.it","ci.it","cl.it","cn.it","co.it","como.it","cosenza.it","cr.it","cremona.it","crotone.it","cs.it","ct.it","cuneo.it","cz.it","dell-ogliastra.it","dellogliastra.it","en.it","enna.it","fc.it","fe.it","fermo.it","ferrara.it","fg.it","fi.it","firenze.it","florence.it","fm.it","foggia.it","forli-cesena.it","forlì-cesena.it","forlicesena.it","forlìcesena.it","fr.it","frosinone.it","ge.it","genoa.it","genova.it","go.it","gorizia.it","gr.it","grosseto.it","iglesias-carbonia.it","iglesiascarbonia.it","im.it","imperia.it","is.it","isernia.it","kr.it","la-spezia.it","laquila.it","laspezia.it","latina.it","lc.it","le.it","lecce.it","lecco.it","li.it","livorno.it","lo.it","lodi.it","lt.it","lu.it","lucca.it","macerata.it","mantova.it","massa-carrara.it","massacarrara.it","matera.it","mb.it","mc.it","me.it","medio-campidano.it","mediocampidano.it","messina.it","mi.it","milan.it","milano.it","mn.it","mo.it","modena.it","monza.it","monza-brianza.it","monza-e-della-brianza.it","monzabrianza.it","monzaebrianza.it","monzaedellabrianza.it","ms.it","mt.it","na.it","naples.it","napoli.it","no.it","novara.it","nu.it","nuoro.it","og.it","ogliastra.it","olbia-tempio.it","olbiatempio.it","or.it","oristano.it","ot.it","pa.it","padova.it","padua.it","palermo.it","parma.it","pavia.it","pc.it","pd.it","pe.it","perugia.it","pesaro-urbino.it","pesarourbino.it","pescara.it","pg.it","pi.it","piacenza.it","pisa.it","pistoia.it","pn.it","po.it","pordenone.it","potenza.it","pr.it","prato.it","pt.it","pu.it","pv.it","pz.it","ra.it","ragusa.it","ravenna.it","rc.it","re.it","reggio-calabria.it","reggio-emilia.it","reggiocalabria.it","reggioemilia.it","rg.it","ri.it","rieti.it","rimini.it","rm.it","rn.it","ro.it","roma.it","rome.it","rovigo.it","sa.it","salerno.it","sassari.it","savona.it","si.it","siena.it","siracusa.it","so.it","sondrio.it","sp.it","sr.it","ss.it","südtirol.it","suedtirol.it","sv.it","ta.it","taranto.it","te.it","tempio-olbia.it","tempioolbia.it","teramo.it","terni.it","tn.it","to.it","torino.it","tp.it","tr.it","trani-andria-barletta.it","trani-barletta-andria.it","traniandriabarletta.it","tranibarlettaandria.it","trapani.it","trento.it","treviso.it","trieste.it","ts.it","turin.it","tv.it","ud.it","udine.it","urbino-pesaro.it","urbinopesaro.it","va.it","varese.it","vb.it","vc.it","ve.it","venezia.it","venice.it","verbania.it","vercelli.it","verona.it","vi.it","vibo-valentia.it","vibovalentia.it","vicenza.it","viterbo.it","vr.it","vs.it","vt.it","vv.it","je","co.je","net.je","org.je","*.jm","jo","agri.jo","ai.jo","com.jo","edu.jo","eng.jo","fm.jo","gov.jo","mil.jo","net.jo","org.jo","per.jo","phd.jo","sch.jo","tv.jo","jobs","jp","ac.jp","ad.jp","co.jp","ed.jp","go.jp","gr.jp","lg.jp","ne.jp","or.jp","aichi.jp","akita.jp","aomori.jp","chiba.jp","ehime.jp","fukui.jp","fukuoka.jp","fukushima.jp","gifu.jp","gunma.jp","hiroshima.jp","hokkaido.jp","hyogo.jp","ibaraki.jp","ishikawa.jp","iwate.jp","kagawa.jp","kagoshima.jp","kanagawa.jp","kochi.jp","kumamoto.jp","kyoto.jp","mie.jp","miyagi.jp","miyazaki.jp","nagano.jp","nagasaki.jp","nara.jp","niigata.jp","oita.jp","okayama.jp","okinawa.jp","osaka.jp","saga.jp","saitama.jp","shiga.jp","shimane.jp","shizuoka.jp","tochigi.jp","tokushima.jp","tokyo.jp","tottori.jp","toyama.jp","wakayama.jp","yamagata.jp","yamaguchi.jp","yamanashi.jp","三重.jp","京都.jp","佐賀.jp","兵庫.jp","北海道.jp","千葉.jp","和歌山.jp","埼玉.jp","大分.jp","大阪.jp","奈良.jp","宮城.jp","宮崎.jp","富山.jp","山口.jp","山形.jp","山梨.jp","岐阜.jp","岡山.jp","岩手.jp","島根.jp","広島.jp","徳島.jp","愛媛.jp","愛知.jp","新潟.jp","東京.jp","栃木.jp","沖縄.jp","滋賀.jp","熊本.jp","石川.jp","神奈川.jp","福井.jp","福岡.jp","福島.jp","秋田.jp","群馬.jp","茨城.jp","長崎.jp","長野.jp","青森.jp","静岡.jp","香川.jp","高知.jp","鳥取.jp","鹿児島.jp","*.kawasaki.jp","!city.kawasaki.jp","*.kitakyushu.jp","!city.kitakyushu.jp","*.kobe.jp","!city.kobe.jp","*.nagoya.jp","!city.nagoya.jp","*.sapporo.jp","!city.sapporo.jp","*.sendai.jp","!city.sendai.jp","*.yokohama.jp","!city.yokohama.jp","aisai.aichi.jp","ama.aichi.jp","anjo.aichi.jp","asuke.aichi.jp","chiryu.aichi.jp","chita.aichi.jp","fuso.aichi.jp","gamagori.aichi.jp","handa.aichi.jp","hazu.aichi.jp","hekinan.aichi.jp","higashiura.aichi.jp","ichinomiya.aichi.jp","inazawa.aichi.jp","inuyama.aichi.jp","isshiki.aichi.jp","iwakura.aichi.jp","kanie.aichi.jp","kariya.aichi.jp","kasugai.aichi.jp","kira.aichi.jp","kiyosu.aichi.jp","komaki.aichi.jp","konan.aichi.jp","kota.aichi.jp","mihama.aichi.jp","miyoshi.aichi.jp","nishio.aichi.jp","nisshin.aichi.jp","obu.aichi.jp","oguchi.aichi.jp","oharu.aichi.jp","okazaki.aichi.jp","owariasahi.aichi.jp","seto.aichi.jp","shikatsu.aichi.jp","shinshiro.aichi.jp","shitara.aichi.jp","tahara.aichi.jp","takahama.aichi.jp","tobishima.aichi.jp","toei.aichi.jp","togo.aichi.jp","tokai.aichi.jp","tokoname.aichi.jp","toyoake.aichi.jp","toyohashi.aichi.jp","toyokawa.aichi.jp","toyone.aichi.jp","toyota.aichi.jp","tsushima.aichi.jp","yatomi.aichi.jp","akita.akita.jp","daisen.akita.jp","fujisato.akita.jp","gojome.akita.jp","hachirogata.akita.jp","happou.akita.jp","higashinaruse.akita.jp","honjo.akita.jp","honjyo.akita.jp","ikawa.akita.jp","kamikoani.akita.jp","kamioka.akita.jp","katagami.akita.jp","kazuno.akita.jp","kitaakita.akita.jp","kosaka.akita.jp","kyowa.akita.jp","misato.akita.jp","mitane.akita.jp","moriyoshi.akita.jp","nikaho.akita.jp","noshiro.akita.jp","odate.akita.jp","oga.akita.jp","ogata.akita.jp","semboku.akita.jp","yokote.akita.jp","yurihonjo.akita.jp","aomori.aomori.jp","gonohe.aomori.jp","hachinohe.aomori.jp","hashikami.aomori.jp","hiranai.aomori.jp","hirosaki.aomori.jp","itayanagi.aomori.jp","kuroishi.aomori.jp","misawa.aomori.jp","mutsu.aomori.jp","nakadomari.aomori.jp","noheji.aomori.jp","oirase.aomori.jp","owani.aomori.jp","rokunohe.aomori.jp","sannohe.aomori.jp","shichinohe.aomori.jp","shingo.aomori.jp","takko.aomori.jp","towada.aomori.jp","tsugaru.aomori.jp","tsuruta.aomori.jp","abiko.chiba.jp","asahi.chiba.jp","chonan.chiba.jp","chosei.chiba.jp","choshi.chiba.jp","chuo.chiba.jp","funabashi.chiba.jp","futtsu.chiba.jp","hanamigawa.chiba.jp","ichihara.chiba.jp","ichikawa.chiba.jp","ichinomiya.chiba.jp","inzai.chiba.jp","isumi.chiba.jp","kamagaya.chiba.jp","kamogawa.chiba.jp","kashiwa.chiba.jp","katori.chiba.jp","katsuura.chiba.jp","kimitsu.chiba.jp","kisarazu.chiba.jp","kozaki.chiba.jp","kujukuri.chiba.jp","kyonan.chiba.jp","matsudo.chiba.jp","midori.chiba.jp","mihama.chiba.jp","minamiboso.chiba.jp","mobara.chiba.jp","mutsuzawa.chiba.jp","nagara.chiba.jp","nagareyama.chiba.jp","narashino.chiba.jp","narita.chiba.jp","noda.chiba.jp","oamishirasato.chiba.jp","omigawa.chiba.jp","onjuku.chiba.jp","otaki.chiba.jp","sakae.chiba.jp","sakura.chiba.jp","shimofusa.chiba.jp","shirako.chiba.jp","shiroi.chiba.jp","shisui.chiba.jp","sodegaura.chiba.jp","sosa.chiba.jp","tako.chiba.jp","tateyama.chiba.jp","togane.chiba.jp","tohnosho.chiba.jp","tomisato.chiba.jp","urayasu.chiba.jp","yachimata.chiba.jp","yachiyo.chiba.jp","yokaichiba.chiba.jp","yokoshibahikari.chiba.jp","yotsukaido.chiba.jp","ainan.ehime.jp","honai.ehime.jp","ikata.ehime.jp","imabari.ehime.jp","iyo.ehime.jp","kamijima.ehime.jp","kihoku.ehime.jp","kumakogen.ehime.jp","masaki.ehime.jp","matsuno.ehime.jp","matsuyama.ehime.jp","namikata.ehime.jp","niihama.ehime.jp","ozu.ehime.jp","saijo.ehime.jp","seiyo.ehime.jp","shikokuchuo.ehime.jp","tobe.ehime.jp","toon.ehime.jp","uchiko.ehime.jp","uwajima.ehime.jp","yawatahama.ehime.jp","echizen.fukui.jp","eiheiji.fukui.jp","fukui.fukui.jp","ikeda.fukui.jp","katsuyama.fukui.jp","mihama.fukui.jp","minamiechizen.fukui.jp","obama.fukui.jp","ohi.fukui.jp","ono.fukui.jp","sabae.fukui.jp","sakai.fukui.jp","takahama.fukui.jp","tsuruga.fukui.jp","wakasa.fukui.jp","ashiya.fukuoka.jp","buzen.fukuoka.jp","chikugo.fukuoka.jp","chikuho.fukuoka.jp","chikujo.fukuoka.jp","chikushino.fukuoka.jp","chikuzen.fukuoka.jp","chuo.fukuoka.jp","dazaifu.fukuoka.jp","fukuchi.fukuoka.jp","hakata.fukuoka.jp","higashi.fukuoka.jp","hirokawa.fukuoka.jp","hisayama.fukuoka.jp","iizuka.fukuoka.jp","inatsuki.fukuoka.jp","kaho.fukuoka.jp","kasuga.fukuoka.jp","kasuya.fukuoka.jp","kawara.fukuoka.jp","keisen.fukuoka.jp","koga.fukuoka.jp","kurate.fukuoka.jp","kurogi.fukuoka.jp","kurume.fukuoka.jp","minami.fukuoka.jp","miyako.fukuoka.jp","miyama.fukuoka.jp","miyawaka.fukuoka.jp","mizumaki.fukuoka.jp","munakata.fukuoka.jp","nakagawa.fukuoka.jp","nakama.fukuoka.jp","nishi.fukuoka.jp","nogata.fukuoka.jp","ogori.fukuoka.jp","okagaki.fukuoka.jp","okawa.fukuoka.jp","oki.fukuoka.jp","omuta.fukuoka.jp","onga.fukuoka.jp","onojo.fukuoka.jp","oto.fukuoka.jp","saigawa.fukuoka.jp","sasaguri.fukuoka.jp","shingu.fukuoka.jp","shinyoshitomi.fukuoka.jp","shonai.fukuoka.jp","soeda.fukuoka.jp","sue.fukuoka.jp","tachiarai.fukuoka.jp","tagawa.fukuoka.jp","takata.fukuoka.jp","toho.fukuoka.jp","toyotsu.fukuoka.jp","tsuiki.fukuoka.jp","ukiha.fukuoka.jp","umi.fukuoka.jp","usui.fukuoka.jp","yamada.fukuoka.jp","yame.fukuoka.jp","yanagawa.fukuoka.jp","yukuhashi.fukuoka.jp","aizubange.fukushima.jp","aizumisato.fukushima.jp","aizuwakamatsu.fukushima.jp","asakawa.fukushima.jp","bandai.fukushima.jp","date.fukushima.jp","fukushima.fukushima.jp","furudono.fukushima.jp","futaba.fukushima.jp","hanawa.fukushima.jp","higashi.fukushima.jp","hirata.fukushima.jp","hirono.fukushima.jp","iitate.fukushima.jp","inawashiro.fukushima.jp","ishikawa.fukushima.jp","iwaki.fukushima.jp","izumizaki.fukushima.jp","kagamiishi.fukushima.jp","kaneyama.fukushima.jp","kawamata.fukushima.jp","kitakata.fukushima.jp","kitashiobara.fukushima.jp","koori.fukushima.jp","koriyama.fukushima.jp","kunimi.fukushima.jp","miharu.fukushima.jp","mishima.fukushima.jp","namie.fukushima.jp","nango.fukushima.jp","nishiaizu.fukushima.jp","nishigo.fukushima.jp","okuma.fukushima.jp","omotego.fukushima.jp","ono.fukushima.jp","otama.fukushima.jp","samegawa.fukushima.jp","shimogo.fukushima.jp","shirakawa.fukushima.jp","showa.fukushima.jp","soma.fukushima.jp","sukagawa.fukushima.jp","taishin.fukushima.jp","tamakawa.fukushima.jp","tanagura.fukushima.jp","tenei.fukushima.jp","yabuki.fukushima.jp","yamato.fukushima.jp","yamatsuri.fukushima.jp","yanaizu.fukushima.jp","yugawa.fukushima.jp","anpachi.gifu.jp","ena.gifu.jp","gifu.gifu.jp","ginan.gifu.jp","godo.gifu.jp","gujo.gifu.jp","hashima.gifu.jp","hichiso.gifu.jp","hida.gifu.jp","higashishirakawa.gifu.jp","ibigawa.gifu.jp","ikeda.gifu.jp","kakamigahara.gifu.jp","kani.gifu.jp","kasahara.gifu.jp","kasamatsu.gifu.jp","kawaue.gifu.jp","kitagata.gifu.jp","mino.gifu.jp","minokamo.gifu.jp","mitake.gifu.jp","mizunami.gifu.jp","motosu.gifu.jp","nakatsugawa.gifu.jp","ogaki.gifu.jp","sakahogi.gifu.jp","seki.gifu.jp","sekigahara.gifu.jp","shirakawa.gifu.jp","tajimi.gifu.jp","takayama.gifu.jp","tarui.gifu.jp","toki.gifu.jp","tomika.gifu.jp","wanouchi.gifu.jp","yamagata.gifu.jp","yaotsu.gifu.jp","yoro.gifu.jp","annaka.gunma.jp","chiyoda.gunma.jp","fujioka.gunma.jp","higashiagatsuma.gunma.jp","isesaki.gunma.jp","itakura.gunma.jp","kanna.gunma.jp","kanra.gunma.jp","katashina.gunma.jp","kawaba.gunma.jp","kiryu.gunma.jp","kusatsu.gunma.jp","maebashi.gunma.jp","meiwa.gunma.jp","midori.gunma.jp","minakami.gunma.jp","naganohara.gunma.jp","nakanojo.gunma.jp","nanmoku.gunma.jp","numata.gunma.jp","oizumi.gunma.jp","ora.gunma.jp","ota.gunma.jp","shibukawa.gunma.jp","shimonita.gunma.jp","shinto.gunma.jp","showa.gunma.jp","takasaki.gunma.jp","takayama.gunma.jp","tamamura.gunma.jp","tatebayashi.gunma.jp","tomioka.gunma.jp","tsukiyono.gunma.jp","tsumagoi.gunma.jp","ueno.gunma.jp","yoshioka.gunma.jp","asaminami.hiroshima.jp","daiwa.hiroshima.jp","etajima.hiroshima.jp","fuchu.hiroshima.jp","fukuyama.hiroshima.jp","hatsukaichi.hiroshima.jp","higashihiroshima.hiroshima.jp","hongo.hiroshima.jp","jinsekikogen.hiroshima.jp","kaita.hiroshima.jp","kui.hiroshima.jp","kumano.hiroshima.jp","kure.hiroshima.jp","mihara.hiroshima.jp","miyoshi.hiroshima.jp","naka.hiroshima.jp","onomichi.hiroshima.jp","osakikamijima.hiroshima.jp","otake.hiroshima.jp","saka.hiroshima.jp","sera.hiroshima.jp","seranishi.hiroshima.jp","shinichi.hiroshima.jp","shobara.hiroshima.jp","takehara.hiroshima.jp","abashiri.hokkaido.jp","abira.hokkaido.jp","aibetsu.hokkaido.jp","akabira.hokkaido.jp","akkeshi.hokkaido.jp","asahikawa.hokkaido.jp","ashibetsu.hokkaido.jp","ashoro.hokkaido.jp","assabu.hokkaido.jp","atsuma.hokkaido.jp","bibai.hokkaido.jp","biei.hokkaido.jp","bifuka.hokkaido.jp","bihoro.hokkaido.jp","biratori.hokkaido.jp","chippubetsu.hokkaido.jp","chitose.hokkaido.jp","date.hokkaido.jp","ebetsu.hokkaido.jp","embetsu.hokkaido.jp","eniwa.hokkaido.jp","erimo.hokkaido.jp","esan.hokkaido.jp","esashi.hokkaido.jp","fukagawa.hokkaido.jp","fukushima.hokkaido.jp","furano.hokkaido.jp","furubira.hokkaido.jp","haboro.hokkaido.jp","hakodate.hokkaido.jp","hamatonbetsu.hokkaido.jp","hidaka.hokkaido.jp","higashikagura.hokkaido.jp","higashikawa.hokkaido.jp","hiroo.hokkaido.jp","hokuryu.hokkaido.jp","hokuto.hokkaido.jp","honbetsu.hokkaido.jp","horokanai.hokkaido.jp","horonobe.hokkaido.jp","ikeda.hokkaido.jp","imakane.hokkaido.jp","ishikari.hokkaido.jp","iwamizawa.hokkaido.jp","iwanai.hokkaido.jp","kamifurano.hokkaido.jp","kamikawa.hokkaido.jp","kamishihoro.hokkaido.jp","kamisunagawa.hokkaido.jp","kamoenai.hokkaido.jp","kayabe.hokkaido.jp","kembuchi.hokkaido.jp","kikonai.hokkaido.jp","kimobetsu.hokkaido.jp","kitahiroshima.hokkaido.jp","kitami.hokkaido.jp","kiyosato.hokkaido.jp","koshimizu.hokkaido.jp","kunneppu.hokkaido.jp","kuriyama.hokkaido.jp","kuromatsunai.hokkaido.jp","kushiro.hokkaido.jp","kutchan.hokkaido.jp","kyowa.hokkaido.jp","mashike.hokkaido.jp","matsumae.hokkaido.jp","mikasa.hokkaido.jp","minamifurano.hokkaido.jp","mombetsu.hokkaido.jp","moseushi.hokkaido.jp","mukawa.hokkaido.jp","muroran.hokkaido.jp","naie.hokkaido.jp","nakagawa.hokkaido.jp","nakasatsunai.hokkaido.jp","nakatombetsu.hokkaido.jp","nanae.hokkaido.jp","nanporo.hokkaido.jp","nayoro.hokkaido.jp","nemuro.hokkaido.jp","niikappu.hokkaido.jp","niki.hokkaido.jp","nishiokoppe.hokkaido.jp","noboribetsu.hokkaido.jp","numata.hokkaido.jp","obihiro.hokkaido.jp","obira.hokkaido.jp","oketo.hokkaido.jp","okoppe.hokkaido.jp","otaru.hokkaido.jp","otobe.hokkaido.jp","otofuke.hokkaido.jp","otoineppu.hokkaido.jp","oumu.hokkaido.jp","ozora.hokkaido.jp","pippu.hokkaido.jp","rankoshi.hokkaido.jp","rebun.hokkaido.jp","rikubetsu.hokkaido.jp","rishiri.hokkaido.jp","rishirifuji.hokkaido.jp","saroma.hokkaido.jp","sarufutsu.hokkaido.jp","shakotan.hokkaido.jp","shari.hokkaido.jp","shibecha.hokkaido.jp","shibetsu.hokkaido.jp","shikabe.hokkaido.jp","shikaoi.hokkaido.jp","shimamaki.hokkaido.jp","shimizu.hokkaido.jp","shimokawa.hokkaido.jp","shinshinotsu.hokkaido.jp","shintoku.hokkaido.jp","shiranuka.hokkaido.jp","shiraoi.hokkaido.jp","shiriuchi.hokkaido.jp","sobetsu.hokkaido.jp","sunagawa.hokkaido.jp","taiki.hokkaido.jp","takasu.hokkaido.jp","takikawa.hokkaido.jp","takinoue.hokkaido.jp","teshikaga.hokkaido.jp","tobetsu.hokkaido.jp","tohma.hokkaido.jp","tomakomai.hokkaido.jp","tomari.hokkaido.jp","toya.hokkaido.jp","toyako.hokkaido.jp","toyotomi.hokkaido.jp","toyoura.hokkaido.jp","tsubetsu.hokkaido.jp","tsukigata.hokkaido.jp","urakawa.hokkaido.jp","urausu.hokkaido.jp","uryu.hokkaido.jp","utashinai.hokkaido.jp","wakkanai.hokkaido.jp","wassamu.hokkaido.jp","yakumo.hokkaido.jp","yoichi.hokkaido.jp","aioi.hyogo.jp","akashi.hyogo.jp","ako.hyogo.jp","amagasaki.hyogo.jp","aogaki.hyogo.jp","asago.hyogo.jp","ashiya.hyogo.jp","awaji.hyogo.jp","fukusaki.hyogo.jp","goshiki.hyogo.jp","harima.hyogo.jp","himeji.hyogo.jp","ichikawa.hyogo.jp","inagawa.hyogo.jp","itami.hyogo.jp","kakogawa.hyogo.jp","kamigori.hyogo.jp","kamikawa.hyogo.jp","kasai.hyogo.jp","kasuga.hyogo.jp","kawanishi.hyogo.jp","miki.hyogo.jp","minamiawaji.hyogo.jp","nishinomiya.hyogo.jp","nishiwaki.hyogo.jp","ono.hyogo.jp","sanda.hyogo.jp","sannan.hyogo.jp","sasayama.hyogo.jp","sayo.hyogo.jp","shingu.hyogo.jp","shinonsen.hyogo.jp","shiso.hyogo.jp","sumoto.hyogo.jp","taishi.hyogo.jp","taka.hyogo.jp","takarazuka.hyogo.jp","takasago.hyogo.jp","takino.hyogo.jp","tamba.hyogo.jp","tatsuno.hyogo.jp","toyooka.hyogo.jp","yabu.hyogo.jp","yashiro.hyogo.jp","yoka.hyogo.jp","yokawa.hyogo.jp","ami.ibaraki.jp","asahi.ibaraki.jp","bando.ibaraki.jp","chikusei.ibaraki.jp","daigo.ibaraki.jp","fujishiro.ibaraki.jp","hitachi.ibaraki.jp","hitachinaka.ibaraki.jp","hitachiomiya.ibaraki.jp","hitachiota.ibaraki.jp","ibaraki.ibaraki.jp","ina.ibaraki.jp","inashiki.ibaraki.jp","itako.ibaraki.jp","iwama.ibaraki.jp","joso.ibaraki.jp","kamisu.ibaraki.jp","kasama.ibaraki.jp","kashima.ibaraki.jp","kasumigaura.ibaraki.jp","koga.ibaraki.jp","miho.ibaraki.jp","mito.ibaraki.jp","moriya.ibaraki.jp","naka.ibaraki.jp","namegata.ibaraki.jp","oarai.ibaraki.jp","ogawa.ibaraki.jp","omitama.ibaraki.jp","ryugasaki.ibaraki.jp","sakai.ibaraki.jp","sakuragawa.ibaraki.jp","shimodate.ibaraki.jp","shimotsuma.ibaraki.jp","shirosato.ibaraki.jp","sowa.ibaraki.jp","suifu.ibaraki.jp","takahagi.ibaraki.jp","tamatsukuri.ibaraki.jp","tokai.ibaraki.jp","tomobe.ibaraki.jp","tone.ibaraki.jp","toride.ibaraki.jp","tsuchiura.ibaraki.jp","tsukuba.ibaraki.jp","uchihara.ibaraki.jp","ushiku.ibaraki.jp","yachiyo.ibaraki.jp","yamagata.ibaraki.jp","yawara.ibaraki.jp","yuki.ibaraki.jp","anamizu.ishikawa.jp","hakui.ishikawa.jp","hakusan.ishikawa.jp","kaga.ishikawa.jp","kahoku.ishikawa.jp","kanazawa.ishikawa.jp","kawakita.ishikawa.jp","komatsu.ishikawa.jp","nakanoto.ishikawa.jp","nanao.ishikawa.jp","nomi.ishikawa.jp","nonoichi.ishikawa.jp","noto.ishikawa.jp","shika.ishikawa.jp","suzu.ishikawa.jp","tsubata.ishikawa.jp","tsurugi.ishikawa.jp","uchinada.ishikawa.jp","wajima.ishikawa.jp","fudai.iwate.jp","fujisawa.iwate.jp","hanamaki.iwate.jp","hiraizumi.iwate.jp","hirono.iwate.jp","ichinohe.iwate.jp","ichinoseki.iwate.jp","iwaizumi.iwate.jp","iwate.iwate.jp","joboji.iwate.jp","kamaishi.iwate.jp","kanegasaki.iwate.jp","karumai.iwate.jp","kawai.iwate.jp","kitakami.iwate.jp","kuji.iwate.jp","kunohe.iwate.jp","kuzumaki.iwate.jp","miyako.iwate.jp","mizusawa.iwate.jp","morioka.iwate.jp","ninohe.iwate.jp","noda.iwate.jp","ofunato.iwate.jp","oshu.iwate.jp","otsuchi.iwate.jp","rikuzentakata.iwate.jp","shiwa.iwate.jp","shizukuishi.iwate.jp","sumita.iwate.jp","tanohata.iwate.jp","tono.iwate.jp","yahaba.iwate.jp","yamada.iwate.jp","ayagawa.kagawa.jp","higashikagawa.kagawa.jp","kanonji.kagawa.jp","kotohira.kagawa.jp","manno.kagawa.jp","marugame.kagawa.jp","mitoyo.kagawa.jp","naoshima.kagawa.jp","sanuki.kagawa.jp","tadotsu.kagawa.jp","takamatsu.kagawa.jp","tonosho.kagawa.jp","uchinomi.kagawa.jp","utazu.kagawa.jp","zentsuji.kagawa.jp","akune.kagoshima.jp","amami.kagoshima.jp","hioki.kagoshima.jp","isa.kagoshima.jp","isen.kagoshima.jp","izumi.kagoshima.jp","kagoshima.kagoshima.jp","kanoya.kagoshima.jp","kawanabe.kagoshima.jp","kinko.kagoshima.jp","kouyama.kagoshima.jp","makurazaki.kagoshima.jp","matsumoto.kagoshima.jp","minamitane.kagoshima.jp","nakatane.kagoshima.jp","nishinoomote.kagoshima.jp","satsumasendai.kagoshima.jp","soo.kagoshima.jp","tarumizu.kagoshima.jp","yusui.kagoshima.jp","aikawa.kanagawa.jp","atsugi.kanagawa.jp","ayase.kanagawa.jp","chigasaki.kanagawa.jp","ebina.kanagawa.jp","fujisawa.kanagawa.jp","hadano.kanagawa.jp","hakone.kanagawa.jp","hiratsuka.kanagawa.jp","isehara.kanagawa.jp","kaisei.kanagawa.jp","kamakura.kanagawa.jp","kiyokawa.kanagawa.jp","matsuda.kanagawa.jp","minamiashigara.kanagawa.jp","miura.kanagawa.jp","nakai.kanagawa.jp","ninomiya.kanagawa.jp","odawara.kanagawa.jp","oi.kanagawa.jp","oiso.kanagawa.jp","sagamihara.kanagawa.jp","samukawa.kanagawa.jp","tsukui.kanagawa.jp","yamakita.kanagawa.jp","yamato.kanagawa.jp","yokosuka.kanagawa.jp","yugawara.kanagawa.jp","zama.kanagawa.jp","zushi.kanagawa.jp","aki.kochi.jp","geisei.kochi.jp","hidaka.kochi.jp","higashitsuno.kochi.jp","ino.kochi.jp","kagami.kochi.jp","kami.kochi.jp","kitagawa.kochi.jp","kochi.kochi.jp","mihara.kochi.jp","motoyama.kochi.jp","muroto.kochi.jp","nahari.kochi.jp","nakamura.kochi.jp","nankoku.kochi.jp","nishitosa.kochi.jp","niyodogawa.kochi.jp","ochi.kochi.jp","okawa.kochi.jp","otoyo.kochi.jp","otsuki.kochi.jp","sakawa.kochi.jp","sukumo.kochi.jp","susaki.kochi.jp","tosa.kochi.jp","tosashimizu.kochi.jp","toyo.kochi.jp","tsuno.kochi.jp","umaji.kochi.jp","yasuda.kochi.jp","yusuhara.kochi.jp","amakusa.kumamoto.jp","arao.kumamoto.jp","aso.kumamoto.jp","choyo.kumamoto.jp","gyokuto.kumamoto.jp","kamiamakusa.kumamoto.jp","kikuchi.kumamoto.jp","kumamoto.kumamoto.jp","mashiki.kumamoto.jp","mifune.kumamoto.jp","minamata.kumamoto.jp","minamioguni.kumamoto.jp","nagasu.kumamoto.jp","nishihara.kumamoto.jp","oguni.kumamoto.jp","ozu.kumamoto.jp","sumoto.kumamoto.jp","takamori.kumamoto.jp","uki.kumamoto.jp","uto.kumamoto.jp","yamaga.kumamoto.jp","yamato.kumamoto.jp","yatsushiro.kumamoto.jp","ayabe.kyoto.jp","fukuchiyama.kyoto.jp","higashiyama.kyoto.jp","ide.kyoto.jp","ine.kyoto.jp","joyo.kyoto.jp","kameoka.kyoto.jp","kamo.kyoto.jp","kita.kyoto.jp","kizu.kyoto.jp","kumiyama.kyoto.jp","kyotamba.kyoto.jp","kyotanabe.kyoto.jp","kyotango.kyoto.jp","maizuru.kyoto.jp","minami.kyoto.jp","minamiyamashiro.kyoto.jp","miyazu.kyoto.jp","muko.kyoto.jp","nagaokakyo.kyoto.jp","nakagyo.kyoto.jp","nantan.kyoto.jp","oyamazaki.kyoto.jp","sakyo.kyoto.jp","seika.kyoto.jp","tanabe.kyoto.jp","uji.kyoto.jp","ujitawara.kyoto.jp","wazuka.kyoto.jp","yamashina.kyoto.jp","yawata.kyoto.jp","asahi.mie.jp","inabe.mie.jp","ise.mie.jp","kameyama.mie.jp","kawagoe.mie.jp","kiho.mie.jp","kisosaki.mie.jp","kiwa.mie.jp","komono.mie.jp","kumano.mie.jp","kuwana.mie.jp","matsusaka.mie.jp","meiwa.mie.jp","mihama.mie.jp","minamiise.mie.jp","misugi.mie.jp","miyama.mie.jp","nabari.mie.jp","shima.mie.jp","suzuka.mie.jp","tado.mie.jp","taiki.mie.jp","taki.mie.jp","tamaki.mie.jp","toba.mie.jp","tsu.mie.jp","udono.mie.jp","ureshino.mie.jp","watarai.mie.jp","yokkaichi.mie.jp","furukawa.miyagi.jp","higashimatsushima.miyagi.jp","ishinomaki.miyagi.jp","iwanuma.miyagi.jp","kakuda.miyagi.jp","kami.miyagi.jp","kawasaki.miyagi.jp","marumori.miyagi.jp","matsushima.miyagi.jp","minamisanriku.miyagi.jp","misato.miyagi.jp","murata.miyagi.jp","natori.miyagi.jp","ogawara.miyagi.jp","ohira.miyagi.jp","onagawa.miyagi.jp","osaki.miyagi.jp","rifu.miyagi.jp","semine.miyagi.jp","shibata.miyagi.jp","shichikashuku.miyagi.jp","shikama.miyagi.jp","shiogama.miyagi.jp","shiroishi.miyagi.jp","tagajo.miyagi.jp","taiwa.miyagi.jp","tome.miyagi.jp","tomiya.miyagi.jp","wakuya.miyagi.jp","watari.miyagi.jp","yamamoto.miyagi.jp","zao.miyagi.jp","aya.miyazaki.jp","ebino.miyazaki.jp","gokase.miyazaki.jp","hyuga.miyazaki.jp","kadogawa.miyazaki.jp","kawaminami.miyazaki.jp","kijo.miyazaki.jp","kitagawa.miyazaki.jp","kitakata.miyazaki.jp","kitaura.miyazaki.jp","kobayashi.miyazaki.jp","kunitomi.miyazaki.jp","kushima.miyazaki.jp","mimata.miyazaki.jp","miyakonojo.miyazaki.jp","miyazaki.miyazaki.jp","morotsuka.miyazaki.jp","nichinan.miyazaki.jp","nishimera.miyazaki.jp","nobeoka.miyazaki.jp","saito.miyazaki.jp","shiiba.miyazaki.jp","shintomi.miyazaki.jp","takaharu.miyazaki.jp","takanabe.miyazaki.jp","takazaki.miyazaki.jp","tsuno.miyazaki.jp","achi.nagano.jp","agematsu.nagano.jp","anan.nagano.jp","aoki.nagano.jp","asahi.nagano.jp","azumino.nagano.jp","chikuhoku.nagano.jp","chikuma.nagano.jp","chino.nagano.jp","fujimi.nagano.jp","hakuba.nagano.jp","hara.nagano.jp","hiraya.nagano.jp","iida.nagano.jp","iijima.nagano.jp","iiyama.nagano.jp","iizuna.nagano.jp","ikeda.nagano.jp","ikusaka.nagano.jp","ina.nagano.jp","karuizawa.nagano.jp","kawakami.nagano.jp","kiso.nagano.jp","kisofukushima.nagano.jp","kitaaiki.nagano.jp","komagane.nagano.jp","komoro.nagano.jp","matsukawa.nagano.jp","matsumoto.nagano.jp","miasa.nagano.jp","minamiaiki.nagano.jp","minamimaki.nagano.jp","minamiminowa.nagano.jp","minowa.nagano.jp","miyada.nagano.jp","miyota.nagano.jp","mochizuki.nagano.jp","nagano.nagano.jp","nagawa.nagano.jp","nagiso.nagano.jp","nakagawa.nagano.jp","nakano.nagano.jp","nozawaonsen.nagano.jp","obuse.nagano.jp","ogawa.nagano.jp","okaya.nagano.jp","omachi.nagano.jp","omi.nagano.jp","ookuwa.nagano.jp","ooshika.nagano.jp","otaki.nagano.jp","otari.nagano.jp","sakae.nagano.jp","sakaki.nagano.jp","saku.nagano.jp","sakuho.nagano.jp","shimosuwa.nagano.jp","shinanomachi.nagano.jp","shiojiri.nagano.jp","suwa.nagano.jp","suzaka.nagano.jp","takagi.nagano.jp","takamori.nagano.jp","takayama.nagano.jp","tateshina.nagano.jp","tatsuno.nagano.jp","togakushi.nagano.jp","togura.nagano.jp","tomi.nagano.jp","ueda.nagano.jp","wada.nagano.jp","yamagata.nagano.jp","yamanouchi.nagano.jp","yasaka.nagano.jp","yasuoka.nagano.jp","chijiwa.nagasaki.jp","futsu.nagasaki.jp","goto.nagasaki.jp","hasami.nagasaki.jp","hirado.nagasaki.jp","iki.nagasaki.jp","isahaya.nagasaki.jp","kawatana.nagasaki.jp","kuchinotsu.nagasaki.jp","matsuura.nagasaki.jp","nagasaki.nagasaki.jp","obama.nagasaki.jp","omura.nagasaki.jp","oseto.nagasaki.jp","saikai.nagasaki.jp","sasebo.nagasaki.jp","seihi.nagasaki.jp","shimabara.nagasaki.jp","shinkamigoto.nagasaki.jp","togitsu.nagasaki.jp","tsushima.nagasaki.jp","unzen.nagasaki.jp","ando.nara.jp","gose.nara.jp","heguri.nara.jp","higashiyoshino.nara.jp","ikaruga.nara.jp","ikoma.nara.jp","kamikitayama.nara.jp","kanmaki.nara.jp","kashiba.nara.jp","kashihara.nara.jp","katsuragi.nara.jp","kawai.nara.jp","kawakami.nara.jp","kawanishi.nara.jp","koryo.nara.jp","kurotaki.nara.jp","mitsue.nara.jp","miyake.nara.jp","nara.nara.jp","nosegawa.nara.jp","oji.nara.jp","ouda.nara.jp","oyodo.nara.jp","sakurai.nara.jp","sango.nara.jp","shimoichi.nara.jp","shimokitayama.nara.jp","shinjo.nara.jp","soni.nara.jp","takatori.nara.jp","tawaramoto.nara.jp","tenkawa.nara.jp","tenri.nara.jp","uda.nara.jp","yamatokoriyama.nara.jp","yamatotakada.nara.jp","yamazoe.nara.jp","yoshino.nara.jp","aga.niigata.jp","agano.niigata.jp","gosen.niigata.jp","itoigawa.niigata.jp","izumozaki.niigata.jp","joetsu.niigata.jp","kamo.niigata.jp","kariwa.niigata.jp","kashiwazaki.niigata.jp","minamiuonuma.niigata.jp","mitsuke.niigata.jp","muika.niigata.jp","murakami.niigata.jp","myoko.niigata.jp","nagaoka.niigata.jp","niigata.niigata.jp","ojiya.niigata.jp","omi.niigata.jp","sado.niigata.jp","sanjo.niigata.jp","seiro.niigata.jp","seirou.niigata.jp","sekikawa.niigata.jp","shibata.niigata.jp","tagami.niigata.jp","tainai.niigata.jp","tochio.niigata.jp","tokamachi.niigata.jp","tsubame.niigata.jp","tsunan.niigata.jp","uonuma.niigata.jp","yahiko.niigata.jp","yoita.niigata.jp","yuzawa.niigata.jp","beppu.oita.jp","bungoono.oita.jp","bungotakada.oita.jp","hasama.oita.jp","hiji.oita.jp","himeshima.oita.jp","hita.oita.jp","kamitsue.oita.jp","kokonoe.oita.jp","kuju.oita.jp","kunisaki.oita.jp","kusu.oita.jp","oita.oita.jp","saiki.oita.jp","taketa.oita.jp","tsukumi.oita.jp","usa.oita.jp","usuki.oita.jp","yufu.oita.jp","akaiwa.okayama.jp","asakuchi.okayama.jp","bizen.okayama.jp","hayashima.okayama.jp","ibara.okayama.jp","kagamino.okayama.jp","kasaoka.okayama.jp","kibichuo.okayama.jp","kumenan.okayama.jp","kurashiki.okayama.jp","maniwa.okayama.jp","misaki.okayama.jp","nagi.okayama.jp","niimi.okayama.jp","nishiawakura.okayama.jp","okayama.okayama.jp","satosho.okayama.jp","setouchi.okayama.jp","shinjo.okayama.jp","shoo.okayama.jp","soja.okayama.jp","takahashi.okayama.jp","tamano.okayama.jp","tsuyama.okayama.jp","wake.okayama.jp","yakage.okayama.jp","aguni.okinawa.jp","ginowan.okinawa.jp","ginoza.okinawa.jp","gushikami.okinawa.jp","haebaru.okinawa.jp","higashi.okinawa.jp","hirara.okinawa.jp","iheya.okinawa.jp","ishigaki.okinawa.jp","ishikawa.okinawa.jp","itoman.okinawa.jp","izena.okinawa.jp","kadena.okinawa.jp","kin.okinawa.jp","kitadaito.okinawa.jp","kitanakagusuku.okinawa.jp","kumejima.okinawa.jp","kunigami.okinawa.jp","minamidaito.okinawa.jp","motobu.okinawa.jp","nago.okinawa.jp","naha.okinawa.jp","nakagusuku.okinawa.jp","nakijin.okinawa.jp","nanjo.okinawa.jp","nishihara.okinawa.jp","ogimi.okinawa.jp","okinawa.okinawa.jp","onna.okinawa.jp","shimoji.okinawa.jp","taketomi.okinawa.jp","tarama.okinawa.jp","tokashiki.okinawa.jp","tomigusuku.okinawa.jp","tonaki.okinawa.jp","urasoe.okinawa.jp","uruma.okinawa.jp","yaese.okinawa.jp","yomitan.okinawa.jp","yonabaru.okinawa.jp","yonaguni.okinawa.jp","zamami.okinawa.jp","abeno.osaka.jp","chihayaakasaka.osaka.jp","chuo.osaka.jp","daito.osaka.jp","fujiidera.osaka.jp","habikino.osaka.jp","hannan.osaka.jp","higashiosaka.osaka.jp","higashisumiyoshi.osaka.jp","higashiyodogawa.osaka.jp","hirakata.osaka.jp","ibaraki.osaka.jp","ikeda.osaka.jp","izumi.osaka.jp","izumiotsu.osaka.jp","izumisano.osaka.jp","kadoma.osaka.jp","kaizuka.osaka.jp","kanan.osaka.jp","kashiwara.osaka.jp","katano.osaka.jp","kawachinagano.osaka.jp","kishiwada.osaka.jp","kita.osaka.jp","kumatori.osaka.jp","matsubara.osaka.jp","minato.osaka.jp","minoh.osaka.jp","misaki.osaka.jp","moriguchi.osaka.jp","neyagawa.osaka.jp","nishi.osaka.jp","nose.osaka.jp","osakasayama.osaka.jp","sakai.osaka.jp","sayama.osaka.jp","sennan.osaka.jp","settsu.osaka.jp","shijonawate.osaka.jp","shimamoto.osaka.jp","suita.osaka.jp","tadaoka.osaka.jp","taishi.osaka.jp","tajiri.osaka.jp","takaishi.osaka.jp","takatsuki.osaka.jp","tondabayashi.osaka.jp","toyonaka.osaka.jp","toyono.osaka.jp","yao.osaka.jp","ariake.saga.jp","arita.saga.jp","fukudomi.saga.jp","genkai.saga.jp","hamatama.saga.jp","hizen.saga.jp","imari.saga.jp","kamimine.saga.jp","kanzaki.saga.jp","karatsu.saga.jp","kashima.saga.jp","kitagata.saga.jp","kitahata.saga.jp","kiyama.saga.jp","kouhoku.saga.jp","kyuragi.saga.jp","nishiarita.saga.jp","ogi.saga.jp","omachi.saga.jp","ouchi.saga.jp","saga.saga.jp","shiroishi.saga.jp","taku.saga.jp","tara.saga.jp","tosu.saga.jp","yoshinogari.saga.jp","arakawa.saitama.jp","asaka.saitama.jp","chichibu.saitama.jp","fujimi.saitama.jp","fujimino.saitama.jp","fukaya.saitama.jp","hanno.saitama.jp","hanyu.saitama.jp","hasuda.saitama.jp","hatogaya.saitama.jp","hatoyama.saitama.jp","hidaka.saitama.jp","higashichichibu.saitama.jp","higashimatsuyama.saitama.jp","honjo.saitama.jp","ina.saitama.jp","iruma.saitama.jp","iwatsuki.saitama.jp","kamiizumi.saitama.jp","kamikawa.saitama.jp","kamisato.saitama.jp","kasukabe.saitama.jp","kawagoe.saitama.jp","kawaguchi.saitama.jp","kawajima.saitama.jp","kazo.saitama.jp","kitamoto.saitama.jp","koshigaya.saitama.jp","kounosu.saitama.jp","kuki.saitama.jp","kumagaya.saitama.jp","matsubushi.saitama.jp","minano.saitama.jp","misato.saitama.jp","miyashiro.saitama.jp","miyoshi.saitama.jp","moroyama.saitama.jp","nagatoro.saitama.jp","namegawa.saitama.jp","niiza.saitama.jp","ogano.saitama.jp","ogawa.saitama.jp","ogose.saitama.jp","okegawa.saitama.jp","omiya.saitama.jp","otaki.saitama.jp","ranzan.saitama.jp","ryokami.saitama.jp","saitama.saitama.jp","sakado.saitama.jp","satte.saitama.jp","sayama.saitama.jp","shiki.saitama.jp","shiraoka.saitama.jp","soka.saitama.jp","sugito.saitama.jp","toda.saitama.jp","tokigawa.saitama.jp","tokorozawa.saitama.jp","tsurugashima.saitama.jp","urawa.saitama.jp","warabi.saitama.jp","yashio.saitama.jp","yokoze.saitama.jp","yono.saitama.jp","yorii.saitama.jp","yoshida.saitama.jp","yoshikawa.saitama.jp","yoshimi.saitama.jp","aisho.shiga.jp","gamo.shiga.jp","higashiomi.shiga.jp","hikone.shiga.jp","koka.shiga.jp","konan.shiga.jp","kosei.shiga.jp","koto.shiga.jp","kusatsu.shiga.jp","maibara.shiga.jp","moriyama.shiga.jp","nagahama.shiga.jp","nishiazai.shiga.jp","notogawa.shiga.jp","omihachiman.shiga.jp","otsu.shiga.jp","ritto.shiga.jp","ryuoh.shiga.jp","takashima.shiga.jp","takatsuki.shiga.jp","torahime.shiga.jp","toyosato.shiga.jp","yasu.shiga.jp","akagi.shimane.jp","ama.shimane.jp","gotsu.shimane.jp","hamada.shimane.jp","higashiizumo.shimane.jp","hikawa.shimane.jp","hikimi.shimane.jp","izumo.shimane.jp","kakinoki.shimane.jp","masuda.shimane.jp","matsue.shimane.jp","misato.shimane.jp","nishinoshima.shimane.jp","ohda.shimane.jp","okinoshima.shimane.jp","okuizumo.shimane.jp","shimane.shimane.jp","tamayu.shimane.jp","tsuwano.shimane.jp","unnan.shimane.jp","yakumo.shimane.jp","yasugi.shimane.jp","yatsuka.shimane.jp","arai.shizuoka.jp","atami.shizuoka.jp","fuji.shizuoka.jp","fujieda.shizuoka.jp","fujikawa.shizuoka.jp","fujinomiya.shizuoka.jp","fukuroi.shizuoka.jp","gotemba.shizuoka.jp","haibara.shizuoka.jp","hamamatsu.shizuoka.jp","higashiizu.shizuoka.jp","ito.shizuoka.jp","iwata.shizuoka.jp","izu.shizuoka.jp","izunokuni.shizuoka.jp","kakegawa.shizuoka.jp","kannami.shizuoka.jp","kawanehon.shizuoka.jp","kawazu.shizuoka.jp","kikugawa.shizuoka.jp","kosai.shizuoka.jp","makinohara.shizuoka.jp","matsuzaki.shizuoka.jp","minamiizu.shizuoka.jp","mishima.shizuoka.jp","morimachi.shizuoka.jp","nishiizu.shizuoka.jp","numazu.shizuoka.jp","omaezaki.shizuoka.jp","shimada.shizuoka.jp","shimizu.shizuoka.jp","shimoda.shizuoka.jp","shizuoka.shizuoka.jp","susono.shizuoka.jp","yaizu.shizuoka.jp","yoshida.shizuoka.jp","ashikaga.tochigi.jp","bato.tochigi.jp","haga.tochigi.jp","ichikai.tochigi.jp","iwafune.tochigi.jp","kaminokawa.tochigi.jp","kanuma.tochigi.jp","karasuyama.tochigi.jp","kuroiso.tochigi.jp","mashiko.tochigi.jp","mibu.tochigi.jp","moka.tochigi.jp","motegi.tochigi.jp","nasu.tochigi.jp","nasushiobara.tochigi.jp","nikko.tochigi.jp","nishikata.tochigi.jp","nogi.tochigi.jp","ohira.tochigi.jp","ohtawara.tochigi.jp","oyama.tochigi.jp","sakura.tochigi.jp","sano.tochigi.jp","shimotsuke.tochigi.jp","shioya.tochigi.jp","takanezawa.tochigi.jp","tochigi.tochigi.jp","tsuga.tochigi.jp","ujiie.tochigi.jp","utsunomiya.tochigi.jp","yaita.tochigi.jp","aizumi.tokushima.jp","anan.tokushima.jp","ichiba.tokushima.jp","itano.tokushima.jp","kainan.tokushima.jp","komatsushima.tokushima.jp","matsushige.tokushima.jp","mima.tokushima.jp","minami.tokushima.jp","miyoshi.tokushima.jp","mugi.tokushima.jp","nakagawa.tokushima.jp","naruto.tokushima.jp","sanagochi.tokushima.jp","shishikui.tokushima.jp","tokushima.tokushima.jp","wajiki.tokushima.jp","adachi.tokyo.jp","akiruno.tokyo.jp","akishima.tokyo.jp","aogashima.tokyo.jp","arakawa.tokyo.jp","bunkyo.tokyo.jp","chiyoda.tokyo.jp","chofu.tokyo.jp","chuo.tokyo.jp","edogawa.tokyo.jp","fuchu.tokyo.jp","fussa.tokyo.jp","hachijo.tokyo.jp","hachioji.tokyo.jp","hamura.tokyo.jp","higashikurume.tokyo.jp","higashimurayama.tokyo.jp","higashiyamato.tokyo.jp","hino.tokyo.jp","hinode.tokyo.jp","hinohara.tokyo.jp","inagi.tokyo.jp","itabashi.tokyo.jp","katsushika.tokyo.jp","kita.tokyo.jp","kiyose.tokyo.jp","kodaira.tokyo.jp","koganei.tokyo.jp","kokubunji.tokyo.jp","komae.tokyo.jp","koto.tokyo.jp","kouzushima.tokyo.jp","kunitachi.tokyo.jp","machida.tokyo.jp","meguro.tokyo.jp","minato.tokyo.jp","mitaka.tokyo.jp","mizuho.tokyo.jp","musashimurayama.tokyo.jp","musashino.tokyo.jp","nakano.tokyo.jp","nerima.tokyo.jp","ogasawara.tokyo.jp","okutama.tokyo.jp","ome.tokyo.jp","oshima.tokyo.jp","ota.tokyo.jp","setagaya.tokyo.jp","shibuya.tokyo.jp","shinagawa.tokyo.jp","shinjuku.tokyo.jp","suginami.tokyo.jp","sumida.tokyo.jp","tachikawa.tokyo.jp","taito.tokyo.jp","tama.tokyo.jp","toshima.tokyo.jp","chizu.tottori.jp","hino.tottori.jp","kawahara.tottori.jp","koge.tottori.jp","kotoura.tottori.jp","misasa.tottori.jp","nanbu.tottori.jp","nichinan.tottori.jp","sakaiminato.tottori.jp","tottori.tottori.jp","wakasa.tottori.jp","yazu.tottori.jp","yonago.tottori.jp","asahi.toyama.jp","fuchu.toyama.jp","fukumitsu.toyama.jp","funahashi.toyama.jp","himi.toyama.jp","imizu.toyama.jp","inami.toyama.jp","johana.toyama.jp","kamiichi.toyama.jp","kurobe.toyama.jp","nakaniikawa.toyama.jp","namerikawa.toyama.jp","nanto.toyama.jp","nyuzen.toyama.jp","oyabe.toyama.jp","taira.toyama.jp","takaoka.toyama.jp","tateyama.toyama.jp","toga.toyama.jp","tonami.toyama.jp","toyama.toyama.jp","unazuki.toyama.jp","uozu.toyama.jp","yamada.toyama.jp","arida.wakayama.jp","aridagawa.wakayama.jp","gobo.wakayama.jp","hashimoto.wakayama.jp","hidaka.wakayama.jp","hirogawa.wakayama.jp","inami.wakayama.jp","iwade.wakayama.jp","kainan.wakayama.jp","kamitonda.wakayama.jp","katsuragi.wakayama.jp","kimino.wakayama.jp","kinokawa.wakayama.jp","kitayama.wakayama.jp","koya.wakayama.jp","koza.wakayama.jp","kozagawa.wakayama.jp","kudoyama.wakayama.jp","kushimoto.wakayama.jp","mihama.wakayama.jp","misato.wakayama.jp","nachikatsuura.wakayama.jp","shingu.wakayama.jp","shirahama.wakayama.jp","taiji.wakayama.jp","tanabe.wakayama.jp","wakayama.wakayama.jp","yuasa.wakayama.jp","yura.wakayama.jp","asahi.yamagata.jp","funagata.yamagata.jp","higashine.yamagata.jp","iide.yamagata.jp","kahoku.yamagata.jp","kaminoyama.yamagata.jp","kaneyama.yamagata.jp","kawanishi.yamagata.jp","mamurogawa.yamagata.jp","mikawa.yamagata.jp","murayama.yamagata.jp","nagai.yamagata.jp","nakayama.yamagata.jp","nanyo.yamagata.jp","nishikawa.yamagata.jp","obanazawa.yamagata.jp","oe.yamagata.jp","oguni.yamagata.jp","ohkura.yamagata.jp","oishida.yamagata.jp","sagae.yamagata.jp","sakata.yamagata.jp","sakegawa.yamagata.jp","shinjo.yamagata.jp","shirataka.yamagata.jp","shonai.yamagata.jp","takahata.yamagata.jp","tendo.yamagata.jp","tozawa.yamagata.jp","tsuruoka.yamagata.jp","yamagata.yamagata.jp","yamanobe.yamagata.jp","yonezawa.yamagata.jp","yuza.yamagata.jp","abu.yamaguchi.jp","hagi.yamaguchi.jp","hikari.yamaguchi.jp","hofu.yamaguchi.jp","iwakuni.yamaguchi.jp","kudamatsu.yamaguchi.jp","mitou.yamaguchi.jp","nagato.yamaguchi.jp","oshima.yamaguchi.jp","shimonoseki.yamaguchi.jp","shunan.yamaguchi.jp","tabuse.yamaguchi.jp","tokuyama.yamaguchi.jp","toyota.yamaguchi.jp","ube.yamaguchi.jp","yuu.yamaguchi.jp","chuo.yamanashi.jp","doshi.yamanashi.jp","fuefuki.yamanashi.jp","fujikawa.yamanashi.jp","fujikawaguchiko.yamanashi.jp","fujiyoshida.yamanashi.jp","hayakawa.yamanashi.jp","hokuto.yamanashi.jp","ichikawamisato.yamanashi.jp","kai.yamanashi.jp","kofu.yamanashi.jp","koshu.yamanashi.jp","kosuge.yamanashi.jp","minami-alps.yamanashi.jp","minobu.yamanashi.jp","nakamichi.yamanashi.jp","nanbu.yamanashi.jp","narusawa.yamanashi.jp","nirasaki.yamanashi.jp","nishikatsura.yamanashi.jp","oshino.yamanashi.jp","otsuki.yamanashi.jp","showa.yamanashi.jp","tabayama.yamanashi.jp","tsuru.yamanashi.jp","uenohara.yamanashi.jp","yamanakako.yamanashi.jp","yamanashi.yamanashi.jp","ke","ac.ke","co.ke","go.ke","info.ke","me.ke","mobi.ke","ne.ke","or.ke","sc.ke","kg","com.kg","edu.kg","gov.kg","mil.kg","net.kg","org.kg","*.kh","ki","biz.ki","com.ki","edu.ki","gov.ki","info.ki","net.ki","org.ki","km","ass.km","com.km","edu.km","gov.km","mil.km","nom.km","org.km","prd.km","tm.km","asso.km","coop.km","gouv.km","medecin.km","notaires.km","pharmaciens.km","presse.km","veterinaire.km","kn","edu.kn","gov.kn","net.kn","org.kn","kp","com.kp","edu.kp","gov.kp","org.kp","rep.kp","tra.kp","kr","ac.kr","co.kr","es.kr","go.kr","hs.kr","kg.kr","mil.kr","ms.kr","ne.kr","or.kr","pe.kr","re.kr","sc.kr","busan.kr","chungbuk.kr","chungnam.kr","daegu.kr","daejeon.kr","gangwon.kr","gwangju.kr","gyeongbuk.kr","gyeonggi.kr","gyeongnam.kr","incheon.kr","jeju.kr","jeonbuk.kr","jeonnam.kr","seoul.kr","ulsan.kr","kw","com.kw","edu.kw","emb.kw","gov.kw","ind.kw","net.kw","org.kw","ky","com.ky","edu.ky","net.ky","org.ky","kz","com.kz","edu.kz","gov.kz","mil.kz","net.kz","org.kz","la","com.la","edu.la","gov.la","info.la","int.la","net.la","org.la","per.la","lb","com.lb","edu.lb","gov.lb","net.lb","org.lb","lc","co.lc","com.lc","edu.lc","gov.lc","net.lc","org.lc","li","lk","ac.lk","assn.lk","com.lk","edu.lk","gov.lk","grp.lk","hotel.lk","int.lk","ltd.lk","net.lk","ngo.lk","org.lk","sch.lk","soc.lk","web.lk","lr","com.lr","edu.lr","gov.lr","net.lr","org.lr","ls","ac.ls","biz.ls","co.ls","edu.ls","gov.ls","info.ls","net.ls","org.ls","sc.ls","lt","gov.lt","lu","lv","asn.lv","com.lv","conf.lv","edu.lv","gov.lv","id.lv","mil.lv","net.lv","org.lv","ly","com.ly","edu.ly","gov.ly","id.ly","med.ly","net.ly","org.ly","plc.ly","sch.ly","ma","ac.ma","co.ma","gov.ma","net.ma","org.ma","press.ma","mc","asso.mc","tm.mc","md","me","ac.me","co.me","edu.me","gov.me","its.me","net.me","org.me","priv.me","mg","co.mg","com.mg","edu.mg","gov.mg","mil.mg","nom.mg","org.mg","prd.mg","mh","mil","mk","com.mk","edu.mk","gov.mk","inf.mk","name.mk","net.mk","org.mk","ml","com.ml","edu.ml","gouv.ml","gov.ml","net.ml","org.ml","presse.ml","*.mm","mn","edu.mn","gov.mn","org.mn","mo","com.mo","edu.mo","gov.mo","net.mo","org.mo","mobi","mp","mq","mr","gov.mr","ms","com.ms","edu.ms","gov.ms","net.ms","org.ms","mt","com.mt","edu.mt","net.mt","org.mt","mu","ac.mu","co.mu","com.mu","gov.mu","net.mu","or.mu","org.mu","museum","mv","aero.mv","biz.mv","com.mv","coop.mv","edu.mv","gov.mv","info.mv","int.mv","mil.mv","museum.mv","name.mv","net.mv","org.mv","pro.mv","mw","ac.mw","biz.mw","co.mw","com.mw","coop.mw","edu.mw","gov.mw","int.mw","net.mw","org.mw","mx","com.mx","edu.mx","gob.mx","net.mx","org.mx","my","biz.my","com.my","edu.my","gov.my","mil.my","name.my","net.my","org.my","mz","ac.mz","adv.mz","co.mz","edu.mz","gov.mz","mil.mz","net.mz","org.mz","na","alt.na","co.na","com.na","gov.na","net.na","org.na","name","nc","asso.nc","nom.nc","ne","net","nf","arts.nf","com.nf","firm.nf","info.nf","net.nf","other.nf","per.nf","rec.nf","store.nf","web.nf","ng","com.ng","edu.ng","gov.ng","i.ng","mil.ng","mobi.ng","name.ng","net.ng","org.ng","sch.ng","ni","ac.ni","biz.ni","co.ni","com.ni","edu.ni","gob.ni","in.ni","info.ni","int.ni","mil.ni","net.ni","nom.ni","org.ni","web.ni","nl","no","fhs.no","folkebibl.no","fylkesbibl.no","idrett.no","museum.no","priv.no","vgs.no","dep.no","herad.no","kommune.no","mil.no","stat.no","aa.no","ah.no","bu.no","fm.no","hl.no","hm.no","jan-mayen.no","mr.no","nl.no","nt.no","of.no","ol.no","oslo.no","rl.no","sf.no","st.no","svalbard.no","tm.no","tr.no","va.no","vf.no","gs.aa.no","gs.ah.no","gs.bu.no","gs.fm.no","gs.hl.no","gs.hm.no","gs.jan-mayen.no","gs.mr.no","gs.nl.no","gs.nt.no","gs.of.no","gs.ol.no","gs.oslo.no","gs.rl.no","gs.sf.no","gs.st.no","gs.svalbard.no","gs.tm.no","gs.tr.no","gs.va.no","gs.vf.no","akrehamn.no","åkrehamn.no","algard.no","ålgård.no","arna.no","bronnoysund.no","brønnøysund.no","brumunddal.no","bryne.no","drobak.no","drøbak.no","egersund.no","fetsund.no","floro.no","florø.no","fredrikstad.no","hokksund.no","honefoss.no","hønefoss.no","jessheim.no","jorpeland.no","jørpeland.no","kirkenes.no","kopervik.no","krokstadelva.no","langevag.no","langevåg.no","leirvik.no","mjondalen.no","mjøndalen.no","mo-i-rana.no","mosjoen.no","mosjøen.no","nesoddtangen.no","orkanger.no","osoyro.no","osøyro.no","raholt.no","råholt.no","sandnessjoen.no","sandnessjøen.no","skedsmokorset.no","slattum.no","spjelkavik.no","stathelle.no","stavern.no","stjordalshalsen.no","stjørdalshalsen.no","tananger.no","tranby.no","vossevangen.no","aarborte.no","aejrie.no","afjord.no","åfjord.no","agdenes.no","nes.akershus.no","aknoluokta.no","ákŋoluokta.no","al.no","ål.no","alaheadju.no","álaheadju.no","alesund.no","ålesund.no","alstahaug.no","alta.no","áltá.no","alvdal.no","amli.no","åmli.no","amot.no","åmot.no","andasuolo.no","andebu.no","andoy.no","andøy.no","ardal.no","årdal.no","aremark.no","arendal.no","ås.no","aseral.no","åseral.no","asker.no","askim.no","askoy.no","askøy.no","askvoll.no","asnes.no","åsnes.no","audnedaln.no","aukra.no","aure.no","aurland.no","aurskog-holand.no","aurskog-høland.no","austevoll.no","austrheim.no","averoy.no","averøy.no","badaddja.no","bådåddjå.no","bærum.no","bahcavuotna.no","báhcavuotna.no","bahccavuotna.no","báhccavuotna.no","baidar.no","báidár.no","bajddar.no","bájddar.no","balat.no","bálát.no","balestrand.no","ballangen.no","balsfjord.no","bamble.no","bardu.no","barum.no","batsfjord.no","båtsfjord.no","bearalvahki.no","bearalváhki.no","beardu.no","beiarn.no","berg.no","bergen.no","berlevag.no","berlevåg.no","bievat.no","bievát.no","bindal.no","birkenes.no","bjarkoy.no","bjarkøy.no","bjerkreim.no","bjugn.no","bodo.no","bodø.no","bokn.no","bomlo.no","bømlo.no","bremanger.no","bronnoy.no","brønnøy.no","budejju.no","nes.buskerud.no","bygland.no","bykle.no","cahcesuolo.no","čáhcesuolo.no","davvenjarga.no","davvenjárga.no","davvesiida.no","deatnu.no","dielddanuorri.no","divtasvuodna.no","divttasvuotna.no","donna.no","dønna.no","dovre.no","drammen.no","drangedal.no","dyroy.no","dyrøy.no","eid.no","eidfjord.no","eidsberg.no","eidskog.no","eidsvoll.no","eigersund.no","elverum.no","enebakk.no","engerdal.no","etne.no","etnedal.no","evenassi.no","evenášši.no","evenes.no","evje-og-hornnes.no","farsund.no","fauske.no","fedje.no","fet.no","finnoy.no","finnøy.no","fitjar.no","fjaler.no","fjell.no","fla.no","flå.no","flakstad.no","flatanger.no","flekkefjord.no","flesberg.no","flora.no","folldal.no","forde.no","førde.no","forsand.no","fosnes.no","fræna.no","frana.no","frei.no","frogn.no","froland.no","frosta.no","froya.no","frøya.no","fuoisku.no","fuossko.no","fusa.no","fyresdal.no","gaivuotna.no","gáivuotna.no","galsa.no","gálsá.no","gamvik.no","gangaviika.no","gáŋgaviika.no","gaular.no","gausdal.no","giehtavuoatna.no","gildeskal.no","gildeskål.no","giske.no","gjemnes.no","gjerdrum.no","gjerstad.no","gjesdal.no","gjovik.no","gjøvik.no","gloppen.no","gol.no","gran.no","grane.no","granvin.no","gratangen.no","grimstad.no","grong.no","grue.no","gulen.no","guovdageaidnu.no","ha.no","hå.no","habmer.no","hábmer.no","hadsel.no","hægebostad.no","hagebostad.no","halden.no","halsa.no","hamar.no","hamaroy.no","hammarfeasta.no","hámmárfeasta.no","hammerfest.no","hapmir.no","hápmir.no","haram.no","hareid.no","harstad.no","hasvik.no","hattfjelldal.no","haugesund.no","os.hedmark.no","valer.hedmark.no","våler.hedmark.no","hemne.no","hemnes.no","hemsedal.no","hitra.no","hjartdal.no","hjelmeland.no","hobol.no","hobøl.no","hof.no","hol.no","hole.no","holmestrand.no","holtalen.no","holtålen.no","os.hordaland.no","hornindal.no","horten.no","hoyanger.no","høyanger.no","hoylandet.no","høylandet.no","hurdal.no","hurum.no","hvaler.no","hyllestad.no","ibestad.no","inderoy.no","inderøy.no","iveland.no","ivgu.no","jevnaker.no","jolster.no","jølster.no","jondal.no","kafjord.no","kåfjord.no","karasjohka.no","kárášjohka.no","karasjok.no","karlsoy.no","karmoy.no","karmøy.no","kautokeino.no","klabu.no","klæbu.no","klepp.no","kongsberg.no","kongsvinger.no","kraanghke.no","kråanghke.no","kragero.no","kragerø.no","kristiansand.no","kristiansund.no","krodsherad.no","krødsherad.no","kvæfjord.no","kvænangen.no","kvafjord.no","kvalsund.no","kvam.no","kvanangen.no","kvinesdal.no","kvinnherad.no","kviteseid.no","kvitsoy.no","kvitsøy.no","laakesvuemie.no","lærdal.no","lahppi.no","láhppi.no","lardal.no","larvik.no","lavagis.no","lavangen.no","leangaviika.no","leaŋgaviika.no","lebesby.no","leikanger.no","leirfjord.no","leka.no","leksvik.no","lenvik.no","lerdal.no","lesja.no","levanger.no","lier.no","lierne.no","lillehammer.no","lillesand.no","lindas.no","lindås.no","lindesnes.no","loabat.no","loabát.no","lodingen.no","lødingen.no","lom.no","loppa.no","lorenskog.no","lørenskog.no","loten.no","løten.no","lund.no","lunner.no","luroy.no","lurøy.no","luster.no","lyngdal.no","lyngen.no","malatvuopmi.no","málatvuopmi.no","malselv.no","målselv.no","malvik.no","mandal.no","marker.no","marnardal.no","masfjorden.no","masoy.no","måsøy.no","matta-varjjat.no","mátta-várjjat.no","meland.no","meldal.no","melhus.no","meloy.no","meløy.no","meraker.no","meråker.no","midsund.no","midtre-gauldal.no","moareke.no","moåreke.no","modalen.no","modum.no","molde.no","heroy.more-og-romsdal.no","sande.more-og-romsdal.no","herøy.møre-og-romsdal.no","sande.møre-og-romsdal.no","moskenes.no","moss.no","mosvik.no","muosat.no","muosát.no","naamesjevuemie.no","nååmesjevuemie.no","nærøy.no","namdalseid.no","namsos.no","namsskogan.no","nannestad.no","naroy.no","narviika.no","narvik.no","naustdal.no","navuotna.no","návuotna.no","nedre-eiker.no","nesna.no","nesodden.no","nesseby.no","nesset.no","nissedal.no","nittedal.no","nord-aurdal.no","nord-fron.no","nord-odal.no","norddal.no","nordkapp.no","bo.nordland.no","bø.nordland.no","heroy.nordland.no","herøy.nordland.no","nordre-land.no","nordreisa.no","nore-og-uvdal.no","notodden.no","notteroy.no","nøtterøy.no","odda.no","oksnes.no","øksnes.no","omasvuotna.no","oppdal.no","oppegard.no","oppegård.no","orkdal.no","orland.no","ørland.no","orskog.no","ørskog.no","orsta.no","ørsta.no","osen.no","osteroy.no","osterøy.no","valer.ostfold.no","våler.østfold.no","ostre-toten.no","østre-toten.no","overhalla.no","ovre-eiker.no","øvre-eiker.no","oyer.no","øyer.no","oygarden.no","øygarden.no","oystre-slidre.no","øystre-slidre.no","porsanger.no","porsangu.no","porsáŋgu.no","porsgrunn.no","rade.no","råde.no","radoy.no","radøy.no","rælingen.no","rahkkeravju.no","ráhkkerávju.no","raisa.no","ráisa.no","rakkestad.no","ralingen.no","rana.no","randaberg.no","rauma.no","rendalen.no","rennebu.no","rennesoy.no","rennesøy.no","rindal.no","ringebu.no","ringerike.no","ringsaker.no","risor.no","risør.no","rissa.no","roan.no","rodoy.no","rødøy.no","rollag.no","romsa.no","romskog.no","rømskog.no","roros.no","røros.no","rost.no","røst.no","royken.no","røyken.no","royrvik.no","røyrvik.no","ruovat.no","rygge.no","salangen.no","salat.no","sálat.no","sálát.no","saltdal.no","samnanger.no","sandefjord.no","sandnes.no","sandoy.no","sandøy.no","sarpsborg.no","sauda.no","sauherad.no","sel.no","selbu.no","selje.no","seljord.no","siellak.no","sigdal.no","siljan.no","sirdal.no","skanit.no","skánit.no","skanland.no","skånland.no","skaun.no","skedsmo.no","ski.no","skien.no","skierva.no","skiervá.no","skiptvet.no","skjak.no","skjåk.no","skjervoy.no","skjervøy.no","skodje.no","smola.no","smøla.no","snaase.no","snåase.no","snasa.no","snåsa.no","snillfjord.no","snoasa.no","sogndal.no","sogne.no","søgne.no","sokndal.no","sola.no","solund.no","somna.no","sømna.no","sondre-land.no","søndre-land.no","songdalen.no","sor-aurdal.no","sør-aurdal.no","sor-fron.no","sør-fron.no","sor-odal.no","sør-odal.no","sor-varanger.no","sør-varanger.no","sorfold.no","sørfold.no","sorreisa.no","sørreisa.no","sortland.no","sorum.no","sørum.no","spydeberg.no","stange.no","stavanger.no","steigen.no","steinkjer.no","stjordal.no","stjørdal.no","stokke.no","stor-elvdal.no","stord.no","stordal.no","storfjord.no","strand.no","stranda.no","stryn.no","sula.no","suldal.no","sund.no","sunndal.no","surnadal.no","sveio.no","svelvik.no","sykkylven.no","tana.no","bo.telemark.no","bø.telemark.no","time.no","tingvoll.no","tinn.no","tjeldsund.no","tjome.no","tjøme.no","tokke.no","tolga.no","tonsberg.no","tønsberg.no","torsken.no","træna.no","trana.no","tranoy.no","tranøy.no","troandin.no","trogstad.no","trøgstad.no","tromsa.no","tromso.no","tromsø.no","trondheim.no","trysil.no","tvedestrand.no","tydal.no","tynset.no","tysfjord.no","tysnes.no","tysvær.no","tysvar.no","ullensaker.no","ullensvang.no","ulvik.no","unjarga.no","unjárga.no","utsira.no","vaapste.no","vadso.no","vadsø.no","værøy.no","vaga.no","vågå.no","vagan.no","vågan.no","vagsoy.no","vågsøy.no","vaksdal.no","valle.no","vang.no","vanylven.no","vardo.no","vardø.no","varggat.no","várggát.no","varoy.no","vefsn.no","vega.no","vegarshei.no","vegårshei.no","vennesla.no","verdal.no","verran.no","vestby.no","sande.vestfold.no","vestnes.no","vestre-slidre.no","vestre-toten.no","vestvagoy.no","vestvågøy.no","vevelstad.no","vik.no","vikna.no","vindafjord.no","voagat.no","volda.no","voss.no","*.np","nr","biz.nr","com.nr","edu.nr","gov.nr","info.nr","net.nr","org.nr","nu","nz","ac.nz","co.nz","cri.nz","geek.nz","gen.nz","govt.nz","health.nz","iwi.nz","kiwi.nz","maori.nz","māori.nz","mil.nz","net.nz","org.nz","parliament.nz","school.nz","om","co.om","com.om","edu.om","gov.om","med.om","museum.om","net.om","org.om","pro.om","onion","org","pa","abo.pa","ac.pa","com.pa","edu.pa","gob.pa","ing.pa","med.pa","net.pa","nom.pa","org.pa","sld.pa","pe","com.pe","edu.pe","gob.pe","mil.pe","net.pe","nom.pe","org.pe","pf","com.pf","edu.pf","org.pf","*.pg","ph","com.ph","edu.ph","gov.ph","i.ph","mil.ph","net.ph","ngo.ph","org.ph","pk","ac.pk","biz.pk","com.pk","edu.pk","fam.pk","gkp.pk","gob.pk","gog.pk","gok.pk","gon.pk","gop.pk","gos.pk","gov.pk","net.pk","org.pk","web.pk","pl","com.pl","net.pl","org.pl","agro.pl","aid.pl","atm.pl","auto.pl","biz.pl","edu.pl","gmina.pl","gsm.pl","info.pl","mail.pl","media.pl","miasta.pl","mil.pl","nieruchomosci.pl","nom.pl","pc.pl","powiat.pl","priv.pl","realestate.pl","rel.pl","sex.pl","shop.pl","sklep.pl","sos.pl","szkola.pl","targi.pl","tm.pl","tourism.pl","travel.pl","turystyka.pl","gov.pl","ap.gov.pl","griw.gov.pl","ic.gov.pl","is.gov.pl","kmpsp.gov.pl","konsulat.gov.pl","kppsp.gov.pl","kwp.gov.pl","kwpsp.gov.pl","mup.gov.pl","mw.gov.pl","oia.gov.pl","oirm.gov.pl","oke.gov.pl","oow.gov.pl","oschr.gov.pl","oum.gov.pl","pa.gov.pl","pinb.gov.pl","piw.gov.pl","po.gov.pl","pr.gov.pl","psp.gov.pl","psse.gov.pl","pup.gov.pl","rzgw.gov.pl","sa.gov.pl","sdn.gov.pl","sko.gov.pl","so.gov.pl","sr.gov.pl","starostwo.gov.pl","ug.gov.pl","ugim.gov.pl","um.gov.pl","umig.gov.pl","upow.gov.pl","uppo.gov.pl","us.gov.pl","uw.gov.pl","uzs.gov.pl","wif.gov.pl","wiih.gov.pl","winb.gov.pl","wios.gov.pl","witd.gov.pl","wiw.gov.pl","wkz.gov.pl","wsa.gov.pl","wskr.gov.pl","wsse.gov.pl","wuoz.gov.pl","wzmiuw.gov.pl","zp.gov.pl","zpisdn.gov.pl","augustow.pl","babia-gora.pl","bedzin.pl","beskidy.pl","bialowieza.pl","bialystok.pl","bielawa.pl","bieszczady.pl","boleslawiec.pl","bydgoszcz.pl","bytom.pl","cieszyn.pl","czeladz.pl","czest.pl","dlugoleka.pl","elblag.pl","elk.pl","glogow.pl","gniezno.pl","gorlice.pl","grajewo.pl","ilawa.pl","jaworzno.pl","jelenia-gora.pl","jgora.pl","kalisz.pl","karpacz.pl","kartuzy.pl","kaszuby.pl","katowice.pl","kazimierz-dolny.pl","kepno.pl","ketrzyn.pl","klodzko.pl","kobierzyce.pl","kolobrzeg.pl","konin.pl","konskowola.pl","kutno.pl","lapy.pl","lebork.pl","legnica.pl","lezajsk.pl","limanowa.pl","lomza.pl","lowicz.pl","lubin.pl","lukow.pl","malbork.pl","malopolska.pl","mazowsze.pl","mazury.pl","mielec.pl","mielno.pl","mragowo.pl","naklo.pl","nowaruda.pl","nysa.pl","olawa.pl","olecko.pl","olkusz.pl","olsztyn.pl","opoczno.pl","opole.pl","ostroda.pl","ostroleka.pl","ostrowiec.pl","ostrowwlkp.pl","pila.pl","pisz.pl","podhale.pl","podlasie.pl","polkowice.pl","pomorskie.pl","pomorze.pl","prochowice.pl","pruszkow.pl","przeworsk.pl","pulawy.pl","radom.pl","rawa-maz.pl","rybnik.pl","rzeszow.pl","sanok.pl","sejny.pl","skoczow.pl","slask.pl","slupsk.pl","sosnowiec.pl","stalowa-wola.pl","starachowice.pl","stargard.pl","suwalki.pl","swidnica.pl","swiebodzin.pl","swinoujscie.pl","szczecin.pl","szczytno.pl","tarnobrzeg.pl","tgory.pl","turek.pl","tychy.pl","ustka.pl","walbrzych.pl","warmia.pl","warszawa.pl","waw.pl","wegrow.pl","wielun.pl","wlocl.pl","wloclawek.pl","wodzislaw.pl","wolomin.pl","wroclaw.pl","zachpomor.pl","zagan.pl","zarow.pl","zgora.pl","zgorzelec.pl","pm","pn","co.pn","edu.pn","gov.pn","net.pn","org.pn","post","pr","biz.pr","com.pr","edu.pr","gov.pr","info.pr","isla.pr","name.pr","net.pr","org.pr","pro.pr","ac.pr","est.pr","prof.pr","pro","aaa.pro","aca.pro","acct.pro","avocat.pro","bar.pro","cpa.pro","eng.pro","jur.pro","law.pro","med.pro","recht.pro","ps","com.ps","edu.ps","gov.ps","net.ps","org.ps","plo.ps","sec.ps","pt","com.pt","edu.pt","gov.pt","int.pt","net.pt","nome.pt","org.pt","publ.pt","pw","belau.pw","co.pw","ed.pw","go.pw","or.pw","py","com.py","coop.py","edu.py","gov.py","mil.py","net.py","org.py","qa","com.qa","edu.qa","gov.qa","mil.qa","name.qa","net.qa","org.qa","sch.qa","re","asso.re","com.re","ro","arts.ro","com.ro","firm.ro","info.ro","nom.ro","nt.ro","org.ro","rec.ro","store.ro","tm.ro","www.ro","rs","ac.rs","co.rs","edu.rs","gov.rs","in.rs","org.rs","ru","rw","ac.rw","co.rw","coop.rw","gov.rw","mil.rw","net.rw","org.rw","sa","com.sa","edu.sa","gov.sa","med.sa","net.sa","org.sa","pub.sa","sch.sa","sb","com.sb","edu.sb","gov.sb","net.sb","org.sb","sc","com.sc","edu.sc","gov.sc","net.sc","org.sc","sd","com.sd","edu.sd","gov.sd","info.sd","med.sd","net.sd","org.sd","tv.sd","se","a.se","ac.se","b.se","bd.se","brand.se","c.se","d.se","e.se","f.se","fh.se","fhsk.se","fhv.se","g.se","h.se","i.se","k.se","komforb.se","kommunalforbund.se","komvux.se","l.se","lanbib.se","m.se","n.se","naturbruksgymn.se","o.se","org.se","p.se","parti.se","pp.se","press.se","r.se","s.se","t.se","tm.se","u.se","w.se","x.se","y.se","z.se","sg","com.sg","edu.sg","gov.sg","net.sg","org.sg","sh","com.sh","gov.sh","mil.sh","net.sh","org.sh","si","sj","sk","sl","com.sl","edu.sl","gov.sl","net.sl","org.sl","sm","sn","art.sn","com.sn","edu.sn","gouv.sn","org.sn","perso.sn","univ.sn","so","com.so","edu.so","gov.so","me.so","net.so","org.so","sr","ss","biz.ss","co.ss","com.ss","edu.ss","gov.ss","me.ss","net.ss","org.ss","sch.ss","st","co.st","com.st","consulado.st","edu.st","embaixada.st","mil.st","net.st","org.st","principe.st","saotome.st","store.st","su","sv","com.sv","edu.sv","gob.sv","org.sv","red.sv","sx","gov.sx","sy","com.sy","edu.sy","gov.sy","mil.sy","net.sy","org.sy","sz","ac.sz","co.sz","org.sz","tc","td","tel","tf","tg","th","ac.th","co.th","go.th","in.th","mi.th","net.th","or.th","tj","ac.tj","biz.tj","co.tj","com.tj","edu.tj","go.tj","gov.tj","int.tj","mil.tj","name.tj","net.tj","nic.tj","org.tj","test.tj","web.tj","tk","tl","gov.tl","tm","co.tm","com.tm","edu.tm","gov.tm","mil.tm","net.tm","nom.tm","org.tm","tn","com.tn","ens.tn","fin.tn","gov.tn","ind.tn","info.tn","intl.tn","mincom.tn","nat.tn","net.tn","org.tn","perso.tn","tourism.tn","to","com.to","edu.to","gov.to","mil.to","net.to","org.to","tr","av.tr","bbs.tr","bel.tr","biz.tr","com.tr","dr.tr","edu.tr","gen.tr","gov.tr","info.tr","k12.tr","kep.tr","mil.tr","name.tr","net.tr","org.tr","pol.tr","tel.tr","tsk.tr","tv.tr","web.tr","nc.tr","gov.nc.tr","tt","biz.tt","co.tt","com.tt","edu.tt","gov.tt","info.tt","mil.tt","name.tt","net.tt","org.tt","pro.tt","tv","tw","club.tw","com.tw","ebiz.tw","edu.tw","game.tw","gov.tw","idv.tw","mil.tw","net.tw","org.tw","tz","ac.tz","co.tz","go.tz","hotel.tz","info.tz","me.tz","mil.tz","mobi.tz","ne.tz","or.tz","sc.tz","tv.tz","ua","com.ua","edu.ua","gov.ua","in.ua","net.ua","org.ua","cherkassy.ua","cherkasy.ua","chernigov.ua","chernihiv.ua","chernivtsi.ua","chernovtsy.ua","ck.ua","cn.ua","cr.ua","crimea.ua","cv.ua","dn.ua","dnepropetrovsk.ua","dnipropetrovsk.ua","donetsk.ua","dp.ua","if.ua","ivano-frankivsk.ua","kh.ua","kharkiv.ua","kharkov.ua","kherson.ua","khmelnitskiy.ua","khmelnytskyi.ua","kiev.ua","kirovograd.ua","km.ua","kr.ua","kropyvnytskyi.ua","krym.ua","ks.ua","kv.ua","kyiv.ua","lg.ua","lt.ua","lugansk.ua","luhansk.ua","lutsk.ua","lv.ua","lviv.ua","mk.ua","mykolaiv.ua","nikolaev.ua","od.ua","odesa.ua","odessa.ua","pl.ua","poltava.ua","rivne.ua","rovno.ua","rv.ua","sb.ua","sebastopol.ua","sevastopol.ua","sm.ua","sumy.ua","te.ua","ternopil.ua","uz.ua","uzhgorod.ua","uzhhorod.ua","vinnica.ua","vinnytsia.ua","vn.ua","volyn.ua","yalta.ua","zakarpattia.ua","zaporizhzhe.ua","zaporizhzhia.ua","zhitomir.ua","zhytomyr.ua","zp.ua","zt.ua","ug","ac.ug","co.ug","com.ug","go.ug","ne.ug","or.ug","org.ug","sc.ug","uk","ac.uk","co.uk","gov.uk","ltd.uk","me.uk","net.uk","nhs.uk","org.uk","plc.uk","police.uk","*.sch.uk","us","dni.us","fed.us","isa.us","kids.us","nsn.us","ak.us","al.us","ar.us","as.us","az.us","ca.us","co.us","ct.us","dc.us","de.us","fl.us","ga.us","gu.us","hi.us","ia.us","id.us","il.us","in.us","ks.us","ky.us","la.us","ma.us","md.us","me.us","mi.us","mn.us","mo.us","ms.us","mt.us","nc.us","nd.us","ne.us","nh.us","nj.us","nm.us","nv.us","ny.us","oh.us","ok.us","or.us","pa.us","pr.us","ri.us","sc.us","sd.us","tn.us","tx.us","ut.us","va.us","vi.us","vt.us","wa.us","wi.us","wv.us","wy.us","k12.ak.us","k12.al.us","k12.ar.us","k12.as.us","k12.az.us","k12.ca.us","k12.co.us","k12.ct.us","k12.dc.us","k12.fl.us","k12.ga.us","k12.gu.us","k12.ia.us","k12.id.us","k12.il.us","k12.in.us","k12.ks.us","k12.ky.us","k12.la.us","k12.ma.us","k12.md.us","k12.me.us","k12.mi.us","k12.mn.us","k12.mo.us","k12.ms.us","k12.mt.us","k12.nc.us","k12.ne.us","k12.nh.us","k12.nj.us","k12.nm.us","k12.nv.us","k12.ny.us","k12.oh.us","k12.ok.us","k12.or.us","k12.pa.us","k12.pr.us","k12.sc.us","k12.tn.us","k12.tx.us","k12.ut.us","k12.va.us","k12.vi.us","k12.vt.us","k12.wa.us","k12.wi.us","cc.ak.us","lib.ak.us","cc.al.us","lib.al.us","cc.ar.us","lib.ar.us","cc.as.us","lib.as.us","cc.az.us","lib.az.us","cc.ca.us","lib.ca.us","cc.co.us","lib.co.us","cc.ct.us","lib.ct.us","cc.dc.us","lib.dc.us","cc.de.us","cc.fl.us","cc.ga.us","cc.gu.us","cc.hi.us","cc.ia.us","cc.id.us","cc.il.us","cc.in.us","cc.ks.us","cc.ky.us","cc.la.us","cc.ma.us","cc.md.us","cc.me.us","cc.mi.us","cc.mn.us","cc.mo.us","cc.ms.us","cc.mt.us","cc.nc.us","cc.nd.us","cc.ne.us","cc.nh.us","cc.nj.us","cc.nm.us","cc.nv.us","cc.ny.us","cc.oh.us","cc.ok.us","cc.or.us","cc.pa.us","cc.pr.us","cc.ri.us","cc.sc.us","cc.sd.us","cc.tn.us","cc.tx.us","cc.ut.us","cc.va.us","cc.vi.us","cc.vt.us","cc.wa.us","cc.wi.us","cc.wv.us","cc.wy.us","k12.wy.us","lib.fl.us","lib.ga.us","lib.gu.us","lib.hi.us","lib.ia.us","lib.id.us","lib.il.us","lib.in.us","lib.ks.us","lib.ky.us","lib.la.us","lib.ma.us","lib.md.us","lib.me.us","lib.mi.us","lib.mn.us","lib.mo.us","lib.ms.us","lib.mt.us","lib.nc.us","lib.nd.us","lib.ne.us","lib.nh.us","lib.nj.us","lib.nm.us","lib.nv.us","lib.ny.us","lib.oh.us","lib.ok.us","lib.or.us","lib.pa.us","lib.pr.us","lib.ri.us","lib.sc.us","lib.sd.us","lib.tn.us","lib.tx.us","lib.ut.us","lib.va.us","lib.vi.us","lib.vt.us","lib.wa.us","lib.wi.us","lib.wy.us","chtr.k12.ma.us","paroch.k12.ma.us","pvt.k12.ma.us","ann-arbor.mi.us","cog.mi.us","dst.mi.us","eaton.mi.us","gen.mi.us","mus.mi.us","tec.mi.us","washtenaw.mi.us","uy","com.uy","edu.uy","gub.uy","mil.uy","net.uy","org.uy","uz","co.uz","com.uz","net.uz","org.uz","va","vc","com.vc","edu.vc","gov.vc","mil.vc","net.vc","org.vc","ve","arts.ve","bib.ve","co.ve","com.ve","e12.ve","edu.ve","firm.ve","gob.ve","gov.ve","info.ve","int.ve","mil.ve","net.ve","nom.ve","org.ve","rar.ve","rec.ve","store.ve","tec.ve","web.ve","vg","vi","co.vi","com.vi","k12.vi","net.vi","org.vi","vn","ac.vn","ai.vn","biz.vn","com.vn","edu.vn","gov.vn","health.vn","id.vn","info.vn","int.vn","io.vn","name.vn","net.vn","org.vn","pro.vn","angiang.vn","bacgiang.vn","backan.vn","baclieu.vn","bacninh.vn","baria-vungtau.vn","bentre.vn","binhdinh.vn","binhduong.vn","binhphuoc.vn","binhthuan.vn","camau.vn","cantho.vn","caobang.vn","daklak.vn","daknong.vn","danang.vn","dienbien.vn","dongnai.vn","dongthap.vn","gialai.vn","hagiang.vn","haiduong.vn","haiphong.vn","hanam.vn","hanoi.vn","hatinh.vn","haugiang.vn","hoabinh.vn","hungyen.vn","khanhhoa.vn","kiengiang.vn","kontum.vn","laichau.vn","lamdong.vn","langson.vn","laocai.vn","longan.vn","namdinh.vn","nghean.vn","ninhbinh.vn","ninhthuan.vn","phutho.vn","phuyen.vn","quangbinh.vn","quangnam.vn","quangngai.vn","quangninh.vn","quangtri.vn","soctrang.vn","sonla.vn","tayninh.vn","thaibinh.vn","thainguyen.vn","thanhhoa.vn","thanhphohochiminh.vn","thuathienhue.vn","tiengiang.vn","travinh.vn","tuyenquang.vn","vinhlong.vn","vinhphuc.vn","yenbai.vn","vu","com.vu","edu.vu","net.vu","org.vu","wf","ws","com.ws","edu.ws","gov.ws","net.ws","org.ws","yt","امارات","հայ","বাংলা","бг","البحرين","бел","中国","中國","الجزائر","مصر","ею","ευ","موريتانيا","გე","ελ","香港","個人.香港","公司.香港","政府.香港","教育.香港","組織.香港","網絡.香港","ಭಾರತ","ଭାରତ","ভাৰত","भारतम्","भारोत","ڀارت","ഭാരതം","भारत","بارت","بھارت","భారత్","ભારત","ਭਾਰਤ","ভারত","இந்தியா","ایران","ايران","عراق","الاردن","한국","қаз","ລາວ","ලංකා","இலங்கை","المغرب","мкд","мон","澳門","澳门","مليسيا","عمان","پاکستان","پاكستان","فلسطين","срб","ак.срб","обр.срб","од.срб","орг.срб","пр.срб","упр.срб","рф","قطر","السعودية","السعودیة","السعودیۃ","السعوديه","سودان","新加坡","சிங்கப்பூர்","سورية","سوريا","ไทย","ทหาร.ไทย","ธุรกิจ.ไทย","เน็ต.ไทย","รัฐบาล.ไทย","ศึกษา.ไทย","องค์กร.ไทย","تونس","台灣","台湾","臺灣","укр","اليمن","xxx","ye","com.ye","edu.ye","gov.ye","mil.ye","net.ye","org.ye","ac.za","agric.za","alt.za","co.za","edu.za","gov.za","grondar.za","law.za","mil.za","net.za","ngo.za","nic.za","nis.za","nom.za","org.za","school.za","tm.za","web.za","zm","ac.zm","biz.zm","co.zm","com.zm","edu.zm","gov.zm","info.zm","mil.zm","net.zm","org.zm","sch.zm","zw","ac.zw","co.zw","gov.zw","mil.zw","org.zw","aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","academy","accenture","accountant","accountants","aco","actor","ads","adult","aeg","aetna","afl","africa","agakhan","agency","aig","airbus","airforce","airtel","akdn","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","aol","apartments","app","apple","aquarelle","arab","aramco","archi","army","art","arte","asda","associates","athleta","attorney","auction","audi","audible","audio","auspost","author","auto","autos","aws","axa","azure","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bbc","bbt","bbva","bcg","bcn","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bharti","bible","bid","bike","bing","bingo","bio","black","blackfriday","blockbuster","blog","bloomberg","blue","bms","bmw","bnpparibas","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","bradesco","bridgestone","broadway","broker","brother","brussels","build","builders","business","buy","buzz","bzh","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","catering","catholic","cba","cbn","cbre","center","ceo","cern","cfa","cfd","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","cipriani","circle","cisco","citadel","citi","citic","city","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","coach","codes","coffee","college","cologne","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","corsica","country","coupon","coupons","courses","cpa","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cuisinella","cymru","cyou","dad","dance","data","date","dating","datsun","day","dclk","dds","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dnp","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","earth","eat","eco","edeka","education","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","ericsson","erni","esq","estate","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","flickr","flights","flir","florist","flowers","fly","foo","food","football","ford","forex","forsale","forum","foundation","fox","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gbiz","gdn","gea","gent","genting","george","ggee","gift","gifts","gives","giving","glass","gle","global","globo","gmail","gmbh","gmo","gmx","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","grainger","graphics","gratis","green","gripe","grocery","group","gucci","guge","guide","guitars","guru","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hkt","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hsbc","hughes","hyatt","hyundai","ibm","icbc","ice","icu","ieee","ifm","ikano","imamat","imdb","immo","immobilien","inc","industries","infiniti","ing","ink","institute","insurance","insure","international","intuit","investments","ipiranga","irish","ismaili","ist","istanbul","itau","itv","jaguar","java","jcb","jeep","jetzt","jewelry","jio","jll","jmp","jnj","joburg","jot","joy","jpmorgan","jprs","juegos","juniper","kaufen","kddi","kerryhotels","kerrylogistics","kerryproperties","kfh","kia","kids","kim","kindle","kitchen","kiwi","koeln","komatsu","kosher","kpmg","kpn","krd","kred","kuokgroup","kyoto","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","ltd","ltda","lundbeck","luxe","luxury","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mckinsey","med","media","meet","melbourne","meme","memorial","men","menu","merck","merckmsd","miami","microsoft","mini","mint","mit","mitsubishi","mlb","mls","mma","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","msd","mtn","mtr","music","nab","nagoya","navy","nba","nec","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nfl","ngo","nhk","nico","nike","nikon","ninja","nissan","nissay","nokia","norton","now","nowruz","nowtv","nra","nrw","ntt","nyc","obi","observer","office","okinawa","olayan","olayangroup","ollo","omega","one","ong","onl","online","ooo","open","oracle","orange","organic","origins","osaka","otsuka","ott","ovh","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pet","pfizer","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","place","play","playstation","plumbing","plus","pnc","pohl","poker","politie","porn","pramerica","praxi","press","prime","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","pub","pwc","qpon","quebec","quest","racing","radio","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","rocks","rodeo","rogers","room","rsvp","rugby","ruhr","run","rwe","ryukyu","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sbi","sbs","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","silk","sina","singles","site","ski","skin","sky","skype","sling","smart","smile","sncf","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","srl","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","sucks","supplies","supply","support","surf","surgery","suzuki","swatch","swiss","sydney","systems","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tci","tdk","team","tech","technology","temasek","tennis","teva","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tjmaxx","tjx","tkmaxx","tmall","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tube","tui","tunes","tushu","tvs","ubank","ubs","unicom","university","uno","uol","ups","vacations","vana","vanguard","vegas","ventures","verisign","versicherung","vet","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vodka","volvo","vote","voting","voto","voyage","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","wtc","wtf","xbox","xerox","xihuan","xin","कॉम","セール","佛山","慈善","集团","在线","点看","คอม","八卦","موقع","公益","公司","香格里拉","网站","移动","我爱你","москва","католик","онлайн","сайт","联通","קום","时尚","微博","淡马锡","ファッション","орг","नेट","ストア","アマゾン","삼성","商标","商店","商城","дети","ポイント","新闻","家電","كوم","中文网","中信","娱乐","谷歌","電訊盈科","购物","クラウド","通販","网店","संगठन","餐厅","网络","ком","亚马逊","食品","飞利浦","手机","ارامكو","العليان","بازار","ابوظبي","كاثوليك","همراه","닷컴","政府","شبكة","بيتك","عرب","机构","组织机构","健康","招聘","рус","大拿","みんな","グーグル","世界","書籍","网址","닷넷","コム","天主教","游戏","vermögensberater","vermögensberatung","企业","信息","嘉里大酒店","嘉里","广东","政务","xyz","yachts","yahoo","yamaxun","yandex","yodobashi","yoga","yokohama","you","youtube","yun","zappos","zara","zero","zip","zone","zuerich","co.krd","edu.krd","art.pl","gliwice.pl","krakow.pl","poznan.pl","wroc.pl","zakopane.pl","lib.de.us","12chars.dev","12chars.it","12chars.pro","cc.ua","inf.ua","ltd.ua","611.to","a2hosted.com","cpserver.com","aaa.vodka","*.on-acorn.io","activetrail.biz","adaptable.app","adobeaemcloud.com","*.dev.adobeaemcloud.com","aem.live","hlx.live","adobeaemcloud.net","aem.page","hlx.page","hlx3.page","adobeio-static.net","adobeioruntime.net","africa.com","beep.pl","airkitapps.com","airkitapps-au.com","airkitapps.eu","aivencloud.com","akadns.net","akamai.net","akamai-staging.net","akamaiedge.net","akamaiedge-staging.net","akamaihd.net","akamaihd-staging.net","akamaiorigin.net","akamaiorigin-staging.net","akamaized.net","akamaized-staging.net","edgekey.net","edgekey-staging.net","edgesuite.net","edgesuite-staging.net","barsy.ca","*.compute.estate","*.alces.network","kasserver.com","altervista.org","alwaysdata.net","myamaze.net","execute-api.cn-north-1.amazonaws.com.cn","execute-api.cn-northwest-1.amazonaws.com.cn","execute-api.af-south-1.amazonaws.com","execute-api.ap-east-1.amazonaws.com","execute-api.ap-northeast-1.amazonaws.com","execute-api.ap-northeast-2.amazonaws.com","execute-api.ap-northeast-3.amazonaws.com","execute-api.ap-south-1.amazonaws.com","execute-api.ap-south-2.amazonaws.com","execute-api.ap-southeast-1.amazonaws.com","execute-api.ap-southeast-2.amazonaws.com","execute-api.ap-southeast-3.amazonaws.com","execute-api.ap-southeast-4.amazonaws.com","execute-api.ap-southeast-5.amazonaws.com","execute-api.ca-central-1.amazonaws.com","execute-api.ca-west-1.amazonaws.com","execute-api.eu-central-1.amazonaws.com","execute-api.eu-central-2.amazonaws.com","execute-api.eu-north-1.amazonaws.com","execute-api.eu-south-1.amazonaws.com","execute-api.eu-south-2.amazonaws.com","execute-api.eu-west-1.amazonaws.com","execute-api.eu-west-2.amazonaws.com","execute-api.eu-west-3.amazonaws.com","execute-api.il-central-1.amazonaws.com","execute-api.me-central-1.amazonaws.com","execute-api.me-south-1.amazonaws.com","execute-api.sa-east-1.amazonaws.com","execute-api.us-east-1.amazonaws.com","execute-api.us-east-2.amazonaws.com","execute-api.us-gov-east-1.amazonaws.com","execute-api.us-gov-west-1.amazonaws.com","execute-api.us-west-1.amazonaws.com","execute-api.us-west-2.amazonaws.com","cloudfront.net","auth.af-south-1.amazoncognito.com","auth.ap-east-1.amazoncognito.com","auth.ap-northeast-1.amazoncognito.com","auth.ap-northeast-2.amazoncognito.com","auth.ap-northeast-3.amazoncognito.com","auth.ap-south-1.amazoncognito.com","auth.ap-south-2.amazoncognito.com","auth.ap-southeast-1.amazoncognito.com","auth.ap-southeast-2.amazoncognito.com","auth.ap-southeast-3.amazoncognito.com","auth.ap-southeast-4.amazoncognito.com","auth.ca-central-1.amazoncognito.com","auth.ca-west-1.amazoncognito.com","auth.eu-central-1.amazoncognito.com","auth.eu-central-2.amazoncognito.com","auth.eu-north-1.amazoncognito.com","auth.eu-south-1.amazoncognito.com","auth.eu-south-2.amazoncognito.com","auth.eu-west-1.amazoncognito.com","auth.eu-west-2.amazoncognito.com","auth.eu-west-3.amazoncognito.com","auth.il-central-1.amazoncognito.com","auth.me-central-1.amazoncognito.com","auth.me-south-1.amazoncognito.com","auth.sa-east-1.amazoncognito.com","auth.us-east-1.amazoncognito.com","auth-fips.us-east-1.amazoncognito.com","auth.us-east-2.amazoncognito.com","auth-fips.us-east-2.amazoncognito.com","auth-fips.us-gov-west-1.amazoncognito.com","auth.us-west-1.amazoncognito.com","auth-fips.us-west-1.amazoncognito.com","auth.us-west-2.amazoncognito.com","auth-fips.us-west-2.amazoncognito.com","*.compute.amazonaws.com.cn","*.compute.amazonaws.com","*.compute-1.amazonaws.com","us-east-1.amazonaws.com","emrappui-prod.cn-north-1.amazonaws.com.cn","emrnotebooks-prod.cn-north-1.amazonaws.com.cn","emrstudio-prod.cn-north-1.amazonaws.com.cn","emrappui-prod.cn-northwest-1.amazonaws.com.cn","emrnotebooks-prod.cn-northwest-1.amazonaws.com.cn","emrstudio-prod.cn-northwest-1.amazonaws.com.cn","emrappui-prod.af-south-1.amazonaws.com","emrnotebooks-prod.af-south-1.amazonaws.com","emrstudio-prod.af-south-1.amazonaws.com","emrappui-prod.ap-east-1.amazonaws.com","emrnotebooks-prod.ap-east-1.amazonaws.com","emrstudio-prod.ap-east-1.amazonaws.com","emrappui-prod.ap-northeast-1.amazonaws.com","emrnotebooks-prod.ap-northeast-1.amazonaws.com","emrstudio-prod.ap-northeast-1.amazonaws.com","emrappui-prod.ap-northeast-2.amazonaws.com","emrnotebooks-prod.ap-northeast-2.amazonaws.com","emrstudio-prod.ap-northeast-2.amazonaws.com","emrappui-prod.ap-northeast-3.amazonaws.com","emrnotebooks-prod.ap-northeast-3.amazonaws.com","emrstudio-prod.ap-northeast-3.amazonaws.com","emrappui-prod.ap-south-1.amazonaws.com","emrnotebooks-prod.ap-south-1.amazonaws.com","emrstudio-prod.ap-south-1.amazonaws.com","emrappui-prod.ap-south-2.amazonaws.com","emrnotebooks-prod.ap-south-2.amazonaws.com","emrstudio-prod.ap-south-2.amazonaws.com","emrappui-prod.ap-southeast-1.amazonaws.com","emrnotebooks-prod.ap-southeast-1.amazonaws.com","emrstudio-prod.ap-southeast-1.amazonaws.com","emrappui-prod.ap-southeast-2.amazonaws.com","emrnotebooks-prod.ap-southeast-2.amazonaws.com","emrstudio-prod.ap-southeast-2.amazonaws.com","emrappui-prod.ap-southeast-3.amazonaws.com","emrnotebooks-prod.ap-southeast-3.amazonaws.com","emrstudio-prod.ap-southeast-3.amazonaws.com","emrappui-prod.ap-southeast-4.amazonaws.com","emrnotebooks-prod.ap-southeast-4.amazonaws.com","emrstudio-prod.ap-southeast-4.amazonaws.com","emrappui-prod.ca-central-1.amazonaws.com","emrnotebooks-prod.ca-central-1.amazonaws.com","emrstudio-prod.ca-central-1.amazonaws.com","emrappui-prod.ca-west-1.amazonaws.com","emrnotebooks-prod.ca-west-1.amazonaws.com","emrstudio-prod.ca-west-1.amazonaws.com","emrappui-prod.eu-central-1.amazonaws.com","emrnotebooks-prod.eu-central-1.amazonaws.com","emrstudio-prod.eu-central-1.amazonaws.com","emrappui-prod.eu-central-2.amazonaws.com","emrnotebooks-prod.eu-central-2.amazonaws.com","emrstudio-prod.eu-central-2.amazonaws.com","emrappui-prod.eu-north-1.amazonaws.com","emrnotebooks-prod.eu-north-1.amazonaws.com","emrstudio-prod.eu-north-1.amazonaws.com","emrappui-prod.eu-south-1.amazonaws.com","emrnotebooks-prod.eu-south-1.amazonaws.com","emrstudio-prod.eu-south-1.amazonaws.com","emrappui-prod.eu-south-2.amazonaws.com","emrnotebooks-prod.eu-south-2.amazonaws.com","emrstudio-prod.eu-south-2.amazonaws.com","emrappui-prod.eu-west-1.amazonaws.com","emrnotebooks-prod.eu-west-1.amazonaws.com","emrstudio-prod.eu-west-1.amazonaws.com","emrappui-prod.eu-west-2.amazonaws.com","emrnotebooks-prod.eu-west-2.amazonaws.com","emrstudio-prod.eu-west-2.amazonaws.com","emrappui-prod.eu-west-3.amazonaws.com","emrnotebooks-prod.eu-west-3.amazonaws.com","emrstudio-prod.eu-west-3.amazonaws.com","emrappui-prod.il-central-1.amazonaws.com","emrnotebooks-prod.il-central-1.amazonaws.com","emrstudio-prod.il-central-1.amazonaws.com","emrappui-prod.me-central-1.amazonaws.com","emrnotebooks-prod.me-central-1.amazonaws.com","emrstudio-prod.me-central-1.amazonaws.com","emrappui-prod.me-south-1.amazonaws.com","emrnotebooks-prod.me-south-1.amazonaws.com","emrstudio-prod.me-south-1.amazonaws.com","emrappui-prod.sa-east-1.amazonaws.com","emrnotebooks-prod.sa-east-1.amazonaws.com","emrstudio-prod.sa-east-1.amazonaws.com","emrappui-prod.us-east-1.amazonaws.com","emrnotebooks-prod.us-east-1.amazonaws.com","emrstudio-prod.us-east-1.amazonaws.com","emrappui-prod.us-east-2.amazonaws.com","emrnotebooks-prod.us-east-2.amazonaws.com","emrstudio-prod.us-east-2.amazonaws.com","emrappui-prod.us-gov-east-1.amazonaws.com","emrnotebooks-prod.us-gov-east-1.amazonaws.com","emrstudio-prod.us-gov-east-1.amazonaws.com","emrappui-prod.us-gov-west-1.amazonaws.com","emrnotebooks-prod.us-gov-west-1.amazonaws.com","emrstudio-prod.us-gov-west-1.amazonaws.com","emrappui-prod.us-west-1.amazonaws.com","emrnotebooks-prod.us-west-1.amazonaws.com","emrstudio-prod.us-west-1.amazonaws.com","emrappui-prod.us-west-2.amazonaws.com","emrnotebooks-prod.us-west-2.amazonaws.com","emrstudio-prod.us-west-2.amazonaws.com","*.cn-north-1.airflow.amazonaws.com.cn","*.cn-northwest-1.airflow.amazonaws.com.cn","*.af-south-1.airflow.amazonaws.com","*.ap-east-1.airflow.amazonaws.com","*.ap-northeast-1.airflow.amazonaws.com","*.ap-northeast-2.airflow.amazonaws.com","*.ap-northeast-3.airflow.amazonaws.com","*.ap-south-1.airflow.amazonaws.com","*.ap-south-2.airflow.amazonaws.com","*.ap-southeast-1.airflow.amazonaws.com","*.ap-southeast-2.airflow.amazonaws.com","*.ap-southeast-3.airflow.amazonaws.com","*.ap-southeast-4.airflow.amazonaws.com","*.ca-central-1.airflow.amazonaws.com","*.ca-west-1.airflow.amazonaws.com","*.eu-central-1.airflow.amazonaws.com","*.eu-central-2.airflow.amazonaws.com","*.eu-north-1.airflow.amazonaws.com","*.eu-south-1.airflow.amazonaws.com","*.eu-south-2.airflow.amazonaws.com","*.eu-west-1.airflow.amazonaws.com","*.eu-west-2.airflow.amazonaws.com","*.eu-west-3.airflow.amazonaws.com","*.il-central-1.airflow.amazonaws.com","*.me-central-1.airflow.amazonaws.com","*.me-south-1.airflow.amazonaws.com","*.sa-east-1.airflow.amazonaws.com","*.us-east-1.airflow.amazonaws.com","*.us-east-2.airflow.amazonaws.com","*.us-west-1.airflow.amazonaws.com","*.us-west-2.airflow.amazonaws.com","s3.dualstack.cn-north-1.amazonaws.com.cn","s3-accesspoint.dualstack.cn-north-1.amazonaws.com.cn","s3-website.dualstack.cn-north-1.amazonaws.com.cn","s3.cn-north-1.amazonaws.com.cn","s3-accesspoint.cn-north-1.amazonaws.com.cn","s3-deprecated.cn-north-1.amazonaws.com.cn","s3-object-lambda.cn-north-1.amazonaws.com.cn","s3-website.cn-north-1.amazonaws.com.cn","s3.dualstack.cn-northwest-1.amazonaws.com.cn","s3-accesspoint.dualstack.cn-northwest-1.amazonaws.com.cn","s3.cn-northwest-1.amazonaws.com.cn","s3-accesspoint.cn-northwest-1.amazonaws.com.cn","s3-object-lambda.cn-northwest-1.amazonaws.com.cn","s3-website.cn-northwest-1.amazonaws.com.cn","s3.dualstack.af-south-1.amazonaws.com","s3-accesspoint.dualstack.af-south-1.amazonaws.com","s3-website.dualstack.af-south-1.amazonaws.com","s3.af-south-1.amazonaws.com","s3-accesspoint.af-south-1.amazonaws.com","s3-object-lambda.af-south-1.amazonaws.com","s3-website.af-south-1.amazonaws.com","s3.dualstack.ap-east-1.amazonaws.com","s3-accesspoint.dualstack.ap-east-1.amazonaws.com","s3.ap-east-1.amazonaws.com","s3-accesspoint.ap-east-1.amazonaws.com","s3-object-lambda.ap-east-1.amazonaws.com","s3-website.ap-east-1.amazonaws.com","s3.dualstack.ap-northeast-1.amazonaws.com","s3-accesspoint.dualstack.ap-northeast-1.amazonaws.com","s3-website.dualstack.ap-northeast-1.amazonaws.com","s3.ap-northeast-1.amazonaws.com","s3-accesspoint.ap-northeast-1.amazonaws.com","s3-object-lambda.ap-northeast-1.amazonaws.com","s3-website.ap-northeast-1.amazonaws.com","s3.dualstack.ap-northeast-2.amazonaws.com","s3-accesspoint.dualstack.ap-northeast-2.amazonaws.com","s3-website.dualstack.ap-northeast-2.amazonaws.com","s3.ap-northeast-2.amazonaws.com","s3-accesspoint.ap-northeast-2.amazonaws.com","s3-object-lambda.ap-northeast-2.amazonaws.com","s3-website.ap-northeast-2.amazonaws.com","s3.dualstack.ap-northeast-3.amazonaws.com","s3-accesspoint.dualstack.ap-northeast-3.amazonaws.com","s3-website.dualstack.ap-northeast-3.amazonaws.com","s3.ap-northeast-3.amazonaws.com","s3-accesspoint.ap-northeast-3.amazonaws.com","s3-object-lambda.ap-northeast-3.amazonaws.com","s3-website.ap-northeast-3.amazonaws.com","s3.dualstack.ap-south-1.amazonaws.com","s3-accesspoint.dualstack.ap-south-1.amazonaws.com","s3-website.dualstack.ap-south-1.amazonaws.com","s3.ap-south-1.amazonaws.com","s3-accesspoint.ap-south-1.amazonaws.com","s3-object-lambda.ap-south-1.amazonaws.com","s3-website.ap-south-1.amazonaws.com","s3.dualstack.ap-south-2.amazonaws.com","s3-accesspoint.dualstack.ap-south-2.amazonaws.com","s3-website.dualstack.ap-south-2.amazonaws.com","s3.ap-south-2.amazonaws.com","s3-accesspoint.ap-south-2.amazonaws.com","s3-object-lambda.ap-south-2.amazonaws.com","s3-website.ap-south-2.amazonaws.com","s3.dualstack.ap-southeast-1.amazonaws.com","s3-accesspoint.dualstack.ap-southeast-1.amazonaws.com","s3-website.dualstack.ap-southeast-1.amazonaws.com","s3.ap-southeast-1.amazonaws.com","s3-accesspoint.ap-southeast-1.amazonaws.com","s3-object-lambda.ap-southeast-1.amazonaws.com","s3-website.ap-southeast-1.amazonaws.com","s3.dualstack.ap-southeast-2.amazonaws.com","s3-accesspoint.dualstack.ap-southeast-2.amazonaws.com","s3-website.dualstack.ap-southeast-2.amazonaws.com","s3.ap-southeast-2.amazonaws.com","s3-accesspoint.ap-southeast-2.amazonaws.com","s3-object-lambda.ap-southeast-2.amazonaws.com","s3-website.ap-southeast-2.amazonaws.com","s3.dualstack.ap-southeast-3.amazonaws.com","s3-accesspoint.dualstack.ap-southeast-3.amazonaws.com","s3-website.dualstack.ap-southeast-3.amazonaws.com","s3.ap-southeast-3.amazonaws.com","s3-accesspoint.ap-southeast-3.amazonaws.com","s3-object-lambda.ap-southeast-3.amazonaws.com","s3-website.ap-southeast-3.amazonaws.com","s3.dualstack.ap-southeast-4.amazonaws.com","s3-accesspoint.dualstack.ap-southeast-4.amazonaws.com","s3-website.dualstack.ap-southeast-4.amazonaws.com","s3.ap-southeast-4.amazonaws.com","s3-accesspoint.ap-southeast-4.amazonaws.com","s3-object-lambda.ap-southeast-4.amazonaws.com","s3-website.ap-southeast-4.amazonaws.com","s3.dualstack.ap-southeast-5.amazonaws.com","s3-accesspoint.dualstack.ap-southeast-5.amazonaws.com","s3-website.dualstack.ap-southeast-5.amazonaws.com","s3.ap-southeast-5.amazonaws.com","s3-accesspoint.ap-southeast-5.amazonaws.com","s3-deprecated.ap-southeast-5.amazonaws.com","s3-object-lambda.ap-southeast-5.amazonaws.com","s3-website.ap-southeast-5.amazonaws.com","s3.dualstack.ca-central-1.amazonaws.com","s3-accesspoint.dualstack.ca-central-1.amazonaws.com","s3-accesspoint-fips.dualstack.ca-central-1.amazonaws.com","s3-fips.dualstack.ca-central-1.amazonaws.com","s3-website.dualstack.ca-central-1.amazonaws.com","s3.ca-central-1.amazonaws.com","s3-accesspoint.ca-central-1.amazonaws.com","s3-accesspoint-fips.ca-central-1.amazonaws.com","s3-fips.ca-central-1.amazonaws.com","s3-object-lambda.ca-central-1.amazonaws.com","s3-website.ca-central-1.amazonaws.com","s3.dualstack.ca-west-1.amazonaws.com","s3-accesspoint.dualstack.ca-west-1.amazonaws.com","s3-accesspoint-fips.dualstack.ca-west-1.amazonaws.com","s3-fips.dualstack.ca-west-1.amazonaws.com","s3-website.dualstack.ca-west-1.amazonaws.com","s3.ca-west-1.amazonaws.com","s3-accesspoint.ca-west-1.amazonaws.com","s3-accesspoint-fips.ca-west-1.amazonaws.com","s3-fips.ca-west-1.amazonaws.com","s3-object-lambda.ca-west-1.amazonaws.com","s3-website.ca-west-1.amazonaws.com","s3.dualstack.eu-central-1.amazonaws.com","s3-accesspoint.dualstack.eu-central-1.amazonaws.com","s3-website.dualstack.eu-central-1.amazonaws.com","s3.eu-central-1.amazonaws.com","s3-accesspoint.eu-central-1.amazonaws.com","s3-object-lambda.eu-central-1.amazonaws.com","s3-website.eu-central-1.amazonaws.com","s3.dualstack.eu-central-2.amazonaws.com","s3-accesspoint.dualstack.eu-central-2.amazonaws.com","s3-website.dualstack.eu-central-2.amazonaws.com","s3.eu-central-2.amazonaws.com","s3-accesspoint.eu-central-2.amazonaws.com","s3-object-lambda.eu-central-2.amazonaws.com","s3-website.eu-central-2.amazonaws.com","s3.dualstack.eu-north-1.amazonaws.com","s3-accesspoint.dualstack.eu-north-1.amazonaws.com","s3.eu-north-1.amazonaws.com","s3-accesspoint.eu-north-1.amazonaws.com","s3-object-lambda.eu-north-1.amazonaws.com","s3-website.eu-north-1.amazonaws.com","s3.dualstack.eu-south-1.amazonaws.com","s3-accesspoint.dualstack.eu-south-1.amazonaws.com","s3-website.dualstack.eu-south-1.amazonaws.com","s3.eu-south-1.amazonaws.com","s3-accesspoint.eu-south-1.amazonaws.com","s3-object-lambda.eu-south-1.amazonaws.com","s3-website.eu-south-1.amazonaws.com","s3.dualstack.eu-south-2.amazonaws.com","s3-accesspoint.dualstack.eu-south-2.amazonaws.com","s3-website.dualstack.eu-south-2.amazonaws.com","s3.eu-south-2.amazonaws.com","s3-accesspoint.eu-south-2.amazonaws.com","s3-object-lambda.eu-south-2.amazonaws.com","s3-website.eu-south-2.amazonaws.com","s3.dualstack.eu-west-1.amazonaws.com","s3-accesspoint.dualstack.eu-west-1.amazonaws.com","s3-website.dualstack.eu-west-1.amazonaws.com","s3.eu-west-1.amazonaws.com","s3-accesspoint.eu-west-1.amazonaws.com","s3-deprecated.eu-west-1.amazonaws.com","s3-object-lambda.eu-west-1.amazonaws.com","s3-website.eu-west-1.amazonaws.com","s3.dualstack.eu-west-2.amazonaws.com","s3-accesspoint.dualstack.eu-west-2.amazonaws.com","s3.eu-west-2.amazonaws.com","s3-accesspoint.eu-west-2.amazonaws.com","s3-object-lambda.eu-west-2.amazonaws.com","s3-website.eu-west-2.amazonaws.com","s3.dualstack.eu-west-3.amazonaws.com","s3-accesspoint.dualstack.eu-west-3.amazonaws.com","s3-website.dualstack.eu-west-3.amazonaws.com","s3.eu-west-3.amazonaws.com","s3-accesspoint.eu-west-3.amazonaws.com","s3-object-lambda.eu-west-3.amazonaws.com","s3-website.eu-west-3.amazonaws.com","s3.dualstack.il-central-1.amazonaws.com","s3-accesspoint.dualstack.il-central-1.amazonaws.com","s3-website.dualstack.il-central-1.amazonaws.com","s3.il-central-1.amazonaws.com","s3-accesspoint.il-central-1.amazonaws.com","s3-object-lambda.il-central-1.amazonaws.com","s3-website.il-central-1.amazonaws.com","s3.dualstack.me-central-1.amazonaws.com","s3-accesspoint.dualstack.me-central-1.amazonaws.com","s3-website.dualstack.me-central-1.amazonaws.com","s3.me-central-1.amazonaws.com","s3-accesspoint.me-central-1.amazonaws.com","s3-object-lambda.me-central-1.amazonaws.com","s3-website.me-central-1.amazonaws.com","s3.dualstack.me-south-1.amazonaws.com","s3-accesspoint.dualstack.me-south-1.amazonaws.com","s3.me-south-1.amazonaws.com","s3-accesspoint.me-south-1.amazonaws.com","s3-object-lambda.me-south-1.amazonaws.com","s3-website.me-south-1.amazonaws.com","s3.amazonaws.com","s3-1.amazonaws.com","s3-ap-east-1.amazonaws.com","s3-ap-northeast-1.amazonaws.com","s3-ap-northeast-2.amazonaws.com","s3-ap-northeast-3.amazonaws.com","s3-ap-south-1.amazonaws.com","s3-ap-southeast-1.amazonaws.com","s3-ap-southeast-2.amazonaws.com","s3-ca-central-1.amazonaws.com","s3-eu-central-1.amazonaws.com","s3-eu-north-1.amazonaws.com","s3-eu-west-1.amazonaws.com","s3-eu-west-2.amazonaws.com","s3-eu-west-3.amazonaws.com","s3-external-1.amazonaws.com","s3-fips-us-gov-east-1.amazonaws.com","s3-fips-us-gov-west-1.amazonaws.com","mrap.accesspoint.s3-global.amazonaws.com","s3-me-south-1.amazonaws.com","s3-sa-east-1.amazonaws.com","s3-us-east-2.amazonaws.com","s3-us-gov-east-1.amazonaws.com","s3-us-gov-west-1.amazonaws.com","s3-us-west-1.amazonaws.com","s3-us-west-2.amazonaws.com","s3-website-ap-northeast-1.amazonaws.com","s3-website-ap-southeast-1.amazonaws.com","s3-website-ap-southeast-2.amazonaws.com","s3-website-eu-west-1.amazonaws.com","s3-website-sa-east-1.amazonaws.com","s3-website-us-east-1.amazonaws.com","s3-website-us-gov-west-1.amazonaws.com","s3-website-us-west-1.amazonaws.com","s3-website-us-west-2.amazonaws.com","s3.dualstack.sa-east-1.amazonaws.com","s3-accesspoint.dualstack.sa-east-1.amazonaws.com","s3-website.dualstack.sa-east-1.amazonaws.com","s3.sa-east-1.amazonaws.com","s3-accesspoint.sa-east-1.amazonaws.com","s3-object-lambda.sa-east-1.amazonaws.com","s3-website.sa-east-1.amazonaws.com","s3.dualstack.us-east-1.amazonaws.com","s3-accesspoint.dualstack.us-east-1.amazonaws.com","s3-accesspoint-fips.dualstack.us-east-1.amazonaws.com","s3-fips.dualstack.us-east-1.amazonaws.com","s3-website.dualstack.us-east-1.amazonaws.com","s3.us-east-1.amazonaws.com","s3-accesspoint.us-east-1.amazonaws.com","s3-accesspoint-fips.us-east-1.amazonaws.com","s3-deprecated.us-east-1.amazonaws.com","s3-fips.us-east-1.amazonaws.com","s3-object-lambda.us-east-1.amazonaws.com","s3-website.us-east-1.amazonaws.com","s3.dualstack.us-east-2.amazonaws.com","s3-accesspoint.dualstack.us-east-2.amazonaws.com","s3-accesspoint-fips.dualstack.us-east-2.amazonaws.com","s3-fips.dualstack.us-east-2.amazonaws.com","s3-website.dualstack.us-east-2.amazonaws.com","s3.us-east-2.amazonaws.com","s3-accesspoint.us-east-2.amazonaws.com","s3-accesspoint-fips.us-east-2.amazonaws.com","s3-deprecated.us-east-2.amazonaws.com","s3-fips.us-east-2.amazonaws.com","s3-object-lambda.us-east-2.amazonaws.com","s3-website.us-east-2.amazonaws.com","s3.dualstack.us-gov-east-1.amazonaws.com","s3-accesspoint.dualstack.us-gov-east-1.amazonaws.com","s3-accesspoint-fips.dualstack.us-gov-east-1.amazonaws.com","s3-fips.dualstack.us-gov-east-1.amazonaws.com","s3.us-gov-east-1.amazonaws.com","s3-accesspoint.us-gov-east-1.amazonaws.com","s3-accesspoint-fips.us-gov-east-1.amazonaws.com","s3-fips.us-gov-east-1.amazonaws.com","s3-object-lambda.us-gov-east-1.amazonaws.com","s3-website.us-gov-east-1.amazonaws.com","s3.dualstack.us-gov-west-1.amazonaws.com","s3-accesspoint.dualstack.us-gov-west-1.amazonaws.com","s3-accesspoint-fips.dualstack.us-gov-west-1.amazonaws.com","s3-fips.dualstack.us-gov-west-1.amazonaws.com","s3.us-gov-west-1.amazonaws.com","s3-accesspoint.us-gov-west-1.amazonaws.com","s3-accesspoint-fips.us-gov-west-1.amazonaws.com","s3-fips.us-gov-west-1.amazonaws.com","s3-object-lambda.us-gov-west-1.amazonaws.com","s3-website.us-gov-west-1.amazonaws.com","s3.dualstack.us-west-1.amazonaws.com","s3-accesspoint.dualstack.us-west-1.amazonaws.com","s3-accesspoint-fips.dualstack.us-west-1.amazonaws.com","s3-fips.dualstack.us-west-1.amazonaws.com","s3-website.dualstack.us-west-1.amazonaws.com","s3.us-west-1.amazonaws.com","s3-accesspoint.us-west-1.amazonaws.com","s3-accesspoint-fips.us-west-1.amazonaws.com","s3-fips.us-west-1.amazonaws.com","s3-object-lambda.us-west-1.amazonaws.com","s3-website.us-west-1.amazonaws.com","s3.dualstack.us-west-2.amazonaws.com","s3-accesspoint.dualstack.us-west-2.amazonaws.com","s3-accesspoint-fips.dualstack.us-west-2.amazonaws.com","s3-fips.dualstack.us-west-2.amazonaws.com","s3-website.dualstack.us-west-2.amazonaws.com","s3.us-west-2.amazonaws.com","s3-accesspoint.us-west-2.amazonaws.com","s3-accesspoint-fips.us-west-2.amazonaws.com","s3-deprecated.us-west-2.amazonaws.com","s3-fips.us-west-2.amazonaws.com","s3-object-lambda.us-west-2.amazonaws.com","s3-website.us-west-2.amazonaws.com","labeling.ap-northeast-1.sagemaker.aws","labeling.ap-northeast-2.sagemaker.aws","labeling.ap-south-1.sagemaker.aws","labeling.ap-southeast-1.sagemaker.aws","labeling.ap-southeast-2.sagemaker.aws","labeling.ca-central-1.sagemaker.aws","labeling.eu-central-1.sagemaker.aws","labeling.eu-west-1.sagemaker.aws","labeling.eu-west-2.sagemaker.aws","labeling.us-east-1.sagemaker.aws","labeling.us-east-2.sagemaker.aws","labeling.us-west-2.sagemaker.aws","notebook.af-south-1.sagemaker.aws","notebook.ap-east-1.sagemaker.aws","notebook.ap-northeast-1.sagemaker.aws","notebook.ap-northeast-2.sagemaker.aws","notebook.ap-northeast-3.sagemaker.aws","notebook.ap-south-1.sagemaker.aws","notebook.ap-south-2.sagemaker.aws","notebook.ap-southeast-1.sagemaker.aws","notebook.ap-southeast-2.sagemaker.aws","notebook.ap-southeast-3.sagemaker.aws","notebook.ap-southeast-4.sagemaker.aws","notebook.ca-central-1.sagemaker.aws","notebook-fips.ca-central-1.sagemaker.aws","notebook.ca-west-1.sagemaker.aws","notebook-fips.ca-west-1.sagemaker.aws","notebook.eu-central-1.sagemaker.aws","notebook.eu-central-2.sagemaker.aws","notebook.eu-north-1.sagemaker.aws","notebook.eu-south-1.sagemaker.aws","notebook.eu-south-2.sagemaker.aws","notebook.eu-west-1.sagemaker.aws","notebook.eu-west-2.sagemaker.aws","notebook.eu-west-3.sagemaker.aws","notebook.il-central-1.sagemaker.aws","notebook.me-central-1.sagemaker.aws","notebook.me-south-1.sagemaker.aws","notebook.sa-east-1.sagemaker.aws","notebook.us-east-1.sagemaker.aws","notebook-fips.us-east-1.sagemaker.aws","notebook.us-east-2.sagemaker.aws","notebook-fips.us-east-2.sagemaker.aws","notebook.us-gov-east-1.sagemaker.aws","notebook-fips.us-gov-east-1.sagemaker.aws","notebook.us-gov-west-1.sagemaker.aws","notebook-fips.us-gov-west-1.sagemaker.aws","notebook.us-west-1.sagemaker.aws","notebook-fips.us-west-1.sagemaker.aws","notebook.us-west-2.sagemaker.aws","notebook-fips.us-west-2.sagemaker.aws","notebook.cn-north-1.sagemaker.com.cn","notebook.cn-northwest-1.sagemaker.com.cn","studio.af-south-1.sagemaker.aws","studio.ap-east-1.sagemaker.aws","studio.ap-northeast-1.sagemaker.aws","studio.ap-northeast-2.sagemaker.aws","studio.ap-northeast-3.sagemaker.aws","studio.ap-south-1.sagemaker.aws","studio.ap-southeast-1.sagemaker.aws","studio.ap-southeast-2.sagemaker.aws","studio.ap-southeast-3.sagemaker.aws","studio.ca-central-1.sagemaker.aws","studio.eu-central-1.sagemaker.aws","studio.eu-north-1.sagemaker.aws","studio.eu-south-1.sagemaker.aws","studio.eu-south-2.sagemaker.aws","studio.eu-west-1.sagemaker.aws","studio.eu-west-2.sagemaker.aws","studio.eu-west-3.sagemaker.aws","studio.il-central-1.sagemaker.aws","studio.me-central-1.sagemaker.aws","studio.me-south-1.sagemaker.aws","studio.sa-east-1.sagemaker.aws","studio.us-east-1.sagemaker.aws","studio.us-east-2.sagemaker.aws","studio.us-gov-east-1.sagemaker.aws","studio-fips.us-gov-east-1.sagemaker.aws","studio.us-gov-west-1.sagemaker.aws","studio-fips.us-gov-west-1.sagemaker.aws","studio.us-west-1.sagemaker.aws","studio.us-west-2.sagemaker.aws","studio.cn-north-1.sagemaker.com.cn","studio.cn-northwest-1.sagemaker.com.cn","*.experiments.sagemaker.aws","analytics-gateway.ap-northeast-1.amazonaws.com","analytics-gateway.ap-northeast-2.amazonaws.com","analytics-gateway.ap-south-1.amazonaws.com","analytics-gateway.ap-southeast-1.amazonaws.com","analytics-gateway.ap-southeast-2.amazonaws.com","analytics-gateway.eu-central-1.amazonaws.com","analytics-gateway.eu-west-1.amazonaws.com","analytics-gateway.us-east-1.amazonaws.com","analytics-gateway.us-east-2.amazonaws.com","analytics-gateway.us-west-2.amazonaws.com","amplifyapp.com","*.awsapprunner.com","webview-assets.aws-cloud9.af-south-1.amazonaws.com","vfs.cloud9.af-south-1.amazonaws.com","webview-assets.cloud9.af-south-1.amazonaws.com","webview-assets.aws-cloud9.ap-east-1.amazonaws.com","vfs.cloud9.ap-east-1.amazonaws.com","webview-assets.cloud9.ap-east-1.amazonaws.com","webview-assets.aws-cloud9.ap-northeast-1.amazonaws.com","vfs.cloud9.ap-northeast-1.amazonaws.com","webview-assets.cloud9.ap-northeast-1.amazonaws.com","webview-assets.aws-cloud9.ap-northeast-2.amazonaws.com","vfs.cloud9.ap-northeast-2.amazonaws.com","webview-assets.cloud9.ap-northeast-2.amazonaws.com","webview-assets.aws-cloud9.ap-northeast-3.amazonaws.com","vfs.cloud9.ap-northeast-3.amazonaws.com","webview-assets.cloud9.ap-northeast-3.amazonaws.com","webview-assets.aws-cloud9.ap-south-1.amazonaws.com","vfs.cloud9.ap-south-1.amazonaws.com","webview-assets.cloud9.ap-south-1.amazonaws.com","webview-assets.aws-cloud9.ap-southeast-1.amazonaws.com","vfs.cloud9.ap-southeast-1.amazonaws.com","webview-assets.cloud9.ap-southeast-1.amazonaws.com","webview-assets.aws-cloud9.ap-southeast-2.amazonaws.com","vfs.cloud9.ap-southeast-2.amazonaws.com","webview-assets.cloud9.ap-southeast-2.amazonaws.com","webview-assets.aws-cloud9.ca-central-1.amazonaws.com","vfs.cloud9.ca-central-1.amazonaws.com","webview-assets.cloud9.ca-central-1.amazonaws.com","webview-assets.aws-cloud9.eu-central-1.amazonaws.com","vfs.cloud9.eu-central-1.amazonaws.com","webview-assets.cloud9.eu-central-1.amazonaws.com","webview-assets.aws-cloud9.eu-north-1.amazonaws.com","vfs.cloud9.eu-north-1.amazonaws.com","webview-assets.cloud9.eu-north-1.amazonaws.com","webview-assets.aws-cloud9.eu-south-1.amazonaws.com","vfs.cloud9.eu-south-1.amazonaws.com","webview-assets.cloud9.eu-south-1.amazonaws.com","webview-assets.aws-cloud9.eu-west-1.amazonaws.com","vfs.cloud9.eu-west-1.amazonaws.com","webview-assets.cloud9.eu-west-1.amazonaws.com","webview-assets.aws-cloud9.eu-west-2.amazonaws.com","vfs.cloud9.eu-west-2.amazonaws.com","webview-assets.cloud9.eu-west-2.amazonaws.com","webview-assets.aws-cloud9.eu-west-3.amazonaws.com","vfs.cloud9.eu-west-3.amazonaws.com","webview-assets.cloud9.eu-west-3.amazonaws.com","webview-assets.aws-cloud9.il-central-1.amazonaws.com","vfs.cloud9.il-central-1.amazonaws.com","webview-assets.aws-cloud9.me-south-1.amazonaws.com","vfs.cloud9.me-south-1.amazonaws.com","webview-assets.cloud9.me-south-1.amazonaws.com","webview-assets.aws-cloud9.sa-east-1.amazonaws.com","vfs.cloud9.sa-east-1.amazonaws.com","webview-assets.cloud9.sa-east-1.amazonaws.com","webview-assets.aws-cloud9.us-east-1.amazonaws.com","vfs.cloud9.us-east-1.amazonaws.com","webview-assets.cloud9.us-east-1.amazonaws.com","webview-assets.aws-cloud9.us-east-2.amazonaws.com","vfs.cloud9.us-east-2.amazonaws.com","webview-assets.cloud9.us-east-2.amazonaws.com","webview-assets.aws-cloud9.us-west-1.amazonaws.com","vfs.cloud9.us-west-1.amazonaws.com","webview-assets.cloud9.us-west-1.amazonaws.com","webview-assets.aws-cloud9.us-west-2.amazonaws.com","vfs.cloud9.us-west-2.amazonaws.com","webview-assets.cloud9.us-west-2.amazonaws.com","awsapps.com","cn-north-1.eb.amazonaws.com.cn","cn-northwest-1.eb.amazonaws.com.cn","elasticbeanstalk.com","af-south-1.elasticbeanstalk.com","ap-east-1.elasticbeanstalk.com","ap-northeast-1.elasticbeanstalk.com","ap-northeast-2.elasticbeanstalk.com","ap-northeast-3.elasticbeanstalk.com","ap-south-1.elasticbeanstalk.com","ap-southeast-1.elasticbeanstalk.com","ap-southeast-2.elasticbeanstalk.com","ap-southeast-3.elasticbeanstalk.com","ca-central-1.elasticbeanstalk.com","eu-central-1.elasticbeanstalk.com","eu-north-1.elasticbeanstalk.com","eu-south-1.elasticbeanstalk.com","eu-west-1.elasticbeanstalk.com","eu-west-2.elasticbeanstalk.com","eu-west-3.elasticbeanstalk.com","il-central-1.elasticbeanstalk.com","me-south-1.elasticbeanstalk.com","sa-east-1.elasticbeanstalk.com","us-east-1.elasticbeanstalk.com","us-east-2.elasticbeanstalk.com","us-gov-east-1.elasticbeanstalk.com","us-gov-west-1.elasticbeanstalk.com","us-west-1.elasticbeanstalk.com","us-west-2.elasticbeanstalk.com","*.elb.amazonaws.com.cn","*.elb.amazonaws.com","awsglobalaccelerator.com","*.private.repost.aws","eero.online","eero-stage.online","apigee.io","panel.dev","siiites.com","appspacehosted.com","appspaceusercontent.com","appudo.net","on-aptible.com","f5.si","arvanedge.ir","user.aseinet.ne.jp","gv.vc","d.gv.vc","user.party.eus","pimienta.org","poivron.org","potager.org","sweetpepper.org","myasustor.com","cdn.prod.atlassian-dev.net","translated.page","myfritz.link","myfritz.net","onavstack.net","*.awdev.ca","*.advisor.ws","ecommerce-shop.pl","b-data.io","balena-devices.com","base.ec","official.ec","buyshop.jp","fashionstore.jp","handcrafted.jp","kawaiishop.jp","supersale.jp","theshop.jp","shopselect.net","base.shop","beagleboard.io","*.beget.app","pages.gay","bnr.la","bitbucket.io","blackbaudcdn.net","of.je","bluebite.io","boomla.net","boutir.com","boxfuse.io","square7.ch","bplaced.com","bplaced.de","square7.de","bplaced.net","square7.net","*.s.brave.io","shop.brendly.hr","shop.brendly.rs","browsersafetymark.io","radio.am","radio.fm","uk0.bigv.io","dh.bytemark.co.uk","vm.bytemark.co.uk","cafjs.com","canva-apps.cn","*.my.canvasite.cn","canva-apps.com","*.my.canva.site","drr.ac","uwu.ai","carrd.co","crd.co","ju.mp","api.gov.uk","cdn77-storage.com","rsc.contentproxy9.cz","r.cdn77.net","cdn77-ssl.net","c.cdn77.org","rsc.cdn77.org","ssl.origin.cdn77-secure.org","za.bz","br.com","cn.com","de.com","eu.com","jpn.com","mex.com","ru.com","sa.com","uk.com","us.com","za.com","com.de","gb.net","hu.net","jp.net","se.net","uk.net","ae.org","com.se","cx.ua","discourse.group","discourse.team","clerk.app","clerkstage.app","*.lcl.dev","*.lclstage.dev","*.stg.dev","*.stgstage.dev","cleverapps.cc","*.services.clever-cloud.com","cleverapps.io","cleverapps.tech","clickrising.net","cloudns.asia","cloudns.be","cloud-ip.biz","cloudns.biz","cloudns.cc","cloudns.ch","cloudns.cl","cloudns.club","dnsabr.com","ip-ddns.com","cloudns.cx","cloudns.eu","cloudns.in","cloudns.info","ddns-ip.net","dns-cloud.net","dns-dynamic.net","cloudns.nz","cloudns.org","ip-dynamic.org","cloudns.ph","cloudns.pro","cloudns.pw","cloudns.us","c66.me","cloud66.ws","cloud66.zone","jdevcloud.com","wpdevcloud.com","cloudaccess.host","freesite.host","cloudaccess.net","*.cloudera.site","cf-ipfs.com","cloudflare-ipfs.com","trycloudflare.com","pages.dev","r2.dev","workers.dev","cloudflare.net","cdn.cloudflare.net","cdn.cloudflareanycast.net","cdn.cloudflarecn.net","cdn.cloudflareglobal.net","cust.cloudscale.ch","objects.lpg.cloudscale.ch","objects.rma.cloudscale.ch","wnext.app","cnpy.gdn","*.otap.co","co.ca","co.com","codeberg.page","csb.app","preview.csb.app","co.nl","co.no","webhosting.be","hosting-cluster.nl","ctfcloud.net","convex.site","ac.ru","edu.ru","gov.ru","int.ru","mil.ru","test.ru","dyn.cosidns.de","dnsupdater.de","dynamisches-dns.de","internet-dns.de","l-o-g-i-n.de","dynamic-dns.info","feste-ip.net","knx-server.net","static-access.net","craft.me","realm.cz","on.crisp.email","*.cryptonomic.net","curv.dev","cfolks.pl","cyon.link","cyon.site","platform0.app","fnwk.site","folionetwork.site","biz.dk","co.dk","firm.dk","reg.dk","store.dk","dyndns.dappnode.io","builtwithdark.com","darklang.io","demo.datadetect.com","instance.datadetect.com","edgestack.me","dattolocal.com","dattorelay.com","dattoweb.com","mydatto.com","dattolocal.net","mydatto.net","ddnss.de","dyn.ddnss.de","dyndns.ddnss.de","dyn-ip24.de","dyndns1.de","home-webserver.de","dyn.home-webserver.de","myhome-server.de","ddnss.org","debian.net","definima.io","definima.net","deno.dev","deno-staging.dev","dedyn.io","deta.app","deta.dev","dfirma.pl","dkonto.pl","you2.pl","ondigitalocean.app","*.digitaloceanspaces.com","us.kg","rss.my.id","diher.solutions","discordsays.com","discordsez.com","jozi.biz","dnshome.de","online.th","shop.th","drayddns.com","shoparena.pl","dreamhosters.com","durumis.com","mydrobo.com","drud.io","drud.us","duckdns.org","dy.fi","tunk.org","dyndns.biz","for-better.biz","for-more.biz","for-some.biz","for-the.biz","selfip.biz","webhop.biz","ftpaccess.cc","game-server.cc","myphotos.cc","scrapping.cc","blogdns.com","cechire.com","dnsalias.com","dnsdojo.com","doesntexist.com","dontexist.com","doomdns.com","dyn-o-saur.com","dynalias.com","dyndns-at-home.com","dyndns-at-work.com","dyndns-blog.com","dyndns-free.com","dyndns-home.com","dyndns-ip.com","dyndns-mail.com","dyndns-office.com","dyndns-pics.com","dyndns-remote.com","dyndns-server.com","dyndns-web.com","dyndns-wiki.com","dyndns-work.com","est-a-la-maison.com","est-a-la-masion.com","est-le-patron.com","est-mon-blogueur.com","from-ak.com","from-al.com","from-ar.com","from-ca.com","from-ct.com","from-dc.com","from-de.com","from-fl.com","from-ga.com","from-hi.com","from-ia.com","from-id.com","from-il.com","from-in.com","from-ks.com","from-ky.com","from-ma.com","from-md.com","from-mi.com","from-mn.com","from-mo.com","from-ms.com","from-mt.com","from-nc.com","from-nd.com","from-ne.com","from-nh.com","from-nj.com","from-nm.com","from-nv.com","from-oh.com","from-ok.com","from-or.com","from-pa.com","from-pr.com","from-ri.com","from-sc.com","from-sd.com","from-tn.com","from-tx.com","from-ut.com","from-va.com","from-vt.com","from-wa.com","from-wi.com","from-wv.com","from-wy.com","getmyip.com","gotdns.com","hobby-site.com","homelinux.com","homeunix.com","iamallama.com","is-a-anarchist.com","is-a-blogger.com","is-a-bookkeeper.com","is-a-bulls-fan.com","is-a-caterer.com","is-a-chef.com","is-a-conservative.com","is-a-cpa.com","is-a-cubicle-slave.com","is-a-democrat.com","is-a-designer.com","is-a-doctor.com","is-a-financialadvisor.com","is-a-geek.com","is-a-green.com","is-a-guru.com","is-a-hard-worker.com","is-a-hunter.com","is-a-landscaper.com","is-a-lawyer.com","is-a-liberal.com","is-a-libertarian.com","is-a-llama.com","is-a-musician.com","is-a-nascarfan.com","is-a-nurse.com","is-a-painter.com","is-a-personaltrainer.com","is-a-photographer.com","is-a-player.com","is-a-republican.com","is-a-rockstar.com","is-a-socialist.com","is-a-student.com","is-a-teacher.com","is-a-techie.com","is-a-therapist.com","is-an-accountant.com","is-an-actor.com","is-an-actress.com","is-an-anarchist.com","is-an-artist.com","is-an-engineer.com","is-an-entertainer.com","is-certified.com","is-gone.com","is-into-anime.com","is-into-cars.com","is-into-cartoons.com","is-into-games.com","is-leet.com","is-not-certified.com","is-slick.com","is-uberleet.com","is-with-theband.com","isa-geek.com","isa-hockeynut.com","issmarterthanyou.com","likes-pie.com","likescandy.com","neat-url.com","saves-the-whales.com","selfip.com","sells-for-less.com","sells-for-u.com","servebbs.com","simple-url.com","space-to-rent.com","teaches-yoga.com","writesthisblog.com","ath.cx","fuettertdasnetz.de","isteingeek.de","istmein.de","lebtimnetz.de","leitungsen.de","traeumtgerade.de","barrel-of-knowledge.info","barrell-of-knowledge.info","dyndns.info","for-our.info","groks-the.info","groks-this.info","here-for-more.info","knowsitall.info","selfip.info","webhop.info","forgot.her.name","forgot.his.name","at-band-camp.net","blogdns.net","broke-it.net","buyshouses.net","dnsalias.net","dnsdojo.net","does-it.net","dontexist.net","dynalias.net","dynathome.net","endofinternet.net","from-az.net","from-co.net","from-la.net","from-ny.net","gets-it.net","ham-radio-op.net","homeftp.net","homeip.net","homelinux.net","homeunix.net","in-the-band.net","is-a-chef.net","is-a-geek.net","isa-geek.net","kicks-ass.net","office-on-the.net","podzone.net","scrapper-site.net","selfip.net","sells-it.net","servebbs.net","serveftp.net","thruhere.net","webhop.net","merseine.nu","mine.nu","shacknet.nu","blogdns.org","blogsite.org","boldlygoingnowhere.org","dnsalias.org","dnsdojo.org","doesntexist.org","dontexist.org","doomdns.org","dvrdns.org","dynalias.org","dyndns.org","go.dyndns.org","home.dyndns.org","endofinternet.org","endoftheinternet.org","from-me.org","game-host.org","gotdns.org","hobby-site.org","homedns.org","homeftp.org","homelinux.org","homeunix.org","is-a-bruinsfan.org","is-a-candidate.org","is-a-celticsfan.org","is-a-chef.org","is-a-geek.org","is-a-knight.org","is-a-linux-user.org","is-a-patsfan.org","is-a-soxfan.org","is-found.org","is-lost.org","is-saved.org","is-very-bad.org","is-very-evil.org","is-very-good.org","is-very-nice.org","is-very-sweet.org","isa-geek.org","kicks-ass.org","misconfused.org","podzone.org","readmyblog.org","selfip.org","sellsyourhome.org","servebbs.org","serveftp.org","servegame.org","stuff-4-sale.org","webhop.org","better-than.tv","dyndns.tv","on-the-web.tv","worse-than.tv","is-by.us","land-4-sale.us","stuff-4-sale.us","dyndns.ws","mypets.ws","ddnsfree.com","ddnsgeek.com","giize.com","gleeze.com","kozow.com","loseyourip.com","ooguy.com","theworkpc.com","casacam.net","dynu.net","accesscam.org","camdvr.org","freeddns.org","mywire.org","webredirect.org","myddns.rocks","dynv6.net","e4.cz","easypanel.app","easypanel.host","*.ewp.live","twmail.cc","twmail.net","twmail.org","mymailer.com.tw","url.tw","at.emf.camp","rt.ht","elementor.cloud","elementor.cool","en-root.fr","mytuleap.com","tuleap-partners.com","encr.app","encoreapi.com","eu.encoway.cloud","eu.org","al.eu.org","asso.eu.org","at.eu.org","au.eu.org","be.eu.org","bg.eu.org","ca.eu.org","cd.eu.org","ch.eu.org","cn.eu.org","cy.eu.org","cz.eu.org","de.eu.org","dk.eu.org","edu.eu.org","ee.eu.org","es.eu.org","fi.eu.org","fr.eu.org","gr.eu.org","hr.eu.org","hu.eu.org","ie.eu.org","il.eu.org","in.eu.org","int.eu.org","is.eu.org","it.eu.org","jp.eu.org","kr.eu.org","lt.eu.org","lu.eu.org","lv.eu.org","me.eu.org","mk.eu.org","mt.eu.org","my.eu.org","net.eu.org","ng.eu.org","nl.eu.org","no.eu.org","nz.eu.org","pl.eu.org","pt.eu.org","ro.eu.org","ru.eu.org","se.eu.org","si.eu.org","sk.eu.org","tr.eu.org","uk.eu.org","us.eu.org","eurodir.ru","eu-1.evennode.com","eu-2.evennode.com","eu-3.evennode.com","eu-4.evennode.com","us-1.evennode.com","us-2.evennode.com","us-3.evennode.com","us-4.evennode.com","relay.evervault.app","relay.evervault.dev","expo.app","staging.expo.app","onfabrica.com","ru.net","adygeya.ru","bashkiria.ru","bir.ru","cbg.ru","com.ru","dagestan.ru","grozny.ru","kalmykia.ru","kustanai.ru","marine.ru","mordovia.ru","msk.ru","mytis.ru","nalchik.ru","nov.ru","pyatigorsk.ru","spb.ru","vladikavkaz.ru","vladimir.ru","abkhazia.su","adygeya.su","aktyubinsk.su","arkhangelsk.su","armenia.su","ashgabad.su","azerbaijan.su","balashov.su","bashkiria.su","bryansk.su","bukhara.su","chimkent.su","dagestan.su","east-kazakhstan.su","exnet.su","georgia.su","grozny.su","ivanovo.su","jambyl.su","kalmykia.su","kaluga.su","karacol.su","karaganda.su","karelia.su","khakassia.su","krasnodar.su","kurgan.su","kustanai.su","lenug.su","mangyshlak.su","mordovia.su","msk.su","murmansk.su","nalchik.su","navoi.su","north-kazakhstan.su","nov.su","obninsk.su","penza.su","pokrovsk.su","sochi.su","spb.su","tashkent.su","termez.su","togliatti.su","troitsk.su","tselinograd.su","tula.su","tuva.su","vladikavkaz.su","vladimir.su","vologda.su","channelsdvr.net","u.channelsdvr.net","edgecompute.app","fastly-edge.com","fastly-terrarium.com","freetls.fastly.net","map.fastly.net","a.prod.fastly.net","global.prod.fastly.net","a.ssl.fastly.net","b.ssl.fastly.net","global.ssl.fastly.net","fastlylb.net","map.fastlylb.net","*.user.fm","fastvps-server.com","fastvps.host","myfast.host","fastvps.site","myfast.space","conn.uk","copro.uk","hosp.uk","fedorainfracloud.org","fedorapeople.org","cloud.fedoraproject.org","app.os.fedoraproject.org","app.os.stg.fedoraproject.org","mydobiss.com","fh-muenster.io","filegear.me","firebaseapp.com","fldrv.com","flutterflow.app","fly.dev","shw.io","edgeapp.net","forgeblocks.com","id.forgerock.io","framer.ai","framer.app","framercanvas.com","framer.media","framer.photos","framer.website","framer.wiki","0e.vc","freebox-os.com","freeboxos.com","fbx-os.fr","fbxos.fr","freebox-os.fr","freeboxos.fr","freedesktop.org","freemyip.com","*.frusky.de","wien.funkfeuer.at","daemon.asia","dix.asia","mydns.bz","0am.jp","0g0.jp","0j0.jp","0t0.jp","mydns.jp","pgw.jp","wjg.jp","keyword-on.net","live-on.net","server-on.net","mydns.tw","mydns.vc","*.futurecms.at","*.ex.futurecms.at","*.in.futurecms.at","futurehosting.at","futuremailing.at","*.ex.ortsinfo.at","*.kunden.ortsinfo.at","*.statics.cloud","aliases121.com","campaign.gov.uk","service.gov.uk","independent-commission.uk","independent-inquest.uk","independent-inquiry.uk","independent-panel.uk","independent-review.uk","public-inquiry.uk","royal-commission.uk","gehirn.ne.jp","usercontent.jp","gentapps.com","gentlentapis.com","lab.ms","cdn-edges.net","localcert.net","localhostcert.net","gsj.bz","githubusercontent.com","githubpreview.dev","github.io","gitlab.io","gitapp.si","gitpage.si","glitch.me","nog.community","co.ro","shop.ro","lolipop.io","angry.jp","babyblue.jp","babymilk.jp","backdrop.jp","bambina.jp","bitter.jp","blush.jp","boo.jp","boy.jp","boyfriend.jp","but.jp","candypop.jp","capoo.jp","catfood.jp","cheap.jp","chicappa.jp","chillout.jp","chips.jp","chowder.jp","chu.jp","ciao.jp","cocotte.jp","coolblog.jp","cranky.jp","cutegirl.jp","daa.jp","deca.jp","deci.jp","digick.jp","egoism.jp","fakefur.jp","fem.jp","flier.jp","floppy.jp","fool.jp","frenchkiss.jp","girlfriend.jp","girly.jp","gloomy.jp","gonna.jp","greater.jp","hacca.jp","heavy.jp","her.jp","hiho.jp","hippy.jp","holy.jp","hungry.jp","icurus.jp","itigo.jp","jellybean.jp","kikirara.jp","kill.jp","kilo.jp","kuron.jp","littlestar.jp","lolipopmc.jp","lolitapunk.jp","lomo.jp","lovepop.jp","lovesick.jp","main.jp","mods.jp","mond.jp","mongolian.jp","moo.jp","namaste.jp","nikita.jp","nobushi.jp","noor.jp","oops.jp","parallel.jp","parasite.jp","pecori.jp","peewee.jp","penne.jp","pepper.jp","perma.jp","pigboat.jp","pinoko.jp","punyu.jp","pupu.jp","pussycat.jp","pya.jp","raindrop.jp","readymade.jp","sadist.jp","schoolbus.jp","secret.jp","staba.jp","stripper.jp","sub.jp","sunnyday.jp","thick.jp","tonkotsu.jp","under.jp","upper.jp","velvet.jp","verse.jp","versus.jp","vivian.jp","watson.jp","weblike.jp","whitesnow.jp","zombie.jp","heteml.net","graphic.design","goip.de","blogspot.ae","blogspot.al","blogspot.am","*.hosted.app","*.run.app","web.app","blogspot.com.ar","blogspot.co.at","blogspot.com.au","blogspot.ba","blogspot.be","blogspot.bg","blogspot.bj","blogspot.com.br","blogspot.com.by","blogspot.ca","blogspot.cf","blogspot.ch","blogspot.cl","blogspot.com.co","*.0emm.com","appspot.com","*.r.appspot.com","blogspot.com","codespot.com","googleapis.com","googlecode.com","pagespeedmobilizer.com","withgoogle.com","withyoutube.com","blogspot.cv","blogspot.com.cy","blogspot.cz","blogspot.de","*.gateway.dev","blogspot.dk","blogspot.com.ee","blogspot.com.eg","blogspot.com.es","blogspot.fi","blogspot.fr","cloud.goog","translate.goog","*.usercontent.goog","blogspot.gr","blogspot.hk","blogspot.hr","blogspot.hu","blogspot.co.id","blogspot.ie","blogspot.co.il","blogspot.in","blogspot.is","blogspot.it","blogspot.jp","blogspot.co.ke","blogspot.kr","blogspot.li","blogspot.lt","blogspot.lu","blogspot.md","blogspot.mk","blogspot.com.mt","blogspot.mx","blogspot.my","cloudfunctions.net","blogspot.com.ng","blogspot.nl","blogspot.no","blogspot.co.nz","blogspot.pe","blogspot.pt","blogspot.qa","blogspot.re","blogspot.ro","blogspot.rs","blogspot.ru","blogspot.se","blogspot.sg","blogspot.si","blogspot.sk","blogspot.sn","blogspot.td","blogspot.com.tr","blogspot.tw","blogspot.ug","blogspot.co.uk","blogspot.com.uy","blogspot.vn","blogspot.co.za","goupile.fr","pymnt.uk","cloudapps.digital","london.cloudapps.digital","gov.nl","grafana-dev.net","grayjayleagues.com","günstigbestellen.de","günstigliefern.de","fin.ci","free.hr","caa.li","ua.rs","conf.se","häkkinen.fi","hrsn.dev","hashbang.sh","hasura.app","hasura-app.io","hatenablog.com","hatenadiary.com","hateblo.jp","hatenablog.jp","hatenadiary.jp","hatenadiary.org","pages.it.hs-heilbronn.de","pages-research.it.hs-heilbronn.de","heiyu.space","helioho.st","heliohost.us","hepforge.org","herokuapp.com","herokussl.com","heyflow.page","heyflow.site","ravendb.cloud","ravendb.community","development.run","ravendb.run","homesklep.pl","*.kin.one","*.id.pub","*.kin.pub","secaas.hk","hoplix.shop","orx.biz","biz.gl","biz.ng","co.biz.ng","dl.biz.ng","go.biz.ng","lg.biz.ng","on.biz.ng","col.ng","firm.ng","gen.ng","ltd.ng","ngo.ng","plc.ng","ie.ua","hostyhosting.io","hf.space","static.hf.space","hypernode.io","iobb.net","co.cz","*.moonscale.io","moonscale.net","gr.com","iki.fi","ibxos.it","iliadboxos.it","smushcdn.com","wphostedmail.com","wpmucdn.com","tempurl.host","wpmudev.host","dyn-berlin.de","in-berlin.de","in-brb.de","in-butter.de","in-dsl.de","in-vpn.de","in-dsl.net","in-vpn.net","in-dsl.org","in-vpn.org","biz.at","info.at","info.cx","ac.leg.br","al.leg.br","am.leg.br","ap.leg.br","ba.leg.br","ce.leg.br","df.leg.br","es.leg.br","go.leg.br","ma.leg.br","mg.leg.br","ms.leg.br","mt.leg.br","pa.leg.br","pb.leg.br","pe.leg.br","pi.leg.br","pr.leg.br","rj.leg.br","rn.leg.br","ro.leg.br","rr.leg.br","rs.leg.br","sc.leg.br","se.leg.br","sp.leg.br","to.leg.br","pixolino.com","na4u.ru","apps-1and1.com","live-website.com","apps-1and1.net","websitebuilder.online","app-ionos.space","iopsys.se","*.dweb.link","ipifony.net","ir.md","is-a-good.dev","is-a.dev","iservschule.de","mein-iserv.de","schulplattform.de","schulserver.de","test-iserv.de","iserv.dev","mel.cloudlets.com.au","cloud.interhostsolutions.be","alp1.ae.flow.ch","appengine.flow.ch","es-1.axarnet.cloud","diadem.cloud","vip.jelastic.cloud","jele.cloud","it1.eur.aruba.jenv-aruba.cloud","it1.jenv-aruba.cloud","keliweb.cloud","cs.keliweb.cloud","oxa.cloud","tn.oxa.cloud","uk.oxa.cloud","primetel.cloud","uk.primetel.cloud","ca.reclaim.cloud","uk.reclaim.cloud","us.reclaim.cloud","ch.trendhosting.cloud","de.trendhosting.cloud","jele.club","dopaas.com","paas.hosted-by-previder.com","rag-cloud.hosteur.com","rag-cloud-ch.hosteur.com","jcloud.ik-server.com","jcloud-ver-jpc.ik-server.com","demo.jelastic.com","paas.massivegrid.com","jed.wafaicloud.com","ryd.wafaicloud.com","j.scaleforce.com.cy","jelastic.dogado.eu","fi.cloudplatform.fi","demo.datacenter.fi","paas.datacenter.fi","jele.host","mircloud.host","paas.beebyte.io","sekd1.beebyteapp.io","jele.io","jc.neen.it","jcloud.kz","cloudjiffy.net","fra1-de.cloudjiffy.net","west1-us.cloudjiffy.net","jls-sto1.elastx.net","jls-sto2.elastx.net","jls-sto3.elastx.net","fr-1.paas.massivegrid.net","lon-1.paas.massivegrid.net","lon-2.paas.massivegrid.net","ny-1.paas.massivegrid.net","ny-2.paas.massivegrid.net","sg-1.paas.massivegrid.net","jelastic.saveincloud.net","nordeste-idc.saveincloud.net","j.scaleforce.net","sdscloud.pl","unicloud.pl","mircloud.ru","enscaled.sg","jele.site","jelastic.team","orangecloud.tn","j.layershift.co.uk","phx.enscaled.us","mircloud.us","myjino.ru","*.hosting.myjino.ru","*.landing.myjino.ru","*.spectrum.myjino.ru","*.vps.myjino.ru","jotelulu.cloud","webadorsite.com","jouwweb.site","*.cns.joyent.com","*.triton.zone","js.org","kaas.gg","khplay.nl","kapsi.fi","ezproxy.kuleuven.be","kuleuven.cloud","keymachine.de","kinghost.net","uni5.net","knightpoint.systems","koobin.events","webthings.io","krellian.net","oya.to","git-repos.de","lcube-server.de","svn-repos.de","leadpages.co","lpages.co","lpusercontent.com","lelux.site","libp2p.direct","runcontainers.dev","co.business","co.education","co.events","co.financial","co.network","co.place","co.technology","linkyard-cloud.ch","linkyard.cloud","members.linode.com","*.nodebalancer.linode.com","*.linodeobjects.com","ip.linodeusercontent.com","we.bs","filegear-sg.me","ggff.net","*.user.localcert.dev","lodz.pl","pabianice.pl","plock.pl","sieradz.pl","skierniewice.pl","zgierz.pl","loginline.app","loginline.dev","loginline.io","loginline.services","loginline.site","lohmus.me","servers.run","krasnik.pl","leczna.pl","lubartow.pl","lublin.pl","poniatowa.pl","swidnik.pl","glug.org.uk","lug.org.uk","lugs.org.uk","barsy.bg","barsy.club","barsycenter.com","barsyonline.com","barsy.de","barsy.dev","barsy.eu","barsy.gr","barsy.in","barsy.info","barsy.io","barsy.me","barsy.menu","barsyonline.menu","barsy.mobi","barsy.net","barsy.online","barsy.org","barsy.pro","barsy.pub","barsy.ro","barsy.rs","barsy.shop","barsyonline.shop","barsy.site","barsy.store","barsy.support","barsy.uk","barsy.co.uk","barsyonline.co.uk","*.magentosite.cloud","hb.cldmail.ru","matlab.cloud","modelscape.com","mwcloudnonprod.com","polyspace.com","mayfirst.info","mayfirst.org","mazeplay.com","mcdir.me","mcdir.ru","vps.mcdir.ru","mcpre.ru","mediatech.by","mediatech.dev","hra.health","medusajs.app","miniserver.com","memset.net","messerli.app","atmeta.com","apps.fbsbx.com","*.cloud.metacentrum.cz","custom.metacentrum.cz","flt.cloud.muni.cz","usr.cloud.muni.cz","meteorapp.com","eu.meteorapp.com","co.pl","*.azurecontainer.io","azure-api.net","azure-mobile.net","azureedge.net","azurefd.net","azurestaticapps.net","1.azurestaticapps.net","2.azurestaticapps.net","3.azurestaticapps.net","4.azurestaticapps.net","5.azurestaticapps.net","6.azurestaticapps.net","7.azurestaticapps.net","centralus.azurestaticapps.net","eastasia.azurestaticapps.net","eastus2.azurestaticapps.net","westeurope.azurestaticapps.net","westus2.azurestaticapps.net","azurewebsites.net","cloudapp.net","trafficmanager.net","blob.core.windows.net","servicebus.windows.net","routingthecloud.com","sn.mynetname.net","routingthecloud.net","routingthecloud.org","csx.cc","mydbserver.com","webspaceconfig.de","mittwald.info","mittwaldserver.info","typo3server.info","project.space","modx.dev","bmoattachments.org","net.ru","org.ru","pp.ru","hostedpi.com","caracal.mythic-beasts.com","customer.mythic-beasts.com","fentiger.mythic-beasts.com","lynx.mythic-beasts.com","ocelot.mythic-beasts.com","oncilla.mythic-beasts.com","onza.mythic-beasts.com","sphinx.mythic-beasts.com","vs.mythic-beasts.com","x.mythic-beasts.com","yali.mythic-beasts.com","cust.retrosnub.co.uk","ui.nabu.casa","cloud.nospamproxy.com","netfy.app","netlify.app","4u.com","nfshost.com","ipfs.nftstorage.link","ngo.us","ngrok.app","ngrok-free.app","ngrok.dev","ngrok-free.dev","ngrok.io","ap.ngrok.io","au.ngrok.io","eu.ngrok.io","in.ngrok.io","jp.ngrok.io","sa.ngrok.io","us.ngrok.io","ngrok.pizza","ngrok.pro","torun.pl","nh-serv.co.uk","nimsite.uk","mmafan.biz","myftp.biz","no-ip.biz","no-ip.ca","fantasyleague.cc","gotdns.ch","3utilities.com","blogsyte.com","ciscofreak.com","damnserver.com","ddnsking.com","ditchyourip.com","dnsiskinky.com","dynns.com","geekgalaxy.com","health-carereform.com","homesecuritymac.com","homesecuritypc.com","myactivedirectory.com","mysecuritycamera.com","myvnc.com","net-freaks.com","onthewifi.com","point2this.com","quicksytes.com","securitytactics.com","servebeer.com","servecounterstrike.com","serveexchange.com","serveftp.com","servegame.com","servehalflife.com","servehttp.com","servehumour.com","serveirc.com","servemp3.com","servep2p.com","servepics.com","servequake.com","servesarcasm.com","stufftoread.com","unusualperson.com","workisboring.com","dvrcam.info","ilovecollege.info","no-ip.info","brasilia.me","ddns.me","dnsfor.me","hopto.me","loginto.me","noip.me","webhop.me","bounceme.net","ddns.net","eating-organic.net","mydissent.net","myeffect.net","mymediapc.net","mypsx.net","mysecuritycamera.net","nhlfan.net","no-ip.net","pgafan.net","privatizehealthinsurance.net","redirectme.net","serveblog.net","serveminecraft.net","sytes.net","cable-modem.org","collegefan.org","couchpotatofries.org","hopto.org","mlbfan.org","myftp.org","mysecuritycamera.org","nflfan.org","no-ip.org","read-books.org","ufcfan.org","zapto.org","no-ip.co.uk","golffan.us","noip.us","pointto.us","stage.nodeart.io","*.developer.app","noop.app","*.northflank.app","*.build.run","*.code.run","*.database.run","*.migration.run","noticeable.news","notion.site","dnsking.ch","mypi.co","n4t.co","001www.com","myiphost.com","forumz.info","soundcast.me","tcp4.me","dnsup.net","hicam.net","now-dns.net","ownip.net","vpndns.net","dynserv.org","now-dns.org","x443.pw","now-dns.top","ntdll.top","freeddns.us","nsupdate.info","nerdpol.ovh","nyc.mn","prvcy.page","obl.ong","observablehq.cloud","static.observableusercontent.com","omg.lol","cloudycluster.net","omniwe.site","123webseite.at","123website.be","simplesite.com.br","123website.ch","simplesite.com","123webseite.de","123hjemmeside.dk","123miweb.es","123kotisivu.fi","123siteweb.fr","simplesite.gr","123homepage.it","123website.lu","123website.nl","123hjemmeside.no","service.one","simplesite.pl","123paginaweb.pt","123minsida.se","is-a-fullstack.dev","is-cool.dev","is-not-a.dev","localplayer.dev","is-local.org","opensocial.site","opencraft.hosting","16-b.it","32-b.it","64-b.it","orsites.com","operaunite.com","*.customer-oci.com","*.oci.customer-oci.com","*.ocp.customer-oci.com","*.ocs.customer-oci.com","*.oraclecloudapps.com","*.oraclegovcloudapps.com","*.oraclegovcloudapps.uk","tech.orange","can.re","authgear-staging.com","authgearapps.com","skygearapp.com","outsystemscloud.com","*.hosting.ovh.net","*.webpaas.ovh.net","ownprovider.com","own.pm","*.owo.codes","ox.rs","oy.lc","pgfog.com","pagexl.com","gotpantheon.com","pantheonsite.io","*.paywhirl.com","*.xmit.co","xmit.dev","madethis.site","srv.us","gh.srv.us","gl.srv.us","lk3.ru","mypep.link","perspecta.cloud","on-web.fr","*.upsun.app","upsunapp.com","ent.platform.sh","eu.platform.sh","us.platform.sh","*.platformsh.site","*.tst.site","platter-app.com","platter-app.dev","platterp.us","pley.games","onporter.run","co.bn","postman-echo.com","pstmn.io","mock.pstmn.io","httpbin.org","prequalifyme.today","xen.prgmr.com","priv.at","protonet.io","chirurgiens-dentistes-en-france.fr","byen.site","pubtls.org","pythonanywhere.com","eu.pythonanywhere.com","qa2.com","qcx.io","*.sys.qcx.io","myqnapcloud.cn","alpha-myqnapcloud.com","dev-myqnapcloud.com","mycloudnas.com","mynascloud.com","myqnapcloud.com","qoto.io","qualifioapp.com","ladesk.com","qbuser.com","*.quipelements.com","vapor.cloud","vaporcloud.io","rackmaze.com","rackmaze.net","cloudsite.builders","myradweb.net","servername.us","web.in","in.net","myrdbx.io","site.rb-hosting.io","*.on-rancher.cloud","*.on-k3s.io","*.on-rio.io","ravpage.co.il","readthedocs-hosted.com","readthedocs.io","rhcloud.com","instances.spawn.cc","onrender.com","app.render.com","replit.app","id.replit.app","firewalledreplit.co","id.firewalledreplit.co","repl.co","id.repl.co","replit.dev","archer.replit.dev","bones.replit.dev","canary.replit.dev","global.replit.dev","hacker.replit.dev","id.replit.dev","janeway.replit.dev","kim.replit.dev","kira.replit.dev","kirk.replit.dev","odo.replit.dev","paris.replit.dev","picard.replit.dev","pike.replit.dev","prerelease.replit.dev","reed.replit.dev","riker.replit.dev","sisko.replit.dev","spock.replit.dev","staging.replit.dev","sulu.replit.dev","tarpit.replit.dev","teams.replit.dev","tucker.replit.dev","wesley.replit.dev","worf.replit.dev","repl.run","resindevice.io","devices.resinstaging.io","hzc.io","adimo.co.uk","itcouldbewor.se","aus.basketball","nz.basketball","git-pages.rit.edu","rocky.page","rub.de","ruhr-uni-bochum.de","io.noc.ruhr-uni-bochum.de","биз.рус","ком.рус","крым.рус","мир.рус","мск.рус","орг.рус","самара.рус","сочи.рус","спб.рус","я.рус","ras.ru","nyat.app","180r.com","dojin.com","sakuratan.com","sakuraweb.com","x0.com","2-d.jp","bona.jp","crap.jp","daynight.jp","eek.jp","flop.jp","halfmoon.jp","jeez.jp","matrix.jp","mimoza.jp","ivory.ne.jp","mail-box.ne.jp","mints.ne.jp","mokuren.ne.jp","opal.ne.jp","sakura.ne.jp","sumomo.ne.jp","topaz.ne.jp","netgamers.jp","nyanta.jp","o0o0.jp","rdy.jp","rgr.jp","rulez.jp","s3.isk01.sakurastorage.jp","s3.isk02.sakurastorage.jp","saloon.jp","sblo.jp","skr.jp","tank.jp","uh-oh.jp","undo.jp","rs.webaccel.jp","user.webaccel.jp","websozai.jp","xii.jp","squares.net","jpn.org","kirara.st","x0.to","from.tv","sakura.tv","*.builder.code.com","*.dev-builder.code.com","*.stg-builder.code.com","*.001.test.code-builder-stg.platform.salesforce.com","*.d.crm.dev","*.w.crm.dev","*.wa.crm.dev","*.wb.crm.dev","*.wc.crm.dev","*.wd.crm.dev","*.we.crm.dev","*.wf.crm.dev","sandcats.io","logoip.com","logoip.de","fr-par-1.baremetal.scw.cloud","fr-par-2.baremetal.scw.cloud","nl-ams-1.baremetal.scw.cloud","cockpit.fr-par.scw.cloud","fnc.fr-par.scw.cloud","functions.fnc.fr-par.scw.cloud","k8s.fr-par.scw.cloud","nodes.k8s.fr-par.scw.cloud","s3.fr-par.scw.cloud","s3-website.fr-par.scw.cloud","whm.fr-par.scw.cloud","priv.instances.scw.cloud","pub.instances.scw.cloud","k8s.scw.cloud","cockpit.nl-ams.scw.cloud","k8s.nl-ams.scw.cloud","nodes.k8s.nl-ams.scw.cloud","s3.nl-ams.scw.cloud","s3-website.nl-ams.scw.cloud","whm.nl-ams.scw.cloud","cockpit.pl-waw.scw.cloud","k8s.pl-waw.scw.cloud","nodes.k8s.pl-waw.scw.cloud","s3.pl-waw.scw.cloud","s3-website.pl-waw.scw.cloud","scalebook.scw.cloud","smartlabeling.scw.cloud","dedibox.fr","schokokeks.net","gov.scot","service.gov.scot","scrysec.com","client.scrypted.io","firewall-gateway.com","firewall-gateway.de","my-gateway.de","my-router.de","spdns.de","spdns.eu","firewall-gateway.net","my-firewall.org","myfirewall.org","spdns.org","seidat.net","sellfy.store","minisite.ms","senseering.net","servebolt.cloud","biz.ua","co.ua","pp.ua","as.sh.cn","sheezy.games","shiftedit.io","myshopblocks.com","myshopify.com","shopitsite.com","shopware.shop","shopware.store","mo-siemens.io","1kapp.com","appchizi.com","applinzi.com","sinaapp.com","vipsinaapp.com","siteleaf.net","small-web.org","aeroport.fr","avocat.fr","chambagri.fr","chirurgiens-dentistes.fr","experts-comptables.fr","medecin.fr","notaires.fr","pharmacien.fr","port.fr","veterinaire.fr","vp4.me","*.snowflake.app","*.privatelink.snowflake.app","streamlit.app","streamlitapp.com","try-snowplow.com","mafelo.net","playstation-cloud.com","srht.site","apps.lair.io","*.stolos.io","spacekit.io","ind.mom","customer.speedpartner.de","myspreadshop.at","myspreadshop.com.au","myspreadshop.be","myspreadshop.ca","myspreadshop.ch","myspreadshop.com","myspreadshop.de","myspreadshop.dk","myspreadshop.es","myspreadshop.fi","myspreadshop.fr","myspreadshop.ie","myspreadshop.it","myspreadshop.net","myspreadshop.nl","myspreadshop.no","myspreadshop.pl","myspreadshop.se","myspreadshop.co.uk","w-corp-staticblitz.com","w-credentialless-staticblitz.com","w-staticblitz.com","stackhero-network.com","runs.onstackit.cloud","stackit.gg","stackit.rocks","stackit.run","stackit.zone","musician.io","novecore.site","api.stdlib.com","feedback.ac","forms.ac","assessments.cx","calculators.cx","funnels.cx","paynow.cx","quizzes.cx","researched.cx","tests.cx","surveys.so","storebase.store","storipress.app","storj.farm","strapiapp.com","media.strapiapp.com","vps-host.net","atl.jelastic.vps-host.net","njs.jelastic.vps-host.net","ric.jelastic.vps-host.net","streak-link.com","streaklinks.com","streakusercontent.com","soc.srcf.net","user.srcf.net","utwente.io","temp-dns.com","supabase.co","supabase.in","supabase.net","syncloud.it","dscloud.biz","direct.quickconnect.cn","dsmynas.com","familyds.com","diskstation.me","dscloud.me","i234.me","myds.me","synology.me","dscloud.mobi","dsmynas.net","familyds.net","dsmynas.org","familyds.org","direct.quickconnect.to","vpnplus.to","mytabit.com","mytabit.co.il","tabitorder.co.il","taifun-dns.de","ts.net","*.c.ts.net","gda.pl","gdansk.pl","gdynia.pl","med.pl","sopot.pl","taveusercontent.com","p.tawk.email","p.tawkto.email","site.tb-hosting.com","edugit.io","s3.teckids.org","telebit.app","telebit.io","*.telebit.xyz","*.firenet.ch","*.svc.firenet.ch","reservd.com","thingdustdata.com","cust.dev.thingdust.io","reservd.dev.thingdust.io","cust.disrec.thingdust.io","reservd.disrec.thingdust.io","cust.prod.thingdust.io","cust.testing.thingdust.io","reservd.testing.thingdust.io","tickets.io","arvo.network","azimuth.network","tlon.network","torproject.net","pages.torproject.net","townnews-staging.com","12hp.at","2ix.at","4lima.at","lima-city.at","12hp.ch","2ix.ch","4lima.ch","lima-city.ch","trafficplex.cloud","de.cool","12hp.de","2ix.de","4lima.de","lima-city.de","1337.pictures","clan.rip","lima-city.rocks","webspace.rocks","lima.zone","*.transurl.be","*.transurl.eu","site.transip.me","*.transurl.nl","tuxfamily.org","dd-dns.de","dray-dns.de","draydns.de","dyn-vpn.de","dynvpn.de","mein-vigor.de","my-vigor.de","my-wan.de","syno-ds.de","synology-diskstation.de","synology-ds.de","diskstation.eu","diskstation.org","typedream.app","pro.typeform.com","*.uberspace.de","uber.space","hk.com","inc.hk","ltd.hk","hk.org","it.com","unison-services.cloud","virtual-user.de","virtualuser.de","name.pm","sch.tf","biz.wf","sch.wf","org.yt","rs.ba","bielsko.pl","upli.io","urown.cloud","dnsupdate.info","us.org","v.ua","express.val.run","web.val.run","vercel.app","v0.build","vercel.dev","vusercontent.net","now.sh","2038.io","router.management","v-info.info","voorloper.cloud","*.vultrobjects.com","wafflecell.com","webflow.io","webflowtest.io","*.webhare.dev","bookonline.app","hotelwithflight.com","reserve-online.com","reserve-online.net","cprapid.com","pleskns.com","wp2.host","pdns.page","plesk.page","wpsquared.site","*.wadl.top","remotewd.com","box.ca","pages.wiardweb.com","toolforge.org","wmcloud.org","wmflabs.org","wdh.app","panel.gg","daemon.panel.gg","wixsite.com","wixstudio.com","editorx.io","wixstudio.io","wix.run","messwithdns.com","woltlab-demo.com","myforum.community","community-pro.de","diskussionsbereich.de","community-pro.net","meinforum.net","affinitylottery.org.uk","raffleentry.org.uk","weeklylottery.org.uk","wpenginepowered.com","js.wpenginepowered.com","half.host","xnbay.com","u2.xnbay.com","u2-local.xnbay.com","cistron.nl","demon.nl","xs4all.space","yandexcloud.net","storage.yandexcloud.net","website.yandexcloud.net","official.academy","yolasite.com","yombo.me","ynh.fr","nohost.me","noho.st","za.net","za.org","zap.cloud","zeabur.app","bss.design","basicserver.io","virtualserver.io","enterprisecloud.nu"],B6=N6.reduce((s,e)=>{let t=e.replace(/^(\*\.|\!)/,""),i=ua.toASCII(t),r=e.charAt(0);if(s.has(i))throw new Error(`Multiple rules found for ${e} (${i})`);return s.set(i,{rule:e,suffix:t,punySuffix:i,wildcard:r==="*",exception:r==="!"}),s},new Map),O6=s=>{let e=ua.toASCII(s).split(".");for(let t=0;t<e.length;t++){let i=e.slice(t).join("."),r=B6.get(i);if(r)return r}return null},pk={DOMAIN_TOO_SHORT:"Domain name too short.",DOMAIN_TOO_LONG:"Domain name too long. It should be no more than 255 chars.",LABEL_STARTS_WITH_DASH:"Domain name label can not start with a dash.",LABEL_ENDS_WITH_DASH:"Domain name label can not end with a dash.",LABEL_TOO_LONG:"Domain name label should be at most 63 chars long.",LABEL_TOO_SHORT:"Domain name label should be at least 1 character long.",LABEL_INVALID_CHARS:"Domain name label can only contain alphanumeric characters or dashes."},L6=s=>{let e=ua.toASCII(s);if(e.length<1)return"DOMAIN_TOO_SHORT";if(e.length>255)return"DOMAIN_TOO_LONG";let t=e.split("."),i;for(let r=0;r<t.length;++r){if(i=t[r],!i.length)return"LABEL_TOO_SHORT";if(i.length>63)return"LABEL_TOO_LONG";if(i.charAt(0)==="-")return"LABEL_STARTS_WITH_DASH";if(i.charAt(i.length-1)==="-")return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-_]+$/.test(i))return"LABEL_INVALID_CHARS"}},ho=s=>{if(typeof s!="string")throw new TypeError("Domain name must be a string.");let e=s.slice(0).toLowerCase();e.charAt(e.length-1)==="."&&(e=e.slice(0,e.length-1));let t=L6(e);if(t)return{input:s,error:{message:pk[t],code:t}};let i={input:s,tld:null,sld:null,domain:null,subdomain:null,listed:!1},r=e.split(".");if(r[r.length-1]==="local")return i;let a=()=>(/xn--/.test(e)&&(i.domain&&(i.domain=ua.toASCII(i.domain)),i.subdomain&&(i.subdomain=ua.toASCII(i.subdomain))),i),n=O6(e);if(!n)return r.length<2?i:(i.tld=r.pop(),i.sld=r.pop(),i.domain=[i.sld,i.tld].join("."),r.length&&(i.subdomain=r.pop()),a());i.listed=!0;let o=n.suffix.split("."),u=r.slice(0,r.length-o.length);return n.exception&&u.push(o.shift()),i.tld=o.join("."),!u.length||(n.wildcard&&(o.unshift(u.pop()),i.tld=o.join(".")),!u.length)||(i.sld=u.pop(),i.domain=[i.sld,i.tld].join("."),u.length&&(i.subdomain=u.join("."))),a()},hk=s=>s&&ho(s).domain||null,dk=s=>{let e=ho(s);return!!(e.domain&&e.listed)},z6={parse:ho,get:hk,isValid:dk};Js.default=z6;Js.errorCodes=pk;Js.get=hk;Js.isValid=dk;Js.parse=ho});var sp=O(gk=>{"use strict";h();var M6=fk(),mk=["local","example","invalid","localhost","test"],R6=["localhost","invalid"];function q6(s,e={}){let t=s.split("."),i=t[t.length-1],r=!!e.allowSpecialUseDomain,a=!!e.ignoreError;if(r&&mk.includes(i)){if(t.length>1)return`${t[t.length-2]}.${i}`;if(R6.includes(i))return`${i}`}if(!a&&mk.includes(i))throw new Error(`Cookie has domain set to the public suffix "${i}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.`);return M6.get(s)}gk.getPublicSuffix=q6});var rp=O(yk=>{"use strict";h();var ip=class{constructor(){this.synchronous=!1}findCookie(e,t,i,r){throw new Error("findCookie is not implemented")}findCookies(e,t,i,r){throw new Error("findCookies is not implemented")}putCookie(e,t){throw new Error("putCookie is not implemented")}updateCookie(e,t,i){throw new Error("updateCookie is not implemented")}removeCookie(e,t,i,r){throw new Error("removeCookie is not implemented")}removeCookies(e,t,i){throw new Error("removeCookies is not implemented")}removeAllCookies(e){throw new Error("removeAllCookies is not implemented")}getAllCookies(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}};yk.Store=ip});var np=O(ap=>{"use strict";h();ap.fromCallback=function(s){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")s.apply(this,arguments);else return new Promise((e,t)=>{arguments[arguments.length]=(i,r)=>{if(i)return t(i);e(r)},arguments.length++,s.apply(this,arguments)})},"name",{value:s.name})};ap.fromPromise=function(s){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return s.apply(this,arguments);delete arguments[arguments.length-1],arguments.length--,s.apply(this,arguments).then(t=>e(null,t),e)},"name",{value:s.name})}});var op=O(xk=>{"use strict";h();var U6=sp();function H6(s,e){let t=U6.getPublicSuffix(s,{allowSpecialUseDomain:e});if(!t)return null;if(t==s)return[s];s.slice(-1)=="."&&(s=s.slice(0,-1));let r=s.slice(0,-(t.length+1)).split(".").reverse(),a=t,n=[a];for(;r.length;)a=`${r.shift()}.${a}`,n.push(a);return n}xk.permuteDomain=H6});var up=O(bk=>{"use strict";h();function $6(s,e){return e===s||s.indexOf(e)===0&&(e.substr(-1)==="/"||s.substr(e.length,1)==="/")}bk.pathMatch=$6});var lp=O(cp=>{h();function wk(){try{return M("util")}catch{return null}}function V6(){return Symbol.for("nodejs.util.inspect.custom")}function W6(s){let t=(s.requireUtil||wk)();return t?t.inspect.custom:null}cp.getUtilInspect=function(e,t={}){let r=(t.requireUtil||wk)();return function(n,o,u){return r?r.inspect(n,o,u):e(n)}};cp.getCustomInspectSymbol=function(e={}){return(e.lookupCustomInspectSymbol||V6)()||W6(e)}});var kk=O(pp=>{"use strict";h();var{fromCallback:G6}=np(),K6=rp().Store,J6=op().permuteDomain,X6=up().pathMatch,{getCustomInspectSymbol:Y6,getUtilInspect:Q6}=lp(),ca=class extends K6{constructor(){super(),this.synchronous=!0,this.idx=Object.create(null);let e=Y6();e&&(this[e]=this.inspect)}inspect(){return`{ idx: ${{inspect:Q6(Dk)}.inspect(this.idx,!1,2)} }`}findCookie(e,t,i,r){return!this.idx[e]||!this.idx[e][t]?r(null,void 0):r(null,this.idx[e][t][i]||null)}findCookies(e,t,i,r){let a=[];if(typeof i=="function"&&(r=i,i=!0),!e)return r(null,[]);let n;t?n=function(l){Object.keys(l).forEach(p=>{if(X6(t,p)){let d=l[p];for(let m in d)a.push(d[m])}})}:n=function(l){for(let p in l){let d=l[p];for(let m in d)a.push(d[m])}};let o=J6(e,i)||[e],u=this.idx;o.forEach(c=>{let l=u[c];l&&n(l)}),r(null,a)}putCookie(e,t){this.idx[e.domain]||(this.idx[e.domain]=Object.create(null)),this.idx[e.domain][e.path]||(this.idx[e.domain][e.path]=Object.create(null)),this.idx[e.domain][e.path][e.key]=e,t(null)}updateCookie(e,t,i){this.putCookie(t,i)}removeCookie(e,t,i,r){this.idx[e]&&this.idx[e][t]&&this.idx[e][t][i]&&delete this.idx[e][t][i],r(null)}removeCookies(e,t,i){return this.idx[e]&&(t?delete this.idx[e][t]:delete this.idx[e]),i(null)}removeAllCookies(e){return this.idx=Object.create(null),e(null)}getAllCookies(e){let t=[],i=this.idx;Object.keys(i).forEach(a=>{Object.keys(i[a]).forEach(o=>{Object.keys(i[a][o]).forEach(c=>{c!==null&&t.push(i[a][o][c])})})}),t.sort((a,n)=>(a.creationIndex||0)-(n.creationIndex||0)),e(null,t)}};["findCookie","findCookies","putCookie","updateCookie","removeCookie","removeCookies","removeAllCookies","getAllCookies"].forEach(s=>{ca.prototype[s]=G6(ca.prototype[s])});pp.MemoryCookieStore=ca;function Dk(s){let e=Object.keys(s);if(e.length===0)return"[Object: null prototype] {}";let t=`[Object: null prototype] {
`;return Object.keys(s).forEach((i,r)=>{t+=Z6(i,s[i]),r<e.length-1&&(t+=","),t+=`
`}),t+="}",t}function Z6(s,e){let t=" ",i=`${t}'${s}': [Object: null prototype] {
`;return Object.keys(e).forEach((r,a,n)=>{i+=e8(r,e[r]),a<n.length-1&&(i+=","),i+=`
`}),i+=`${t}}`,i}function e8(s,e){let t=" ",i=`${t}'${s}': [Object: null prototype] {
`;return Object.keys(e).forEach((r,a,n)=>{let o=e[r];i+=` ${r}: ${o.inspect()}`,a<n.length-1&&(i+=","),i+=`
`}),i+=`${t}}`,i}pp.inspectFallback=Dk});var Sk=O($t=>{"use strict";h();var t8=Object.prototype.toString;function vk(s){return typeof s=="function"}function Ek(s){return Ck(s)&&s!==""}function s8(s){return Tk(s,Date)&&a8(s.getTime())}function i8(s){return s===""||s instanceof String&&s.toString()===""}function Ck(s){return typeof s=="string"||s instanceof String}function hp(s){return t8.call(s)==="[object Object]"}function Tk(s,e){try{return s instanceof e}catch{return!1}}function r8(s){return Ek(s)||hp(s)&&"hostname"in s&&"pathname"in s&&"protocol"in s||Tk(s,URL)}function a8(s){return typeof s=="number"&&s%1===0}function n8(s,e,t){if(vk(e)||(t=e,e=null),hp(t)||(t={Error:"Failed Check"}),!s)if(e)e(new la(t));else throw new la(t)}var la=class extends Error{constructor(...e){super(...e)}};$t.ParameterError=la;$t.isFunction=vk;$t.isNonEmptyString=Ek;$t.isDate=s8;$t.isEmptyString=i8;$t.isString=Ck;$t.isObject=hp;$t.isUrlStringOrObject=r8;$t.validate=n8});var jk=O((dZ,Ak)=>{h();Ak.exports="4.1.4"});var Gk=O(Fe=>{"use strict";h();var Pk=(X0(),p2(J0)),o8=ck(),yp=sp(),Lk=rp().Store,zk=kk().MemoryCookieStore,Mk=up().pathMatch,se=Sk(),Rk=jk(),{fromCallback:qk}=np(),{getCustomInspectSymbol:u8}=lp(),c8=/^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/,Fk=/[\x00-\x1F]/,Ik=[`
`,"\r","\0"],l8=/[\x20-\x3A\x3C-\x7E]+/,p8=/[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/,h8={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11},dp=2147483647e3,d8=0,_k='Invalid sameSiteContext option for getCookies(); expected one of "strict", "lax", or "none"';function Nk(s){se.validate(se.isNonEmptyString(s),s);let e=String(s).toLowerCase();return e==="none"||e==="lax"||e==="strict"?e:null}var Xs=Object.freeze({SILENT:"silent",STRICT:"strict",DISABLED:"unsafe-disabled"}),f8=/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/,m8=`
\\[?(?:
(?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|
(?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|
(?:[a-fA-F\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,2}|:)|
(?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,3}|:)|
(?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,4}|:)|
(?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,5}|:)|
(?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,6}|:)|
(?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))
)(?:%[0-9a-zA-Z]{1,})?\\]?
`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),Uk=new RegExp(`^${m8}$`);function fp(s,e,t,i){let r=0;for(;r<s.length;){let a=s.charCodeAt(r);if(a<=47||a>=58)break;r++}return r<e||r>t||!i&&r!=s.length?null:parseInt(s.substr(0,r),10)}function g8(s){let e=s.split(":"),t=[0,0,0];if(e.length!==3)return null;for(let i=0;i<3;i++){let r=i==2,a=fp(e[i],1,2,r);if(a===null)return null;t[i]=a}return t}function y8(s){s=String(s).substr(0,3).toLowerCase();let e=h8[s];return e>=0?e:null}function pa(s){if(!s)return;let e=s.split(p8);if(!e)return;let t=null,i=null,r=null,a=null,n=null,o=null;for(let u=0;u<e.length;u++){let c=e[u].trim();if(!c.length)continue;let l;if(r===null&&(l=g8(c),l)){t=l[0],i=l[1],r=l[2];continue}if(a===null&&(l=fp(c,1,2,!0),l!==null)){a=l;continue}if(n===null&&(l=y8(c),l!==null)){n=l;continue}o===null&&(l=fp(c,2,4,!0),l!==null&&(o=l,o>=70&&o<=99?o+=1900:o>=0&&o<=69&&(o+=2e3)))}if(!(a===null||n===null||o===null||r===null||a<1||a>31||o<1601||t>23||i>59||r>59))return new Date(Date.UTC(o,n,a,t,i,r))}function Hk(s){return se.validate(se.isDate(s),s),s.toUTCString()}function qi(s){return s==null?null:(s=s.trim().replace(/^\./,""),Uk.test(s)&&(s=s.replace("[","").replace("]","")),Pk&&/[^\u0001-\u007f]/.test(s)&&(s=Pk.toASCII(s)),s.toLowerCase())}function mp(s,e,t){if(s==null||e==null)return null;if(t!==!1&&(s=qi(s),e=qi(e)),s==e)return!0;let i=s.lastIndexOf(e);return!(i<=0||s.length!==e.length+i||s.substr(i-1,1)!=="."||f8.test(s))}function $k(s){if(!s||s.substr(0,1)!=="/")return"/";if(s==="/")return s;let e=s.lastIndexOf("/");return e===0?"/":s.slice(0,e)}function x8(s){if(se.isEmptyString(s))return s;for(let e=0;e<Ik.length;e++){let t=s.indexOf(Ik[e]);t!==-1&&(s=s.substr(0,t))}return s}function b8(s,e){s=x8(s),se.validate(se.isString(s),s);let t=s.indexOf("=");if(e)t===0&&(s=s.substr(1),t=s.indexOf("="));else if(t<=0)return;let i,r;if(t<=0?(i="",r=s.trim()):(i=s.substr(0,t).trim(),r=s.substr(t+1).trim()),Fk.test(i)||Fk.test(r))return;let a=new Oe;return a.key=i,a.value=r,a}function Vk(s,e){if((!e||typeof e!="object")&&(e={}),se.isEmptyString(s)||!se.isString(s))return null;s=s.trim();let t=s.indexOf(";"),i=t===-1?s:s.substr(0,t),r=b8(i,!!e.loose);if(!r)return;if(t===-1)return r;let a=s.slice(t+1).trim();if(a.length===0)return r;let n=a.split(";");for(;n.length;){let o=n.shift().trim();if(o.length===0)continue;let u=o.indexOf("="),c,l;switch(u===-1?(c=o,l=null):(c=o.substr(0,u),l=o.substr(u+1)),c=c.trim().toLowerCase(),l&&(l=l.trim()),c){case"expires":if(l){let d=pa(l);d&&(r.expires=d)}break;case"max-age":if(l&&/^-?[0-9]+$/.test(l)){let d=parseInt(l,10);r.setMaxAge(d)}break;case"domain":if(l){let d=l.trim().replace(/^\./,"");d&&(r.domain=d.toLowerCase())}break;case"path":r.path=l&&l[0]==="/"?l:null;break;case"secure":r.secure=!0;break;case"httponly":r.httpOnly=!0;break;case"samesite":switch(l?l.toLowerCase():""){case"strict":r.sameSite="strict";break;case"lax":r.sameSite="lax";break;case"none":r.sameSite="none";break;default:r.sameSite=void 0;break}break;default:r.extensions=r.extensions||[],r.extensions.push(o);break}}return r}function w8(s){return se.validate(se.isObject(s),s),!s.key.startsWith("__Secure-")||s.secure}function D8(s){return se.validate(se.isObject(s)),!s.key.startsWith("__Host-")||s.secure&&s.hostOnly&&s.path!=null&&s.path==="/"}function Wk(s){let e;try{e=JSON.parse(s)}catch(t){return t}return e}function fo(s){if(!s||se.isEmptyString(s))return null;let e;if(typeof s=="string"){if(e=Wk(s),e instanceof Error)return null}else e=s;let t=new Oe;for(let i=0;i<Oe.serializableProperties.length;i++){let r=Oe.serializableProperties[i];e[r]===void 0||e[r]===ha[r]||(r==="expires"||r==="creation"||r==="lastAccessed"?e[r]===null?t[r]=null:t[r]=e[r]=="Infinity"?"Infinity":new Date(e[r]):t[r]=e[r])}return t}function gp(s,e){se.validate(se.isObject(s),s),se.validate(se.isObject(e),e);let t=0,i=s.path?s.path.length:0;if(t=(e.path?e.path.length:0)-i,t!==0)return t;let a=s.creation?s.creation.getTime():dp,n=e.creation?e.creation.getTime():dp;return t=a-n,t!==0||(t=s.creationIndex-e.creationIndex),t}function k8(s){if(se.validate(se.isString(s)),s==="/")return["/"];let e=[s];for(;s.length>1;){let t=s.lastIndexOf("/");if(t===0)break;s=s.substr(0,t),e.push(s)}return e.push("/"),e}function Bk(s){if(s instanceof Object)return s;try{s=decodeURI(s)}catch{}return o8(s)}var ha={key:"",value:"",expires:"Infinity",maxAge:null,domain:null,path:null,secure:!1,httpOnly:!1,extensions:null,hostOnly:null,pathIsDefault:null,creation:null,lastAccessed:null,sameSite:void 0},Oe=class s{constructor(e={}){let t=u8();t&&(this[t]=this.inspect),Object.assign(this,ha,e),this.creation=this.creation||new Date,Object.defineProperty(this,"creationIndex",{configurable:!1,enumerable:!1,writable:!0,value:++s.cookiesCreated})}inspect(){let e=Date.now(),t=this.hostOnly!=null?this.hostOnly:"?",i=this.creation?`${e-this.creation.getTime()}ms`:"?",r=this.lastAccessed?`${e-this.lastAccessed.getTime()}ms`:"?";return`Cookie="${this.toString()}; hostOnly=${t}; aAge=${r}; cAge=${i}"`}toJSON(){let e={};for(let t of s.serializableProperties)this[t]!==ha[t]&&(t==="expires"||t==="creation"||t==="lastAccessed"?this[t]===null?e[t]=null:e[t]=this[t]=="Infinity"?"Infinity":this[t].toISOString():t==="maxAge"?this[t]!==null&&(e[t]=this[t]==1/0||this[t]==-1/0?this[t].toString():this[t]):this[t]!==ha[t]&&(e[t]=this[t]));return e}clone(){return fo(this.toJSON())}validate(){if(!c8.test(this.value)||this.expires!=1/0&&!(this.expires instanceof Date)&&!pa(this.expires)||this.maxAge!=null&&this.maxAge<=0||this.path!=null&&!l8.test(this.path))return!1;let e=this.cdomain();return!(e&&(e.match(/\.$/)||yp.getPublicSuffix(e)==null))}setExpires(e){e instanceof Date?this.expires=e:this.expires=pa(e)||"Infinity"}setMaxAge(e){e===1/0||e===-1/0?this.maxAge=e.toString():this.maxAge=e}cookieString(){let e=this.value;return e==null&&(e=""),this.key===""?e:`${this.key}=${e}`}toString(){let e=this.cookieString();if(this.expires!=1/0&&(this.expires instanceof Date?e+=`; Expires=${Hk(this.expires)}`:e+=`; Expires=${this.expires}`),this.maxAge!=null&&this.maxAge!=1/0&&(e+=`; Max-Age=${this.maxAge}`),this.domain&&!this.hostOnly&&(e+=`; Domain=${this.domain}`),this.path&&(e+=`; Path=${this.path}`),this.secure&&(e+="; Secure"),this.httpOnly&&(e+="; HttpOnly"),this.sameSite&&this.sameSite!=="none"){let t=s.sameSiteCanonical[this.sameSite.toLowerCase()];e+=`; SameSite=${t||this.sameSite}`}return this.extensions&&this.extensions.forEach(t=>{e+=`; ${t}`}),e}TTL(e){if(this.maxAge!=null)return this.maxAge<=0?0:this.maxAge*1e3;let t=this.expires;return t!=1/0?(t instanceof Date||(t=pa(t)||1/0),t==1/0?1/0:t.getTime()-(e||Date.now())):1/0}expiryTime(e){if(this.maxAge!=null){let t=e||this.creation||new Date,i=this.maxAge<=0?-1/0:this.maxAge*1e3;return t.getTime()+i}return this.expires==1/0?1/0:this.expires.getTime()}expiryDate(e){let t=this.expiryTime(e);return t==1/0?new Date(dp):t==-1/0?new Date(d8):new Date(t)}isPersistent(){return this.maxAge!=null||this.expires!=1/0}canonicalizedDomain(){return this.domain==null?null:qi(this.domain)}cdomain(){return this.canonicalizedDomain()}};Oe.cookiesCreated=0;Oe.parse=Vk;Oe.fromJSON=fo;Oe.serializableProperties=Object.keys(ha);Oe.sameSiteLevel={strict:3,lax:2,none:1};Oe.sameSiteCanonical={strict:"Strict",lax:"Lax"};function Ok(s){if(s!=null){let e=s.toLowerCase();switch(e){case Xs.STRICT:case Xs.SILENT:case Xs.DISABLED:return e}}return Xs.SILENT}var ss=class s{constructor(e,t={rejectPublicSuffixes:!0}){typeof t=="boolean"&&(t={rejectPublicSuffixes:t}),se.validate(se.isObject(t),t),this.rejectPublicSuffixes=t.rejectPublicSuffixes,this.enableLooseMode=!!t.looseMode,this.allowSpecialUseDomain=typeof t.allowSpecialUseDomain=="boolean"?t.allowSpecialUseDomain:!0,this.store=e||new zk,this.prefixSecurity=Ok(t.prefixSecurity),this._cloneSync=js("clone"),this._importCookiesSync=js("_importCookies"),this.getCookiesSync=js("getCookies"),this.getCookieStringSync=js("getCookieString"),this.getSetCookieStringsSync=js("getSetCookieStrings"),this.removeAllCookiesSync=js("removeAllCookies"),this.setCookieSync=js("setCookie"),this.serializeSync=js("serialize")}setCookie(e,t,i,r){se.validate(se.isUrlStringOrObject(t),r,i);let a;if(se.isFunction(t))return r=t,r(new Error("No URL was specified"));let n=Bk(t);if(se.isFunction(i)&&(r=i,i={}),se.validate(se.isFunction(r),r),!se.isNonEmptyString(e)&&!se.isObject(e)&&e instanceof String&&e.length==0)return r(null);let o=qi(n.hostname),u=i.loose||this.enableLooseMode,c=null;if(i.sameSiteContext&&(c=Nk(i.sameSiteContext),!c))return r(new Error(_k));if(typeof e=="string"||e instanceof String){if(e=Oe.parse(e,{loose:u}),!e)return a=new Error("Cookie failed to parse"),r(i.ignoreError?null:a)}else if(!(e instanceof Oe))return a=new Error("First argument to setCookie must be a Cookie object or string"),r(i.ignoreError?null:a);let l=i.now||new Date;if(this.rejectPublicSuffixes&&e.domain&&yp.getPublicSuffix(e.cdomain(),{allowSpecialUseDomain:this.allowSpecialUseDomain,ignoreError:i.ignoreError})==null&&!Uk.test(e.domain))return a=new Error("Cookie has domain set to a public suffix"),r(i.ignoreError?null:a);if(e.domain){if(!mp(o,e.cdomain(),!1))return a=new Error(`Cookie not in this host's domain. Cookie:${e.cdomain()} Request:${o}`),r(i.ignoreError?null:a);e.hostOnly==null&&(e.hostOnly=!1)}else e.hostOnly=!0,e.domain=o;if((!e.path||e.path[0]!=="/")&&(e.path=$k(n.pathname),e.pathIsDefault=!0),i.http===!1&&e.httpOnly)return a=new Error("Cookie is HttpOnly and this isn't an HTTP API"),r(i.ignoreError?null:a);if(e.sameSite!=="none"&&e.sameSite!==void 0&&c&&c==="none")return a=new Error("Cookie is SameSite but this is a cross-origin request"),r(i.ignoreError?null:a);let p=this.prefixSecurity===Xs.SILENT;if(!(this.prefixSecurity===Xs.DISABLED)){let g=!1,y;if(w8(e)?D8(e)||(g=!0,y="Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'"):(g=!0,y="Cookie has __Secure prefix but Secure attribute is not set"),g)return r(i.ignoreError||p?null:new Error(y))}let m=this.store;m.updateCookie||(m.updateCookie=function(g,y,w){this.putCookie(y,w)});function f(g,y){if(g)return r(g);let w=function(T){if(T)return r(T);r(null,e)};if(y){if(i.http===!1&&y.httpOnly)return g=new Error("old Cookie is HttpOnly and this isn't an HTTP API"),r(i.ignoreError?null:g);e.creation=y.creation,e.creationIndex=y.creationIndex,e.lastAccessed=l,m.updateCookie(y,e,w)}else e.creation=e.lastAccessed=l,m.putCookie(e,w)}m.findCookie(e.domain,e.path,e.key,f)}getCookies(e,t,i){se.validate(se.isUrlStringOrObject(e),i,e);let r=Bk(e);se.isFunction(t)&&(i=t,t={}),se.validate(se.isObject(t),i,t),se.validate(se.isFunction(i),i);let a=qi(r.hostname),n=r.pathname||"/",o=t.secure;o==null&&r.protocol&&(r.protocol=="https:"||r.protocol=="wss:")&&(o=!0);let u=0;if(t.sameSiteContext){let g=Nk(t.sameSiteContext);if(u=Oe.sameSiteLevel[g],!u)return i(new Error(_k))}let c=t.http;c==null&&(c=!0);let l=t.now||Date.now(),p=t.expire!==!1,d=!!t.allPaths,m=this.store;function f(g){if(g.hostOnly){if(g.domain!=a)return!1}else if(!mp(a,g.domain,!1))return!1;return!d&&!Mk(n,g.path)||g.secure&&!o||g.httpOnly&&!c||u&&Oe.sameSiteLevel[g.sameSite||"none"]>u?!1:p&&g.expiryTime()<=l?(m.removeCookie(g.domain,g.path,g.key,()=>{}),!1):!0}m.findCookies(a,d?null:n,this.allowSpecialUseDomain,(g,y)=>{if(g)return i(g);y=y.filter(f),t.sort!==!1&&(y=y.sort(gp));let w=new Date;for(let T of y)T.lastAccessed=w;i(null,y)})}getCookieString(...e){let t=e.pop();se.validate(se.isFunction(t),t);let i=function(r,a){r?t(r):t(null,a.sort(gp).map(n=>n.cookieString()).join("; "))};e.push(i),this.getCookies.apply(this,e)}getSetCookieStrings(...e){let t=e.pop();se.validate(se.isFunction(t),t);let i=function(r,a){r?t(r):t(null,a.map(n=>n.toString()))};e.push(i),this.getCookies.apply(this,e)}serialize(e){se.validate(se.isFunction(e),e);let t=this.store.constructor.name;se.isObject(t)&&(t=null);let i={version:`tough-cookie@${Rk}`,storeType:t,rejectPublicSuffixes:!!this.rejectPublicSuffixes,enableLooseMode:!!this.enableLooseMode,allowSpecialUseDomain:!!this.allowSpecialUseDomain,prefixSecurity:Ok(this.prefixSecurity),cookies:[]};if(!(this.store.getAllCookies&&typeof this.store.getAllCookies=="function"))return e(new Error("store does not support getAllCookies and cannot be serialized"));this.store.getAllCookies((r,a)=>r?e(r):(i.cookies=a.map(n=>(n=n instanceof Oe?n.toJSON():n,delete n.creationIndex,n)),e(null,i)))}toJSON(){return this.serializeSync()}_importCookies(e,t){let i=e.cookies;if(!i||!Array.isArray(i))return t(new Error("serialized jar has no cookies array"));i=i.slice();let r=a=>{if(a)return t(a);if(!i.length)return t(a,this);let n;try{n=fo(i.shift())}catch(o){return t(o)}if(n===null)return r(null);this.store.putCookie(n,r)};r()}clone(e,t){arguments.length===1&&(t=e,e=null),this.serialize((i,r)=>{if(i)return t(i);s.deserialize(r,e,t)})}cloneSync(e){if(arguments.length===0)return this._cloneSync();if(!e.synchronous)throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");return this._cloneSync(e)}removeAllCookies(e){se.validate(se.isFunction(e),e);let t=this.store;if(typeof t.removeAllCookies=="function"&&t.removeAllCookies!==Lk.prototype.removeAllCookies)return t.removeAllCookies(e);t.getAllCookies((i,r)=>{if(i)return e(i);if(r.length===0)return e(null);let a=0,n=[];function o(u){if(u&&n.push(u),a++,a===r.length)return e(n.length?n[0]:null)}r.forEach(u=>{t.removeCookie(u.domain,u.path,u.key,o)})})}static deserialize(e,t,i){arguments.length!==3&&(i=t,t=null),se.validate(se.isFunction(i),i);let r;if(typeof e=="string"){if(r=Wk(e),r instanceof Error)return i(r)}else r=e;let a=new s(t,{rejectPublicSuffixes:r.rejectPublicSuffixes,looseMode:r.enableLooseMode,allowSpecialUseDomain:r.allowSpecialUseDomain,prefixSecurity:r.prefixSecurity});a._importCookies(r,n=>{if(n)return i(n);i(null,a)})}static deserializeSync(e,t){let i=typeof e=="string"?JSON.parse(e):e,r=new s(t,{rejectPublicSuffixes:i.rejectPublicSuffixes,looseMode:i.enableLooseMode});if(!r.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");return r._importCookiesSync(i),r}};ss.fromJSON=ss.deserializeSync;["_importCookies","clone","getCookies","getCookieString","getSetCookieStrings","removeAllCookies","serialize","setCookie"].forEach(s=>{ss.prototype[s]=qk(ss.prototype[s])});ss.deserialize=qk(ss.deserialize);function js(s){return function(...e){if(!this.store.synchronous)throw new Error("CookieJar store is not synchronous; use async API instead.");let t,i;if(this[s](...e,(r,a)=>{t=r,i=a}),t)throw t;return i}}Fe.version=Rk;Fe.CookieJar=ss;Fe.Cookie=Oe;Fe.Store=Lk;Fe.MemoryCookieStore=zk;Fe.parseDate=pa;Fe.formatDate=Hk;Fe.parse=Vk;Fe.fromJSON=fo;Fe.domainMatch=mp;Fe.defaultPath=$k;Fe.pathMatch=Mk;Fe.getPublicSuffix=yp.getPublicSuffix;Fe.cookieCompare=gp;Fe.permuteDomain=op().permuteDomain;Fe.permutePath=k8;Fe.canonicalDomain=qi;Fe.PrefixSecurityEnum=Xs;Fe.ParameterError=se.ParameterError});import{URLSearchParams as v8}from"node:url";function E8(s,e){let t=an(s.headers);return s.headers=t,typeof s.timeout=="number"&&(s.timeout={request:s.timeout}),s=vr(s,e),s.clearHeaders&&(s.headers=t,delete s.clearHeaders),s.data&&(s.body=s.data,delete s.data),(()=>{let r=s.headers["content-type"];if(r&&r.includes("form-urlencoded")){s.body=new v8(s.body).toString();return}r&&r.includes("octet-stream")||aa(s.body)&&(s.body=JSON.stringify(s.body))})(),s}function is(s={}){let e=vr(s,{method:"POST",timeout:{request:3e4},throwHttpErrors:!1});e.headers=an(e.headers),e.cookieJar||(e.cookieJar=new Kk.CookieJar);let t=vl.extend();async function i(u){u=E8(u,e);let c=u.method.toLowerCase();return u.native?(delete u.native,await t[c](u)):Us(await t[c](u).text())}function r(u,c){return i({url:u,method:"get",...c})}function a(u,c,l){return i({url:u,method:"post",body:c,...l})}function n(u,c,l){return i({url:u,method:"put",body:c,...l})}let o={request:i,get:r,post:a,put:n,setOptions(u){return u.headers=an(u.headers),Wl(e,u),o},setHeader(u,c){return e.headers[u.toLowerCase()]=c,o},setCookie(u,c,l){return e.cookieJar.setCookieSync(`${u}=${c}`,l),o},initCookie(u,c){u.split(/;\s?/).filter(Boolean).forEach(l=>e.cookieJar.setCookieSync(l,c))},getCookie(u){return e.cookieJar.getCookieStringSync(u)}};return o}var Kk,Ui=k(()=>{h();Pe();Yu();Qu();aw();q0();Kk=Dt(Gk(),1)});async function xp(s){try{s.logger.debug("开盲盒");let{code:e,msg:t,result:i}=await s.api.openBlindbox();switch(e){case 0:return s.logger.info("获得",i.prizeName);case 200103:return s.logger.fail("本月奖励已领完",e,t);case 200105:return s.logger.debug("什么都没有哦");case 200106:return s.logger.error("异常",e,t);default:return s.logger.warn("未知原因失败",e,t)}}catch(e){s.logger.error("openBlindbox 异常",e)}}async function C8(s){try{let{chanceNum:e}=await ie(s,s.api.blindboxUser,"获取盲盒任务");if(!e)return;await s.sleep(666);for(let t=0;t<e;t++)await xp(s),await s.sleep(666)}catch(e){s.logger.error("开盒异常",e)}}async function T8(s,e){await ie(s,s.api.registerBlindboxTask,"注册盲盒",e)}async function S8(s){try{let e=await ie(s,s.api.getBlindboxTask,"获取盲盒任务");if(!Array.isArray(e))return;let t=e.filter(i=>i.memo&&!i.memo.includes("isLimit")&&i.status===0);if(t.length<=0)return;for(let{taskName:i,taskId:r}of t)s.logger.debug("注册盲盒任务",i),await T8(s,r),await s.sleep(666),await C8(s)}catch(e){s.logger.error(e)}}async function A8({api:s,sleep:e}){await s.journaling("National_BlindBox_userLogin"),await e(200),await s.journaling("National_BlindBox_login"),await e(200),await s.journaling("National_BlindBox_loginAppOuterEnd"),await e(200)}async function j8(s){let e=is(),t=await s.http.post("https://user-njs.yun.139.com/user/querySpecToken",{toSourceId:"001005"});if(t.code!==0&&t.code!=="0000"&&t.success!==!0)throw new Error(`获取 specToken 失败: ${t.msg||t.message}`);let{var:{rmkey:i,sid:r}}=await s.api.loginMail(t.data.token);if(!i||!r)throw new Error("登录失败,rmkey 或 sid 未获取到");let a=await e.post(`https://smsrebuild1.mail.10086.cn/setting/s?func=umc:getArtifact&sid=${r}&cguid=${new Date().getTime()}`,"",{headers:{COOKIE:`RMKEY=${i}`}});if(!a.var?.artifact)throw new Error(`获取 artifact 失败: ${a.msg}`);let n=await e.get(`https://caiyun.feixin.10086.cn/portal/auth/v2/tyrzLogin.action?ssoToken=${a.var.artifact}&openAccount=0&channel=&marketName=National_BlindBox&sourceId=1005`,{headers:ys(new Date().getTime(),2,`ssoToken=${a.var.artifact}&openAccount=0&channel=&marketName=National_BlindBox&sourceId=1005`)});if(n.code!==0)throw new Error(`登录盲盒失败: ${n.msg||n.message} (code: ${n.code})`);return e.setHeader("jwttoken",n.result.token),{...s,http:e}}async function bp(s){s.logger.start("------【开盲盒】------");let e;try{e=await j8(s)}catch(t){s.logger.error("登录异常",t);return}try{await A8(e);let t=await ie(e,e.api.blindboxUser,"获取盲盒用户信息");if(typeof t.chanceNum!="number")return e.logger.debug(t.chanceNum),await xp(e);if(t.chanceNum===0&&t.taskNum>=2){e.logger.info("今日已完成");return}t.firstTime&&e.logger.success("今日首次登录,获取次数 +1");for(let i=0;i<t.chanceNum;i++)await xp(e),await e.sleep(666);await S8(e)}catch(t){e.logger.error("开盲盒任务异常",t)}}var Jk=k(()=>{h();Ui();lt();Je()});function Xk(s,e){return s.post(`${fr}/redpacket/userAccountInfo`,{},{headers:e})}function Yk(s,e){return s.post(`${fr}/redpacket/configTaskList`,{},{headers:e})}function Qk(s,e){return s.post(`${fr}/redpacket/userSign`,{},{headers:e})}function Zk(s){return s.get(`${Yt}/portal/auth/getTyrzToken.action?sourceId=001216&_=${Date.now()}`)}function ev(s,e,t){return s.post(`${fr}/user/tokenValidate`,{version:"1.0",pintype:13,token:e},{headers:t})}var tv=k(()=>{h();qe()});function mo(s,e){let t="12345681",i=mr()+Date.now()+ff(8),r=Date.now();return{sign:F8(s,{requestId:i,appId:t,token:e},r),requestId:i,appId:t,token:e,timestamp:String(r)}}function F8(s,e,t){let i="e10adc3949ba59abbe56e057f20f883e",r=Object.values(e).reduce((a,n)=>a+(wf(n)?"":typeof n=="object"?JSON.stringify(n):n),"");return s(r+i+t).toLowerCase()}async function wp(s){s.logger.start("------【云手机红包派对】------");try{if(await N8(s),!s.store?.cloudPhoneToken){s.logger.error("云手机红包派对","登录失败");return}await M8(s),await s.sleep(1e3),await _8(s)}catch(e){s.logger.error("云手机红包派对",e)}}async function I8({http:s,logger:e,md5:t,store:i}){try{let{header:r,data:a}=await Yk(s,mo(t,i.cloudPhoneToken));if(r.status!=="200"){e.error("getConfigTaskList 失败",r);return}return a}catch(r){e.error("getConfigTaskList",r)}}async function _8(s){let e=await I8(s);if(!e)return;let{configTaskSignList:t}=e,i=t.find(({isToday:a})=>a===1);if(!i){s.logger.fail("未找到今日签到任务");return}if(i.status===0){s.logger.success("今日已签到");return}let r=await L8(s);r===1?s.logger.success("签到成功","获得",i.signAmount,"分"):s.logger.fail("签到失败",r)}async function N8(s){try{let e=await B8(s);if(!e)return;let t=await O8(s,e);if(!t)return;s.store={...s.store,cloudPhoneToken:t}}catch(e){s.logger.error("login 异常",e)}}async function B8({logger:s,http:e}){try{let{desc:t,retCode:i,token:r}=await Zk(e);if(i==="0"&&r)return r;s.error("getTyrzToken 失败",i,t)}catch(t){s.fatal("getTyrzToken 异常",t)}}async function O8({logger:s,http:e,md5:t},i){try{let{header:r,data:a}=await ev(e,i,mo(t,""));if(r.status!=="200"){s.error("tokenValidate 失败",r);return}return a.token}catch(r){s.fatal("getTyrzToken 异常",r)}}async function L8({logger:s,http:e,md5:t,store:i}){try{let{header:r,data:a}=await Qk(e,mo(t,i.cloudPhoneToken));if(r.status!=="200"){s.error("tokenValidate 失败",r);return}return a.status}catch(r){s.error("sign",r)}}async function z8({logger:s,http:e,md5:t,store:i}){try{let{header:r,data:a}=await Xk(e,mo(t,i.cloudPhoneToken));if(r.status!=="200"){s.error("getUserAccount 失败",r);return}return a.info}catch(r){s.error("getUserAccount",r)}}async function M8(s){let e=await z8(s);if(!e){s.logger.fail("获取用户信息失败");return}s.logger.info("可使用积分:",e.canAmount)}var sv=k(()=>{h();Pe();tv()});async function pt(s,e,t,...i){let r,a;typeof t=="string"?(r=t,a={}):(r=t.name,a=t.defu);try{let{success:n,msg:o,result:u}=await e(...i);if(!n)s.logger.error(`${r}失败`,o),u&&s.logger.debug(u);else return u}catch(n){s.logger.error(`${r}异常`,n)}return a}async function R8(s){let{todayCheckin:e}=await pt(s,s.gardenApi.checkinInfo,"获取果园签到信息");return e}async function q8(s){let{collectWater:e,treeLevel:t,nickName:i,uid:r}=await pt(s,s.gardenApi.initTree,"初始化果园");return i?(s.logger.info(`${i}[${r}]拥有${t}级果树,当前水滴${e}`),[!1,{treeLevel:t,collectWater:e}]):[!0]}async function U8(s){let e=await R8(s);if(e!==void 0){if(e)return s.logger.info("今日果园已签到");try{let{code:t,msg:i}=await pt(s,s.gardenApi.checkin,"果园签到");t!==1&&s.logger.error("果园签到失败",t,i)}catch(t){s.logger.error("果园签到异常",t)}}}async function H8(s){let e=await pt(s,s.gardenApi.getCartoons,{name:"获取已经完成的场景列表",defu:[]});await sn(["cloud","color","widget","mail"].filter(t=>!e.includes(t)),async t=>{let{msg:i,code:r}=await pt(s,s.gardenApi.clickCartoon,"领取场景水滴",t);if(![1,-1,-2].includes(r)){s.logger.error(`领取场景水滴${t}失败`,r,i);return}s.logger.debug(`领取场景水滴${t}`)},async()=>await s.sleep(5e3))}async function $8(s,e){return await pt(s,s.gardenApi.getTaskList,{name:"获取任务列表",defu:[]},e)}async function iv(s,e){return await pt(s,s.gardenApi.getTaskStateList,{name:"获取任务完成情况表",defu:[]},e)}async function V8(s,e,t){let i={2002:async()=>{if(await xs(s))return await s.sleep(6e3),!0},2003:async()=>{if(await xs(s,{ext:".mp4"}))return await s.sleep(6e3),!0}};await sn(e,async({taskId:r,taskName:a})=>{let{code:n,summary:o}=await pt(s,s.gardenApi.doTask,`接收${a}任务`,r,t);switch(n){case-1:case 1:s.logger.debug(`${a}任务已领取`),i[r]&&await i[r]();return;default:s.logger.error(`领取${a}失败`,n,o);return}},async()=>await s.sleep(6e3))}async function rv(s,e){try{let t=await $8(s,e),i=await iv(s,e),r=i.reduce((n,{taskId:o,taskState:u})=>u===0?[...n,o]:n,[]);if(i.length&&!r.length)return;return await s.sleep(2e3),await a(r.length?t.filter(n=>r.indexOf(n.taskId)!==-1):t);async function a(n){await s.sleep(5e3),await V8(s,n,e),await s.sleep(4e3);let o=(await iv(s,e)).filter(({taskState:u})=>u===1).map(({taskId:u})=>u);await s.sleep(200),await W8(s,t.filter(u=>o.indexOf(u.taskId)!==-1),e)}}catch(t){s.logger.error("任务异常",t)}}async function W8(s,e,t){await sn(e,async({taskName:i,taskId:r})=>{let{water:a,msg:n}=await pt(s,s.gardenApi.givenWater,`领取${i}水滴`,r,t);a===0?s.logger.error(`领取${i}奖励失败`,n):s.logger.success(`领取${i}奖励`)},async()=>await s.sleep(6e3))}async function av(s,e){try{s.logger.debug(`助力:${e}`);let{success:t,msg:i,result:r}=await s.gardenApi.inviteFriend(e,"backup");if(t)return r.code===1?(s.logger.debug(r.msg),r.code):(s.logger.fail("助力失败",r.code,r.msg),r.code);s.logger.fail("助力失败",i)}catch(t){s.logger.fail("果园助力异常",t)}}async function G8(s){try{let e=await s.http.post("https://caiyun.as.thefish.icu/code",{inviteCode:await pt(s,s.gardenApi.getInviteCode,"获取邀请码"),id:s.md5(s.config.phone)},{headers:{"Content-Type":"application/json"},throwHttpErrors:!0});e.ok||s.logger.debug("设置邀请码失败",e)}catch(e){s.logger.debug("设置邀请码异常",e)}}async function K8(s){try{return await s.http.get(`https://caiyun.as.thefish.icu/code?user=${s.md5(s.config.phone)}`,{throwHttpErrors:!0})}catch(e){s.logger.debug("获取邀请码异常",e)}return[]}async function J8(s,e){try{await s.http.post("https://caiyun.as.thefish.icu/invite",{inviteCodes:e,id:s.md5(s.config.phone)},{headers:{"Content-Type":"application/json"},throwHttpErrors:!0})}catch(t){s.logger.debug("完成邀请异常",t)}}async function X8(s){try{for(let e of s.config.garden.inviteCodes)await av(s,e),await s.sleep(5e3)}catch(e){s.logger.error("果园助力异常",e)}}async function Y8(s){try{if(s.config.garden.开启果园助力)return;await G8(s);let e=await K8(s);if(e.length===0)return;let t=[];for(let i=0;i<e.length;i++){let r=e[i],a=await av(s,r);if(a===1)t.push(r);else if(a===-3)break;await s.sleep(i===1&&i<e.length-1?2e4:6e3)}await J8(s,t)}catch(e){s.logger.error("果园助力异常",e)}}async function Q8(s,e){s.logger.debug("给果树浇水");try{let{water:t,upgrade:i,code:r,msg:a}=await pt(s,s.gardenApi.watering,"浇水");if(r!==1){s.logger.fail("浇水失败",r,a||"[c:请求错误]");return}s.logger.success(`浇水成功,消耗${t}水滴,${i?"升级":"未升级"}`),i&&e%2===1&&await Z8(s)}catch(t){s.logger.error("果园浇水异常",t)}}async function Z8(s){let{msg:e,code:t,water:i}=await pt(s,s.gardenApi.openBox,"开宝箱");if(t!==1){s.logger.fail("开宝箱失败",t,e||"[c:请求错误]");return}s.logger.success("开宝箱成功,获得",i,"水滴")}async function eO(s,e){try{let{msg:t,code:i}=await pt(s,s.gardenApi.waterFriend,"浇水",e);if(i!==1){s.logger.fail("浇水失败",i,t||"[c:请求错误]");return}return s.logger.debug(e,"浇水成功"),!0}catch(t){s.logger.error("果园给好友浇水异常",e,t)}}async function tO(s){let e=s.config.garden.waterFriend;if(e){s.logger.debug("给好友果树浇水");for(let t=0;t<5;t++)await eO(s,e),await s.sleep(4e3)}}async function sO(s){let e=await un(s,s.config.phone);if(!e)throw new Error("获取 ssoToken 失败");await s.gardenApi.login(e,s.config.phone)}async function Dp(s){try{s.logger.info("------【果园】------"),await sO(s);let[e,t]=await q8(s);if(e){s.logger.warn("获取果园信息失败,请确认已经激活果园");return}await U8(s),await s.sleep(2e3),s.logger.info("领取场景水滴"),await H8(s),s.logger.info("完成邮箱任务"),await rv(s,{"user-agent":s.DATA.baseUA+s.DATA.mailUaEnd,"x-requested-with":s.DATA.mailRequested}),await s.sleep(2e3),s.logger.info("完成云盘任务"),await rv(s,{"user-agent":s.DATA.baseUA,"x-requested-with":s.DATA.mcloudRequested}),s.config.garden?.inviteCodes?.length?(s.logger.info("果园微信助力"),await X8(s)):(s.logger.info("果园微信助力(测试)"),await Y8(s)),await tO(s),t.treeLevel<9&&t.collectWater&&Math.random()<.2&&await Q8(s,t.treeLevel)}catch(e){s.logger.error("果园任务异常",e)}}var nv=k(()=>{h();Pe();gr();Dr()});function ov(s){return s.get(`${Yt}/portal/auth/encryptDataLogin.action?op=getAccount&invateCode=invateCode&channel=&marketName=hecheng1T&sourceId=1005`)}var uv=k(()=>{h();lt();qe()});function cv(s,e="currentTimeMillis"){return s.post(`${Yt}/portal/ajax/tools/opRequest.action`,{op:e},{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}})}var lv=k(()=>{h();qe()});async function kp(s){let{logger:e,config:t,api:i}=s;e.start("------【云朵大作战】------");try{await Ep(s);let r=await ie(s,i.getHecheng1T,"获取云朵大作战");if(Cp(e,r),t.云朵大作战?.邀请用户?.length)return e.info("不支持邀请好友,跳过执行(因为你配置了邀请好友,默认你单独运行云朵大作战)");let a=s.config.云朵大作战.游戏时间;for(let n=0;n<r.info.curr;n++)await vp(s,a);e.success("完成云朵大作战")}catch(r){e.error("云朵大作战失败",r)}}async function Ps(s,e){try{await s.api.journaling(e,"1005"),await s.sleep(ut(50,200))}catch(t){s.logger.debug("调用journaling失败",e,t)}}async function vp(s,e,t){await ov(s.http),await Ps(s,"synthesisonet_pv"),await Ps(s,"synthesisonet_cookie"),await Ps(s,"synthesisonet_cookie_notApp"),await Ps(s,"synthesisonet_inviterUserPlayGame"),await Ps(s,"synthesisonet_playGame"),await Ps(s,"synthesisonet_playGame_isOts"),await ie(s,s.api.beinviteHecheng1T,"开始游戏",await pv(s),t),s.logger.debug("云朵大作战游戏开始,等待游戏结束中",e);let i=Math.ceil(e/3);for(let a=0;a<i;a++)await r();await Ps(s,"synthesisonet_finish_gameSuc"),await ie(s,s.api.finishHecheng1T,"游戏结束",await pv(s)),s.logger.debug("云朵大作战游戏结束");async function r(){await Ps(s,"synthesisonet_game_tap"),await s.sleep(3*ut(990,1010))}}async function Ep(s){let e=is(),t=await s.http.post("https://user-njs.yun.139.com/user/querySpecToken",{toSourceId:"001005"}),i=await e.get(`https://caiyun.feixin.10086.cn/portal/auth/v2/tyrzLogin.action?ssoToken=${t.data.token}&openAccount=0&channel=&marketName=hecheng1T&sourceId=1169`,{headers:ys(new Date().getTime(),2,`ssoToken=${t.data.token}&openAccount=0&channel=&marketName=hecheng1T&sourceId=1169`)});if(i.code!==0)throw new Error(`登录云朵大作战失败: ${i.msg} (code: ${i.code})`);return e.setHeader("jwttoken",i.result.token),{...s,http:e}}async function pv({logger:s,http:e}){try{let{msg:t,result:i,code:r}=await cv(e,"currentTimeMillis");if(i)return i;s.debug("获取时间戳失败",r,t)}catch(t){s.debug("获取时间戳异常",t)}return new Date().getTime()}function Cp(s,{info:e,history:t}){let{invite:i,exchange:r,succ:a,lastSucc:n,curr:o}=e,{count:u,rank:c}=t[0],l=t[-1];l&&(s.debug("上个月排名",l.rank),s.debug("上个月完成次数",l.count)),s.debug("本月排名",c),s.debug("本月成功次数",u||a),s.debug("今日剩余次数",o),s.debug("今日可兑换次数",r),s.debug("今日可被邀请次数",i),s.debug("最后成功时间",n?new Date(n).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai"}):"无记录")}var Tp=k(()=>{h();Pe();Ui();lt();uv();lv();Je()});async function Sp(s){s.logger.start("------【消息推送奖励】------");try{let{onDuaration:e,pushOn:t,secondTaskStatus:i,firstTaskStatus:r}=await ie(s,s.api.getMsgPushOn,"获取消息通知状态");if(t===0){s.logger.error("消息通知已关闭,请前往 APP 手动打开");return}if(r!==3&&s.logger.info("首次奖励未领取,请前往 APP 手动完成"),i===2){s.logger.info("领取奖励"),await ie(s,s.api.obtainMsgPushOn,"领取消息通知奖励");return}s.logger.info("已经开启",e,"天")}catch(e){s.logger.error("消息推送奖励",e)}}var hv=k(()=>{h();Je()});async function iO(s){return await ie(s,s.api.getCloudRecord,"获取云朵记录",1,100)}async function dv(s){if(s.config.是否打印今日云朵){s.logger.start("------【今日云朵】------");try{let e=await iO(s);if(!e)return s.logger.fail("获取云朵记录失败");let t=e.records.filter(r=>{let a=new Date(r.inserttime),n=new Date;return a.getDate()===n.getDate()&&a.getMonth()===n.getMonth()&&r.num>0}),i=t.reduce((r,a)=>r+a.num,0);s.logger.info(`今日获得${t.length}次云朵数量共:${i}`)}catch(e){s.logger.fatal("printTodayCloud 异常",e)}}}var fv=k(()=>{h();Je()});async function mv(s){return await ie(s,s.api.signInInfo,"网盘签到")}async function rO(s){return await ie(s,s.api.signInfoInWx,"微信签到")}async function aO(s){let{cloudCount:e,multiple:t}=await ie(s,s.api.singInMultiple,"备份签到翻倍");t&&s.logger.success("成功获得",t,"倍云朵,共计",e)}async function Ap(s){let{todaySignIn:e,total:t,toReceive:i,curMonthBackup:r,curMonthBackupSignAccept:a}=await mv(s);if(s.logger.info(`当前云朵${t}${i?`,待领取${i}`:""}`),s.store.totalCloud=t,r&&!a&&await aO(s),e===!0){s.logger.info("网盘今日已签到");return}await s.sleep(1e3);let n=await mv(s);if(n){if(n.todaySignIn===!1){s.logger.info("网盘签到失败");return}s.logger.info("网盘签到成功")}}async function jp(s){let e=await rO(s);if(e){if(e.todaySignIn===!1&&(s.logger.fail("微信签到失败"),e.isFollow===!1)){s.logger.fail("当前账号没有绑定微信公众号【中国移动云盘】");return}s.logger.info("微信签到成功")}}async function Pp(s){try{let e=await s.api.getDrawInWx();if(e.code!==0){s.logger.error(`获取微信抽奖信息失败,跳过运行,${JSON.stringify(e)}`);return}let{次数:t}=s.config.微信抽奖,i=t-(50-e.result.surplusNumber);if(i<1){s.logger.info(`剩余微信抽奖次数${e.result.surplusNumber},已完成`);return}for(;await nO(s),i>1;)console.log(`剩余count${i}`),await s.sleep(s.config.微信抽奖.间隔),i--}catch(e){s.logger.error("微信抽奖异常",e)}}async function nO(s){try{let e=await s.api.drawInWx();if(e.code!==0){s.logger.error(`微信抽奖失败,${JSON.stringify(e)}`);return}s.logger.info(`微信抽奖成功,获得【${e.result.prizeName}】`)}catch(e){s.logger.error("微信抽奖异常",e)}}async function Hi(s){return await ie(s,s.api.receive,"领取云朵")}var Fp=k(()=>{h();Je()});async function gv(s){let e=s.config.phone;try{let t={traceId:Number(Math.random().toString().substring(10)),tackTime:Date.now(),distinctId:Ke([14,15,8,7,15]),eventName:"discoverNewVersion.Page.Share.QQ",event:"$manual",flushTime:Date.now(),model:"",osVersion:"",appVersion:"",manufacture:"",screenHeight:895,os:"Android",screenWidth:393,lib:"js",libVersion:"1.17.2",networkType:"",resumeFromBackground:"",screenName:"",title:"【精选】一站式资源宝库",eventDuration:"",elementPosition:"",elementId:"",elementContent:"",elementType:"",downloadChannel:"",crashedReason:"",phoneNumber:e,storageTime:"",channel:"",activityName:"",platform:"h5",sdkVersion:"1.0.1",elementSelector:"",referrer:"",scene:"",latestScene:"",source:"content-open",urlPath:"",IP:"",url:`https://h.139.com/content/discoverNewVersion?columnId=20&token=STuid00000${Date.now()}${Ke(20)}&targetSourceId=001005`,elementName:"",browser:"Chrome WebView",elementTargetUrl:"",referrerHost:"",browerVersion:"122.0.6261.106",latitude:"",pageDuration:"",longtitude:"",urlQuery:"",shareDepth:"",arriveTimeStamp:"",spare:{mobile:e,channel:""},public:"",province:"",city:"",carrier:""};await s.api.datacenter(Buffer.from(JSON.stringify(t)).toString("base64"))}catch(t){s.logger.error("分享有奖异常",t)}}function oO(s){return ie(s,s.api.getCloudRecord,"获取云朵记录")}async function uO(s){let e=s.localStorage?await s.localStorage.getItem(kt.SHARE_FIND):void 0;if(!e){let a=await yv(s);return await hi(s,kt.SHARE_FIND,a),20-a}let{lastUpdate:t,count:i}=e;return new Date().getMonth()===new Date(t).getMonth()?20-i:20}async function Ip(s){s.logger.start("------【邀请好友看电影】------"),s.logger.info("测试中。。。");let e=await uO(s);if(e<=0){s.logger.info("本月已分享");return}if(!cO(s)){s.logger.fail("尝试首次分享失败,跳过");return}--e;let t;for(;e>0;)e--,s.logger.debug("邀请好友"),await gv(s),await s.sleep(2e3);await Hi(s),await hi(s,kt.SHARE_FIND,t=await yv(s)),s.logger.info("已经完成次数",t),t!==20-e&&s.logger.debug("分享数据存在差异,请检查",t,20-e)}async function cO(s){await gv(s),await s.sleep(1e3),await Hi(s),await s.sleep(1e3);let{records:e}=await oO(s),t=e?.find(i=>i.mark==="fxnrplus5");return t&&new Date().getTime()-new Date(t.updatetime).getTime()<2e4}async function yv(s){let e=await ie(s,s.api.getCloudRecord,"获取云朵记录",1,300);return e?e.records.filter(t=>t.mark==="fxnrplus5"&&new Date(t.inserttime).getUTCMonth()===new Date().getUTCMonth()).length:0}var xv=k(()=>{h();Pe();qe();Je();mu();Fp()});async function _p(s){return bv(s,1)}async function lO(s){try{let e=Ke(32),t=await Vu(s,{opType:"backup",parentFileId:Jm()},e);return t?s.logger.debug("文件备份成功"):s.logger.debug("文件备份失败"),t}catch(e){s.logger.error("文件备份异常",e)}}async function bv(s,e=1){let{curMonthBackup:t,curMonthTaskRecordCount:i,acceptDate:r,nextMonthTaskRecordCount:a}=await ie(s,s.api.getTaskExpansion,"获取备份额外奖励");if(t===!1){if(e>0)return await lO(s),s.logger.debug("等待一段时间后重试备份"),await s.sleep(s.config.backupWaitTime*1e3),bv(s,--e);s.logger.warn("本月未开启备份,将无法获取翻倍奖励!!!需要手动开启"),s.store.curMonthBackup=!1}if(i>0){let{cloudCount:n}=await ie(s,s.api.receiveTaskExpansion,"领取翻倍奖励",r);n&&s.logger.success(`领取到${n}个云朵`)}a&&s.logger.debug(`下月可领取${a}个云朵`)}var wv=k(()=>{h();Pe();Je();Dr()});function Dv(s){return{submitAnswered(e,t){return s.get(`${Za}/submitAnswered?puzzleId=${e}&answered=${t}`)},getIndexPuzzleCard(){return s.get(`${Za}/getIndexPuzzleCard`)},getAwarding(e){return s.post(`${Za}/awarding`,{puzzleId:e})}}}var kv=k(()=>{h();qe()});function pO(s){let e=s.split(`
`).filter(t=>t.startsWith("data"));for(let t of e)return JSON.parse(t.replace("data:",""))}function vv(s){return{async addChat(e,t){let i=await s.post(`${lu}/api/outer/assistant/chat/add`,{userId:t,sessionId:"",content:{dialogue:e,prompt:"",timestamp:yf(),commands:"",resourceType:"0",resourceId:"",dialogueType:"0",sourceChannel:"101",extInfo:'{"h5Version":"1.3.0"}',imageSortType:1},applicationType:"chat",applicationId:""},{headers:{"x-yun-client-info":ui,"Content-Type":"application/json",accept:"text/event-stream","x-yun-api-version":"v4",Origin:"https://yun.139.com","X-Requested-With":"com.chinamobile.mcloud",Referer:"https://yun.139.com/"}});return pO(i)},submitAccredit(){return s.post(`${lu}/api/outer/assistant/accredit/submit`,{sourceBusiness:1},{headers:{"x-yun-api-version":"v1","x-yun-app-channel":"101","x-yun-client-info":ui}})}}}var Ev=k(()=>{h();dr();Pe();qe()});function Cv(s){return{getBackupGift(){return s.get(`${ci}/backupgift/info`)},receiveBackupGift(){return s.get(`${ci}/backupgift/receive`)}}}var Tv=k(()=>{h();qe()});function Sv(s){let e="https://caiyun.feixin.10086.cn";return{beinviteHecheng1T(t,i){return s.get(`${e}/market/signin/hecheng1T/beinvite?inviter=${i||""}`,{headers:{...ys(t),referer:"https://caiyun.feixin.10086.cn:7071/portal/synthesisonet/index.html?sourceid=1005"}})},finishHecheng1T(t){return s.get(`${e}/market/signin/hecheng1T/finish?flag=true`,{headers:{...ys(t),referer:"https://caiyun.feixin.10086.cn:7071/portal/synthesisonet/index.html?sourceid=1005"}})},getHecheng1T(){return s.get(`${e}/market/signin/hecheng1T/info`)},exchangeHecheng1T(t){return s.get(`${e}/market/signin/hecheng1T/exchange?num=${t}`)}}}var Av=k(()=>{h();lt()});function jv(s){function e(t,i,r){return s.post(`${Qa}?func=together:${t}&sid=${i}&behaviorData=&rnd=${Math.random()}&cguid=2348352175888&k=5921&comefrom=2066`,r)}return{mailChatTask(t,i){return e("mailChatTask",t,`<object>
<string name="content">你是位猜灯谜大师,请根据我提供的灯谜谜面,创作对应谜底,返回的格式要求:需要返回谜面和谜底,灯谜谜面为:${i}</string>
<string name="clientId">10109</string>
<string name="configId">707</string>
<string name="model">blian</string>
<string name="talkType">1</string>
<string name="createSession" />
<string name="title">猜灯谜——${i}</string>
<string name="defaultQuestion">{&quot;question&quot;:&quot;${i}&quot;,&quot;orderTip&quot;:&quot;猜灯谜&quot;,&quot;businessCode&quot;:&quot;14&quot;}</string>
<string name="userActiveType">0</string>
</object>`)},mailChatMsg(t,i){return e("mailChatMsg",t,`<object>
<string name="taskId">${i}</string>
<string name="model">blian</string>
</object>`)}}}var Pv=k(()=>{h();qe()});function Fv(s){return{getMsgPushOn(){return s.get(`${ci}/msgPushOn/task/status`)},obtainMsgPushOn(){return s.post(`${ci}/msgPushOn/task/obtain`,{type:2})}}}var Iv=k(()=>{h();qe()});function _v(s){let e="https://mrp.mcloud.139.com/market/",t=e+"signin/";return{getTaskExpansion(){return s.get(`${t}page/taskExpansion`)},receiveTaskExpansion(i){return s.get(`${t}page/receiveTaskExpansion?acceptDate=${i}`)},exchange(i,r=""){return s.get(`${t}page/exchange?prizeId=${i}&client=app&clientVersion=${hr}&smsCode=${r}`)},receivePrizeDetails(i){return s.get(`${t}page/receivePrizeDetails?prizeId=${i}&marketId=sign_in_3_ex`)},exchangeList(){return s.get(`${t}page/exchangeList`)},getVerCode(i){return s.post(`${e}api/smsVerCode/getVerCode`,{prizeId:i,marketName:"sign_in_3_ex",templateId:"800"})}}}var Nv=k(()=>{h();dr()});function Np(s){let e="https://happy.mail.10086.cn/jsp/cn/garden";return{login(t,i){return s.get(`${e}/login/caiyunsso.do?token=${t}&account=${i}&targetSourceId=001208&sourceid=1014&enableShare=1`,{followRedirect:!1,native:!0})},checkinInfo(){return s.get(`${e}/task/checkinInfo.do`)},initTree(){return s.get(`${e}/user/initTree.do`)},getTaskList(t={}){return s.get(`${e}/task/taskList.do?clientType=PE`,{headers:t})},getTaskStateList(t={}){return s.get(`${e}/task/taskState.do`,{headers:t})},checkin(){return s.get(`${e}/task/checkin.do`)},clickCartoon(t){return s.get(`${e}/user/clickCartoon.do?cartoonType=${t}`)},doTask(t,i={}){return s.get(`${e}/task/doTask.do?taskId=${t}`,{headers:i})},givenWater(t,i={}){return s.get(`${e}/task/givenWater.do?taskId=${t}`,{headers:i})},getCartoons(t={}){return s.get(`${e}/user/gotCartoons.do`,{headers:t})},getInviteCode(){return s.get(`${e}/friend/inviteCode.do`)},getBackupUser(){return s.get(`${e}/friend/backupUser.do`)},inviteFriend(t,i="backup"){return s.get(`${e}/wx/inviteFriend.do?inviteCode=${t}&inviteType=${i}&clientName=HCY`)},watering(){return s.get(`${e}/user/watering.do?isFast=1`)},openBox(){return s.get(`${e}/prize/openBox.do`)},waterFriend(t){return s.get(`${e}/user/waterFriend.do?treeId=${t}`)}}}var Bv=k(()=>{h()});function Bp(s){let e="https://yun.139.com",t="https://caiyun.feixin.10086.cn",i="https://mrp.mcloud.139.com",r="https://mnote.caiyun.feixin.10086.cn";return{querySpecToken(a,n="001005"){return s.post(`${e}/orchestration/auth-rebuild/token/v1.0/querySpecToken`,{toSourceId:n,account:String(a),commonAccountInfo:{account:String(a),accountType:1}},{headers:{referer:"https://yun.139.com/w/",accept:"application/json, text/plain, */*","content-type":"application/json;charset=UTF-8","accept-language":"zh-CN,zh;q=0.9"}})},authTokenRefresh(a,n){return s.post("https://aas.caiyun.feixin.10086.cn/tellin/authTokenRefresh.do",`<?xml version="1.0" encoding="utf-8"?><root><token>${a}</token><account>${n}</account><clienttype>656</clienttype></root>`,{headers:{accept:"*/*","content-type":"application/json; charset=utf-8"},responseType:"text"})},async getNoteAuthToken(a,n){let o=await s.post("https://note.mcloud.139.com/noteServer/api/authTokenRefresh.do",{authToken:a,userPhone:String(n)},{headers:{APP_CP:"android",APP_NUMBER:String(n),CP_VERSION:"3.2.0","x-huawei-channelsrc":"10001400","User-Agent":"mobile"},native:!0});return{body:o.body,headers:o.headers}},syncNoteBook(a){return s.post(`${r}/noteServer/api/syncNotebook.do `,{addNotebooks:[],delNotebooks:[],updateNotebooks:[]},{headers:{APP_CP:"pc",CP_VERSION:"7.7.1.20240115",...a}})},createNote(a,n,o,u,c=[]){return s.post(`${r}/noteServer/api/createNote.do`,{archived:0,attachmentdir:"",attachmentdirid:"",attachments:[],contentid:"",contents:[{data:"<span></span>",noteId:a,sortOrder:0,type:"TEXT"}],cp:"",createtime:String(Date.now()),description:"",expands:{noteType:0},landMark:[],latlng:"",location:"",noteid:a,remindtime:"",remindtype:0,revision:"1",system:"",tags:c,title:n,topmost:"0",updatetime:String(Date.now()),userphone:String(o),version:"",visitTime:String(Date.now())},{headers:{APP_CP:"pc",APP_NUMBER:String(o),CP_VERSION:"7.7.1.20240115",...u}})},deleteNote(a,n){return s.post(`${r}/noteServer/api/moveToRecycleBin.do`,{noteids:[{noteid:a}]},{headers:{APP_CP:"pc",CP_VERSION:"7.7.1.20240115",...n}})},tyrzLogin(a){return s.get(`${t}/portal/auth/tyrzLogin.action?ssoToken=${a}`)},signInInfo(){return s.get(`${t}/market/signin/page/info?client=app`)},singInMultiple(){return s.get(`${t}/market/signin/page/multiple`)},getDrawInWx(){return s.get(`${t}/market/playoffic/drawInfo`)},drawInWx(){return s.get(`${t}/market/playoffic/draw`)},signInfoInWx(){return s.get(`${t}/market/playoffic/followSignInfo?isWx=true`)},clickTask(a,n="task"){return s.get(`${i}/market/signin/task/click?key=${n}&id=${a}`)},getTaskList(a="sign_in_3"){return s.get(`${i}/market/signin/task/taskList?marketname=${a}&clientVersion=`)},receive(){return s.get(`${i}/market/signin/page/receive`)},receiveTask(a){return s.get(`${t}/market/signin/page/receiveTask?taskId=${a}`)},shake(){return s.post(`${t}/market/shake-server/shake/shakeIt?flag=1`)},getOutLink(a,n,o){return s.post(`${e}/orchestration/personalCloud-rebuild/outlink/v1.0/getOutLink`,{getOutLinkReq:{subLinkType:0,encrypt:1,coIDLst:n,caIDLst:[],pubType:1,dedicatedName:o,period:1,periodUnit:1,viewerLst:[],extInfo:{isWatermark:0,shareChannel:"3001"},commonAccountInfo:{account:a,accountType:1}}},{headers:{caller:"web","cms-device":"default","mcloud-channel":"1000101","mcloud-version":"7.14.4","x-deviceinfo":"||9|7.14.4|edge||||linux unknow||zh-CN|||","x-huawei-channelsrc":"10000034","x-svctype":"1","x-yun-api-version":"v1","x-yun-app-channel":"10000034","x-yun-channel-source":"10000034","x-yun-client-info":"||9|7.14.4|edge||||linux unknow||zh-CN|||||","x-yun-module-type":"100","x-yun-svc-type":"1"}})},delOutLink(a,n){return s.post(`${e}/orchestration/personalCloud-rebuild/outlink/v1.0/delOutLink`,{delOutLinkReq:{linkIDs:n,commonAccountInfo:{account:a,accountType:1}}})},getBlindboxTask(){return s.post(`${t}/market/task-service/task/api/blindBox/queryTaskInfo`,{marketName:"National_BlindBox",clientType:1},{headers:{accept:"application/json"}})},registerBlindboxTask(a){return s.post(`${t}/market/task-service/task/api/blindBox/register`,{marketName:"National_BlindBox",taskId:a},{headers:{accept:"application/json"}})},blindboxUser(){return s.post(`${t}/ycloud/blindbox/user/info`,{from:"main"},{headers:{accept:"application/json"}})},openBlindbox(){return s.post(`${t}/ycloud/blindbox/draw/openBox?from=main`,{from:"main"},{headers:{accept:"application/json","x-requested-with":"cn.cj.pe",referer:"https://caiyun.feixin.10086.cn:7071/portal/caiyunOfficialAccount/index.html?path=blindBox&sourceid=1015",origin:"https://caiyun.feixin.10086.cn","user-agent":"Mozilla/5.0 (Linux; Android 10; Redmi K20 Pro Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.106 Mobile Safari/537.36(139PE_WebView_Android_10.2.2_mcloud139)"}})},datacenter(a){return s.post("https://datacenter.mail.10086.cn/datacenter/",`data=${a}&ext=${"crc="+gf(a)}`,{headers:{"content-type":"application/x-www-form-urlencoded",platform:"h5"}})},journaling(a,n="1010",o=""){return s.post(`${i}/portal/journaling`,`account=&module=uservisit&optkeyword=${a}&fromId=&flag=&fileId=&fileType=&fileExtname=&fileSize=&sourceid=${n}&linkId=${o}`,{headers:{"content-type":"application/x-www-form-urlencoded"}})},getCloudRecord(a=1,n=50,o=1){return s.get(`${i}/market/signin/public/cloudRecord?type=${o}&pageNumber=${a}&pageSize=${n}`)},loginMail(a){return s.post("https://mail.10086.cn/login/inlogin.action",`<?xml version="1.0" encoding="utf-8"?>
<object>
<string name="clientId">10804</string>
<string name="version">9</string>
<string name="loginType">7</string>
<string name="token">${a}</string>
</object>`)},..._v(s),...Fv(s),...Cv(s),...Dv(s),...jv(s),...vv(s),...Sv(s)}}var Ov=k(()=>{h();Pe();kv();Ev();Tv();Av();Pv();Iv();Nv();Bv()});async function Lv(s,e){s.logger.start("------【兑换月卡】------");let t;try{if(!e||!e.length)return;let i=await hO(s);for(let r of e){let a=i.find(n=>n.prizeId===r);await fO(s,r,a)&&(t=`兑换${a.prizeName}成功`),await s.sleep(300)}}catch(i){s.logger.error("兑换月卡",i)}return t}async function hO(s){return Object.entries(await ie(s,s.api.exchangeList,{name:"获取兑换列表",isArray:!0})).flatMap(e=>e[1])}async function Op(s,e,t,i){try{let{code:r,msg:a}=await s.api.exchange(e,i);if(r===0)return s.logger.success(`兑换${t}成功,第三方会员请在本月底之前手动领取`),!0;if(r===2301){s.logger.fail("本月已经兑换过了");return}if(r===610){s.logger.warn(`兑换${t}失败,${r},${a},请手动登录 APP 后重试`);return}s.logger.fail(`兑换${t}失败,${r},${a}`)}catch(r){s.logger.error("兑换"+t,r)}}function dO({logger:s,store:e},{prizeName:t,pOrder:i,limit:r,dailyRemainderCount:a,count:n}){if(r===2){s.info(`${t},本月已经兑换过了`);return}if(r===4){s.info(`${t},本月本组已兑换,下月再来`);return}if(a<=0){s.info(`${t},今日已经兑换完`);return}if(n<=0){s.info(`${t},本年度已经兑换完`);return}if(e.totalCloud<i){s.fail(`${t},云朵可能不够哦`);return}return!0}async function fO(s,e,t,i=""){if(!dO(s,t))return;let r=await mO(s,e);if(r&&r.verifycode===0){s.logger.fail("需要短信验证");return}return s.logger.debug(`${t.prizeName},开始兑换`),await Op(s,e,t.prizeName,i)}async function mO(s,e){try{let{code:t,msg:i,result:r}=await s.api.receivePrizeDetails(e);if(t===0)return r;s.logger.fail(`获取领取奖品详情失败,${t},${i}`)}catch(t){s.logger.error("获取领取奖品详情异常",t)}}var zv=k(()=>{h();Je()});var Uv={};pr(Uv,{createApi:()=>Bp,createGardenApi:()=>Np,createNewAuth:()=>ln,deleteFiles:()=>Mv,exchangeApi:()=>Op,exchangeTask:()=>Lv,getJwtToken:()=>cn,run:()=>Lp,tasks:()=>yO});async function Mv(s,e){try{s.logger.debug(`删除文件${e.join(",")}`);let{message:t,code:i,success:r}=await df(s.http,e);if(r)return s.logger.success("删除文件成功"),!0;s.logger.error("删除文件失败",i,t)}catch(t){s.logger.error("删除文件失败",t)}}async function gO(s){let{shakePrizeconfig:e,shakeRecommend:t}=await ie(s,s.api.shake,"摇一摇");if(t)return s.logger.debug(t.explain||t.img);if(e)return s.logger.info(e.title+e.name)}async function Rv(s){s.logger.start("------【摇一摇】------");let{delay:e,num:t}=s.config.shake;for(let i=0;i<t;i++)await gO(s),i<t-1&&await s.sleep(e*1e3)}async function qv(s){await dv(s),s.logger.debug("------【搽屁股】------");try{if(s.store&&s.store.files)return await Mv(s,s.store.files);s.logger.debug("你没有屁,,,,不是, 您还没拉呢")}catch(e){s.logger.error("afterTask 异常",e)}}async function Lp(s){let{config:e}=s,t=[Ap,_p,jp,Pp,Wu,Ip,Rv,Hi,Sp,Gu];e&&(e.garden&&e.garden.enable&&t.push(Dp),e.aiRedPack&&e.aiRedPack.enable&&(t.push(bu),t.push(gu)),e.云朵大作战&&e.云朵大作战.开启&&t.push(kp),e.盲盒&&e.盲盒.开启&&t.push(bp),e.cloudPhoneRedpack&&e.cloudPhoneRedpack.enable&&t.push(wp));for(let i of t)await i(s),await s.sleep(1e3);await qv(s)}var yO,go=k(()=>{h();tn();Af();tg();sg();Jk();sv();nv();Tp();Dr();hv();fv();xv();Fp();wv();Je();Ov();gr();zv();yO={appTask:Wu,backupGiftTask:Gu,blindboxTask:bp,hc1Task:kp,msgPushOnTask:Sp,receive:Hi,shakeTask:Rv,shareFindTask:Ip,aiRedPackTask:bu,aiCloudTask:gu,signIn:Ap,signInWx:jp,taskExpansionTask:_p,wxDraw:Pp,gardenTask:Dp,cloudPhoneRedpackTask:wp,afterTask:qv}});var $v=O(zp=>{h();var Hv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");zp.encode=function(s){if(0<=s&&s<Hv.length)return Hv[s];throw new TypeError("Must be between 0 and 63: "+s)};zp.decode=function(s){var e=65,t=90,i=97,r=122,a=48,n=57,o=43,u=47,c=26,l=52;return e<=s&&s<=t?s-e:i<=s&&s<=r?s-i+c:a<=s&&s<=n?s-a+l:s==o?62:s==u?63:-1}});var qp=O(Rp=>{h();var Vv=$v(),Mp=5,Wv=1<<Mp,Gv=Wv-1,Kv=Wv;function xO(s){return s<0?(-s<<1)+1:(s<<1)+0}function bO(s){var e=(s&1)===1,t=s>>1;return e?-t:t}Rp.encode=function(e){var t="",i,r=xO(e);do i=r&Gv,r>>>=Mp,r>0&&(i|=Kv),t+=Vv.encode(i);while(r>0);return t};Rp.decode=function(e,t,i){var r=e.length,a=0,n=0,o,u;do{if(t>=r)throw new Error("Expected more digits in base 64 VLQ value.");if(u=Vv.decode(e.charCodeAt(t++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(t-1));o=!!(u&Kv),u&=Gv,a=a+(u<<n),n+=Mp}while(o);i.value=bO(a),i.rest=t}});var Vi=O(Le=>{h();function wO(s,e,t){if(e in s)return s[e];if(arguments.length===3)return t;throw new Error('"'+e+'" is a required argument.')}Le.getArg=wO;var Jv=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,DO=/^data:.+\,.+$/;function da(s){var e=s.match(Jv);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Le.urlParse=da;function $i(s){var e="";return s.scheme&&(e+=s.scheme+":"),e+="//",s.auth&&(e+=s.auth+"@"),s.host&&(e+=s.host),s.port&&(e+=":"+s.port),s.path&&(e+=s.path),e}Le.urlGenerate=$i;var kO=32;function vO(s){var e=[];return function(t){for(var i=0;i<e.length;i++)if(e[i].input===t){var r=e[0];return e[0]=e[i],e[i]=r,e[0].result}var a=s(t);return e.unshift({input:t,result:a}),e.length>kO&&e.pop(),a}}var Up=vO(function(e){var t=e,i=da(e);if(i){if(!i.path)return e;t=i.path}for(var r=Le.isAbsolute(t),a=[],n=0,o=0;;)if(n=o,o=t.indexOf("/",n),o===-1){a.push(t.slice(n));break}else for(a.push(t.slice(n,o));o<t.length&&t[o]==="/";)o++;for(var u,c=0,o=a.length-1;o>=0;o--)u=a[o],u==="."?a.splice(o,1):u===".."?c++:c>0&&(u===""?(a.splice(o+1,c),c=0):(a.splice(o,2),c--));return t=a.join("/"),t===""&&(t=r?"/":"."),i?(i.path=t,$i(i)):t});Le.normalize=Up;function Xv(s,e){s===""&&(s="."),e===""&&(e=".");var t=da(e),i=da(s);if(i&&(s=i.path||"/"),t&&!t.scheme)return i&&(t.scheme=i.scheme),$i(t);if(t||e.match(DO))return e;if(i&&!i.host&&!i.path)return i.host=e,$i(i);var r=e.charAt(0)==="/"?e:Up(s.replace(/\/+$/,"")+"/"+e);return i?(i.path=r,$i(i)):r}Le.join=Xv;Le.isAbsolute=function(s){return s.charAt(0)==="/"||Jv.test(s)};function EO(s,e){s===""&&(s="."),s=s.replace(/\/$/,"");for(var t=0;e.indexOf(s+"/")!==0;){var i=s.lastIndexOf("/");if(i<0||(s=s.slice(0,i),s.match(/^([^\/]+:\/)?\/*$/)))return e;++t}return Array(t+1).join("../")+e.substr(s.length+1)}Le.relative=EO;var Yv=function(){var s=Object.create(null);return!("__proto__"in s)}();function Qv(s){return s}function CO(s){return Zv(s)?"$"+s:s}Le.toSetString=Yv?Qv:CO;function TO(s){return Zv(s)?s.slice(1):s}Le.fromSetString=Yv?Qv:TO;function Zv(s){if(!s)return!1;var e=s.length;if(e<9||s.charCodeAt(e-1)!==95||s.charCodeAt(e-2)!==95||s.charCodeAt(e-3)!==111||s.charCodeAt(e-4)!==116||s.charCodeAt(e-5)!==111||s.charCodeAt(e-6)!==114||s.charCodeAt(e-7)!==112||s.charCodeAt(e-8)!==95||s.charCodeAt(e-9)!==95)return!1;for(var t=e-10;t>=0;t--)if(s.charCodeAt(t)!==36)return!1;return!0}function SO(s,e,t){var i=rs(s.source,e.source);return i!==0||(i=s.originalLine-e.originalLine,i!==0)||(i=s.originalColumn-e.originalColumn,i!==0||t)||(i=s.generatedColumn-e.generatedColumn,i!==0)||(i=s.generatedLine-e.generatedLine,i!==0)?i:rs(s.name,e.name)}Le.compareByOriginalPositions=SO;function AO(s,e,t){var i;return i=s.originalLine-e.originalLine,i!==0||(i=s.originalColumn-e.originalColumn,i!==0||t)||(i=s.generatedColumn-e.generatedColumn,i!==0)||(i=s.generatedLine-e.generatedLine,i!==0)?i:rs(s.name,e.name)}Le.compareByOriginalPositionsNoSource=AO;function jO(s,e,t){var i=s.generatedLine-e.generatedLine;return i!==0||(i=s.generatedColumn-e.generatedColumn,i!==0||t)||(i=rs(s.source,e.source),i!==0)||(i=s.originalLine-e.originalLine,i!==0)||(i=s.originalColumn-e.originalColumn,i!==0)?i:rs(s.name,e.name)}Le.compareByGeneratedPositionsDeflated=jO;function PO(s,e,t){var i=s.generatedColumn-e.generatedColumn;return i!==0||t||(i=rs(s.source,e.source),i!==0)||(i=s.originalLine-e.originalLine,i!==0)||(i=s.originalColumn-e.originalColumn,i!==0)?i:rs(s.name,e.name)}Le.compareByGeneratedPositionsDeflatedNoLine=PO;function rs(s,e){return s===e?0:s===null?1:e===null?-1:s>e?1:-1}function FO(s,e){var t=s.generatedLine-e.generatedLine;return t!==0||(t=s.generatedColumn-e.generatedColumn,t!==0)||(t=rs(s.source,e.source),t!==0)||(t=s.originalLine-e.originalLine,t!==0)||(t=s.originalColumn-e.originalColumn,t!==0)?t:rs(s.name,e.name)}Le.compareByGeneratedPositionsInflated=FO;function IO(s){return JSON.parse(s.replace(/^\)]}'[^\n]*\n/,""))}Le.parseSourceMapInput=IO;function _O(s,e,t){if(e=e||"",s&&(s[s.length-1]!=="/"&&e[0]!=="/"&&(s+="/"),e=s+e),t){var i=da(t);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var r=i.path.lastIndexOf("/");r>=0&&(i.path=i.path.substring(0,r+1))}e=Xv($i(i),e)}return Up(e)}Le.computeSourceURL=_O});var Vp=O(e1=>{h();var Hp=Vi(),$p=Object.prototype.hasOwnProperty,Ys=typeof Map<"u";function as(){this._array=[],this._set=Ys?new Map:Object.create(null)}as.fromArray=function(e,t){for(var i=new as,r=0,a=e.length;r<a;r++)i.add(e[r],t);return i};as.prototype.size=function(){return Ys?this._set.size:Object.getOwnPropertyNames(this._set).length};as.prototype.add=function(e,t){var i=Ys?e:Hp.toSetString(e),r=Ys?this.has(e):$p.call(this._set,i),a=this._array.length;(!r||t)&&this._array.push(e),r||(Ys?this._set.set(e,a):this._set[i]=a)};as.prototype.has=function(e){if(Ys)return this._set.has(e);var t=Hp.toSetString(e);return $p.call(this._set,t)};as.prototype.indexOf=function(e){if(Ys){var t=this._set.get(e);if(t>=0)return t}else{var i=Hp.toSetString(e);if($p.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')};as.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};as.prototype.toArray=function(){return this._array.slice()};e1.ArraySet=as});var i1=O(s1=>{h();var t1=Vi();function NO(s,e){var t=s.generatedLine,i=e.generatedLine,r=s.generatedColumn,a=e.generatedColumn;return i>t||i==t&&a>=r||t1.compareByGeneratedPositionsInflated(s,e)<=0}function yo(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}yo.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)};yo.prototype.add=function(e){NO(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};yo.prototype.toArray=function(){return this._sorted||(this._array.sort(t1.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};s1.MappingList=yo});var Wp=O(r1=>{h();var fa=qp(),Se=Vi(),xo=Vp().ArraySet,BO=i1().MappingList;function yt(s){s||(s={}),this._file=Se.getArg(s,"file",null),this._sourceRoot=Se.getArg(s,"sourceRoot",null),this._skipValidation=Se.getArg(s,"skipValidation",!1),this._ignoreInvalidMapping=Se.getArg(s,"ignoreInvalidMapping",!1),this._sources=new xo,this._names=new xo,this._mappings=new BO,this._sourcesContents=null}yt.prototype._version=3;yt.fromSourceMap=function(e,t){var i=e.sourceRoot,r=new yt(Object.assign(t||{},{file:e.file,sourceRoot:i}));return e.eachMapping(function(a){var n={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source!=null&&(n.source=a.source,i!=null&&(n.source=Se.relative(i,n.source)),n.original={line:a.originalLine,column:a.originalColumn},a.name!=null&&(n.name=a.name)),r.addMapping(n)}),e.sources.forEach(function(a){var n=a;i!==null&&(n=Se.relative(i,a)),r._sources.has(n)||r._sources.add(n);var o=e.sourceContentFor(a);o!=null&&r.setSourceContent(a,o)}),r};yt.prototype.addMapping=function(e){var t=Se.getArg(e,"generated"),i=Se.getArg(e,"original",null),r=Se.getArg(e,"source",null),a=Se.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(t,i,r,a)===!1||(r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:r,name:a}))};yt.prototype.setSourceContent=function(e,t){var i=e;this._sourceRoot!=null&&(i=Se.relative(this._sourceRoot,i)),t!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Se.toSetString(i)]=t):this._sourcesContents&&(delete this._sourcesContents[Se.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};yt.prototype.applySourceMap=function(e,t,i){var r=t;if(t==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}var a=this._sourceRoot;a!=null&&(r=Se.relative(a,r));var n=new xo,o=new xo;this._mappings.unsortedForEach(function(u){if(u.source===r&&u.originalLine!=null){var c=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});c.source!=null&&(u.source=c.source,i!=null&&(u.source=Se.join(i,u.source)),a!=null&&(u.source=Se.relative(a,u.source)),u.originalLine=c.line,u.originalColumn=c.column,c.name!=null&&(u.name=c.name))}var l=u.source;l!=null&&!n.has(l)&&n.add(l);var p=u.name;p!=null&&!o.has(p)&&o.add(p)},this),this._sources=n,this._names=o,e.sources.forEach(function(u){var c=e.sourceContentFor(u);c!=null&&(i!=null&&(u=Se.join(i,u)),a!=null&&(u=Se.relative(a,u)),this.setSourceContent(u,c))},this)};yt.prototype._validateMapping=function(e,t,i,r){if(t&&typeof t.line!="number"&&typeof t.column!="number"){var a="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(a),!1;throw new Error(a)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!i&&!r)){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&i)return;var a="Invalid mapping: "+JSON.stringify({generated:e,source:i,original:t,name:r});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(a),!1;throw new Error(a)}};yt.prototype._serializeMappings=function(){for(var e=0,t=1,i=0,r=0,a=0,n=0,o="",u,c,l,p,d=this._mappings.toArray(),m=0,f=d.length;m<f;m++){if(c=d[m],u="",c.generatedLine!==t)for(e=0;c.generatedLine!==t;)u+=";",t++;else if(m>0){if(!Se.compareByGeneratedPositionsInflated(c,d[m-1]))continue;u+=","}u+=fa.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(p=this._sources.indexOf(c.source),u+=fa.encode(p-n),n=p,u+=fa.encode(c.originalLine-1-r),r=c.originalLine-1,u+=fa.encode(c.originalColumn-i),i=c.originalColumn,c.name!=null&&(l=this._names.indexOf(c.name),u+=fa.encode(l-a),a=l)),o+=u}return o};yt.prototype._generateSourcesContent=function(e,t){return e.map(function(i){if(!this._sourcesContents)return null;t!=null&&(i=Se.relative(t,i));var r=Se.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};yt.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};yt.prototype.toString=function(){return JSON.stringify(this.toJSON())};r1.SourceMapGenerator=yt});var a1=O(Qs=>{h();Qs.GREATEST_LOWER_BOUND=1;Qs.LEAST_UPPER_BOUND=2;function Gp(s,e,t,i,r,a){var n=Math.floor((e-s)/2)+s,o=r(t,i[n],!0);return o===0?n:o>0?e-n>1?Gp(n,e,t,i,r,a):a==Qs.LEAST_UPPER_BOUND?e<i.length?e:-1:n:n-s>1?Gp(s,n,t,i,r,a):a==Qs.LEAST_UPPER_BOUND?n:s<0?-1:s}Qs.search=function(e,t,i,r){if(t.length===0)return-1;var a=Gp(-1,t.length,e,t,i,r||Qs.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&i(t[a],t[a-1],!0)===0;)--a;return a}});var u1=O(o1=>{h();function OO(s){function e(r,a,n){var o=r[a];r[a]=r[n],r[n]=o}function t(r,a){return Math.round(r+Math.random()*(a-r))}function i(r,a,n,o){if(n<o){var u=t(n,o),c=n-1;e(r,u,o);for(var l=r[o],p=n;p<o;p++)a(r[p],l,!1)<=0&&(c+=1,e(r,c,p));e(r,c+1,p);var d=c+1;i(r,a,n,d-1),i(r,a,d+1,o)}}return i}function LO(s){let e=OO.toString();return new Function(`return ${e}`)()(s)}var n1=new WeakMap;o1.quickSort=function(s,e,t=0){let i=n1.get(e);i===void 0&&(i=LO(e),n1.set(e,i)),i(s,e,t,s.length-1)}});var p1=O(bo=>{h();var K=Vi(),Jp=a1(),Wi=Vp().ArraySet,zO=qp(),ma=u1().quickSort;function we(s,e){var t=s;return typeof s=="string"&&(t=K.parseSourceMapInput(s)),t.sections!=null?new St(t,e):new Re(t,e)}we.fromSourceMap=function(s,e){return Re.fromSourceMap(s,e)};we.prototype._version=3;we.prototype.__generatedMappings=null;Object.defineProperty(we.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});we.prototype.__originalMappings=null;Object.defineProperty(we.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});we.prototype._charIsMappingSeparator=function(e,t){var i=e.charAt(t);return i===";"||i===","};we.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")};we.GENERATED_ORDER=1;we.ORIGINAL_ORDER=2;we.GREATEST_LOWER_BOUND=1;we.LEAST_UPPER_BOUND=2;we.prototype.eachMapping=function(e,t,i){var r=t||null,a=i||we.GENERATED_ORDER,n;switch(a){case we.GENERATED_ORDER:n=this._generatedMappings;break;case we.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var o=this.sourceRoot,u=e.bind(r),c=this._names,l=this._sources,p=this._sourceMapURL,d=0,m=n.length;d<m;d++){var f=n[d],g=f.source===null?null:l.at(f.source);g!==null&&(g=K.computeSourceURL(o,g,p)),u({source:g,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:f.name===null?null:c.at(f.name)})}};we.prototype.allGeneratedPositionsFor=function(e){var t=K.getArg(e,"line"),i={source:K.getArg(e,"source"),originalLine:t,originalColumn:K.getArg(e,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var r=[],a=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,Jp.LEAST_UPPER_BOUND);if(a>=0){var n=this._originalMappings[a];if(e.column===void 0)for(var o=n.originalLine;n&&n.originalLine===o;)r.push({line:K.getArg(n,"generatedLine",null),column:K.getArg(n,"generatedColumn",null),lastColumn:K.getArg(n,"lastGeneratedColumn",null)}),n=this._originalMappings[++a];else for(var u=n.originalColumn;n&&n.originalLine===t&&n.originalColumn==u;)r.push({line:K.getArg(n,"generatedLine",null),column:K.getArg(n,"generatedColumn",null),lastColumn:K.getArg(n,"lastGeneratedColumn",null)}),n=this._originalMappings[++a]}return r};bo.SourceMapConsumer=we;function Re(s,e){var t=s;typeof s=="string"&&(t=K.parseSourceMapInput(s));var i=K.getArg(t,"version"),r=K.getArg(t,"sources"),a=K.getArg(t,"names",[]),n=K.getArg(t,"sourceRoot",null),o=K.getArg(t,"sourcesContent",null),u=K.getArg(t,"mappings"),c=K.getArg(t,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);n&&(n=K.normalize(n)),r=r.map(String).map(K.normalize).map(function(l){return n&&K.isAbsolute(n)&&K.isAbsolute(l)?K.relative(n,l):l}),this._names=Wi.fromArray(a.map(String),!0),this._sources=Wi.fromArray(r,!0),this._absoluteSources=this._sources.toArray().map(function(l){return K.computeSourceURL(n,l,e)}),this.sourceRoot=n,this.sourcesContent=o,this._mappings=u,this._sourceMapURL=e,this.file=c}Re.prototype=Object.create(we.prototype);Re.prototype.consumer=we;Re.prototype._findSourceIndex=function(s){var e=s;if(this.sourceRoot!=null&&(e=K.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var t;for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==s)return t;return-1};Re.fromSourceMap=function(e,t){var i=Object.create(Re.prototype),r=i._names=Wi.fromArray(e._names.toArray(),!0),a=i._sources=Wi.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=t,i._absoluteSources=i._sources.toArray().map(function(m){return K.computeSourceURL(i.sourceRoot,m,t)});for(var n=e._mappings.toArray().slice(),o=i.__generatedMappings=[],u=i.__originalMappings=[],c=0,l=n.length;c<l;c++){var p=n[c],d=new l1;d.generatedLine=p.generatedLine,d.generatedColumn=p.generatedColumn,p.source&&(d.source=a.indexOf(p.source),d.originalLine=p.originalLine,d.originalColumn=p.originalColumn,p.name&&(d.name=r.indexOf(p.name)),u.push(d)),o.push(d)}return ma(i.__originalMappings,K.compareByOriginalPositions),i};Re.prototype._version=3;Object.defineProperty(Re.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l1(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var Kp=K.compareByGeneratedPositionsDeflatedNoLine;function c1(s,e){let t=s.length,i=s.length-e;if(!(i<=1))if(i==2){let r=s[e],a=s[e+1];Kp(r,a)>0&&(s[e]=a,s[e+1]=r)}else if(i<20)for(let r=e;r<t;r++)for(let a=r;a>e;a--){let n=s[a-1],o=s[a];if(Kp(n,o)<=0)break;s[a-1]=o,s[a]=n}else ma(s,Kp,e)}Re.prototype._parseMappings=function(e,t){var i=1,r=0,a=0,n=0,o=0,u=0,c=e.length,l=0,p={},d={},m=[],f=[],g,y,w,T,S;let E=0;for(;l<c;)if(e.charAt(l)===";")i++,l++,r=0,c1(f,E),E=f.length;else if(e.charAt(l)===",")l++;else{for(g=new l1,g.generatedLine=i,T=l;T<c&&!this._charIsMappingSeparator(e,T);T++);for(y=e.slice(l,T),w=[];l<T;)zO.decode(e,l,d),S=d.value,l=d.rest,w.push(S);if(w.length===2)throw new Error("Found a source, but no line and column");if(w.length===3)throw new Error("Found a source and line, but no column");if(g.generatedColumn=r+w[0],r=g.generatedColumn,w.length>1&&(g.source=o+w[1],o+=w[1],g.originalLine=a+w[2],a=g.originalLine,g.originalLine+=1,g.originalColumn=n+w[3],n=g.originalColumn,w.length>4&&(g.name=u+w[4],u+=w[4])),f.push(g),typeof g.originalLine=="number"){let F=g.source;for(;m.length<=F;)m.push(null);m[F]===null&&(m[F]=[]),m[F].push(g)}}c1(f,E),this.__generatedMappings=f;for(var A=0;A<m.length;A++)m[A]!=null&&ma(m[A],K.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...m)};Re.prototype._findMapping=function(e,t,i,r,a,n){if(e[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[i]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return Jp.search(e,t,a,n)};Re.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var i=this._generatedMappings[e+1];if(t.generatedLine===i.generatedLine){t.lastGeneratedColumn=i.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}};Re.prototype.originalPositionFor=function(e){var t={generatedLine:K.getArg(e,"line"),generatedColumn:K.getArg(e,"column")},i=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",K.compareByGeneratedPositionsDeflated,K.getArg(e,"bias",we.GREATEST_LOWER_BOUND));if(i>=0){var r=this._generatedMappings[i];if(r.generatedLine===t.generatedLine){var a=K.getArg(r,"source",null);a!==null&&(a=this._sources.at(a),a=K.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var n=K.getArg(r,"name",null);return n!==null&&(n=this._names.at(n)),{source:a,line:K.getArg(r,"originalLine",null),column:K.getArg(r,"originalColumn",null),name:n}}}return{source:null,line:null,column:null,name:null}};Re.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Re.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var i=this._findSourceIndex(e);if(i>=0)return this.sourcesContent[i];var r=e;this.sourceRoot!=null&&(r=K.relative(this.sourceRoot,r));var a;if(this.sourceRoot!=null&&(a=K.urlParse(this.sourceRoot))){var n=r.replace(/^file:\/\//,"");if(a.scheme=="file"&&this._sources.has(n))return this.sourcesContent[this._sources.indexOf(n)];if((!a.path||a.path=="/")&&this._sources.has("/"+r))return this.sourcesContent[this._sources.indexOf("/"+r)]}if(t)return null;throw new Error('"'+r+'" is not in the SourceMap.')};Re.prototype.generatedPositionFor=function(e){var t=K.getArg(e,"source");if(t=this._findSourceIndex(t),t<0)return{line:null,column:null,lastColumn:null};var i={source:t,originalLine:K.getArg(e,"line"),originalColumn:K.getArg(e,"column")},r=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",K.compareByOriginalPositions,K.getArg(e,"bias",we.GREATEST_LOWER_BOUND));if(r>=0){var a=this._originalMappings[r];if(a.source===i.source)return{line:K.getArg(a,"generatedLine",null),column:K.getArg(a,"generatedColumn",null),lastColumn:K.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};bo.BasicSourceMapConsumer=Re;function St(s,e){var t=s;typeof s=="string"&&(t=K.parseSourceMapInput(s));var i=K.getArg(t,"version"),r=K.getArg(t,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Wi,this._names=new Wi;var a={line:-1,column:0};this._sections=r.map(function(n){if(n.url)throw new Error("Support for url field in sections not implemented.");var o=K.getArg(n,"offset"),u=K.getArg(o,"line"),c=K.getArg(o,"column");if(u<a.line||u===a.line&&c<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=o,{generatedOffset:{generatedLine:u+1,generatedColumn:c+1},consumer:new we(K.getArg(n,"map"),e)}})}St.prototype=Object.create(we.prototype);St.prototype.constructor=we;St.prototype._version=3;Object.defineProperty(St.prototype,"sources",{get:function(){for(var s=[],e=0;e<this._sections.length;e++)for(var t=0;t<this._sections[e].consumer.sources.length;t++)s.push(this._sections[e].consumer.sources[t]);return s}});St.prototype.originalPositionFor=function(e){var t={generatedLine:K.getArg(e,"line"),generatedColumn:K.getArg(e,"column")},i=Jp.search(t,this._sections,function(a,n){var o=a.generatedLine-n.generatedOffset.generatedLine;return o||a.generatedColumn-n.generatedOffset.generatedColumn}),r=this._sections[i];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};St.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};St.prototype.sourceContentFor=function(e,t){for(var i=0;i<this._sections.length;i++){var r=this._sections[i],a=r.consumer.sourceContentFor(e,!0);if(a||a==="")return a}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')};St.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var i=this._sections[t];if(i.consumer._findSourceIndex(K.getArg(e,"source"))!==-1){var r=i.consumer.generatedPositionFor(e);if(r){var a={line:r.line+(i.generatedOffset.generatedLine-1),column:r.column+(i.generatedOffset.generatedLine===r.line?i.generatedOffset.generatedColumn-1:0)};return a}}}return{line:null,column:null}};St.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var r=this._sections[i],a=r.consumer._generatedMappings,n=0;n<a.length;n++){var o=a[n],u=r.consumer._sources.at(o.source);u!==null&&(u=K.computeSourceURL(r.consumer.sourceRoot,u,this._sourceMapURL)),this._sources.add(u),u=this._sources.indexOf(u);var c=null;o.name&&(c=r.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var l={source:u,generatedLine:o.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(r.generatedOffset.generatedLine===o.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(l),typeof l.originalLine=="number"&&this.__originalMappings.push(l)}ma(this.__generatedMappings,K.compareByGeneratedPositionsDeflated),ma(this.__originalMappings,K.compareByOriginalPositions)};bo.IndexedSourceMapConsumer=St});var d1=O(h1=>{h();var MO=Wp().SourceMapGenerator,wo=Vi(),RO=/(\r?\n)/,qO=10,Gi="$$$isSourceNode$$$";function ht(s,e,t,i,r){this.children=[],this.sourceContents={},this.line=s??null,this.column=e??null,this.source=t??null,this.name=r??null,this[Gi]=!0,i!=null&&this.add(i)}ht.fromStringWithSourceMap=function(e,t,i){var r=new ht,a=e.split(RO),n=0,o=function(){var d=f(),m=f()||"";return d+m;function f(){return n<a.length?a[n++]:void 0}},u=1,c=0,l=null;return t.eachMapping(function(d){if(l!==null)if(u<d.generatedLine)p(l,o()),u++,c=0;else{var m=a[n]||"",f=m.substr(0,d.generatedColumn-c);a[n]=m.substr(d.generatedColumn-c),c=d.generatedColumn,p(l,f),l=d;return}for(;u<d.generatedLine;)r.add(o()),u++;if(c<d.generatedColumn){var m=a[n]||"";r.add(m.substr(0,d.generatedColumn)),a[n]=m.substr(d.generatedColumn),c=d.generatedColumn}l=d},this),n<a.length&&(l&&p(l,o()),r.add(a.splice(n).join(""))),t.sources.forEach(function(d){var m=t.sourceContentFor(d);m!=null&&(i!=null&&(d=wo.join(i,d)),r.setSourceContent(d,m))}),r;function p(d,m){if(d===null||d.source===void 0)r.add(m);else{var f=i?wo.join(i,d.source):d.source;r.add(new ht(d.originalLine,d.originalColumn,f,m,d.name))}}};ht.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(t){this.add(t)},this);else if(e[Gi]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};ht.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[Gi]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};ht.prototype.walk=function(e){for(var t,i=0,r=this.children.length;i<r;i++)t=this.children[i],t[Gi]?t.walk(e):t!==""&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})};ht.prototype.join=function(e){var t,i,r=this.children.length;if(r>0){for(t=[],i=0;i<r-1;i++)t.push(this.children[i]),t.push(e);t.push(this.children[i]),this.children=t}return this};ht.prototype.replaceRight=function(e,t){var i=this.children[this.children.length-1];return i[Gi]?i.replaceRight(e,t):typeof i=="string"?this.children[this.children.length-1]=i.replace(e,t):this.children.push("".replace(e,t)),this};ht.prototype.setSourceContent=function(e,t){this.sourceContents[wo.toSetString(e)]=t};ht.prototype.walkSourceContents=function(e){for(var t=0,i=this.children.length;t<i;t++)this.children[t][Gi]&&this.children[t].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),t=0,i=r.length;t<i;t++)e(wo.fromSetString(r[t]),this.sourceContents[r[t]])};ht.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e};ht.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},i=new MO(e),r=!1,a=null,n=null,o=null,u=null;return this.walk(function(c,l){t.code+=c,l.source!==null&&l.line!==null&&l.column!==null?((a!==l.source||n!==l.line||o!==l.column||u!==l.name)&&i.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name}),a=l.source,n=l.line,o=l.column,u=l.name,r=!0):r&&(i.addMapping({generated:{line:t.line,column:t.column}}),a=null,r=!1);for(var p=0,d=c.length;p<d;p++)c.charCodeAt(p)===qO?(t.line++,t.column=0,p+1===d?(a=null,r=!1):r&&i.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:t.line,column:t.column},name:l.name})):t.column++}),this.walkSourceContents(function(c,l){i.setSourceContent(c,l)}),{code:t.code,map:i}};h1.SourceNode=ht});var f1=O(Do=>{h();Do.SourceMapGenerator=Wp().SourceMapGenerator;Do.SourceMapConsumer=p1().SourceMapConsumer;Do.SourceNode=d1().SourceNode});var V1=O(Ca=>{"use strict";h();Object.defineProperty(Ca,"__esModule",{value:!0});function UO(s,e){if(s==null)return{};var t={};for(var i in s)if({}.hasOwnProperty.call(s,i)){if(e.indexOf(i)!==-1)continue;t[i]=s[i]}return t}var Wt=class{constructor(e,t,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=i}},Qi=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function et(s,e){let{line:t,column:i,index:r}=s;return new Wt(t,i+e,r+e)}var m1="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",HO={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:m1},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:m1}},g1={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Eo=s=>s.type==="UpdateExpression"?g1.UpdateExpression[`${s.prefix}`]:g1[s.type],$O={AccessorIsGenerator:({kind:s})=>`A ${s}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:s})=>`Missing initializer in ${s} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:s})=>`\`${s}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:s})=>`'import.${s}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:s,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${s}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:s})=>`'${s==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:s})=>`Unsyntactic ${s==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:s})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${s}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:s})=>`Expected number in radix ${s}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:s})=>`Escape sequence in keyword ${s}.`,InvalidIdentifier:({identifierName:s})=>`Invalid identifier ${s}.`,InvalidLhs:({ancestor:s})=>`Invalid left-hand side in ${Eo(s)}.`,InvalidLhsBinding:({ancestor:s})=>`Binding invalid left-hand side in ${Eo(s)}.`,InvalidLhsOptionalChaining:({ancestor:s})=>`Invalid optional chaining in the left-hand side of ${Eo(s)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:s})=>`Unexpected character '${s}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:s})=>`Private name #${s} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:s})=>`Label '${s}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:s})=>`This experimental syntax requires enabling the parser plugin: ${s.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:s})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${s.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:s})=>`Duplicate key "${s}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:s})=>`An export name cannot include a lone surrogate, found '\\u${s.toString(16)}'.`,ModuleExportUndefined:({localName:s})=>`Export '${s}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:s})=>`Private names are only allowed in property accesses (\`obj.#${s}\`) or in \`in\` expressions (\`#${s} in obj\`).`,PrivateNameRedeclaration:({identifierName:s})=>`Duplicate private name #${s}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:s})=>`Unexpected keyword '${s}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:s})=>`Unexpected reserved word '${s}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:s,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${s?`, expected "${s}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:s,onlyValidPropertyName:e})=>`The only valid meta property for ${s} is ${s}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:s})=>`Identifier '${s}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},VO={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:s})=>`Assigning to '${s}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:s})=>`Binding '${s}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},WO=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),GO=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:s})=>`Invalid topic token ${s}. In order to use ${s} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${s}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:s})=>`Hack-style pipe body cannot be an unparenthesized ${Eo({type:s})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),KO=["message"];function y1(s,e,t){Object.defineProperty(s,e,{enumerable:!1,configurable:!0,value:t})}function JO({toMessage:s,code:e,reasonCode:t,syntaxPlugin:i}){let r=t==="MissingPlugin"||t==="MissingOneOfPlugins";{let a={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};a[t]&&(t=a[t])}return function a(n,o){let u=new SyntaxError;return u.code=e,u.reasonCode=t,u.loc=n,u.pos=n.index,u.syntaxPlugin=i,r&&(u.missingPlugin=o.missingPlugin),y1(u,"clone",function(l={}){var p;let{line:d,column:m,index:f}=(p=l.loc)!=null?p:n;return a(new Wt(d,m,f),Object.assign({},o,l.details))}),y1(u,"details",o),Object.defineProperty(u,"message",{configurable:!0,get(){let c=`${s(o)} (${n.line}:${n.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),u}}function cs(s,e){if(Array.isArray(s))return i=>cs(i,s[0]);let t={};for(let i of Object.keys(s)){let r=s[i],a=typeof r=="string"?{message:()=>r}:typeof r=="function"?{message:r}:r,{message:n}=a,o=UO(a,KO),u=typeof n=="string"?()=>n:n;t[i]=JO(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:u},e?{syntaxPlugin:e}:{},o))}return t}var D=Object.assign({},cs(HO),cs($O),cs(VO),cs`pipelineOperator`(GO));function XO(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function YO(s){let e=XO();if(s==null)return e;if(s.annexB!=null&&s.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let t of Object.keys(e))s[t]!=null&&(e[t]=s[t]);if(e.startLine===1)s.startIndex==null&&e.startColumn>0?e.startIndex=e.startColumn:s.startColumn==null&&e.startIndex>0&&(e.startColumn=e.startIndex);else if((s.startColumn==null||s.startIndex==null)&&s.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");return e}var{defineProperty:QO}=Object,x1=(s,e)=>{s&&QO(s,e,{enumerable:!1,value:s[e]})};function ga(s){return x1(s.loc.start,"index"),x1(s.loc.end,"index"),s}var ZO=s=>class extends s{parse(){let t=ga(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(ga)),t}parseRegExpLiteral({pattern:t,flags:i}){let r=null;try{r=new RegExp(t,i)}catch{}let a=this.estreeParseLiteral(r);return a.regex={pattern:t,flags:i},a}parseBigIntLiteral(t){let i;try{i=BigInt(t)}catch{i=null}let r=this.estreeParseLiteral(i);return r.bigint=String(r.value||t),r}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}directiveToStmt(t){let i=t.value;delete t.value,i.type="Literal",i.raw=i.extra.raw,i.value=i.extra.expressionValue;let r=t;return r.type="ExpressionStatement",r.expression=i,r.directive=i.extra.rawValue,delete i.extra,r}initFunction(t,i){super.initFunction(t,i),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var i;return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!((i=t.expression.extra)!=null&&i.parenthesized)}parseBlockBody(t,i,r,a,n){super.parseBlockBody(t,i,r,a,n);let o=t.directives.map(u=>this.directiveToStmt(u));t.body=o.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){let i=super.getPrivateNameSV(t);return t=t,delete t.id,t.name=i,t.type="PrivateIdentifier",t}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?t.type==="PrivateIdentifier":super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,i){let r=super.parseLiteral(t,i);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(t,i,r=!1){super.parseFunctionBody(t,i,r),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,i,r,a,n,o,u=!1){let c=this.startNode();c.kind=t.kind,c=super.parseMethod(c,i,r,a,n,o,u),c.type="FunctionExpression",delete c.kind,t.value=c;let{typeParameters:l}=t;return l&&(delete t.typeParameters,c.typeParameters=l,this.resetStartLocationFromNode(c,l)),o==="ClassPrivateMethod"&&(t.computed=!1),this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let i=super.parseClassProperty(...t);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition"),i}parseClassPrivateProperty(...t){let i=super.parseClassPrivateProperty(...t);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition",i.computed=!1),i}parseClassAccessorProperty(t){let i=super.parseClassAccessorProperty(t);return this.getPluginOption("estree","classFeatures")&&(i.type="AccessorProperty"),i}parseObjectMethod(t,i,r,a,n){let o=super.parseObjectMethod(t,i,r,a,n);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(t,i,r,a){let n=super.parseObjectProperty(t,i,r,a);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(t,i,r){return t==="Property"?"value":super.isValidLVal(t,i,r)}isAssignable(t,i){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,i):super.isAssignable(t,i)}toAssignable(t,i=!1){if(t!=null&&this.isObjectProperty(t)){let{key:r,value:a}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(a,i)}else super.toAssignable(t,i)}toAssignableObjectExpressionProp(t,i,r){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(D.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(D.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,i,r)}finishCallExpression(t,i){let r=super.finishCallExpression(t,i);if(r.callee.type==="Import"){var a,n;r.type="ImportExpression",r.source=r.arguments[0],r.options=(a=r.arguments[1])!=null?a:null,r.attributes=(n=r.arguments[1])!=null?n:null,delete r.arguments,delete r.callee}return r}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,i){let r=this.state.lastTokStartLoc,a=super.parseExport(t,i);switch(a.type){case"ExportAllDeclaration":a.exported=null;break;case"ExportNamedDeclaration":a.specifiers.length===1&&a.specifiers[0].type==="ExportNamespaceSpecifier"&&(a.type="ExportAllDeclaration",a.exported=a.specifiers[0].exported,delete a.specifiers);case"ExportDefaultDeclaration":{var n;let{declaration:o}=a;o?.type==="ClassDeclaration"&&((n=o.decorators)==null?void 0:n.length)>0&&o.start===a.start&&this.resetStartLocation(a,r)}break}return a}parseSubscript(t,i,r,a){let n=super.parseSubscript(t,i,r,a);if(a.optionalChainMember){if((n.type==="OptionalMemberExpression"||n.type==="OptionalCallExpression")&&(n.type=n.type.substring(8)),a.stop){let o=this.startNodeAtNode(n);return o.expression=n,this.finishNode(o,"ChainExpression")}}else(n.type==="MemberExpression"||n.type==="CallExpression")&&(n.optional=!1);return n}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}finishNodeAt(t,i,r){return ga(super.finishNodeAt(t,i,r))}resetStartLocation(t,i){super.resetStartLocation(t,i),ga(t)}resetEndLocation(t,i=this.state.lastTokEndLoc){super.resetEndLocation(t,i),ga(t)}},ti=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},de={brace:new ti("{"),j_oTag:new ti("<tag"),j_cTag:new ti("</tag"),j_expr:new ti("<tag>...</tag>",!0)};de.template=new ti("`",!0);var oe=!0,U=!0,Xp=!0,ya=!0,Fs=!0,eL=!0,So=class{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop!=null?t.binop:null,this.updateContext=null}},wh=new Map;function pe(s,e={}){e.keyword=s;let t=X(s,e);return wh.set(s,t),t}function Ze(s,e){return X(s,{beforeExpr:oe,binop:e})}var Da=-1,os=[],Dh=[],kh=[],vh=[],Eh=[],Ch=[];function X(s,e={}){var t,i,r,a;return++Da,Dh.push(s),kh.push((t=e.binop)!=null?t:-1),vh.push((i=e.beforeExpr)!=null?i:!1),Eh.push((r=e.startsExpr)!=null?r:!1),Ch.push((a=e.prefix)!=null?a:!1),os.push(new So(s,e)),Da}function ne(s,e={}){var t,i,r,a;return++Da,wh.set(s,Da),Dh.push(s),kh.push((t=e.binop)!=null?t:-1),vh.push((i=e.beforeExpr)!=null?i:!1),Eh.push((r=e.startsExpr)!=null?r:!1),Ch.push((a=e.prefix)!=null?a:!1),os.push(new So("name",e)),Da}var tL={bracketL:X("[",{beforeExpr:oe,startsExpr:U}),bracketHashL:X("#[",{beforeExpr:oe,startsExpr:U}),bracketBarL:X("[|",{beforeExpr:oe,startsExpr:U}),bracketR:X("]"),bracketBarR:X("|]"),braceL:X("{",{beforeExpr:oe,startsExpr:U}),braceBarL:X("{|",{beforeExpr:oe,startsExpr:U}),braceHashL:X("#{",{beforeExpr:oe,startsExpr:U}),braceR:X("}"),braceBarR:X("|}"),parenL:X("(",{beforeExpr:oe,startsExpr:U}),parenR:X(")"),comma:X(",",{beforeExpr:oe}),semi:X(";",{beforeExpr:oe}),colon:X(":",{beforeExpr:oe}),doubleColon:X("::",{beforeExpr:oe}),dot:X("."),question:X("?",{beforeExpr:oe}),questionDot:X("?."),arrow:X("=>",{beforeExpr:oe}),template:X("template"),ellipsis:X("...",{beforeExpr:oe}),backQuote:X("`",{startsExpr:U}),dollarBraceL:X("${",{beforeExpr:oe,startsExpr:U}),templateTail:X("...`",{startsExpr:U}),templateNonTail:X("...${",{beforeExpr:oe,startsExpr:U}),at:X("@"),hash:X("#",{startsExpr:U}),interpreterDirective:X("#!..."),eq:X("=",{beforeExpr:oe,isAssign:ya}),assign:X("_=",{beforeExpr:oe,isAssign:ya}),slashAssign:X("_=",{beforeExpr:oe,isAssign:ya}),xorAssign:X("_=",{beforeExpr:oe,isAssign:ya}),moduloAssign:X("_=",{beforeExpr:oe,isAssign:ya}),incDec:X("++/--",{prefix:Fs,postfix:eL,startsExpr:U}),bang:X("!",{beforeExpr:oe,prefix:Fs,startsExpr:U}),tilde:X("~",{beforeExpr:oe,prefix:Fs,startsExpr:U}),doubleCaret:X("^^",{startsExpr:U}),doubleAt:X("@@",{startsExpr:U}),pipeline:Ze("|>",0),nullishCoalescing:Ze("??",1),logicalOR:Ze("||",1),logicalAND:Ze("&&",2),bitwiseOR:Ze("|",3),bitwiseXOR:Ze("^",4),bitwiseAND:Ze("&",5),equality:Ze("==/!=/===/!==",6),lt:Ze("</>/<=/>=",7),gt:Ze("</>/<=/>=",7),relational:Ze("</>/<=/>=",7),bitShift:Ze("<</>>/>>>",8),bitShiftL:Ze("<</>>/>>>",8),bitShiftR:Ze("<</>>/>>>",8),plusMin:X("+/-",{beforeExpr:oe,binop:9,prefix:Fs,startsExpr:U}),modulo:X("%",{binop:10,startsExpr:U}),star:X("*",{binop:10}),slash:Ze("/",10),exponent:X("**",{beforeExpr:oe,binop:11,rightAssociative:!0}),_in:pe("in",{beforeExpr:oe,binop:7}),_instanceof:pe("instanceof",{beforeExpr:oe,binop:7}),_break:pe("break"),_case:pe("case",{beforeExpr:oe}),_catch:pe("catch"),_continue:pe("continue"),_debugger:pe("debugger"),_default:pe("default",{beforeExpr:oe}),_else:pe("else",{beforeExpr:oe}),_finally:pe("finally"),_function:pe("function",{startsExpr:U}),_if:pe("if"),_return:pe("return",{beforeExpr:oe}),_switch:pe("switch"),_throw:pe("throw",{beforeExpr:oe,prefix:Fs,startsExpr:U}),_try:pe("try"),_var:pe("var"),_const:pe("const"),_with:pe("with"),_new:pe("new",{beforeExpr:oe,startsExpr:U}),_this:pe("this",{startsExpr:U}),_super:pe("super",{startsExpr:U}),_class:pe("class",{startsExpr:U}),_extends:pe("extends",{beforeExpr:oe}),_export:pe("export"),_import:pe("import",{startsExpr:U}),_null:pe("null",{startsExpr:U}),_true:pe("true",{startsExpr:U}),_false:pe("false",{startsExpr:U}),_typeof:pe("typeof",{beforeExpr:oe,prefix:Fs,startsExpr:U}),_void:pe("void",{beforeExpr:oe,prefix:Fs,startsExpr:U}),_delete:pe("delete",{beforeExpr:oe,prefix:Fs,startsExpr:U}),_do:pe("do",{isLoop:Xp,beforeExpr:oe}),_for:pe("for",{isLoop:Xp}),_while:pe("while",{isLoop:Xp}),_as:ne("as",{startsExpr:U}),_assert:ne("assert",{startsExpr:U}),_async:ne("async",{startsExpr:U}),_await:ne("await",{startsExpr:U}),_defer:ne("defer",{startsExpr:U}),_from:ne("from",{startsExpr:U}),_get:ne("get",{startsExpr:U}),_let:ne("let",{startsExpr:U}),_meta:ne("meta",{startsExpr:U}),_of:ne("of",{startsExpr:U}),_sent:ne("sent",{startsExpr:U}),_set:ne("set",{startsExpr:U}),_source:ne("source",{startsExpr:U}),_static:ne("static",{startsExpr:U}),_using:ne("using",{startsExpr:U}),_yield:ne("yield",{startsExpr:U}),_asserts:ne("asserts",{startsExpr:U}),_checks:ne("checks",{startsExpr:U}),_exports:ne("exports",{startsExpr:U}),_global:ne("global",{startsExpr:U}),_implements:ne("implements",{startsExpr:U}),_intrinsic:ne("intrinsic",{startsExpr:U}),_infer:ne("infer",{startsExpr:U}),_is:ne("is",{startsExpr:U}),_mixins:ne("mixins",{startsExpr:U}),_proto:ne("proto",{startsExpr:U}),_require:ne("require",{startsExpr:U}),_satisfies:ne("satisfies",{startsExpr:U}),_keyof:ne("keyof",{startsExpr:U}),_readonly:ne("readonly",{startsExpr:U}),_unique:ne("unique",{startsExpr:U}),_abstract:ne("abstract",{startsExpr:U}),_declare:ne("declare",{startsExpr:U}),_enum:ne("enum",{startsExpr:U}),_module:ne("module",{startsExpr:U}),_namespace:ne("namespace",{startsExpr:U}),_interface:ne("interface",{startsExpr:U}),_type:ne("type",{startsExpr:U}),_opaque:ne("opaque",{startsExpr:U}),name:X("name",{startsExpr:U}),placeholder:X("%%",{startsExpr:!0}),string:X("string",{startsExpr:U}),num:X("num",{startsExpr:U}),bigint:X("bigint",{startsExpr:U}),decimal:X("decimal",{startsExpr:U}),regexp:X("regexp",{startsExpr:U}),privateName:X("#name",{startsExpr:U}),eof:X("eof"),jsxName:X("jsxName"),jsxText:X("jsxText",{beforeExpr:!0}),jsxTagStart:X("jsxTagStart",{startsExpr:!0}),jsxTagEnd:X("jsxTagEnd")};function fe(s){return s>=93&&s<=133}function sL(s){return s<=92}function At(s){return s>=58&&s<=133}function P1(s){return s>=58&&s<=137}function iL(s){return vh[s]}function ba(s){return Eh[s]}function rL(s){return s>=29&&s<=33}function b1(s){return s>=129&&s<=131}function aL(s){return s>=90&&s<=92}function Th(s){return s>=58&&s<=92}function nL(s){return s>=39&&s<=59}function oL(s){return s===34}function uL(s){return Ch[s]}function cL(s){return s>=121&&s<=123}function lL(s){return s>=124&&s<=130}function _s(s){return Dh[s]}function Co(s){return kh[s]}function pL(s){return s===57}function Ao(s){return s>=24&&s<=25}function ns(s){return os[s]}os[8].updateContext=s=>{s.pop()},os[5].updateContext=os[7].updateContext=os[23].updateContext=s=>{s.push(de.brace)},os[22].updateContext=s=>{s[s.length-1]===de.template?s.pop():s.push(de.template)},os[143].updateContext=s=>{s.push(de.j_expr,de.j_oTag)};var Sh="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",F1="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",hL=new RegExp("["+Sh+"]"),dL=new RegExp("["+Sh+F1+"]");Sh=F1=null;var I1=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],fL=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function th(s,e){let t=65536;for(let i=0,r=e.length;i<r;i+=2){if(t+=e[i],t>s)return!1;if(t+=e[i+1],t>=s)return!0}return!1}function us(s){return s<65?s===36:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&hL.test(String.fromCharCode(s)):th(s,I1)}function Ji(s){return s<48?s===36:s<58?!0:s<65?!1:s<=90?!0:s<97?s===95:s<=122?!0:s<=65535?s>=170&&dL.test(String.fromCharCode(s)):th(s,I1)||th(s,fL)}var Ah={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},mL=new Set(Ah.keyword),gL=new Set(Ah.strict),yL=new Set(Ah.strictBind);function _1(s,e){return e&&s==="await"||s==="enum"}function N1(s,e){return _1(s,e)||gL.has(s)}function B1(s){return yL.has(s)}function O1(s,e){return N1(s,e)||B1(s)}function xL(s){return mL.has(s)}function bL(s,e,t){return s===64&&e===64&&us(t)}var wL=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function DL(s){return wL.has(s)}var ka=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},va=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new ka(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,i){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,i);let a=r.names.get(e)||0;t&16?a=a|4:(r.firstLexicalName||(r.firstLexicalName=e),a=a|2),r.names.set(e,a),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let a=this.scopeStack.length-1;a>=0&&(r=this.scopeStack[a],this.checkRedeclarationInScope(r,e,t,i),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&387));--a);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,i,r){this.isRedeclaredInScope(e,t,i)&&this.parser.raise(D.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,i){if(!(i&1))return!1;if(i&8)return e.names.has(t);let r=e.names.get(t);return i&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&387)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&451&&!(t&4))return t}}},sh=class extends ka{constructor(...e){super(...e),this.declareFunctions=new Set}},ih=class extends va{createScope(e){return new sh(e)}declareName(e,t,i){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,i)}isRedeclaredInScope(e,t,i){if(super.isRedeclaredInScope(e,t,i))return!0;if(i&2048&&!e.declareFunctions.has(t)){let r=e.names.get(t);return(r&4)>0||(r&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},rh=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[t,i]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let a of Object.keys(i))if(r?.[a]!==i[a])return!1;return!0}}getPluginOption(e,t){var i;return(i=this.plugins.get(e))==null?void 0:i[t]}};function L1(s,e){s.trailingComments===void 0?s.trailingComments=e:s.trailingComments.unshift(...e)}function kL(s,e){s.leadingComments===void 0?s.leadingComments=e:s.leadingComments.unshift(...e)}function Ea(s,e){s.innerComments===void 0?s.innerComments=e:s.innerComments.unshift(...e)}function Zs(s,e,t){let i=null,r=e.length;for(;i===null&&r>0;)i=e[--r];i===null||i.start>t.start?Ea(s,t.comments):L1(i,t.comments)}var ah=class extends rh{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,i=t.length;if(i===0)return;let r=i-1,a=t[r];a.start===e.end&&(a.leadingNode=e,r--);let{start:n}=e;for(;r>=0;r--){let o=t[r],u=o.end;if(u>n)o.containingNode=e,this.finalizeComment(o),t.splice(r,1);else{u===n&&(o.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&L1(e.leadingNode,t),e.trailingNode!==null&&kL(e.trailingNode,t);else{let{containingNode:i,start:r}=e;if(this.input.charCodeAt(this.offsetToSourcePos(r)-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Zs(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":Zs(i,i.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Zs(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Zs(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Zs(i,i.specifiers,e);break;case"TSEnumDeclaration":Zs(i,i.members,e);break;case"TSEnumBody":Zs(i,i.members,e);break;default:Ea(i,t)}else Ea(i,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:i}=t;if(i===0)return;let r=t[i-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:t}=this.state,{length:i}=t;i!==0&&(t[i-1].trailingNode===e?t[i-1].trailingNode=null:i>=2&&t[i-2].trailingNode===e&&(t[i-2].trailingNode=null))}takeSurroundingComments(e,t,i){let{commentStack:r}=this.state,a=r.length;if(a===0)return;let n=a-1;for(;n>=0;n--){let o=r[n],u=o.end;if(o.start===i)o.leadingNode=e;else if(u===t)o.trailingNode=e;else if(u<t)break}}},vL=/\r\n|[\r\n\u2028\u2029]/,ko=new RegExp(vL.source,"g");function Xi(s){switch(s){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function w1(s,e,t){for(let i=e;i<t;i++)if(Xi(s.charCodeAt(i)))return!0;return!1}var Yp=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qp=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function EL(s){switch(s){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var nh=class s{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[de.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:i,startLine:r,startColumn:a}){this.strict=e===!1?!1:e===!0?!0:t==="module",this.startIndex=i,this.curLine=r,this.lineStart=-a,this.startLoc=this.endLoc=new Wt(r,a,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new Wt(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new s;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},CL=function(e){return e>=48&&e<=57},D1={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},vo={bin:s=>s===48||s===49,oct:s=>s>=48&&s<=55,dec:s=>s>=48&&s<=57,hex:s=>s>=48&&s<=57||s>=65&&s<=70||s>=97&&s<=102};function k1(s,e,t,i,r,a){let n=t,o=i,u=r,c="",l=null,p=t,{length:d}=e;for(;;){if(t>=d){a.unterminated(n,o,u),c+=e.slice(p,t);break}let m=e.charCodeAt(t);if(TL(s,m,e,t)){c+=e.slice(p,t);break}if(m===92){c+=e.slice(p,t);let f=SL(e,t,i,r,s==="template",a);f.ch===null&&!l?l={pos:t,lineStart:i,curLine:r}:c+=f.ch,{pos:t,lineStart:i,curLine:r}=f,p=t}else m===8232||m===8233?(++t,++r,i=t):m===10||m===13?s==="template"?(c+=e.slice(p,t)+`
`,++t,m===13&&e.charCodeAt(t)===10&&++t,++r,p=i=t):a.unterminated(n,o,u):++t}return{pos:t,str:c,firstInvalidLoc:l,lineStart:i,curLine:r,containsInvalid:!!l}}function TL(s,e,t,i){return s==="template"?e===96||e===36&&t.charCodeAt(i+1)===123:e===(s==="double"?34:39)}function SL(s,e,t,i,r,a){let n=!r;e++;let o=c=>({pos:e,ch:c,lineStart:t,curLine:i}),u=s.charCodeAt(e++);switch(u){case 110:return o(`
`);case 114:return o("\r");case 120:{let c;return{code:c,pos:e}=oh(s,e,t,i,2,!1,n,a),o(c===null?null:String.fromCharCode(c))}case 117:{let c;return{code:c,pos:e}=M1(s,e,t,i,n,a),o(c===null?null:String.fromCodePoint(c))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:s.charCodeAt(e)===10&&++e;case 10:t=e,++i;case 8232:case 8233:return o("");case 56:case 57:if(r)return o(null);a.strictNumericEscape(e-1,t,i);default:if(u>=48&&u<=55){let c=e-1,p=/^[0-7]+/.exec(s.slice(c,e+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),e+=p.length-1;let m=s.charCodeAt(e);if(p!=="0"||m===56||m===57){if(r)return o(null);a.strictNumericEscape(c,t,i)}return o(String.fromCharCode(d))}return o(String.fromCharCode(u))}}function oh(s,e,t,i,r,a,n,o){let u=e,c;return{n:c,pos:e}=z1(s,e,t,i,16,r,a,!1,o,!n),c===null&&(n?o.invalidEscapeSequence(u,t,i):e=u-1),{code:c,pos:e}}function z1(s,e,t,i,r,a,n,o,u,c){let l=e,p=r===16?D1.hex:D1.decBinOct,d=r===16?vo.hex:r===10?vo.dec:r===8?vo.oct:vo.bin,m=!1,f=0;for(let g=0,y=a??1/0;g<y;++g){let w=s.charCodeAt(e),T;if(w===95&&o!=="bail"){let S=s.charCodeAt(e-1),E=s.charCodeAt(e+1);if(o){if(Number.isNaN(E)||!d(E)||p.has(S)||p.has(E)){if(c)return{n:null,pos:e};u.unexpectedNumericSeparator(e,t,i)}}else{if(c)return{n:null,pos:e};u.numericSeparatorInEscapeSequence(e,t,i)}++e;continue}if(w>=97?T=w-97+10:w>=65?T=w-65+10:CL(w)?T=w-48:T=1/0,T>=r){if(T<=9&&c)return{n:null,pos:e};if(T<=9&&u.invalidDigit(e,t,i,r))T=0;else if(n)T=0,m=!0;else break}++e,f=f*r+T}return e===l||a!=null&&e-l!==a||m?{n:null,pos:e}:{n:f,pos:e}}function M1(s,e,t,i,r,a){let n=s.charCodeAt(e),o;if(n===123){if(++e,{code:o,pos:e}=oh(s,e,t,i,s.indexOf("}",e)-e,!0,r,a),++e,o!==null&&o>1114111)if(r)a.invalidCodePoint(e,t,i);else return{code:null,pos:e}}else({code:o,pos:e}=oh(s,e,t,i,4,!1,r,a));return{code:o,pos:e}}function xa(s,e,t){return new Wt(t,s-e,s)}var AL=new Set([103,109,115,105,121,117,100,118]),Vt=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new Qi(e.startLoc,e.endLoc)}},uh=class extends ah{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,r,a,n)=>this.optionFlags&2048?(this.raise(D.InvalidDigit,xa(i,r,a),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(D.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(D.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(D.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(D.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,r,a)=>{this.recordStrictModeErrors(D.StrictNumericEscape,xa(i,r,a))},unterminated:(i,r,a)=>{throw this.raise(D.UnterminatedString,xa(i-1,r,a))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(D.StrictNumericEscape),unterminated:(i,r,a)=>{throw this.raise(D.UnterminatedTemplate,xa(i,r,a))}}),this.state=new nh,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Vt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Yp.lastIndex=e,Yp.test(this.input)?Yp.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Qp.lastIndex=e,Qp.test(this.input)?Qp.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){let i=this.input.charCodeAt(e);(i&64512)===56320&&(t=65536+((t&1023)<<10)+(i&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([t,i])=>this.raise(t,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let i=this.state.pos,r=this.input.indexOf(e,i+2);if(r===-1)throw this.raise(D.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,ko.lastIndex=i+2;ko.test(this.input)&&ko.lastIndex<=r;)++this.state.curLine,this.state.lineStart=ko.lastIndex;if(this.isLookahead)return;let a={type:"CommentBlock",value:this.input.slice(i+2,r),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(r+e.length),loc:new Qi(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Xi(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:"CommentLine",value:this.input.slice(t+e,a),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new Qi(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let r=this.skipBlockComment("*/");r!==void 0&&(this.addComment(r),t?.push(r));break}case 47:{let r=this.skipLineComment(2);r!==void 0&&(this.addComment(r),t?.push(r));break}default:break e}break;default:if(EL(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let r=this.state.pos;if(this.input.charCodeAt(r+1)===45&&this.input.charCodeAt(r+2)===62&&(e===0||this.state.lineStart>e)){let a=this.skipLineComment(3);a!==void 0&&(this.addComment(a),t?.push(a))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let r=this.state.pos;if(this.input.charCodeAt(r+1)===33&&this.input.charCodeAt(r+2)===45&&this.input.charCodeAt(r+3)===45){let a=this.skipLineComment(4);a!==void 0&&(this.addComment(a),t?.push(a))}else break e}else break e}}if(t?.length>0){let i=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(i),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(D.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(t===123?D.RecordExpressionHashIncorrectStartSyntaxType:D.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else us(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!Xi(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let i=this.input.slice(t+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let t=e===42?55:54,i=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(i++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(i++,t=e===37?33:30),this.finishOp(t,i)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let i=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(D.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(us(e)){this.readWord(e);return}}throw this.raise(D.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let i=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,i)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,i,r,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(D.UnterminatedRegExp,et(e,1));let c=this.input.charCodeAt(a);if(Xi(c))throw this.raise(D.UnterminatedRegExp,et(e,1));if(i)i=!1;else{if(c===91)r=!0;else if(c===93&&r)r=!1;else if(c===47&&!r)break;i=c===92}}let n=this.input.slice(t,a);++a;let o="",u=()=>et(e,a+2-t);for(;a<this.length;){let c=this.codePointAtPos(a),l=String.fromCharCode(c);if(AL.has(c))c===118?o.includes("u")&&this.raise(D.IncompatibleRegExpUVFlags,u()):c===117&&o.includes("v")&&this.raise(D.IncompatibleRegExpUVFlags,u()),o.includes(l)&&this.raise(D.DuplicateRegExpFlags,u());else if(Ji(c)||c===92)this.raise(D.MalformedRegExpFlags,u());else break;++a,o+=l}this.state.pos=a,this.finishToken(138,{pattern:n,flags:o})}readInt(e,t,i=!1,r=!0){let{n:a,pos:n}=z1(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,i,r,this.errorHandlers_readInt,!1);return this.state.pos=n,a}readRadixNumber(e){let t=this.state.pos,i=this.state.curPosition(),r=!1;this.state.pos+=2;let a=this.readInt(e);a==null&&this.raise(D.InvalidDigit,et(i,2),{radix:e});let n=this.input.charCodeAt(this.state.pos);if(n===110)++this.state.pos,r=!0;else if(n===109)throw this.raise(D.InvalidDecimal,i);if(us(this.codePointAtPos(this.state.pos)))throw this.raise(D.NumberIdentifier,this.state.curPosition());if(r){let o=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,a)}readNumber(e){let t=this.state.pos,i=this.state.curPosition(),r=!1,a=!1,n=!1,o=!1;!e&&this.readInt(10)===null&&this.raise(D.InvalidNumber,this.state.curPosition());let u=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(u){let m=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(D.StrictOctalLiteral,i),!this.state.strict){let f=m.indexOf("_");f>0&&this.raise(D.ZeroDigitNumericSeparator,et(i,f))}o=u&&!/[89]/.test(m)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!o&&(++this.state.pos,this.readInt(10),r=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!o&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(D.InvalidOrMissingExponent,i),r=!0,n=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((r||u)&&this.raise(D.InvalidBigIntLiteral,i),++this.state.pos,a=!0),c===109){this.expectPlugin("decimal",this.state.curPosition()),(n||u)&&this.raise(D.InvalidDecimal,i),++this.state.pos;var l=!0}if(us(this.codePointAtPos(this.state.pos)))throw this.raise(D.NumberIdentifier,this.state.curPosition());let p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(136,p);return}if(l){this.finishToken(137,p);return}let d=o?parseInt(p,8):parseFloat(p);this.finishToken(135,d)}readCodePoint(e){let{code:t,pos:i}=M1(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,t}readString(e){let{str:t,pos:i,curLine:r,lineStart:a}=k1(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=a,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:i,pos:r,curLine:a,lineStart:n}=k1("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=r+1,this.state.lineStart=n,this.state.curLine=a,i&&(this.state.firstInvalidTemplateEscapePos=new Wt(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(r)===96?this.finishToken(24,i?null:e+t+"`"):(this.state.pos++,this.finishToken(25,i?null:e+t+"${"))}recordStrictModeErrors(e,t){let i=t.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,t):this.state.strictErrors.set(i,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",i=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let a=this.codePointAtPos(this.state.pos);if(Ji(a))this.state.pos+=a<=65535?1:2;else if(a===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let n=this.state.curPosition(),o=this.state.pos===i?us:Ji;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(D.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let u=this.readCodePoint(!0);u!==null&&(o(u)||this.raise(D.EscapedCharNotAnIdentifier,n),t+=String.fromCodePoint(u)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),i=wh.get(t);i!==void 0?this.finishToken(i,_s(i)):this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;Th(e)&&this.state.containsEsc&&this.raise(D.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:_s(e)})}raise(e,t,i={}){let r=t instanceof Wt?t:t.loc.start,a=e(r,i);if(!(this.optionFlags&2048))throw a;return this.isLookahead||this.state.errors.push(a),a}raiseOverwrite(e,t,i={}){let r=t instanceof Wt?t:t.loc.start,a=r.index,n=this.state.errors;for(let o=n.length-1;o>=0;o--){let u=n[o];if(u.loc.index===a)return n[o]=e(r,i);if(u.loc.index<a)break}return this.raise(e,t,i)}updateContext(e){}unexpected(e,t){throw this.raise(D.UnexpectedToken,e??this.state.startLoc,{expected:t?_s(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(D.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(t=>this.hasPlugin(t)))throw this.raise(D.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,i,r)=>{this.raise(e,xa(t,i,r))}}},ch=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},lh=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ch)}exit(){let e=this.stack.pop(),t=this.current();for(let[i,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(i)||t.undefinedPrivateNames.set(i,r):this.parser.raise(D.InvalidPrivateFieldResolution,r,{identifierName:i})}declarePrivateName(e,t,i){let{privateNames:r,loneAccessors:a,undefinedPrivateNames:n}=this.current(),o=r.has(e);if(t&3){let u=o&&a.get(e);if(u){let c=u&4,l=t&4,p=u&3,d=t&3;o=p===d||c!==l,o||a.delete(e)}else o||a.set(e,t)}o&&this.parser.raise(D.PrivateNameRedeclaration,i,{identifierName:e}),r.add(e),n.delete(e)}usePrivateName(e,t){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,t):this.parser.raise(D.InvalidPrivateFieldResolution,t,{identifierName:e})}},Zi=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},jo=class extends Zi{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let i=t.index;this.declarationErrors.set(i,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},ph=class{constructor(e){this.parser=void 0,this.stack=[new Zi],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let i=t.loc.start,{stack:r}=this,a=r.length-1,n=r[a];for(;!n.isCertainlyParameterDeclaration();){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,i);else return;n=r[--a]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,t){let{stack:i}=this,r=i[i.length-1],a=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,a);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,a);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,i=t.length-1,r=t[i];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(D.AwaitBindingIdentifier,e),r=t[--i]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([i,r])=>{this.parser.raise(i,r);let a=e.length-2,n=e[a];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r.index),n=e[--a]})}};function jL(){return new Zi(3)}function PL(){return new jo(1)}function FL(){return new jo(2)}function R1(){return new Zi}var hh=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function To(s,e){return(s?2:0)|(e?1:0)}var dh=class extends uh{addExtra(e,t,i,r=!0){if(!e)return;let{extra:a}=e;a==null&&(a={},e.extra=a),r?a[t]=i:Object.defineProperty(a,t,{enumerable:r,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let i=e+t.length;if(this.input.slice(e,i)===t){let r=this.input.charCodeAt(i);return!(Ji(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return w1(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return w1(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(D.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let i={node:null};try{let r=e((a=null)=>{throw i.node=a,i});if(this.state.errors.length>t.errors.length){let a=this.state;return this.state=t,this.state.tokensLength=a.tokensLength,{node:r,error:a.errors[t.errors.length],thrown:!1,aborted:!1,failState:a}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(r){let a=this.state;if(this.state=t,r instanceof SyntaxError)return{node:null,error:r,thrown:!0,aborted:!1,failState:a};if(r===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:a};throw r}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:r,privateKeyLoc:a,optionalParametersLoc:n}=e,o=!!i||!!r||!!n||!!a;if(!t)return o;i!=null&&this.raise(D.InvalidCoverInitializedName,i),r!=null&&this.raise(D.DuplicateProto,r),a!=null&&this.raise(D.UnexpectedPrivateField,a),n!=null&&this.unexpected(n)}isLiteralPropertyName(){return P1(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let a=this.scope,n=this.getScopeHandler();this.scope=new n(this,e);let o=this.prodParam;this.prodParam=new hh;let u=this.classScope;this.classScope=new lh(this);let c=this.expressionScope;return this.expressionScope=new ph(this),()=>{this.state.labels=t,this.exportedIdentifiers=i,this.inModule=r,this.scope=a,this.prodParam=o,this.classScope=u,this.expressionScope=c}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.optionFlags&32&&(e|=1),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin("destructuringPrivate",t)}},Yi=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},er=class{constructor(e,t,i){this.type="",this.start=t,this.end=0,this.loc=new Qi(i),e?.optionFlags&128&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},jh=er.prototype;jh.__clone=function(){let s=new er(void 0,this.start,this.loc.start),e=Object.keys(this);for(let t=0,i=e.length;t<i;t++){let r=e[t];r!=="leadingComments"&&r!=="trailingComments"&&r!=="innerComments"&&(s[r]=this[r])}return s};function IL(s){return ls(s)}function ls(s){let{type:e,start:t,end:i,loc:r,range:a,extra:n,name:o}=s,u=Object.create(jh);return u.type=e,u.start=t,u.end=i,u.loc=r,u.range=a,u.extra=n,u.name=o,e==="Placeholder"&&(u.expectedNode=s.expectedNode),u}function _L(s){let{type:e,start:t,end:i,loc:r,range:a,extra:n}=s;if(e==="Placeholder")return IL(s);let o=Object.create(jh);return o.type=e,o.start=t,o.end=i,o.loc=r,o.range=a,s.raw!==void 0?o.raw=s.raw:o.extra=n,o.value=s.value,o}var fh=class extends dh{startNode(){let e=this.state.startLoc;return new er(this,e.index,e)}startNodeAt(e){return new er(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,i){return e.type=t,e.end=i.index,e.loc.end=i,this.optionFlags&128&&(e.range[1]=i.index),this.optionFlags&4096&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.optionFlags&128&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.optionFlags&128&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},NL=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Z=cs`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:s})=>`Cannot overwrite reserved type ${s}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:s,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${s} = true,\` or \`${s} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:s,enumName:e})=>`Enum member names need to be unique, but the name \`${s}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:s})=>`Enum \`${s}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:s,enumName:e})=>`Enum type \`${s}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:s})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${s}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:s,memberName:e,explicitType:t})=>`Enum \`${s}\` has type \`${t}\`, so the initializer of \`${e}\` needs to be a ${t} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:s,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${s}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:s,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${s}\`.`,EnumInvalidMemberName:({enumName:s,memberName:e,suggestion:t})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${t}\`, in enum \`${s}\`.`,EnumNumberMemberNotInitialized:({enumName:s,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${s}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:s})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${s}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:s})=>`Unexpected reserved type ${s}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:s,suggestion:e})=>`\`declare export ${s}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function BL(s){return s.type==="DeclareExportAllDeclaration"||s.type==="DeclareExportDeclaration"&&(!s.declaration||s.declaration.type!=="TypeAlias"&&s.declaration.type!=="InterfaceDeclaration")}function v1(s){return s.importKind==="type"||s.importKind==="typeof"}var OL={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function LL(s,e){let t=[],i=[];for(let r=0;r<s.length;r++)(e(s[r],r,s)?t:i).push(s[r]);return[t,i]}var zL=/\*?\s*@((?:no)?flow)\b/,ML=s=>class extends s{constructor(...t){super(...t),this.flowPragma=void 0}getScopeHandler(){return ih}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(t,i){t!==134&&t!==13&&t!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(t,i)}addComment(t){if(this.flowPragma===void 0){let i=zL.exec(t.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(t)}flowParseTypeInitialiser(t){let i=this.state.inType;this.state.inType=!0,this.expect(t||14);let r=this.flowParseType();return this.state.inType=i,r}flowParsePredicate(){let t=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(Z.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let t=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,r=null;return this.match(54)?(this.state.inType=t,r=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=t,this.match(54)&&(r=this.flowParsePredicate())),[i,r]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();let i=t.id=this.parseIdentifier(),r=this.startNode(),a=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);let n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11),[r.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),a.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(a,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,i){if(this.match(80))return this.flowParseDeclareClass(t);if(this.match(68))return this.flowParseDeclareFunction(t);if(this.match(74))return this.flowParseDeclareVariable(t);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(t):(i&&this.raise(Z.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(129))return this.flowParseDeclareInterface(t);if(this.match(82))return this.flowParseDeclareExportDeclaration(t,i);this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();let i=t.body=this.startNode(),r=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Z.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,Z.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),r.push(o)}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let a=null,n=!1;return r.forEach(o=>{BL(o)?(a==="CommonJS"&&this.raise(Z.AmbiguousDeclareModuleKind,o),a="ES"):o.type==="DeclareModuleExports"&&(n&&this.raise(Z.DuplicateDeclareModuleExports,o),a==="ES"&&this.raise(Z.AmbiguousDeclareModuleKind,o),a="CommonJS",n=!0)}),t.kind=a||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let r=this.state.value;throw this.raise(Z.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:OL[r]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return t=this.parseExport(t,null),t.type==="ExportNamedDeclaration"&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t;this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();let i=this.flowParseTypeAlias(t);return i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(t){this.next();let i=this.flowParseOpaqueType(t,!0);return i.type="DeclareOpaqueType",i}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,i){if(t.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(t.id.name,i?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(t.implements=[],t.mixins=[],this.eatContextual(117))do t.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do t.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){t==="_"&&this.raise(Z.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,i,r){NL.has(t)&&this.raise(r?Z.AssignReservedType:Z.UnexpectedReservedType,i,{reservedType:t})}flowParseRestrictedIdentifier(t,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,i){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,i||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){let i=this.state.startLoc,r=this.startNode(),a=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=a,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):t&&this.raise(Z.MissingTypeParamDefault,i),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){let t=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let r=!1;do{let a=this.flowParseTypeParameter(r);i.params.push(a),a.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()!==de.brace){let i=this.state.context;this.state.context=[i[0]];try{return t()}finally{this.state.context=i}}else return t()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let t=this.startNode(),i=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=r}),this.state.inType=i,!this.state.inType&&this.curContext()===de.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let t=this.startNode(),i=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){let t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,i,r){return t.static=i,this.lookahead().type===14?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=r,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,i){return t.static=i,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,i){let r=this.startNode();return t.static=i,t.value=this.flowParseObjectTypeMethodish(r),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:i,allowSpread:r,allowProto:a,allowInexact:n}){let o=this.state.inType;this.state.inType=!0;let u=this.startNode();u.callProperties=[],u.properties=[],u.indexers=[],u.internalSlots=[];let c,l,p=!1;for(i&&this.match(6)?(this.expect(6),c=9,l=!0):(this.expect(5),c=8,l=!1),u.exact=l;!this.match(c);){let m=!1,f=null,g=null,y=this.startNode();if(a&&this.isContextual(118)){let T=this.lookahead();T.type!==14&&T.type!==17&&(this.next(),f=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){let T=this.lookahead();T.type!==14&&T.type!==17&&(this.next(),m=!0)}let w=this.flowParseVariance();if(this.eat(0))f!=null&&this.unexpected(f),this.eat(0)?(w&&this.unexpected(w.loc.start),u.internalSlots.push(this.flowParseObjectTypeInternalSlot(y,m))):u.indexers.push(this.flowParseObjectTypeIndexer(y,m,w));else if(this.match(10)||this.match(47))f!=null&&this.unexpected(f),w&&this.unexpected(w.loc.start),u.callProperties.push(this.flowParseObjectTypeCallProperty(y,m));else{let T="init";if(this.isContextual(99)||this.isContextual(104)){let E=this.lookahead();P1(E.type)&&(T=this.state.value,this.next())}let S=this.flowParseObjectTypeProperty(y,m,f,w,T,r,n??!l);S===null?(p=!0,g=this.state.lastTokStartLoc):u.properties.push(S)}this.flowObjectTypeSemicolon(),g&&!this.match(8)&&!this.match(9)&&this.raise(Z.UnexpectedExplicitInexactInObject,g)}this.expect(c),r&&(u.inexact=p);let d=this.finishNode(u,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(t,i,r,a,n,o,u){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?u||this.raise(Z.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Z.InexactInsideNonObject,this.state.lastTokStartLoc),a&&this.raise(Z.InexactVariance,a),null):(o||this.raise(Z.UnexpectedSpreadType,this.state.lastTokStartLoc),r!=null&&this.unexpected(r),a&&this.raise(Z.SpreadVariance,a),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=i,t.proto=r!=null,t.kind=n;let c=!1;return this.match(47)||this.match(10)?(t.method=!0,r!=null&&this.unexpected(r),a&&this.unexpected(a.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),(n==="get"||n==="set")&&this.flowCheckGetterSetterParams(t),!o&&t.key.name==="constructor"&&t.value.this&&this.raise(Z.ThisParamBannedInConstructor,t.value.this)):(n!=="init"&&this.unexpected(),t.method=!1,this.eat(17)&&(c=!0),t.value=this.flowParseTypeInitialiser(),t.variance=a),t.optional=c,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){let i=t.kind==="get"?0:1,r=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise(t.kind==="get"?Z.GetterMayNotHaveThisParam:Z.SetterMayNotHaveThisParam,t.value.this),r!==i&&this.raise(t.kind==="get"?D.BadGetterArity:D.BadSetterArity,t),t.kind==="set"&&t.value.rest&&this.raise(D.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(t,i){t??(t=this.state.startLoc);let r=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let a=this.startNodeAt(t);a.qualification=r,a.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r}flowParseGenericType(t,i){let r=this.startNodeAt(t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(t,i),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){let t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){let t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let i=null,r=!1,a=null,n=this.startNode(),o=this.lookahead(),u=this.state.type===78;return o.type===14||o.type===17?(u&&!t&&this.raise(Z.ThisParamMustBeFirst,n),i=this.parseIdentifier(u),this.eat(17)&&(r=!0,u&&this.raise(Z.ThisParamMayNotBeOptional,n)),a=this.flowParseTypeInitialiser()):a=this.flowParseType(),n.name=i,n.optional=r,n.typeAnnotation=a,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){let i=this.startNodeAt(t.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=t,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let i=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:t,rest:i,_this:r}}flowIdentToTypeAnnotation(t,i,r){switch(r.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(t,r)}}flowParsePrimaryType(){let t=this.state.startLoc,i=this.startNode(),r,a,n=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,a=this.flowParseTupleType(),this.state.noAnonFunctionType=o,a;case 47:{let u=this.startNode();return u.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),u.params=r.params,u.rest=r.rest,u.this=r._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),this.finishNode(u,"FunctionTypeAnnotation")}case 10:{let u=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(fe(this.state.type)||this.match(78)){let c=this.lookahead().type;n=c!==17&&c!==14}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,a=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),a;this.eat(12)}return a?r=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]):r=this.flowParseFunctionTypeParams(),u.params=r.params,u.rest=r.rest,u.this=r._this,this.expect(11),this.expect(19),u.returnType=this.flowParseType(),u.typeParameters=null,this.finishNode(u,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(Z.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Th(this.state.type)){let u=_s(this.state.type);return this.next(),super.createIdentifier(i,u)}else if(fe(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,i,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let t=this.state.startLoc,i=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let a=this.startNodeAt(t),n=this.eat(18);r=r||n,this.expect(0),!n&&this.match(3)?(a.elementType=i,this.next(),i=this.finishNode(a,"ArrayTypeAnnotation")):(a.objectType=i,a.indexType=this.flowParseType(),this.expect(3),r?(a.optional=n,i=this.finishNode(a,"OptionalIndexedAccessType")):i=this.finishNode(a,"IndexedAccessType"))}return i}flowParsePrefixType(){let t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(t.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(t)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){let t=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(t.types=[i];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return t.types.length===1?i:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){let t=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(t.types=[i];this.eat(43);)t.types.push(this.flowParseIntersectionType());return t.types.length===1?i:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){let t=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=t,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let t=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(t,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){let i=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),i}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),this.state.value==="+"?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,i,r=!1){if(i){this.forwardNoArrowParamsConversionAt(t,()=>super.parseFunctionBody(t,!0,r));return}super.parseFunctionBody(t,!1,r)}parseFunctionBodyAndFinish(t,i,r=!1){if(this.match(14)){let a=this.startNode();[a.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=a.typeAnnotation?this.finishNode(a,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,i,r)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){let r=this.lookahead();if(At(r.type)){let a=this.startNode();return this.next(),this.flowParseInterface(a)}}else if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}let i=super.parseStatementLike(t);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(t,i,r){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||fe(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(fe(this.state.type)){if(i.name==="interface")return this.flowParseInterface(t);if(i.name==="type")return this.flowParseTypeAlias(t);if(i.name==="opaque")return this.flowParseOpaqueType(t,!1)}}return super.parseExpressionStatement(t,i,r)}shouldParseExportDeclaration(){let{type:t}=this.state;return t===126||b1(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:t}=this.state;return t===126||b1(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,i,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(r),t}this.expect(17);let a=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:u,failed:c}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(u);if(c||p.length>0){let d=[...n];if(p.length>0){this.state=a,this.state.noArrowAt=d;for(let m=0;m<p.length;m++)d.push(p[m].start);({consequent:u,failed:c}=this.tryParseConditionalConsequent()),[l,p]=this.getArrowLikeExpressions(u)}c&&l.length>1&&this.raise(Z.AmbiguousConditionalArrow,a.startLoc),c&&l.length===1&&(this.state=a,d.push(l[0].start),this.state.noArrowAt=d,{consequent:u,failed:c}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(u,!0),this.state.noArrowAt=n,this.expect(14),o.test=t,o.consequent=u,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let t=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:i}}getArrowLikeExpressions(t,i){let r=[t],a=[];for(;r.length!==0;){let n=r.pop();n.type==="ArrowFunctionExpression"&&n.body.type!=="BlockStatement"?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):a.push(n),r.push(n.body)):n.type==="ConditionalExpression"&&(r.push(n.consequent),r.push(n.alternate))}return i?(a.forEach(n=>this.finishArrowValidation(n)),[a,[]]):LL(a,n=>n.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(t){var i;this.toAssignableList(t.params,(i=t.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,i){let r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=i(),this.state.noArrowParamsConversionAt.pop()):r=i(),r}parseParenItem(t,i){let r=super.parseParenItem(t,i);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(a,"TypeCastExpression")}return r}assertModuleNodeAllowed(t){t.type==="ImportDeclaration"&&(t.importKind==="type"||t.importKind==="typeof")||t.type==="ExportNamedDeclaration"&&t.exportKind==="type"||t.type==="ExportAllDeclaration"&&t.exportKind==="type"||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){t.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){t.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){t.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(t)}eatExportStar(t){return super.eatExportStar(t)?!0:this.isContextual(130)&&this.lookahead().type===55?(t.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(t){let{startLoc:i}=this.state,r=super.maybeParseExportNamespaceSpecifier(t);return r&&t.exportKind==="type"&&this.unexpected(i),r}parseClassId(t,i,r){super.parseClassId(t,i,r),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,i,r){let{startLoc:a}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,i))return;i.declare=!0}super.parseClassMember(t,i,r),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(Z.DeclareClassElement,a):i.value&&this.raise(Z.DeclareClassFieldInitializer,i.value))}isIterator(t){return t==="iterator"||t==="asyncIterator"}readIterator(){let t=super.readWord1(),i="@@"+t;(!this.isIterator(t)||!this.state.inType)&&this.raise(D.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(t){let i=this.input.charCodeAt(this.state.pos+1);t===123&&i===124?this.finishOp(6,2):this.state.inType&&(t===62||t===60)?this.finishOp(t===62?48:47,1):this.state.inType&&t===63?i===46?this.finishOp(18,2):this.finishOp(17,1):bL(t,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t)}isAssignable(t,i){return t.type==="TypeCastExpression"?this.isAssignable(t.expression,i):super.isAssignable(t,i)}toAssignable(t,i=!1){!i&&t.type==="AssignmentExpression"&&t.left.type==="TypeCastExpression"&&(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,i)}toAssignableList(t,i,r){for(let a=0;a<t.length;a++){let n=t[a];n?.type==="TypeCastExpression"&&(t[a]=this.typeCastToParameter(n))}super.toAssignableList(t,i,r)}toReferencedList(t,i){for(let a=0;a<t.length;a++){var r;let n=t[a];n&&n.type==="TypeCastExpression"&&!((r=n.extra)!=null&&r.parenthesized)&&(t.length>1||!i)&&this.raise(Z.TypeCastInPattern,n.typeAnnotation)}return t}parseArrayLike(t,i,r,a){let n=super.parseArrayLike(t,i,r,a);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(t,i,r){return t==="TypeCastExpression"||super.isValidLVal(t,i,r)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,i,r,a,n,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,i,r,a,n,o),i.params&&n){let u=i.params;u.length>0&&this.isThisParam(u[0])&&this.raise(Z.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&n&&i.value.params){let u=i.value.params;u.length>0&&this.isThisParam(u[0])&&this.raise(Z.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(t,i,r,a){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,i,r,a)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=t.implements=[];do{let r=this.startNode();r.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,i.push(this.finishNode(r,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);let i=this.getObjectOrClassMethodParams(t);if(i.length>0){let r=i[0];this.isThisParam(r)&&t.kind==="get"?this.raise(Z.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(Z.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,i,r,a,n,o,u){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance;let c;this.match(47)&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let l=super.parseObjPropValue(t,i,r,a,n,o,u);return c&&((l.value||l).typeParameters=c),l}parseFunctionParamType(t){return this.eat(17)&&(t.type!=="Identifier"&&this.raise(Z.PatternIsOptional,t),this.isThisParam(t)&&this.raise(Z.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(Z.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(Z.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,i){let r=super.parseMaybeDefault(t,i);return r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(Z.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(Z.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,i,r){i.local=v1(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(i,r))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!t&&this.isContextual(87)}applyImportPhase(t,i,r,a){if(super.applyImportPhase(t,i,r,a),i){if(!r&&this.match(65))return;t.exportKind=r==="type"?r:"value"}else r==="type"&&this.match(55)&&this.unexpected(),t.importKind=r==="type"||r==="typeof"?r:"value"}parseImportSpecifier(t,i,r,a,n){let o=t.imported,u=null;o.type==="Identifier"&&(o.name==="type"?u="type":o.name==="typeof"&&(u="typeof"));let c=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let p=this.parseIdentifier(!0);u!==null&&!At(this.state.type)?(t.imported=p,t.importKind=u,t.local=ls(p)):(t.imported=o,t.importKind=null,t.local=this.parseIdentifier())}else{if(u!==null&&At(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=u;else{if(i)throw this.raise(D.ImportBindingIsString,t,{importName:o.value});t.imported=o,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(c=!0,t.local=ls(t.imported))}let l=v1(t);return r&&l&&this.raise(Z.ImportTypeShorthandOnlyInPureImport,t),(r||l)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),c&&!r&&!l&&this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(t,i){let r=t.kind;r!=="get"&&r!=="set"&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,i)}parseVarId(t,i){super.parseVarId(t,i),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,i){if(this.match(14)){let r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=r}return super.parseAsyncArrowFromCallExpression(t,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,i){var r;let a=null,n;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(a=this.state.clone(),n=this.tryParse(()=>super.parseMaybeAssign(t,i),a),!n.error)return n.node;let{context:c}=this.state,l=c[c.length-1];(l===de.j_oTag||l===de.j_expr)&&c.pop()}if((r=n)!=null&&r.error||this.match(47)){var o,u;a=a||this.state.clone();let c,l=this.tryParse(d=>{var m;c=this.flowParseTypeParameterDeclaration();let f=this.forwardNoArrowParamsConversionAt(c,()=>{let y=super.parseMaybeAssign(t,i);return this.resetStartLocationFromNode(y,c),y});(m=f.extra)!=null&&m.parenthesized&&d();let g=this.maybeUnwrapTypeCastExpression(f);return g.type!=="ArrowFunctionExpression"&&d(),g.typeParameters=c,this.resetStartLocationFromNode(g,c),f},a),p=null;if(l.node&&this.maybeUnwrapTypeCastExpression(l.node).type==="ArrowFunctionExpression"){if(!l.error&&!l.aborted)return l.node.async&&this.raise(Z.UnexpectedTypeParameterBeforeAsyncArrowFunction,c),l.node;p=l.node}if((o=n)!=null&&o.node)return this.state=n.failState,n.node;if(p)return this.state=l.failState,p;throw(u=n)!=null&&u.thrown?n.error:l.thrown?l.error:this.raise(Z.UnexpectedTokenAfterTypeParameter,c)}return super.parseMaybeAssign(t,i)}parseArrow(t){if(this.match(14)){let i=this.tryParse(()=>{let r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let a=this.startNode();return[a.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=r,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),a});if(i.thrown)return null;i.error&&(this.state=i.failState),t.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=i:super.setArrowFunctionParameters(t,i)}checkParams(t,i,r,a=!0){if(!(r&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start)))){for(let n=0;n<t.params.length;n++)this.isThisParam(t.params[n])&&n>0&&this.raise(Z.ThisParamMustBeFirst,t.params[n]);super.checkParams(t,i,r,a)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,i,r){if(t.type==="Identifier"&&t.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let a=this.startNodeAt(i);a.callee=t,a.arguments=super.parseCallExpressionArguments(11),t=this.finishNode(a,"CallExpression")}else if(t.type==="Identifier"&&t.name==="async"&&this.match(47)){let a=this.state.clone(),n=this.tryParse(u=>this.parseAsyncArrowWithTypeParameters(i)||u(),a);if(!n.error&&!n.aborted)return n.node;let o=this.tryParse(()=>super.parseSubscripts(t,i,r),a);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(t,i,r)}parseSubscript(t,i,r,a){if(this.match(18)&&this.isLookaheadToken_lt()){if(a.optionalChainMember=!0,r)return a.stop=!0,t;this.next();let n=this.startNodeAt(i);return n.callee=t,n.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11),n.optional=!0,this.finishCallExpression(n,!0)}else if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let n=this.startNodeAt(i);n.callee=t;let o=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11),a.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,a.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(t,i,r,a)}parseNewCallee(t){super.parseNewCallee(t);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),t.typeArguments=i}parseAsyncArrowWithTypeParameters(t){let i=this.startNodeAt(t);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(t){let i=this.input.charCodeAt(this.state.pos+1);if(t===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(t)}readToken_pipe_amp(t){let i=this.input.charCodeAt(this.state.pos+1);if(t===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(t)}parseTopLevel(t,i){let r=super.parseTopLevel(t,i);return this.state.hasFlowComment&&this.raise(Z.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Z.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:t}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(t+i));)i++;let r=this.input.charCodeAt(i+t),a=this.input.charCodeAt(i+t+1);return r===58&&a===58?i+2:this.input.slice(i+t,i+t+12)==="flow-include"?i+12:r===58&&a!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(D.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:i,memberName:r}){this.raise(Z.EnumBooleanMemberNotInitialized,t,{memberName:r,enumName:i})}flowEnumErrorInvalidMemberInitializer(t,i){return this.raise(i.explicitType?i.explicitType==="symbol"?Z.EnumInvalidMemberInitializerSymbolType:Z.EnumInvalidMemberInitializerPrimaryType:Z.EnumInvalidMemberInitializerUnknownType,t,i)}flowEnumErrorNumberMemberNotInitialized(t,i){this.raise(Z.EnumNumberMemberNotInitialized,t,i)}flowEnumErrorStringMemberInconsistentlyInitialized(t,i){this.raise(Z.EnumStringMemberInconsistentlyInitialized,t,i)}flowEnumMemberInit(){let t=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let r=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}case 134:{let r=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}case 85:case 86:{let r=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){let t=this.state.startLoc,i=this.parseIdentifier(!0),r=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t};return{id:i,init:r}}flowEnumCheckExplicitTypeMismatch(t,i,r){let{explicitType:a}=i;a!==null&&a!==r&&this.flowEnumErrorInvalidMemberInitializer(t,i)}flowEnumMembers({enumName:t,explicitType:i}){let r=new Set,a={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}let o=this.startNode(),{id:u,init:c}=this.flowEnumMemberRaw(),l=u.name;if(l==="")continue;/^[a-z]/.test(l)&&this.raise(Z.EnumInvalidMemberName,u,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:t}),r.has(l)&&this.raise(Z.EnumDuplicateMemberName,u,{memberName:l,enumName:t}),r.add(l);let p={enumName:t,explicitType:i,memberName:l};switch(o.id=u,c.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"boolean"),o.init=c.value,a.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"number"),o.init=c.value,a.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"string"),o.init=c.value,a.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,p);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,p);break;default:a.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:a,hasUnknownMembers:n}}flowEnumStringMembers(t,i,{enumName:r}){if(t.length===0)return i;if(i.length===0)return t;if(i.length>t.length){for(let a of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:r});return i}else{for(let a of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:r});return t}}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!fe(this.state.type))throw this.raise(Z.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(Z.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:i}),i}flowEnumBody(t,i){let r=i.name,a=i.loc.start,n=this.flowEnumParseExplicitType({enumName:r});this.expect(5);let{members:o,hasUnknownMembers:u}=this.flowEnumMembers({enumName:r,explicitType:n});switch(t.hasUnknownMembers=u,n){case"boolean":return t.explicitType=!0,t.members=o.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=o.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=o.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{let c=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;let l=o.booleanMembers.length,p=o.numberMembers.length,d=o.stringMembers.length,m=o.defaultedMembers.length;if(!l&&!p&&!d&&!m)return c();if(!l&&!p)return t.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody");if(!p&&!d&&l>=m){for(let f of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(f.loc.start,{enumName:r,memberName:f.id.name});return t.members=o.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}else if(!l&&!d&&p>=m){for(let f of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(f.loc.start,{enumName:r,memberName:f.id.name});return t.members=o.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}else return this.raise(Z.EnumInconsistentMemberValues,a,{enumName:r}),c()}}}flowParseEnumDeclaration(t){let i=this.parseIdentifier();return t.id=i,t.body=this.flowEnumBody(this.startNode(),i),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){let t=this.nextTokenStart();if(this.input.charCodeAt(t)===60){let i=this.input.charCodeAt(t+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return t.type==="TypeCastExpression"?t.expression:t}},RL={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},ei=cs`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:s})=>`Expected corresponding JSX closing tag for <${s}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:s,HTMLEntity:e})=>`Unexpected token \`${s}\`. Did you mean \`${e}\` or \`{'${s}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Is(s){return s?s.type==="JSXOpeningFragment"||s.type==="JSXClosingFragment":!1}function Ki(s){if(s.type==="JSXIdentifier")return s.name;if(s.type==="JSXNamespacedName")return s.namespace.name+":"+s.name.name;if(s.type==="JSXMemberExpression")return Ki(s.object)+"."+Ki(s.property);throw new Error("Node had unexpected type: "+s.type)}var qL=s=>class extends s{jsxReadToken(){let t="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(ei.UnterminatedJsxContent,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){r===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(r);return}t+=this.input.slice(i,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(i,this.state.pos),t+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:Xi(r)?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let i=this.input.charCodeAt(this.state.pos),r;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,r=t?`
`:`\r
`):r=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(t){let i="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(D.UnterminatedString,this.state.startLoc);let a=this.input.charCodeAt(this.state.pos);if(a===t)break;a===38?(i+=this.input.slice(r,this.state.pos),i+=this.jsxReadEntity(),r=this.state.pos):Xi(a)?(i+=this.input.slice(r,this.state.pos),i+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}i+=this.input.slice(r,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let r=this.readInt(i,void 0,!1,"bail");if(r!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(r)}else{let i=0,r=!1;for(;i++<10&&this.state.pos<this.length&&!(r=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(r){let a=this.input.slice(t,this.state.pos),n=RL[a];if(++this.state.pos,n)return n}}return this.state.pos=t,"&"}jsxReadWord(){let t,i=this.state.pos;do t=this.input.charCodeAt(++this.state.pos);while(Ji(t)||t===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let t=this.startNode();return this.match(141)?t.name=this.state.value:Th(this.state.type)?t.name=_s(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){let t=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let r=this.startNodeAt(t);return r.namespace=i,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let t=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let r=this.startNodeAt(t);r.object=i,r.property=this.jsxParseIdentifier(),i=this.finishNode(r,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(de.brace),this.next(),t=this.jsxParseExpressionContainer(t,de.j_oTag),t.expression.type==="JSXEmptyExpression"&&this.raise(ei.AttributeIsEmpty,t),t;case 143:case 134:return this.parseExprAtom();default:throw this.raise(ei.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(de.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,i){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{let r=this.parseExpression();t.expression=r}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){let t=this.startNode();return this.match(5)?(this.setContext(de.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(de.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){let i=this.startNodeAt(t);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(t){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return t.attributes=i,t.selfClosing=this.eat(56),this.expect(144),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){let i=this.startNodeAt(t);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(t){let i=this.startNodeAt(t),r=[],a=this.jsxParseOpeningElementAt(t),n=null;if(!a.selfClosing){e:for(;;)switch(this.state.type){case 143:if(t=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(t);break e}r.push(this.jsxParseElementAt(t));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(de.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(o)):r.push(this.jsxParseExpressionContainer(o,de.j_expr));break}default:this.unexpected()}Is(a)&&!Is(n)&&n!==null?this.raise(ei.MissingClosingTagFragment,n):!Is(a)&&Is(n)?this.raise(ei.MissingClosingTagElement,n,{openingTagName:Ki(a.name)}):!Is(a)&&!Is(n)&&Ki(n.name)!==Ki(a.name)&&this.raise(ei.MissingClosingTagElement,n,{openingTagName:Ki(a.name)})}if(Is(a)?(i.openingFragment=a,i.closingFragment=n):(i.openingElement=a,i.closingElement=n),i.children=r,this.match(47))throw this.raise(ei.UnwrappedAdjacentJSXElements,this.state.startLoc);return Is(a)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){let{context:i}=this.state;i[i.length-1]=t}parseExprAtom(t){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){let i=this.curContext();if(i===de.j_expr){this.jsxReadToken();return}if(i===de.j_oTag||i===de.j_cTag){if(us(t)){this.jsxReadWord();return}if(t===62){++this.state.pos,this.finishToken(144);return}if((t===34||t===39)&&i===de.j_oTag){this.jsxReadString(t);return}}if(t===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(t)}updateContext(t){let{context:i,type:r}=this.state;if(r===56&&t===143)i.splice(-2,2,de.j_cTag),this.state.canStartJSXElement=!1;else if(r===143)i.push(de.j_oTag);else if(r===144){let a=i[i.length-1];a===de.j_oTag&&t===56||a===de.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===de.j_expr):(this.setContext(de.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=iL(r)}},mh=class extends ka{constructor(...e){super(...e),this.tsNames=new Map}},gh=class extends va{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new mh(e)}enter(e){e===256&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===256&&this.importsStack.pop(),e}hasImport(e,t){let i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!t&&i>1){for(let r=0;r<i-1;r++)if(this.importsStack[r].has(e))return!0}return!1}declareName(e,t,i){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(D.VarRedeclaration,i,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),a=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,a|16);return}super.declareName(e,t,i),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e)),a=a|1),t&256&&(a=a|2),t&512&&(a=a|4),t&128&&(a=a|8),a&&r.tsNames.set(e,a)}isRedeclaredInScope(e,t,i){let r=e.tsNames.get(t);if((r&2)>0){if(i&256){let a=!!(i&512),n=(r&4)>0;return a!==n}return!0}return i&128&&(r&8)>0?e.names.get(t)&2?!!(i&1):!1:i&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,i)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let i=this.scopeStack.length;for(let r=i-1;r>=0;r--){let n=this.scopeStack[r].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},q1=s=>s.type==="ParenthesizedExpression"?q1(s.expression):s,yh=class extends fh{toAssignable(e,t=!1){var i,r;let a;switch((e.type==="ParenthesizedExpression"||(i=e.extra)!=null&&i.parenthesized)&&(a=q1(e),t?a.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(D.InvalidParenthesizedAssignment,e):a.type!=="MemberExpression"&&!this.isOptionalMemberExpression(a)&&this.raise(D.InvalidParenthesizedAssignment,e):this.raise(D.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let o=0,u=e.properties.length,c=u-1;o<u;o++){var n;let l=e.properties[o],p=o===c;this.toAssignableObjectExpressionProp(l,p,t),p&&l.type==="RestElement"&&(n=e.extra)!=null&&n.trailingCommaLoc&&this.raise(D.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:u}=e;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(u,t);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":e.type="ArrayPattern",this.toAssignableList(e.elements,(r=e.extra)==null?void 0:r.trailingCommaLoc,t);break;case"AssignmentExpression":e.operator!=="="&&this.raise(D.MissingEqInAssignment,e.left.loc.end),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(a,t);break}}toAssignableObjectExpressionProp(e,t,i){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?D.PatternHasAccessor:D.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){e.type="RestElement";let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,i),t||this.raise(D.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,t,i){let r=e.length-1;for(let a=0;a<=r;a++){let n=e[a];n&&(this.toAssignableListItem(e,a,i),n.type==="RestElement"&&(a<r?this.raise(D.RestTrailingComma,n):t&&this.raise(D.RestTrailingComma,t)))}}toAssignableListItem(e,t,i){let r=e[t];if(r.type==="SpreadElement"){r.type="RestElement";let a=r.argument;this.checkToRestConversion(a,!0),this.toAssignable(a,i)}else this.toAssignable(r,i)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let i=e.properties.length-1;return e.properties.every((r,a)=>r.type!=="ObjectMethod"&&(a===i||r.type!=="SpreadElement")&&this.isAssignable(r))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let i of e)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,i){let r=i&1,a=[],n=!0;for(;!this.eat(e);)if(n?n=!1:this.expect(12),r&&this.match(12))a.push(null);else{if(this.eat(e))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),a.push(o),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(D.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());a.push(this.parseBindingElement(i,o))}}return a}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return e===139?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,t,!1,!1,!0,!1)}parseBindingElement(e,t){let i=this.parseMaybeDefault();(this.hasPlugin("flow")||e&2)&&this.parseFunctionParamType(i);let r=this.parseMaybeDefault(i.loc.start,i);return t.length&&(i.decorators=t),r}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??(e=this.state.startLoc),t=t??this.parseBindingAtom(),!this.eat(29))return t;let i=this.startNodeAt(e);return i.left=t,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,t,i){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,i=64,r=!1,a=!1,n=!1){var o;let u=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||u==="MemberExpression"){c&&(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression"&&this.raise(D.InvalidLhsOptionalChaining,e,{ancestor:t})),i!==64&&this.raise(D.InvalidPropertyBindingPattern,e);return}if(u==="Identifier"){this.checkIdentifier(e,i,a);let{name:g}=e;r&&(r.has(g)?this.raise(D.ParamDupe,e):r.add(g));return}let l=this.isValidLVal(u,!(n||(o=e.extra)!=null&&o.parenthesized)&&t.type==="AssignmentExpression",i);if(l===!0)return;if(l===!1){let g=i===64?D.InvalidLhs:D.InvalidLhsBinding;this.raise(g,e,{ancestor:t});return}let p,d;typeof l=="string"?(p=l,d=u==="ParenthesizedExpression"):[p,d]=l;let m=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:t,f=e[p];if(Array.isArray(f))for(let g of f)g&&this.checkLVal(g,m,i,r,a,d);else f&&this.checkLVal(f,m,i,r,a,d)}checkIdentifier(e,t,i=!1){this.state.strict&&(i?O1(e.name,this.inModule):B1(e.name))&&(t===64?this.raise(D.StrictEvalArguments,e,{referenceName:e.name}):this.raise(D.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name==="let"&&this.raise(D.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(D.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?D.RestTrailingComma:D.ElementAfterRest,this.state.startLoc),!0):!1}};function UL(s){if(s==null)throw new Error(`Unexpected ${s} value.`);return s}function E1(s){if(!s)throw new Error("Assert fail")}var G=cs`typescript`({AbstractMethodHasImplementation:({methodName:s})=>`Method '${s}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:s})=>`Property '${s}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:s})=>`'declare' is not allowed in ${s}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:s})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:s})=>`Duplicate modifier: '${s}'.`,EmptyHeritageClauseType:({token:s})=>`'${s}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:s})=>`'${s[0]}' modifier cannot be used with '${s[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:s})=>`Index signatures cannot have an accessibility modifier ('${s}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:s})=>`'${s}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnTypeMember:({modifier:s})=>`'${s}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:s})=>`'${s}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:s})=>`'${s}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:s})=>`'${s[0]}' modifier must precede '${s[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:s})=>`Private elements cannot have an accessibility modifier ('${s}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:s})=>`Single type parameter ${s} should have a trailing comma. Example usage: <${s},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:s})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${s}.`});function HL(s){switch(s){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function C1(s){return s==="private"||s==="public"||s==="protected"}function $L(s){return s==="in"||s==="out"}var VL=s=>class extends s{constructor(...t){super(...t),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:G.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:G.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:G.InvalidModifierOnTypeParameter})}getScopeHandler(){return gh}tsIsIdentifier(){return fe(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,i){if(!fe(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let r=this.state.value;if(t.includes(r)){if(i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:i,stopOnStartOfClassStaticBlock:r,errorTemplate:a=G.InvalidModifierOnTypeMember},n){let o=(c,l,p,d)=>{l===p&&n[d]&&this.raise(G.InvalidModifiersOrder,c,{orderedModifiers:[p,d]})},u=(c,l,p,d)=>{(n[p]&&l===d||n[d]&&l===p)&&this.raise(G.IncompatibleModifiers,c,{modifiers:[p,d]})};for(;;){let{startLoc:c}=this.state,l=this.tsParseModifier(t.concat(i??[]),r);if(!l)break;C1(l)?n.accessibility?this.raise(G.DuplicateAccessibilityModifier,c,{modifier:l}):(o(c,l,l,"override"),o(c,l,l,"static"),o(c,l,l,"readonly"),n.accessibility=l):$L(l)?(n[l]&&this.raise(G.DuplicateModifier,c,{modifier:l}),n[l]=!0,o(c,l,"in","out")):(hasOwnProperty.call(n,l)?this.raise(G.DuplicateModifier,c,{modifier:l}):(o(c,l,"static","readonly"),o(c,l,"static","override"),o(c,l,"override","readonly"),o(c,l,"abstract","override"),u(c,l,"declare","override"),u(c,l,"static","abstract")),n[l]=!0),i!=null&&i.includes(l)&&this.raise(a,c,{modifier:l})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,i){let r=[];for(;!this.tsIsListTerminator(t);)r.push(i());return r}tsParseDelimitedList(t,i,r){return UL(this.tsParseDelimitedListWorker(t,i,!0,r))}tsParseDelimitedListWorker(t,i,r,a){let n=[],o=-1;for(;!this.tsIsListTerminator(t);){o=-1;let u=i();if(u==null)return;if(n.push(u),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(t))break;r&&this.expect(12);return}return a&&(a.value=o),n}tsParseBracketedList(t,i,r,a,n){a||(r?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(t,i,n);return r?this.expect(3):this.expect(48),o}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.parseStringLiteral(this.state.value):(this.raise(G.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=super.parseExprAtom()),this.eat(12)&&!this.match(11)?(t.options=super.parseMaybeAssignAllowIn(),this.eat(12)):t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t){let i;if(t&1&&this.match(78))if(t&2)i=this.parseIdentifier(!0);else{let r=this.startNode();this.next(),i=this.finishNode(r,"ThisExpression")}else i=this.parseIdentifier(!!(t&1));for(;this.eat(16);){let r=this.startNodeAtNode(i);r.left=i,r.right=this.parseIdentifier(!!(t&1)),i=this.finishNode(r,"TSQualifiedName")}return i}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let i=this.startNodeAtNode(t);return i.parameterName=t,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(t){let i=this.startNode();return t(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let r={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,r),i.params.length===0&&this.raise(G.EmptyTypeParameters,i),r.value!==-1&&this.addExtra(i,"trailingComma",r.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(t,i){let r=t===19,a="parameters",n="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[a]=this.tsParseBindingListForSignature(),r?i[n]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(i[n]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){let t=super.parseBindingList(11,41,2);for(let i of t){let{type:r}=i;(r==="AssignmentPattern"||r==="TSParameterProperty")&&this.raise(G.UnsupportedSignatureParameterKind,i,{type:r})}return t}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(t,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),fe(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),t.parameters=[i];let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,i){this.eat(17)&&(t.optional=!0);let r=t;if(this.match(10)||this.match(47)){i&&this.raise(G.ReadonlyForMethodSignature,t);let a=r;a.kind&&this.match(47)&&this.raise(G.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,a),this.tsParseTypeMemberSemicolon();let n="parameters",o="typeAnnotation";if(a.kind==="get")a[n].length>0&&(this.raise(D.BadGetterArity,this.state.curPosition()),this.isThisParam(a[n][0])&&this.raise(G.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(a.kind==="set"){if(a[n].length!==1)this.raise(D.BadSetterArity,this.state.curPosition());else{let u=a[n][0];this.isThisParam(u)&&this.raise(G.AccessorCannotDeclareThisParameter,this.state.curPosition()),u.type==="Identifier"&&u.optional&&this.raise(G.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),u.type==="RestElement"&&this.raise(G.SetAccessorCannotHaveRestParameter,this.state.curPosition())}a[o]&&this.raise(G.SetAccessorCannotHaveReturnType,a[o])}else a.kind="method";return this.finishNode(a,"TSMethodSignature")}else{let a=r;i&&(a.readonly=!0);let n=this.tsTryParseTypeAnnotation();return n&&(a.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(a,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let r=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(r,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);let i=this.tsTryParseIndexSignature(t);return i||(super.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,super.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let t=this.startNode();this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0);{let i=this.startNode();i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),t.typeParameter=this.finishNode(i,"TSTypeParameter")}return t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return t.elementTypes.forEach(r=>{let{type:a}=r;i&&a!=="TSRestType"&&a!=="TSOptionalType"&&!(a==="TSNamedTupleMember"&&r.optional)&&this.raise(G.OptionalTypeBeforeRequired,r),i||(i=a==="TSNamedTupleMember"&&r.optional||a==="TSOptionalType")}),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let t=this.state.startLoc,i=this.eat(21),{startLoc:r}=this.state,a,n,o,u,l=At(this.state.type)?this.lookaheadCharCode():null;if(l===58)a=!0,o=!1,n=this.parseIdentifier(!0),this.expect(14),u=this.tsParseType();else if(l===63){o=!0;let p=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(a=!0,n=this.createIdentifier(this.startNodeAt(r),p),this.expect(17),this.expect(14),u=this.tsParseType()):(a=!1,u=d,this.expect(17))}else u=this.tsParseType(),o=this.eat(17),a=this.eat(14);if(a){let p;n?(p=this.startNodeAt(r),p.optional=o,p.label=n,p.elementType=u,this.eat(17)&&(p.optional=!0,this.raise(G.TupleOptionalAfterType,this.state.lastTokStartLoc))):(p=this.startNodeAt(r),p.optional=o,this.raise(G.InvalidTupleMemberLabel,u),p.label=u,p.elementType=this.tsParseType()),u=this.finishNode(p,"TSNamedTupleMember")}else if(o){let p=this.startNodeAt(r);p.typeAnnotation=u,u=this.finishNode(p,"TSOptionalType")}if(i){let p=this.startNodeAt(t);p.typeAnnotation=u,u=this.finishNode(p,"TSRestType")}return u}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,i){let r=this.startNode();return t==="TSConstructorType"&&(r.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,r)),this.finishNode(r,t)}tsParseLiteralTypeNode(){let t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{let t=this.startNode();return t.literal=super.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let t=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(fe(t)||t===88||t===84){let i=t===88?"TSVoidKeyword":t===84?"TSNullKeyword":HL(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,i)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:t}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let r=this.startNodeAt(t);r.elementType=i,this.expect(3),i=this.finishNode(r,"TSArrayType")}else{let r=this.startNodeAt(t);r.objectType=i,r.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(r,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let t=this.startNode(),i=this.state.value;return this.next(),t.operator=i,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(G.UnexpectedReadonly,t)}}tsParseInferType(){let t=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){return cL(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(t,i,r){let a=this.startNode(),n=this.eat(r),o=[];do o.push(i());while(this.eat(r));return o.length===1&&!n?o[0]:(a.types=o,this.finishNode(a,t))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(fe(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,i=t.length;try{return this.parseObjectLike(8,!0),t.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,i=t.length;try{return super.parseBindingList(3,93,1),t.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let i=this.startNode();this.expect(t);let r=this.startNode(),a=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(a&&this.match(78)){let u=this.tsParseThisTypeOrThisTypePredicate();return u.type==="TSThisType"?(r.parameterName=u,r.asserts=!0,r.typeAnnotation=null,u=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(u,r),u.asserts=!0),i.typeAnnotation=u,this.finishNode(i,"TSTypeAnnotation")}let n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return a?(r.parameterName=this.parseIdentifier(),r.asserts=a,r.typeAnnotation=null,i.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return r.parameterName=n,r.typeAnnotation=o,r.asserts=a,i.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let t=this.state.containsEsc;return this.next(),!fe(this.state.type)&&!this.match(78)?!1:(t&&this.raise(D.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,i=this.startNode()){return this.tsInType(()=>{t&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){E1(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let i=this.startNodeAtNode(t);return i.checkType=t,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(G.ReservedTypeAssertion,this.state.startLoc);let t=this.startNode();return t.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let i=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let a=this.startNode();return a.expression=this.tsParseEntityName(3),this.match(47)&&(a.typeParameters=this.tsParseTypeArguments()),this.finishNode(a,"TSExpressionWithTypeArguments")}});return r.length||this.raise(G.EmptyHeritageClauseType,i,{token:t}),r}tsParseInterfaceDeclaration(t,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(t.declare=!0),fe(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(G.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()!==de.brace){let i=this.state.context;this.state.context=[i[0]];try{return t()}finally{this.state.context=i}}else return t()}tsInType(t){let i=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(t){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(t){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType(()=>(this.expect(t),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,i={}){return i.const&&(t.const=!0),i.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){let t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,i=!1){if(t.id=this.parseIdentifier(),i||this.checkIdentifier(t.id,1024),this.eat(16)){let r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),t.body=r}else this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.global=!0,t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,i,r){t.isExport=r||!1,t.id=i||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);let a=this.tsParseModuleReference();return t.importKind==="type"&&a.type!=="TSExternalModuleReference"&&this.raise(G.ImportAliasHasImportType,a),t.moduleReference=a,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let i=this.state.clone(),r=t();return this.state=i,r}tsTryParseAndCatch(t){let i=this.tryParse(r=>t()||r());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(t){let i=this.state.clone(),r=t();if(r!==void 0&&r!==!1)return r;this.state=i}tsTryParseDeclare(t){if(this.isLineTerminator())return;let i=this.state.type,r;return this.isContextual(100)&&(i=74,r="let"),this.tsInAmbientContext(()=>{switch(i){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(t.declare=!0,this.parseVarStatement(t,r||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0}));case 129:{let a=this.tsParseInterfaceDeclaration(t,{declare:!0});if(a)return a}default:if(fe(i))return this.tsParseDeclaration(t,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(t,i,r){switch(i.name){case"declare":{let a=this.tsTryParseDeclare(t);return a&&(a.declare=!0),a}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let a=t;return a.kind="global",t.global=!0,a.id=i,a.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(a,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,i.name,!1,r)}}tsParseDeclaration(t,i,r,a){switch(i){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||fe(this.state.type)))return this.tsParseAbstractDeclaration(t,a);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);if(fe(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&fe(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(r)&&fe(this.state.type))return this.tsParseTypeAliasDeclaration(t);break}}tsCheckLineTerminator(t){return t?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let r=this.tsTryParseAndCatch(()=>{let a=this.startNodeAt(t);return a.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(a),a.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),a});if(this.state.maybeInArrowParameters=i,!!r)return super.parseArrowExpression(r,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0?this.raise(G.EmptyTypeArguments,t):!this.state.inType&&this.curContext()===de.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return lL(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(t,i){let r=this.state.startLoc,a={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},a);let n=a.accessibility,o=a.override,u=a.readonly;!(t&4)&&(n||u||o)&&this.raise(G.UnexpectedParameterModifier,r);let c=this.parseMaybeDefault();t&2&&this.parseFunctionParamType(c);let l=this.parseMaybeDefault(c.loc.start,c);if(n||u||o){let p=this.startNodeAt(r);return i.length&&(p.decorators=i),n&&(p.accessibility=n),u&&(p.readonly=u),o&&(p.override=o),l.type!=="Identifier"&&l.type!=="AssignmentPattern"&&this.raise(G.UnsupportedParameterPropertyKind,p),p.parameter=l,this.finishNode(p,"TSParameterProperty")}return i.length&&(c.decorators=i),l}isSimpleParameter(t){return t.type==="TSParameterProperty"&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(let i of t.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(G.PatternIsOptional,i)}setArrowFunctionParameters(t,i,r){super.setArrowFunctionParameters(t,i,r),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,i,r=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let a=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return a&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,a):a==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(G.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,a,r):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,i,r))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(G.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(t,i){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,i,r,a){let n=super.parseArrayLike(t,i,r,a);return n.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(t,i,r,a){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=t,this.finishNode(o,"TSNonNullExpression")}let n=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(r)return a.stop=!0,t;a.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let o,u=this.tsTryParseAndCatch(()=>{if(!r&&this.atPossibleAsyncArrow(t)){let d=this.tsTryParseGenericAsyncArrowFunction(i);if(d)return d}let c=this.tsParseTypeArgumentsInExpression();if(!c)return;if(n&&!this.match(10)){o=this.state.curPosition();return}if(Ao(this.state.type)){let d=super.parseTaggedTemplateExpression(t,i,a);return d.typeParameters=c,d}if(!r&&this.eat(10)){let d=this.startNodeAt(i);return d.callee=t,d.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=c,a.optionalChainMember&&(d.optional=n),this.finishCallExpression(d,a.optionalChainMember)}let l=this.state.type;if(l===48||l===52||l!==10&&ba(l)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(i);return p.expression=t,p.typeParameters=c,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),u)return u.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(G.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),u}return super.parseSubscript(t,i,r,a)}parseNewCallee(t){var i;super.parseNewCallee(t);let{callee:r}=t;r.type==="TSInstantiationExpression"&&!((i=r.extra)!=null&&i.parenthesized)&&(t.typeParameters=r.typeParameters,t.callee=r.expression)}parseExprOp(t,i,r){let a;if(Co(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(a=this.isContextual(120)))){let n=this.startNodeAt(i);return n.expression=t,n.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(a&&this.raise(D.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(n,a?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,i,r)}return super.parseExprOp(t,i,r)}checkReservedWord(t,i,r,a){this.state.isAmbientContext||super.checkReservedWord(t,i,r,a)}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(G.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return t?i===123||i===42:i!==61}return!t&&this.isContextual(87)}applyImportPhase(t,i,r,a){super.applyImportPhase(t,i,r,a),i?t.exportKind=r==="type"?"type":"value":t.importKind=r==="type"||r==="typeof"?r:"value"}parseImport(t){if(this.match(134))return t.importKind="value",super.parseImport(t);let i;if(fe(this.state.type)&&this.lookaheadCharCode()===61)return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){let r=this.parseMaybeImportPhase(t,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(t,r);i=super.parseImportSpecifiersAndAfter(t,r)}else i=super.parseImport(t);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(G.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(t,i){if(this.match(83)){let r=t;this.next();let a=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?a=this.parseMaybeImportPhase(r,!1):r.importKind="value",this.tsParseImportEqualsDeclaration(r,a,!0)}else if(this.eat(29)){let r=t;return r.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExportAssignment")}else if(this.eatContextual(93)){let r=t;return this.expectContextual(128),r.id=this.parseIdentifier(),this.semicolon(),this.finishNode(r,"TSNamespaceExportDeclaration")}else return super.parseExport(t,i)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,i,r=!1){let{isAmbientContext:a}=this.state,n=super.parseVarStatement(t,i,r||a);if(!a)return n;for(let{id:o,init:u}of n.declarations)u&&(i!=="const"||o.typeAnnotation?this.raise(G.InitializerNotAllowedInAmbientContext,u):GL(u,this.hasPlugin("estree"))||this.raise(G.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,u));return n}parseStatementContent(t,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let r=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(r,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseStatementContent(t,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,i){return i.some(r=>C1(r)?t.accessibility===r:!!t[r])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(t,i,r){let a=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:a,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:G.InvalidModifierOnTypeParameterPositions},i);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,a)&&this.raise(G.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,i)):this.parseClassMemberWithIsStatic(t,i,r,!!i.static)};i.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(t,i,r,a){let n=this.tsTryParseIndexSignature(i);if(n){t.body.push(n),i.abstract&&this.raise(G.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(G.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(G.IndexSignatureHasDeclare,i),i.override&&this.raise(G.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(G.NonAbstractClassHasAbstractMethod,i),i.override&&(r.hadSuperClass||this.raise(G.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(t,i,r,a)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(G.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(G.ClassMethodHasDeclare,t)}parseExpressionStatement(t,i,r){return(i.type==="Identifier"?this.tsParseExpressionStatement(t,i,r):void 0)||super.parseExpressionStatement(t,i,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(t,i,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let a=this.lookaheadCharCode();if(a===44||a===61||a===58||a===41)return this.setOptionalParametersError(r),t}return super.parseConditional(t,i,r)}parseParenItem(t,i){let r=super.parseParenItem(t,i);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){let a=this.startNodeAt(i);return a.expression=t,a.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(a,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let i=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(G.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=fe(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return n?((n.type==="TSInterfaceDeclaration"||n.type==="TSTypeAliasDeclaration"||r)&&(t.exportKind="type"),r&&n.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(n,i),n.declare=!0),n):null}parseClassId(t,i,r,a){if((!i||r)&&this.isContextual(113))return;super.parseClassId(t,i,r,t.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(t.typeParameters=n)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(t.typeAnnotation=i)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(29)&&this.raise(G.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){let{key:i}=t;this.raise(G.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!t.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(G.PrivateElementHasAbstract,t),t.accessibility&&this.raise(G.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(G.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,i,r,a,n,o){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);u&&n&&this.raise(G.ConstructorHasTypeParameters,u);let{declare:c=!1,kind:l}=i;c&&(l==="get"||l==="set")&&this.raise(G.DeclareAccessor,i,{kind:l}),u&&(i.typeParameters=u),super.pushClassMethod(t,i,r,a,n,o)}pushClassPrivateMethod(t,i,r,a){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(i.typeParameters=n),super.pushClassPrivateMethod(t,i,r,a)}declareClassPrivateMethodInScope(t,i){t.type!=="TSDeclareMethod"&&(t.type==="MethodDefinition"&&!hasOwnProperty.call(t.value,"body")||super.declareClassPrivateMethodInScope(t,i))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,i,r,a,n,o,u){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);return c&&(t.typeParameters=c),super.parseObjPropValue(t,i,r,a,n,o,u)}parseFunctionParams(t,i){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(t.typeParameters=r),super.parseFunctionParams(t,i)}parseVarId(t,i){super.parseVarId(t,i),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,i){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,i)}parseMaybeAssign(t,i){var r,a,n,o,u;let c,l,p;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(c=this.state.clone(),l=this.tryParse(()=>super.parseMaybeAssign(t,i),c),!l.error)return l.node;let{context:f}=this.state,g=f[f.length-1];(g===de.j_oTag||g===de.j_expr)&&f.pop()}if(!((r=l)!=null&&r.error)&&!this.match(47))return super.parseMaybeAssign(t,i);(!c||c===this.state)&&(c=this.state.clone());let d,m=this.tryParse(f=>{var g,y;d=this.tsParseTypeParameters(this.tsParseConstModifier);let w=super.parseMaybeAssign(t,i);return(w.type!=="ArrowFunctionExpression"||(g=w.extra)!=null&&g.parenthesized)&&f(),((y=d)==null?void 0:y.params.length)!==0&&this.resetStartLocationFromNode(w,d),w.typeParameters=d,w},c);if(!m.error&&!m.aborted)return d&&this.reportReservedArrowTypeParam(d),m.node;if(!l&&(E1(!this.hasPlugin("jsx")),p=this.tryParse(()=>super.parseMaybeAssign(t,i),c),!p.error))return p.node;if((a=l)!=null&&a.node)return this.state=l.failState,l.node;if(m.node)return this.state=m.failState,d&&this.reportReservedArrowTypeParam(d),m.node;if((n=p)!=null&&n.node)return this.state=p.failState,p.node;throw((o=l)==null?void 0:o.error)||m.error||((u=p)==null?void 0:u.error)}reportReservedArrowTypeParam(t){var i;t.params.length===1&&!t.params[0].constraint&&!((i=t.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(G.ReservedArrowTypeParam,t)}parseMaybeUnary(t,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,i)}parseArrow(t){if(this.match(14)){let i=this.tryParse(r=>{let a=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&r(),a});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),t.returnType=i.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(t.typeAnnotation=i),this.resetEndLocation(t),t}isAssignable(t,i){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(t,i)}}toAssignable(t,i=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(G.UnexpectedTypeCastInParameter,t):this.raise(G.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,i);break;case"AssignmentExpression":!i&&t.left.type==="TSTypeCastExpression"&&(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,i)}}toAssignableParenthesizedExpression(t,i){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,i);break;default:super.toAssignable(t,i)}}checkToRestConversion(t,i){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,i)}}isValidLVal(t,i,r){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(r!==64||!i)&&["expression",!0];default:return super.isValidLVal(t,i,r)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,i){if(this.match(47)||this.match(51)){let r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let a=super.parseMaybeDecoratorArguments(t,i);return a.typeParameters=r,a}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,i)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,i){let r=super.parseMaybeDefault(t,i);return r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(G.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(t){if(this.state.inType){if(t===62){this.finishOp(48,1);return}if(t===60){this.finishOp(47,1);return}}super.getTokenFromCode(t)}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableListItem(t,i,r){let a=t[i];a.type==="TSTypeCastExpression"&&(t[i]=this.typeCastToParameter(a)),super.toAssignableListItem(t,i,r)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(t.typeParameters=i)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let i=super.getGetterSetterExpectedParamCount(t),a=this.getObjectOrClassMethodParams(t)[0];return a&&this.isThisParam(a)?i+1:i}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(t.typeAnnotation=i,this.resetEndLocation(t)),t}tsInAmbientContext(t){let{isAmbientContext:i,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=i,this.state.strict=r}}parseClass(t,i,r){let a=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,i,r)}finally{this.state.inAbstractClass=a}}tsParseAbstractDeclaration(t,i){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(t,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(G.NonClassMethodPropertyHasAbstractModifer,t),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(t,i,r,a,n,o,u){let c=super.parseMethod(t,i,r,a,n,o,u);if(c.abstract&&(this.hasPlugin("estree")?c.value:c).body){let{key:d}=c;this.raise(G.AbstractMethodHasImplementation,c,{methodName:d.type==="Identifier"&&!c.computed?d.name:`[${this.input.slice(this.offsetToSourcePos(d.start),this.offsetToSourcePos(d.end))}]`})}return c}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,i,r,a){return!i&&a?(this.parseTypeOnlyImportExportSpecifier(t,!1,r),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,i,r,a))}parseImportSpecifier(t,i,r,a,n){return!i&&a?(this.parseTypeOnlyImportExportSpecifier(t,!0,r),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,i,r,a,r?4098:4096))}parseTypeOnlyImportExportSpecifier(t,i,r){let a=i?"imported":"local",n=i?"local":"exported",o=t[a],u,c=!1,l=!0,p=o.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let f=this.parseIdentifier();At(this.state.type)?(c=!0,o=m,u=i?this.parseIdentifier():this.parseModuleExportName(),l=!1):(u=f,l=!1)}else At(this.state.type)?(l=!1,u=i?this.parseIdentifier():this.parseModuleExportName()):(c=!0,o=m)}else At(this.state.type)&&(c=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());c&&r&&this.raise(i?G.TypeModifierIsUsedInTypeImports:G.TypeModifierIsUsedInTypeExports,p),t[a]=o,t[n]=u;let d=i?"importKind":"exportKind";t[d]=c?"type":"value",l&&this.eatContextual(93)&&(t[n]=i?this.parseIdentifier():this.parseModuleExportName()),t[n]||(t[n]=ls(t[a])),i&&this.checkIdentifier(t[n],c?4098:4096)}};function WL(s){if(s.type!=="MemberExpression")return!1;let{computed:e,property:t}=s;return e&&t.type!=="StringLiteral"&&(t.type!=="TemplateLiteral"||t.expressions.length>0)?!1:H1(s.object)}function GL(s,e){var t;let{type:i}=s;if((t=s.extra)!=null&&t.parenthesized)return!1;if(e){if(i==="Literal"){let{value:r}=s;if(typeof r=="string"||typeof r=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(U1(s,e)||KL(s,e)||i==="TemplateLiteral"&&s.expressions.length===0||WL(s))}function U1(s,e){return e?s.type==="Literal"&&(typeof s.value=="number"||"bigint"in s):s.type==="NumericLiteral"||s.type==="BigIntLiteral"}function KL(s,e){if(s.type==="UnaryExpression"){let{operator:t,argument:i}=s;if(t==="-"&&U1(i,e))return!0}return!1}function H1(s){return s.type==="Identifier"?!0:s.type!=="MemberExpression"||s.computed?!1:H1(s.object)}var T1=cs`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),JL=s=>class extends s{parsePlaceholder(t){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,t)}}finishPlaceholder(t,i){let r=t;return(!r.expectedNode||!r.type)&&(r=this.finishNode(r,"Placeholder")),r.expectedNode=i,r}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,i,r,a){t!==void 0&&super.checkReservedWord(t,i,r,a)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,i,r){return t==="Placeholder"||super.isValidLVal(t,i,r)}toAssignable(t,i){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,i)}chStartsBindingIdentifier(t,i){return!!(super.chStartsBindingIdentifier(t,i)||this.lookahead().type===133)}verifyBreakContinue(t,i){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,i)}parseExpressionStatement(t,i){var r;if(i.type!=="Placeholder"||(r=i.extra)!=null&&r.parenthesized)return super.parseExpressionStatement(t,i);if(this.match(14)){let n=t;return n.label=this.finishPlaceholder(i,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();let a=t;return a.name=i.name,this.finishPlaceholder(a,"Statement")}parseBlock(t,i,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,i,r)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,i,r){let a=i?"ClassDeclaration":"ClassExpression";this.next();let n=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))t.id=o;else{if(r||!i)return t.id=null,t.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(t,a);throw this.raise(T1.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,i,r);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,n),this.finishNode(t,a)}parseExport(t,i){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(t,i);let a=t;if(!this.isContextual(98)&&!this.match(12))return a.specifiers=[],a.source=null,a.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(a,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=r,a.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(a,i)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(_s(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,i){var r;return(r=t.specifiers)!=null&&r.length?!0:super.maybeParseExportDefaultSpecifier(t,i)}checkExport(t){let{specifiers:i}=t;i!=null&&i.length&&(t.specifiers=i.filter(r=>r.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=i}parseImport(t){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let r=this.startNodeAtNode(i);return r.local=i,t.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(T1.UnexpectedSpace,this.state.lastTokEndLoc)}},XL=s=>class extends s{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,i=this.startNode();if(this.next(),fe(this.state.type)){let r=this.parseIdentifierName(),a=this.createIdentifier(i,r);if(a.type="V8IntrinsicIdentifier",this.match(10))return a}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},S1=["minimal","fsharp","hack","smart"],A1=["^^","@@","^","%","#"];function YL(s){if(s.has("decorators")){if(s.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=s.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=s.get("decorators").allowCallParenthesized;if(i!=null&&typeof i!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(s.has("flow")&&s.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(s.has("placeholders")&&s.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(s.has("pipelineOperator")){var e;let t=s.get("pipelineOperator").proposal;if(!S1.includes(t)){let r=S1.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}let i=((e=s.get("recordAndTuple"))==null?void 0:e.syntaxType)==="hash";if(t==="hack"){if(s.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(s.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=s.get("pipelineOperator").topicToken;if(!A1.includes(r)){let a=A1.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${a}.`)}if(r==="#"&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",s.get("recordAndTuple")])}\`.`)}else if(t==="smart"&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",s.get("recordAndTuple")])}\`.`)}if(s.has("moduleAttributes")){if(s.has("deprecatedImportAssert")||s.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(s.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(s.has("importAssertions")&&s.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!s.has("deprecatedImportAssert")&&s.has("importAttributes")&&s.get("importAttributes").deprecatedAssertSyntax&&s.set("deprecatedImportAssert",{}),s.has("recordAndTuple")){let t=s.get("recordAndTuple").syntaxType;if(t!=null){let i=["hash","bar"];if(!i.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+i.map(r=>`'${r}'`).join(", "))}}if(s.has("asyncDoExpressions")&&!s.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(s.has("optionalChainingAssign")&&s.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var $1={estree:ZO,jsx:qL,flow:ML,typescript:VL,v8intrinsic:XL,placeholders:JL},QL=Object.keys($1),xh=class extends yh{checkProto(e,t,i,r){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return i;let a=e.key;return(a.type==="Identifier"?a.name:a.value)==="__proto__"?t?(this.raise(D.RecordNoProto,a),!0):(i&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=a.loc.start):this.raise(D.DuplicateProto,a)),!0):i}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[i];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let i=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let u=this.parseYield(i);return t&&(u=t.call(this,u,i)),u}let a;e?a=!1:(e=new Yi,a=!0);let{type:n}=this.state;(n===10||fe(n))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,i)),rL(this.state.type)){let u=this.startNodeAt(i),c=this.state.value;if(u.operator=c,this.match(29)){this.toAssignable(o,!0),u.left=o;let l=i.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=l&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=l&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=l&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else u.left=o;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(u,"AssignmentExpression")),u}else a&&this.checkExpressionErrors(e,!0);if(r){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?ba(u):ba(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(D.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,i)?r:this.parseConditional(r,t,e)}parseConditional(e,t,i){if(this.eat(17)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,i)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,i){if(this.isPrivateName(e)){let a=this.getPrivateNameSV(e);(i>=Co(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(D.PrivateInExpectedIn,e,{identifierName:a}),this.classScope.usePrivateName(a,e.loc.start)}let r=this.state.type;if(nL(r)&&(this.prodParam.hasIn||!this.match(58))){let a=Co(r);if(a>i){if(r===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let n=this.startNodeAt(t);n.left=e,n.operator=this.state.value;let o=r===41||r===42,u=r===40;if(u&&(a=Co(42)),this.next(),r===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(D.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);n.right=this.parseExprOpRightExpr(r,a);let c=this.finishNode(n,o||u?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(u&&(l===41||l===42)||o&&l===40)throw this.raise(D.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,i)}}return e}parseExprOpRightExpr(e,t){let i=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(D.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),i)});default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,pL(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,i=this.parseMaybeAssign();return WO.has(i.type)&&!((e=i.extra)!=null&&e.parenthesized)&&this.raise(D.PipeUnparenthesizedBody,t,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(D.PipeTopicUnused,t),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(D.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let i=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();let u=this.parseAwait(i);return t||this.checkExponentialAfterUnary(u),u}let a=this.match(34),n=this.startNode();if(uL(this.state.type)){n.operator=this.state.value,n.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&u){let c=n.argument;c.type==="Identifier"?this.raise(D.StrictDelete,n):this.hasPropertyAsPrivateName(c)&&this.raise(D.DeletePrivateField,n)}if(!a)return t||this.checkExponentialAfterUnary(n),this.finishNode(n,"UnaryExpression")}let o=this.parseUpdate(n,a,e);if(r){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?ba(u):ba(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(D.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(e,t,i){if(t){let n=e;return this.checkLVal(n.argument,this.finishNode(n,"UpdateExpression")),e}let r=this.state.startLoc,a=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return a;for(;oL(this.state.type)&&!this.canInsertSemicolon();){let n=this.startNodeAt(r);n.operator=this.state.value,n.prefix=!1,n.argument=a,this.next(),this.checkLVal(a,a=this.finishNode(n,"UpdateExpression"))}return a}parseExprSubscripts(e){let t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,i)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,i){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,i,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,i,r){let{type:a}=this.state;if(!i&&a===15)return this.parseBind(e,t,i,r);if(Ao(a))return this.parseTaggedTemplateExpression(e,t,r);let n=!1;if(a===18){if(i&&(this.raise(D.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,n);{let o=this.eat(0);return o||n||this.eat(16)?this.parseMember(e,t,r,o,n):(r.stop=!0,e)}}parseMember(e,t,i,r,a){let n=this.startNodeAt(t);return n.object=e,n.computed=r,r?(n.property=this.parseExpression(),this.expect(3)):this.match(139)?(e.type==="Super"&&this.raise(D.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),i.optionalChainMember?(n.optional=a,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(e,t,i,r){let a=this.startNodeAt(t);return a.object=e,this.next(),a.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(a,"BindExpression"),t,i)}parseCoverCallAndAsyncArrowHead(e,t,i,r){let a=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:u,optionalChainMember:c}=i;u&&(this.expressionScope.enter(FL()),n=new Yi),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,e.type!=="Super",o,n);let l=this.finishCallExpression(o,c);return u&&this.shouldParseAsyncArrow()&&!r?(i.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(u&&(this.checkExpressionErrors(n,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=a,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,i){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(D.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import")if(e.arguments.length===0||e.arguments.length>2)this.raise(D.ImportCallArity,e);else for(let i of e.arguments)i.type==="SpreadElement"&&this.raise(D.ImportCallSpreadArgument,i);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,i,r){let a=[],n=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(n)n=!1;else if(this.expect(12),this.match(e)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}a.push(this.parseExprListItem(!1,r,t))}return this.state.inFSharpPipelineDirectBody=o,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var i;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,(i=t.extra)==null?void 0:i.trailingCommaLoc),t.innerComments&&Ea(e,t.innerComments),t.callee.trailingComments&&Ea(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,i=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.optionFlags&512?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(D.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let a=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(a)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let a=t.callee=this.parseNoCallExpr();if(a.type==="MemberExpression")return this.finishNode(t,"BindExpression");throw this.raise(D.UnsupportedBind,a)}case 139:return this.raise(D.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let a=this.getPluginOption("pipelineOperator","proposal");if(a)return this.parseTopicReference(a);this.unexpected();break}case 47:{let a=this.input.codePointAt(this.nextTokenStart());us(a)||a===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(r===137)return this.parseDecimalLiteral(this.state.value);if(fe(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let a=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,o=this.parseIdentifier();if(!n&&o.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(fe(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(u===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return a&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=et(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(e){let t=this.startNode(),i=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,i,e,r)}finishTopicReference(e,t,i,r){if(this.testTopicReferenceConfiguration(i,t,r))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(D.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(D.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(D.PipeTopicUnconfiguredToken,t,{token:_s(r)})}testTopicReferenceConfiguration(e,t,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:_s(i)}]);case"smart":return i===27;default:throw this.raise(D.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(To(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(D.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let i=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=i,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(D.SuperNotAllowed,e):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(D.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(D.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(et(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(t,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,i){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||r)&&this.raise(D.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(D.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let i=this.isContextual(105);if(this.expectPlugin(i?"sourcePhaseImports":"deferredImportEvaluation"),!(this.optionFlags&512))throw this.raise(D.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=i?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}parseLiteral(e,t){let i=this.startNode();return this.parseLiteralAtNode(e,t,i)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,i;this.next(),this.expressionScope.enter(PL());let r=this.state.maybeInArrowParameters,a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,o=[],u=new Yi,c=!0,l,p;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let f=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),f)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(u,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=a;let m=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,o,!1),m):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),l&&this.unexpected(l),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(n),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,d)):i=o[0],this.wrapParenthesis(t,i))}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let i=this.startNodeAt(e);return i.expression=t,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let i=this.parseMetaProperty(e,t,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4)&&this.raise(D.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),i=this.parseNoCallExpr();e.callee=i,t&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(D.ImportCallNotNewExpression,i)}parseTemplateElement(e){let{start:t,startLoc:i,end:r,value:a}=this.state,n=t+1,o=this.startNodeAt(et(i,1));a===null&&(e||this.raise(D.InvalidEscapeSequenceTemplate,et(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),c=u?-1:-2,l=r+c;o.value={raw:this.input.slice(n,l).replace(/\r\n?/g,`
`),cooked:a===null?null:a.slice(1,c)},o.tail=u,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,et(this.state.lastTokEndLoc,c)),p}parseTemplate(e){let t=this.startNode(),i=this.parseTemplateElement(e),r=[i],a=[];for(;!i.tail;)a.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(i=this.parseTemplateElement(e));return t.expressions=a,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,i,r){i&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=!1,o=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(u);break}let l;t?l=this.parseBindingProperty():(l=this.parsePropertyDefinition(r),n=this.checkProto(l,i,n,r)),i&&!this.isObjectProperty(l)&&l.type!=="SpreadElement"&&this.raise(D.InvalidRecordProperty,l),l.shorthand&&this.addExtra(l,"shorthand",!0),u.properties.push(l)}this.next(),this.state.inFSharpPipelineDirectBody=a;let c="ObjectExpression";return t?c="ObjectPattern":i&&(c="RecordExpression"),this.finishNode(u,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(D.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let i=this.startNode(),r=!1,a=!1,n;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(i.decorators=t,t=[]),i.method=!1,e&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let u=this.state.containsEsc;if(this.parsePropertyName(i,e),!o&&!u&&this.maybeAsyncOrAccessorProp(i)){let{key:c}=i,l=c.name;l==="async"&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(c),o=this.eat(55),this.parsePropertyName(i)),(l==="get"||l==="set")&&(a=!0,this.resetPreviousNodeTrailingComments(c),i.kind=l,this.match(55)&&(o=!0,this.raise(D.AccessorIsGenerator,this.state.curPosition(),{kind:l}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,n,o,r,!1,a,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let i=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==i&&this.raise(e.kind==="get"?D.BadGetterArity:D.BadSetterArity,e),e.kind==="set"&&((t=r[r.length-1])==null?void 0:t.type)==="RestElement"&&this.raise(D.BadSetterRestParameter,e)}parseObjectMethod(e,t,i,r,a){if(a){let n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(i||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,i,r){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(t,ls(e.key));else if(this.match(29)){let a=this.state.startLoc;r!=null?r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=a):this.raise(D.InvalidCoverInitializedName,a),e.value=this.parseMaybeDefault(t,ls(e.key))}else e.value=ls(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,i,r,a,n,o){let u=this.parseObjectMethod(e,i,r,a,n)||this.parseObjectProperty(e,t,a,o);return u||this.unexpected(),u}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:r}=this.state,a;if(At(i))a=this.parseIdentifier(!0);else switch(i){case 135:a=this.parseNumericLiteral(r);break;case 134:a=this.parseStringLiteral(r);break;case 136:a=this.parseBigIntLiteral(r);break;case 139:{let n=this.state.startLoc;t!=null?t.privateKeyLoc===null&&(t.privateKeyLoc=n):this.raise(D.UnexpectedPrivateField,n),a=this.parsePrivateName();break}default:if(i===137){a=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=a,i!==139&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,i,r,a,n,o=!1){this.initFunction(e,i),e.generator=t,this.scope.enter(18|(o?64:0)|(a?32:0)),this.prodParam.enter(To(i,e.generator)),this.parseFunctionParams(e,r);let u=this.parseFunctionBodyAndFinish(e,n,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(e,t,i,r){i&&this.expectPlugin("recordAndTuple");let a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!i,r,n),this.state.inFSharpPipelineDirectBody=a,this.finishNode(n,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,i,r){this.scope.enter(6);let a=To(i,!1);!this.match(5)&&this.prodParam.hasIn&&(a|=8),this.prodParam.enter(a),this.initFunction(e,i);let n=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,i){this.toAssignableList(t,i,!1),e.params=t}parseFunctionBodyAndFinish(e,t,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,t)}parseFunctionBody(e,t,i=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(R1()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let a=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,o=>{let u=!this.isSimpleParamList(e.params);o&&u&&this.raise(D.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&e.key?e.key.loc.end:e);let c=!a&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!i&&!u,t,c),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,c)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,i=e.length;t<i;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,i,r=!0){let a=!t&&new Set,n={type:"FormalParameters"};for(let o of e.params)this.checkLVal(o,n,5,a,r)}parseExprList(e,t,i,r){let a=[],n=!0;for(;!this.eat(e);){if(n)n=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}a.push(this.parseExprListItem(t,i))}return a}parseExprListItem(e,t,i){let r;if(this.match(12))e||this.raise(D.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){let a=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(D.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),r=this.finishNode(a,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){let t=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(t,i)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}parseIdentifierName(e){let t,{startLoc:i,type:r}=this.state;At(r)?t=this.state.value:this.unexpected();let a=sL(r);return e?a&&this.replaceToken(132):this.checkReservedWord(t,i,a,!1),this.next(),t}checkReservedWord(e,t,i,r){if(e.length>10||!DL(e))return;if(i&&xL(e)){this.raise(D.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?O1:N1:_1)(e,this.inModule)){this.raise(D.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(D.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(D.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(D.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(D.ArgumentsInClass,t);return}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(D.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(D.ObsoleteAwaitStar,t),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Ao(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(D.YieldInParameter,t);let i=!1,r=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:r=this.parseMaybeAssign()}return t.delegate=i,t.argument=r,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12)&&!this.match(11)&&(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(D.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&e.type==="SequenceExpression"&&this.raise(D.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let i=this.startNodeAt(t);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(D.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(D.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=i,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}},Zp={kind:1},ZL={kind:2},ez=/[\uD800-\uDFFF]/u,eh=/in(?:stanceof)?/y;function tz(s,e,t){for(let i=0;i<s.length;i++){let r=s[i],{type:a}=r;if(typeof a=="number"){{if(a===139){let{loc:n,start:o,value:u,end:c}=r,l=o+1,p=et(n.start,1);s.splice(i,1,new Vt({type:ns(27),value:"#",start:o,end:l,startLoc:n.start,endLoc:p}),new Vt({type:ns(132),value:u,start:l,end:c,startLoc:p,endLoc:n.end})),i++;continue}if(Ao(a)){let{loc:n,start:o,value:u,end:c}=r,l=o+1,p=et(n.start,1),d;e.charCodeAt(o-t)===96?d=new Vt({type:ns(22),value:"`",start:o,end:l,startLoc:n.start,endLoc:p}):d=new Vt({type:ns(8),value:"}",start:o,end:l,startLoc:n.start,endLoc:p});let m,f,g,y;a===24?(f=c-1,g=et(n.end,-1),m=u===null?null:u.slice(1,-1),y=new Vt({type:ns(22),value:"`",start:f,end:c,startLoc:g,endLoc:n.end})):(f=c-2,g=et(n.end,-2),m=u===null?null:u.slice(1,-2),y=new Vt({type:ns(23),value:"${",start:f,end:c,startLoc:g,endLoc:n.end})),s.splice(i,1,d,new Vt({type:ns(20),value:m,start:l,end:f,startLoc:p,endLoc:g}),y),i+=2;continue}}r.type=ns(a)}}return s}var bh=class extends xh{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.optionFlags&256&&(e.tokens=tz(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t=140,i=this.options.sourceType){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[a,n]of Array.from(this.scope.undefinedExports))this.raise(D.ModuleExportUndefined,n,{localName:a});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let r;return t===140?r=this.finishNode(e,"Program"):r=this.finishNodeAt(e,"Program",et(this.state.startLoc,-1)),r}stmtToDirective(e){let t=e;t.type="Directive",t.value=t.expression,delete t.expression;let i=t.value,r=i.value,a=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),n=i.value=a.slice(1,-1);return this.addExtra(i,"raw",a),this.addExtra(i,"rawValue",n),this.addExtra(i,"expressionValue",r),i.type="DirectiveLiteral",t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,t){if(us(e)){if(eh.lastIndex=t,eh.test(this.input)){let i=this.codePointAtPos(eh.lastIndex);if(!Ji(i)&&i!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t)return!1;if(fe(e)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let i=this.state.type,r=this.startNode(),a=!!(e&2),n=!!(e&4),o=e&1;switch(i){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return n||this.raise(this.state.strict?D.StrictFunction:this.options.annexB?D.SloppyFunctionAnnexB:D.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!a&&n);case 80:return a||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?a||this.raise(D.UnexpectedLexicalDeclaration,r):this.raise(D.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(D.UnexpectedUsingDeclaration,this.state.startLoc):a||this.raise(D.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;let l=this.nextTokenStart(),p=this.codePointAtPos(l);if(p!==91&&(!a&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,l)&&p!==123))break}case 75:a||this.raise(D.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let l=this.state.value;return this.parseVarStatement(r,l)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let l=this.lookaheadCharCode();if(l===40||l===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(D.UnexpectedImportExport,this.state.startLoc),this.next();let l;return i===83?l=this.parseImport(r):l=this.parseExport(r,t),this.assertModuleNodeAllowed(l),l}default:if(this.isAsyncFunction())return a||this.raise(D.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!a&&n)}let u=this.state.value,c=this.parseExpression();return fe(i)&&c.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(r,u,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!(this.optionFlags&8)&&!this.inModule&&this.raise(D.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,i){if(e){var r;(r=t.decorators)!=null&&r.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(D.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),i&&this.resetStartLocationFromNode(i,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(D.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(D.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,i;if(this.match(10)){let r=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(r,i);let a=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i,r),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==i&&this.raise(D.DecoratorArgumentsOutsideParentheses,a)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let r=this.startNodeAt(t);r.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),r.property=this.parsePrivateName()):r.property=this.parseIdentifier(!0),r.computed=!1,i=this.finishNode(r,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let i;for(i=0;i<this.state.labels.length;++i){let r=this.state.labels[i];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(i===this.state.labels.length){let r=t?"BreakStatement":"ContinueStatement";this.raise(D.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Zp),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Zp);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let i=this.isContextual(100);{let u=this.isContextual(96)&&this.startsAwaitUsing(),c=u||this.isContextual(107)&&this.startsUsingForOf(),l=i&&this.hasFollowingBindingAtom()||c;if(this.match(74)||this.match(75)||l){let p=this.startNode(),d;u?(d="await using",this.recordAwaitIfAllowed()||this.raise(D.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):d=this.state.value,this.next(),this.parseVar(p,!0,d);let m=this.finishNode(p,"VariableDeclaration"),f=this.match(58);return f&&c&&this.raise(D.ForInUsing,m),(f||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(e,m,t):(t!==null&&this.unexpected(t),this.parseFor(e,m))}}let r=this.isContextual(95),a=new Yi,n=this.parseExpression(!0,a),o=this.isContextual(102);if(o&&(i&&this.raise(D.ForOfLet,n),t===null&&r&&n.type==="Identifier"&&this.raise(D.ForOfAsync,n)),o||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(n,!0);let u=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:u}),this.parseForIn(e,n,t)}else this.checkExpressionErrors(a,!0);return t!==null&&this.unexpected(t),this.parseFor(e,n)}parseFunctionStatement(e,t,i){return this.next(),this.parseFunction(e,1|(i?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return!this.prodParam.hasReturn&&!(this.optionFlags&2)&&this.raise(D.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(ZL),this.scope.enter(0);let i;for(let r;!this.match(8);)if(this.match(61)||this.match(65)){let a=this.match(61);i&&this.finishNode(i,"SwitchCase"),t.push(i=this.startNode()),i.consequent=[],this.next(),a?i.test=this.parseExpression():(r&&this.raise(D.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),r=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(D.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(D.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,i=!1){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Zp),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(D.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,i,r){for(let n of this.state.labels)n.name===t&&this.raise(D.LabelRedeclaration,i,{labelName:t});let a=aL(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let o=this.state.labels[n];if(o.statementStart===e.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=a;else break}return this.state.labels.push({name:t,kind:a,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,i){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,i){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,i),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,i,r,a){let n=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?o:void 0,i,r,a)}parseBlockOrModuleBlockBody(e,t,i,r,a){let n=this.state.strict,o=!1,u=!1;for(;!this.match(r);){let c=i?this.parseModuleItem():this.parseStatementListItem();if(t&&!u){if(this.isValidDirective(c)){let l=this.stmtToDirective(c);t.push(l),!o&&l.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}e.push(c)}a?.call(this,o),n||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,i){let r=this.match(58);return this.next(),r?i!==null&&this.unexpected(i):e.await=i!==null,t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(D.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),t.type==="AssignmentPattern"&&this.raise(D.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,i,r=!1){let a=e.declarations=[];for(e.kind=i;;){let n=this.startNode();if(this.parseVarId(n,i),n.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,n.init===null&&!r&&(n.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(D.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(D.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),a.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let i=this.parseBindingAtom();(t==="using"||t==="await using")&&(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(D.UsingDeclarationHasBindingPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let i=t&2,r=!!(t&1),a=r&&!(t&4),n=!!(t&8);this.initFunction(e,n),this.match(55)&&(i&&this.raise(D.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(a));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(To(n,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||fe(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(jL()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,i){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:e},r=[],a=this.startNode();if(a.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(D.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let n=this.startNode();r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0]),r=[]),this.parseClassMember(a,n,i),n.kind==="constructor"&&n.decorators&&n.decorators.length>0&&this.raise(D.DecoratorConstructor,n)}}),this.state.strict=t,this.next(),r.length)throw this.raise(D.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(a,"ClassBody")}parseClassMemberFromModifier(e,t){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind="method",r.computed=!1,r.key=i,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=i,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,t,i){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,i,r)}parseClassMemberWithIsStatic(e,t,i,r){let a=t,n=t,o=t,u=t,c=t,l=a,p=a;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind="method";let w=this.match(139);if(this.parseClassElementName(l),w){this.pushClassPrivateMethod(e,n,!0,!1);return}this.isNonstaticConstructor(a)&&this.raise(D.ConstructorIsGenerator,a.key),this.pushClassMethod(e,a,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&fe(this.state.type),m=this.parseClassElementName(t),f=d?m.name:null,g=this.isPrivateName(m),y=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(l.kind="method",g){this.pushClassPrivateMethod(e,n,!1,!1);return}let w=this.isNonstaticConstructor(a),T=!1;w&&(a.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(D.DuplicateConstructor,m),w&&this.hasPlugin("typescript")&&t.override&&this.raise(D.OverrideOnConstructor,m),i.hadConstructor=!0,T=i.hadSuperClass),this.pushClassMethod(e,a,!1,!1,w,T)}else if(this.isClassProperty())g?this.pushClassPrivateProperty(e,u):this.pushClassProperty(e,o);else if(f==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let w=this.eat(55);p.optional&&this.unexpected(y),l.kind="method";let T=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(p),T?this.pushClassPrivateMethod(e,n,w,!0):(this.isNonstaticConstructor(a)&&this.raise(D.ConstructorIsAsync,a.key),this.pushClassMethod(e,a,w,!0,!1,!1))}else if((f==="get"||f==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),l.kind=f;let w=this.match(139);this.parseClassElementName(a),w?this.pushClassPrivateMethod(e,n,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(D.ConstructorIsAccessor,a.key),this.pushClassMethod(e,a,!1,!1,!1,!1)),this.checkGetterSetterParams(a)}else if(f==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let w=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,w)}else this.isLineTerminator()?g?this.pushClassPrivateProperty(e,u):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:i}=this.state;if((t===132||t===134)&&e.static&&i==="prototype"&&this.raise(D.StaticPrototype,this.state.startLoc),t===139){i==="constructor"&&this.raise(D.ConstructorClassPrivateField,this.state.startLoc);let r=this.parsePrivateName();return e.key=r,r}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var i;this.scope.enter(208);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let a=t.body=[];this.parseBlockOrModuleBlockBody(a,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),(i=t.decorators)!=null&&i.length&&this.raise(D.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(D.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let i=this.parseClassPrivateProperty(t);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,t,i){!i&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(D.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,i,r,a,n){e.body.push(this.parseMethod(t,i,r,a,n,"ClassMethod",!0))}pushClassPrivateMethod(e,t,i,r){let a=this.parseMethod(t,i,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(a);let n=a.kind==="get"?a.static?6:2:a.kind==="set"?a.static?5:1:0;this.declareClassPrivateMethodInScope(a,n)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(R1()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,i,r=8331){if(fe(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(i||!t)e.id=null;else throw this.raise(D.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let i=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,i),a=!r||this.eat(12),n=a&&this.eatExportStar(e),o=n&&this.maybeParseExportNamespaceSpecifier(e),u=a&&(!o||this.eat(12)),c=r||n;if(n&&!o){if(r&&this.unexpected(),t)throw this.raise(D.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let l=this.maybeParseExportNamedSpecifiers(e);r&&a&&!n&&!l&&this.unexpected(null,5),o&&u&&this.unexpected(null,98);let p;if(c||l){if(p=!1,t)throw this.raise(D.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else p=this.maybeParseExportDeclaration(e);if(c||l||p){var d;let m=e;if(this.checkExport(m,!0,!1,!!m.source),((d=m.declaration)==null?void 0:d.type)==="ClassDeclaration")this.maybeTakeDecorators(t,m.declaration,m);else if(t)throw this.raise(D.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(m,"ExportNamedDeclaration")}if(this.eat(65)){let m=e,f=this.parseExportDefaultExpression();if(m.declaration=f,f.type==="ClassDeclaration")this.maybeTakeDecorators(t,f,m);else if(t)throw this.raise(D.UnsupportedDecoratorExport,e);return this.checkExport(m,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(m,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.loc.start);let i=t||this.parseIdentifier(!0),r=this.startNodeAtNode(i);return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,i;(i=(t=e).specifiers)!=null||(t.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||(t.specifiers=[]);let i=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(i)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(D.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(D.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(fe(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let{type:r}=this.lookahead();if(fe(r)&&r!==98||r===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),i=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||fe(this.state.type)&&i)return!0;if(this.match(65)&&i){let r=this.input.charCodeAt(this.nextTokenStartSince(t+4));return r===34||r===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(D.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(D.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(D.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,i,r){if(t){var a;if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;let o=e.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((n=o.extra)!=null&&n.parenthesized)&&this.raise(D.ExportDefaultFromAsIdentifier,o)}}else if((a=e.specifiers)!=null&&a.length)for(let o of e.specifiers){let{exported:u}=o,c=u.type==="Identifier"?u.name:u.value;if(this.checkDuplicateExports(o,c),!r&&o.local){let{local:l}=o;l.type!=="Identifier"?this.raise(D.ExportBindingIsString,o,{localName:l.value,exportName:c}):(this.checkReservedWord(l.name,l.loc.start,!0,!1),this.scope.checkLocalExport(l))}}else if(e.declaration){let o=e.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:u}=o;if(!u)throw new Error("Assertion failure");this.checkDuplicateExports(e,u.name)}else if(o.type==="VariableDeclaration")for(let u of o.declarations)this.checkDeclaration(u.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern")for(let t of e.elements)t&&this.checkDeclaration(t);else e.type==="ObjectProperty"?this.checkDeclaration(e.value):e.type==="RestElement"?this.checkDeclaration(e.argument):e.type==="AssignmentPattern"&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t==="default"?this.raise(D.DuplicateDefaultExport,e):this.raise(D.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),a=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(n,a,e,r))}return t}parseExportSpecifier(e,t,i,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=_L(e.local):e.exported||(e.exported=ls(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=ez.exec(e.value);return t&&this.raise(D.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions!=null?e.assertions.some(({key:t,value:i})=>i.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type")):!1}checkImportReflection(e){let{specifiers:t}=e,i=t.length===1?t[0].type:null;if(e.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(D.SourcePhaseImportRequiresDefault,t[0].loc.start);else if(e.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(D.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;i!=="ImportDefaultSpecifier"&&this.raise(D.ImportReflectionNotBinding,t[0].loc.start),((r=e.assertions)==null?void 0:r.length)>0&&this.raise(D.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let i=t.find(r=>{let a;if(r.type==="ExportSpecifier"?a=r.local:r.type==="ImportSpecifier"&&(a=r.imported),a!==void 0)return a.type==="Identifier"?a.name!=="default":a.value!=="default"});i!==void 0&&this.raise(D.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,i,r){t||(i==="module"?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let i=this.parseIdentifier(!0),{type:r}=this.state;return(At(r)?r!==98||this.lookaheadCharCode()===102:r!==12)?(this.resetPreviousIdentifierLeadingComments(i),this.applyImportPhase(e,t,i.name,i.loc.start),null):(this.applyImportPhase(e,t,null),i)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return fe(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),a=r&&this.maybeParseStarImportSpecifier(e);return r&&!a&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;return(t=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,i){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}finishImportSpecifier(e,t,i=8201){return this.checkLVal(e.local,{type:t},i),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let i=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(D.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?i.key=this.parseStringLiteral(r):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(D.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(D.ModuleAttributeDifferentFromType,i.key),t.has(i.key.name)&&this.raise(D.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),t.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(D.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(D.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!i&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(At(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(D.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),r=this.match(134),a=this.isContextual(130);i.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(i,r,e.importKind==="type"||e.importKind==="typeof",a,void 0);e.specifiers.push(n)}}parseImportSpecifier(e,t,i,r,a){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(D.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=ls(n))}return this.finishImportSpecifier(e,"ImportSpecifier",a)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}},Po=class extends bh{constructor(e,t,i){e=YO(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=i,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let r=0;e.allowAwaitOutsideFunction&&(r|=1),e.allowReturnOutsideFunction&&(r|=2),e.allowImportExportEverywhere&&(r|=8),e.allowSuperOutsideMethod&&(r|=16),e.allowUndeclaredExports&&(r|=64),e.allowNewTargetOutsideFunction&&(r|=4),e.allowYieldOutsideFunction&&(r|=32),e.ranges&&(r|=128),e.tokens&&(r|=256),e.createImportExpressions&&(r|=512),e.createParenthesizedExpressions&&(r|=1024),e.errorRecovery&&(r|=2048),e.attachComment&&(r|=4096),e.annexB&&(r|=8192),this.optionFlags=r}getScopeHandler(){return va}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function sz(s,e){var t;if(((t=e)==null?void 0:t.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let i=wa(e,s),r=i.parse();if(i.sawUnambiguousESM)return r;if(i.ambiguousScriptDifferentAst)try{return e.sourceType="script",wa(e,s).parse()}catch{}else r.program.sourceType="script";return r}catch(i){try{return e.sourceType="script",wa(e,s).parse()}catch{}throw i}}else return wa(e,s).parse()}function iz(s,e){let t=wa(e,s);return t.options.strictMode&&(t.state.strict=!0),t.getExpression()}function rz(s){let e={};for(let t of Object.keys(s))e[t]=ns(s[t]);return e}var az=rz(tL);function wa(s,e){let t=Po,i=new Map;if(s!=null&&s.plugins){for(let r of s.plugins){let a,n;typeof r=="string"?a=r:[a,n]=r,i.has(a)||i.set(a,n||{})}YL(i),t=nz(i)}return new t(s,e,i)}var j1=new Map;function nz(s){let e=[];for(let r of QL)s.has(r)&&e.push(r);let t=e.join("|"),i=j1.get(t);if(!i){i=Po;for(let r of e)i=$1[r](i);j1.set(t,i)}return i}Ca.parse=sz;Ca.parseExpression=iz;Ca.tokTypes=az});var hC=O((kie,pC)=>{"use strict";h();var cC=M("url"),lC=1800,td=class{constructor(e){this.options=e||{},this.cookies=[]}set(e,t){let i=cC.parse(t||""),r=this.parse(e),a;return r.domain?(a=r.domain.replace(/^\./,""),(i.hostname.length<a.length||("."+i.hostname).substr(-a.length+1)!=="."+a)&&(r.domain=i.hostname)):r.domain=i.hostname,r.path||(r.path=this.getPath(i.pathname)),r.expires||(r.expires=new Date(Date.now()+(Number(this.options.sessionTimeout||lC)||lC)*1e3)),this.add(r)}get(e){return this.list(e).map(t=>t.name+"="+t.value).join("; ")}list(e){let t=[],i,r;for(i=this.cookies.length-1;i>=0;i--){if(r=this.cookies[i],this.isExpired(r)){this.cookies.splice(i,i);continue}this.match(r,e)&&t.unshift(r)}return t}parse(e){let t={};return(e||"").toString().split(";").forEach(i=>{let r=i.split("="),a=r.shift().trim().toLowerCase(),n=r.join("=").trim(),o;if(a)switch(a){case"expires":n=new Date(n),n.toString()!=="Invalid Date"&&(t.expires=n);break;case"path":t.path=n;break;case"domain":o=n.toLowerCase(),o.length&&o.charAt(0)!=="."&&(o="."+o),t.domain=o;break;case"max-age":t.expires=new Date(Date.now()+(Number(n)||0)*1e3);break;case"secure":t.secure=!0;break;case"httponly":t.httponly=!0;break;default:t.name||(t.name=a,t.value=n)}}),t}match(e,t){let i=cC.parse(t||"");return!(i.hostname!==e.domain&&(e.domain.charAt(0)!=="."||("."+i.hostname).substr(-e.domain.length)!==e.domain)||this.getPath(i.pathname).substr(0,e.path.length)!==e.path||e.secure&&i.protocol!=="https:")}add(e){let t,i;if(!e||!e.name)return!1;for(t=0,i=this.cookies.length;t<i;t++)if(this.compare(this.cookies[t],e))return this.isExpired(e)?(this.cookies.splice(t,1),!1):(this.cookies[t]=e,!0);return this.isExpired(e)||this.cookies.push(e),!0}compare(e,t){return e.name===t.name&&e.path===t.path&&e.domain===t.domain&&e.secure===t.secure&&e.httponly===e.httponly}isExpired(e){return e.expires&&e.expires<new Date||!e.value}getPath(e){let t=(e||"/").split("/");return t.pop(),t=t.join("/").trim(),t.charAt(0)!=="/"&&(t="/"+t),t.substr(-1)!=="/"&&(t+="/"),t}};pC.exports=td});var It=O((Eie,EM)=>{EM.exports={name:"nodemailer",version:"6.10.0",description:"Easy as cake e-mail sending from your Node.js applications",main:"lib/nodemailer.js",scripts:{test:"node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js","test:coverage":"c8 node --test --test-concurrency=1 test/**/*.test.js test/**/*-test.js",lint:"eslint .",update:"rm -rf node_modules/ package-lock.json && ncu -u && npm install"},repository:{type:"git",url:"https://github.com/nodemailer/nodemailer.git"},keywords:["Nodemailer"],author:"Andris Reinman",license:"MIT-0",bugs:{url:"https://github.com/nodemailer/nodemailer/issues"},homepage:"https://nodemailer.com/",devDependencies:{"@aws-sdk/client-ses":"3.731.1",bunyan:"1.8.15",c8:"10.1.3",eslint:"8.57.0","eslint-config-nodemailer":"1.2.0","eslint-config-prettier":"9.1.0",libbase64:"1.3.0",libmime:"5.3.6",libqp:"2.1.1","nodemailer-ntlm-auth":"1.0.4",proxy:"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.13.6"},engines:{node:">=6.0.0"}}});var Ha=O((Cie,sd)=>{"use strict";h();var CM=M("http"),TM=M("https"),dC=M("url"),SM=M("zlib"),AM=M("stream").PassThrough,fC=hC(),jM=It(),PM=M("net"),FM=5;sd.exports=function(s,e){return mC(s,e)};sd.exports.Cookies=fC;function mC(s,e){e=e||{},e.fetchRes=e.fetchRes||new AM,e.cookies=e.cookies||new fC,e.redirects=e.redirects||0,e.maxRedirects=isNaN(e.maxRedirects)?FM:e.maxRedirects,e.cookie&&([].concat(e.cookie||[]).forEach(d=>{e.cookies.set(d,s)}),e.cookie=!1);let t=e.fetchRes,i=dC.parse(s),r=(e.method||"").toString().trim().toUpperCase()||"GET",a=!1,n,o,u=i.protocol==="https:"?TM:CM,c={"accept-encoding":"gzip,deflate","user-agent":"nodemailer/"+jM.version};if(Object.keys(e.headers||{}).forEach(d=>{c[d.toLowerCase().trim()]=e.headers[d]}),e.userAgent&&(c["user-agent"]=e.userAgent),i.auth&&(c.Authorization="Basic "+Buffer.from(i.auth).toString("base64")),(n=e.cookies.get(s))&&(c.cookie=n),e.body){if(e.contentType!==!1&&(c["Content-Type"]=e.contentType||"application/x-www-form-urlencoded"),typeof e.body.pipe=="function")c["Transfer-Encoding"]="chunked",o=e.body,o.on("error",d=>{a||(a=!0,d.type="FETCH",d.sourceUrl=s,t.emit("error",d))});else{if(e.body instanceof Buffer)o=e.body;else if(typeof e.body=="object")try{o=Buffer.from(Object.keys(e.body).map(d=>{let m=e.body[d].toString().trim();return encodeURIComponent(d)+"="+encodeURIComponent(m)}).join("&"))}catch(d){if(a)return;a=!0,d.type="FETCH",d.sourceUrl=s,t.emit("error",d);return}else o=Buffer.from(e.body.toString().trim());c["Content-Type"]=e.contentType||"application/x-www-form-urlencoded",c["Content-Length"]=o.length}r=(e.method||"").toString().trim().toUpperCase()||"POST"}let l,p={method:r,host:i.hostname,path:i.path,port:i.port?i.port:i.protocol==="https:"?443:80,headers:c,rejectUnauthorized:!1,agent:!1};e.tls&&Object.keys(e.tls).forEach(d=>{p[d]=e.tls[d]}),i.protocol==="https:"&&i.hostname&&i.hostname!==p.host&&!PM.isIP(i.hostname)&&!p.servername&&(p.servername=i.hostname);try{l=u.request(p)}catch(d){return a=!0,setImmediate(()=>{d.type="FETCH",d.sourceUrl=s,t.emit("error",d)}),t}return e.timeout&&l.setTimeout(e.timeout,()=>{if(a)return;a=!0,l.abort();let d=new Error("Request Timeout");d.type="FETCH",d.sourceUrl=s,t.emit("error",d)}),l.on("error",d=>{a||(a=!0,d.type="FETCH",d.sourceUrl=s,t.emit("error",d))}),l.on("response",d=>{let m;if(!a){switch(d.headers["content-encoding"]){case"gzip":case"deflate":m=SM.createUnzip();break}if(d.headers["set-cookie"]&&[].concat(d.headers["set-cookie"]||[]).forEach(f=>{e.cookies.set(f,s)}),[301,302,303,307,308].includes(d.statusCode)&&d.headers.location){if(e.redirects++,e.redirects>e.maxRedirects){a=!0;let f=new Error("Maximum redirect count exceeded");f.type="FETCH",f.sourceUrl=s,t.emit("error",f),l.abort();return}return e.method="GET",e.body=!1,mC(dC.resolve(s,d.headers.location),e)}if(t.statusCode=d.statusCode,t.headers=d.headers,d.statusCode>=300&&!e.allowErrorResponse){a=!0;let f=new Error("Invalid status code "+d.statusCode);f.type="FETCH",f.sourceUrl=s,t.emit("error",f),l.abort();return}d.on("error",f=>{a||(a=!0,f.type="FETCH",f.sourceUrl=s,t.emit("error",f),l.abort())}),m?(d.pipe(m).pipe(t),m.on("error",f=>{a||(a=!0,f.type="FETCH",f.sourceUrl=s,t.emit("error",f),l.abort())})):d.pipe(t)}}),setImmediate(()=>{if(o)try{if(typeof o.pipe=="function")return o.pipe(l);l.write(o)}catch(d){a=!0,d.type="FETCH",d.sourceUrl=s,t.emit("error",d);return}l.end()}),t}});var rt=O((Sie,He)=>{"use strict";h();var IM=M("url"),_M=M("util"),NM=M("fs"),BM=Ha(),Jt=M("dns"),OM=M("net"),LM=M("os"),id=5*60*1e3,yC;try{yC=LM.networkInterfaces()}catch{}He.exports.networkInterfaces=yC;var xC=(s,e)=>{let t=He.exports.networkInterfaces;return t?Object.keys(t).map(r=>t[r]).reduce((r,a)=>r.concat(a),[]).filter(r=>!r.internal||e).filter(r=>r.family==="IPv"+s||r.family===s).length>0:!0},gC=(s,e,t,i)=>{if(t=t||{},!xC(s,t.allowInternalNetworkInterfaces))return i(null,[]);(Jt.Resolver?new Jt.Resolver(t):Jt)["resolve"+s](e,(n,o)=>{if(n){switch(n.code){case Jt.NODATA:case Jt.NOTFOUND:case Jt.NOTIMP:case Jt.SERVFAIL:case Jt.CONNREFUSED:case Jt.REFUSED:case"EAI_AGAIN":return i(null,[])}return i(n)}return i(null,Array.isArray(o)?o:[].concat(o||[]))})},$a=He.exports.dnsCache=new Map,Kt=(s,e)=>s?Object.assign({servername:s.servername,host:!s.addresses||!s.addresses.length?null:s.addresses.length===1?s.addresses[0]:s.addresses[Math.floor(Math.random()*s.addresses.length)]},e||{}):Object.assign({},e||{});He.exports.resolveHostname=(s,e)=>{if(s=s||{},!s.host&&s.servername&&(s.host=s.servername),!s.host||OM.isIP(s.host)){let i={addresses:[s.host],servername:s.servername||!1};return e(null,Kt(i,{cached:!1}))}let t;if($a.has(s.host)&&(t=$a.get(s.host),!t.expires||t.expires>=Date.now()))return e(null,Kt(t.value,{cached:!0}));gC(4,s.host,s,(i,r)=>{if(i)return t?e(null,Kt(t.value,{cached:!0,error:i})):e(i);if(r&&r.length){let a={addresses:r,servername:s.servername||s.host};return $a.set(s.host,{value:a,expires:Date.now()+(s.dnsTtl||id)}),e(null,Kt(a,{cached:!1}))}gC(6,s.host,s,(a,n)=>{if(a)return t?e(null,Kt(t.value,{cached:!0,error:a})):e(a);if(n&&n.length){let o={addresses:n,servername:s.servername||s.host};return $a.set(s.host,{value:o,expires:Date.now()+(s.dnsTtl||id)}),e(null,Kt(o,{cached:!1}))}try{Jt.lookup(s.host,{all:!0},(o,u)=>{if(o)return t?e(null,Kt(t.value,{cached:!0,error:o})):e(o);let c=u?u.filter(p=>xC(p.family)).map(p=>p.address).shift():!1;if(u&&u.length&&!c&&console.warn(`Failed to resolve IPv${u[0].family} addresses with current network`),!c&&t)return e(null,Kt(t.value,{cached:!0}));let l={addresses:c?[c]:[s.host],servername:s.servername||s.host};return $a.set(s.host,{value:l,expires:Date.now()+(s.dnsTtl||id)}),e(null,Kt(l,{cached:!1}))})}catch(o){return t?e(null,Kt(t.value,{cached:!0,error:o})):e(o)}})})};He.exports.parseConnectionUrl=s=>{s=s||"";let e={};return[IM.parse(s,!0)].forEach(t=>{let i;switch(t.protocol){case"smtp:":e.secure=!1;break;case"smtps:":e.secure=!0;break;case"direct:":e.direct=!0;break}!isNaN(t.port)&&Number(t.port)&&(e.port=Number(t.port)),t.hostname&&(e.host=t.hostname),t.auth&&(i=t.auth.split(":"),e.auth||(e.auth={}),e.auth.user=i.shift(),e.auth.pass=i.join(":")),Object.keys(t.query||{}).forEach(r=>{let a=e,n=r,o=t.query[r];switch(isNaN(o)||(o=Number(o)),o){case"true":o=!0;break;case"false":o=!1;break}if(r.indexOf("tls.")===0)n=r.substr(4),e.tls||(e.tls={}),a=e.tls;else if(r.indexOf(".")>=0)return;n in a||(a[n]=o)})}),e};He.exports._logFunc=(s,e,t,i,r,...a)=>{let n={};Object.keys(t||{}).forEach(o=>{o!=="level"&&(n[o]=t[o])}),Object.keys(i||{}).forEach(o=>{o!=="level"&&(n[o]=i[o])}),s[e](n,r,...a)};He.exports.getLogger=(s,e)=>{s=s||{};let t={},i=["trace","debug","info","warn","error","fatal"];if(!s.logger)return i.forEach(a=>{t[a]=()=>!1}),t;let r=s.logger;return s.logger===!0&&(r=zM(i)),i.forEach(a=>{t[a]=(n,o,...u)=>{He.exports._logFunc(r,a,e,n,o,...u)}}),t};He.exports.callbackPromise=(s,e)=>function(){let t=Array.from(arguments),i=t.shift();i?e(i):s(...t)};He.exports.parseDataURI=s=>{let e=s,t=e.indexOf(",");if(!t)return s;let i=e.substring(t+1),r=e.substring(5,t),a,n=r.split(";"),o=n.length>1?n[n.length-1]:!1;o&&o.indexOf("=")<0&&(a=o.toLowerCase(),n.pop());let u=n.shift()||"application/octet-stream",c={};for(let l of n){let p=l.indexOf("=");if(p>=0){let d=l.substring(0,p),m=l.substring(p+1);c[d]=m}}switch(a){case"base64":i=Buffer.from(i,"base64");break;case"utf8":i=Buffer.from(i);break;default:try{i=Buffer.from(decodeURIComponent(i))}catch{i=Buffer.from(i)}i=Buffer.from(i)}return{data:i,encoding:a,contentType:u,params:c}};He.exports.resolveContent=(s,e,t)=>{let i;t||(i=new Promise((o,u)=>{t=He.exports.callbackPromise(o,u)}));let r=s&&s[e]&&s[e].content||s[e],a,n=(typeof s[e]=="object"&&s[e].encoding||"utf8").toString().toLowerCase().replace(/[-_\s]/g,"");if(!r)return t(null,r);if(typeof r=="object"){if(typeof r.pipe=="function")return rd(r,(o,u)=>{if(o)return t(o);s[e].content?s[e].content=u:s[e]=u,t(null,u)});if(/^https?:\/\//i.test(r.path||r.href))return a=BM(r.path||r.href),rd(a,t);if(/^data:/i.test(r.path||r.href)){let o=He.exports.parseDataURI(r.path||r.href);return!o||!o.data?t(null,Buffer.from(0)):t(null,o.data)}else if(r.path)return rd(NM.createReadStream(r.path),t)}return typeof s[e].content=="string"&&!["utf8","usascii","ascii"].includes(n)&&(r=Buffer.from(s[e].content,n)),setImmediate(()=>t(null,r)),i};He.exports.assign=function(){let s=Array.from(arguments),e=s.shift()||{};return s.forEach(t=>{Object.keys(t||{}).forEach(i=>{["tls","auth"].includes(i)&&t[i]&&typeof t[i]=="object"?(e[i]||(e[i]={}),Object.keys(t[i]).forEach(r=>{e[i][r]=t[i][r]})):e[i]=t[i]})}),e};He.exports.encodeXText=s=>{if(!/[^\x21-\x2A\x2C-\x3C\x3E-\x7E]/.test(s))return s;let e=Buffer.from(s),t="";for(let i=0,r=e.length;i<r;i++){let a=e[i];a<33||a>126||a===43||a===61?t+="+"+(a<16?"0":"")+a.toString(16).toUpperCase():t+=String.fromCharCode(a)}return t};function rd(s,e){let t=!1,i=[],r=0;s.on("error",a=>{t||(t=!0,e(a))}),s.on("readable",()=>{let a;for(;(a=s.read())!==null;)i.push(a),r+=a.length}),s.on("end",()=>{if(t)return;t=!0;let a;try{a=Buffer.concat(i,r)}catch(n){return e(n)}e(null,a)})}function zM(s){let e=0,t=new Map;s.forEach(a=>{a.length>e&&(e=a.length)}),s.forEach(a=>{let n=a.toUpperCase();n.length<e&&(n+=" ".repeat(e-n.length)),t.set(a,n)});let i=(a,n,o,...u)=>{let c="";n&&(n.tnx==="server"?c="S: ":n.tnx==="client"&&(c="C: "),n.sid&&(c="["+n.sid+"] "+c),n.cid&&(c="[#"+n.cid+"] "+c)),o=_M.format(o,...u),o.split(/\r?\n/).forEach(l=>{console.log("[%s] %s %s",new Date().toISOString().substr(0,19).replace(/T/," "),t.get(a),c+l)})},r={};return s.forEach(a=>{r[a]=i.bind(null,a)}),r}});var ad=O((jie,kC)=>{"use strict";h();var MM=M("path"),bC="application/octet-stream",RM="bin",wC=new Map([["application/acad","dwg"],["application/applixware","aw"],["application/arj","arj"],["application/atom+xml","xml"],["application/atomcat+xml","atomcat"],["application/atomsvc+xml","atomsvc"],["application/base64",["mm","mme"]],["application/binhex","hqx"],["application/binhex4","hqx"],["application/book",["book","boo"]],["application/ccxml+xml,","ccxml"],["application/cdf","cdf"],["application/cdmi-capability","cdmia"],["application/cdmi-container","cdmic"],["application/cdmi-domain","cdmid"],["application/cdmi-object","cdmio"],["application/cdmi-queue","cdmiq"],["application/clariscad","ccad"],["application/commonground","dp"],["application/cu-seeme","cu"],["application/davmount+xml","davmount"],["application/drafting","drw"],["application/dsptype","tsp"],["application/dssc+der","dssc"],["application/dssc+xml","xdssc"],["application/dxf","dxf"],["application/ecmascript",["js","es"]],["application/emma+xml","emma"],["application/envoy","evy"],["application/epub+zip","epub"],["application/excel",["xls","xl","xla","xlb","xlc","xld","xlk","xll","xlm","xlt","xlv","xlw"]],["application/exi","exi"],["application/font-tdpfr","pfr"],["application/fractals","fif"],["application/freeloader","frl"],["application/futuresplash","spl"],["application/geo+json","geojson"],["application/gnutar","tgz"],["application/groupwise","vew"],["application/hlp","hlp"],["application/hta","hta"],["application/hyperstudio","stk"],["application/i-deas","unv"],["application/iges",["iges","igs"]],["application/inf","inf"],["application/internet-property-stream","acx"],["application/ipfix","ipfix"],["application/java","class"],["application/java-archive","jar"],["application/java-byte-code","class"],["application/java-serialized-object","ser"],["application/java-vm","class"],["application/javascript","js"],["application/json","json"],["application/lha","lha"],["application/lzx","lzx"],["application/mac-binary","bin"],["application/mac-binhex","hqx"],["application/mac-binhex40","hqx"],["application/mac-compactpro","cpt"],["application/macbinary","bin"],["application/mads+xml","mads"],["application/marc","mrc"],["application/marcxml+xml","mrcx"],["application/mathematica","ma"],["application/mathml+xml","mathml"],["application/mbedlet","mbd"],["application/mbox","mbox"],["application/mcad","mcd"],["application/mediaservercontrol+xml","mscml"],["application/metalink4+xml","meta4"],["application/mets+xml","mets"],["application/mime","aps"],["application/mods+xml","mods"],["application/mp21","m21"],["application/mp4","mp4"],["application/mspowerpoint",["ppt","pot","pps","ppz"]],["application/msword",["doc","dot","w6w","wiz","word"]],["application/mswrite","wri"],["application/mxf","mxf"],["application/netmc","mcp"],["application/octet-stream",["*"]],["application/oda","oda"],["application/oebps-package+xml","opf"],["application/ogg","ogx"],["application/olescript","axs"],["application/onenote","onetoc"],["application/patch-ops-error+xml","xer"],["application/pdf","pdf"],["application/pgp-encrypted","asc"],["application/pgp-signature","pgp"],["application/pics-rules","prf"],["application/pkcs-12","p12"],["application/pkcs-crl","crl"],["application/pkcs10","p10"],["application/pkcs7-mime",["p7c","p7m"]],["application/pkcs7-signature","p7s"],["application/pkcs8","p8"],["application/pkix-attr-cert","ac"],["application/pkix-cert",["cer","crt"]],["application/pkix-crl","crl"],["application/pkix-pkipath","pkipath"],["application/pkixcmp","pki"],["application/plain","text"],["application/pls+xml","pls"],["application/postscript",["ps","ai","eps"]],["application/powerpoint","ppt"],["application/pro_eng",["part","prt"]],["application/prs.cww","cww"],["application/pskc+xml","pskcxml"],["application/rdf+xml","rdf"],["application/reginfo+xml","rif"],["application/relax-ng-compact-syntax","rnc"],["application/resource-lists+xml","rl"],["application/resource-lists-diff+xml","rld"],["application/ringing-tones","rng"],["application/rls-services+xml","rs"],["application/rsd+xml","rsd"],["application/rss+xml","xml"],["application/rtf",["rtf","rtx"]],["application/sbml+xml","sbml"],["application/scvp-cv-request","scq"],["application/scvp-cv-response","scs"],["application/scvp-vp-request","spq"],["application/scvp-vp-response","spp"],["application/sdp","sdp"],["application/sea","sea"],["application/set","set"],["application/set-payment-initiation","setpay"],["application/set-registration-initiation","setreg"],["application/shf+xml","shf"],["application/sla","stl"],["application/smil",["smi","smil"]],["application/smil+xml","smi"],["application/solids","sol"],["application/sounder","sdr"],["application/sparql-query","rq"],["application/sparql-results+xml","srx"],["application/srgs","gram"],["application/srgs+xml","grxml"],["application/sru+xml","sru"],["application/ssml+xml","ssml"],["application/step",["step","stp"]],["application/streamingmedia","ssm"],["application/tei+xml","tei"],["application/thraud+xml","tfi"],["application/timestamped-data","tsd"],["application/toolbook","tbk"],["application/vda","vda"],["application/vnd.3gpp.pic-bw-large","plb"],["application/vnd.3gpp.pic-bw-small","psb"],["application/vnd.3gpp.pic-bw-var","pvb"],["application/vnd.3gpp2.tcap","tcap"],["application/vnd.3m.post-it-notes","pwn"],["application/vnd.accpac.simply.aso","aso"],["application/vnd.accpac.simply.imp","imp"],["application/vnd.acucobol","acu"],["application/vnd.acucorp","atc"],["application/vnd.adobe.air-application-installer-package+zip","air"],["application/vnd.adobe.fxp","fxp"],["application/vnd.adobe.xdp+xml","xdp"],["application/vnd.adobe.xfdf","xfdf"],["application/vnd.ahead.space","ahead"],["application/vnd.airzip.filesecure.azf","azf"],["application/vnd.airzip.filesecure.azs","azs"],["application/vnd.amazon.ebook","azw"],["application/vnd.americandynamics.acc","acc"],["application/vnd.amiga.ami","ami"],["application/vnd.android.package-archive","apk"],["application/vnd.anser-web-certificate-issue-initiation","cii"],["application/vnd.anser-web-funds-transfer-initiation","fti"],["application/vnd.antix.game-component","atx"],["application/vnd.apple.installer+xml","mpkg"],["application/vnd.apple.mpegurl","m3u8"],["application/vnd.aristanetworks.swi","swi"],["application/vnd.audiograph","aep"],["application/vnd.blueice.multipass","mpm"],["application/vnd.bmi","bmi"],["application/vnd.businessobjects","rep"],["application/vnd.chemdraw+xml","cdxml"],["application/vnd.chipnuts.karaoke-mmd","mmd"],["application/vnd.cinderella","cdy"],["application/vnd.claymore","cla"],["application/vnd.cloanto.rp9","rp9"],["application/vnd.clonk.c4group","c4g"],["application/vnd.cluetrust.cartomobile-config","c11amc"],["application/vnd.cluetrust.cartomobile-config-pkg","c11amz"],["application/vnd.commonspace","csp"],["application/vnd.contact.cmsg","cdbcmsg"],["application/vnd.cosmocaller","cmc"],["application/vnd.crick.clicker","clkx"],["application/vnd.crick.clicker.keyboard","clkk"],["application/vnd.crick.clicker.palette","clkp"],["application/vnd.crick.clicker.template","clkt"],["application/vnd.crick.clicker.wordbank","clkw"],["application/vnd.criticaltools.wbs+xml","wbs"],["application/vnd.ctc-posml","pml"],["application/vnd.cups-ppd","ppd"],["application/vnd.curl.car","car"],["application/vnd.curl.pcurl","pcurl"],["application/vnd.data-vision.rdz","rdz"],["application/vnd.denovo.fcselayout-link","fe_launch"],["application/vnd.dna","dna"],["application/vnd.dolby.mlp","mlp"],["application/vnd.dpgraph","dpg"],["application/vnd.dreamfactory","dfac"],["application/vnd.dvb.ait","ait"],["application/vnd.dvb.service","svc"],["application/vnd.dynageo","geo"],["application/vnd.ecowin.chart","mag"],["application/vnd.enliven","nml"],["application/vnd.epson.esf","esf"],["application/vnd.epson.msf","msf"],["application/vnd.epson.quickanime","qam"],["application/vnd.epson.salt","slt"],["application/vnd.epson.ssf","ssf"],["application/vnd.eszigno3+xml","es3"],["application/vnd.ezpix-album","ez2"],["application/vnd.ezpix-package","ez3"],["application/vnd.fdf","fdf"],["application/vnd.fdsn.seed","seed"],["application/vnd.flographit","gph"],["application/vnd.fluxtime.clip","ftc"],["application/vnd.framemaker","fm"],["application/vnd.frogans.fnc","fnc"],["application/vnd.frogans.ltf","ltf"],["application/vnd.fsc.weblaunch","fsc"],["application/vnd.fujitsu.oasys","oas"],["application/vnd.fujitsu.oasys2","oa2"],["application/vnd.fujitsu.oasys3","oa3"],["application/vnd.fujitsu.oasysgp","fg5"],["application/vnd.fujitsu.oasysprs","bh2"],["application/vnd.fujixerox.ddd","ddd"],["application/vnd.fujixerox.docuworks","xdw"],["application/vnd.fujixerox.docuworks.binder","xbd"],["application/vnd.fuzzysheet","fzs"],["application/vnd.genomatix.tuxedo","txd"],["application/vnd.geogebra.file","ggb"],["application/vnd.geogebra.tool","ggt"],["application/vnd.geometry-explorer","gex"],["application/vnd.geonext","gxt"],["application/vnd.geoplan","g2w"],["application/vnd.geospace","g3w"],["application/vnd.gmx","gmx"],["application/vnd.google-earth.kml+xml","kml"],["application/vnd.google-earth.kmz","kmz"],["application/vnd.grafeq","gqf"],["application/vnd.groove-account","gac"],["application/vnd.groove-help","ghf"],["application/vnd.groove-identity-message","gim"],["application/vnd.groove-injector","grv"],["application/vnd.groove-tool-message","gtm"],["application/vnd.groove-tool-template","tpl"],["application/vnd.groove-vcard","vcg"],["application/vnd.hal+xml","hal"],["application/vnd.handheld-entertainment+xml","zmm"],["application/vnd.hbci","hbci"],["application/vnd.hhe.lesson-player","les"],["application/vnd.hp-hpgl",["hgl","hpg","hpgl"]],["application/vnd.hp-hpid","hpid"],["application/vnd.hp-hps","hps"],["application/vnd.hp-jlyt","jlt"],["application/vnd.hp-pcl","pcl"],["application/vnd.hp-pclxl","pclxl"],["application/vnd.hydrostatix.sof-data","sfd-hdstx"],["application/vnd.hzn-3d-crossword","x3d"],["application/vnd.ibm.minipay","mpy"],["application/vnd.ibm.modcap","afp"],["application/vnd.ibm.rights-management","irm"],["application/vnd.ibm.secure-container","sc"],["application/vnd.iccprofile","icc"],["application/vnd.igloader","igl"],["application/vnd.immervision-ivp","ivp"],["application/vnd.immervision-ivu","ivu"],["application/vnd.insors.igm","igm"],["application/vnd.intercon.formnet","xpw"],["application/vnd.intergeo","i2g"],["application/vnd.intu.qbo","qbo"],["application/vnd.intu.qfx","qfx"],["application/vnd.ipunplugged.rcprofile","rcprofile"],["application/vnd.irepository.package+xml","irp"],["application/vnd.is-xpr","xpr"],["application/vnd.isac.fcs","fcs"],["application/vnd.jam","jam"],["application/vnd.jcp.javame.midlet-rms","rms"],["application/vnd.jisp","jisp"],["application/vnd.joost.joda-archive","joda"],["application/vnd.kahootz","ktz"],["application/vnd.kde.karbon","karbon"],["application/vnd.kde.kchart","chrt"],["application/vnd.kde.kformula","kfo"],["application/vnd.kde.kivio","flw"],["application/vnd.kde.kontour","kon"],["application/vnd.kde.kpresenter","kpr"],["application/vnd.kde.kspread","ksp"],["application/vnd.kde.kword","kwd"],["application/vnd.kenameaapp","htke"],["application/vnd.kidspiration","kia"],["application/vnd.kinar","kne"],["application/vnd.koan","skp"],["application/vnd.kodak-descriptor","sse"],["application/vnd.las.las+xml","lasxml"],["application/vnd.llamagraphics.life-balance.desktop","lbd"],["application/vnd.llamagraphics.life-balance.exchange+xml","lbe"],["application/vnd.lotus-1-2-3","123"],["application/vnd.lotus-approach","apr"],["application/vnd.lotus-freelance","pre"],["application/vnd.lotus-notes","nsf"],["application/vnd.lotus-organizer","org"],["application/vnd.lotus-screencam","scm"],["application/vnd.lotus-wordpro","lwp"],["application/vnd.macports.portpkg","portpkg"],["application/vnd.mcd","mcd"],["application/vnd.medcalcdata","mc1"],["application/vnd.mediastation.cdkey","cdkey"],["application/vnd.mfer","mwf"],["application/vnd.mfmp","mfm"],["application/vnd.micrografx.flo","flo"],["application/vnd.micrografx.igx","igx"],["application/vnd.mif","mif"],["application/vnd.mobius.daf","daf"],["application/vnd.mobius.dis","dis"],["application/vnd.mobius.mbk","mbk"],["application/vnd.mobius.mqy","mqy"],["application/vnd.mobius.msl","msl"],["application/vnd.mobius.plc","plc"],["application/vnd.mobius.txf","txf"],["application/vnd.mophun.application","mpn"],["application/vnd.mophun.certificate","mpc"],["application/vnd.mozilla.xul+xml","xul"],["application/vnd.ms-artgalry","cil"],["application/vnd.ms-cab-compressed","cab"],["application/vnd.ms-excel",["xls","xla","xlc","xlm","xlt","xlw","xlb","xll"]],["application/vnd.ms-excel.addin.macroenabled.12","xlam"],["application/vnd.ms-excel.sheet.binary.macroenabled.12","xlsb"],["application/vnd.ms-excel.sheet.macroenabled.12","xlsm"],["application/vnd.ms-excel.template.macroenabled.12","xltm"],["application/vnd.ms-fontobject","eot"],["application/vnd.ms-htmlhelp","chm"],["application/vnd.ms-ims","ims"],["application/vnd.ms-lrm","lrm"],["application/vnd.ms-officetheme","thmx"],["application/vnd.ms-outlook","msg"],["application/vnd.ms-pki.certstore","sst"],["application/vnd.ms-pki.pko","pko"],["application/vnd.ms-pki.seccat","cat"],["application/vnd.ms-pki.stl","stl"],["application/vnd.ms-pkicertstore","sst"],["application/vnd.ms-pkiseccat","cat"],["application/vnd.ms-pkistl","stl"],["application/vnd.ms-powerpoint",["ppt","pot","pps","ppa","pwz"]],["application/vnd.ms-powerpoint.addin.macroenabled.12","ppam"],["application/vnd.ms-powerpoint.presentation.macroenabled.12","pptm"],["application/vnd.ms-powerpoint.slide.macroenabled.12","sldm"],["application/vnd.ms-powerpoint.slideshow.macroenabled.12","ppsm"],["application/vnd.ms-powerpoint.template.macroenabled.12","potm"],["application/vnd.ms-project","mpp"],["application/vnd.ms-word.document.macroenabled.12","docm"],["application/vnd.ms-word.template.macroenabled.12","dotm"],["application/vnd.ms-works",["wks","wcm","wdb","wps"]],["application/vnd.ms-wpl","wpl"],["application/vnd.ms-xpsdocument","xps"],["application/vnd.mseq","mseq"],["application/vnd.musician","mus"],["application/vnd.muvee.style","msty"],["application/vnd.neurolanguage.nlu","nlu"],["application/vnd.noblenet-directory","nnd"],["application/vnd.noblenet-sealer","nns"],["application/vnd.noblenet-web","nnw"],["application/vnd.nokia.configuration-message","ncm"],["application/vnd.nokia.n-gage.data","ngdat"],["application/vnd.nokia.n-gage.symbian.install","n-gage"],["application/vnd.nokia.radio-preset","rpst"],["application/vnd.nokia.radio-presets","rpss"],["application/vnd.nokia.ringing-tone","rng"],["application/vnd.novadigm.edm","edm"],["application/vnd.novadigm.edx","edx"],["application/vnd.novadigm.ext","ext"],["application/vnd.oasis.opendocument.chart","odc"],["application/vnd.oasis.opendocument.chart-template","otc"],["application/vnd.oasis.opendocument.database","odb"],["application/vnd.oasis.opendocument.formula","odf"],["application/vnd.oasis.opendocument.formula-template","odft"],["application/vnd.oasis.opendocument.graphics","odg"],["application/vnd.oasis.opendocument.graphics-template","otg"],["application/vnd.oasis.opendocument.image","odi"],["application/vnd.oasis.opendocument.image-template","oti"],["application/vnd.oasis.opendocument.presentation","odp"],["application/vnd.oasis.opendocument.presentation-template","otp"],["application/vnd.oasis.opendocument.spreadsheet","ods"],["application/vnd.oasis.opendocument.spreadsheet-template","ots"],["application/vnd.oasis.opendocument.text","odt"],["application/vnd.oasis.opendocument.text-master","odm"],["application/vnd.oasis.opendocument.text-template","ott"],["application/vnd.oasis.opendocument.text-web","oth"],["application/vnd.olpc-sugar","xo"],["application/vnd.oma.dd2+xml","dd2"],["application/vnd.openofficeorg.extension","oxt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","pptx"],["application/vnd.openxmlformats-officedocument.presentationml.slide","sldx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","ppsx"],["application/vnd.openxmlformats-officedocument.presentationml.template","potx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","xltx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","dotx"],["application/vnd.osgeo.mapguide.package","mgp"],["application/vnd.osgi.dp","dp"],["application/vnd.palm","pdb"],["application/vnd.pawaafile","paw"],["application/vnd.pg.format","str"],["application/vnd.pg.osasli","ei6"],["application/vnd.picsel","efif"],["application/vnd.pmi.widget","wg"],["application/vnd.pocketlearn","plf"],["application/vnd.powerbuilder6","pbd"],["application/vnd.previewsystems.box","box"],["application/vnd.proteus.magazine","mgz"],["application/vnd.publishare-delta-tree","qps"],["application/vnd.pvi.ptid1","ptid"],["application/vnd.quark.quarkxpress","qxd"],["application/vnd.realvnc.bed","bed"],["application/vnd.recordare.musicxml","mxl"],["application/vnd.recordare.musicxml+xml","musicxml"],["application/vnd.rig.cryptonote","cryptonote"],["application/vnd.rim.cod","cod"],["application/vnd.rn-realmedia","rm"],["application/vnd.rn-realplayer","rnx"],["application/vnd.route66.link66+xml","link66"],["application/vnd.sailingtracker.track","st"],["application/vnd.seemail","see"],["application/vnd.sema","sema"],["application/vnd.semd","semd"],["application/vnd.semf","semf"],["application/vnd.shana.informed.formdata","ifm"],["application/vnd.shana.informed.formtemplate","itp"],["application/vnd.shana.informed.interchange","iif"],["application/vnd.shana.informed.package","ipk"],["application/vnd.simtech-mindmapper","twd"],["application/vnd.smaf","mmf"],["application/vnd.smart.teacher","teacher"],["application/vnd.solent.sdkm+xml","sdkm"],["application/vnd.spotfire.dxp","dxp"],["application/vnd.spotfire.sfs","sfs"],["application/vnd.stardivision.calc","sdc"],["application/vnd.stardivision.draw","sda"],["application/vnd.stardivision.impress","sdd"],["application/vnd.stardivision.math","smf"],["application/vnd.stardivision.writer","sdw"],["application/vnd.stardivision.writer-global","sgl"],["application/vnd.stepmania.stepchart","sm"],["application/vnd.sun.xml.calc","sxc"],["application/vnd.sun.xml.calc.template","stc"],["application/vnd.sun.xml.draw","sxd"],["application/vnd.sun.xml.draw.template","std"],["application/vnd.sun.xml.impress","sxi"],["application/vnd.sun.xml.impress.template","sti"],["application/vnd.sun.xml.math","sxm"],["application/vnd.sun.xml.writer","sxw"],["application/vnd.sun.xml.writer.global","sxg"],["application/vnd.sun.xml.writer.template","stw"],["application/vnd.sus-calendar","sus"],["application/vnd.svd","svd"],["application/vnd.symbian.install","sis"],["application/vnd.syncml+xml","xsm"],["application/vnd.syncml.dm+wbxml","bdm"],["application/vnd.syncml.dm+xml","xdm"],["application/vnd.tao.intent-module-archive","tao"],["application/vnd.tmobile-livetv","tmo"],["application/vnd.trid.tpt","tpt"],["application/vnd.triscape.mxs","mxs"],["application/vnd.trueapp","tra"],["application/vnd.ufdl","ufd"],["application/vnd.uiq.theme","utz"],["application/vnd.umajin","umj"],["application/vnd.unity","unityweb"],["application/vnd.uoml+xml","uoml"],["application/vnd.vcx","vcx"],["application/vnd.visio","vsd"],["application/vnd.visionary","vis"],["application/vnd.vsf","vsf"],["application/vnd.wap.wbxml","wbxml"],["application/vnd.wap.wmlc","wmlc"],["application/vnd.wap.wmlscriptc","wmlsc"],["application/vnd.webturbo","wtb"],["application/vnd.wolfram.player","nbp"],["application/vnd.wordperfect","wpd"],["application/vnd.wqd","wqd"],["application/vnd.wt.stf","stf"],["application/vnd.xara",["web","xar"]],["application/vnd.xfdl","xfdl"],["application/vnd.yamaha.hv-dic","hvd"],["application/vnd.yamaha.hv-script","hvs"],["application/vnd.yamaha.hv-voice","hvp"],["application/vnd.yamaha.openscoreformat","osf"],["application/vnd.yamaha.openscoreformat.osfpvg+xml","osfpvg"],["application/vnd.yamaha.smaf-audio","saf"],["application/vnd.yamaha.smaf-phrase","spf"],["application/vnd.yellowriver-custom-menu","cmp"],["application/vnd.zul","zir"],["application/vnd.zzazz.deck+xml","zaz"],["application/vocaltec-media-desc","vmd"],["application/vocaltec-media-file","vmf"],["application/voicexml+xml","vxml"],["application/widget","wgt"],["application/winhlp","hlp"],["application/wordperfect",["wp","wp5","wp6","wpd"]],["application/wordperfect6.0",["w60","wp5"]],["application/wordperfect6.1","w61"],["application/wsdl+xml","wsdl"],["application/wspolicy+xml","wspolicy"],["application/x-123","wk1"],["application/x-7z-compressed","7z"],["application/x-abiword","abw"],["application/x-ace-compressed","ace"],["application/x-aim","aim"],["application/x-authorware-bin","aab"],["application/x-authorware-map","aam"],["application/x-authorware-seg","aas"],["application/x-bcpio","bcpio"],["application/x-binary","bin"],["application/x-binhex40","hqx"],["application/x-bittorrent","torrent"],["application/x-bsh",["bsh","sh","shar"]],["application/x-bytecode.elisp","elc"],["application/x-bytecode.python","pyc"],["application/x-bzip","bz"],["application/x-bzip2",["boz","bz2"]],["application/x-cdf","cdf"],["application/x-cdlink","vcd"],["application/x-chat",["cha","chat"]],["application/x-chess-pgn","pgn"],["application/x-cmu-raster","ras"],["application/x-cocoa","cco"],["application/x-compactpro","cpt"],["application/x-compress","z"],["application/x-compressed",["tgz","gz","z","zip"]],["application/x-conference","nsc"],["application/x-cpio","cpio"],["application/x-cpt","cpt"],["application/x-csh","csh"],["application/x-debian-package","deb"],["application/x-deepv","deepv"],["application/x-director",["dir","dcr","dxr"]],["application/x-doom","wad"],["application/x-dtbncx+xml","ncx"],["application/x-dtbook+xml","dtb"],["application/x-dtbresource+xml","res"],["application/x-dvi","dvi"],["application/x-elc","elc"],["application/x-envoy",["env","evy"]],["application/x-esrehber","es"],["application/x-excel",["xls","xla","xlb","xlc","xld","xlk","xll","xlm","xlt","xlv","xlw"]],["application/x-font-bdf","bdf"],["application/x-font-ghostscript","gsf"],["application/x-font-linux-psf","psf"],["application/x-font-otf","otf"],["application/x-font-pcf","pcf"],["application/x-font-snf","snf"],["application/x-font-ttf","ttf"],["application/x-font-type1","pfa"],["application/x-font-woff","woff"],["application/x-frame","mif"],["application/x-freelance","pre"],["application/x-futuresplash","spl"],["application/x-gnumeric","gnumeric"],["application/x-gsp","gsp"],["application/x-gss","gss"],["application/x-gtar","gtar"],["application/x-gzip",["gz","gzip"]],["application/x-hdf","hdf"],["application/x-helpfile",["help","hlp"]],["application/x-httpd-imap","imap"],["application/x-ima","ima"],["application/x-internet-signup",["ins","isp"]],["application/x-internett-signup","ins"],["application/x-inventor","iv"],["application/x-ip2","ip"],["application/x-iphone","iii"],["application/x-java-class","class"],["application/x-java-commerce","jcm"],["application/x-java-jnlp-file","jnlp"],["application/x-javascript","js"],["application/x-koan",["skd","skm","skp","skt"]],["application/x-ksh","ksh"],["application/x-latex",["latex","ltx"]],["application/x-lha","lha"],["application/x-lisp","lsp"],["application/x-livescreen","ivy"],["application/x-lotus","wq1"],["application/x-lotusscreencam","scm"],["application/x-lzh","lzh"],["application/x-lzx","lzx"],["application/x-mac-binhex40","hqx"],["application/x-macbinary","bin"],["application/x-magic-cap-package-1.0","mc$"],["application/x-mathcad","mcd"],["application/x-meme","mm"],["application/x-midi",["mid","midi"]],["application/x-mif","mif"],["application/x-mix-transfer","nix"],["application/x-mobipocket-ebook","prc"],["application/x-mplayer2","asx"],["application/x-ms-application","application"],["application/x-ms-wmd","wmd"],["application/x-ms-wmz","wmz"],["application/x-ms-xbap","xbap"],["application/x-msaccess","mdb"],["application/x-msbinder","obd"],["application/x-mscardfile","crd"],["application/x-msclip","clp"],["application/x-msdownload",["exe","dll"]],["application/x-msexcel",["xls","xla","xlw"]],["application/x-msmediaview",["mvb","m13","m14"]],["application/x-msmetafile","wmf"],["application/x-msmoney","mny"],["application/x-mspowerpoint","ppt"],["application/x-mspublisher","pub"],["application/x-msschedule","scd"],["application/x-msterminal","trm"],["application/x-mswrite","wri"],["application/x-navi-animation","ani"],["application/x-navidoc","nvd"],["application/x-navimap","map"],["application/x-navistyle","stl"],["application/x-netcdf",["cdf","nc"]],["application/x-newton-compatible-pkg","pkg"],["application/x-nokia-9000-communicator-add-on-software","aos"],["application/x-omc","omc"],["application/x-omcdatamaker","omcd"],["application/x-omcregerator","omcr"],["application/x-pagemaker",["pm4","pm5"]],["application/x-pcl","pcl"],["application/x-perfmon",["pma","pmc","pml","pmr","pmw"]],["application/x-pixclscript","plx"],["application/x-pkcs10","p10"],["application/x-pkcs12",["p12","pfx"]],["application/x-pkcs7-certificates",["p7b","spc"]],["application/x-pkcs7-certreqresp","p7r"],["application/x-pkcs7-mime",["p7m","p7c"]],["application/x-pkcs7-signature",["p7s","p7a"]],["application/x-pointplus","css"],["application/x-portable-anymap","pnm"],["application/x-project",["mpc","mpt","mpv","mpx"]],["application/x-qpro","wb1"],["application/x-rar-compressed","rar"],["application/x-rtf","rtf"],["application/x-sdp","sdp"],["application/x-sea","sea"],["application/x-seelogo","sl"],["application/x-sh","sh"],["application/x-shar",["shar","sh"]],["application/x-shockwave-flash","swf"],["application/x-silverlight-app","xap"],["application/x-sit","sit"],["application/x-sprite",["spr","sprite"]],["application/x-stuffit","sit"],["application/x-stuffitx","sitx"],["application/x-sv4cpio","sv4cpio"],["application/x-sv4crc","sv4crc"],["application/x-tar","tar"],["application/x-tbook",["sbk","tbk"]],["application/x-tcl","tcl"],["application/x-tex","tex"],["application/x-tex-tfm","tfm"],["application/x-texinfo",["texi","texinfo"]],["application/x-troff",["roff","t","tr"]],["application/x-troff-man","man"],["application/x-troff-me","me"],["application/x-troff-ms","ms"],["application/x-troff-msvideo","avi"],["application/x-ustar","ustar"],["application/x-visio",["vsd","vst","vsw"]],["application/x-vnd.audioexplosion.mzz","mzz"],["application/x-vnd.ls-xpix","xpix"],["application/x-vrml","vrml"],["application/x-wais-source",["src","wsrc"]],["application/x-winhelp","hlp"],["application/x-wintalk","wtk"],["application/x-world",["wrl","svr"]],["application/x-wpwin","wpd"],["application/x-wri","wri"],["application/x-x509-ca-cert",["cer","crt","der"]],["application/x-x509-user-cert","crt"],["application/x-xfig","fig"],["application/x-xpinstall","xpi"],["application/x-zip-compressed","zip"],["application/xcap-diff+xml","xdf"],["application/xenc+xml","xenc"],["application/xhtml+xml","xhtml"],["application/xml","xml"],["application/xml-dtd","dtd"],["application/xop+xml","xop"],["application/xslt+xml","xslt"],["application/xspf+xml","xspf"],["application/xv+xml","mxml"],["application/yang","yang"],["application/yin+xml","yin"],["application/ynd.ms-pkipko","pko"],["application/zip","zip"],["audio/adpcm","adp"],["audio/aiff",["aiff","aif","aifc"]],["audio/basic",["snd","au"]],["audio/it","it"],["audio/make",["funk","my","pfunk"]],["audio/make.my.funk","pfunk"],["audio/mid",["mid","rmi"]],["audio/midi",["midi","kar","mid"]],["audio/mod","mod"],["audio/mp4","mp4a"],["audio/mpeg",["mpga","mp3","m2a","mp2","mpa","mpg"]],["audio/mpeg3","mp3"],["audio/nspaudio",["la","lma"]],["audio/ogg","oga"],["audio/s3m","s3m"],["audio/tsp-audio","tsi"],["audio/tsplayer","tsp"],["audio/vnd.dece.audio","uva"],["audio/vnd.digital-winds","eol"],["audio/vnd.dra","dra"],["audio/vnd.dts","dts"],["audio/vnd.dts.hd","dtshd"],["audio/vnd.lucent.voice","lvp"],["audio/vnd.ms-playready.media.pya","pya"],["audio/vnd.nuera.ecelp4800","ecelp4800"],["audio/vnd.nuera.ecelp7470","ecelp7470"],["audio/vnd.nuera.ecelp9600","ecelp9600"],["audio/vnd.qcelp","qcp"],["audio/vnd.rip","rip"],["audio/voc","voc"],["audio/voxware","vox"],["audio/wav","wav"],["audio/webm","weba"],["audio/x-aac","aac"],["audio/x-adpcm","snd"],["audio/x-aiff",["aiff","aif","aifc"]],["audio/x-au","au"],["audio/x-gsm",["gsd","gsm"]],["audio/x-jam","jam"],["audio/x-liveaudio","lam"],["audio/x-mid",["mid","midi"]],["audio/x-midi",["midi","mid"]],["audio/x-mod","mod"],["audio/x-mpeg","mp2"],["audio/x-mpeg-3","mp3"],["audio/x-mpegurl","m3u"],["audio/x-mpequrl","m3u"],["audio/x-ms-wax","wax"],["audio/x-ms-wma","wma"],["audio/x-nspaudio",["la","lma"]],["audio/x-pn-realaudio",["ra","ram","rm","rmm","rmp"]],["audio/x-pn-realaudio-plugin",["ra","rmp","rpm"]],["audio/x-psid","sid"],["audio/x-realaudio","ra"],["audio/x-twinvq","vqf"],["audio/x-twinvq-plugin",["vqe","vql"]],["audio/x-vnd.audioexplosion.mjuicemediafile","mjf"],["audio/x-voc","voc"],["audio/x-wav","wav"],["audio/xm","xm"],["chemical/x-cdx","cdx"],["chemical/x-cif","cif"],["chemical/x-cmdf","cmdf"],["chemical/x-cml","cml"],["chemical/x-csml","csml"],["chemical/x-pdb",["pdb","xyz"]],["chemical/x-xyz","xyz"],["drawing/x-dwf","dwf"],["i-world/i-vrml","ivr"],["image/bmp",["bmp","bm"]],["image/cgm","cgm"],["image/cis-cod","cod"],["image/cmu-raster",["ras","rast"]],["image/fif","fif"],["image/florian",["flo","turbot"]],["image/g3fax","g3"],["image/gif","gif"],["image/ief",["ief","iefs"]],["image/jpeg",["jpeg","jpe","jpg","jfif","jfif-tbnl"]],["image/jutvision","jut"],["image/ktx","ktx"],["image/naplps",["nap","naplps"]],["image/pict",["pic","pict"]],["image/pipeg","jfif"],["image/pjpeg",["jfif","jpe","jpeg","jpg"]],["image/png",["png","x-png"]],["image/prs.btif","btif"],["image/svg+xml","svg"],["image/tiff",["tif","tiff"]],["image/vasa","mcf"],["image/vnd.adobe.photoshop","psd"],["image/vnd.dece.graphic","uvi"],["image/vnd.djvu","djvu"],["image/vnd.dvb.subtitle","sub"],["image/vnd.dwg",["dwg","dxf","svf"]],["image/vnd.dxf","dxf"],["image/vnd.fastbidsheet","fbs"],["image/vnd.fpx","fpx"],["image/vnd.fst","fst"],["image/vnd.fujixerox.edmics-mmr","mmr"],["image/vnd.fujixerox.edmics-rlc","rlc"],["image/vnd.ms-modi","mdi"],["image/vnd.net-fpx",["fpx","npx"]],["image/vnd.rn-realflash","rf"],["image/vnd.rn-realpix","rp"],["image/vnd.wap.wbmp","wbmp"],["image/vnd.xiff","xif"],["image/webp","webp"],["image/x-cmu-raster","ras"],["image/x-cmx","cmx"],["image/x-dwg",["dwg","dxf","svf"]],["image/x-freehand","fh"],["image/x-icon","ico"],["image/x-jg","art"],["image/x-jps","jps"],["image/x-niff",["niff","nif"]],["image/x-pcx","pcx"],["image/x-pict",["pct","pic"]],["image/x-portable-anymap","pnm"],["image/x-portable-bitmap","pbm"],["image/x-portable-graymap","pgm"],["image/x-portable-greymap","pgm"],["image/x-portable-pixmap","ppm"],["image/x-quicktime",["qif","qti","qtif"]],["image/x-rgb","rgb"],["image/x-tiff",["tif","tiff"]],["image/x-windows-bmp","bmp"],["image/x-xbitmap","xbm"],["image/x-xbm","xbm"],["image/x-xpixmap",["xpm","pm"]],["image/x-xwd","xwd"],["image/x-xwindowdump","xwd"],["image/xbm","xbm"],["image/xpm","xpm"],["message/rfc822",["eml","mht","mhtml","nws","mime"]],["model/iges",["iges","igs"]],["model/mesh","msh"],["model/vnd.collada+xml","dae"],["model/vnd.dwf","dwf"],["model/vnd.gdl","gdl"],["model/vnd.gtw","gtw"],["model/vnd.mts","mts"],["model/vnd.vtu","vtu"],["model/vrml",["vrml","wrl","wrz"]],["model/x-pov","pov"],["multipart/x-gzip","gzip"],["multipart/x-ustar","ustar"],["multipart/x-zip","zip"],["music/crescendo",["mid","midi"]],["music/x-karaoke","kar"],["paleovu/x-pv","pvu"],["text/asp","asp"],["text/calendar","ics"],["text/css","css"],["text/csv","csv"],["text/ecmascript","js"],["text/h323","323"],["text/html",["html","htm","stm","acgi","htmls","htx","shtml"]],["text/iuls","uls"],["text/javascript","js"],["text/mcf","mcf"],["text/n3","n3"],["text/pascal","pas"],["text/plain",["txt","bas","c","h","c++","cc","com","conf","cxx","def","f","f90","for","g","hh","idc","jav","java","list","log","lst","m","mar","pl","sdml","text"]],["text/plain-bas","par"],["text/prs.lines.tag","dsc"],["text/richtext",["rtx","rt","rtf"]],["text/scriplet","wsc"],["text/scriptlet","sct"],["text/sgml",["sgm","sgml"]],["text/tab-separated-values","tsv"],["text/troff","t"],["text/turtle","ttl"],["text/uri-list",["uni","unis","uri","uris"]],["text/vnd.abc","abc"],["text/vnd.curl","curl"],["text/vnd.curl.dcurl","dcurl"],["text/vnd.curl.mcurl","mcurl"],["text/vnd.curl.scurl","scurl"],["text/vnd.fly","fly"],["text/vnd.fmi.flexstor","flx"],["text/vnd.graphviz","gv"],["text/vnd.in3d.3dml","3dml"],["text/vnd.in3d.spot","spot"],["text/vnd.rn-realtext","rt"],["text/vnd.sun.j2me.app-descriptor","jad"],["text/vnd.wap.wml","wml"],["text/vnd.wap.wmlscript","wmls"],["text/webviewhtml","htt"],["text/x-asm",["asm","s"]],["text/x-audiosoft-intra","aip"],["text/x-c",["c","cc","cpp"]],["text/x-component","htc"],["text/x-fortran",["for","f","f77","f90"]],["text/x-h",["h","hh"]],["text/x-java-source",["java","jav"]],["text/x-java-source,java","java"],["text/x-la-asf","lsx"],["text/x-m","m"],["text/x-pascal","p"],["text/x-script","hlb"],["text/x-script.csh","csh"],["text/x-script.elisp","el"],["text/x-script.guile","scm"],["text/x-script.ksh","ksh"],["text/x-script.lisp","lsp"],["text/x-script.perl","pl"],["text/x-script.perl-module","pm"],["text/x-script.phyton","py"],["text/x-script.rexx","rexx"],["text/x-script.scheme","scm"],["text/x-script.sh","sh"],["text/x-script.tcl","tcl"],["text/x-script.tcsh","tcsh"],["text/x-script.zsh","zsh"],["text/x-server-parsed-html",["shtml","ssi"]],["text/x-setext","etx"],["text/x-sgml",["sgm","sgml"]],["text/x-speech",["spc","talk"]],["text/x-uil","uil"],["text/x-uuencode",["uu","uue"]],["text/x-vcalendar","vcs"],["text/x-vcard","vcf"],["text/xml","xml"],["video/3gpp","3gp"],["video/3gpp2","3g2"],["video/animaflex","afl"],["video/avi","avi"],["video/avs-video","avs"],["video/dl","dl"],["video/fli","fli"],["video/gl","gl"],["video/h261","h261"],["video/h263","h263"],["video/h264","h264"],["video/jpeg","jpgv"],["video/jpm","jpm"],["video/mj2","mj2"],["video/mp4","mp4"],["video/mpeg",["mpeg","mp2","mpa","mpe","mpg","mpv2","m1v","m2v","mp3"]],["video/msvideo","avi"],["video/ogg","ogv"],["video/quicktime",["mov","qt","moov"]],["video/vdo","vdo"],["video/vivo",["viv","vivo"]],["video/vnd.dece.hd","uvh"],["video/vnd.dece.mobile","uvm"],["video/vnd.dece.pd","uvp"],["video/vnd.dece.sd","uvs"],["video/vnd.dece.video","uvv"],["video/vnd.fvt","fvt"],["video/vnd.mpegurl","mxu"],["video/vnd.ms-playready.media.pyv","pyv"],["video/vnd.rn-realvideo","rv"],["video/vnd.uvvu.mp4","uvu"],["video/vnd.vivo",["viv","vivo"]],["video/vosaic","vos"],["video/webm","webm"],["video/x-amt-demorun","xdr"],["video/x-amt-showrun","xsr"],["video/x-atomic3d-feature","fmf"],["video/x-dl","dl"],["video/x-dv",["dif","dv"]],["video/x-f4v","f4v"],["video/x-fli","fli"],["video/x-flv","flv"],["video/x-gl","gl"],["video/x-isvideo","isu"],["video/x-la-asf",["lsf","lsx"]],["video/x-m4v","m4v"],["video/x-motion-jpeg","mjpg"],["video/x-mpeg",["mp3","mp2"]],["video/x-mpeq2a","mp2"],["video/x-ms-asf",["asf","asr","asx"]],["video/x-ms-asf-plugin","asx"],["video/x-ms-wm","wm"],["video/x-ms-wmv","wmv"],["video/x-ms-wmx","wmx"],["video/x-ms-wvx","wvx"],["video/x-msvideo","avi"],["video/x-qtc","qtc"],["video/x-scm","scm"],["video/x-sgi-movie",["movie","mv"]],["windows/metafile","wmf"],["www/mime","mime"],["x-conference/x-cooltalk","ice"],["x-music/x-midi",["mid","midi"]],["x-world/x-3dmf",["3dm","3dmf","qd3","qd3d"]],["x-world/x-svr","svr"],["x-world/x-vrml",["flr","vrml","wrl","wrz","xaf","xof"]],["x-world/x-vrt","vrt"],["xgl/drawing","xgz"],["xgl/movie","xmz"]]),DC=new Map([["123","application/vnd.lotus-1-2-3"],["323","text/h323"],["*","application/octet-stream"],["3dm","x-world/x-3dmf"],["3dmf","x-world/x-3dmf"],["3dml","text/vnd.in3d.3dml"],["3g2","video/3gpp2"],["3gp","video/3gpp"],["7z","application/x-7z-compressed"],["a","application/octet-stream"],["aab","application/x-authorware-bin"],["aac","audio/x-aac"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abc","text/vnd.abc"],["abw","application/x-abiword"],["ac","application/pkix-attr-cert"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acgi","text/html"],["acu","application/vnd.acucobol"],["acx","application/internet-property-stream"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afl","video/animaflex"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/postscript"],["aif",["audio/aiff","audio/x-aiff"]],["aifc",["audio/aiff","audio/x-aiff"]],["aiff",["audio/aiff","audio/x-aiff"]],["aim","application/x-aim"],["aip","text/x-audiosoft-intra"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["ani","application/x-navi-animation"],["aos","application/x-nokia-9000-communicator-add-on-software"],["apk","application/vnd.android.package-archive"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["aps","application/mime"],["arc","application/octet-stream"],["arj",["application/arj","application/octet-stream"]],["art","image/x-jg"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asp","text/asp"],["asr","video/x-ms-asf"],["asx",["video/x-ms-asf","application/x-mplayer2","video/x-ms-asf-plugin"]],["atc","application/vnd.acucorp"],["atomcat","application/atomcat+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au",["audio/basic","audio/x-au"]],["avi",["video/avi","video/msvideo","application/x-troff-msvideo","video/x-msvideo"]],["avs","video/avs-video"],["aw","application/applixware"],["axs","application/olescript"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azw","application/vnd.amazon.ebook"],["bas","text/plain"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin",["application/octet-stream","application/mac-binary","application/macbinary","application/x-macbinary","application/x-binary"]],["bm","image/bmp"],["bmi","application/vnd.bmi"],["bmp",["image/bmp","image/x-windows-bmp"]],["boo","application/book"],["book","application/book"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bsh","application/x-bsh"],["btif","image/prs.btif"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c",["text/plain","text/x-c"]],["c++","text/plain"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["c4g","application/vnd.clonk.c4group"],["cab","application/vnd.ms-cab-compressed"],["car","application/vnd.curl.car"],["cat",["application/vnd.ms-pkiseccat","application/vnd.ms-pki.seccat"]],["cc",["text/plain","text/x-c"]],["ccad","application/clariscad"],["cco","application/x-cocoa"],["ccxml","application/ccxml+xml,"],["cdbcmsg","application/vnd.contact.cmsg"],["cdf",["application/cdf","application/x-cdf","application/x-netcdf"]],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer",["application/pkix-cert","application/x-x509-ca-cert"]],["cgm","image/cgm"],["cha","application/x-chat"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cla","application/vnd.claymore"],["class",["application/octet-stream","application/java","application/java-byte-code","application/java-vm","application/x-java-class"]],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod",["image/cis-cod","application/vnd.rim.cod"]],["com",["application/octet-stream","text/plain"]],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt",["application/mac-compactpro","application/x-compactpro","application/x-cpt"]],["crd","application/x-mscardfile"],["crl",["application/pkix-crl","application/pkcs-crl"]],["crt",["application/pkix-cert","application/x-x509-user-cert","application/x-x509-ca-cert"]],["cryptonote","application/vnd.rig.cryptonote"],["csh",["text/x-script.csh","application/x-csh"]],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["css",["text/css","application/x-pointplus"]],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxx","text/plain"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["davmount","application/davmount+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["deb","application/x-debian-package"],["deepv","application/x-deepv"],["def","text/plain"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dif","video/x-dv"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["djvu","image/vnd.djvu"],["dl",["video/dl","video/x-dl"]],["dll","application/x-msdownload"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.document.macroenabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroenabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp",["application/commonground","application/vnd.osgi.dp"]],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drw","application/drafting"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dv","video/x-dv"],["dvi","application/x-dvi"],["dwf",["model/vnd.dwf","drawing/x-dwf"]],["dwg",["application/acad","image/vnd.dwg","image/x-dwg"]],["dxf",["application/dxf","image/vnd.dwg","image/vnd.dxf","image/x-dwg"]],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["el","text/x-script.elisp"],["elc",["application/x-elc","application/x-bytecode.elisp"]],["eml","message/rfc822"],["emma","application/emma+xml"],["env","application/x-envoy"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es",["application/ecmascript","application/x-esrehber"]],["es3","application/vnd.eszigno3+xml"],["esf","application/vnd.epson.esf"],["etx","text/x-setext"],["evy",["application/envoy","application/x-envoy"]],["exe",["application/octet-stream","application/x-msdownload"]],["exi","application/exi"],["ext","application/vnd.novadigm.ext"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f",["text/plain","text/x-fortran"]],["f4v","video/x-f4v"],["f77","text/x-fortran"],["f90",["text/plain","text/x-fortran"]],["fbs","image/vnd.fastbidsheet"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fh","image/x-freehand"],["fif",["application/fractals","image/fif"]],["fig","application/x-xfig"],["fli",["video/fli","video/x-fli"]],["flo",["image/florian","application/vnd.micrografx.flo"]],["flr","x-world/x-vrml"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fmf","video/x-atomic3d-feature"],["fnc","application/vnd.frogans.fnc"],["for",["text/plain","text/x-fortran"]],["fpx",["image/vnd.fpx","image/vnd.net-fpx"]],["frl","application/freeloader"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["funk","audio/make"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g","text/plain"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gdl","model/vnd.gdl"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["gl",["video/gl","video/x-gl"]],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gph","application/vnd.flographit"],["gqf","application/vnd.grafeq"],["gram","application/srgs"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsd","audio/x-gsm"],["gsf","application/x-font-ghostscript"],["gsm","audio/x-gsm"],["gsp","application/x-gsp"],["gss","application/x-gss"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxt","application/vnd.geonext"],["gz",["application/x-gzip","application/x-compressed"]],["gzip",["multipart/x-gzip","application/x-gzip"]],["h",["text/plain","text/x-h"]],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hdf","application/x-hdf"],["help","application/x-helpfile"],["hgl","application/vnd.hp-hpgl"],["hh",["text/plain","text/x-h"]],["hlb","text/x-script"],["hlp",["application/winhlp","application/hlp","application/x-helpfile","application/x-winhelp"]],["hpg","application/vnd.hp-hpgl"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx",["application/mac-binhex40","application/binhex","application/binhex4","application/mac-binhex","application/x-binhex40","application/x-mac-binhex40"]],["hta","application/hta"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["htmls","text/html"],["htt","text/webviewhtml"],["htx","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["ico","image/x-icon"],["ics","text/calendar"],["idc","text/plain"],["ief","image/ief"],["iefs","image/ief"],["ifm","application/vnd.shana.informed.formdata"],["iges",["application/iges","model/iges"]],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs",["application/iges","model/iges"]],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["iii","application/x-iphone"],["ima","application/x-ima"],["imap","application/x-httpd-imap"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["inf","application/inf"],["ins",["application/x-internet-signup","application/x-internett-signup"]],["ip","application/x-ip2"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["isp","application/x-internet-signup"],["isu","video/x-isvideo"],["it","audio/it"],["itp","application/vnd.shana.informed.formtemplate"],["iv","application/x-inventor"],["ivp","application/vnd.immervision-ivp"],["ivr","i-world/i-vrml"],["ivu","application/vnd.immervision-ivu"],["ivy","application/x-livescreen"],["jad","text/vnd.sun.j2me.app-descriptor"],["jam",["application/vnd.jam","audio/x-jam"]],["jar","application/java-archive"],["jav",["text/plain","text/x-java-source"]],["java",["text/plain","text/x-java-source,java","text/x-java-source"]],["jcm","application/x-java-commerce"],["jfif",["image/pipeg","image/jpeg","image/pjpeg"]],["jfif-tbnl","image/jpeg"],["jisp","application/vnd.jisp"],["jlt","application/vnd.hp-jlyt"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jpe",["image/jpeg","image/pjpeg"]],["jpeg",["image/jpeg","image/pjpeg"]],["jpg",["image/jpeg","image/pjpeg"]],["jpgv","video/jpeg"],["jpm","video/jpm"],["jps","image/x-jps"],["js",["application/javascript","application/ecmascript","text/javascript","text/ecmascript","application/x-javascript"]],["json","application/json"],["jut","image/jutvision"],["kar",["audio/midi","music/x-karaoke"]],["karbon","application/vnd.kde.karbon"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["ksh",["application/x-ksh","text/x-script.ksh"]],["ksp","application/vnd.kde.kspread"],["ktx","image/ktx"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["la",["audio/nspaudio","audio/x-nspaudio"]],["lam","audio/x-liveaudio"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["lha",["application/octet-stream","application/lha","application/x-lha"]],["lhx","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["lma",["audio/nspaudio","audio/x-nspaudio"]],["log","text/plain"],["lrm","application/vnd.ms-lrm"],["lsf","video/x-la-asf"],["lsp",["application/x-lisp","text/x-script.lisp"]],["lst","text/plain"],["lsx",["video/x-la-asf","text/x-la-asf"]],["ltf","application/vnd.frogans.ltf"],["ltx","application/x-latex"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh",["application/octet-stream","application/x-lzh"]],["lzx",["application/lzx","application/octet-stream","application/x-lzx"]],["m",["text/plain","text/x-m"]],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m1v","video/mpeg"],["m21","application/mp21"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3u",["audio/x-mpegurl","audio/x-mpequrl"]],["m3u8","application/vnd.apple.mpegurl"],["m4v","video/x-m4v"],["ma","application/mathematica"],["mads","application/mads+xml"],["mag","application/vnd.ecowin.chart"],["man","application/x-troff-man"],["map","application/x-navimap"],["mar","text/plain"],["mathml","application/mathml+xml"],["mbd","application/mbedlet"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc$","application/x-magic-cap-package-1.0"],["mc1","application/vnd.medcalcdata"],["mcd",["application/mcad","application/vnd.mcd","application/x-mathcad"]],["mcf",["image/vasa","text/mcf"]],["mcp","application/netmc"],["mcurl","text/vnd.curl.mcurl"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["me","application/x-troff-me"],["meta4","application/metalink4+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mht","message/rfc822"],["mhtml","message/rfc822"],["mid",["audio/mid","audio/midi","music/crescendo","x-music/x-midi","audio/x-midi","application/x-midi","audio/x-mid"]],["midi",["audio/midi","music/crescendo","x-music/x-midi","audio/x-midi","application/x-midi","audio/x-mid"]],["mif",["application/vnd.mif","application/x-mif","application/x-frame"]],["mime",["message/rfc822","www/mime"]],["mj2","video/mj2"],["mjf","audio/x-vnd.audioexplosion.mjuicemediafile"],["mjpg","video/x-motion-jpeg"],["mlp","application/vnd.dolby.mlp"],["mm",["application/base64","application/x-meme"]],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mme","application/base64"],["mmf","application/vnd.smaf"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mny","application/x-msmoney"],["mod",["audio/mod","audio/x-mod"]],["mods","application/mods+xml"],["moov","video/quicktime"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2",["video/mpeg","audio/mpeg","video/x-mpeg","audio/x-mpeg","video/x-mpeq2a"]],["mp3",["audio/mpeg","audio/mpeg3","video/mpeg","audio/x-mpeg-3","video/x-mpeg"]],["mp4",["video/mp4","application/mp4"]],["mp4a","audio/mp4"],["mpa",["video/mpeg","audio/mpeg"]],["mpc",["application/vnd.mophun.certificate","application/x-project"]],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg",["video/mpeg","audio/mpeg"]],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/x-project"],["mpv","application/x-project"],["mpv2","video/mpeg"],["mpx","application/x-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","application/x-troff-ms"],["mscml","application/mediaservercontrol+xml"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msl","application/vnd.mobius.msl"],["msty","application/vnd.muvee.style"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musicxml","application/vnd.recordare.musicxml+xml"],["mv","video/x-sgi-movie"],["mvb","application/x-msmediaview"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["my","audio/make"],["mzz","application/x-vnd.audioexplosion.mzz"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nap","image/naplps"],["naplps","image/naplps"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncm","application/vnd.nokia.configuration-message"],["ncx","application/x-dtbncx+xml"],["ngdat","application/vnd.nokia.n-gage.data"],["nif","image/x-niff"],["niff","image/x-niff"],["nix","application/x-mix-transfer"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nvd","application/x-navidoc"],["nws","message/rfc822"],["o","application/octet-stream"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omc","application/x-omc"],["omcd","application/x-omcdatamaker"],["omcr","application/x-omcregerator"],["onetoc","application/onenote"],["opf","application/oebps-package+xml"],["org","application/vnd.lotus-organizer"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","application/x-font-otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p10",["application/pkcs10","application/x-pkcs10"]],["p12",["application/pkcs-12","application/x-pkcs12"]],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c",["application/pkcs7-mime","application/x-pkcs7-mime"]],["p7m",["application/pkcs7-mime","application/x-pkcs7-mime"]],["p7r","application/x-pkcs7-certreqresp"],["p7s",["application/pkcs7-signature","application/x-pkcs7-signature"]],["p8","application/pkcs8"],["par","text/plain-bas"],["part","application/pro_eng"],["pas","text/pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcf","application/x-font-pcf"],["pcl",["application/vnd.hp-pcl","application/x-pcl"]],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb",["application/vnd.palm","chemical/x-pdb"]],["pdf","application/pdf"],["pfa","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfunk",["audio/make","audio/make.my.funk"]],["pfx","application/x-pkcs12"],["pgm",["image/x-portable-graymap","image/x-portable-greymap"]],["pgn","application/x-chess-pgn"],["pgp","application/pgp-signature"],["pic",["image/pict","image/x-pict"]],["pict","image/pict"],["pkg","application/x-newton-compatible-pkg"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pko",["application/ynd.ms-pkipko","application/vnd.ms-pki.pko"]],["pl",["text/plain","text/x-script.perl"]],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["plx","application/x-pixclscript"],["pm",["text/x-script.perl-module","image/x-xpixmap"]],["pm4","application/x-pagemaker"],["pm5","application/x-pagemaker"],["pma","application/x-perfmon"],["pmc","application/x-perfmon"],["pml",["application/vnd.ctc-posml","application/x-perfmon"]],["pmr","application/x-perfmon"],["pmw","application/x-perfmon"],["png","image/png"],["pnm",["application/x-portable-anymap","image/x-portable-anymap"]],["portpkg","application/vnd.macports.portpkg"],["pot",["application/vnd.ms-powerpoint","application/mspowerpoint"]],["potm","application/vnd.ms-powerpoint.template.macroenabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["pov","model/x-pov"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps",["application/vnd.ms-powerpoint","application/mspowerpoint"]],["ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt",["application/vnd.ms-powerpoint","application/mspowerpoint","application/powerpoint","application/x-mspowerpoint"]],["pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["ppz","application/mspowerpoint"],["prc","application/x-mobipocket-ebook"],["pre",["application/vnd.lotus-freelance","application/x-freelance"]],["prf","application/pics-rules"],["prt","application/pro_eng"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd",["application/octet-stream","image/vnd.adobe.photoshop"]],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pvu","paleovu/x-pv"],["pwn","application/vnd.3m.post-it-notes"],["pwz","application/vnd.ms-powerpoint"],["py","text/x-script.phyton"],["pya","audio/vnd.ms-playready.media.pya"],["pyc","application/x-bytecode.python"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qcp","audio/vnd.qcelp"],["qd3","x-world/x-3dmf"],["qd3d","x-world/x-3dmf"],["qfx","application/vnd.intu.qfx"],["qif","image/x-quicktime"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qtc","video/x-qtc"],["qti","image/x-quicktime"],["qtif","image/x-quicktime"],["qxd","application/vnd.quark.quarkxpress"],["ra",["audio/x-realaudio","audio/x-pn-realaudio","audio/x-pn-realaudio-plugin"]],["ram","audio/x-pn-realaudio"],["rar","application/x-rar-compressed"],["ras",["image/cmu-raster","application/x-cmu-raster","image/x-cmu-raster"]],["rast","image/cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rexx","text/x-script.rexx"],["rf","image/vnd.rn-realflash"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm",["application/vnd.rn-realmedia","audio/x-pn-realaudio"]],["rmi","audio/mid"],["rmm","audio/x-pn-realaudio"],["rmp",["audio/x-pn-realaudio-plugin","audio/x-pn-realaudio"]],["rms","application/vnd.jcp.javame.midlet-rms"],["rnc","application/relax-ng-compact-syntax"],["rng",["application/ringing-tones","application/vnd.nokia.ringing-tone"]],["rnx","application/vnd.rn-realplayer"],["roff","application/x-troff"],["rp","image/vnd.rn-realpix"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsd","application/rsd+xml"],["rt",["text/richtext","text/vnd.rn-realtext"]],["rtf",["application/rtf","text/richtext","application/x-rtf"]],["rtx",["text/richtext","application/rtf"]],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["saveme","application/octet-stream"],["sbk","application/x-tbook"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm",["application/vnd.lotus-screencam","video/x-scm","text/x-script.guile","application/x-lotusscreencam","text/x-script.scheme"]],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["sct","text/scriptlet"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkm","application/vnd.solent.sdkm+xml"],["sdml","text/plain"],["sdp",["application/sdp","application/x-sdp"]],["sdr","application/sounder"],["sdw","application/vnd.stardivision.writer"],["sea",["application/sea","application/x-sea"]],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["ser","application/java-serialized-object"],["set","application/set"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sgl","application/vnd.stardivision.writer-global"],["sgm",["text/sgml","text/x-sgml"]],["sgml",["text/sgml","text/x-sgml"]],["sh",["application/x-shar","application/x-bsh","application/x-sh","text/x-script.sh"]],["shar",["application/x-bsh","application/x-shar"]],["shf","application/shf+xml"],["shtml",["text/html","text/x-server-parsed-html"]],["sid","audio/x-psid"],["sis","application/vnd.symbian.install"],["sit",["application/x-stuffit","application/x-sit"]],["sitx","application/x-stuffitx"],["skd","application/x-koan"],["skm","application/x-koan"],["skp",["application/vnd.koan","application/x-koan"]],["skt","application/x-koan"],["sl","application/x-seelogo"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi",["application/smil","application/smil+xml"]],["smil","application/smil"],["snd",["audio/basic","audio/x-adpcm"]],["snf","application/x-font-snf"],["sol","application/solids"],["spc",["text/x-speech","application/x-pkcs7-certificates"]],["spf","application/vnd.yamaha.smaf-phrase"],["spl",["application/futuresplash","application/x-futuresplash"]],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spr","application/x-sprite"],["sprite","application/x-sprite"],["src","application/x-wais-source"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssi","text/x-server-parsed-html"],["ssm","application/streamingmedia"],["ssml","application/ssml+xml"],["sst",["application/vnd.ms-pkicertstore","application/vnd.ms-pki.certstore"]],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["step","application/step"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl",["application/vnd.ms-pkistl","application/sla","application/vnd.ms-pki.stl","application/x-navistyle"]],["stm","text/html"],["stp","application/step"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["sub","image/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svf",["image/vnd.dwg","image/x-dwg"]],["svg","image/svg+xml"],["svr",["x-world/x-svr","application/x-world"]],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t",["text/troff","application/x-troff"]],["talk","text/x-speech"],["tao","application/vnd.tao.intent-module-archive"],["tar","application/x-tar"],["tbk",["application/toolbook","application/x-tbook"]],["tcap","application/vnd.3gpp2.tcap"],["tcl",["text/x-script.tcl","application/x-tcl"]],["tcsh","text/x-script.tcsh"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text",["application/plain","text/plain"]],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tgz",["application/gnutar","application/x-compressed"]],["thmx","application/vnd.ms-officetheme"],["tif",["image/tiff","image/x-tiff"]],["tiff",["image/tiff","image/x-tiff"]],["tmo","application/vnd.tmobile-livetv"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","application/x-troff"],["tra","application/vnd.trueapp"],["trm","application/x-msterminal"],["tsd","application/timestamped-data"],["tsi","audio/tsp-audio"],["tsp",["application/dsptype","audio/tsplayer"]],["tsv","text/tab-separated-values"],["ttf","application/x-font-ttf"],["ttl","text/turtle"],["turbot","image/florian"],["twd","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["ufd","application/vnd.ufdl"],["uil","text/x-uil"],["uls","text/iuls"],["umj","application/vnd.umajin"],["uni","text/uri-list"],["unis","text/uri-list"],["unityweb","application/vnd.unity"],["unv","application/i-deas"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["ustar",["application/x-ustar","multipart/x-ustar"]],["utz","application/vnd.uiq.theme"],["uu",["application/octet-stream","text/x-uuencode"]],["uue","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vda","application/vda"],["vdo","video/vdo"],["vew","application/groupwise"],["vis","application/vnd.visionary"],["viv",["video/vivo","video/vnd.vivo"]],["vivo",["video/vivo","video/vnd.vivo"]],["vmd","application/vocaltec-media-desc"],["vmf","application/vocaltec-media-file"],["voc",["audio/voc","audio/x-voc"]],["vos","video/vosaic"],["vox","audio/voxware"],["vqe","audio/x-twinvq-plugin"],["vqf","audio/x-twinvq"],["vql","audio/x-twinvq-plugin"],["vrml",["model/vrml","x-world/x-vrml","application/x-vrml"]],["vrt","x-world/x-vrt"],["vsd",["application/vnd.visio","application/x-visio"]],["vsf","application/vnd.vsf"],["vst","application/x-visio"],["vsw","application/x-visio"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w60","application/wordperfect6.0"],["w61","application/wordperfect6.1"],["w6w","application/msword"],["wad","application/x-doom"],["wav",["audio/wav","audio/x-wav"]],["wax","audio/x-ms-wax"],["wb1","application/x-qpro"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/vnd.wap.wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["web","application/vnd.xara"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wiz","application/msword"],["wk1","application/x-123"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf",["windows/metafile","application/x-msmetafile"]],["wml","text/vnd.wap.wml"],["wmlc","application/vnd.wap.wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-ms-wmz"],["woff","application/x-font-woff"],["word","application/msword"],["wp","application/wordperfect"],["wp5",["application/wordperfect","application/wordperfect6.0"]],["wp6","application/wordperfect"],["wpd",["application/wordperfect","application/vnd.wordperfect","application/x-wpwin"]],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wq1","application/x-lotus"],["wqd","application/vnd.wqd"],["wri",["application/mswrite","application/x-wri","application/x-mswrite"]],["wrl",["model/vrml","x-world/x-vrml","application/x-world"]],["wrz",["model/vrml","x-world/x-vrml"]],["wsc","text/scriplet"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wsrc","application/x-wais-source"],["wtb","application/vnd.webturbo"],["wtk","application/x-wintalk"],["wvx","video/x-ms-wvx"],["x-png","image/png"],["x3d","application/vnd.hzn-3d-crossword"],["xaf","x-world/x-vrml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm",["image/xbm","image/x-xbm","image/x-xbitmap"]],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdr","video/x-amt-demorun"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xgz","xgl/drawing"],["xhtml","application/xhtml+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xlam","application/vnd.ms-excel.addin.macroenabled.12"],["xlb",["application/excel","application/vnd.ms-excel","application/x-excel"]],["xlc",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xld",["application/excel","application/x-excel"]],["xlk",["application/excel","application/x-excel"]],["xll",["application/excel","application/vnd.ms-excel","application/x-excel"]],["xlm",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xls",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroenabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xltm","application/vnd.ms-excel.template.macroenabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlv",["application/excel","application/x-excel"]],["xlw",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xm","audio/xm"],["xml",["application/xml","text/xml","application/atom+xml","application/rss+xml"]],["xmz","xgl/movie"],["xo","application/vnd.olpc-sugar"],["xof","x-world/x-vrml"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpix","application/x-vnd.ls-xpix"],["xpm",["image/xpm","image/x-xpixmap"]],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xsr","video/x-amt-showrun"],["xul","application/vnd.mozilla.xul+xml"],["xwd",["image/x-xwd","image/x-xwindowdump"]],["xyz",["chemical/x-xyz","chemical/x-pdb"]],["yang","application/yang"],["yin","application/yin+xml"],["z",["application/x-compressed","application/x-compress"]],["zaz","application/vnd.zzazz.deck+xml"],["zip",["application/zip","multipart/x-zip","application/x-zip-compressed","application/x-compressed"]],["zir","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zoo","application/octet-stream"],["zsh","text/x-script.zsh"]]);kC.exports={detectMimeType(s){if(!s)return bC;let e=MM.parse(s),t=(e.ext.substr(1)||e.name||"").split("?").shift().trim().toLowerCase(),i=bC;return DC.has(t)&&(i=DC.get(t)),Array.isArray(i)?i[0]:i},detectExtension(s){if(!s)return RM;let e=(s||"").toLowerCase().trim().split("/"),t=e.shift().trim(),i=e.join("/").trim();if(wC.has(t+"/"+i)){let r=wC.get(t+"/"+i);return Array.isArray(r)?r[0]:r}switch(t){case"text":return"txt";default:return"bin"}}}});var ud=O((Fie,PC)=>{"use strict";h();var EC="-",qM=/^xn--/,UM=/[^\0-\x7F]/,HM=/[\x2E\u3002\uFF0E\uFF61]/g,$M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},nd=35,Xt=Math.floor,od=String.fromCharCode;function Ls(s){throw new RangeError($M[s])}function VM(s,e){let t=[],i=s.length;for(;i--;)t[i]=e(s[i]);return t}function CC(s,e){let t=s.split("@"),i="";t.length>1&&(i=t[0]+"@",s=t[1]),s=s.replace(HM,".");let r=s.split("."),a=VM(r,e).join(".");return i+a}function TC(s){let e=[],t=0,i=s.length;for(;t<i;){let r=s.charCodeAt(t++);if(r>=55296&&r<=56319&&t<i){let a=s.charCodeAt(t++);(a&64512)==56320?e.push(((r&1023)<<10)+(a&1023)+65536):(e.push(r),t--)}else e.push(r)}return e}var WM=s=>String.fromCodePoint(...s),GM=function(s){return s>=48&&s<58?26+(s-48):s>=65&&s<91?s-65:s>=97&&s<123?s-97:36},vC=function(s,e){return s+22+75*(s<26)-((e!=0)<<5)},SC=function(s,e,t){let i=0;for(s=t?Xt(s/700):s>>1,s+=Xt(s/e);s>nd*26>>1;i+=36)s=Xt(s/nd);return Xt(i+(nd+1)*s/(s+38))},AC=function(s){let e=[],t=s.length,i=0,r=128,a=72,n=s.lastIndexOf(EC);n<0&&(n=0);for(let o=0;o<n;++o)s.charCodeAt(o)>=128&&Ls("not-basic"),e.push(s.charCodeAt(o));for(let o=n>0?n+1:0;o<t;){let u=i;for(let l=1,p=36;;p+=36){o>=t&&Ls("invalid-input");let d=GM(s.charCodeAt(o++));d>=36&&Ls("invalid-input"),d>Xt((2147483647-i)/l)&&Ls("overflow"),i+=d*l;let m=p<=a?1:p>=a+26?26:p-a;if(d<m)break;let f=36-m;l>Xt(2147483647/f)&&Ls("overflow"),l*=f}let c=e.length+1;a=SC(i-u,c,u==0),Xt(i/c)>2147483647-r&&Ls("overflow"),r+=Xt(i/c),i%=c,e.splice(i++,0,r)}return String.fromCodePoint(...e)},jC=function(s){let e=[];s=TC(s);let t=s.length,i=128,r=0,a=72;for(let u of s)u<128&&e.push(od(u));let n=e.length,o=n;for(n&&e.push(EC);o<t;){let u=2147483647;for(let l of s)l>=i&&l<u&&(u=l);let c=o+1;u-i>Xt((2147483647-r)/c)&&Ls("overflow"),r+=(u-i)*c,i=u;for(let l of s)if(l<i&&++r>2147483647&&Ls("overflow"),l===i){let p=r;for(let d=36;;d+=36){let m=d<=a?1:d>=a+26?26:d-a;if(p<m)break;let f=p-m,g=36-m;e.push(od(vC(m+f%g,0))),p=Xt(f/g)}e.push(od(vC(p,0))),a=SC(r,c,o===n),r=0,++o}++r,++i}return e.join("")},KM=function(s){return CC(s,function(e){return qM.test(e)?AC(e.slice(4).toLowerCase()):e})},JM=function(s){return CC(s,function(e){return UM.test(e)?"xn--"+jC(e):e})},XM={version:"2.3.1",ucs2:{decode:TC,encode:WM},decode:AC,encode:jC,toASCII:JM,toUnicode:KM};PC.exports=XM});var hd=O((_ie,FC)=>{"use strict";h();var YM=M("stream").Transform;function cd(s){return typeof s=="string"&&(s=Buffer.from(s,"utf-8")),s.toString("base64")}function ld(s,e){if(s=(s||"").toString(),e=e||76,s.length<=e)return s;let t=[],i=0,r=e*1024;for(;i<s.length;){let a=s.substr(i,r).replace(new RegExp(".{"+e+"}","g"),`$&\r
`).trim();t.push(a),i+=r}return t.join(`\r
`).trim()}var pd=class extends YM{constructor(e){super(),this.options=e||{},this.options.lineLength!==!1&&(this.options.lineLength=this.options.lineLength||76),this._curLine="",this._remainingBytes=!1,this.inputBytes=0,this.outputBytes=0}_transform(e,t,i){if(t!=="buffer"&&(e=Buffer.from(e,t)),!e||!e.length)return setImmediate(i);this.inputBytes+=e.length,this._remainingBytes&&this._remainingBytes.length&&(e=Buffer.concat([this._remainingBytes,e],this._remainingBytes.length+e.length),this._remainingBytes=!1),e.length%3?(this._remainingBytes=e.slice(e.length-e.length%3),e=e.slice(0,e.length-e.length%3)):this._remainingBytes=!1;let r=this._curLine+cd(e);if(this.options.lineLength){r=ld(r,this.options.lineLength);let a=r.lastIndexOf(`
`);a<0?(this._curLine=r,r=""):a===r.length-1?this._curLine="":(this._curLine=r.substr(a+1),r=r.substr(0,a+1))}r&&(this.outputBytes+=r.length,this.push(Buffer.from(r,"ascii"))),setImmediate(i)}_flush(e){this._remainingBytes&&this._remainingBytes.length&&(this._curLine+=cd(this._remainingBytes)),this._curLine&&(this._curLine=ld(this._curLine,this.options.lineLength),this.outputBytes+=this._curLine.length,this.push(this._curLine,"ascii"),this._curLine=""),e()}};FC.exports={encode:cd,wrap:ld,Encoder:pd}});var md=O((Bie,_C)=>{"use strict";h();var QM=M("stream").Transform;function dd(s){typeof s=="string"&&(s=Buffer.from(s,"utf-8"));let e=[[9],[10],[13],[32,60],[62,126]],t="",i;for(let r=0,a=s.length;r<a;r++){if(i=s[r],ZM(i,e)&&!((i===32||i===9)&&(r===a-1||s[r+1]===10||s[r+1]===13))){t+=String.fromCharCode(i);continue}t+="="+(i<16?"0":"")+i.toString(16).toUpperCase()}return t}function IC(s,e){if(s=(s||"").toString(),e=e||76,s.length<=e)return s;let t=0,i=s.length,r,a,n,o=Math.floor(e/3),u="";for(;t<i;){if(n=s.substr(t,e),r=n.match(/\r\n/)){n=n.substr(0,r.index+r[0].length),u+=n,t+=n.length;continue}if(n.substr(-1)===`
`){u+=n,t+=n.length;continue}else if(r=n.substr(-o).match(/\n.*?$/)){n=n.substr(0,n.length-(r[0].length-1)),u+=n,t+=n.length;continue}else if(n.length>e-o&&(r=n.substr(-o).match(/[ \t.,!?][^ \t.,!?]*$/)))n=n.substr(0,n.length-(r[0].length-1));else if(n.match(/[=][\da-f]{0,2}$/i))for((r=n.match(/[=][\da-f]{0,1}$/i))&&(n=n.substr(0,n.length-r[0].length));n.length>3&&n.length<i-t&&!n.match(/^(?:=[\da-f]{2}){1,4}$/i)&&(r=n.match(/[=][\da-f]{2}$/gi))&&(a=parseInt(r[0].substr(1,2),16),!(a<128||(n=n.substr(0,n.length-3),a>=192))););t+n.length<i&&n.substr(-1)!==`
`?(n.length===e&&n.match(/[=][\da-f]{2}$/i)?n=n.substr(0,n.length-3):n.length===e&&(n=n.substr(0,n.length-1)),t+=n.length,n+=`=\r
`):t+=n.length,u+=n}return u}function ZM(s,e){for(let t=e.length-1;t>=0;t--)if(e[t].length&&(e[t].length===1&&s===e[t][0]||e[t].length===2&&s>=e[t][0]&&s<=e[t][1]))return!0;return!1}var fd=class extends QM{constructor(e){super(),this.options=e||{},this.options.lineLength!==!1&&(this.options.lineLength=this.options.lineLength||76),this._curLine="",this.inputBytes=0,this.outputBytes=0}_transform(e,t,i){let r;if(t!=="buffer"&&(e=Buffer.from(e,t)),!e||!e.length)return i();this.inputBytes+=e.length,this.options.lineLength?(r=this._curLine+dd(e),r=IC(r,this.options.lineLength),r=r.replace(/(^|\n)([^\n]*)$/,(a,n,o)=>(this._curLine=o,n)),r&&(this.outputBytes+=r.length,this.push(r))):(r=dd(e),this.outputBytes+=r.length,this.push(r,"ascii")),i()}_flush(e){this._curLine&&(this.outputBytes+=this._curLine.length,this.push(this._curLine,"ascii")),e()}};_C.exports={encode:dd,wrap:IC,Encoder:fd}});var Wa=O((Lie,BC)=>{"use strict";h();var Va=hd(),e5=md(),NC=ad();BC.exports={isPlainText(s,e){return!(typeof s!="string"||(e?/[\x00-\x08\x0b\x0c\x0e-\x1f"\u0080-\uFFFF]/:/[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/).test(s))},hasLongerLines(s,e){return s.length>128*1024?!0:new RegExp("^.{"+(e+1)+",}","m").test(s)},encodeWord(s,e,t){e=(e||"Q").toString().toUpperCase().trim().charAt(0),t=t||0;let i,r="UTF-8";if(t&&t>7+r.length&&(t-=7+r.length),e==="Q"?i=e5.encode(s).replace(/[^a-z0-9!*+\-/=]/gi,a=>{let n=a.charCodeAt(0).toString(16).toUpperCase();return a===" "?"_":"="+(n.length===1?"0"+n:n)}):e==="B"&&(i=typeof s=="string"?s:Va.encode(s),t=t?Math.max(3,(t-t%4)/4*3):0),t&&(e!=="B"?i:Va.encode(s)).length>t)if(e==="Q")i=this.splitMimeEncodedString(i,t).join("?= =?"+r+"?"+e+"?");else{let a=[],n="";for(let o=0,u=i.length;o<u;o++){let c=i.charAt(o);/[\ud83c\ud83d\ud83e]/.test(c)&&o<u-1&&(c+=i.charAt(++o)),Buffer.byteLength(n+c)<=t||o===0?n+=c:(a.push(Va.encode(n)),n=c)}n&&a.push(Va.encode(n)),a.length>1?i=a.join("?= =?"+r+"?"+e+"?"):i=a.join("")}else e==="B"&&(i=Va.encode(s));return"=?"+r+"?"+e+"?"+i+(i.substr(-2)==="?="?"":"?=")},encodeWords(s,e,t,i){t=t||0;let r,a=s.match(/(?:^|\s)([^\s]*["\u0080-\uFFFF])/);if(!a)return s;if(i)return this.encodeWord(s,e,t);let n=s.match(/(["\u0080-\uFFFF][^\s]*)[^"\u0080-\uFFFF]*$/);if(!n)return s;let o=a.index+(a[0].match(/[^\s]/)||{index:0}).index,u=n.index+(n[1]||"").length;return r=(o?s.substr(0,o):"")+this.encodeWord(s.substring(o,u),e||"Q",t)+(u<s.length?s.substr(u):""),r},buildHeaderValue(s){let e=[];return Object.keys(s.params||{}).forEach(t=>{let i=s.params[t];!this.isPlainText(i,!0)||i.length>=75?this.buildHeaderParam(t,i,50).forEach(r=>{!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(r.value)||r.key.substr(-1)==="*"?e.push(r.key+"="+r.value):e.push(r.key+"="+JSON.stringify(r.value))}):/[\s'"\\;:/=(),<>@[\]?]|^-/.test(i)?e.push(t+"="+JSON.stringify(i)):e.push(t+"="+i)}),s.value+(e.length?"; "+e.join("; "):"")},buildHeaderParam(s,e,t){let i=[],r=typeof e=="string"?e:(e||"").toString(),a,n,o,u,c=0,l,p;if(t=t||50,this.isPlainText(e,!0)){if(r.length<=t)return[{key:s,value:r}];r=r.replace(new RegExp(".{"+t+"}","g"),d=>(i.push({line:d}),"")),r&&i.push({line:r})}else{if(/[\uD800-\uDBFF]/.test(r)){for(a=[],l=0,p=r.length;l<p;l++)n=r.charAt(l),o=n.charCodeAt(0),o>=55296&&o<=56319&&l<p-1?(n+=r.charAt(l+1),a.push(n),l++):a.push(n);r=a}u="utf-8''";let d=!0;for(c=0,l=0,p=r.length;l<p;l++){if(n=r[l],d)n=this.safeEncodeURIComponent(n);else if(n=n===" "?n:this.safeEncodeURIComponent(n),n!==r[l])if((this.safeEncodeURIComponent(u)+n).length>=t)i.push({line:u,encoded:d}),u="",c=l-1;else{d=!0,l=c,u="";continue}(u+n).length>=t?(i.push({line:u,encoded:d}),u=n=r[l]===" "?" ":this.safeEncodeURIComponent(r[l]),n===r[l]?(d=!1,c=l-1):d=!0):u+=n}u&&i.push({line:u,encoded:d})}return i.map((d,m)=>({key:s+"*"+m+(d.encoded?"*":""),value:d.line}))},parseHeaderValue(s){let e={value:!1,params:{}},t=!1,i="",r="value",a=!1,n=!1,o;for(let u=0,c=s.length;u<c;u++)if(o=s.charAt(u),r==="key"){if(o==="="){t=i.trim().toLowerCase(),r="value",i="";continue}i+=o}else{if(n)i+=o;else if(o==="\\"){n=!0;continue}else a&&o===a?a=!1:!a&&o==='"'?a=o:!a&&o===";"?(t===!1?e.value=i.trim():e.params[t]=i.trim(),r="key",i=""):i+=o;n=!1}return r==="value"?t===!1?e.value=i.trim():e.params[t]=i.trim():i.trim()&&(e.params[i.trim().toLowerCase()]=""),Object.keys(e.params).forEach(u=>{let c,l,p,d;(p=u.match(/(\*(\d+)|\*(\d+)\*|\*)$/))&&(c=u.substr(0,p.index),l=Number(p[2]||p[3])||0,(!e.params[c]||typeof e.params[c]!="object")&&(e.params[c]={charset:!1,values:[]}),d=e.params[u],l===0&&p[0].substr(-1)==="*"&&(p=d.match(/^([^']*)'[^']*'(.*)$/))&&(e.params[c].charset=p[1]||"iso-8859-1",d=p[2]),e.params[c].values[l]=d,delete e.params[u])}),Object.keys(e.params).forEach(u=>{let c;e.params[u]&&Array.isArray(e.params[u].values)&&(c=e.params[u].values.map(l=>l||"").join(""),e.params[u].charset?e.params[u]="=?"+e.params[u].charset+"?Q?"+c.replace(/[=?_\s]/g,l=>{let p=l.charCodeAt(0).toString(16);return l===" "?"_":"%"+(p.length<2?"0":"")+p}).replace(/%/g,"=")+"?=":e.params[u]=c)}),e},detectExtension:s=>NC.detectExtension(s),detectMimeType:s=>NC.detectMimeType(s),foldLines(s,e,t){s=(s||"").toString(),e=e||76;let i=0,r=s.length,a="",n,o;for(;i<r;){if(n=s.substr(i,e),n.length<e){a+=n;break}if(o=n.match(/^[^\n\r]*(\r?\n|\r)/)){n=o[0],a+=n,i+=n.length;continue}else(o=n.match(/(\s+)[^\s]*$/))&&o[0].length-(t?(o[1]||"").length:0)<n.length?n=n.substr(0,n.length-(o[0].length-(t?(o[1]||"").length:0))):(o=s.substr(i+n.length).match(/^[^\s]+(\s*)/))&&(n=n+o[0].substr(0,o[0].length-(t?0:(o[1]||"").length)));a+=n,i+=n.length,i<r&&(a+=`\r
`)}return a},splitMimeEncodedString:(s,e)=>{let t,i,r,a,n=[];for(e=Math.max(e||0,12);s.length;){for(t=s.substr(0,e),(i=t.match(/[=][0-9A-F]?$/i))&&(t=t.substr(0,i.index)),a=!1;!a;)a=!0,(i=s.substr(t.length).match(/^[=]([0-9A-F]{2})/i))&&(r=parseInt(i[1],16),r<194&&r>127&&(t=t.substr(0,t.length-3),a=!1));t.length&&n.push(t),s=s.substr(t.length)}return n},encodeURICharComponent:s=>{let e="",t=s.charCodeAt(0).toString(16).toUpperCase();if(t.length%2&&(t="0"+t),t.length>2)for(let i=0,r=t.length/2;i<r;i++)e+="%"+t.substr(i,2);else e+="%"+t;return e},safeEncodeURIComponent(s){s=(s||"").toString();try{s=encodeURIComponent(s)}catch{return s.replace(/[^\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]+/g,"")}return s.replace(/[\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]/g,e=>this.encodeURICharComponent(e))}}});var zC=O((Mie,LC)=>{"use strict";h();function t5(s){let e=!1,t="text",i,r=[],a={address:[],comment:[],group:[],text:[]},n,o;for(n=0,o=s.length;n<o;n++){let u=s[n],c=n?s[n-1]:null;if(u.type==="operator")switch(u.value){case"<":t="address";break;case"(":t="comment";break;case":":t="group",e=!0;break;default:t="text";break}else u.value&&(t==="address"&&(u.value=u.value.replace(/^[^<]*<\s*/,"")),c&&c.noBreak&&a[t].length?a[t][a[t].length-1]+=u.value:a[t].push(u.value))}if(!a.text.length&&a.comment.length&&(a.text=a.comment,a.comment=[]),e)a.text=a.text.join(" "),r.push({name:a.text||i&&i.name,group:a.group.length?OC(a.group.join(",")):[]});else{if(!a.address.length&&a.text.length){for(n=a.text.length-1;n>=0;n--)if(a.text[n].match(/^[^@\s]+@[^@\s]+$/)){a.address=a.text.splice(n,1);break}let u=function(c){return a.address.length?c:(a.address=[c.trim()]," ")};if(!a.address.length)for(n=a.text.length-1;n>=0&&(a.text[n]=a.text[n].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,u).trim(),!a.address.length);n--);}if(!a.text.length&&a.comment.length&&(a.text=a.comment,a.comment=[]),a.address.length>1&&(a.text=a.text.concat(a.address.splice(1))),a.text=a.text.join(" "),a.address=a.address.join(" "),!a.address&&e)return[];i={address:a.address||a.text||"",name:a.text||a.address||""},i.address===i.name&&((i.address||"").match(/@/)?i.name="":i.address=""),r.push(i)}return r}var gd=class{constructor(e){this.str=(e||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let e=[];for(let t=0,i=this.str.length;t<i;t++){let r=this.str.charAt(t),a=t<i-1?this.str.charAt(t+1):null;this.checkChar(r,a)}return this.list.forEach(t=>{t.value=(t.value||"").toString().trim(),t.value&&e.push(t)}),e}checkChar(e,t){if(!this.escaped){if(e===this.operatorExpecting){this.node={type:"operator",value:e},t&&![" "," ","\r",`
`,",",";"].includes(t)&&(this.node.noBreak=!0),this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=!1;return}else if(!this.operatorExpecting&&e in this.operators){this.node={type:"operator",value:e},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[e],this.escaped=!1;return}else if(['"',"'"].includes(this.operatorExpecting)&&e==="\\"){this.escaped=!0;return}}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),e===`
`&&(e=" "),(e.charCodeAt(0)>=33||[" "," "].includes(e))&&(this.node.value+=e),this.escaped=!1}};function OC(s,e){e=e||{};let i=new gd(s).tokenize(),r=[],a=[],n=[];if(i.forEach(o=>{o.type==="operator"&&(o.value===","||o.value===";")?(a.length&&r.push(a),a=[]):a.push(o)}),a.length&&r.push(a),r.forEach(o=>{o=t5(o),o.length&&(n=n.concat(o))}),e.flatten){let o=[],u=c=>{c.forEach(l=>{if(l.group)return u(l.group);o.push(l)})};return u(n),o}return n}LC.exports=OC});var RC=O((qie,MC)=>{"use strict";h();var s5=M("stream").Transform,yd=class extends s5{constructor(){super(),this.lastByte=!1}_transform(e,t,i){e.length&&(this.lastByte=e[e.length-1]),this.push(e),i()}_flush(e){return this.lastByte===10?e():this.lastByte===13?(this.push(Buffer.from(`
`)),e()):(this.push(Buffer.from(`\r
`)),e())}};MC.exports=yd});var bd=O((Hie,qC)=>{"use strict";h();var i5=M("stream"),r5=i5.Transform,xd=class extends r5{constructor(e){super(e),this.options=e||{},this.lastByte=!1}_transform(e,t,i){let r,a=0;for(let n=0,o=e.length;n<o;n++)e[n]===10&&(n&&e[n-1]!==13||!n&&this.lastByte!==13)&&(n>a&&(r=e.slice(a,n),this.push(r)),this.push(Buffer.from(`\r
`)),a=n+1);a&&a<e.length?(r=e.slice(a),this.push(r)):a||this.push(e),this.lastByte=e[e.length-1],i()}};qC.exports=xd});var HC=O((Vie,UC)=>{"use strict";h();var a5=M("stream"),n5=a5.Transform,wd=class extends n5{constructor(e){super(e),this.options=e||{}}_transform(e,t,i){let r,a=0;for(let n=0,o=e.length;n<o;n++)e[n]===13&&(r=e.slice(a,n),a=n+1,this.push(r));a&&a<e.length?(r=e.slice(a),this.push(r)):a||this.push(e),i()}};UC.exports=wd});var vd=O((Gie,$C)=>{"use strict";h();var Dd=M("crypto"),o5=M("fs"),u5=ud(),Ga=M("stream").PassThrough,c5=rt(),_t=Wa(),l5=md(),p5=hd(),h5=zC(),d5=Ha(),f5=RC(),m5=bd(),g5=HC(),kd=class s{constructor(e,t){this.nodeCounter=0,t=t||{},this.baseBoundary=t.baseBoundary||Dd.randomBytes(8).toString("hex"),this.boundaryPrefix=t.boundaryPrefix||"--_NmP",this.disableFileAccess=!!t.disableFileAccess,this.disableUrlAccess=!!t.disableUrlAccess,this.normalizeHeaderKey=t.normalizeHeaderKey,this.date=new Date,this.rootNode=t.rootNode||this,this.keepBcc=!!t.keepBcc,t.filename&&(this.filename=t.filename,e||(e=_t.detectMimeType(this.filename.split(".").pop()))),this.textEncoding=(t.textEncoding||"").toString().trim().charAt(0).toUpperCase(),this.parentNode=t.parentNode,this.hostname=t.hostname,this.newline=t.newline,this.childNodes=[],this._nodeId=++this.rootNode.nodeCounter,this._headers=[],this._isPlainText=!1,this._hasLongLines=!1,this._envelope=!1,this._raw=!1,this._transforms=[],this._processFuncs=[],e&&this.setHeader("Content-Type",e)}createChild(e,t){!t&&typeof e=="object"&&(t=e,e=void 0);let i=new s(e,t);return this.appendChild(i),i}appendChild(e){return e.rootNode!==this.rootNode&&(e.rootNode=this.rootNode,e._nodeId=++this.rootNode.nodeCounter),e.parentNode=this,this.childNodes.push(e),e}replace(e){return e===this?this:(this.parentNode.childNodes.forEach((t,i)=>{t===this&&(e.rootNode=this.rootNode,e.parentNode=this.parentNode,e._nodeId=this._nodeId,this.rootNode=this,this.parentNode=void 0,e.parentNode.childNodes[i]=e)}),e)}remove(){if(!this.parentNode)return this;for(let e=this.parentNode.childNodes.length-1;e>=0;e--)if(this.parentNode.childNodes[e]===this)return this.parentNode.childNodes.splice(e,1),this.parentNode=void 0,this.rootNode=this,this}setHeader(e,t){let i=!1,r;if(!t&&e&&typeof e=="object")return e.key&&"value"in e?this.setHeader(e.key,e.value):Array.isArray(e)?e.forEach(a=>{this.setHeader(a.key,a.value)}):Object.keys(e).forEach(a=>{this.setHeader(a,e[a])}),this;e=this._normalizeHeaderKey(e),r={key:e,value:t};for(let a=0,n=this._headers.length;a<n;a++)this._headers[a].key===e&&(i?(this._headers.splice(a,1),a--,n--):(this._headers[a]=r,i=!0));return i||this._headers.push(r),this}addHeader(e,t){return!t&&e&&typeof e=="object"?(e.key&&e.value?this.addHeader(e.key,e.value):Array.isArray(e)?e.forEach(i=>{this.addHeader(i.key,i.value)}):Object.keys(e).forEach(i=>{this.addHeader(i,e[i])}),this):Array.isArray(t)?(t.forEach(i=>{this.addHeader(e,i)}),this):(this._headers.push({key:this._normalizeHeaderKey(e),value:t}),this)}getHeader(e){e=this._normalizeHeaderKey(e);for(let t=0,i=this._headers.length;t<i;t++)if(this._headers[t].key===e)return this._headers[t].value}setContent(e){return this.content=e,typeof this.content.pipe=="function"?(this._contentErrorHandler=t=>{this.content.removeListener("error",this._contentErrorHandler),this.content=t},this.content.once("error",this._contentErrorHandler)):typeof this.content=="string"&&(this._isPlainText=_t.isPlainText(this.content),this._isPlainText&&_t.hasLongerLines(this.content,76)&&(this._hasLongLines=!0)),this}build(e){let t;e||(t=new Promise((o,u)=>{e=c5.callbackPromise(o,u)}));let i=this.createReadStream(),r=[],a=0,n=!1;return i.on("readable",()=>{let o;for(;(o=i.read())!==null;)r.push(o),a+=o.length}),i.once("error",o=>{if(!n)return n=!0,e(o)}),i.once("end",o=>{if(!n)return n=!0,o&&o.length&&(r.push(o),a+=o.length),e(null,Buffer.concat(r,a))}),t}getTransferEncoding(){let e=!1,t=(this.getHeader("Content-Type")||"").toString().toLowerCase().trim();return this.content&&(e=(this.getHeader("Content-Transfer-Encoding")||"").toString().toLowerCase().trim(),(!e||!["base64","quoted-printable"].includes(e))&&(/^text\//i.test(t)?this._isPlainText&&!this._hasLongLines?e="7bit":typeof this.content=="string"||this.content instanceof Buffer?e=this._getTextEncoding(this.content)==="Q"?"quoted-printable":"base64":e=this.textEncoding==="B"?"base64":"quoted-printable":/^(multipart|message)\//i.test(t)||(e=e||"base64"))),e}buildHeaders(){let e=this.getTransferEncoding(),t=[];if(e&&this.setHeader("Content-Transfer-Encoding",e),this.filename&&!this.getHeader("Content-Disposition")&&this.setHeader("Content-Disposition","attachment"),this.rootNode===this){this.getHeader("Date")||this.setHeader("Date",this.date.toUTCString().replace(/GMT/,"+0000")),this.messageId(),this.getHeader("MIME-Version")||this.setHeader("MIME-Version","1.0");for(let i=this._headers.length-2;i>=0;i--){let r=this._headers[i];r.key==="Content-Type"&&(this._headers.splice(i,1),this._headers.push(r))}}return this._headers.forEach(i=>{let r=i.key,a=i.value,n,o,u={};if(!(a&&typeof a=="object"&&!["From","Sender","To","Cc","Bcc","Reply-To","Date","References"].includes(r)&&(Object.keys(a).forEach(l=>{l!=="value"&&(u[l]=a[l])}),a=(a.value||"").toString(),!a.trim()))){if(u.prepared){u.foldLines?t.push(_t.foldLines(r+": "+a)):t.push(r+": "+a);return}switch(i.key){case"Content-Disposition":n=_t.parseHeaderValue(a),this.filename&&(n.params.filename=this.filename),a=_t.buildHeaderValue(n);break;case"Content-Type":n=_t.parseHeaderValue(a),this._handleContentType(n),n.value.match(/^text\/plain\b/)&&typeof this.content=="string"&&/[\u0080-\uFFFF]/.test(this.content)&&(n.params.charset="utf-8"),a=_t.buildHeaderValue(n),this.filename&&(o=this._encodeWords(this.filename),(o!==this.filename||/[\s'"\\;:/=(),<>@[\]?]|^-/.test(o))&&(o='"'+o+'"'),a+="; name="+o);break;case"Bcc":if(!this.keepBcc)return;break}if(a=this._encodeHeaderValue(r,a),!!(a||"").toString().trim()){if(typeof this.normalizeHeaderKey=="function"){let l=this.normalizeHeaderKey(r,a);l&&typeof l=="string"&&l.length&&(r=l)}t.push(_t.foldLines(r+": "+a,76))}}}),t.join(`\r
`)}createReadStream(e){e=e||{};let t=new Ga(e),i=t,r;this.stream(t,e,a=>{if(a){i.emit("error",a);return}t.end()});for(let a=0,n=this._transforms.length;a<n;a++)r=typeof this._transforms[a]=="function"?this._transforms[a]():this._transforms[a],i.once("error",o=>{r.emit("error",o)}),i=i.pipe(r);r=new f5,i.once("error",a=>{r.emit("error",a)}),i=i.pipe(r);for(let a=0,n=this._processFuncs.length;a<n;a++)r=this._processFuncs[a],i=r(i);if(this.newline){let n=["win","windows","dos",`\r
`].includes(this.newline.toString().toLowerCase())?new m5:new g5,o=i.pipe(n);return i.on("error",u=>o.emit("error",u)),o}return i}transform(e){this._transforms.push(e)}processFunc(e){this._processFuncs.push(e)}stream(e,t,i){let r=this.getTransferEncoding(),a,n,o=!1,u=p=>{o||(o=!0,i(p))},c=()=>{let p=0,d=()=>{if(p>=this.childNodes.length)return e.write(`\r
--`+this.boundary+`--\r
`),u();let m=this.childNodes[p++];e.write((p>1?`\r
`:"")+"--"+this.boundary+`\r
`),m.stream(e,t,f=>{if(f)return u(f);setImmediate(d)})};if(this.multipart)setImmediate(d);else return u()},l=()=>{if(this.content){if(Object.prototype.toString.call(this.content)==="[object Error]")return u(this.content);typeof this.content.pipe=="function"&&(this.content.removeListener("error",this._contentErrorHandler),this._contentErrorHandler=d=>u(d),this.content.once("error",this._contentErrorHandler));let p=()=>{["quoted-printable","base64"].includes(r)?(a=new(r==="base64"?p5:l5).Encoder(t),a.pipe(e,{end:!1}),a.once("end",c),a.once("error",d=>u(d)),n=this._getStream(this.content),n.pipe(a)):(n=this._getStream(this.content),n.pipe(e,{end:!1}),n.once("end",c)),n.once("error",d=>u(d))};if(this.content._resolve){let d=[],m=0,f=!1,g=this._getStream(this.content);g.on("error",y=>{f||(f=!0,u(y))}),g.on("readable",()=>{let y;for(;(y=g.read())!==null;)d.push(y),m+=y.length}),g.on("end",()=>{f||(f=!0,this.content._resolve=!1,this.content._resolvedValue=Buffer.concat(d,m),setImmediate(p))})}else setImmediate(p);return}else return setImmediate(c)};this._raw?setImmediate(()=>{if(Object.prototype.toString.call(this._raw)==="[object Error]")return u(this._raw);typeof this._raw.pipe=="function"&&this._raw.removeListener("error",this._contentErrorHandler);let p=this._getStream(this._raw);p.pipe(e,{end:!1}),p.on("error",d=>e.emit("error",d)),p.on("end",c)}):(e.write(this.buildHeaders()+`\r
\r
`),setImmediate(l))}setEnvelope(e){let t;this._envelope={from:!1,to:[]},e.from&&(t=[],this._convertAddresses(this._parseAddresses(e.from),t),t=t.filter(r=>r&&r.address),t.length&&t[0]&&(this._envelope.from=t[0].address)),["to","cc","bcc"].forEach(r=>{e[r]&&this._convertAddresses(this._parseAddresses(e[r]),this._envelope.to)}),this._envelope.to=this._envelope.to.map(r=>r.address).filter(r=>r);let i=["to","cc","bcc","from"];return Object.keys(e).forEach(r=>{i.includes(r)||(this._envelope[r]=e[r])}),this}getAddresses(){let e={};return this._headers.forEach(t=>{let i=t.key.toLowerCase();["from","sender","reply-to","to","cc","bcc"].includes(i)&&(Array.isArray(e[i])||(e[i]=[]),this._convertAddresses(this._parseAddresses(t.value),e[i]))}),e}getEnvelope(){if(this._envelope)return this._envelope;let e={from:!1,to:[]};return this._headers.forEach(t=>{let i=[];t.key==="From"||!e.from&&["Reply-To","Sender"].includes(t.key)?(this._convertAddresses(this._parseAddresses(t.value),i),i.length&&i[0]&&(e.from=i[0].address)):["To","Cc","Bcc"].includes(t.key)&&this._convertAddresses(this._parseAddresses(t.value),e.to)}),e.to=e.to.map(t=>t.address),e}messageId(){let e=this.getHeader("Message-ID");return e||(e=this._generateMessageId(),this.setHeader("Message-ID",e)),e}setRaw(e){return this._raw=e,this._raw&&typeof this._raw.pipe=="function"&&(this._contentErrorHandler=t=>{this._raw.removeListener("error",this._contentErrorHandler),this._raw=t},this._raw.once("error",this._contentErrorHandler)),this}_getStream(e){let t;return e._resolvedValue?(t=new Ga,setImmediate(()=>{try{t.end(e._resolvedValue)}catch(i){t.emit("error",i)}}),t):typeof e.pipe=="function"?e:e&&typeof e.path=="string"&&!e.href?this.disableFileAccess?(t=new Ga,setImmediate(()=>t.emit("error",new Error("File access rejected for "+e.path))),t):o5.createReadStream(e.path):e&&typeof e.href=="string"?this.disableUrlAccess?(t=new Ga,setImmediate(()=>t.emit("error",new Error("Url access rejected for "+e.href))),t):d5(e.href,{headers:e.httpHeaders}):(t=new Ga,setImmediate(()=>{try{t.end(e||"")}catch(i){t.emit("error",i)}}),t)}_parseAddresses(e){return[].concat.apply([],[].concat(e).map(t=>t&&t.address?(t.address=this._normalizeAddress(t.address),t.name=t.name||"",[t]):h5(t)))}_normalizeHeaderKey(e){return e=(e||"").toString().replace(/\r?\n|\r/g," ").trim().toLowerCase().replace(/^X-SMTPAPI$|^(MIME|DKIM|ARC|BIMI)\b|^[a-z]|-(SPF|FBL|ID|MD5)$|-[a-z]/gi,t=>t.toUpperCase()).replace(/^Content-Features$/i,"Content-features"),e}_handleContentType(e){this.contentType=e.value.trim().toLowerCase(),this.multipart=/^multipart\//i.test(this.contentType)?this.contentType.substr(this.contentType.indexOf("/")+1):!1,this.multipart?this.boundary=e.params.boundary=e.params.boundary||this.boundary||this._generateBoundary():this.boundary=!1}_generateBoundary(){return this.rootNode.boundaryPrefix+"-"+this.rootNode.baseBoundary+"-Part_"+this._nodeId}_encodeHeaderValue(e,t){switch(e=this._normalizeHeaderKey(e),e){case"From":case"Sender":case"To":case"Cc":case"Bcc":case"Reply-To":return this._convertAddresses(this._parseAddresses(t));case"Message-ID":case"In-Reply-To":case"Content-Id":return t=(t||"").toString().replace(/\r?\n|\r/g," "),t.charAt(0)!=="<"&&(t="<"+t),t.charAt(t.length-1)!==">"&&(t=t+">"),t;case"References":return t=[].concat.apply([],[].concat(t||"").map(i=>(i=(i||"").toString().replace(/\r?\n|\r/g," ").trim(),i.replace(/<[^>]*>/g,r=>r.replace(/\s/g,"")).split(/\s+/)))).map(i=>(i.charAt(0)!=="<"&&(i="<"+i),i.charAt(i.length-1)!==">"&&(i=i+">"),i)),t.join(" ").trim();case"Date":return Object.prototype.toString.call(t)==="[object Date]"?t.toUTCString().replace(/GMT/,"+0000"):(t=(t||"").toString().replace(/\r?\n|\r/g," "),this._encodeWords(t));case"Content-Type":case"Content-Disposition":return(t||"").toString().replace(/\r?\n|\r/g," ");default:return t=(t||"").toString().replace(/\r?\n|\r/g," "),this._encodeWords(t)}}_convertAddresses(e,t){let i=[];return t=t||[],[].concat(e||[]).forEach(r=>{if(r.address)r.address=this._normalizeAddress(r.address),r.name?r.name&&i.push(`${this._encodeAddressName(r.name)} <${r.address}>`):i.push(r.address.indexOf(" ")>=0?`<${r.address}>`:`${r.address}`),r.address&&(t.filter(a=>a.address===r.address).length||t.push(r));else if(r.group){let a=(r.group.length?this._convertAddresses(r.group,t):"").trim();i.push(`${this._encodeAddressName(r.name)}:${a};`)}}),i.join(", ")}_normalizeAddress(e){e=(e||"").toString().replace(/[\x00-\x1F<>]+/g," ").trim();let t=e.lastIndexOf("@");if(t<0)return e;let i=e.substr(0,t),r=e.substr(t+1),a;try{a=u5.toASCII(r.toLowerCase())}catch{}return i.indexOf(" ")>=0&&(i.charAt(0)!=='"'&&(i='"'+i),i.substr(-1)!=='"'&&(i=i+'"')),`${i}@${a}`}_encodeAddressName(e){return/^[\w ]*$/.test(e)?e:/^[\x20-\x7e]*$/.test(e)?'"'+e.replace(/([\\"])/g,"\\$1")+'"':_t.encodeWord(e,this._getTextEncoding(e),52)}_encodeWords(e){return _t.encodeWords(e,this._getTextEncoding(e),52,!0)}_getTextEncoding(e){e=(e||"").toString();let t=this.textEncoding,i,r;return t||(r=(e.match(/[\x00-\x08\x0B\x0C\x0E-\x1F\u0080-\uFFFF]/g)||[]).length,i=(e.match(/[a-z]/gi)||[]).length,t=r<i?"Q":"B"),t}_generateMessageId(){return"<"+[2,2,2,6].reduce((e,t)=>e+"-"+Dd.randomBytes(t).toString("hex"),Dd.randomBytes(4).toString("hex"))+"@"+(this.getEnvelope().from||this.hostname||"localhost").split("@").pop()+">"}};$C.exports=kd});var WC=O((Jie,VC)=>{"use strict";h();var Ka=vd(),Ed=Wa(),y5=rt().parseDataURI,Cd=class{constructor(e){this.mail=e||{},this.message=!1}compile(){return this._alternatives=this.getAlternatives(),this._htmlNode=this._alternatives.filter(e=>/^text\/html\b/i.test(e.contentType)).pop(),this._attachments=this.getAttachments(!!this._htmlNode),this._useRelated=!!(this._htmlNode&&this._attachments.related.length),this._useAlternative=this._alternatives.length>1,this._useMixed=this._attachments.attached.length>1||this._alternatives.length&&this._attachments.attached.length===1,this.mail.raw?this.message=new Ka("message/rfc822",{newline:this.mail.newline}).setRaw(this.mail.raw):this._useMixed?this.message=this._createMixed():this._useAlternative?this.message=this._createAlternative():this._useRelated?this.message=this._createRelated():this.message=this._createContentNode(!1,[].concat(this._alternatives||[]).concat(this._attachments.attached||[]).shift()||{contentType:"text/plain",content:""}),this.mail.headers&&this.message.addHeader(this.mail.headers),["from","sender","to","cc","bcc","reply-to","in-reply-to","references","subject","message-id","date"].forEach(e=>{let t=e.replace(/-(\w)/g,(i,r)=>r.toUpperCase());this.mail[t]&&this.message.setHeader(e,this.mail[t])}),this.mail.envelope&&this.message.setEnvelope(this.mail.envelope),this.message.messageId(),this.message}getAttachments(e){let t,i,r=[].concat(this.mail.attachments||[]).map((a,n)=>{let o,u=/^message\//i.test(a.contentType);/^data:/i.test(a.path||a.href)&&(a=this._processDataUrl(a));let c=a.contentType||Ed.detectMimeType(a.filename||a.path||a.href||"bin"),l=/^image\//i.test(c),p=a.contentDisposition||(u||l&&a.cid?"inline":"attachment");return o={contentType:c,contentDisposition:p,contentTransferEncoding:"contentTransferEncoding"in a?a.contentTransferEncoding:"base64"},a.filename?o.filename=a.filename:!u&&a.filename!==!1&&(o.filename=(a.path||a.href||"").split("/").pop().split("?").shift()||"attachment-"+(n+1),o.filename.indexOf(".")<0&&(o.filename+="."+Ed.detectExtension(o.contentType))),/^https?:\/\//i.test(a.path)&&(a.href=a.path,a.path=void 0),a.cid&&(o.cid=a.cid),a.raw?o.raw=a.raw:a.path?o.content={path:a.path}:a.href?o.content={href:a.href,httpHeaders:a.httpHeaders}:o.content=a.content||"",a.encoding&&(o.encoding=a.encoding),a.headers&&(o.headers=a.headers),o});return this.mail.icalEvent&&(typeof this.mail.icalEvent=="object"&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?t=this.mail.icalEvent:t={content:this.mail.icalEvent},i={},Object.keys(t).forEach(a=>{i[a]=t[a]}),i.contentType="application/ics",i.headers||(i.headers={}),i.filename=i.filename||"invite.ics",i.headers["Content-Disposition"]="attachment",i.headers["Content-Transfer-Encoding"]="base64"),e?{attached:r.filter(a=>!a.cid).concat(i||[]),related:r.filter(a=>!!a.cid)}:{attached:r.concat(i||[]),related:[]}}getAlternatives(){let e=[],t,i,r,a,n,o;return this.mail.text&&(typeof this.mail.text=="object"&&(this.mail.text.content||this.mail.text.path||this.mail.text.href||this.mail.text.raw)?t=this.mail.text:t={content:this.mail.text},t.contentType="text/plain; charset=utf-8"),this.mail.watchHtml&&(typeof this.mail.watchHtml=="object"&&(this.mail.watchHtml.content||this.mail.watchHtml.path||this.mail.watchHtml.href||this.mail.watchHtml.raw)?r=this.mail.watchHtml:r={content:this.mail.watchHtml},r.contentType="text/watch-html; charset=utf-8"),this.mail.amp&&(typeof this.mail.amp=="object"&&(this.mail.amp.content||this.mail.amp.path||this.mail.amp.href||this.mail.amp.raw)?a=this.mail.amp:a={content:this.mail.amp},a.contentType="text/x-amp-html; charset=utf-8"),this.mail.icalEvent&&(typeof this.mail.icalEvent=="object"&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?n=this.mail.icalEvent:n={content:this.mail.icalEvent},o={},Object.keys(n).forEach(u=>{o[u]=n[u]}),o.content&&typeof o.content=="object"&&(o.content._resolve=!0),o.filename=!1,o.contentType="text/calendar; charset=utf-8; method="+(o.method||"PUBLISH").toString().trim().toUpperCase(),o.headers||(o.headers={})),this.mail.html&&(typeof this.mail.html=="object"&&(this.mail.html.content||this.mail.html.path||this.mail.html.href||this.mail.html.raw)?i=this.mail.html:i={content:this.mail.html},i.contentType="text/html; charset=utf-8"),[].concat(t||[]).concat(r||[]).concat(a||[]).concat(i||[]).concat(o||[]).concat(this.mail.alternatives||[]).forEach(u=>{let c;/^data:/i.test(u.path||u.href)&&(u=this._processDataUrl(u)),c={contentType:u.contentType||Ed.detectMimeType(u.filename||u.path||u.href||"txt"),contentTransferEncoding:u.contentTransferEncoding},u.filename&&(c.filename=u.filename),/^https?:\/\//i.test(u.path)&&(u.href=u.path,u.path=void 0),u.raw?c.raw=u.raw:u.path?c.content={path:u.path}:u.href?c.content={href:u.href}:c.content=u.content||"",u.encoding&&(c.encoding=u.encoding),u.headers&&(c.headers=u.headers),e.push(c)}),e}_createMixed(e){let t;return e?t=e.createChild("multipart/mixed",{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):t=new Ka("multipart/mixed",{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),this._useAlternative?this._createAlternative(t):this._useRelated&&this._createRelated(t),[].concat(!this._useAlternative&&this._alternatives||[]).concat(this._attachments.attached||[]).forEach(i=>{(!this._useRelated||i!==this._htmlNode)&&this._createContentNode(t,i)}),t}_createAlternative(e){let t;return e?t=e.createChild("multipart/alternative",{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):t=new Ka("multipart/alternative",{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),this._alternatives.forEach(i=>{this._useRelated&&this._htmlNode===i?this._createRelated(t):this._createContentNode(t,i)}),t}_createRelated(e){let t;return e?t=e.createChild('multipart/related; type="text/html"',{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):t=new Ka('multipart/related; type="text/html"',{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),this._createContentNode(t,this._htmlNode),this._attachments.related.forEach(i=>this._createContentNode(t,i)),t}_createContentNode(e,t){t=t||{},t.content=t.content||"";let i,r=(t.encoding||"utf8").toString().toLowerCase().replace(/[-_\s]/g,"");return e?i=e.createChild(t.contentType,{filename:t.filename,textEncoding:this.mail.textEncoding,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):i=new Ka(t.contentType,{filename:t.filename,baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}),t.headers&&i.addHeader(t.headers),t.cid&&i.setHeader("Content-Id","<"+t.cid.replace(/[<>]/g,"")+">"),t.contentTransferEncoding?i.setHeader("Content-Transfer-Encoding",t.contentTransferEncoding):this.mail.encoding&&/^text\//i.test(t.contentType)&&i.setHeader("Content-Transfer-Encoding",this.mail.encoding),(!/^text\//i.test(t.contentType)||t.contentDisposition)&&i.setHeader("Content-Disposition",t.contentDisposition||(t.cid&&/^image\//i.test(t.contentType)?"inline":"attachment")),typeof t.content=="string"&&!["utf8","usascii","ascii"].includes(r)&&(t.content=Buffer.from(t.content,r)),t.raw?i.setRaw(t.raw):i.setContent(t.content),i}_processDataUrl(e){let t;return(e.path||e.href).match(/^data:/)&&(t=y5(e.path||e.href)),t&&(e.content=t.data,e.contentType=e.contentType||t.contentType,"path"in e&&(e.path=!1),"href"in e&&(e.href=!1)),e}};VC.exports=Cd});var KC=O((Yie,GC)=>{"use strict";h();var x5=M("stream").Transform,Td=class extends x5{constructor(e){super(e),this.lastBytes=Buffer.alloc(4),this.headersParsed=!1,this.headerBytes=0,this.headerChunks=[],this.rawHeaders=!1,this.bodySize=0}updateLastBytes(e){let t=this.lastBytes.length,i=Math.min(e.length,t);for(let r=0,a=t-i;r<a;r++)this.lastBytes[r]=this.lastBytes[r+i];for(let r=1;r<=i;r++)this.lastBytes[t-r]=e[e.length-r]}checkHeaders(e){if(this.headersParsed)return!0;let t=this.lastBytes.length,i=0;this.curLinePos=0;for(let r=0,a=this.lastBytes.length+e.length;r<a;r++){let n;if(r<t?n=this.lastBytes[r]:n=e[r-t],n===10&&r){let o=r-1<t?this.lastBytes[r-1]:e[r-1-t],u=r>1?r-2<t?this.lastBytes[r-2]:e[r-2-t]:!1;if(o===10){this.headersParsed=!0,i=r-t+1,this.headerBytes+=i;break}else if(o===13&&u===10){this.headersParsed=!0,i=r-t+1,this.headerBytes+=i;break}}}if(this.headersParsed){if(this.headerChunks.push(e.slice(0,i)),this.rawHeaders=Buffer.concat(this.headerChunks,this.headerBytes),this.headerChunks=null,this.emit("headers",this.parseHeaders()),e.length-1>i){let r=e.slice(i);this.bodySize+=r.length,setImmediate(()=>this.push(r))}return!1}else this.headerBytes+=e.length,this.headerChunks.push(e);return this.updateLastBytes(e),!1}_transform(e,t,i){if(!e||!e.length)return i();typeof e=="string"&&(e=Buffer.from(e,t));let r;try{r=this.checkHeaders(e)}catch(a){return i(a)}r&&(this.bodySize+=e.length,this.push(e)),setImmediate(i)}_flush(e){if(this.headerChunks){let t=Buffer.concat(this.headerChunks,this.headerBytes);this.bodySize+=t.length,this.push(t),this.headerChunks=null}e()}parseHeaders(){let e=(this.rawHeaders||"").toString().split(/\r?\n/);for(let t=e.length-1;t>0;t--)/^\s/.test(e[t])&&(e[t-1]+=`
`+e[t],e.splice(t,1));return e.filter(t=>t.trim()).map(t=>({key:t.substr(0,t.indexOf(":")).trim().toLowerCase(),line:t}))}};GC.exports=Td});var XC=O((Zie,JC)=>{"use strict";h();var b5=M("stream").Transform,w5=M("crypto"),Sd=class extends b5{constructor(e){super(),e=e||{},this.chunkBuffer=[],this.chunkBufferLen=0,this.bodyHash=w5.createHash(e.hashAlgo||"sha1"),this.remainder="",this.byteLength=0,this.debug=e.debug,this._debugBody=e.debug?[]:!1}updateHash(e){let t,i="",r="file";for(let n=e.length-1;n>=0;n--){let o=e[n];if(!(r==="file"&&(o===10||o===13))){if(r==="file"&&(o===9||o===32))r="line";else if(!(r==="line"&&(o===9||o===32))){if((r==="file"||r==="line")&&(r="body",n===e.length-1))break}}if(n===0){if(r==="file"&&(!this.remainder||/[\r\n]$/.test(this.remainder))||r==="line"&&(!this.remainder||/[ \t]$/.test(this.remainder))){this.remainder+=e.toString("binary");return}else if(r==="line"||r==="file"){i=e.toString("binary"),e=!1;break}}if(r==="body"){i=e.slice(n+1).toString("binary"),e=e.slice(0,n+1);break}}let a=!!this.remainder;if(e&&!a){for(let n=0,o=e.length;n<o;n++)if(n&&e[n]===10&&e[n-1]!==13){a=!0;break}else if(n&&e[n]===13&&e[n-1]===32){a=!0;break}else if(n&&e[n]===32&&e[n-1]===32){a=!0;break}else if(e[n]===9){a=!0;break}}a?(t=this.remainder+(e?e.toString("binary"):""),this.remainder=i,t=t.replace(/\r?\n/g,`
`).replace(/[ \t]*$/gm,"").replace(/[ \t]+/gm," ").replace(/\n/g,`\r
`),e=Buffer.from(t,"binary")):i&&(this.remainder=i),this.debug&&this._debugBody.push(e),this.bodyHash.update(e)}_transform(e,t,i){if(!e||!e.length)return i();typeof e=="string"&&(e=Buffer.from(e,t)),this.updateHash(e),this.byteLength+=e.length,this.push(e),i()}_flush(e){/[\r\n]$/.test(this.remainder)&&this.byteLength>2&&this.bodyHash.update(Buffer.from(`\r
`)),this.byteLength||this.push(Buffer.from(`\r
`)),this.emit("hash",this.bodyHash.digest("base64"),this.debug?Buffer.concat(this._debugBody):!1),e()}};JC.exports=Sd});var ZC=O((tre,Ad)=>{"use strict";h();var D5=ud(),k5=Wa(),v5=M("crypto");Ad.exports=(s,e,t,i)=>{i=i||{};let a=i.headerFieldNames||"From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive",n=YC(s,a,i.skipFields),o=E5(i.domainName,i.keySelector,n.fieldNames,e,t),u,c;n.headers+="dkim-signature:"+QC(o),u=v5.createSign(("rsa-"+e).toUpperCase()),u.update(n.headers);try{c=u.sign(i.privateKey,"base64")}catch{return!1}return o+c.replace(/(^.{73}|.{75}(?!\r?\n|\r))/g,`$&\r
`).trim()};Ad.exports.relaxedHeaders=YC;function E5(s,e,t,i,r){let a=["v=1","a=rsa-"+i,"c=relaxed/relaxed","d="+D5.toASCII(s),"q=dns/txt","s="+e,"bh="+r,"h="+t].join("; ");return k5.foldLines("DKIM-Signature: "+a,76)+`;\r
b=`}function YC(s,e,t){let i=new Set,r=new Set,a=new Map;(t||"").toLowerCase().split(":").forEach(u=>{r.add(u.trim())}),(e||"").toLowerCase().split(":").filter(u=>!r.has(u.trim())).forEach(u=>{i.add(u.trim())});for(let u=s.length-1;u>=0;u--){let c=s[u];i.has(c.key)&&!a.has(c.key)&&a.set(c.key,QC(c.line))}let n=[],o=[];return i.forEach(u=>{a.has(u)&&(o.push(u),n.push(u+":"+a.get(u)))}),{headers:n.join(`\r
`)+`\r
`,fieldNames:o.join(":")}}function QC(s){return s.substr(s.indexOf(":")+1).replace(/\r?\n/g,"").replace(/\s+/g," ").trim()}});var tT=O((ire,eT)=>{"use strict";h();var C5=KC(),T5=XC(),S5=ZC(),jd=M("stream").PassThrough,Pd=M("fs"),A5=M("path"),j5=M("crypto"),P5="sha256",F5=128*1024,Fd=class{constructor(e,t,i,r){this.options=e||{},this.keys=t,this.cacheTreshold=Number(this.options.cacheTreshold)||F5,this.hashAlgo=this.options.hashAlgo||P5,this.cacheDir=this.options.cacheDir||!1,this.chunks=[],this.chunklen=0,this.readPos=0,this.cachePath=this.cacheDir?A5.join(this.cacheDir,"message."+Date.now()+"-"+j5.randomBytes(14).toString("hex")):!1,this.cache=!1,this.headers=!1,this.bodyHash=!1,this.parser=!1,this.relaxedBody=!1,this.input=i,this.output=r,this.output.usingCache=!1,this.hasErrored=!1,this.input.on("error",a=>{this.hasErrored=!0,this.cleanup(),r.emit("error",a)})}cleanup(){!this.cache||!this.cachePath||Pd.unlink(this.cachePath,()=>!1)}createReadCache(){this.cache=Pd.createReadStream(this.cachePath),this.cache.once("error",e=>{this.cleanup(),this.output.emit("error",e)}),this.cache.once("close",()=>{this.cleanup()}),this.cache.pipe(this.output)}sendNextChunk(){if(this.hasErrored)return;if(this.readPos>=this.chunks.length)return this.cache?this.createReadCache():this.output.end();let e=this.chunks[this.readPos++];if(this.output.write(e)===!1)return this.output.once("drain",()=>{this.sendNextChunk()});setImmediate(()=>this.sendNextChunk())}sendSignedOutput(){let e=0,t=()=>{if(e>=this.keys.length)return this.output.write(this.parser.rawHeaders),setImmediate(()=>this.sendNextChunk());let i=this.keys[e++],r=S5(this.headers,this.hashAlgo,this.bodyHash,{domainName:i.domainName,keySelector:i.keySelector,privateKey:i.privateKey,headerFieldNames:this.options.headerFieldNames,skipFields:this.options.skipFields});return r&&this.output.write(Buffer.from(r+`\r
`)),setImmediate(t)};if(this.bodyHash&&this.headers)return t();this.output.write(this.parser.rawHeaders),this.sendNextChunk()}createWriteCache(){this.output.usingCache=!0,this.cache=Pd.createWriteStream(this.cachePath),this.cache.once("error",e=>{this.cleanup(),this.relaxedBody.unpipe(this.cache),this.relaxedBody.on("readable",()=>{for(;this.relaxedBody.read()!==null;);}),this.hasErrored=!0,this.output.emit("error",e)}),this.cache.once("close",()=>{this.sendSignedOutput()}),this.relaxedBody.removeAllListeners("readable"),this.relaxedBody.pipe(this.cache)}signStream(){this.parser=new C5,this.relaxedBody=new T5({hashAlgo:this.hashAlgo}),this.parser.on("headers",e=>{this.headers=e}),this.relaxedBody.on("hash",e=>{this.bodyHash=e}),this.relaxedBody.on("readable",()=>{let e;if(!this.cache){for(;(e=this.relaxedBody.read())!==null;)if(this.chunks.push(e),this.chunklen+=e.length,this.chunklen>=this.cacheTreshold&&this.cachePath)return this.createWriteCache()}}),this.relaxedBody.on("end",()=>{this.cache||this.sendSignedOutput()}),this.parser.pipe(this.relaxedBody),setImmediate(()=>this.input.pipe(this.parser))}},Id=class{constructor(e){this.options=e||{},this.keys=[].concat(this.options.keys||{domainName:e.domainName,keySelector:e.keySelector,privateKey:e.privateKey})}sign(e,t){let i=new jd,r=e,a=!1;Buffer.isBuffer(e)?(a=e,r=new jd):typeof e=="string"&&(a=Buffer.from(e),r=new jd);let n=this.options;t&&Object.keys(t).length&&(n={},Object.keys(this.options||{}).forEach(u=>{n[u]=this.options[u]}),Object.keys(t||{}).forEach(u=>{u in n||(n[u]=t[u])}));let o=new Fd(n,this.keys,r,i);return setImmediate(()=>{o.signStream(),a&&setImmediate(()=>{r.end(a)})}),i}};eT.exports=Id});var nT=O((are,aT)=>{"use strict";h();var sT=M("net"),iT=M("tls"),I5=M("url");function rT(s,e,t,i){let r=I5.parse(s),a,n,o;a={host:r.hostname,port:Number(r.port)?Number(r.port):r.protocol==="https:"?443:80},r.protocol==="https:"?(a.rejectUnauthorized=!1,n=iT.connect.bind(iT)):n=sT.connect.bind(sT);let u=!1,c=p=>{if(!u){u=!0;try{o.destroy()}catch{}i(p)}},l=()=>{let p=new Error("Proxy socket timed out");p.code="ETIMEDOUT",c(p)};o=n(a,()=>{if(u)return;let p={Host:t+":"+e,Connection:"close"};r.auth&&(p["Proxy-Authorization"]="Basic "+Buffer.from(r.auth).toString("base64")),o.write("CONNECT "+t+":"+e+` HTTP/1.1\r
`+Object.keys(p).map(f=>f+": "+p[f]).join(`\r
`)+`\r
\r
`);let d="",m=f=>{let g,y;if(!u&&(d+=f.toString("binary"),g=d.match(/\r\n\r\n/))){if(o.removeListener("data",m),y=d.substr(g.index+g[0].length),d=d.substr(0,g.index),y&&o.unshift(Buffer.from(y,"binary")),u=!0,g=d.match(/^HTTP\/\d+\.\d+ (\d+)/i),!g||(g[1]||"").charAt(0)!=="2"){try{o.destroy()}catch{}return i(new Error("Invalid response from proxy"+(g&&": "+g[1]||"")))}return o.removeListener("error",c),o.removeListener("timeout",l),o.setTimeout(0),i(null,o)}};o.on("data",m)}),o.setTimeout(rT.timeout||30*1e3),o.on("timeout",l),o.once("error",c)}aT.exports=rT});var cT=O((ore,uT)=>{"use strict";h();var oT=rt(),_5=vd(),cr=Wa(),_d=class{constructor(e,t){this.mailer=e,this.data={},this.message=null,t=t||{};let i=e.options||{},r=e._defaults||{};Object.keys(t).forEach(a=>{this.data[a]=t[a]}),this.data.headers=this.data.headers||{},Object.keys(r).forEach(a=>{a in this.data?a==="headers"&&Object.keys(r.headers).forEach(n=>{n in this.data.headers||(this.data.headers[n]=r.headers[n])}):this.data[a]=r[a]}),["disableFileAccess","disableUrlAccess","normalizeHeaderKey"].forEach(a=>{a in i&&(this.data[a]=i[a])})}resolveContent(...e){return oT.resolveContent(...e)}resolveAll(e){let t=[[this.data,"html"],[this.data,"text"],[this.data,"watchHtml"],[this.data,"amp"],[this.data,"icalEvent"]];this.data.alternatives&&this.data.alternatives.length&&this.data.alternatives.forEach((u,c)=>{t.push([this.data.alternatives,c])}),this.data.attachments&&this.data.attachments.length&&this.data.attachments.forEach((u,c)=>{u.filename||(u.filename=(u.path||u.href||"").split("/").pop().split("?").shift()||"attachment-"+(c+1),u.filename.indexOf(".")<0&&(u.filename+="."+cr.detectExtension(u.contentType))),u.contentType||(u.contentType=cr.detectMimeType(u.filename||u.path||u.href||"bin")),t.push([this.data.attachments,c])});let i=new _5;["from","to","cc","bcc","sender","replyTo"].forEach(u=>{let c;this.message?c=[].concat(i._parseAddresses(this.message.getHeader(u==="replyTo"?"reply-to":u))||[]):this.data[u]&&(c=[].concat(i._parseAddresses(this.data[u])||[])),c&&c.length?this.data[u]=c:u in this.data&&(this.data[u]=null)}),["from","sender"].forEach(u=>{this.data[u]&&(this.data[u]=this.data[u].shift())});let n=0,o=()=>{if(n>=t.length)return e(null,this.data);let u=t[n++];if(!u[0]||!u[0][u[1]])return o();oT.resolveContent(...u,(c,l)=>{if(c)return e(c);let p={content:l};u[0][u[1]]&&typeof u[0][u[1]]=="object"&&!Buffer.isBuffer(u[0][u[1]])&&Object.keys(u[0][u[1]]).forEach(d=>{!(d in p)&&!["content","path","href","raw"].includes(d)&&(p[d]=u[0][u[1]][d])}),u[0][u[1]]=p,o()})};setImmediate(()=>o())}normalize(e){let t=this.data.envelope||this.message.getEnvelope(),i=this.message.messageId();this.resolveAll((r,a)=>r?e(r):(a.envelope=t,a.messageId=i,["html","text","watchHtml","amp"].forEach(n=>{a[n]&&a[n].content&&(typeof a[n].content=="string"?a[n]=a[n].content:Buffer.isBuffer(a[n].content)&&(a[n]=a[n].content.toString()))}),a.icalEvent&&Buffer.isBuffer(a.icalEvent.content)&&(a.icalEvent.content=a.icalEvent.content.toString("base64"),a.icalEvent.encoding="base64"),a.alternatives&&a.alternatives.length&&a.alternatives.forEach(n=>{n&&n.content&&Buffer.isBuffer(n.content)&&(n.content=n.content.toString("base64"),n.encoding="base64")}),a.attachments&&a.attachments.length&&a.attachments.forEach(n=>{n&&n.content&&Buffer.isBuffer(n.content)&&(n.content=n.content.toString("base64"),n.encoding="base64")}),a.normalizedHeaders={},Object.keys(a.headers||{}).forEach(n=>{let o=[].concat(a.headers[n]||[]).shift();o=o&&o.value||o,o&&(["references","in-reply-to","message-id","content-id"].includes(n)&&(o=this.message._encodeHeaderValue(n,o)),a.normalizedHeaders[n]=o)}),a.list&&typeof a.list=="object"&&this._getListHeaders(a.list).forEach(o=>{a.normalizedHeaders[o.key]=o.value.map(u=>u&&u.value||u).join(", ")}),a.references&&(a.normalizedHeaders.references=this.message._encodeHeaderValue("references",a.references)),a.inReplyTo&&(a.normalizedHeaders["in-reply-to"]=this.message._encodeHeaderValue("in-reply-to",a.inReplyTo)),e(null,a)))}setMailerHeader(){!this.message||!this.data.xMailer||this.message.setHeader("X-Mailer",this.data.xMailer)}setPriorityHeaders(){if(!(!this.message||!this.data.priority))switch((this.data.priority||"").toString().toLowerCase()){case"high":this.message.setHeader("X-Priority","1 (Highest)"),this.message.setHeader("X-MSMail-Priority","High"),this.message.setHeader("Importance","High");break;case"low":this.message.setHeader("X-Priority","5 (Lowest)"),this.message.setHeader("X-MSMail-Priority","Low"),this.message.setHeader("Importance","Low");break;default:}}setListHeaders(){!this.message||!this.data.list||typeof this.data.list!="object"||this.data.list&&typeof this.data.list=="object"&&this._getListHeaders(this.data.list).forEach(e=>{e.value.forEach(t=>{this.message.addHeader(e.key,t)})})}_getListHeaders(e){return Object.keys(e).map(t=>({key:"list-"+t.toLowerCase().trim(),value:[].concat(e[t]||[]).map(i=>({prepared:!0,foldLines:!0,value:[].concat(i||[]).map(r=>{if(typeof r=="string"&&(r={url:r}),r&&r.url){if(t.toLowerCase().trim()==="id"){let n=r.comment||"";return cr.isPlainText(n)?n='"'+n+'"':n=cr.encodeWord(n),(r.comment?n+" ":"")+this._formatListUrl(r.url).replace(/^<[^:]+\/{,2}/,"")}let a=r.comment||"";return cr.isPlainText(a)||(a=cr.encodeWord(a)),this._formatListUrl(r.url)+(r.comment?" ("+a+")":"")}return""}).filter(r=>r).join(", ")}))}))}_formatListUrl(e){return e=e.replace(/[\s<]+|[\s>]+/g,""),/^(https?|mailto|ftp):/.test(e)?"<"+e+">":/^[^@]+@[^@]+$/.test(e)?"<mailto:"+e+">":"<http://"+e+">"}};uT.exports=_d});var dT=O((cre,hT)=>{"use strict";h();var N5=M("events"),lT=rt(),B5=ad(),O5=WC(),pT=tT(),L5=nT(),z5=M("util"),M5=M("url"),Nd=It(),R5=cT(),q5=M("net"),U5=M("dns"),H5=M("crypto"),Bd=class extends N5{constructor(e,t,i){super(),this.options=t||{},this._defaults=i||{},this._defaultPlugins={compile:[(...r)=>this._convertDataImages(...r)],stream:[]},this._userPlugins={compile:[],stream:[]},this.meta=new Map,this.dkim=this.options.dkim?new pT(this.options.dkim):!1,this.transporter=e,this.transporter.mailer=this,this.logger=lT.getLogger(this.options,{component:this.options.component||"mail"}),this.logger.debug({tnx:"create"},"Creating transport: %s",this.getVersionString()),typeof this.transporter.on=="function"&&(this.transporter.on("log",r=>{this.logger.debug({tnx:"transport"},"%s: %s",r.type,r.message)}),this.transporter.on("error",r=>{this.logger.error({err:r,tnx:"transport"},"Transport Error: %s",r.message),this.emit("error",r)}),this.transporter.on("idle",(...r)=>{this.emit("idle",...r)})),["close","isIdle","verify"].forEach(r=>{this[r]=(...a)=>typeof this.transporter[r]=="function"?(r==="verify"&&typeof this.getSocket=="function"&&(this.transporter.getSocket=this.getSocket,this.getSocket=!1),this.transporter[r](...a)):(this.logger.warn({tnx:"transport",methodName:r},"Non existing method %s called for transport",r),!1)}),this.options.proxy&&typeof this.options.proxy=="string"&&this.setupProxy(this.options.proxy)}use(e,t){return e=(e||"").toString(),this._userPlugins.hasOwnProperty(e)?this._userPlugins[e].push(t):this._userPlugins[e]=[t],this}sendMail(e,t=null){let i;t||(i=new Promise((a,n)=>{t=lT.callbackPromise(a,n)})),typeof this.getSocket=="function"&&(this.transporter.getSocket=this.getSocket,this.getSocket=!1);let r=new R5(this,e);return this.logger.debug({tnx:"transport",name:this.transporter.name,version:this.transporter.version,action:"send"},"Sending mail using %s/%s",this.transporter.name,this.transporter.version),this._processPlugins("compile",r,a=>{if(a)return this.logger.error({err:a,tnx:"plugin",action:"compile"},"PluginCompile Error: %s",a.message),t(a);r.message=new O5(r.data).compile(),r.setMailerHeader(),r.setPriorityHeaders(),r.setListHeaders(),this._processPlugins("stream",r,n=>{if(n)return this.logger.error({err:n,tnx:"plugin",action:"stream"},"PluginStream Error: %s",n.message),t(n);(r.data.dkim||this.dkim)&&r.message.processFunc(o=>{let u=r.data.dkim?new pT(r.data.dkim):this.dkim;return this.logger.debug({tnx:"DKIM",messageId:r.message.messageId(),dkimDomains:u.keys.map(c=>c.keySelector+"."+c.domainName).join(", ")},"Signing outgoing message with %s keys",u.keys.length),u.sign(o,r.data._dkim)}),this.transporter.send(r,(...o)=>{o[0]&&this.logger.error({err:o[0],tnx:"transport",action:"send"},"Send Error: %s",o[0].message),t(...o)})})}),i}getVersionString(){return z5.format("%s (%s; +%s; %s/%s)",Nd.name,Nd.version,Nd.homepage,this.transporter.name,this.transporter.version)}_processPlugins(e,t,i){if(e=(e||"").toString(),!this._userPlugins.hasOwnProperty(e))return i();let r=this._userPlugins[e]||[],a=this._defaultPlugins[e]||[];if(r.length&&this.logger.debug({tnx:"transaction",pluginCount:r.length,step:e},"Using %s plugins for %s",r.length,e),r.length+a.length===0)return i();let n=0,o="default",u=()=>{let c=o==="default"?a:r;if(n>=c.length)if(o==="default"&&r.length)o="user",n=0,c=r;else return i();let l=c[n++];l(t,p=>{if(p)return i(p);u()})};u()}setupProxy(e){let t=M5.parse(e);this.getSocket=(i,r)=>{let a=t.protocol.replace(/:$/,"").toLowerCase();if(this.meta.has("proxy_handler_"+a))return this.meta.get("proxy_handler_"+a)(t,i,r);switch(a){case"http":case"https":L5(t.href,i.port,i.host,(n,o)=>n?r(n):r(null,{connection:o}));return;case"socks":case"socks5":case"socks4":case"socks4a":{if(!this.meta.has("proxy_socks_module"))return r(new Error("Socks module not loaded"));let n=o=>{let u=!!this.meta.get("proxy_socks_module").SocksClient,c=u?this.meta.get("proxy_socks_module").SocksClient:this.meta.get("proxy_socks_module"),l=Number(t.protocol.replace(/\D/g,""))||5,p={proxy:{ipaddress:o,port:Number(t.port),type:l},[u?"destination":"target"]:{host:i.host,port:i.port},command:"connect"};if(t.auth){let d=decodeURIComponent(t.auth.split(":").shift()),m=decodeURIComponent(t.auth.split(":").pop());u?(p.proxy.userId=d,p.proxy.password=m):l===4?p.userid=d:p.authentication={username:d,password:m}}c.createConnection(p,(d,m)=>d?r(d):r(null,{connection:m.socket||m}))};return q5.isIP(t.hostname)?n(t.hostname):U5.resolve(t.hostname,(o,u)=>{if(o)return r(o);n(Array.isArray(u)?u[0]:u)})}}r(new Error("Unknown proxy configuration"))}}_convertDataImages(e,t){if(!this.options.attachDataUrls&&!e.data.attachDataUrls||!e.data.html)return t();e.resolveContent(e.data,"html",(i,r)=>{if(i)return t(i);let a=0;r=(r||"").toString().replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;]+);[^"'>\s]+)/gi,(n,o,u,c)=>{let l=H5.randomBytes(10).toString("hex")+"@localhost";return e.data.attachments||(e.data.attachments=[]),Array.isArray(e.data.attachments)||(e.data.attachments=[].concat(e.data.attachments||[])),e.data.attachments.push({path:u,cid:l,filename:"image-"+ ++a+"."+B5.detectExtension(c)}),o+"cid:"+l}),e.data.html=r,t()})}set(e,t){return this.meta.set(e,t)}get(e){return this.meta.get(e)}};hT.exports=Bd});var mT=O((pre,fT)=>{"use strict";h();var $5=M("stream"),V5=$5.Transform,Od=class extends V5{constructor(e){super(e),this.options=e||{},this._curLine="",this.inByteCount=0,this.outByteCount=0,this.lastByte=!1}_transform(e,t,i){let r=[],a=0,n,o,u=0,c;if(!e||!e.length)return i();for(typeof e=="string"&&(e=Buffer.from(e)),this.inByteCount+=e.length,n=0,o=e.length;n<o;n++)e[n]===46?(n&&e[n-1]===10||!n&&(!this.lastByte||this.lastByte===10))&&(c=e.slice(u,n+1),r.push(c),r.push(Buffer.from(".")),a+=c.length+1,u=n+1):e[n]===10&&(n&&e[n-1]!==13||!n&&this.lastByte!==13)&&(n>u?(c=e.slice(u,n),r.push(c),a+=c.length+2):a+=2,r.push(Buffer.from(`\r
`)),u=n+1);a?(u<e.length&&(c=e.slice(u),r.push(c),a+=c.length),this.outByteCount+=a,this.push(Buffer.concat(r,a))):(this.outByteCount+=e.length,this.push(e)),this.lastByte=e[e.length-1],i()}_flush(e){let t;this.lastByte===10?t=Buffer.from(`.\r
`):this.lastByte===13?t=Buffer.from(`
.\r
`):t=Buffer.from(`\r
.\r
`),this.outByteCount+=t.length,this.push(t),e()}};fT.exports=Od});var Zo=O((dre,DT)=>{"use strict";h();var W5=It(),G5=M("events").EventEmitter,gT=M("net"),yT=M("tls"),K5=M("os"),xT=M("crypto"),J5=mT(),bT=M("stream").PassThrough,hs=rt(),X5=2*60*1e3,wT=10*60*1e3,Y5=30*1e3,Q5=30*1e3,Ld=class extends G5{constructor(e){super(e),this.id=xT.randomBytes(8).toString("base64").replace(/\W/g,""),this.stage="init",this.options=e||{},this.secureConnection=!!this.options.secure,this.alreadySecured=!!this.options.secured,this.port=Number(this.options.port)||(this.secureConnection?465:587),this.host=this.options.host||"localhost",this.servername=this.options.servername?this.options.servername:gT.isIP(this.host)?!1:this.host,this.allowInternalNetworkInterfaces=this.options.allowInternalNetworkInterfaces||!1,typeof this.options.secure>"u"&&this.port===465&&(this.secureConnection=!0),this.name=this.options.name||this._getHostname(),this.logger=hs.getLogger(this.options,{component:this.options.component||"smtp-connection",sid:this.id}),this.customAuth=new Map,Object.keys(this.options.customAuth||{}).forEach(t=>{let i=(t||"").toString().trim().toUpperCase();i&&this.customAuth.set(i,this.options.customAuth[t])}),this.version=W5.version,this.authenticated=!1,this.destroyed=!1,this.secure=!!this.secureConnection,this._remainder="",this._responseQueue=[],this.lastServerResponse=!1,this._socket=!1,this._supportedAuth=[],this.allowsAuth=!1,this._envelope=!1,this._supportedExtensions=[],this._maxAllowedSize=0,this._responseActions=[],this._recipientQueue=[],this._greetingTimeout=!1,this._connectionTimeout=!1,this._destroyed=!1,this._closing=!1,this._onSocketData=t=>this._onData(t),this._onSocketError=t=>this._onError(t,"ESOCKET",!1,"CONN"),this._onSocketClose=()=>this._onClose(),this._onSocketEnd=()=>this._onEnd(),this._onSocketTimeout=()=>this._onTimeout()}connect(e){if(typeof e=="function"){this.once("connect",()=>{this.logger.debug({tnx:"smtp"},"SMTP handshake finished"),e()});let r=this._isDestroyedMessage("connect");if(r)return e(this._formatError(r,"ECONNECTION",!1,"CONN"))}let t={port:this.port,host:this.host,allowInternalNetworkInterfaces:this.allowInternalNetworkInterfaces,timeout:this.options.dnsTimeout||Q5};this.options.localAddress&&(t.localAddress=this.options.localAddress);let i=()=>{this._connectionTimeout=setTimeout(()=>{this._onError("Connection timeout","ETIMEDOUT",!1,"CONN")},this.options.connectionTimeout||X5),this._socket.on("error",this._onSocketError)};if(this.options.connection){this._socket=this.options.connection,i(),this.secureConnection&&!this.alreadySecured?setImmediate(()=>this._upgradeConnection(r=>{if(r){this._onError(new Error("Error initiating TLS - "+(r.message||r)),"ETLS",!1,"CONN");return}this._onConnect()})):setImmediate(()=>this._onConnect());return}else return this.options.socket?(this._socket=this.options.socket,hs.resolveHostname(t,(r,a)=>{if(r)return setImmediate(()=>this._onError(r,"EDNS",!1,"CONN"));this.logger.debug({tnx:"dns",source:t.host,resolved:a.host,cached:!!a.cached},"Resolved %s as %s [cache %s]",t.host,a.host,a.cached?"hit":"miss"),Object.keys(a).forEach(n=>{n.charAt(0)!=="_"&&a[n]&&(t[n]=a[n])});try{this._socket.connect(this.port,this.host,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),i()}catch(n){return setImmediate(()=>this._onError(n,"ECONNECTION",!1,"CONN"))}})):this.secureConnection?(this.options.tls&&Object.keys(this.options.tls).forEach(r=>{t[r]=this.options.tls[r]}),this.servername&&!t.servername&&(t.servername=this.servername),hs.resolveHostname(t,(r,a)=>{if(r)return setImmediate(()=>this._onError(r,"EDNS",!1,"CONN"));this.logger.debug({tnx:"dns",source:t.host,resolved:a.host,cached:!!a.cached},"Resolved %s as %s [cache %s]",t.host,a.host,a.cached?"hit":"miss"),Object.keys(a).forEach(n=>{n.charAt(0)!=="_"&&a[n]&&(t[n]=a[n])});try{this._socket=yT.connect(t,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),i()}catch(n){return setImmediate(()=>this._onError(n,"ECONNECTION",!1,"CONN"))}})):hs.resolveHostname(t,(r,a)=>{if(r)return setImmediate(()=>this._onError(r,"EDNS",!1,"CONN"));this.logger.debug({tnx:"dns",source:t.host,resolved:a.host,cached:!!a.cached},"Resolved %s as %s [cache %s]",t.host,a.host,a.cached?"hit":"miss"),Object.keys(a).forEach(n=>{n.charAt(0)!=="_"&&a[n]&&(t[n]=a[n])});try{this._socket=gT.connect(t,()=>{this._socket.setKeepAlive(!0),this._onConnect()}),i()}catch(n){return setImmediate(()=>this._onError(n,"ECONNECTION",!1,"CONN"))}})}quit(){this._sendCommand("QUIT"),this._responseActions.push(this.close)}close(){if(clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),this._responseActions=[],this._closing)return;this._closing=!0;let e="end";this.stage==="init"&&(e="destroy"),this.logger.debug({tnx:"smtp"},'Closing connection to the server using "%s"',e);let t=this._socket&&this._socket.socket||this._socket;if(t&&!t.destroyed)try{this._socket[e]()}catch{}this._destroy()}login(e,t){let i=this._isDestroyedMessage("login");if(i)return t(this._formatError(i,"ECONNECTION",!1,"API"));if(this._auth=e||{},this._authMethod=(this._auth.method||"").toString().trim().toUpperCase()||!1,!this._authMethod&&this._auth.oauth2&&!this._auth.credentials?this._authMethod="XOAUTH2":(!this._authMethod||this._authMethod==="XOAUTH2"&&!this._auth.oauth2)&&(this._authMethod=(this._supportedAuth[0]||"PLAIN").toUpperCase().trim()),this._authMethod!=="XOAUTH2"&&(!this._auth.credentials||!this._auth.credentials.user||!this._auth.credentials.pass))if(this._auth.user&&this._auth.pass||this.customAuth.has(this._authMethod))this._auth.credentials={user:this._auth.user,pass:this._auth.pass,options:this._auth.options};else return t(this._formatError('Missing credentials for "'+this._authMethod+'"',"EAUTH",!1,"API"));if(this.customAuth.has(this._authMethod)){let r=this.customAuth.get(this._authMethod),a,n=!1,o=()=>{n||(n=!0,this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=!0,t(null,!0))},u=l=>{n||(n=!0,t(this._formatError(l,"EAUTH",a,"AUTH "+this._authMethod)))},c=r({auth:this._auth,method:this._authMethod,extensions:[].concat(this._supportedExtensions),authMethods:[].concat(this._supportedAuth),maxAllowedSize:this._maxAllowedSize||!1,sendCommand:(l,p)=>{let d;return p||(d=new Promise((m,f)=>{p=hs.callbackPromise(m,f)})),this._responseActions.push(m=>{a=m;let f=m.match(/^(\d+)(?:\s(\d+\.\d+\.\d+))?\s/),g={command:l,response:m};f?(g.status=Number(f[1])||0,f[2]&&(g.code=f[2]),g.text=m.substr(f[0].length)):(g.text=m,g.status=0),p(null,g)}),setImmediate(()=>this._sendCommand(l)),d},resolve:o,reject:u});c&&typeof c.catch=="function"&&c.then(o).catch(u);return}switch(this._authMethod){case"XOAUTH2":this._handleXOauth2Token(!1,t);return;case"LOGIN":this._responseActions.push(r=>{this._actionAUTH_LOGIN_USER(r,t)}),this._sendCommand("AUTH LOGIN");return;case"PLAIN":this._responseActions.push(r=>{this._actionAUTHComplete(r,t)}),this._sendCommand("AUTH PLAIN "+Buffer.from("\0"+this._auth.credentials.user+"\0"+this._auth.credentials.pass,"utf-8").toString("base64"),"AUTH PLAIN "+Buffer.from("\0"+this._auth.credentials.user+"\0/* secret */","utf-8").toString("base64"));return;case"CRAM-MD5":this._responseActions.push(r=>{this._actionAUTH_CRAM_MD5(r,t)}),this._sendCommand("AUTH CRAM-MD5");return}return t(this._formatError('Unknown authentication method "'+this._authMethod+'"',"EAUTH",!1,"API"))}send(e,t,i){if(!t)return i(this._formatError("Empty message","EMESSAGE",!1,"API"));let r=this._isDestroyedMessage("send message");if(r)return i(this._formatError(r,"ECONNECTION",!1,"API"));if(this._maxAllowedSize&&e.size>this._maxAllowedSize)return setImmediate(()=>{i(this._formatError("Message size larger than allowed "+this._maxAllowedSize,"EMESSAGE",!1,"MAIL FROM"))});let a=!1,n=function(){a||(a=!0,i(...arguments))};typeof t.on=="function"&&t.on("error",u=>n(this._formatError(u,"ESTREAM",!1,"API")));let o=Date.now();this._setEnvelope(e,(u,c)=>{if(u){let d=new bT;return typeof t.pipe=="function"?t.pipe(d):(d.write(t),d.end()),n(u)}let l=Date.now(),p=this._createSendStream((d,m)=>d?n(d):(c.envelopeTime=l-o,c.messageTime=Date.now()-l,c.messageSize=p.outByteCount,c.response=m,n(null,c)));typeof t.pipe=="function"?t.pipe(p):(p.write(t),p.end())})}reset(e){this._sendCommand("RSET"),this._responseActions.push(t=>t.charAt(0)!=="2"?e(this._formatError("Could not reset session state. response="+t,"EPROTOCOL",t,"RSET")):(this._envelope=!1,e(null,!0)))}_onConnect(){if(clearTimeout(this._connectionTimeout),this.logger.info({tnx:"network",localAddress:this._socket.localAddress,localPort:this._socket.localPort,remoteAddress:this._socket.remoteAddress,remotePort:this._socket.remotePort},"%s established to %s:%s",this.secure?"Secure connection":"Connection",this._socket.remoteAddress,this._socket.remotePort),this._destroyed){this.close();return}this.stage="connected",this._socket.removeListener("data",this._onSocketData),this._socket.removeListener("timeout",this._onSocketTimeout),this._socket.removeListener("close",this._onSocketClose),this._socket.removeListener("end",this._onSocketEnd),this._socket.on("data",this._onSocketData),this._socket.once("close",this._onSocketClose),this._socket.once("end",this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||wT),this._socket.on("timeout",this._onSocketTimeout),this._greetingTimeout=setTimeout(()=>{this._socket&&!this._destroyed&&this._responseActions[0]===this._actionGreeting&&this._onError("Greeting never received","ETIMEDOUT",!1,"CONN")},this.options.greetingTimeout||Y5),this._responseActions.push(this._actionGreeting),this._socket.resume()}_onData(e){if(this._destroyed||!e||!e.length)return;let t=(e||"").toString("binary"),i=(this._remainder+t).split(/\r?\n/),r;this._remainder=i.pop();for(let a=0,n=i.length;a<n;a++){if(this._responseQueue.length&&(r=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(r.split(`
`).pop()))){this._responseQueue[this._responseQueue.length-1]+=`
`+i[a];continue}this._responseQueue.push(i[a])}this._responseQueue.length&&(r=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(r.split(`
`).pop()))||this._processResponse()}_onError(e,t,i,r){clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),!this._destroyed&&(e=this._formatError(e,t,i,r),this.logger.error(i,e.message),this.emit("error",e),this.close())}_formatError(e,t,i,r){let a;/Error\]$/i.test(Object.prototype.toString.call(e))?a=e:a=new Error(e),t&&t!=="Error"&&(a.code=t),i&&(a.response=i,a.message+=": "+i);let n=typeof i=="string"&&Number((i.match(/^\d+/)||[])[0])||!1;return n&&(a.responseCode=n),r&&(a.command=r),a}_onClose(){let e=!1;if(this._remainder&&this._remainder.trim()&&((this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"server"},this._remainder.replace(/\r?\n$/,"")),this.lastServerResponse=e=this._remainder.trim()),this.logger.info({tnx:"network"},"Connection closed"),this.upgrading&&!this._destroyed)return this._onError(new Error("Connection closed unexpectedly"),"ETLS",e,"CONN");if(![this._actionGreeting,this.close].includes(this._responseActions[0])&&!this._destroyed)return this._onError(new Error("Connection closed unexpectedly"),"ECONNECTION",e,"CONN");if(/^[45]\d{2}\b/.test(e))return this._onError(new Error("Connection closed unexpectedly"),"ECONNECTION",e,"CONN");this._destroy()}_onEnd(){this._socket&&!this._socket.destroyed&&this._socket.destroy()}_onTimeout(){return this._onError(new Error("Timeout"),"ETIMEDOUT",!1,"CONN")}_destroy(){this._destroyed||(this._destroyed=!0,this.emit("end"))}_upgradeConnection(e){this._socket.removeListener("data",this._onSocketData),this._socket.removeListener("timeout",this._onSocketTimeout);let t=this._socket,i={socket:this._socket,host:this.host};Object.keys(this.options.tls||{}).forEach(r=>{i[r]=this.options.tls[r]}),this.servername&&!i.servername&&(i.servername=this.servername),this.upgrading=!0;try{this._socket=yT.connect(i,()=>(this.secure=!0,this.upgrading=!1,this._socket.on("data",this._onSocketData),t.removeListener("close",this._onSocketClose),t.removeListener("end",this._onSocketEnd),e(null,!0)))}catch(r){return e(r)}this._socket.on("error",this._onSocketError),this._socket.once("close",this._onSocketClose),this._socket.once("end",this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||wT),this._socket.on("timeout",this._onSocketTimeout),t.resume()}_processResponse(){if(!this._responseQueue.length)return!1;let e=this.lastServerResponse=(this._responseQueue.shift()||"").toString();if(/^\d+-/.test(e.split(`
`).pop()))return;(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"server"},e.replace(/\r?\n$/,"")),e.trim()||setImmediate(()=>this._processResponse());let t=this._responseActions.shift();if(typeof t=="function")t.call(this,e),setImmediate(()=>this._processResponse());else return this._onError(new Error("Unexpected Response"),"EPROTOCOL",e,"CONN")}_sendCommand(e,t){if(!this._destroyed){if(this._socket.destroyed)return this.close();(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"client"},(t||e||"").toString().replace(/\r?\n$/,"")),this._socket.write(Buffer.from(e+`\r
`,"utf-8"))}}_setEnvelope(e,t){let i=[],r=!1;if(this._envelope=e||{},this._envelope.from=(this._envelope.from&&this._envelope.from.address||this._envelope.from||"").toString().trim(),this._envelope.to=[].concat(this._envelope.to||[]).map(a=>(a&&a.address||a||"").toString().trim()),!this._envelope.to.length)return t(this._formatError("No recipients defined","EENVELOPE",!1,"API"));if(this._envelope.from&&/[\r\n<>]/.test(this._envelope.from))return t(this._formatError("Invalid sender "+JSON.stringify(this._envelope.from),"EENVELOPE",!1,"API"));/[\x80-\uFFFF]/.test(this._envelope.from)&&(r=!0);for(let a=0,n=this._envelope.to.length;a<n;a++){if(!this._envelope.to[a]||/[\r\n<>]/.test(this._envelope.to[a]))return t(this._formatError("Invalid recipient "+JSON.stringify(this._envelope.to[a]),"EENVELOPE",!1,"API"));/[\x80-\uFFFF]/.test(this._envelope.to[a])&&(r=!0)}if(this._envelope.rcptQueue=JSON.parse(JSON.stringify(this._envelope.to||[])),this._envelope.rejected=[],this._envelope.rejectedErrors=[],this._envelope.accepted=[],this._envelope.dsn)try{this._envelope.dsn=this._setDsnEnvelope(this._envelope.dsn)}catch(a){return t(this._formatError("Invalid DSN "+a.message,"EENVELOPE",!1,"API"))}this._responseActions.push(a=>{this._actionMAIL(a,t)}),r&&this._supportedExtensions.includes("SMTPUTF8")&&(i.push("SMTPUTF8"),this._usingSmtpUtf8=!0),this._envelope.use8BitMime&&this._supportedExtensions.includes("8BITMIME")&&(i.push("BODY=8BITMIME"),this._using8BitMime=!0),this._envelope.size&&this._supportedExtensions.includes("SIZE")&&i.push("SIZE="+this._envelope.size),this._envelope.dsn&&this._supportedExtensions.includes("DSN")&&(this._envelope.dsn.ret&&i.push("RET="+hs.encodeXText(this._envelope.dsn.ret)),this._envelope.dsn.envid&&i.push("ENVID="+hs.encodeXText(this._envelope.dsn.envid))),this._sendCommand("MAIL FROM:<"+this._envelope.from+">"+(i.length?" "+i.join(" "):""))}_setDsnEnvelope(e){let t=(e.ret||e.return||"").toString().toUpperCase()||null;if(t)switch(t){case"HDRS":case"HEADERS":t="HDRS";break;case"FULL":case"BODY":t="FULL";break}if(t&&!["FULL","HDRS"].includes(t))throw new Error("ret: "+JSON.stringify(t));let i=(e.envid||e.id||"").toString()||null,r=e.notify||null;if(r){typeof r=="string"&&(r=r.split(",")),r=r.map(u=>u.trim().toUpperCase());let n=["NEVER","SUCCESS","FAILURE","DELAY"];if(r.filter(u=>!n.includes(u)).length||r.length>1&&r.includes("NEVER"))throw new Error("notify: "+JSON.stringify(r.join(",")));r=r.join(",")}let a=(e.recipient||e.orcpt||"").toString()||null;return a&&a.indexOf(";")<0&&(a="rfc822;"+a),{ret:t,envid:i,notify:r,orcpt:a}}_getDsnRcptToArgs(){let e=[];return this._envelope.dsn&&this._supportedExtensions.includes("DSN")&&(this._envelope.dsn.notify&&e.push("NOTIFY="+hs.encodeXText(this._envelope.dsn.notify)),this._envelope.dsn.orcpt&&e.push("ORCPT="+hs.encodeXText(this._envelope.dsn.orcpt))),e.length?" "+e.join(" "):""}_createSendStream(e){let t=new J5,i;return this.options.lmtp?this._envelope.accepted.forEach((r,a)=>{let n=a===this._envelope.accepted.length-1;this._responseActions.push(o=>{this._actionLMTPStream(r,n,o,e)})}):this._responseActions.push(r=>{this._actionSMTPStream(r,e)}),t.pipe(this._socket,{end:!1}),this.options.debug&&(i=new bT,i.on("readable",()=>{let r;for(;r=i.read();)this.logger.debug({tnx:"message"},r.toString("binary").replace(/\r?\n$/,""))}),t.pipe(i)),t.once("end",()=>{this.logger.info({tnx:"message",inByteCount:t.inByteCount,outByteCount:t.outByteCount},"<%s bytes encoded mime message (source size %s bytes)>",t.outByteCount,t.inByteCount)}),t}_actionGreeting(e){if(clearTimeout(this._greetingTimeout),e.substr(0,3)!=="220"){this._onError(new Error("Invalid greeting. response="+e),"EPROTOCOL",e,"CONN");return}this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand("LHLO "+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand("EHLO "+this.name))}_actionLHLO(e){if(e.charAt(0)!=="2"){this._onError(new Error("Invalid LHLO. response="+e),"EPROTOCOL",e,"LHLO");return}this._actionEHLO(e)}_actionEHLO(e){let t;if(e.substr(0,3)==="421"){this._onError(new Error("Server terminates connection. response="+e),"ECONNECTION",e,"EHLO");return}if(e.charAt(0)!=="2"){if(this.options.requireTLS){this._onError(new Error("EHLO failed but HELO does not support required STARTTLS. response="+e),"ECONNECTION",e,"EHLO");return}this._responseActions.push(this._actionHELO),this._sendCommand("HELO "+this.name);return}if(this._ehloLines=e.split(/\r?\n/).map(i=>i.replace(/^\d+[ -]/,"").trim()).filter(i=>i).slice(1),!this.secure&&!this.options.ignoreTLS&&(/[ -]STARTTLS\b/im.test(e)||this.options.requireTLS)){this._sendCommand("STARTTLS"),this._responseActions.push(this._actionSTARTTLS);return}/[ -]SMTPUTF8\b/im.test(e)&&this._supportedExtensions.push("SMTPUTF8"),/[ -]DSN\b/im.test(e)&&this._supportedExtensions.push("DSN"),/[ -]8BITMIME\b/im.test(e)&&this._supportedExtensions.push("8BITMIME"),/[ -]PIPELINING\b/im.test(e)&&this._supportedExtensions.push("PIPELINING"),/[ -]AUTH\b/i.test(e)&&(this.allowsAuth=!0),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)PLAIN/i.test(e)&&this._supportedAuth.push("PLAIN"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)LOGIN/i.test(e)&&this._supportedAuth.push("LOGIN"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)CRAM-MD5/i.test(e)&&this._supportedAuth.push("CRAM-MD5"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)XOAUTH2/i.test(e)&&this._supportedAuth.push("XOAUTH2"),(t=e.match(/[ -]SIZE(?:[ \t]+(\d+))?/im))&&(this._supportedExtensions.push("SIZE"),this._maxAllowedSize=Number(t[1])||0),this.emit("connect")}_actionHELO(e){if(e.charAt(0)!=="2"){this._onError(new Error("Invalid HELO. response="+e),"EPROTOCOL",e,"HELO");return}this.allowsAuth=!0,this.emit("connect")}_actionSTARTTLS(e){if(e.charAt(0)!=="2"){if(this.options.opportunisticTLS)return this.logger.info({tnx:"smtp"},"Failed STARTTLS upgrade, continuing unencrypted"),this.emit("connect");this._onError(new Error("Error upgrading connection with STARTTLS"),"ETLS",e,"STARTTLS");return}this._upgradeConnection((t,i)=>{if(t){this._onError(new Error("Error initiating TLS - "+(t.message||t)),"ETLS",!1,"STARTTLS");return}this.logger.info({tnx:"smtp"},"Connection upgraded with STARTTLS"),i?this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand("LHLO "+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand("EHLO "+this.name)):this.emit("connect")})}_actionAUTH_LOGIN_USER(e,t){if(!/^334[ -]/.test(e)){t(this._formatError('Invalid login sequence while waiting for "334 VXNlcm5hbWU6"',"EAUTH",e,"AUTH LOGIN"));return}this._responseActions.push(i=>{this._actionAUTH_LOGIN_PASS(i,t)}),this._sendCommand(Buffer.from(this._auth.credentials.user+"","utf-8").toString("base64"))}_actionAUTH_CRAM_MD5(e,t){let i=e.match(/^334\s+(.+)$/),r="";if(i)r=i[1];else return t(this._formatError("Invalid login sequence while waiting for server challenge string","EAUTH",e,"AUTH CRAM-MD5"));let a=Buffer.from(r,"base64").toString("ascii"),n=xT.createHmac("md5",this._auth.credentials.pass);n.update(a);let o=this._auth.credentials.user+" "+n.digest("hex");this._responseActions.push(u=>{this._actionAUTH_CRAM_MD5_PASS(u,t)}),this._sendCommand(Buffer.from(o).toString("base64"),Buffer.from(this._auth.credentials.user+" /* secret */").toString("base64"))}_actionAUTH_CRAM_MD5_PASS(e,t){if(!e.match(/^235\s+/))return t(this._formatError('Invalid login sequence while waiting for "235"',"EAUTH",e,"AUTH CRAM-MD5"));this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=!0,t(null,!0)}_actionAUTH_LOGIN_PASS(e,t){if(!/^334[ -]/.test(e))return t(this._formatError('Invalid login sequence while waiting for "334 UGFzc3dvcmQ6"',"EAUTH",e,"AUTH LOGIN"));this._responseActions.push(i=>{this._actionAUTHComplete(i,t)}),this._sendCommand(Buffer.from((this._auth.credentials.pass||"").toString(),"utf-8").toString("base64"),Buffer.from("/* secret */","utf-8").toString("base64"))}_actionAUTHComplete(e,t,i){if(!i&&typeof t=="function"&&(i=t,t=!1),e.substr(0,3)==="334"){this._responseActions.push(r=>{t||this._authMethod!=="XOAUTH2"?this._actionAUTHComplete(r,!0,i):setImmediate(()=>this._handleXOauth2Token(!0,i))}),this._sendCommand("");return}if(e.charAt(0)!=="2")return this.logger.info({tnx:"smtp",username:this._auth.user,action:"authfail",method:this._authMethod},"User %s failed to authenticate",JSON.stringify(this._auth.user)),i(this._formatError("Invalid login","EAUTH",e,"AUTH "+this._authMethod));this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=!0,i(null,!0)}_actionMAIL(e,t){let i,r;if(Number(e.charAt(0))!==2)return this._usingSmtpUtf8&&/^550 /.test(e)&&/[\x80-\uFFFF]/.test(this._envelope.from)?i="Internationalized mailbox name not allowed":i="Mail command failed",t(this._formatError(i,"EENVELOPE",e,"MAIL FROM"));if(this._envelope.rcptQueue.length)if(this._recipientQueue=[],this._supportedExtensions.includes("PIPELINING"))for(;this._envelope.rcptQueue.length;)r=this._envelope.rcptQueue.shift(),this._recipientQueue.push(r),this._responseActions.push(a=>{this._actionRCPT(a,t)}),this._sendCommand("RCPT TO:<"+r+">"+this._getDsnRcptToArgs());else r=this._envelope.rcptQueue.shift(),this._recipientQueue.push(r),this._responseActions.push(a=>{this._actionRCPT(a,t)}),this._sendCommand("RCPT TO:<"+r+">"+this._getDsnRcptToArgs());else return t(this._formatError("Can't send mail - no recipients defined","EENVELOPE",!1,"API"))}_actionRCPT(e,t){let i,r,a=this._recipientQueue.shift();if(Number(e.charAt(0))!==2?(this._usingSmtpUtf8&&/^553 /.test(e)&&/[\x80-\uFFFF]/.test(a)?i="Internationalized mailbox name not allowed":i="Recipient command failed",this._envelope.rejected.push(a),r=this._formatError(i,"EENVELOPE",e,"RCPT TO"),r.recipient=a,this._envelope.rejectedErrors.push(r)):this._envelope.accepted.push(a),!this._envelope.rcptQueue.length&&!this._recipientQueue.length)if(this._envelope.rejected.length<this._envelope.to.length)this._responseActions.push(n=>{this._actionDATA(n,t)}),this._sendCommand("DATA");else return r=this._formatError("Can't send mail - all recipients were rejected","EENVELOPE",e,"RCPT TO"),r.rejected=this._envelope.rejected,r.rejectedErrors=this._envelope.rejectedErrors,t(r);else this._envelope.rcptQueue.length&&(a=this._envelope.rcptQueue.shift(),this._recipientQueue.push(a),this._responseActions.push(n=>{this._actionRCPT(n,t)}),this._sendCommand("RCPT TO:<"+a+">"+this._getDsnRcptToArgs()))}_actionDATA(e,t){if(!/^[23]/.test(e))return t(this._formatError("Data command failed","EENVELOPE",e,"DATA"));let i={accepted:this._envelope.accepted,rejected:this._envelope.rejected};this._ehloLines&&this._ehloLines.length&&(i.ehlo=this._ehloLines),this._envelope.rejectedErrors.length&&(i.rejectedErrors=this._envelope.rejectedErrors),t(null,i)}_actionSMTPStream(e,t){return Number(e.charAt(0))!==2?t(this._formatError("Message failed","EMESSAGE",e,"DATA")):t(null,e)}_actionLMTPStream(e,t,i,r){let a;if(Number(i.charAt(0))!==2){a=this._formatError("Message failed for recipient "+e,"EMESSAGE",i,"DATA"),a.recipient=e,this._envelope.rejected.push(e),this._envelope.rejectedErrors.push(a);for(let n=0,o=this._envelope.accepted.length;n<o;n++)this._envelope.accepted[n]===e&&this._envelope.accepted.splice(n,1)}if(t)return r(null,i)}_handleXOauth2Token(e,t){this._auth.oauth2.getToken(e,(i,r)=>{if(i)return this.logger.info({tnx:"smtp",username:this._auth.user,action:"authfail",method:this._authMethod},"User %s failed to authenticate",JSON.stringify(this._auth.user)),t(this._formatError(i,"EAUTH",!1,"AUTH XOAUTH2"));this._responseActions.push(a=>{this._actionAUTHComplete(a,e,t)}),this._sendCommand("AUTH XOAUTH2 "+this._auth.oauth2.buildXOAuth2Token(r),"AUTH XOAUTH2 "+this._auth.oauth2.buildXOAuth2Token("/* secret */"))})}_isDestroyedMessage(e){if(this._destroyed)return"Cannot "+e+" - smtp connection is already destroyed.";if(this._socket){if(this._socket.destroyed)return"Cannot "+e+" - smtp connection socket is already destroyed.";if(!this._socket.writable)return"Cannot "+e+" - smtp connection socket is already half-closed."}}_getHostname(){let e;try{e=K5.hostname()||""}catch{e="localhost"}return(!e||e.indexOf(".")<0)&&(e="[127.0.0.1]"),e.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)&&(e="["+e+"]"),e}};DT.exports=Ld});var Md=O((mre,kT)=>{"use strict";h();var Z5=M("stream").Stream,e9=Ha(),t9=M("crypto"),s9=rt(),zd=class extends Z5{constructor(e,t){if(super(),this.options=e||{},e&&e.serviceClient){if(!e.privateKey||!e.user){setImmediate(()=>this.emit("error",new Error('Options "privateKey" and "user" are required for service account!')));return}let i=Math.min(Math.max(Number(this.options.serviceRequestTimeout)||0,0),3600);this.options.serviceRequestTimeout=i||5*60}if(this.logger=s9.getLogger({logger:t},{component:this.options.component||"OAuth2"}),this.provisionCallback=typeof this.options.provisionCallback=="function"?this.options.provisionCallback:!1,this.options.accessUrl=this.options.accessUrl||"https://accounts.google.com/o/oauth2/token",this.options.customHeaders=this.options.customHeaders||{},this.options.customParams=this.options.customParams||{},this.accessToken=this.options.accessToken||!1,this.options.expires&&Number(this.options.expires))this.expires=this.options.expires;else{let i=Math.max(Number(this.options.timeout)||0,0);this.expires=i&&Date.now()+i*1e3||0}}getToken(e,t){if(!e&&this.accessToken&&(!this.expires||this.expires>Date.now()))return t(null,this.accessToken);let i=(...r)=>{r[0]?this.logger.error({err:r[0],tnx:"OAUTH2",user:this.options.user,action:"renew"},"Failed generating new Access Token for %s",this.options.user):this.logger.info({tnx:"OAUTH2",user:this.options.user,action:"renew"},"Generated new Access Token for %s",this.options.user),t(...r)};this.provisionCallback?this.provisionCallback(this.options.user,!!e,(r,a,n)=>{!r&&a&&(this.accessToken=a,this.expires=n||0),i(r,a)}):this.generateToken(i)}updateToken(e,t){this.accessToken=e,t=Math.max(Number(t)||0,0),this.expires=t&&Date.now()+t*1e3||0,this.emit("token",{user:this.options.user,accessToken:e||"",expires:this.expires})}generateToken(e){let t,i;if(this.options.serviceClient){let r=Math.floor(Date.now()/1e3),a={iss:this.options.serviceClient,scope:this.options.scope||"https://mail.google.com/",sub:this.options.user,aud:this.options.accessUrl,iat:r,exp:r+this.options.serviceRequestTimeout},n;try{n=this.jwtSignRS256(a)}catch{return e(new Error("Can't generate token. Check your auth options"))}t={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n},i={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:a}}else{if(!this.options.refreshToken)return e(new Error("Can't create new access token for user"));t={client_id:this.options.clientId||"",client_secret:this.options.clientSecret||"",refresh_token:this.options.refreshToken,grant_type:"refresh_token"},i={client_id:this.options.clientId||"",client_secret:(this.options.clientSecret||"").substr(0,6)+"...",refresh_token:(this.options.refreshToken||"").substr(0,6)+"...",grant_type:"refresh_token"}}Object.keys(this.options.customParams).forEach(r=>{t[r]=this.options.customParams[r],i[r]=this.options.customParams[r]}),this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"generate"},"Requesting token using: %s",JSON.stringify(i)),this.postRequest(this.options.accessUrl,t,this.options,(r,a)=>{let n;if(r)return e(r);try{n=JSON.parse(a.toString())}catch(u){return e(u)}if(!n||typeof n!="object")return this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"post"},"Response: %s",(a||"").toString()),e(new Error("Invalid authentication response"));let o={};if(Object.keys(n).forEach(u=>{u!=="access_token"?o[u]=n[u]:o[u]=(n[u]||"").toString().substr(0,6)+"..."}),this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"post"},"Response: %s",JSON.stringify(o)),n.error){let u=n.error;return n.error_description&&(u+=": "+n.error_description),n.error_uri&&(u+=" ("+n.error_uri+")"),e(new Error(u))}return n.access_token?(this.updateToken(n.access_token,n.expires_in),e(null,this.accessToken)):e(new Error("No access token"))})}buildXOAuth2Token(e){let t=["user="+(this.options.user||""),"auth=Bearer "+(e||this.accessToken),"",""];return Buffer.from(t.join(""),"utf-8").toString("base64")}postRequest(e,t,i,r){let a=!1,n=[],o=0,u=e9(e,{method:"post",headers:i.customHeaders,body:t,allowErrorResponse:!0});u.on("readable",()=>{let c;for(;(c=u.read())!==null;)n.push(c),o+=c.length}),u.once("error",c=>{if(!a)return a=!0,r(c)}),u.once("end",()=>{if(!a)return a=!0,r(null,Buffer.concat(n,o))})}toBase64URL(e){return typeof e=="string"&&(e=Buffer.from(e)),e.toString("base64").replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")}jwtSignRS256(e){e=['{"alg":"RS256","typ":"JWT"}',JSON.stringify(e)].map(i=>this.toBase64URL(i)).join(".");let t=t9.createSign("RSA-SHA256").update(e).sign(this.options.privateKey);return e+"."+this.toBase64URL(t)}};kT.exports=zd});var ET=O((yre,vT)=>{"use strict";h();var i9=Zo(),r9=rt().assign,a9=Md(),n9=M("events"),Rd=class extends n9{constructor(e){if(super(),this.pool=e,this.options=e.options,this.logger=this.pool.logger,this.options.auth)switch((this.options.auth.type||"").toString().toUpperCase()){case"OAUTH2":{let t=new a9(this.options.auth,this.logger);t.provisionCallback=this.pool.mailer&&this.pool.mailer.get("oauth2_provision_cb")||t.provisionCallback,this.auth={type:"OAUTH2",user:this.options.auth.user,oauth2:t,method:"XOAUTH2"},t.on("token",i=>this.pool.mailer.emit("token",i)),t.on("error",i=>this.emit("error",i));break}default:if(!this.options.auth.user&&!this.options.auth.pass)break;this.auth={type:(this.options.auth.type||"").toString().toUpperCase()||"LOGIN",user:this.options.auth.user,credentials:{user:this.options.auth.user||"",pass:this.options.auth.pass,options:this.options.auth.options},method:(this.options.auth.method||"").trim().toUpperCase()||this.options.authMethod||!1}}this._connection=!1,this._connected=!1,this.messages=0,this.available=!0}connect(e){this.pool.getSocket(this.options,(t,i)=>{if(t)return e(t);let r=!1,a=this.options;i&&i.connection&&(this.logger.info({tnx:"proxy",remoteAddress:i.connection.remoteAddress,remotePort:i.connection.remotePort,destHost:a.host||"",destPort:a.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",i.connection.remoteAddress,i.connection.remotePort,a.host||"",a.port||""),a=r9(!1,a),Object.keys(i).forEach(n=>{a[n]=i[n]})),this.connection=new i9(a),this.connection.once("error",n=>{if(this.emit("error",n),!r)return r=!0,e(n)}),this.connection.once("end",()=>{if(this.close(),r)return;r=!0;let n=setTimeout(()=>{if(r)return;let o=new Error("Unexpected socket close");this.connection&&this.connection._socket&&this.connection._socket.upgrading&&(o.code="ETLS"),e(o)},1e3);try{n.unref()}catch{}}),this.connection.connect(()=>{if(!r)if(this.auth&&(this.connection.allowsAuth||a.forceAuth))this.connection.login(this.auth,n=>{if(!r){if(r=!0,n)return this.connection.close(),this.emit("error",n),e(n);this._connected=!0,e(null,!0)}});else return r=!0,this._connected=!0,e(null,!0)})})}send(e,t){if(!this._connected)return this.connect(n=>n?t(n):this.send(e,t));let i=e.message.getEnvelope(),r=e.message.messageId(),a=[].concat(i.to||[]);a.length>3&&a.push("...and "+a.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:r,cid:this.id},"Sending message %s using #%s to <%s>",r,this.id,a.join(", ")),e.data.dsn&&(i.dsn=e.data.dsn),this.connection.send(i,e.message.createReadStream(),(n,o)=>{if(this.messages++,n)return this.connection.close(),this.emit("error",n),t(n);o.envelope={from:i.from,to:i.to},o.messageId=r,setImmediate(()=>{let u;this.messages>=this.options.maxMessages?(u=new Error("Resource exhausted"),u.code="EMAXLIMIT",this.connection.close(),this.emit("error",u)):this.pool._checkRateLimit(()=>{this.available=!0,this.emit("available")})}),t(null,o)})}close(){this._connected=!1,this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.connection&&this.connection.close(),this.emit("close")}};vT.exports=Rd});var CT=O((bre,o9)=>{o9.exports={"1und1":{host:"smtp.1und1.de",port:465,secure:!0,authMethod:"LOGIN"},Aliyun:{domains:["aliyun.com"],host:"smtp.aliyun.com",port:465,secure:!0},AOL:{domains:["aol.com"],host:"smtp.aol.com",port:587},Bluewin:{host:"smtpauths.bluewin.ch",domains:["bluewin.ch"],port:465},DebugMail:{host:"debugmail.io",port:25},DynectEmail:{aliases:["Dynect"],host:"smtp.dynect.net",port:25},Ethereal:{aliases:["ethereal.email"],host:"smtp.ethereal.email",port:587},FastMail:{domains:["fastmail.fm"],host:"smtp.fastmail.com",port:465,secure:!0},"Forward Email":{aliases:["FE","ForwardEmail"],domains:["forwardemail.net"],host:"smtp.forwardemail.net",port:465,secure:!0},"Feishu Mail":{aliases:["Feishu","FeishuMail"],domains:["www.feishu.cn"],host:"smtp.feishu.cn",port:465,secure:!0},GandiMail:{aliases:["Gandi","Gandi Mail"],host:"mail.gandi.net",port:587},Gmail:{aliases:["Google Mail"],domains:["gmail.com","googlemail.com"],host:"smtp.gmail.com",port:465,secure:!0},Godaddy:{host:"smtpout.secureserver.net",port:25},GodaddyAsia:{host:"smtp.asia.secureserver.net",port:25},GodaddyEurope:{host:"smtp.europe.secureserver.net",port:25},"hot.ee":{host:"mail.hot.ee"},Hotmail:{aliases:["Outlook","Outlook.com","Hotmail.com"],domains:["hotmail.com","outlook.com"],host:"smtp-mail.outlook.com",port:587},iCloud:{aliases:["Me","Mac"],domains:["me.com","mac.com"],host:"smtp.mail.me.com",port:587},Infomaniak:{host:"mail.infomaniak.com",domains:["ik.me","ikmail.com","etik.com"],port:587},Loopia:{host:"mailcluster.loopia.se",port:465},"mail.ee":{host:"smtp.mail.ee"},"Mail.ru":{host:"smtp.mail.ru",port:465,secure:!0},"Mailcatch.app":{host:"sandbox-smtp.mailcatch.app",port:2525},Maildev:{port:1025,ignoreTLS:!0},Mailgun:{host:"smtp.mailgun.org",port:465,secure:!0},Mailjet:{host:"in.mailjet.com",port:587},Mailosaur:{host:"mailosaur.io",port:25},Mailtrap:{host:"live.smtp.mailtrap.io",port:587},Mandrill:{host:"smtp.mandrillapp.com",port:587},Naver:{host:"smtp.naver.com",port:587},One:{host:"send.one.com",port:465,secure:!0},OpenMailBox:{aliases:["OMB","openmailbox.org"],host:"smtp.openmailbox.org",port:465,secure:!0},Outlook365:{host:"smtp.office365.com",port:587,secure:!1},OhMySMTP:{host:"smtp.ohmysmtp.com",port:587,secure:!1},Postmark:{aliases:["PostmarkApp"],host:"smtp.postmarkapp.com",port:2525},Proton:{aliases:["ProtonMail","Proton.me","Protonmail.com","Protonmail.ch"],domains:["proton.me","protonmail.com","pm.me","protonmail.ch"],host:"smtp.protonmail.ch",port:587,requireTLS:!0},"qiye.aliyun":{host:"smtp.mxhichina.com",port:"465",secure:!0},QQ:{domains:["qq.com"],host:"smtp.qq.com",port:465,secure:!0},QQex:{aliases:["QQ Enterprise"],domains:["exmail.qq.com"],host:"smtp.exmail.qq.com",port:465,secure:!0},SendCloud:{host:"smtp.sendcloud.net",port:2525},SendGrid:{host:"smtp.sendgrid.net",port:587},SendinBlue:{aliases:["Brevo"],host:"smtp-relay.brevo.com",port:587},SendPulse:{host:"smtp-pulse.com",port:465,secure:!0},SES:{host:"email-smtp.us-east-1.amazonaws.com",port:465,secure:!0},"SES-US-EAST-1":{host:"email-smtp.us-east-1.amazonaws.com",port:465,secure:!0},"SES-US-WEST-2":{host:"email-smtp.us-west-2.amazonaws.com",port:465,secure:!0},"SES-EU-WEST-1":{host:"email-smtp.eu-west-1.amazonaws.com",port:465,secure:!0},"SES-AP-SOUTH-1":{host:"email-smtp.ap-south-1.amazonaws.com",port:465,secure:!0},"SES-AP-NORTHEAST-1":{host:"email-smtp.ap-northeast-1.amazonaws.com",port:465,secure:!0},"SES-AP-NORTHEAST-2":{host:"email-smtp.ap-northeast-2.amazonaws.com",port:465,secure:!0},"SES-AP-NORTHEAST-3":{host:"email-smtp.ap-northeast-3.amazonaws.com",port:465,secure:!0},"SES-AP-SOUTHEAST-1":{host:"email-smtp.ap-southeast-1.amazonaws.com",port:465,secure:!0},"SES-AP-SOUTHEAST-2":{host:"email-smtp.ap-southeast-2.amazonaws.com",port:465,secure:!0},Seznam:{aliases:["Seznam Email"],domains:["seznam.cz","email.cz","post.cz","spoluzaci.cz"],host:"smtp.seznam.cz",port:465,secure:!0},Sparkpost:{aliases:["SparkPost","SparkPost Mail"],domains:["sparkpost.com"],host:"smtp.sparkpostmail.com",port:587,secure:!1},Tipimail:{host:"smtp.tipimail.com",port:587},Yahoo:{domains:["yahoo.com"],host:"smtp.mail.yahoo.com",port:465,secure:!0},Yandex:{domains:["yandex.ru"],host:"smtp.yandex.ru",port:465,secure:!0},Zoho:{host:"smtp.zoho.com",port:465,secure:!0,authMethod:"LOGIN"},"126":{host:"smtp.126.com",port:465,secure:!0},"163":{host:"smtp.163.com",port:465,secure:!0}}});var Ud=O((wre,ST)=>{"use strict";h();var TT=CT(),eu={};Object.keys(TT).forEach(s=>{let e=TT[s];eu[tu(s)]=qd(e),[].concat(e.aliases||[]).forEach(t=>{eu[tu(t)]=qd(e)}),[].concat(e.domains||[]).forEach(t=>{eu[tu(t)]=qd(e)})});function tu(s){return s.replace(/[^a-zA-Z0-9.-]/g,"").toLowerCase()}function qd(s){let e=["domains","aliases"],t={};return Object.keys(s).forEach(i=>{e.indexOf(i)<0&&(t[i]=s[i])}),t}ST.exports=function(s){return s=tu(s.split("@").pop()),eu[s]||!1}});var FT=O((kre,PT)=>{"use strict";h();var u9=M("events"),AT=ET(),jT=Zo(),c9=Ud(),Ja=rt(),l9=It(),Hd=class extends u9{constructor(e){super(),e=e||{},typeof e=="string"&&(e={url:e});let t,i=e.service;typeof e.getSocket=="function"&&(this.getSocket=e.getSocket),e.url&&(t=Ja.parseConnectionUrl(e.url),i=i||t.service),this.options=Ja.assign(!1,e,t,i&&c9(i)),this.options.maxConnections=this.options.maxConnections||5,this.options.maxMessages=this.options.maxMessages||100,this.logger=Ja.getLogger(this.options,{component:this.options.component||"smtp-pool"});let r=new jT(this.options);this.name="SMTP (pool)",this.version=l9.version+"[client:"+r.version+"]",this._rateLimit={counter:0,timeout:null,waiting:[],checkpoint:!1,delta:Number(this.options.rateDelta)||1e3,limit:Number(this.options.rateLimit)||0},this._closed=!1,this._queue=[],this._connections=[],this._connectionCounter=0,this.idling=!0,setImmediate(()=>{this.idling&&this.emit("idle")})}getSocket(e,t){return setImmediate(()=>t(null,!1))}send(e,t){return this._closed?!1:(this._queue.push({mail:e,requeueAttempts:0,callback:t}),this.idling&&this._queue.length>=this.options.maxConnections&&(this.idling=!1),setImmediate(()=>this._processMessages()),!0)}close(){let e,t=this._connections.length;if(this._closed=!0,clearTimeout(this._rateLimit.timeout),!t&&!this._queue.length)return;for(let r=t-1;r>=0;r--)this._connections[r]&&this._connections[r].available&&(e=this._connections[r],e.close(),this.logger.info({tnx:"connection",cid:e.id,action:"removed"},"Connection #%s removed",e.id));if(t&&!this._connections.length&&this.logger.debug({tnx:"connection"},"All connections removed"),!this._queue.length)return;let i=()=>{if(!this._queue.length){this.logger.debug({tnx:"connection"},"Pending queue entries cleared");return}let r=this._queue.shift();if(r&&typeof r.callback=="function")try{r.callback(new Error("Connection pool was closed"))}catch(a){this.logger.error({err:a,tnx:"callback",cid:e.id},"Callback error for #%s: %s",e.id,a.message)}setImmediate(i)};setImmediate(i)}_processMessages(){let e,t,i;if(this._closed)return;if(!this._queue.length){this.idling||(this.idling=!0,this.emit("idle"));return}for(t=0,i=this._connections.length;t<i;t++)if(this._connections[t].available){e=this._connections[t];break}if(!e&&this._connections.length<this.options.maxConnections&&(e=this._createConnection()),!e){this.idling=!1;return}!this.idling&&this._queue.length<this.options.maxConnections&&(this.idling=!0,this.emit("idle"));let r=e.queueEntry=this._queue.shift();r.messageId=(e.queueEntry.mail.message.getHeader("message-id")||"").replace(/[<>\s]/g,""),e.available=!1,this.logger.debug({tnx:"pool",cid:e.id,messageId:r.messageId,action:"assign"},"Assigned message <%s> to #%s (%s)",r.messageId,e.id,e.messages+1),this._rateLimit.limit&&(this._rateLimit.counter++,this._rateLimit.checkpoint||(this._rateLimit.checkpoint=Date.now())),e.send(r.mail,(a,n)=>{if(r===e.queueEntry){try{r.callback(a,n)}catch(o){this.logger.error({err:o,tnx:"callback",cid:e.id},"Callback error for #%s: %s",e.id,o.message)}e.queueEntry=!1}})}_createConnection(){let e=new AT(this);return e.id=++this._connectionCounter,this.logger.info({tnx:"pool",cid:e.id,action:"conection"},"Created new pool resource #%s",e.id),e.on("available",()=>{this.logger.debug({tnx:"connection",cid:e.id,action:"available"},"Connection #%s became available",e.id),this._closed?this.close():this._processMessages()}),e.once("error",t=>{if(t.code!=="EMAXLIMIT"?this.logger.error({err:t,tnx:"pool",cid:e.id},"Pool Error for #%s: %s",e.id,t.message):this.logger.debug({tnx:"pool",cid:e.id,action:"maxlimit"},"Max messages limit exchausted for #%s",e.id),e.queueEntry){try{e.queueEntry.callback(t)}catch(i){this.logger.error({err:i,tnx:"callback",cid:e.id},"Callback error for #%s: %s",e.id,i.message)}e.queueEntry=!1}this._removeConnection(e),this._continueProcessing()}),e.once("close",()=>{this.logger.info({tnx:"connection",cid:e.id,action:"closed"},"Connection #%s was closed",e.id),this._removeConnection(e),e.queueEntry?setTimeout(()=>{e.queueEntry&&(this._shouldRequeuOnConnectionClose(e.queueEntry)?this._requeueEntryOnConnectionClose(e):this._failDeliveryOnConnectionClose(e)),this._continueProcessing()},50):this._continueProcessing()}),this._connections.push(e),e}_shouldRequeuOnConnectionClose(e){return this.options.maxRequeues===void 0||this.options.maxRequeues<0?!0:e.requeueAttempts<this.options.maxRequeues}_failDeliveryOnConnectionClose(e){if(e.queueEntry&&e.queueEntry.callback){try{e.queueEntry.callback(new Error("Reached maximum number of retries after connection was closed"))}catch(t){this.logger.error({err:t,tnx:"callback",messageId:e.queueEntry.messageId,cid:e.id},"Callback error for #%s: %s",e.id,t.message)}e.queueEntry=!1}}_requeueEntryOnConnectionClose(e){e.queueEntry.requeueAttempts=e.queueEntry.requeueAttempts+1,this.logger.debug({tnx:"pool",cid:e.id,messageId:e.queueEntry.messageId,action:"requeue"},"Re-queued message <%s> for #%s. Attempt: #%s",e.queueEntry.messageId,e.id,e.queueEntry.requeueAttempts),this._queue.unshift(e.queueEntry),e.queueEntry=!1}_continueProcessing(){this._closed?this.close():setTimeout(()=>this._processMessages(),100)}_removeConnection(e){let t=this._connections.indexOf(e);t!==-1&&this._connections.splice(t,1)}_checkRateLimit(e){if(!this._rateLimit.limit)return e();let t=Date.now();if(this._rateLimit.counter<this._rateLimit.limit)return e();if(this._rateLimit.waiting.push(e),this._rateLimit.checkpoint<=t-this._rateLimit.delta)return this._clearRateLimit();this._rateLimit.timeout||(this._rateLimit.timeout=setTimeout(()=>this._clearRateLimit(),this._rateLimit.delta-(t-this._rateLimit.checkpoint)),this._rateLimit.checkpoint=t)}_clearRateLimit(){for(clearTimeout(this._rateLimit.timeout),this._rateLimit.timeout=null,this._rateLimit.counter=0,this._rateLimit.checkpoint=!1;this._rateLimit.waiting.length;){let e=this._rateLimit.waiting.shift();setImmediate(e)}}isIdle(){return this.idling}verify(e){let t;e||(t=new Promise((r,a)=>{e=Ja.callbackPromise(r,a)}));let i=new AT(this).auth;return this.getSocket(this.options,(r,a)=>{if(r)return e(r);let n=this.options;a&&a.connection&&(this.logger.info({tnx:"proxy",remoteAddress:a.connection.remoteAddress,remotePort:a.connection.remotePort,destHost:n.host||"",destPort:n.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",a.connection.remoteAddress,a.connection.remotePort,n.host||"",n.port||""),n=Ja.assign(!1,n),Object.keys(a).forEach(l=>{n[l]=a[l]}));let o=new jT(n),u=!1;o.once("error",l=>{if(!u)return u=!0,o.close(),e(l)}),o.once("end",()=>{if(!u)return u=!0,e(new Error("Connection closed"))});let c=()=>{if(!u)return u=!0,o.quit(),e(null,!0)};o.connect(()=>{if(!u)if(i&&(o.allowsAuth||n.forceAuth))o.login(i,l=>{if(!u){if(l)return u=!0,o.close(),e(l);c()}});else if(!i&&o.allowsAuth&&n.forceAuth){let l=new Error("Authentication info was not provided");return l.code="NoAuth",u=!0,o.close(),e(l)}else c()})}),t}};PT.exports=Hd});var _T=O((Ere,IT)=>{"use strict";h();var p9=M("events"),$d=Zo(),h9=Ud(),lr=rt(),d9=Md(),f9=It(),Vd=class extends p9{constructor(e){super(),e=e||{},typeof e=="string"&&(e={url:e});let t,i=e.service;typeof e.getSocket=="function"&&(this.getSocket=e.getSocket),e.url&&(t=lr.parseConnectionUrl(e.url),i=i||t.service),this.options=lr.assign(!1,e,t,i&&h9(i)),this.logger=lr.getLogger(this.options,{component:this.options.component||"smtp-transport"});let r=new $d(this.options);this.name="SMTP",this.version=f9.version+"[client:"+r.version+"]",this.options.auth&&(this.auth=this.getAuth({}))}getSocket(e,t){return setImmediate(()=>t(null,!1))}getAuth(e){if(!e)return this.auth;let t=!1,i={};if(this.options.auth&&typeof this.options.auth=="object"&&Object.keys(this.options.auth).forEach(r=>{t=!0,i[r]=this.options.auth[r]}),e&&typeof e=="object"&&Object.keys(e).forEach(r=>{t=!0,i[r]=e[r]}),!t)return!1;switch((i.type||"").toString().toUpperCase()){case"OAUTH2":{if(!i.service&&!i.user)return!1;let r=new d9(i,this.logger);return r.provisionCallback=this.mailer&&this.mailer.get("oauth2_provision_cb")||r.provisionCallback,r.on("token",a=>this.mailer.emit("token",a)),r.on("error",a=>this.emit("error",a)),{type:"OAUTH2",user:i.user,oauth2:r,method:"XOAUTH2"}}default:return{type:(i.type||"").toString().toUpperCase()||"LOGIN",user:i.user,credentials:{user:i.user||"",pass:i.pass,options:i.options},method:(i.method||"").trim().toUpperCase()||this.options.authMethod||!1}}}send(e,t){this.getSocket(this.options,(i,r)=>{if(i)return t(i);let a=!1,n=this.options;r&&r.connection&&(this.logger.info({tnx:"proxy",remoteAddress:r.connection.remoteAddress,remotePort:r.connection.remotePort,destHost:n.host||"",destPort:n.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",r.connection.remoteAddress,r.connection.remotePort,n.host||"",n.port||""),n=lr.assign(!1,n),Object.keys(r).forEach(c=>{n[c]=r[c]}));let o=new $d(n);o.once("error",c=>{if(!a)return a=!0,o.close(),t(c)}),o.once("end",()=>{if(a)return;let c=setTimeout(()=>{if(a)return;a=!0;let l=new Error("Unexpected socket close");o&&o._socket&&o._socket.upgrading&&(l.code="ETLS"),t(l)},1e3);try{c.unref()}catch{}});let u=()=>{let c=e.message.getEnvelope(),l=e.message.messageId(),p=[].concat(c.to||[]);p.length>3&&p.push("...and "+p.splice(2).length+" more"),e.data.dsn&&(c.dsn=e.data.dsn),this.logger.info({tnx:"send",messageId:l},"Sending message %s to <%s>",l,p.join(", ")),o.send(c,e.message.createReadStream(),(d,m)=>{if(a=!0,o.close(),d)return this.logger.error({err:d,tnx:"send"},"Send error for %s: %s",l,d.message),t(d);m.envelope={from:c.from,to:c.to},m.messageId=l;try{return t(null,m)}catch(f){this.logger.error({err:f,tnx:"callback"},"Callback error for %s: %s",l,f.message)}})};o.connect(()=>{if(a)return;let c=this.getAuth(e.data.auth);c&&(o.allowsAuth||n.forceAuth)?o.login(c,l=>{if(c&&c!==this.auth&&c.oauth2&&c.oauth2.removeAllListeners(),!a){if(l)return a=!0,o.close(),t(l);u()}}):u()})})}verify(e){let t;return e||(t=new Promise((i,r)=>{e=lr.callbackPromise(i,r)})),this.getSocket(this.options,(i,r)=>{if(i)return e(i);let a=this.options;r&&r.connection&&(this.logger.info({tnx:"proxy",remoteAddress:r.connection.remoteAddress,remotePort:r.connection.remotePort,destHost:a.host||"",destPort:a.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",r.connection.remoteAddress,r.connection.remotePort,a.host||"",a.port||""),a=lr.assign(!1,a),Object.keys(r).forEach(c=>{a[c]=r[c]}));let n=new $d(a),o=!1;n.once("error",c=>{if(!o)return o=!0,n.close(),e(c)}),n.once("end",()=>{if(!o)return o=!0,e(new Error("Connection closed"))});let u=()=>{if(!o)return o=!0,n.quit(),e(null,!0)};n.connect(()=>{if(o)return;let c=this.getAuth({});if(c&&(n.allowsAuth||a.forceAuth))n.login(c,l=>{if(!o){if(l)return o=!0,n.close(),e(l);u()}});else if(!c&&n.allowsAuth&&a.forceAuth){let l=new Error("Authentication info was not provided");return l.code="NoAuth",o=!0,n.close(),e(l)}else u()})}),t}close(){this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.emit("close")}};IT.exports=Vd});var BT=O((Tre,NT)=>{"use strict";h();var m9=M("child_process").spawn,g9=It(),y9=rt(),Wd=class{constructor(e){e=e||{},this._spawn=m9,this.options=e||{},this.name="Sendmail",this.version=g9.version,this.path="sendmail",this.args=!1,this.winbreak=!1,this.logger=y9.getLogger(this.options,{component:this.options.component||"sendmail"}),e&&(typeof e=="string"?this.path=e:typeof e=="object"&&(e.path&&(this.path=e.path),Array.isArray(e.args)&&(this.args=e.args),this.winbreak=["win","windows","dos",`\r
`].includes((e.newline||"").toString().toLowerCase())))}send(e,t){e.message.keepBcc=!0;let i=e.data.envelope||e.message.getEnvelope(),r=e.message.messageId(),a,n,o;if([].concat(i.from||[]).concat(i.to||[]).some(l=>/^-/.test(l)))return t(new Error("Can not send mail. Invalid envelope addresses."));this.args?a=["-i"].concat(this.args).concat(i.to):a=["-i"].concat(i.from?["-f",i.from]:[]).concat(i.to);let c=l=>{if(!o&&(o=!0,typeof t=="function"))return l?t(l):t(null,{envelope:e.data.envelope||e.message.getEnvelope(),messageId:r,response:"Messages queued for delivery"})};try{n=this._spawn(this.path,a)}catch(l){return this.logger.error({err:l,tnx:"spawn",messageId:r},"Error occurred while spawning sendmail. %s",l.message),c(l)}if(n){n.on("error",d=>{this.logger.error({err:d,tnx:"spawn",messageId:r},"Error occurred when sending message %s. %s",r,d.message),c(d)}),n.once("exit",d=>{if(!d)return c();let m;d===127?m=new Error("Sendmail command not found, process exited with code "+d):m=new Error("Sendmail exited with code "+d),this.logger.error({err:m,tnx:"stdin",messageId:r},"Error sending message %s to sendmail. %s",r,m.message),c(m)}),n.once("close",c),n.stdin.on("error",d=>{this.logger.error({err:d,tnx:"stdin",messageId:r},"Error occurred when piping message %s to sendmail. %s",r,d.message),c(d)});let l=[].concat(i.to||[]);l.length>3&&l.push("...and "+l.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:r},"Sending message %s to <%s>",r,l.join(", "));let p=e.message.createReadStream();p.once("error",d=>{this.logger.error({err:d,tnx:"stdin",messageId:r},"Error occurred when generating message %s. %s",r,d.message),n.kill("SIGINT"),c(d)}),p.pipe(n.stdin)}else return c(new Error("sendmail was not found"))}};NT.exports=Wd});var LT=O((Are,OT)=>{"use strict";h();var x9=It(),b9=rt(),Gd=class{constructor(e){e=e||{},this.options=e||{},this.name="StreamTransport",this.version=x9.version,this.logger=b9.getLogger(this.options,{component:this.options.component||"stream-transport"}),this.winbreak=["win","windows","dos",`\r
`].includes((e.newline||"").toString().toLowerCase())}send(e,t){e.message.keepBcc=!0;let i=e.data.envelope||e.message.getEnvelope(),r=e.message.messageId(),a=[].concat(i.to||[]);a.length>3&&a.push("...and "+a.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:r},"Sending message %s to <%s> using %s line breaks",r,a.join(", "),this.winbreak?"<CR><LF>":"<LF>"),setImmediate(()=>{let n;try{n=e.message.createReadStream()}catch(c){return this.logger.error({err:c,tnx:"send",messageId:r},"Creating send stream failed for %s. %s",r,c.message),t(c)}if(!this.options.buffer)return n.once("error",c=>{this.logger.error({err:c,tnx:"send",messageId:r},"Failed creating message for %s. %s",r,c.message)}),t(null,{envelope:e.data.envelope||e.message.getEnvelope(),messageId:r,message:n});let o=[],u=0;n.on("readable",()=>{let c;for(;(c=n.read())!==null;)o.push(c),u+=c.length}),n.once("error",c=>(this.logger.error({err:c,tnx:"send",messageId:r},"Failed creating message for %s. %s",r,c.message),t(c))),n.on("end",()=>t(null,{envelope:e.data.envelope||e.message.getEnvelope(),messageId:r,message:Buffer.concat(o,u)}))})}};OT.exports=Gd});var MT=O((Pre,zT)=>{"use strict";h();var w9=It(),D9=rt(),Kd=class{constructor(e){e=e||{},this.options=e||{},this.name="JSONTransport",this.version=w9.version,this.logger=D9.getLogger(this.options,{component:this.options.component||"json-transport"})}send(e,t){e.message.keepBcc=!0;let i=e.data.envelope||e.message.getEnvelope(),r=e.message.messageId(),a=[].concat(i.to||[]);a.length>3&&a.push("...and "+a.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:r},"Composing JSON structure of %s to <%s>",r,a.join(", ")),setImmediate(()=>{e.normalize((n,o)=>n?(this.logger.error({err:n,tnx:"send",messageId:r},"Failed building JSON structure for %s. %s",r,n.message),t(n)):(delete o.envelope,delete o.normalizedHeaders,t(null,{envelope:i,messageId:r,message:this.options.skipEncoding?o:JSON.stringify(o)})))})}};zT.exports=Kd});var UT=O((Ire,qT)=>{"use strict";h();var k9=M("events"),v9=It(),RT=rt(),E9=bd(),Jd=class extends k9{constructor(e){super(),e=e||{},this.options=e||{},this.ses=this.options.SES,this.name="SESTransport",this.version=v9.version,this.logger=RT.getLogger(this.options,{component:this.options.component||"ses-transport"}),this.maxConnections=Number(this.options.maxConnections)||1/0,this.connections=0,this.sendingRate=Number(this.options.sendingRate)||1/0,this.sendingRateTTL=null,this.rateInterval=1e3,this.rateMessages=[],this.pending=[],this.idling=!0,setImmediate(()=>{this.idling&&this.emit("idle")})}send(e,t){if(this.connections>=this.maxConnections)return this.idling=!1,this.pending.push({mail:e,callback:t});if(!this._checkSendingRate())return this.idling=!1,this.pending.push({mail:e,callback:t});this._send(e,(...i)=>{setImmediate(()=>t(...i)),this._sent()})}_checkRatedQueue(){if(this.connections>=this.maxConnections||!this._checkSendingRate())return;if(!this.pending.length){this.idling||(this.idling=!0,this.emit("idle"));return}let e=this.pending.shift();this._send(e.mail,(...t)=>{setImmediate(()=>e.callback(...t)),this._sent()})}_checkSendingRate(){clearTimeout(this.sendingRateTTL);let e=Date.now(),t=!1;for(let r=this.rateMessages.length-1;r>=0;r--)this.rateMessages[r].ts>=e-this.rateInterval&&(!t||this.rateMessages[r].ts<t)&&(t=this.rateMessages[r].ts),this.rateMessages[r].ts<e-this.rateInterval&&!this.rateMessages[r].pending&&this.rateMessages.splice(r,1);if(this.rateMessages.length<this.sendingRate)return!0;let i=Math.max(t+1001,e+20);this.sendingRateTTL=setTimeout(()=>this._checkRatedQueue(),e-i);try{this.sendingRateTTL.unref()}catch{}return!1}_sent(){this.connections--,this._checkRatedQueue()}isIdle(){return this.idling}_send(e,t){let i={ts:Date.now(),pending:!0};this.connections++,this.rateMessages.push(i);let r=e.data.envelope||e.message.getEnvelope(),a=e.message.messageId(),n=[].concat(r.to||[]);n.length>3&&n.push("...and "+n.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:a},"Sending message %s to <%s>",a,n.join(", "));let o=u=>{e.data._dkim||(e.data._dkim={}),e.data._dkim.skipFields&&typeof e.data._dkim.skipFields=="string"?e.data._dkim.skipFields+=":date:message-id":e.data._dkim.skipFields="date:message-id";let c=e.message.createReadStream(),l=c.pipe(new E9),p=[],d=0;l.on("readable",()=>{let m;for(;(m=l.read())!==null;)p.push(m),d+=m.length}),c.once("error",m=>l.emit("error",m)),l.once("error",m=>{u(m)}),l.once("end",()=>u(null,Buffer.concat(p,d)))};setImmediate(()=>o((u,c)=>{if(u)return this.logger.error({err:u,tnx:"send",messageId:a},"Failed creating message for %s. %s",a,u.message),i.pending=!1,t(u);let l={RawMessage:{Data:c},Source:r.from,Destinations:r.to};Object.keys(e.data.ses||{}).forEach(f=>{l[f]=e.data.ses[f]});let p=(this.ses.aws?this.ses.ses:this.ses)||{},d=this.ses.aws||{};(f=>p.config&&typeof p.config.region=="function"?p.config.region().then(g=>f(null,g)).catch(g=>f(g)):f(null,p.config&&p.config.region||"us-east-1"))((f,g)=>{(f||!g)&&(g="us-east-1");let y;typeof p.send=="function"&&d.SendRawEmailCommand?y=p.send(new d.SendRawEmailCommand(l)):y=p.sendRawEmail(l).promise(),y.then(w=>{g==="us-east-1"&&(g="email"),i.pending=!1,t(null,{envelope:{from:r.from,to:r.to},messageId:"<"+w.MessageId+(/@/.test(w.MessageId)?"":"@"+g+".amazonses.com")+">",response:w.MessageId,raw:c})}).catch(w=>{this.logger.error({err:w,tnx:"send"},"Send error for %s: %s",a,w.message),i.pending=!1,t(w)})})}))}verify(e){let t,i=(this.ses.aws?this.ses.ses:this.ses)||{},r=this.ses.aws||{},a={RawMessage:{Data:`From: invalid@invalid\r
To: invalid@invalid\r
Subject: Invalid\r
\r
Invalid`},Source:"invalid@invalid",Destinations:["invalid@invalid"]};e||(t=new Promise((o,u)=>{e=RT.callbackPromise(o,u)}));let n=o=>o&&(o.code||o.Code)!=="InvalidParameterValue"?e(o):e(null,!0);return typeof i.send=="function"&&r.SendRawEmailCommand?(a.RawMessage.Data=Buffer.from(a.RawMessage.Data),i.send(new r.SendRawEmailCommand(a),n)):i.sendRawEmail(a,n),t}};qT.exports=Jd});var WT=O((Nre,su)=>{"use strict";h();var C9=dT(),VT=rt(),T9=FT(),S9=_T(),A9=BT(),j9=LT(),P9=MT(),F9=UT(),I9=Ha(),HT=It(),_9=(process.env.ETHEREAL_API||"https://api.nodemailer.com").replace(/\/+$/,""),N9=(process.env.ETHEREAL_WEB||"https://ethereal.email").replace(/\/+$/,""),$T=(process.env.ETHEREAL_API_KEY||"").replace(/\s*/g,"")||null,B9=["true","yes","y","1"].includes((process.env.ETHEREAL_CACHE||"yes").toString().trim().toLowerCase()),Xa=!1;su.exports.createTransport=function(s,e){let t,i,r;return(typeof s=="object"&&typeof s.send!="function"||typeof s=="string"&&/^(smtps?|direct):/i.test(s))&&((t=typeof s=="string"?s:s.url)?i=VT.parseConnectionUrl(t):i=s,i.pool?s=new T9(i):i.sendmail?s=new A9(i):i.streamTransport?s=new j9(i):i.jsonTransport?s=new P9(i):i.SES?s=new F9(i):s=new S9(i)),r=new C9(s,i,e),r};su.exports.createTestAccount=function(s,e){let t;if(!e&&typeof s=="function"&&(e=s,s=!1),e||(t=new Promise((u,c)=>{e=VT.callbackPromise(u,c)})),B9&&Xa)return setImmediate(()=>e(null,Xa)),t;s=s||_9;let i=[],r=0,a={},n={requestor:HT.name,version:HT.version};$T&&(a.Authorization="Bearer "+$T);let o=I9(s+"/user",{contentType:"application/json",method:"POST",headers:a,body:Buffer.from(JSON.stringify(n))});return o.on("readable",()=>{let u;for(;(u=o.read())!==null;)i.push(u),r+=u.length}),o.once("error",u=>e(u)),o.once("end",()=>{let u=Buffer.concat(i,r),c,l;try{c=JSON.parse(u.toString())}catch(p){l=p}if(l)return e(l);if(c.status!=="success"||c.error)return e(new Error(c.error||"Request failed"));delete c.status,Xa=c,e(null,Xa)}),t};su.exports.getTestMessageUrl=function(s){if(!s||!s.response)return!1;let e=new Map;return s.response.replace(/\[([^\]]+)\]$/,(t,i)=>{i.replace(/\b([A-Z0-9]+)=([^\s]+)/g,(r,a,n)=>{e.set(a,n)})}),e.has("STATUS")&&e.has("MSGID")?(Xa.web||N9)+"/message/"+e.get("MSGID"):!1}});var JT=O((Ore,KT)=>{"use strict";h();var Xd=M("https"),Yd=M("http"),{URL:GT}=M("url"),Qd=class extends Yd.Agent{constructor(e){let{proxy:t,proxyRequestOptions:i,...r}=e;super(r),this.proxy=typeof t=="string"?new GT(t):t,this.proxyRequestOptions=i||{}}createConnection(e,t){let i={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${e.host}:${e.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${e.host}:${e.port}`},agent:!1,timeout:e.timeout||0};if(this.proxy.username||this.proxy.password){let a=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");i.headers["proxy-authorization"]=`Basic ${a}`}this.proxy.protocol==="https:"&&(i.servername=this.proxy.hostname);let r=(this.proxy.protocol==="http:"?Yd:Xd).request(i);r.once("connect",(a,n,o)=>{r.removeAllListeners(),n.removeAllListeners(),a.statusCode===200?t(null,n):(n.destroy(),t(new Error(`Bad response: ${a.statusCode}`),null))}),r.once("timeout",()=>{r.destroy(new Error("Proxy timeout"))}),r.once("error",a=>{r.removeAllListeners(),t(a,null)}),r.end()}},Zd=class extends Xd.Agent{constructor(e){let{proxy:t,proxyRequestOptions:i,...r}=e;super(r),this.proxy=typeof t=="string"?new GT(t):t,this.proxyRequestOptions=i||{}}createConnection(e,t){let i={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${e.host}:${e.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${e.host}:${e.port}`},agent:!1,timeout:e.timeout||0};if(this.proxy.username||this.proxy.password){let a=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");i.headers["proxy-authorization"]=`Basic ${a}`}this.proxy.protocol==="https:"&&(i.servername=this.proxy.hostname);let r=(this.proxy.protocol==="http:"?Yd:Xd).request(i);r.once("connect",(a,n,o)=>{if(r.removeAllListeners(),n.removeAllListeners(),a.statusCode===200){let u=super.createConnection({...e,socket:n});t(null,u)}else n.destroy(),t(new Error(`Bad response: ${a.statusCode}`),null)}),r.once("timeout",()=>{r.destroy(new Error("Proxy timeout"))}),r.once("error",a=>{r.removeAllListeners(),t(a,null)}),r.end()}};KT.exports={HttpProxyAgent:Qd,HttpsProxyAgent:Zd}});var XT={};pr(XT,{HttpProxyAgent:()=>L9,HttpsProxyAgent:()=>z9,default:()=>O9});var iu,O9,L9,z9,YT=k(()=>{h();iu=Dt(JT(),1),O9=iu.default,L9=iu.default.HttpProxyAgent,z9=iu.default.HttpsProxyAgent});h();go();Pe();h();h();lt();h();var Wo=Dt(f1(),1),nE=Dt(V1(),1);function ft(s){var e=s.use(Te),t=e.Type,i=e.builtInTypes,r=i.number;function a(c){return t.from(l=>r.check(l)&&l>=c,r+" >= "+c)}let n={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}};var o=t.or(i.string,i.number,i.boolean,i.null,i.undefined);let u=t.from(c=>{if(c===null)return!0;var l=typeof c;return!(l==="object"||l==="function")},o.toString());return{geq:a,defaults:n,isPrimitive:u}}function ye(s){try{var e=s(),t=e.exports,i=t.default}catch{return}i&&i!==t&&typeof t=="object"&&(Object.assign(i,t,{default:i}),t.__esModule&&Object.defineProperty(i,"__esModule",{value:!0}),e.exports=i)}var oz=Object.defineProperty,uz=(s,e,t)=>e in s?oz(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,tt=(s,e,t)=>(uz(s,typeof e!="symbol"?e+"":e,t),t),oE=Object.prototype,Mo=oE.toString,xt=oE.hasOwnProperty,ai=class{assert(e,t){if(!this.check(e,t)){var i=Uh(e);throw new Error(i+" does not match type "+this)}return!0}arrayOf(){let e=this;return new Na(e)}},Na=class extends ai{constructor(e){super(),this.elemType=e,tt(this,"kind","ArrayType")}toString(){return"["+this.elemType+"]"}check(e,t){return Array.isArray(e)&&e.every(i=>this.elemType.check(i,t))}},Ro=class extends ai{constructor(e){super(),this.value=e,tt(this,"kind","IdentityType")}toString(){return String(this.value)}check(e,t){let i=e===this.value;return!i&&typeof t=="function"&&t(this,e),i}},qo=class extends ai{constructor(e){super(),this.fields=e,tt(this,"kind","ObjectType")}toString(){return"{ "+this.fields.join(", ")+" }"}check(e,t){return Mo.call(e)===Mo.call({})&&this.fields.every(i=>i.type.check(e[i.name],t))}},Uo=class extends ai{constructor(e){super(),this.types=e,tt(this,"kind","OrType")}toString(){return this.types.join(" | ")}check(e,t){return this.types.some(i=>i.check(e,!!t))?!0:(typeof t=="function"&&t(this,e),!1)}},ri=class extends ai{constructor(e,t){super(),this.name=e,this.predicate=t,tt(this,"kind","PredicateType")}toString(){return this.name}check(e,t){let i=this.predicate(e,t);return!i&&typeof t=="function"&&t(this,e),i}},Ia=class s{constructor(e,t){this.type=e,this.typeName=t,tt(this,"baseNames",[]),tt(this,"ownFields",Object.create(null)),tt(this,"allSupertypes",Object.create(null)),tt(this,"supertypeList",[]),tt(this,"allFields",Object.create(null)),tt(this,"fieldNames",[]),tt(this,"finalized",!1),tt(this,"buildable",!1),tt(this,"buildParams",[])}isSupertypeOf(e){if(e instanceof s){if(this.finalized!==!0||e.finalized!==!0)throw new Error("");return xt.call(e.allSupertypes,this.typeName)}else throw new Error(e+" is not a Def")}checkAllFields(e,t){var i=this.allFields;if(this.finalized!==!0)throw new Error(""+this.typeName);function r(a){var n=i[a],o=n.type,u=n.getValue(e);return o.check(u,t)}return e!==null&&typeof e=="object"&&Object.keys(i).every(r)}bases(...e){var t=this.baseNames;if(this.finalized){if(e.length!==t.length)throw new Error("");for(var i=0;i<e.length;i++)if(e[i]!==t[i])throw new Error("");return this}return e.forEach(r=>{t.indexOf(r)<0&&t.push(r)}),this}},Ho=class{constructor(e,t,i,r){this.name=e,this.type=t,this.defaultFn=i,tt(this,"hidden"),this.hidden=!!r}toString(){return JSON.stringify(this.name)+": "+this.type}getValue(e){var t=e[this.name];return typeof t<"u"||typeof this.defaultFn=="function"&&(t=this.defaultFn.call(e)),t}};function Uh(s){return Array.isArray(s)?"["+s.map(Uh).join(", ")+"]":s&&typeof s=="object"?"{ "+Object.keys(s).map(function(e){return e+": "+s[e]}).join(", ")+" }":JSON.stringify(s)}function Te(s){let e={or(...P){return new Uo(P.map(I=>e.from(I)))},from(P,I){if(P instanceof Na||P instanceof Ro||P instanceof qo||P instanceof Uo||P instanceof ri)return P;if(P instanceof Ia)return P.type;if(o.check(P)){if(P.length!==1)throw new Error("only one element type is permitted for typed arrays");return new Na(e.from(P[0]))}if(u.check(P))return new qo(Object.keys(P).map(J=>new Ho(J,e.from(P[J],J))));if(typeof P=="function"){var R=t.indexOf(P);if(R>=0)return i[R];if(typeof I!="string")throw new Error("missing name");return new ri(I,P)}return new Ro(P)},def(P){return xt.call(w,P)?w[P]:w[P]=new S(P)},hasDef(P){return xt.call(w,P)}};var t=[],i=[];function r(P,I){let R=Mo.call(I),J=new ri(P,ae=>Mo.call(ae)===R);return I&&typeof I.constructor=="function"&&(t.push(I.constructor),i.push(J)),J}let a=r("string","truthy"),n=r("function",function(){}),o=r("array",[]),u=r("object",{}),c=r("RegExp",/./),l=r("Date",new Date),p=r("number",3),d=r("boolean",!0),m=r("null",null),f=r("undefined",void 0),g=typeof BigInt=="function"?r("BigInt",BigInt(1234)):new ri("BigInt",()=>!1),y={string:a,function:n,array:o,object:u,RegExp:c,Date:l,number:p,boolean:d,null:m,undefined:f,BigInt:g};var w=Object.create(null);function T(P){if(P&&typeof P=="object"){var I=P.type;if(typeof I=="string"&&xt.call(w,I)){var R=w[I];if(R.finalized)return R}}return null}class S extends Ia{constructor(I){super(new ri(I,(R,J)=>this.check(R,J)),I)}check(I,R){if(this.finalized!==!0)throw new Error("prematurely checking unfinalized type "+this.typeName);if(I===null||typeof I!="object")return!1;var J=T(I);return J?R&&J===this?this.checkAllFields(I,R):this.isSupertypeOf(J)?R?J.checkAllFields(I,R)&&this.checkAllFields(I,!1):!0:!1:this.typeName==="SourceLocation"||this.typeName==="Position"?this.checkAllFields(I,R):!1}build(...I){if(this.buildParams=I,this.buildable)return this;this.field("type",String,()=>this.typeName),this.buildable=!0;let R=(ae,le,ge,je)=>{if(!xt.call(ae,le)){var ke=this.allFields;if(!xt.call(ke,le))throw new Error(""+le);var ot=ke[le],Ms=ot.type,Nt;if(je)Nt=ge;else if(ot.defaultFn)Nt=ot.defaultFn.call(ae);else{var r2="no value or default function given for field "+JSON.stringify(le)+" of "+this.typeName+"("+this.buildParams.map(function(a2){return ke[a2]}).join(", ")+")";throw new Error(r2)}if(!Ms.check(Nt))throw new Error(Uh(Nt)+" does not match field "+ot+" of type "+this.typeName);ae[le]=Nt}},J=(...ae)=>{var le=ae.length;if(!this.finalized)throw new Error("attempting to instantiate unfinalized type "+this.typeName);var ge=Object.create(H);if(this.buildParams.forEach(function(je,ke){ke<le?R(ge,je,ae[ke],!0):R(ge,je,null,!1)}),Object.keys(this.allFields).forEach(function(je){R(ge,je,null,!1)}),ge.type!==this.typeName)throw new Error("");return ge};return J.from=ae=>{if(!this.finalized)throw new Error("attempting to instantiate unfinalized type "+this.typeName);var le=Object.create(H);if(Object.keys(this.allFields).forEach(function(ge){xt.call(ae,ge)?R(le,ge,ae[ge],!0):R(le,ge,null,!1)}),le.type!==this.typeName)throw new Error("");return le},Object.defineProperty(F,te(this.typeName),{enumerable:!0,value:J}),this}field(I,R,J,ae){return this.finalized?(console.error("Ignoring attempt to redefine field "+JSON.stringify(I)+" of finalized type "+JSON.stringify(this.typeName)),this):(this.ownFields[I]=new Ho(I,e.from(R),J,ae),this)}finalize(){if(!this.finalized){var I=this.allFields,R=this.allSupertypes;this.baseNames.forEach(ae=>{var le=w[ae];if(le instanceof Ia)le.finalize(),Q(I,le.allFields),Q(R,le.allSupertypes);else{var ge="unknown supertype name "+JSON.stringify(ae)+" for subtype "+JSON.stringify(this.typeName);throw new Error(ge)}}),Q(I,this.ownFields),R[this.typeName]=this,this.fieldNames.length=0;for(var J in I)xt.call(I,J)&&!I[J].hidden&&this.fieldNames.push(J);Object.defineProperty(ue,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,Y(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0&&q(this.typeName)}}}function E(P){if(!xt.call(w,P))throw new Error("");var I=w[P];if(I.finalized!==!0)throw new Error("");return I.supertypeList.slice(1)}function A(P){for(var I={},R=Object.keys(w),J=R.length,ae=0;ae<J;++ae){var le=R[ae],ge=w[le];if(ge.finalized!==!0)throw new Error(""+le);for(var je=0;je<ge.supertypeList.length;++je){var ke=ge.supertypeList[je];if(xt.call(P,ke)){I[le]=ke;break}}}return I}var F=Object.create(null),H={};function ee(P,I){var R=H[P];return f.check(I)?delete H[P]:(n.assert(I),Object.defineProperty(H,P,{enumerable:!0,configurable:!0,value:I})),R}function te(P){return P.replace(/^[A-Z]+/,function(I){var R=I.length;switch(R){case 0:return"";case 1:return I.toLowerCase();default:return I.slice(0,R-1).toLowerCase()+I.charAt(R-1)}})}function $(P){return P=te(P),P.replace(/(Expression)?$/,"Statement")}var ue={};function W(P){var I=T(P);if(I)return I.fieldNames.slice(0);if("type"in P)throw new Error("did not recognize object of type "+JSON.stringify(P.type));return Object.keys(P)}function _(P,I){var R=T(P);if(R){var J=R.allFields[I];if(J)return J.getValue(P)}return P&&P[I]}function B(P,I,R){W(P).forEach(function(J){I.call(this,J,_(P,J))},R)}function V(P,I,R){return W(P).some(function(J){return I.call(this,J,_(P,J))},R)}function q(P){var I=$(P);if(F[I])return;var R=F[te(P)];if(!R)return;let J=function(...ae){return F.expressionStatement(R.apply(F,ae))};J.from=function(...ae){return F.expressionStatement(R.from.apply(F,ae))},F[I]=J}function Y(P,I){I.length=0,I.push(P);for(var R=Object.create(null),J=0;J<I.length;++J){P=I[J];var ae=w[P];if(ae.finalized!==!0)throw new Error("");xt.call(R,P)&&delete I[R[P]],R[P]=J,I.push.apply(I,ae.baseNames)}for(var le=0,ge=le,je=I.length;ge<je;++ge)xt.call(I,ge)&&(I[le++]=I[ge]);I.length=le}function Q(P,I){return Object.keys(I).forEach(function(R){P[R]=I[R]}),P}function ce(){Object.keys(w).forEach(function(P){w[P].finalize()})}return{Type:e,builtInTypes:y,getSupertypeNames:E,computeSupertypeLookupTable:A,builders:F,defineMethod:ee,getBuilderName:te,getStatementBuilderName:$,namedTypes:ue,getFieldNames:W,getFieldValue:_,eachField:B,someField:V,finalize:ce}}ye(()=>module);var cz=Object.prototype,Fo=cz.hasOwnProperty;function uE(s){var e=s.use(Te),t=e.builtInTypes.array,i=e.builtInTypes.number;let r=function p(d,m,f){if(!(this instanceof p))throw new Error("Path constructor cannot be invoked without 'new'");if(m){if(!(m instanceof p))throw new Error("")}else m=null,f=null;this.value=d,this.parentPath=m,this.name=f,this.__childCache=null};var a=r.prototype;function n(p){return p.__childCache||(p.__childCache=Object.create(null))}function o(p,d){var m=n(p),f=p.getValueProperty(d),g=m[d];return(!Fo.call(m,d)||g.value!==f)&&(g=m[d]=new p.constructor(f,p,d)),g}a.getValueProperty=function(d){return this.value[d]},a.get=function(...d){for(var m=this,f=d.length,g=0;g<f;++g)m=o(m,d[g]);return m},a.each=function(d,m){for(var f=[],g=this.value.length,y=0,y=0;y<g;++y)Fo.call(this.value,y)&&(f[y]=this.get(y));for(m=m||this,y=0;y<g;++y)Fo.call(f,y)&&d.call(m,f[y])},a.map=function(d,m){var f=[];return this.each(function(g){f.push(d.call(this,g))},m),f},a.filter=function(d,m){var f=[];return this.each(function(g){d.call(this,g)&&f.push(g)},m),f};function u(){}function c(p,d,m,f){if(t.assert(p.value),d===0)return u;var g=p.value.length;if(g<1)return u;var y=arguments.length;y===2?(m=0,f=g):y===3?(m=Math.max(m,0),f=g):(m=Math.max(m,0),f=Math.min(f,g)),i.assert(m),i.assert(f);for(var w=Object.create(null),T=n(p),S=m;S<f;++S)if(Fo.call(p.value,S)){var E=p.get(S);if(E.name!==S)throw new Error("");var A=S+d;E.name=A,w[A]=E,delete T[S]}return delete T.length,function(){for(var F in w){var H=w[F];if(H.name!==+F)throw new Error("");T[F]=H,p.value[F]=H.value}}}a.shift=function(){var d=c(this,-1),m=this.value.shift();return d(),m},a.unshift=function(...d){var m=c(this,d.length),f=this.value.unshift.apply(this.value,d);return m(),f},a.push=function(...d){return t.assert(this.value),delete n(this).length,this.value.push.apply(this.value,d)},a.pop=function(){t.assert(this.value);var d=n(this);return delete d[this.value.length-1],delete d.length,this.value.pop()},a.insertAt=function(d){var m=arguments.length,f=c(this,m-1,d);if(f===u&&m<=1)return this;d=Math.max(d,0);for(var g=1;g<m;++g)this.value[d+g-1]=arguments[g];return f(),this},a.insertBefore=function(...d){for(var m=this.parentPath,f=d.length,g=[this.name],y=0;y<f;++y)g.push(d[y]);return m.insertAt.apply(m,g)},a.insertAfter=function(...d){for(var m=this.parentPath,f=d.length,g=[this.name+1],y=0;y<f;++y)g.push(d[y]);return m.insertAt.apply(m,g)};function l(p){if(!(p instanceof r))throw new Error("");var d=p.parentPath;if(!d)return p;var m=d.value,f=n(d);if(m[p.name]===p.value)f[p.name]=p;else if(t.check(m)){var g=m.indexOf(p.value);g>=0&&(f[p.name=g]=p)}else m[p.name]=p.value,f[p.name]=p;if(m[p.name]!==p.value)throw new Error("");if(p.parentPath.get(p.name)!==p)throw new Error("");return p}return a.replace=function(d){var m=[],f=this.parentPath.value,g=n(this.parentPath),y=arguments.length;if(l(this),t.check(f)){for(var w=f.length,T=c(this.parentPath,y-1,this.name+1),S=[this.name,1],E=0;E<y;++E)S.push(arguments[E]);var A=f.splice.apply(f,S);if(A[0]!==this.value)throw new Error("");if(f.length!==w-1+y)throw new Error("");if(T(),y===0)delete this.value,delete g[this.name],this.__childCache=null;else{if(f[this.name]!==d)throw new Error("");for(this.value!==d&&(this.value=d,this.__childCache=null),E=0;E<y;++E)m.push(this.parentPath.get(this.name+E));if(m[0]!==this)throw new Error("")}}else if(y===1)this.value!==d&&(this.__childCache=null),this.value=f[this.name]=d,m.push(this);else if(y===0)delete f[this.name],delete this.value,this.__childCache=null;else throw new Error("Could not replace path");return m},r}ye(()=>module);var tr=Object.prototype.hasOwnProperty;function lz(s){var e=s.use(Te),t=e.Type,i=e.namedTypes,r=i.Node,a=i.Expression,n=e.builtInTypes.array,o=e.builders;let u=function E(A,F){if(!(this instanceof E))throw new Error("Scope constructor cannot be invoked without 'new'");l.check(A.value)||c.assert(A.value);var H;if(F){if(!(F instanceof E))throw new Error("");H=F.depth+1}else F=null,H=0;Object.defineProperties(this,{path:{value:A},node:{value:A.value},isGlobal:{value:!F,enumerable:!0},depth:{value:H},parent:{value:F},bindings:{value:{}},types:{value:{}}})};var c=t.or(i.Program,i.Function,i.CatchClause),l=t.or(i.Function,i.ClassDeclaration,i.ClassExpression,i.InterfaceDeclaration,i.TSInterfaceDeclaration,i.TypeAlias,i.TSTypeAliasDeclaration),p=t.or(i.TypeParameter,i.TSTypeParameter);u.isEstablishedBy=function(E){return c.check(E)||l.check(E)};var d=u.prototype;d.didScan=!1,d.declares=function(E){return this.scan(),tr.call(this.bindings,E)},d.declaresType=function(E){return this.scan(),tr.call(this.types,E)},d.declareTemporary=function(E){if(E){if(!/^[a-z$_]/i.test(E))throw new Error("")}else E="t$";E+=this.depth.toString(36)+"$",this.scan();for(var A=0;this.declares(E+A);)++A;var F=E+A;return this.bindings[F]=e.builders.identifier(F)},d.injectTemporary=function(E,A){E||(E=this.declareTemporary());var F=this.path.get("body");return i.BlockStatement.check(F.value)&&(F=F.get("body")),F.unshift(o.variableDeclaration("var",[o.variableDeclarator(E,A||null)])),E},d.scan=function(E){if(E||!this.didScan){for(var A in this.bindings)delete this.bindings[A];for(var A in this.types)delete this.types[A];m(this.path,this.bindings,this.types),this.didScan=!0}},d.getBindings=function(){return this.scan(),this.bindings},d.getTypes=function(){return this.scan(),this.types};function m(E,A,F){var H=E.value;if(l.check(H)){let ee=E.get("typeParameters","params");n.check(ee.value)&&ee.each(te=>{S(te,F)})}c.check(H)&&(i.CatchClause.check(H)?w(E.get("param"),A):f(E,A,F))}function f(E,A,F){var H=E.value;E.parent&&i.FunctionExpression.check(E.parent.node)&&E.parent.node.id&&w(E.parent.get("id"),A),H&&(n.check(H)?E.each(ee=>{y(ee,A,F)}):i.Function.check(H)?(E.get("params").each(ee=>{w(ee,A)}),y(E.get("body"),A,F),f(E.get("typeParameters"),A,F)):i.TypeAlias&&i.TypeAlias.check(H)||i.InterfaceDeclaration&&i.InterfaceDeclaration.check(H)||i.TSTypeAliasDeclaration&&i.TSTypeAliasDeclaration.check(H)||i.TSInterfaceDeclaration&&i.TSInterfaceDeclaration.check(H)?T(E.get("id"),F):i.VariableDeclarator.check(H)?(w(E.get("id"),A),y(E.get("init"),A,F)):H.type==="ImportSpecifier"||H.type==="ImportNamespaceSpecifier"||H.type==="ImportDefaultSpecifier"?w(E.get(H.local?"local":H.name?"name":"id"),A):r.check(H)&&!a.check(H)&&e.eachField(H,function(ee,te){var $=E.get(ee);if(!g($,te))throw new Error("");y($,A,F)}))}function g(E,A){return!!(E.value===A||Array.isArray(E.value)&&E.value.length===0&&Array.isArray(A)&&A.length===0)}function y(E,A,F){var H=E.value;if(!(!H||a.check(H)))if(i.FunctionDeclaration.check(H)&&H.id!==null)w(E.get("id"),A);else if(i.ClassDeclaration&&i.ClassDeclaration.check(H)&&H.id!==null)w(E.get("id"),A),f(E.get("typeParameters"),A,F);else if(i.InterfaceDeclaration&&i.InterfaceDeclaration.check(H)||i.TSInterfaceDeclaration&&i.TSInterfaceDeclaration.check(H))T(E.get("id"),F);else if(c.check(H)){if(i.CatchClause.check(H)&&i.Identifier.check(H.param)){var ee=H.param.name,te=tr.call(A,ee);f(E.get("body"),A,F),te||delete A[ee]}}else f(E,A,F)}function w(E,A){var F=E.value;i.Pattern.assert(F),i.Identifier.check(F)?tr.call(A,F.name)?A[F.name].push(E):A[F.name]=[E]:i.AssignmentPattern&&i.AssignmentPattern.check(F)?w(E.get("left"),A):i.ObjectPattern&&i.ObjectPattern.check(F)?E.get("properties").each(function(H){var ee=H.value;i.Pattern.check(ee)?w(H,A):i.Property.check(ee)||i.ObjectProperty&&i.ObjectProperty.check(ee)?w(H.get("value"),A):i.SpreadProperty&&i.SpreadProperty.check(ee)&&w(H.get("argument"),A)}):i.ArrayPattern&&i.ArrayPattern.check(F)?E.get("elements").each(function(H){var ee=H.value;i.Pattern.check(ee)?w(H,A):i.SpreadElement&&i.SpreadElement.check(ee)&&w(H.get("argument"),A)}):i.PropertyPattern&&i.PropertyPattern.check(F)?w(E.get("pattern"),A):(i.SpreadElementPattern&&i.SpreadElementPattern.check(F)||i.RestElement&&i.RestElement.check(F)||i.SpreadPropertyPattern&&i.SpreadPropertyPattern.check(F))&&w(E.get("argument"),A)}function T(E,A){var F=E.value;i.Pattern.assert(F),i.Identifier.check(F)&&(tr.call(A,F.name)?A[F.name].push(E):A[F.name]=[E])}function S(E,A){var F=E.value;p.assert(F),tr.call(A,F.name)?A[F.name].push(E):A[F.name]=[E]}return d.lookup=function(E){for(var A=this;A&&!A.declares(E);A=A.parent);return A},d.lookupType=function(E){for(var A=this;A&&!A.declaresType(E);A=A.parent);return A},d.getGlobalScope=function(){for(var E=this;!E.isGlobal;)E=E.parent;return E},u}ye(()=>module);function cE(s){var e=s.use(Te),t=e.namedTypes,i=e.builders,r=e.builtInTypes.number,a=e.builtInTypes.array,n=s.use(uE),o=s.use(lz);let u=function y(w,T,S){if(!(this instanceof y))throw new Error("NodePath constructor cannot be invoked without 'new'");n.call(this,w,T,S)};var c=u.prototype=Object.create(n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(c,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),c.replace=function(){return delete this.node,delete this.parent,delete this.scope,n.prototype.replace.apply(this,arguments)},c.prune=function(){var y=this.parent;return this.replace(),f(y)},c._computeNode=function(){var y=this.value;if(t.Node.check(y))return y;var w=this.parentPath;return w&&w.node||null},c._computeParent=function(){var y=this.value,w=this.parentPath;if(!t.Node.check(y)){for(;w&&!t.Node.check(w.value);)w=w.parentPath;w&&(w=w.parentPath)}for(;w&&!t.Node.check(w.value);)w=w.parentPath;return w||null},c._computeScope=function(){var y=this.value,w=this.parentPath,T=w&&w.scope;return t.Node.check(y)&&o.isEstablishedBy(y)&&(T=new o(this,T)),T||null},c.getValueProperty=function(y){return e.getFieldValue(this.value,y)},c.needsParens=function(y){var w=this.parentPath;if(!w)return!1;var T=this.value;if(!t.Expression.check(T)||T.type==="Identifier")return!1;for(;!t.Node.check(w.value);)if(w=w.parentPath,!w)return!1;var S=w.value;switch(T.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return S.type==="MemberExpression"&&this.name==="object"&&S.object===T;case"BinaryExpression":case"LogicalExpression":switch(S.type){case"CallExpression":return this.name==="callee"&&S.callee===T;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&S.object===T;case"BinaryExpression":case"LogicalExpression":{let E=T,A=S.operator,F=p[A],H=E.operator,ee=p[H];if(F>ee)return!0;if(F===ee&&this.name==="right"){if(S.right!==E)throw new Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(S.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(S.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return S.type==="MemberExpression"&&r.check(T.value)&&this.name==="object"&&S.object===T;case"AssignmentExpression":case"ConditionalExpression":switch(S.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&S.callee===T;case"ConditionalExpression":return this.name==="test"&&S.test===T;case"MemberExpression":return this.name==="object"&&S.object===T;default:return!1}default:if(S.type==="NewExpression"&&this.name==="callee"&&S.callee===T)return d(T)}return!!(y!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function l(y){return t.BinaryExpression.check(y)||t.LogicalExpression.check(y)}var p={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(y,w){y.forEach(function(T){p[T]=w})});function d(y){return t.CallExpression.check(y)?!0:a.check(y)?y.some(d):t.Node.check(y)?e.someField(y,function(w,T){return d(T)}):!1}c.canBeFirstInStatement=function(){var y=this.node;return!t.FunctionExpression.check(y)&&!t.ObjectExpression.check(y)},c.firstInStatement=function(){return m(this)};function m(y){for(var w,T;y.parent;y=y.parent){if(w=y.node,T=y.parent.node,t.BlockStatement.check(T)&&y.parent.name==="body"&&y.name===0){if(T.body[0]!==w)throw new Error("Nodes must be equal");return!0}if(t.ExpressionStatement.check(T)&&y.name==="expression"){if(T.expression!==w)throw new Error("Nodes must be equal");return!0}if(t.SequenceExpression.check(T)&&y.parent.name==="expressions"&&y.name===0){if(T.expressions[0]!==w)throw new Error("Nodes must be equal");continue}if(t.CallExpression.check(T)&&y.name==="callee"){if(T.callee!==w)throw new Error("Nodes must be equal");continue}if(t.MemberExpression.check(T)&&y.name==="object"){if(T.object!==w)throw new Error("Nodes must be equal");continue}if(t.ConditionalExpression.check(T)&&y.name==="test"){if(T.test!==w)throw new Error("Nodes must be equal");continue}if(l(T)&&y.name==="left"){if(T.left!==w)throw new Error("Nodes must be equal");continue}if(t.UnaryExpression.check(T)&&!T.prefix&&y.name==="argument"){if(T.argument!==w)throw new Error("Nodes must be equal");continue}return!1}return!0}function f(y){if(t.VariableDeclaration.check(y.node)){var w=y.get("declarations").value;if(!w||w.length===0)return y.prune()}else if(t.ExpressionStatement.check(y.node)){if(!y.get("expression").value)return y.prune()}else t.IfStatement.check(y.node)&&g(y);return y}function g(y){var w=y.get("test").value,T=y.get("alternate").value,S=y.get("consequent").value;if(!S&&!T){var E=i.expressionStatement(w);y.replace(E)}else if(!S&&T){var A=i.unaryExpression("!",w,!0);t.UnaryExpression.check(w)&&w.operator==="!"&&(A=w.argument),y.get("test").replace(A),y.get("consequent").replace(T),y.get("alternate").replace()}}return u}ye(()=>module);var Io=Object.prototype.hasOwnProperty;function pz(s){var e=s.use(Te),t=s.use(cE),i=e.builtInTypes.array,r=e.builtInTypes.object,a=e.builtInTypes.function,n;let o=function f(){if(!(this instanceof f))throw new Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=u(this),this._shouldVisitComments=Io.call(this._methodNameTable,"Block")||Io.call(this._methodNameTable,"Line"),this.Context=d(this),this._visiting=!1,this._changeReported=!1};function u(f){var g=Object.create(null);for(var y in f)/^visit[A-Z]/.test(y)&&(g[y.slice(5)]=!0);for(var w=e.computeSupertypeLookupTable(g),T=Object.create(null),S=Object.keys(w),E=S.length,A=0;A<E;++A){var F=S[A];y="visit"+w[F],a.check(f[y])&&(T[F]=y)}return T}o.fromMethodsObject=function(g){if(g instanceof o)return g;if(!r.check(g))return new o;let y=function T(){if(!(this instanceof T))throw new Error("Visitor constructor cannot be invoked without 'new'");o.call(this)};var w=y.prototype=Object.create(l);return w.constructor=y,c(w,g),c(y,o),a.assert(y.fromMethodsObject),a.assert(y.visit),new y};function c(f,g){for(var y in g)Io.call(g,y)&&(f[y]=g[y]);return f}o.visit=function(g,y){return o.fromMethodsObject(y).visit(g)};var l=o.prototype;l.visit=function(){if(this._visiting)throw new Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;for(var f=arguments.length,g=new Array(f),y=0;y<f;++y)g[y]=arguments[y];g[0]instanceof t||(g[0]=new t({root:g[0]}).get("root")),this.reset.apply(this,g);var w;try{var T=this.visitWithoutReset(g[0]);w=!0}finally{if(this._visiting=!1,!w&&this._abortRequested)return g[0].value}return T},l.AbortRequest=function(){},l.abort=function(){var f=this;f._abortRequested=!0;var g=new f.AbortRequest;throw g.cancel=function(){f._abortRequested=!1},g},l.reset=function(f){},l.visitWithoutReset=function(f){if(this instanceof this.Context)return this.visitor.visitWithoutReset(f);if(!(f instanceof t))throw new Error("");var g=f.value,y=g&&typeof g=="object"&&typeof g.type=="string"&&this._methodNameTable[g.type];if(y){var w=this.acquireContext(f);try{return w.invokeVisitorMethod(y)}finally{this.releaseContext(w)}}else return p(f,this)};function p(f,g){if(!(f instanceof t))throw new Error("");if(!(g instanceof o))throw new Error("");var y=f.value;if(i.check(y))f.each(g.visitWithoutReset,g);else if(r.check(y)){var w=e.getFieldNames(y);g._shouldVisitComments&&y.comments&&w.indexOf("comments")<0&&w.push("comments");for(var T=w.length,S=[],E=0;E<T;++E){var A=w[E];Io.call(y,A)||(y[A]=e.getFieldValue(y,A)),S.push(f.get(A))}for(var E=0;E<T;++E)g.visitWithoutReset(S[E])}return f.value}l.acquireContext=function(f){return this._reusableContextStack.length===0?new this.Context(f):this._reusableContextStack.pop().reset(f)},l.releaseContext=function(f){if(!(f instanceof this.Context))throw new Error("");this._reusableContextStack.push(f),f.currentPath=null},l.reportChanged=function(){this._changeReported=!0},l.wasChangeReported=function(){return this._changeReported};function d(f){function g(w){if(!(this instanceof g))throw new Error("");if(!(this instanceof o))throw new Error("");if(!(w instanceof t))throw new Error("");Object.defineProperty(this,"visitor",{value:f,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=w,this.needToCallTraverse=!0,Object.seal(this)}if(!(f instanceof o))throw new Error("");var y=g.prototype=Object.create(f);return y.constructor=g,c(y,m),g}var m=Object.create(null);return m.reset=function(g){if(!(this instanceof this.Context))throw new Error("");if(!(g instanceof t))throw new Error("");return this.currentPath=g,this.needToCallTraverse=!0,this},m.invokeVisitorMethod=function(g){if(!(this instanceof this.Context))throw new Error("");if(!(this.currentPath instanceof t))throw new Error("");var y=this.visitor[g].call(this,this.currentPath);if(y===!1?this.needToCallTraverse=!1:y!==n&&(this.currentPath=this.currentPath.replace(y)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw new Error("Must either call this.traverse or return false in "+g);var w=this.currentPath;return w&&w.value},m.traverse=function(g,y){if(!(this instanceof this.Context))throw new Error("");if(!(g instanceof t))throw new Error("");if(!(this.currentPath instanceof t))throw new Error("");return this.needToCallTraverse=!1,p(g,o.fromMethodsObject(y||this.visitor))},m.visit=function(g,y){if(!(this instanceof this.Context))throw new Error("");if(!(g instanceof t))throw new Error("");if(!(this.currentPath instanceof t))throw new Error("");return this.needToCallTraverse=!1,o.fromMethodsObject(y||this.visitor).visitWithoutReset(g)},m.reportChanged=function(){this.visitor.reportChanged()},m.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},o}ye(()=>module);function hz(s){var e=s.use(Te),t=e.getFieldNames,i=e.getFieldValue,r=e.builtInTypes.array,a=e.builtInTypes.object,n=e.builtInTypes.Date,o=e.builtInTypes.RegExp,u=Object.prototype.hasOwnProperty;function c(f,g,y){return r.check(y)?y.length=0:y=null,p(f,g,y)}c.assert=function(f,g){var y=[];if(!c(f,g,y))if(y.length===0){if(f!==g)throw new Error("Nodes must be equal")}else throw new Error("Nodes differ in the following path: "+y.map(l).join(""))};function l(f){return/[_$a-z][_$a-z0-9]*/i.test(f)?"."+f:"["+JSON.stringify(f)+"]"}function p(f,g,y){return f===g?!0:r.check(f)?d(f,g,y):a.check(f)?m(f,g,y):n.check(f)?n.check(g)&&+f==+g:o.check(f)?o.check(g)&&f.source===g.source&&f.global===g.global&&f.multiline===g.multiline&&f.ignoreCase===g.ignoreCase:f==g}function d(f,g,y){r.assert(f);var w=f.length;if(!r.check(g)||g.length!==w)return y&&y.push("length"),!1;for(var T=0;T<w;++T){if(y&&y.push(T),T in f!=T in g||!p(f[T],g[T],y))return!1;if(y){var S=y.pop();if(S!==T)throw new Error(""+S)}}return!0}function m(f,g,y){if(a.assert(f),!a.check(g))return!1;if(f.type!==g.type)return y&&y.push("type"),!1;var w=t(f),T=w.length,S=t(g),E=S.length;if(T===E){for(var A=0;A<T;++A){var F=w[A],H=i(f,F),ee=i(g,F);if(y&&y.push(F),!p(H,ee,y))return!1;if(y){var te=y.pop();if(te!==F)throw new Error(""+te)}}return!0}if(!y)return!1;var $=Object.create(null);for(A=0;A<T;++A)$[w[A]]=!0;for(A=0;A<E;++A){if(F=S[A],!u.call($,F))return y.push(F),!1;delete $[F]}for(F in $){y.push(F);break}return!1}return c}ye(()=>module);function dz(s){let e=fz(),t=e.use(Te);s.forEach(e.use),t.finalize();let i=e.use(pz);return{Type:t.Type,builtInTypes:t.builtInTypes,namedTypes:t.namedTypes,builders:t.builders,defineMethod:t.defineMethod,getFieldNames:t.getFieldNames,getFieldValue:t.getFieldValue,eachField:t.eachField,someField:t.someField,getSupertypeNames:t.getSupertypeNames,getBuilderName:t.getBuilderName,astNodesAreEquivalent:e.use(hz),finalize:t.finalize,Path:e.use(uE),NodePath:e.use(cE),PathVisitor:i,use:e.use,visit:i.visit}}function fz(){let s=[],e=[];function t(r){var a=s.indexOf(r);return a===-1&&(a=s.length,s.push(r),e[a]=r(i)),e[a]}var i={use:t};return i}ye(()=>module);function lE(){return{BinaryOperators:["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],AssignmentOperators:["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],LogicalOperators:["||","&&"]}}ye(()=>module);function pE(s){let e=s.use(lE);return e.BinaryOperators.indexOf("**")<0&&e.BinaryOperators.push("**"),e.AssignmentOperators.indexOf("**=")<0&&e.AssignmentOperators.push("**="),e}ye(()=>module);function hE(s){let e=s.use(pE);return e.LogicalOperators.indexOf("??")<0&&e.LogicalOperators.push("??"),e}ye(()=>module);function mz(s){let e=s.use(hE);return e.LogicalOperators.forEach(t=>{let i=t+"=";e.AssignmentOperators.indexOf(i)<0&&e.AssignmentOperators.push(i)}),e}ye(()=>module);function gz(s){var e=s.use(Te),t=e.Type,i=t.def,r=t.or,a=s.use(ft),n=a.defaults,o=a.geq;let{BinaryOperators:u,AssignmentOperators:c,LogicalOperators:l}=s.use(lE);i("Printable").field("loc",r(i("SourceLocation"),null),n.null,!0),i("Node").bases("Printable").field("type",String).field("comments",r([i("Comment")],null),n.null,!0),i("SourceLocation").field("start",i("Position")).field("end",i("Position")).field("source",r(String,null),n.null),i("Position").field("line",o(1)).field("column",o(0)),i("File").bases("Node").build("program","name").field("program",i("Program")).field("name",r(String,null),n.null),i("Program").bases("Node").build("body").field("body",[i("Statement")]),i("Function").bases("Node").field("id",r(i("Identifier"),null),n.null).field("params",[i("Pattern")]).field("body",i("BlockStatement")).field("generator",Boolean,n.false).field("async",Boolean,n.false),i("Statement").bases("Node"),i("EmptyStatement").bases("Statement").build(),i("BlockStatement").bases("Statement").build("body").field("body",[i("Statement")]),i("ExpressionStatement").bases("Statement").build("expression").field("expression",i("Expression")),i("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",i("Expression")).field("consequent",i("Statement")).field("alternate",r(i("Statement"),null),n.null),i("LabeledStatement").bases("Statement").build("label","body").field("label",i("Identifier")).field("body",i("Statement")),i("BreakStatement").bases("Statement").build("label").field("label",r(i("Identifier"),null),n.null),i("ContinueStatement").bases("Statement").build("label").field("label",r(i("Identifier"),null),n.null),i("WithStatement").bases("Statement").build("object","body").field("object",i("Expression")).field("body",i("Statement")),i("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",i("Expression")).field("cases",[i("SwitchCase")]).field("lexical",Boolean,n.false),i("ReturnStatement").bases("Statement").build("argument").field("argument",r(i("Expression"),null)),i("ThrowStatement").bases("Statement").build("argument").field("argument",i("Expression")),i("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",i("BlockStatement")).field("handler",r(i("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[i("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[i("CatchClause")],n.emptyArray).field("finalizer",r(i("BlockStatement"),null),n.null),i("CatchClause").bases("Node").build("param","guard","body").field("param",i("Pattern")).field("guard",r(i("Expression"),null),n.null).field("body",i("BlockStatement")),i("WhileStatement").bases("Statement").build("test","body").field("test",i("Expression")).field("body",i("Statement")),i("DoWhileStatement").bases("Statement").build("body","test").field("body",i("Statement")).field("test",i("Expression")),i("ForStatement").bases("Statement").build("init","test","update","body").field("init",r(i("VariableDeclaration"),i("Expression"),null)).field("test",r(i("Expression"),null)).field("update",r(i("Expression"),null)).field("body",i("Statement")),i("ForInStatement").bases("Statement").build("left","right","body").field("left",r(i("VariableDeclaration"),i("Expression"))).field("right",i("Expression")).field("body",i("Statement")),i("DebuggerStatement").bases("Statement").build(),i("Declaration").bases("Statement"),i("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",i("Identifier")),i("FunctionExpression").bases("Function","Expression").build("id","params","body"),i("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",r("var","let","const")).field("declarations",[i("VariableDeclarator")]),i("VariableDeclarator").bases("Node").build("id","init").field("id",i("Pattern")).field("init",r(i("Expression"),null),n.null),i("Expression").bases("Node"),i("ThisExpression").bases("Expression").build(),i("ArrayExpression").bases("Expression").build("elements").field("elements",[r(i("Expression"),null)]),i("ObjectExpression").bases("Expression").build("properties").field("properties",[i("Property")]),i("Property").bases("Node").build("kind","key","value").field("kind",r("init","get","set")).field("key",r(i("Literal"),i("Identifier"))).field("value",i("Expression")),i("SequenceExpression").bases("Expression").build("expressions").field("expressions",[i("Expression")]);var p=r("-","+","!","~","typeof","void","delete");i("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",p).field("argument",i("Expression")).field("prefix",Boolean,n.true);let d=r(...u);i("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",d).field("left",i("Expression")).field("right",i("Expression"));let m=r(...c);i("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",m).field("left",r(i("Pattern"),i("MemberExpression"))).field("right",i("Expression"));var f=r("++","--");i("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",f).field("argument",i("Expression")).field("prefix",Boolean);var g=r(...l);i("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",g).field("left",i("Expression")).field("right",i("Expression")),i("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",i("Expression")).field("consequent",i("Expression")).field("alternate",i("Expression")),i("NewExpression").bases("Expression").build("callee","arguments").field("callee",i("Expression")).field("arguments",[i("Expression")]),i("CallExpression").bases("Expression").build("callee","arguments").field("callee",i("Expression")).field("arguments",[i("Expression")]),i("MemberExpression").bases("Expression").build("object","property","computed").field("object",i("Expression")).field("property",r(i("Identifier"),i("Expression"))).field("computed",Boolean,function(){var y=this.property.type;return y==="Literal"||y==="MemberExpression"||y==="BinaryExpression"}),i("Pattern").bases("Node"),i("SwitchCase").bases("Node").build("test","consequent").field("test",r(i("Expression"),null)).field("consequent",[i("Statement")]),i("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,n.false),i("Literal").bases("Expression").build("value").field("value",r(String,Boolean,null,Number,RegExp,BigInt)),i("Comment").bases("Printable").field("value",String).field("leading",Boolean,n.true).field("trailing",Boolean,n.false)}ye(()=>module);function yz(s){s.use(gz);let e=s.use(Te),t=e.Type.def,i=e.Type.or,r=s.use(ft).defaults;t("Function").field("generator",Boolean,r.false).field("expression",Boolean,r.false).field("defaults",[i(t("Expression"),null)],r.emptyArray).field("rest",i(t("Identifier"),null),r.null),t("RestElement").bases("Pattern").build("argument").field("argument",t("Pattern")).field("typeAnnotation",i(t("TypeAnnotation"),t("TSTypeAnnotation"),null),r.null),t("SpreadElementPattern").bases("Pattern").build("argument").field("argument",t("Pattern")),t("FunctionDeclaration").build("id","params","body","generator","expression").field("id",i(t("Identifier"),null)),t("FunctionExpression").build("id","params","body","generator","expression"),t("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,r.null).field("body",i(t("BlockStatement"),t("Expression"))).field("generator",!1,r.false),t("ForOfStatement").bases("Statement").build("left","right","body").field("left",i(t("VariableDeclaration"),t("Pattern"))).field("right",t("Expression")).field("body",t("Statement")),t("YieldExpression").bases("Expression").build("argument","delegate").field("argument",i(t("Expression"),null)).field("delegate",Boolean,r.false),t("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",t("Expression")).field("blocks",[t("ComprehensionBlock")]).field("filter",i(t("Expression"),null)),t("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",t("Expression")).field("blocks",[t("ComprehensionBlock")]).field("filter",i(t("Expression"),null)),t("ComprehensionBlock").bases("Node").build("left","right","each").field("left",t("Pattern")).field("right",t("Expression")).field("each",Boolean),t("Property").field("key",i(t("Literal"),t("Identifier"),t("Expression"))).field("value",i(t("Expression"),t("Pattern"))).field("method",Boolean,r.false).field("shorthand",Boolean,r.false).field("computed",Boolean,r.false),t("ObjectProperty").field("shorthand",Boolean,r.false),t("PropertyPattern").bases("Pattern").build("key","pattern").field("key",i(t("Literal"),t("Identifier"),t("Expression"))).field("pattern",t("Pattern")).field("computed",Boolean,r.false),t("ObjectPattern").bases("Pattern").build("properties").field("properties",[i(t("PropertyPattern"),t("Property"))]),t("ArrayPattern").bases("Pattern").build("elements").field("elements",[i(t("Pattern"),null)]),t("SpreadElement").bases("Node").build("argument").field("argument",t("Expression")),t("ArrayExpression").field("elements",[i(t("Expression"),t("SpreadElement"),t("RestElement"),null)]),t("NewExpression").field("arguments",[i(t("Expression"),t("SpreadElement"))]),t("CallExpression").field("arguments",[i(t("Expression"),t("SpreadElement"))]),t("AssignmentPattern").bases("Pattern").build("left","right").field("left",t("Pattern")).field("right",t("Expression")),t("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",i("constructor","method","get","set")).field("key",t("Expression")).field("value",t("Function")).field("computed",Boolean,r.false).field("static",Boolean,r.false);let a=i(t("MethodDefinition"),t("VariableDeclarator"),t("ClassPropertyDefinition"),t("ClassProperty"),t("StaticBlock"));t("ClassProperty").bases("Declaration").build("key").field("key",i(t("Literal"),t("Identifier"),t("Expression"))).field("computed",Boolean,r.false),t("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",a),t("ClassBody").bases("Declaration").build("body").field("body",[a]),t("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",i(t("Identifier"),null)).field("body",t("ClassBody")).field("superClass",i(t("Expression"),null),r.null),t("ClassExpression").bases("Expression").build("id","body","superClass").field("id",i(t("Identifier"),null),r.null).field("body",t("ClassBody")).field("superClass",i(t("Expression"),null),r.null),t("Super").bases("Expression").build(),t("Specifier").bases("Node"),t("ModuleSpecifier").bases("Specifier").field("local",i(t("Identifier"),null),r.null).field("id",i(t("Identifier"),null),r.null).field("name",i(t("Identifier"),null),r.null),t("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",t("Identifier")),t("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),t("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),t("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[i(t("ImportSpecifier"),t("ImportNamespaceSpecifier"),t("ImportDefaultSpecifier"))],r.emptyArray).field("source",t("Literal")).field("importKind",i("value","type"),function(){return"value"}),t("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",i(t("Declaration"),null)).field("specifiers",[t("ExportSpecifier")],r.emptyArray).field("source",i(t("Literal"),null),r.null),t("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",t("Identifier")),t("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",i(t("Declaration"),t("Expression"))),t("ExportAllDeclaration").bases("Declaration").build("source").field("source",t("Literal")),t("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",t("Expression")).field("quasi",t("TemplateLiteral")),t("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[t("TemplateElement")]).field("expressions",[t("Expression")]),t("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),t("MetaProperty").bases("Expression").build("meta","property").field("meta",t("Identifier")).field("property",t("Identifier"))}ye(()=>module);function xz(s){s.use(pE),s.use(yz)}ye(()=>module);function bz(s){s.use(xz);let t=s.use(Te).Type.def,i=s.use(ft).defaults;t("Function").field("async",Boolean,i.false),t("AwaitExpression").bases("Expression").build("argument").field("argument",t("Expression"))}ye(()=>module);function wz(s){s.use(bz);let e=s.use(Te),t=e.Type.def,i=e.Type.or,r=s.use(ft).defaults;t("ForOfStatement").field("await",Boolean,r.false),t("SpreadProperty").bases("Node").build("argument").field("argument",t("Expression")),t("ObjectExpression").field("properties",[i(t("Property"),t("SpreadProperty"),t("SpreadElement"))]),t("TemplateElement").field("value",{cooked:i(String,null),raw:String}),t("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",t("Pattern")),t("ObjectPattern").field("properties",[i(t("PropertyPattern"),t("Property"),t("RestElement"),t("SpreadPropertyPattern"))])}ye(()=>module);function Dz(s){s.use(wz);let e=s.use(Te),t=e.Type.def,i=e.Type.or,r=s.use(ft).defaults;t("CatchClause").field("param",i(t("Pattern"),null),r.null)}ye(()=>module);function kz(s){s.use(hE),s.use(Dz);let e=s.use(Te),t=e.Type.def,i=e.Type.or,a=s.use(ft).defaults;t("ImportExpression").bases("Expression").build("source").field("source",t("Expression")),t("ExportAllDeclaration").bases("Declaration").build("source","exported").field("source",t("Literal")).field("exported",i(t("Identifier"),null,void 0),a.null),t("ChainElement").bases("Node").field("optional",Boolean,a.false),t("CallExpression").bases("Expression","ChainElement"),t("MemberExpression").bases("Expression","ChainElement"),t("ChainExpression").bases("Expression").build("expression").field("expression",t("ChainElement")),t("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,a.true),t("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,a.true)}ye(()=>module);function vz(s){s.use(mz),s.use(kz)}ye(()=>module);function Ez(s){s.use(vz);let t=s.use(Te).Type.def;t("StaticBlock").bases("Declaration").build("body").field("body",[t("Statement")])}ye(()=>module);function za(s){s.use(Ez);let e=s.use(Te),t=e.Type,i=e.Type.def,r=t.or,n=s.use(ft).defaults;i("AwaitExpression").build("argument","all").field("argument",r(i("Expression"),null)).field("all",Boolean,n.false),i("Decorator").bases("Node").build("expression").field("expression",i("Expression")),i("Property").field("decorators",r([i("Decorator")],null),n.null),i("MethodDefinition").field("decorators",r([i("Decorator")],null),n.null),i("PrivateName").bases("Expression","Pattern").build("id").field("id",i("Identifier")),i("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",i("PrivateName")).field("value",r(i("Expression"),null),n.null),i("ImportAttribute").bases("Node").build("key","value").field("key",r(i("Identifier"),i("Literal"))).field("value",i("Expression")),["ImportDeclaration","ExportAllDeclaration","ExportNamedDeclaration"].forEach(o=>{i(o).field("assertions",[i("ImportAttribute")],n.emptyArray)}),i("RecordExpression").bases("Expression").build("properties").field("properties",[r(i("ObjectProperty"),i("ObjectMethod"),i("SpreadElement"))]),i("TupleExpression").bases("Expression").build("elements").field("elements",[r(i("Expression"),i("SpreadElement"),null)]),i("ModuleExpression").bases("Node").build("body").field("body",i("Program"))}ye(()=>module);function Cz(s){s.use(za);let e=s.use(Te),t=e.Type.def,i=e.Type.or,r=s.use(ft).defaults;t("JSXAttribute").bases("Node").build("name","value").field("name",i(t("JSXIdentifier"),t("JSXNamespacedName"))).field("value",i(t("Literal"),t("JSXExpressionContainer"),t("JSXElement"),t("JSXFragment"),null),r.null),t("JSXIdentifier").bases("Identifier").build("name").field("name",String),t("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",t("JSXIdentifier")).field("name",t("JSXIdentifier")),t("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",i(t("JSXIdentifier"),t("JSXMemberExpression"))).field("property",t("JSXIdentifier")).field("computed",Boolean,r.false);let a=i(t("JSXIdentifier"),t("JSXNamespacedName"),t("JSXMemberExpression"));t("JSXSpreadAttribute").bases("Node").build("argument").field("argument",t("Expression"));let n=[i(t("JSXAttribute"),t("JSXSpreadAttribute"))];t("JSXExpressionContainer").bases("Expression").build("expression").field("expression",i(t("Expression"),t("JSXEmptyExpression")));let o=[i(t("JSXText"),t("JSXExpressionContainer"),t("JSXSpreadChild"),t("JSXElement"),t("JSXFragment"),t("Literal"))];t("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",t("JSXOpeningElement")).field("closingElement",i(t("JSXClosingElement"),null),r.null).field("children",o,r.emptyArray).field("name",a,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",n,function(){return this.openingElement.attributes},!0),t("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",a).field("attributes",n,r.emptyArray).field("selfClosing",Boolean,r.false),t("JSXClosingElement").bases("Node").build("name").field("name",a),t("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",t("JSXOpeningFragment")).field("closingFragment",t("JSXClosingFragment")).field("children",o,r.emptyArray),t("JSXOpeningFragment").bases("Node").build(),t("JSXClosingFragment").bases("Node").build(),t("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),t("JSXEmptyExpression").bases("Node").build(),t("JSXSpreadChild").bases("Node").build("expression").field("expression",t("Expression"))}ye(()=>module);function dE(s){var e=s.use(Te),t=e.Type.def,i=e.Type.or,r=s.use(ft).defaults,a=i(t("TypeAnnotation"),t("TSTypeAnnotation"),null),n=i(t("TypeParameterDeclaration"),t("TSTypeParameterDeclaration"),null);t("Identifier").field("typeAnnotation",a,r.null),t("ObjectPattern").field("typeAnnotation",a,r.null),t("Function").field("returnType",a,r.null).field("typeParameters",n,r.null),t("ClassProperty").build("key","value","typeAnnotation","static").field("value",i(t("Expression"),null)).field("static",Boolean,r.false).field("typeAnnotation",a,r.null),["ClassDeclaration","ClassExpression"].forEach(o=>{t(o).field("typeParameters",n,r.null).field("superTypeParameters",i(t("TypeParameterInstantiation"),t("TSTypeParameterInstantiation"),null),r.null).field("implements",i([t("ClassImplements")],[t("TSExpressionWithTypeArguments")]),r.emptyArray)})}ye(()=>module);function fE(s){s.use(za),s.use(dE);let e=s.use(Te),t=e.Type.def,i=e.Type.or,r=s.use(ft).defaults;t("Flow").bases("Node"),t("FlowType").bases("Flow"),t("AnyTypeAnnotation").bases("FlowType").build(),t("EmptyTypeAnnotation").bases("FlowType").build(),t("MixedTypeAnnotation").bases("FlowType").build(),t("VoidTypeAnnotation").bases("FlowType").build(),t("SymbolTypeAnnotation").bases("FlowType").build(),t("NumberTypeAnnotation").bases("FlowType").build(),t("BigIntTypeAnnotation").bases("FlowType").build(),t("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),t("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),t("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),t("StringTypeAnnotation").bases("FlowType").build(),t("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),t("BooleanTypeAnnotation").bases("FlowType").build(),t("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),t("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",t("FlowType")),t("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",t("FlowType")),t("NullLiteralTypeAnnotation").bases("FlowType").build(),t("NullTypeAnnotation").bases("FlowType").build(),t("ThisTypeAnnotation").bases("FlowType").build(),t("ExistsTypeAnnotation").bases("FlowType").build(),t("ExistentialTypeParam").bases("FlowType").build(),t("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[t("FunctionTypeParam")]).field("returnType",t("FlowType")).field("rest",i(t("FunctionTypeParam"),null)).field("typeParameters",i(t("TypeParameterDeclaration"),null)),t("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",i(t("Identifier"),null)).field("typeAnnotation",t("FlowType")).field("optional",Boolean),t("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",t("FlowType")),t("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[i(t("ObjectTypeProperty"),t("ObjectTypeSpreadProperty"))]).field("indexers",[t("ObjectTypeIndexer")],r.emptyArray).field("callProperties",[t("ObjectTypeCallProperty")],r.emptyArray).field("inexact",i(Boolean,void 0),r.undefined).field("exact",Boolean,r.false).field("internalSlots",[t("ObjectTypeInternalSlot")],r.emptyArray),t("Variance").bases("Node").build("kind").field("kind",i("plus","minus"));let a=i(t("Variance"),"plus","minus",null);t("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",i(t("Literal"),t("Identifier"))).field("value",t("FlowType")).field("optional",Boolean).field("variance",a,r.null),t("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",t("Identifier")).field("key",t("FlowType")).field("value",t("FlowType")).field("variance",a,r.null).field("static",Boolean,r.false),t("ObjectTypeCallProperty").bases("Node").build("value").field("value",t("FunctionTypeAnnotation")).field("static",Boolean,r.false),t("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",i(t("Identifier"),t("QualifiedTypeIdentifier"))).field("id",t("Identifier")),t("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",i(t("Identifier"),t("QualifiedTypeIdentifier"))).field("typeParameters",i(t("TypeParameterInstantiation"),null)),t("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",t("Identifier")).field("property",i(t("MemberTypeAnnotation"),t("GenericTypeAnnotation"))),t("IndexedAccessType").bases("FlowType").build("objectType","indexType").field("objectType",t("FlowType")).field("indexType",t("FlowType")),t("OptionalIndexedAccessType").bases("FlowType").build("objectType","indexType","optional").field("objectType",t("FlowType")).field("indexType",t("FlowType")).field("optional",Boolean),t("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[t("FlowType")]),t("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[t("FlowType")]),t("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",t("FlowType")),t("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",t("FlowType")),t("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",t("Identifier")).field("value",t("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),t("TypeParameterDeclaration").bases("Node").build("params").field("params",[t("TypeParameter")]),t("TypeParameterInstantiation").bases("Node").build("params").field("params",[t("FlowType")]),t("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",a,r.null).field("bound",i(t("TypeAnnotation"),null),r.null).field("default",i(t("FlowType"),null),r.null),t("ClassProperty").field("variance",a,r.null),t("ClassImplements").bases("Node").build("id").field("id",t("Identifier")).field("superClass",i(t("Expression"),null),r.null).field("typeParameters",i(t("TypeParameterInstantiation"),null),r.null),t("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",t("ObjectTypeAnnotation")).field("extends",i([t("InterfaceExtends")],null),r.null),t("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",t("Identifier")).field("typeParameters",i(t("TypeParameterDeclaration"),null),r.null).field("body",t("ObjectTypeAnnotation")).field("extends",[t("InterfaceExtends")]),t("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),t("InterfaceExtends").bases("Node").build("id").field("id",t("Identifier")).field("typeParameters",i(t("TypeParameterInstantiation"),null),r.null),t("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",t("Identifier")).field("typeParameters",i(t("TypeParameterDeclaration"),null)).field("right",t("FlowType")),t("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),t("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",t("Identifier")).field("typeParameters",i(t("TypeParameterDeclaration"),null)).field("impltype",t("FlowType")).field("supertype",i(t("FlowType"),null)),t("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",i(t("FlowType"),null)),t("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",t("Expression")).field("typeAnnotation",t("TypeAnnotation")),t("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[t("FlowType")]),t("DeclareVariable").bases("Statement").build("id").field("id",t("Identifier")),t("DeclareFunction").bases("Statement").build("id").field("id",t("Identifier")).field("predicate",i(t("FlowPredicate"),null),r.null),t("DeclareClass").bases("InterfaceDeclaration").build("id"),t("DeclareModule").bases("Statement").build("id","body").field("id",i(t("Identifier"),t("Literal"))).field("body",t("BlockStatement")),t("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",t("TypeAnnotation")),t("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",i(t("DeclareVariable"),t("DeclareFunction"),t("DeclareClass"),t("FlowType"),t("TypeAlias"),t("DeclareOpaqueType"),t("InterfaceDeclaration"),null)).field("specifiers",[i(t("ExportSpecifier"),t("ExportBatchSpecifier"))],r.emptyArray).field("source",i(t("Literal"),null),r.null),t("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",i(t("Literal"),null),r.null),t("ImportDeclaration").field("importKind",i("value","type","typeof"),()=>"value"),t("FlowPredicate").bases("Flow"),t("InferredPredicate").bases("FlowPredicate").build(),t("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",t("Expression")),t("Function").field("predicate",i(t("FlowPredicate"),null),r.null),t("CallExpression").field("typeArguments",i(null,t("TypeParameterInstantiation")),r.null),t("NewExpression").field("typeArguments",i(null,t("TypeParameterInstantiation")),r.null),t("EnumDeclaration").bases("Declaration").build("id","body").field("id",t("Identifier")).field("body",i(t("EnumBooleanBody"),t("EnumNumberBody"),t("EnumStringBody"),t("EnumSymbolBody"))),t("EnumBooleanBody").build("members","explicitType").field("members",[t("EnumBooleanMember")]).field("explicitType",Boolean),t("EnumNumberBody").build("members","explicitType").field("members",[t("EnumNumberMember")]).field("explicitType",Boolean),t("EnumStringBody").build("members","explicitType").field("members",i([t("EnumStringMember")],[t("EnumDefaultedMember")])).field("explicitType",Boolean),t("EnumSymbolBody").build("members").field("members",[t("EnumDefaultedMember")]),t("EnumBooleanMember").build("id","init").field("id",t("Identifier")).field("init",i(t("Literal"),Boolean)),t("EnumNumberMember").build("id","init").field("id",t("Identifier")).field("init",t("Literal")),t("EnumStringMember").build("id","init").field("id",t("Identifier")).field("init",t("Literal")),t("EnumDefaultedMember").build("id").field("id",t("Identifier"))}ye(()=>module);function Tz(s){s.use(za);var e=s.use(Te),t=s.use(ft).defaults,i=e.Type.def,r=e.Type.or;i("VariableDeclaration").field("declarations",[r(i("VariableDeclarator"),i("Identifier"))]),i("Property").field("value",r(i("Expression"),i("Pattern"))),i("ArrayPattern").field("elements",[r(i("Pattern"),i("SpreadElement"),null)]),i("ObjectPattern").field("properties",[r(i("Property"),i("PropertyPattern"),i("SpreadPropertyPattern"),i("SpreadProperty"))]),i("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),i("ExportBatchSpecifier").bases("Specifier").build(),i("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",r(i("Declaration"),i("Expression"),null)).field("specifiers",[r(i("ExportSpecifier"),i("ExportBatchSpecifier"))],t.emptyArray).field("source",r(i("Literal"),null),t.null),i("Block").bases("Comment").build("value","leading","trailing"),i("Line").bases("Comment").build("value","leading","trailing")}ye(()=>module);function mE(s){s.use(za);let e=s.use(Te),t=s.use(ft).defaults,i=e.Type.def,r=e.Type.or,{undefined:a}=e.builtInTypes;i("Noop").bases("Statement").build(),i("DoExpression").bases("Expression").build("body").field("body",[i("Statement")]),i("BindExpression").bases("Expression").build("object","callee").field("object",r(i("Expression"),null)).field("callee",i("Expression")),i("ParenthesizedExpression").bases("Expression").build("expression").field("expression",i("Expression")),i("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",i("Identifier")),i("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",i("Identifier")),i("CommentBlock").bases("Comment").build("value","leading","trailing"),i("CommentLine").bases("Comment").build("value","leading","trailing"),i("Directive").bases("Node").build("value").field("value",i("DirectiveLiteral")),i("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,t["use strict"]),i("InterpreterDirective").bases("Node").build("value").field("value",String),i("BlockStatement").bases("Statement").build("body").field("body",[i("Statement")]).field("directives",[i("Directive")],t.emptyArray),i("Program").bases("Node").build("body").field("body",[i("Statement")]).field("directives",[i("Directive")],t.emptyArray).field("interpreter",r(i("InterpreterDirective"),null),t.null);function n(l=String,p){return["extra",{rawValue:l,raw:String},function(){let m=e.getFieldValue(this,"value");return{rawValue:m,raw:p?p(m):String(m)}}]}i("StringLiteral").bases("Literal").build("value").field("value",String).field(...n(String,l=>JSON.stringify(l))),i("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",r(String,null),t.null).field(...n(Number)),i("BigIntLiteral").bases("Literal").build("value").field("value",r(String,Number)).field(...n(String,l=>l+"n")),i("DecimalLiteral").bases("Literal").build("value").field("value",String).field(...n(String,l=>l+"m")),i("NullLiteral").bases("Literal").build().field("value",null,t.null),i("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),i("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)}).field(...n(r(RegExp,a),l=>`/${l.pattern}/${l.flags||""}`)).field("regex",{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var o=r(i("Property"),i("ObjectMethod"),i("ObjectProperty"),i("SpreadProperty"),i("SpreadElement"));i("ObjectExpression").bases("Expression").build("properties").field("properties",[o]),i("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",r("method","get","set")).field("key",r(i("Literal"),i("Identifier"),i("Expression"))).field("params",[i("Pattern")]).field("body",i("BlockStatement")).field("computed",Boolean,t.false).field("generator",Boolean,t.false).field("async",Boolean,t.false).field("accessibility",r(i("Literal"),null),t.null).field("decorators",r([i("Decorator")],null),t.null),i("ObjectProperty").bases("Node").build("key","value").field("key",r(i("Literal"),i("Identifier"),i("Expression"))).field("value",r(i("Expression"),i("Pattern"))).field("accessibility",r(i("Literal"),null),t.null).field("computed",Boolean,t.false);var u=r(i("MethodDefinition"),i("VariableDeclarator"),i("ClassPropertyDefinition"),i("ClassProperty"),i("ClassPrivateProperty"),i("ClassMethod"),i("ClassPrivateMethod"),i("ClassAccessorProperty"),i("StaticBlock"));i("ClassBody").bases("Declaration").build("body").field("body",[u]),i("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",r(i("Literal"),i("Identifier"),i("Expression"))),i("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",i("PrivateName")),i("ClassAccessorProperty").bases("Declaration").build("key","value","decorators","computed","static").field("key",r(i("Literal"),i("Identifier"),i("PrivateName"),i("Expression"))).field("value",r(i("Expression"),null),t.null),["ClassMethod","ClassPrivateMethod"].forEach(l=>{i(l).field("kind",r("get","set","method","constructor"),()=>"method").field("body",i("BlockStatement")).field("access",r("public","private","protected",null),t.null)}),["ClassMethod","ClassPrivateMethod","ClassAccessorProperty"].forEach(l=>{i(l).field("computed",Boolean,t.false).field("static",Boolean,t.false).field("abstract",Boolean,t.false).field("accessibility",r("public","private","protected",null),t.null).field("decorators",r([i("Decorator")],null),t.null).field("definite",Boolean,t.false).field("optional",Boolean,t.false).field("override",Boolean,t.false).field("readonly",Boolean,t.false)});var c=r(i("Property"),i("PropertyPattern"),i("SpreadPropertyPattern"),i("SpreadProperty"),i("ObjectProperty"),i("RestProperty"),i("RestElement"));i("ObjectPattern").bases("Pattern").build("properties").field("properties",[c]).field("decorators",r([i("Decorator")],null),t.null),i("SpreadProperty").bases("Node").build("argument").field("argument",i("Expression")),i("RestProperty").bases("Node").build("argument").field("argument",i("Expression")),i("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",r(i("VariableDeclaration"),i("Expression"))).field("right",i("Expression")).field("body",i("Statement")),i("Import").bases("Expression").build()}ye(()=>module);function Sz(s){let t=s.use(Te).Type.def;s.use(mE),s.use(fE),t("V8IntrinsicIdentifier").bases("Expression").build("name").field("name",String),t("TopicReference").bases("Expression").build()}ye(()=>module);function Az(s){s.use(mE),s.use(dE);var e=s.use(Te),t=e.namedTypes,i=e.Type.def,r=e.Type.or,a=s.use(ft).defaults,n=e.Type.from(function(l,p){return!!(t.StringLiteral&&t.StringLiteral.check(l,p)||t.Literal&&t.Literal.check(l,p)&&typeof l.value=="string")},"StringLiteral");i("TSType").bases("Node");var o=r(i("Identifier"),i("TSQualifiedName"));i("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",o),i("TSHasOptionalTypeParameterInstantiation").field("typeParameters",r(i("TSTypeParameterInstantiation"),null),a.null),i("TSHasOptionalTypeParameters").field("typeParameters",r(i("TSTypeParameterDeclaration"),null,void 0),a.null),i("TSHasOptionalTypeAnnotation").field("typeAnnotation",r(i("TSTypeAnnotation"),null),a.null),i("TSQualifiedName").bases("Node").build("left","right").field("left",o).field("right",o),i("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",i("Expression")).field("typeAnnotation",i("TSType")).field("extra",r({parenthesized:Boolean},null),a.null),i("TSTypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",i("Expression")).field("typeAnnotation",i("TSType")),i("TSSatisfiesExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",i("Expression")).field("typeAnnotation",i("TSType")),i("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",i("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSIntrinsicKeyword","TSThisType"].forEach(l=>{i(l).bases("TSType").build()}),i("TSArrayType").bases("TSType").build("elementType").field("elementType",i("TSType")),i("TSLiteralType").bases("TSType").build("literal").field("literal",r(i("NumericLiteral"),i("StringLiteral"),i("BooleanLiteral"),i("TemplateLiteral"),i("UnaryExpression"),i("BigIntLiteral"))),i("TemplateLiteral").field("expressions",r([i("Expression")],[i("TSType")])),["TSUnionType","TSIntersectionType"].forEach(l=>{i(l).bases("TSType").build("types").field("types",[i("TSType")])}),i("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",i("TSType")).field("extendsType",i("TSType")).field("trueType",i("TSType")).field("falseType",i("TSType")),i("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",i("TSTypeParameter")),i("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",i("TSType"));var u=[r(i("Identifier"),i("RestElement"),i("ArrayPattern"),i("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(l=>{i(l).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",u)}),i("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,a.false).field("async",Boolean,a.false).field("generator",Boolean,a.false).field("id",r(i("Identifier"),null),a.null).field("params",[i("Pattern")]).field("returnType",r(i("TSTypeAnnotation"),i("Noop"),null),a.null),i("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,a.false).field("generator",Boolean,a.false).field("params",[i("Pattern")]).field("abstract",Boolean,a.false).field("accessibility",r("public","private","protected",void 0),a.undefined).field("static",Boolean,a.false).field("computed",Boolean,a.false).field("optional",Boolean,a.false).field("key",r(i("Identifier"),i("StringLiteral"),i("NumericLiteral"),i("Expression"))).field("kind",r("get","set","method","constructor"),function(){return"method"}).field("access",r("public","private","protected",void 0),a.undefined).field("decorators",r([i("Decorator")],null),a.null).field("returnType",r(i("TSTypeAnnotation"),i("Noop"),null),a.null),i("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",r(Boolean,"+","-"),a.false).field("typeParameter",i("TSTypeParameter")).field("optional",r(Boolean,"+","-"),a.false).field("typeAnnotation",r(i("TSType"),null),a.null),i("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[r(i("TSType"),i("TSNamedTupleMember"))]),i("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",i("Identifier")).field("optional",Boolean,a.false).field("elementType",i("TSType")),i("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",i("TSType")),i("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",i("TSType")),i("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",i("TSType")).field("indexType",i("TSType")),i("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",i("TSType")),i("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",r(i("TSType"),i("TSTypeAnnotation"))),i("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[i("Identifier")]).field("readonly",Boolean,a.false),i("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",i("Expression")).field("computed",Boolean,a.false).field("readonly",Boolean,a.false).field("optional",Boolean,a.false).field("initializer",r(i("Expression"),null),a.null),i("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",i("Expression")).field("computed",Boolean,a.false).field("optional",Boolean,a.false).field("parameters",u),i("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",r(i("Identifier"),i("TSThisType"))).field("typeAnnotation",r(i("TSTypeAnnotation"),null),a.null).field("asserts",Boolean,a.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(l=>{i(l).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",u)}),i("TSEnumMember").bases("Node").build("id","initializer").field("id",r(i("Identifier"),n)).field("initializer",r(i("Expression"),null),a.null),i("TSTypeQuery").bases("TSType").build("exprName").field("exprName",r(o,i("TSImportType")));var c=r(i("TSCallSignatureDeclaration"),i("TSConstructSignatureDeclaration"),i("TSIndexSignature"),i("TSMethodSignature"),i("TSPropertySignature"));i("TSTypeLiteral").bases("TSType").build("members").field("members",[c]),i("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",r(i("Identifier"),String)).field("constraint",r(i("TSType"),void 0),a.undefined).field("default",r(i("TSType"),void 0),a.undefined),i("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",i("TSType")).field("expression",i("Expression")).field("extra",r({parenthesized:Boolean},null),a.null),i("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[i("TSTypeParameter")]),i("TSInstantiationExpression").bases("Expression","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",i("Expression")),i("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[i("TSType")]),i("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",i("Identifier")).field("const",Boolean,a.false).field("declare",Boolean,a.false).field("members",[i("TSEnumMember")]).field("initializer",r(i("Expression"),null),a.null),i("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",i("Identifier")).field("declare",Boolean,a.false).field("typeAnnotation",i("TSType")),i("TSModuleBlock").bases("Node").build("body").field("body",[i("Statement")]),i("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",r(n,o)).field("declare",Boolean,a.false).field("global",Boolean,a.false).field("body",r(i("TSModuleBlock"),i("TSModuleDeclaration"),null),a.null),i("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",n).field("qualifier",r(o,void 0),a.undefined),i("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",i("Identifier")).field("isExport",Boolean,a.false).field("moduleReference",r(o,i("TSExternalModuleReference"))),i("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",n),i("TSExportAssignment").bases("Statement").build("expression").field("expression",i("Expression")),i("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",i("Identifier")),i("TSInterfaceBody").bases("Node").build("body").field("body",[c]),i("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",o),i("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",o).field("declare",Boolean,a.false).field("extends",r([i("TSExpressionWithTypeArguments")],null),a.null).field("body",i("TSInterfaceBody")),i("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",r("public","private","protected",void 0),a.undefined).field("readonly",Boolean,a.false).field("parameter",r(i("Identifier"),i("AssignmentPattern"))),i("ClassProperty").field("access",r("public","private","protected",void 0),a.undefined),i("ClassAccessorProperty").bases("Declaration","TSHasOptionalTypeAnnotation"),i("ClassBody").field("body",[r(i("MethodDefinition"),i("VariableDeclarator"),i("ClassPropertyDefinition"),i("ClassProperty"),i("ClassPrivateProperty"),i("ClassAccessorProperty"),i("ClassMethod"),i("ClassPrivateMethod"),i("StaticBlock"),i("TSDeclareMethod"),c)])}ye(()=>module);var Pt;Pt||(Pt={});var{astNodesAreEquivalent:sse,builders:Ma,builtInTypes:Ft,defineMethod:ise,eachField:rse,finalize:ase,getBuilderName:nse,getFieldNames:jz,getFieldValue:ps,getSupertypeNames:ose,namedTypes:Pz,NodePath:Fz,Path:use,PathVisitor:cse,someField:Iz,Type:lse,use:pse,visit:hse}=dz([za,Cz,fE,Tz,Sz,Az]);Object.assign(Pt,Pz);var _o=Pt,W1=Wo.default.SourceMapConsumer,_z=Wo.default.SourceMapGenerator,gE=Object.prototype.hasOwnProperty;function Nz(){return`
`}function G1(s,e,t){return s&&gE.call(s,e)?s[e]:t}function Bz(...s){let e={},t=s.length;for(let i=0;i<t;++i){let r=Object.keys(s[i]),a=r.length;for(let n=0;n<a;++n)e[r[n]]=!0}return e}function me(s,e){return s.line-e.line||s.column-e.column}function Bs(s){return{line:s.line,column:s.column}}function Oz(s,e){if(s){if(!e)return s}else return e||null;let t=new W1(s),i=new W1(e),r=new _z({file:e.file,sourceRoot:e.sourceRoot}),a={};return i.eachMapping(function(n){let o=t.originalPositionFor({line:n.originalLine,column:n.originalColumn}),u=o.source;if(u===null)return;r.addMapping({source:u,original:Bs(o),generated:{line:n.generatedLine,column:n.generatedColumn},name:n.name});let c=t.sourceContentFor(u);c&&!gE.call(a,u)&&(a[u]=c,r.setSourceContent(u,c))}),r.toJSON()}function yE(s,e){if(!s.loc)return null;let t={start:s.loc.start,end:s.loc.end};function i(r){_h(t,r.loc)}return s.declaration&&s.declaration.decorators&&Go(s)&&s.declaration.decorators.forEach(i),me(t.start,t.end)<0&&(t.start=Bs(t.start),e.skipSpaces(t.start,!1,!0),me(t.start,t.end)<0&&(t.end=Bs(t.end),e.skipSpaces(t.end,!0,!0))),s.comments&&s.comments.forEach(i),t}function _h(s,e){s&&e&&(me(e.start,s.start)<0&&(s.start=e.start),me(s.end,e.end)<0&&(s.end=e.end))}function Hh(s,e){let t=s.loc;if(t&&(t.start.line<1&&(t.start.line=1),t.end.line<1&&(t.end.line=1)),s.type==="File"&&(t.start=e.firstPos(),t.end=e.lastPos()),Lz(s,e),zz(s,e),t&&s.decorators)s.decorators.forEach(function(i){_h(t,i.loc)});else if(s.declaration&&Go(s)){s.declaration.loc=null;let i=s.declaration.decorators;i&&i.forEach(function(r){_h(t,r.loc)})}else if(_o.MethodDefinition&&_o.MethodDefinition.check(s)||_o.Property.check(s)&&(s.method||s.shorthand))s.value.loc=null,_o.FunctionExpression.check(s.value)&&(s.value.id=null);else if(s.type==="ObjectTypeProperty"){let i=s.loc,r=i&&i.end;r&&(r=Bs(r),e.prevPos(r)&&e.charAt(r)===","&&(r=e.skipSpaces(r,!0,!0))&&(i.end=r))}}function Lz(s,e){if(s.type!=="ForStatement")return;function t(i){let r=i&&i.loc,a=r&&r.start,n=r&&Bs(r.end);for(;a&&n&&me(a,n)<0&&(e.prevPos(n),e.charAt(n)===";");)r.end.line=n.line,r.end.column=n.column}t(s.init),t(s.test),t(s.update)}function zz(s,e){if(s.type==="TemplateLiteral"&&s.quasis.length!==0){if(s.loc){let t=Bs(s.loc.start),i=s.quasis[0];me(i.loc.start,t)<0&&(i.loc.start=t);let r=Bs(s.loc.end),a=s.quasis[s.quasis.length-1];me(r,a.loc.end)<0&&(a.loc.end=r)}s.expressions.forEach(function(t,i){let r=e.skipSpaces(t.loc.start,!0,!1);if(e.prevPos(r)&&e.charAt(r)==="{"&&e.prevPos(r)&&e.charAt(r)==="$"){let n=s.quasis[i];me(r,n.loc.end)<0&&(n.loc.end=r)}let a=e.skipSpaces(t.loc.end,!1,!1);if(e.charAt(a)==="}"){let n=s.quasis[i+1];me(n.loc.start,a)<0&&(n.loc.start=a)}})}}function Go(s){if(s)switch(s.type){case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function xE(s){let e=s.getParentNode();return s.getName()==="declaration"&&Go(e)?e:null}function _a(s,e){let t=s.trailingComma;return typeof t=="object"?!!t[e]:!!t}var Nh={tabWidth:4,useTabs:!1,reuseWhitespace:!0,lineTerminator:Nz(),wrapColumn:74,sourceFileName:null,sourceMapName:null,sourceRoot:null,inputSourceMap:null,range:!1,tolerant:!0,quote:null,trailingComma:!1,arrayBracketSpacing:!1,objectCurlySpacing:!0,arrowParensAlways:!1,flowObjectCommas:!0,tokens:!0},Mz=Nh.hasOwnProperty;function Ko(s){let e=s||Nh;function t(i){return Mz.call(e,i)?e[i]:Nh[i]}return{tabWidth:+t("tabWidth"),useTabs:!!t("useTabs"),reuseWhitespace:!!t("reuseWhitespace"),lineTerminator:t("lineTerminator"),wrapColumn:Math.max(t("wrapColumn"),0),sourceFileName:t("sourceFileName"),sourceMapName:t("sourceMapName"),sourceRoot:t("sourceRoot"),inputSourceMap:t("inputSourceMap"),parser:t("esprima")||t("parser"),range:t("range"),tolerant:t("tolerant"),quote:t("quote"),trailingComma:t("trailingComma"),arrayBracketSpacing:t("arrayBracketSpacing"),objectCurlySpacing:t("objectCurlySpacing"),arrowParensAlways:t("arrowParensAlways"),flowObjectCommas:t("flowObjectCommas"),tokens:!!t("tokens")}}var Bh=class s{constructor(e,t,i=t){this.sourceLines=e,this.sourceLoc=t,this.targetLoc=i}slice(e,t,i=e.lastPos()){let r=this.sourceLines,a=this.sourceLoc,n=this.targetLoc;function o(u){let c=a[u],l=n[u],p=t;return u==="end"&&(p=i),Rz(r,c,e,l,p)}if(me(t,n.start)<=0)if(me(n.end,i)<=0)n={start:Ns(n.start,t.line,t.column),end:Ns(n.end,t.line,t.column)};else{if(me(i,n.start)<=0)return null;a={start:a.start,end:o("end")},n={start:Ns(n.start,t.line,t.column),end:Ns(i,t.line,t.column)}}else{if(me(n.end,t)<=0)return null;me(n.end,i)<=0?(a={start:o("start"),end:a.end},n={start:{line:1,column:0},end:Ns(n.end,t.line,t.column)}):(a={start:o("start"),end:o("end")},n={start:{line:1,column:0},end:Ns(i,t.line,t.column)})}return new s(this.sourceLines,a,n)}add(e,t){return new s(this.sourceLines,this.sourceLoc,{start:K1(this.targetLoc.start,e,t),end:K1(this.targetLoc.end,e,t)})}subtract(e,t){return new s(this.sourceLines,this.sourceLoc,{start:Ns(this.targetLoc.start,e,t),end:Ns(this.targetLoc.end,e,t)})}indent(e,t=!1,i=!1){if(e===0)return this;let r=this.targetLoc,a=r.start.line,n=r.end.line;if(t&&a===1&&n===1)return this;if(r={start:r.start,end:r.end},!t||a>1){let o=r.start.column+e;r.start={line:a,column:i?Math.max(0,o):o}}if(!t||n>1){let o=r.end.column+e;r.end={line:n,column:i?Math.max(0,o):o}}return new s(this.sourceLines,this.sourceLoc,r)}};function K1(s,e,t){return{line:s.line+e-1,column:s.line===1?s.column+t:s.column}}function Ns(s,e,t){return{line:s.line-e+1,column:s.line===e?s.column-t:s.column}}function Rz(s,e,t,i,r){let a=me(i,r);if(a===0)return e;let n,o;if(a<0){n=s.skipSpaces(e)||s.lastPos(),o=t.skipSpaces(i)||t.lastPos();let u=r.line-o.line;for(n.line+=u,o.line+=u,u>0&&(n.column=0,o.column=0);me(o,r)<0&&t.nextPos(o,!0););}else{n=s.skipSpaces(e,!0)||s.firstPos(),o=t.skipSpaces(i,!0)||t.firstPos();let u=r.line-o.line;for(n.line+=u,o.line+=u,u<0&&(n.column=s.getLineLength(n.line),o.column=t.getLineLength(o.line));me(r,o)<0&&t.prevPos(o,!0););}return n}var qz=Object.defineProperty,Uz=(s,e,t)=>e in s?qz(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Ta=(s,e,t)=>(Uz(s,typeof e!="symbol"?e+"":e,t),t),nr=class s{constructor(e,t=null){this.infos=e,Ta(this,"length"),Ta(this,"name"),Ta(this,"mappings",[]),Ta(this,"cachedSourceMap",null),Ta(this,"cachedTabWidth"),this.length=e.length,this.name=t||null,this.name&&this.mappings.push(new Bh(this,{start:this.firstPos(),end:this.lastPos()}))}toString(e){return this.sliceString(this.firstPos(),this.lastPos(),e)}getSourceMap(e,t){if(!e)return null;let i=this;function r(o){return o=o||{},o.file=e,t&&(o.sourceRoot=t),o}if(i.cachedSourceMap)return r(i.cachedSourceMap.toJSON());let a=new Wo.default.SourceMapGenerator(r()),n={};return i.mappings.forEach(function(o){let u=o.sourceLines.skipSpaces(o.sourceLoc.start)||o.sourceLines.lastPos(),c=i.skipSpaces(o.targetLoc.start)||i.lastPos();for(;me(u,o.sourceLoc.end)<0&&me(c,o.targetLoc.end)<0;){o.sourceLines.charAt(u),i.charAt(c);let l=o.sourceLines.name;if(a.addMapping({source:l,original:{line:u.line,column:u.column},generated:{line:c.line,column:c.column}}),!Oh.call(n,l)){let p=o.sourceLines.toString();a.setSourceContent(l,p),n[l]=p}i.nextPos(c,!0),o.sourceLines.nextPos(u,!0)}}),i.cachedSourceMap=a,a.toJSON()}bootstrapCharAt(e){let t=e.line,i=e.column,r=this.toString().split(Lh),a=r[t-1];return typeof a>"u"?"":i===a.length&&t<r.length?`
`:i>=a.length?"":a.charAt(i)}charAt(e){let t=e.line,i=e.column,r=this,a=r.infos,n=a[t-1],o=i;if(typeof n>"u"||o<0)return"";let u=this.getIndentAt(t);return o<u?" ":(o+=n.sliceStart-u,o===n.sliceEnd&&t<this.length?`
`:o>=n.sliceEnd?"":n.line.charAt(o))}stripMargin(e,t){if(e===0)return this;if(t&&this.length===1)return this;let i=new s(this.infos.map(function(r,a){return r.line&&(a>0||!t)&&(r={...r,indent:Math.max(0,r.indent-e)}),r}));if(this.mappings.length>0){let r=i.mappings;this.mappings.forEach(function(a){r.push(a.indent(e,t,!0))})}return i}indent(e){if(e===0)return this;let t=new s(this.infos.map(function(i){return i.line&&!i.locked&&(i={...i,indent:i.indent+e}),i}));if(this.mappings.length>0){let i=t.mappings;this.mappings.forEach(function(r){i.push(r.indent(e))})}return t}indentTail(e){if(e===0)return this;if(this.length<2)return this;let t=new s(this.infos.map(function(i,r){return r>0&&i.line&&!i.locked&&(i={...i,indent:i.indent+e}),i}));if(this.mappings.length>0){let i=t.mappings;this.mappings.forEach(function(r){i.push(r.indent(e,!0))})}return t}lockIndentTail(){return this.length<2?this:new s(this.infos.map((e,t)=>({...e,locked:t>0})))}getIndentAt(e){return Math.max(this.infos[e-1].indent,0)}guessTabWidth(){if(typeof this.cachedTabWidth=="number")return this.cachedTabWidth;let e=[],t=0;for(let a=1,n=this.length;a<=n;++a){let o=this.infos[a-1],u=o.line.slice(o.sliceStart,o.sliceEnd);if(sr(u))continue;let c=Math.abs(o.indent-t);e[c]=~~e[c]+1,t=o.indent}let i=-1,r=2;for(let a=1;a<e.length;a+=1)Oh.call(e,a)&&e[a]>i&&(i=e[a],r=a);return this.cachedTabWidth=r}startsWithComment(){if(this.infos.length===0)return!1;let e=this.infos[0],t=e.sliceStart,i=e.sliceEnd,r=e.line.slice(t,i).trim();return r.length===0||r.slice(0,2)==="//"||r.slice(0,2)==="/*"}isOnlyWhitespace(){return sr(this.toString())}isPrecededOnlyByWhitespace(e){let t=this.infos[e.line-1],i=Math.max(t.indent,0),r=e.column-i;if(r<=0)return!0;let a=t.sliceStart,n=Math.min(a+r,t.sliceEnd),o=t.line.slice(a,n);return sr(o)}getLineLength(e){let t=this.infos[e-1];return this.getIndentAt(e)+t.sliceEnd-t.sliceStart}nextPos(e,t=!1){let i=Math.max(e.line,0);return Math.max(e.column,0)<this.getLineLength(i)?(e.column+=1,t?!!this.skipSpaces(e,!1,!0):!0):i<this.length?(e.line+=1,e.column=0,t?!!this.skipSpaces(e,!1,!0):!0):!1}prevPos(e,t=!1){let i=e.line,r=e.column;if(r<1){if(i-=1,i<1)return!1;r=this.getLineLength(i)}else r=Math.min(r-1,this.getLineLength(i));return e.line=i,e.column=r,t?!!this.skipSpaces(e,!0,!0):!0}firstPos(){return{line:1,column:0}}lastPos(){return{line:this.length,column:this.getLineLength(this.length)}}skipSpaces(e,t=!1,i=!1){if(e?e=i?e:{line:e.line,column:e.column}:t?e=this.lastPos():e=this.firstPos(),t){for(;this.prevPos(e);)if(!sr(this.charAt(e))&&this.nextPos(e))return e;return null}else{for(;sr(this.charAt(e));)if(!this.nextPos(e))return null;return e}}trimLeft(){let e=this.skipSpaces(this.firstPos(),!1,!0);return e?this.slice(e):ii}trimRight(){let e=this.skipSpaces(this.lastPos(),!0,!0);return e?this.slice(this.firstPos(),e):ii}trim(){let e=this.skipSpaces(this.firstPos(),!1,!0);if(e===null)return ii;let t=this.skipSpaces(this.lastPos(),!0,!0);return t===null?ii:this.slice(e,t)}eachPos(e,t=this.firstPos(),i=!1){let r=this.firstPos();if(t&&(r.line=t.line,r.column=t.column),!(i&&!this.skipSpaces(r,!1,!0)))do e.call(this,r);while(this.nextPos(r,i))}bootstrapSlice(e,t){let i=this.toString().split(Lh).slice(e.line-1,t.line);return i.length>0&&(i.push(i.pop().slice(0,t.column)),i[0]=i[0].slice(e.column)),j(i.join(`
`))}slice(e,t){if(!t){if(!e)return this;t=this.lastPos()}if(!e)throw new Error("cannot slice with end but not start");let i=this.infos.slice(e.line-1,t.line);e.line===t.line?i[0]=ir(i[0],e.column,t.column):(i[0]=ir(i[0],e.column),i.push(ir(i.pop(),0,t.column)));let r=new s(i);if(this.mappings.length>0){let a=r.mappings;this.mappings.forEach(function(n){let o=n.slice(this,e,t);o&&a.push(o)},this)}return r}bootstrapSliceString(e,t,i){return this.slice(e,t).toString(i)}sliceString(e=this.firstPos(),t=this.lastPos(),i){let{tabWidth:r,useTabs:a,reuseWhitespace:n,lineTerminator:o}=Ko(i),u=[];for(let c=e.line;c<=t.line;++c){let l=this.infos[c-1];c===e.line?c===t.line?l=ir(l,e.column,t.column):l=ir(l,e.column):c===t.line&&(l=ir(l,0,t.column));let p=Math.max(l.indent,0),d=l.line.slice(0,l.sliceStart);if(n&&sr(d)&&bE(d,r)===p){u.push(l.line.slice(0,l.sliceEnd));continue}let m=0,f=p;a&&(m=Math.floor(p/r),f-=m*r);let g="";m>0&&(g+=new Array(m+1).join(" ")),f>0&&(g+=new Array(f+1).join(" ")),g+=l.line.slice(l.sliceStart,l.sliceEnd),u.push(g)}return u.join(o)}isEmpty(){return this.length<2&&this.getLineLength(1)<1}join(e){let t=this,i=[],r=[],a;function n(c){if(c!==null){if(a){let l=c.infos[0],p=new Array(l.indent+1).join(" "),d=i.length,m=Math.max(a.indent,0)+a.sliceEnd-a.sliceStart;a.line=a.line.slice(0,a.sliceEnd)+p+l.line.slice(l.sliceStart,l.sliceEnd),a.locked=a.locked||l.locked,a.sliceEnd=a.line.length,c.mappings.length>0&&c.mappings.forEach(function(f){r.push(f.add(d,m))})}else c.mappings.length>0&&r.push.apply(r,c.mappings);c.infos.forEach(function(l,p){(!a||p>0)&&(a={...l},i.push(a))})}}function o(c,l){l>0&&n(t),n(c)}if(e.map(function(c){let l=j(c);return l.isEmpty()?null:l}).forEach((c,l)=>{t.isEmpty()?n(c):o(c,l)}),i.length<1)return ii;let u=new s(i);return u.mappings=r,u}concat(...e){let t=[this];return t.push.apply(t,e),ii.join(t)}},Lo={},Oh=Lo.hasOwnProperty,Hz=10;function bE(s,e){let t=0,i=s.length;for(let r=0;r<i;++r)switch(s.charCodeAt(r)){case 9:{let a=Math.ceil(t/e)*e;a===t?t+=e:t=a;break}case 11:case 12:case 13:case 65279:break;case 32:default:t+=1;break}return t}var $z=/^\s*/,Lh=/\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;function j(s,e){if(s instanceof nr)return s;s+="";let t=e&&e.tabWidth,i=s.indexOf(" ")<0,r=!e&&i&&s.length<=Hz;if(r&&Oh.call(Lo,s))return Lo[s];let a=new nr(s.split(Lh).map(function(n){let o=$z.exec(n)[0];return{line:n,indent:bE(o,t),locked:!1,sliceStart:o.length,sliceEnd:n.length}}),Ko(e).sourceFileName);return r&&(Lo[s]=a),a}function sr(s){return!/\S/.test(s)}function ir(s,e,t){let i=s.sliceStart,r=s.sliceEnd,a=Math.max(s.indent,0),n=a+r-i;return typeof t>"u"&&(t=n),e=Math.max(e,0),t=Math.min(t,n),t=Math.max(t,e),t<a?(a=t,r=i):r-=n-t,n=t,n-=e,e<a?a-=e:(e-=a,a=0,i+=e),s.indent===a&&s.sliceStart===i&&s.sliceEnd===r?s:{line:s.line,indent:a,locked:!1,sliceStart:i,sliceEnd:r}}function C(s){return ii.join(s)}var ii=j(""),or=Pt,wE=Ft.array,Vz=Ft.object,J1=new WeakMap;function DE(s,e,t){if(!s)return t;if(Hh(s,e),t){if(or.Node.check(s)&&or.SourceLocation.check(s.loc)){let r=t.length-1;for(;r>=0;--r){let a=t[r];if(a&&a.loc&&me(a.loc.end,s.loc.start)<=0)break}return t.splice(r+1,0,s),t}}else{let r=J1.get(s);if(r)return r}let i;if(wE.check(s))i=Object.keys(s);else if(Vz.check(s))i=jz(s);else return t;t||J1.set(s,t=[]);for(let r=0,a=i.length;r<a;++r)DE(s[i[r]],e,t);return t}function kE(s,e,t){let i=DE(s,t),r=0,a=i&&i.length,n,o;for(;typeof a=="number"&&r<a;){let u=r+a>>1,c=i[u];if(me(c.loc.start,e.loc.start)<=0&&me(e.loc.end,c.loc.end)<=0){kE(e.enclosingNode=c,e,t);return}if(me(c.loc.end,e.loc.start)<=0){n=c,r=u+1;continue}if(me(e.loc.end,c.loc.start)<=0){o=c,a=u;continue}throw new Error("Comment location overlaps with node location")}n&&(e.precedingNode=n),o&&(e.followingNode=o)}function Wz(s,e,t){if(!wE.check(s))return;let i=[];s.forEach(function(r){r.loc.lines=t,kE(e,r,t);let a=r.precedingNode,n=r.enclosingNode,o=r.followingNode;if(a&&o){let u=i.length;u>0&&i[u-1].followingNode!==r.followingNode&&Sa(i,t),i.push(r)}else if(a)Sa(i,t),EE(a,r);else if(o)Sa(i,t),vE(o,r);else if(n)Sa(i,t),Gz(n,r);else throw new Error("AST contains no nodes at all?")}),Sa(i,t),s.forEach(function(r){delete r.precedingNode,delete r.enclosingNode,delete r.followingNode})}function Sa(s,e){let t=s.length;if(t===0)return;let i=s[0].precedingNode,r=s[0].followingNode,a=r.loc.start,n=t,o;for(;n>0;--n){o=s[n-1];let u=e.sliceString(o.loc.end,a);if(/\S/.test(u))break;a=o.loc.start}for(;n<=t&&(o=s[n])&&(o.type==="Line"||o.type==="CommentLine")&&o.loc.start.column>r.loc.start.column;)++n;if(n){let{enclosingNode:u}=s[n-1];u?.type==="CallExpression"&&--n}s.forEach(function(u,c){c<n?EE(i,u):vE(r,u)}),s.length=0}function $h(s,e){(s.comments||(s.comments=[])).push(e)}function vE(s,e){e.leading=!0,e.trailing=!1,$h(s,e)}function Gz(s,e){e.leading=!1,e.trailing=!1,$h(s,e)}function EE(s,e){e.leading=!1,e.trailing=!0,$h(s,e)}function Kz(s,e){let t=s.getValue();or.Comment.assert(t);let i=t.loc,r=i&&i.lines,a=[e(s)];if(t.trailing)a.push(`
`);else if(r instanceof nr){let n=r.slice(i.end,r.skipSpaces(i.end)||r.lastPos());n.length===1?a.push(n):a.push(new Array(n.length).join(`
`))}else a.push(`
`);return C(a)}function Jz(s,e){let t=s.getValue(s);or.Comment.assert(t);let i=t.loc,r=i&&i.lines,a=[];if(r instanceof nr){let n=r.skipSpaces(i.start,!0)||r.firstPos(),o=r.slice(n,i.start);o.length===1?a.push(o):a.push(new Array(o.length).join(`
`))}return a.push(e(s)),C(a)}function X1(s,e){let t=s.getValue(),i=e(s),r=or.Node.check(t)&&ps(t,"comments");if(!r||r.length===0)return i;let a=[],n=[i];return s.each(function(o){let u=o.getValue(),c=ps(u,"leading"),l=ps(u,"trailing");c||l&&!(or.Statement.check(t)||u.type==="Block"||u.type==="CommentBlock")?a.push(Kz(o,e)):l&&n.push(Jz(o,e))},"comments"),a.push.apply(a,n),C(a)}var Xz=Ma,Yz=Ft.object,Qz=Ft.array;function Zz(s,e){e=Ko(e);let t=j(s,e),i=t.toString({tabWidth:e.tabWidth,reuseWhitespace:!1,useTabs:!1}),r=[],a=e.parser.parse(i,{jsx:!0,loc:!0,locations:!0,range:e.range,comment:!0,onComment:r,tolerant:G1(e,"tolerant",!0),ecmaVersion:6,sourceType:G1(e,"sourceType","module")}),n=Array.isArray(a.tokens)?a.tokens:!1;delete a.tokens,n.forEach(function(l){typeof l.value!="string"&&(l.value=t.sliceString(l.loc.start,l.loc.end))}),Array.isArray(a.comments)&&(r=a.comments,delete a.comments),a.loc?Hh(a,t):a.loc={start:t.firstPos(),end:t.lastPos()},a.loc.lines=t,a.loc.indent=0;let o,u;a.type==="Program"?(u=a,o=Xz.file(a,e.sourceFileName||null),o.loc={start:t.firstPos(),end:t.lastPos(),lines:t,indent:0}):a.type==="File"&&(o=a,u=o.program),e.tokens&&(o.tokens=n);let c=yE({type:u.type,loc:u.loc,body:[],comments:r},t);return u.loc.start=c.start,u.loc.end=c.end,Wz(r,u.body.length?o.program:o,t),new CE(t,n).copy(o)}var CE=function(e,t){this.lines=e,this.tokens=t,this.startTokenIndex=0,this.endTokenIndex=t.length,this.indent=0,this.seen=new Map},TE=CE.prototype;TE.copy=function(s){if(this.seen.has(s))return this.seen.get(s);if(Qz.check(s)){let c=new Array(s.length);return this.seen.set(s,c),s.forEach(function(l,p){c[p]=this.copy(l)},this),c}if(!Yz.check(s))return s;Hh(s,this.lines);let e=Object.create(Object.getPrototypeOf(s),{original:{value:s,configurable:!1,enumerable:!1,writable:!0}});this.seen.set(s,e);let t=s.loc,i=this.indent,r=i,a=this.startTokenIndex,n=this.endTokenIndex;t&&((s.type==="Block"||s.type==="Line"||s.type==="CommentBlock"||s.type==="CommentLine"||this.lines.isPrecededOnlyByWhitespace(t.start))&&(r=this.indent=t.start.column),t.lines=this.lines,t.tokens=this.tokens,t.indent=r,this.findTokenRange(t));let o=Object.keys(s),u=o.length;for(let c=0;c<u;++c){let l=o[c];l==="loc"||l==="tokens"&&s.type==="File"?e[l]=s[l]:e[l]=this.copy(s[l])}return this.indent=i,this.startTokenIndex=a,this.endTokenIndex=n,e};TE.findTokenRange=function(s){for(;this.startTokenIndex>0;){let e=s.tokens[this.startTokenIndex];if(me(s.start,e.loc.start)<0)--this.startTokenIndex;else break}for(;this.endTokenIndex<s.tokens.length;){let e=s.tokens[this.endTokenIndex];if(me(e.loc.end,s.end)<0)++this.endTokenIndex;else break}for(;this.startTokenIndex<this.endTokenIndex;){let e=s.tokens[this.startTokenIndex];if(me(e.loc.start,s.start)<0)++this.startTokenIndex;else break}for(s.start.token=this.startTokenIndex;this.endTokenIndex>this.startTokenIndex;){let e=s.tokens[this.endTokenIndex-1];if(me(s.end,e.loc.end)<0)--this.endTokenIndex;else break}s.end.token=this.endTokenIndex};var De=Pt,e4=Ft.array,t4=Ft.number,zh={};[["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(s,e){s.forEach(function(t){zh[t]=e})});var jt=function(e){this.stack=[e]},Ue=jt.prototype;jt.from=function(s){if(s instanceof jt)return s.copy();if(s instanceof Fz){let e=Object.create(jt.prototype),t=[s.value];for(let i;i=s.parentPath;s=i)t.push(s.name,i.value);return e.stack=t.reverse(),e}return new jt(s)};Ue.copy=function(){let e=Object.create(jt.prototype);return e.stack=this.stack.slice(0),e};Ue.getName=function(){let e=this.stack,t=e.length;return t>1?e[t-2]:null};Ue.getValue=function(){let e=this.stack;return e[e.length-1]};Ue.valueIsDuplicate=function(){let s=this.stack,e=s.length-1;return s.lastIndexOf(s[e],e-1)>=0};function SE(s,e){let t=s.stack;for(let i=t.length-1;i>=0;i-=2){let r=t[i];if(De.Node.check(r)&&--e<0)return r}return null}Ue.getNode=function(e=0){return SE(this,~~e)};Ue.getParentNode=function(e=0){return SE(this,~~e+1)};Ue.getRootValue=function(){let e=this.stack;return e.length%2===0?e[1]:e[0]};Ue.call=function(e){let t=this.stack,i=t.length,r=t[i-1],a=arguments.length;for(let o=1;o<a;++o){let u=arguments[o];r=r[u],t.push(u,r)}let n=e(this);return t.length=i,n};Ue.each=function(e){let t=this.stack,i=t.length,r=t[i-1],a=arguments.length;for(let n=1;n<a;++n){let o=arguments[n];r=r[o],t.push(o,r)}for(let n=0;n<r.length;++n)n in r&&(t.push(n,r[n]),e(this),t.length-=2);t.length=i};Ue.map=function(e){let t=this.stack,i=t.length,r=t[i-1],a=arguments.length;for(let o=1;o<a;++o){let u=arguments[o];r=r[u],t.push(u,r)}let n=new Array(r.length);for(let o=0;o<r.length;++o)o in r&&(t.push(o,r[o]),n[o]=e(this,o),t.length-=2);return t.length=i,n};Ue.hasParens=function(){let s=this.getNode(),e=this.getPrevToken(s);if(!e)return!1;let t=this.getNextToken(s);return t?!!(e.value==="("&&(t.value===")"||!this.canBeFirstInStatement()&&this.firstInStatement()&&!this.needsParens(!0))):!1};Ue.getPrevToken=function(s){s=s||this.getNode();let e=s&&s.loc,t=e&&e.tokens;if(t&&e.start.token>0){let i=t[e.start.token-1];if(i){let r=this.getRootValue().loc;if(me(r.start,i.loc.start)<=0)return i}}return null};Ue.getNextToken=function(s){s=s||this.getNode();let e=s&&s.loc,t=e&&e.tokens;if(t&&e.end.token<t.length){let i=t[e.end.token];if(i){let r=this.getRootValue().loc;if(me(i.loc.end,r.end)<=0)return i}}return null};Ue.needsParens=function(s){let e=this.getNode();if(e.type==="AssignmentExpression"&&e.left.type==="ObjectPattern")return!0;let t=this.getParentNode(),i=this.getName();if(this.getValue()!==e||De.Statement.check(e)||e.type==="Identifier"||t&&t.type==="ParenthesizedExpression")return!1;if(e.extra&&e.extra.parenthesized)return!0;if(!t)return!1;if(e.type==="UnaryExpression"&&t.type==="BinaryExpression"&&i==="left"&&t.left===e&&t.operator==="**")return!0;switch(e.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return t.type==="MemberExpression"&&i==="object"&&t.object===e;case"BinaryExpression":case"LogicalExpression":switch(t.type){case"CallExpression":return i==="callee"&&t.callee===e;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return i==="object"&&t.object===e;case"BinaryExpression":case"LogicalExpression":{let r=t.operator,a=zh[r],n=e.operator,o=zh[n];if(a>o||a===o&&i==="right")return!0;break}default:return!1}break;case"SequenceExpression":switch(t.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return i!=="expression";default:return!0}case"OptionalIndexedAccessType":return e.optional&&t.type==="IndexedAccessType";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return t.type==="NullableTypeAnnotation";case"Literal":return t.type==="MemberExpression"&&t4.check(e.value)&&i==="object"&&t.object===e;case"NumericLiteral":return t.type==="MemberExpression"&&i==="object"&&t.object===e;case"YieldExpression":case"AwaitExpression":case"AssignmentExpression":case"ConditionalExpression":switch(t.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":case"NewExpression":return i==="callee"&&t.callee===e;case"ConditionalExpression":return i==="test"&&t.test===e;case"MemberExpression":return i==="object"&&t.object===e;default:return!1}case"ArrowFunctionExpression":return De.CallExpression.check(t)&&i==="callee"&&t.callee===e||De.MemberExpression.check(t)&&i==="object"&&t.object===e||De.TSAsExpression&&De.TSAsExpression.check(t)&&i==="expression"&&t.expression===e?!0:AE(t);case"ObjectExpression":if(t.type==="ArrowFunctionExpression"&&i==="body"&&t.body===e)return!0;break;case"TSAsExpression":if(t.type==="ArrowFunctionExpression"&&i==="body"&&t.body===e&&e.expression.type==="ObjectExpression")return!0;break;case"CallExpression":if(i==="declaration"&&De.ExportDefaultDeclaration.check(t)&&De.FunctionExpression.check(e.callee))return!0}return t.type==="NewExpression"&&i==="callee"&&t.callee===e?Mh(e):!!(s!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function AE(s){return De.BinaryExpression.check(s)||De.LogicalExpression.check(s)}function Mh(s){return De.CallExpression.check(s)?!0:e4.check(s)?s.some(Mh):De.Node.check(s)?Iz(s,(e,t)=>Mh(t)):!1}Ue.canBeFirstInStatement=function(){let s=this.getNode();return!(De.FunctionExpression.check(s)||De.ObjectExpression.check(s)||De.ClassExpression.check(s))};Ue.firstInStatement=function(){let s=this.stack,e,t,i,r;for(let a=s.length-1;a>=0;a-=2)if(De.Node.check(s[a])&&(i=e,r=t,e=s[a-1],t=s[a]),!(!t||!r)){if(De.BlockStatement.check(t)&&e==="body"&&i===0||De.ExpressionStatement.check(t)&&i==="expression"||De.AssignmentExpression.check(t)&&i==="left"||De.ArrowFunctionExpression.check(t)&&i==="body")return!0;if(!(De.SequenceExpression.check(t)&&s[a+1]==="expressions"&&i===0)&&!(De.CallExpression.check(t)&&i==="callee")&&!(De.MemberExpression.check(t)&&i==="object")&&!(De.ConditionalExpression.check(t)&&i==="test")&&!(AE(t)&&i==="left")&&!(De.UnaryExpression.check(t)&&!t.prefix&&i==="argument"))return!1}return!0};var Ba=Pt.Printable,Y1=Pt.Expression,s4=Pt.ReturnStatement,i4=Pt.SourceLocation,Oa=Ft.object,Rh=Ft.array,r4=Ft.string,$o=/[0-9a-z_$]/i,jE=function(e){let t=this,i=[];t.replace=function(r,a){r4.check(a)&&(a=j(a)),i.push({lines:a,start:r.start,end:r.end})},t.get=function(r){r=r||{start:{line:1,column:0},end:{line:e.length,column:e.getLineLength(e.length)}};let a=r.start,n=[];function o(u,c){n.push(e.slice(u,c))}return i.sort((u,c)=>me(u.start,c.start)).forEach(function(u){me(a,u.start)>0||(o(a,u.start),n.push(u.lines),a=u.end)}),o(a,r.end),C(n)}},PE=jE.prototype;PE.tryToReprintComments=function(s,e,t){let i=this;if(!s.comments&&!e.comments)return!0;let r=jt.from(s),a=jt.from(e);r.stack.push("comments",Q1(s)),a.stack.push("comments",Q1(e));let n=[],o=IE(r,a,n);return o&&n.length>0&&n.forEach(function(u){let c=u.oldPath.getValue();i.replace(c.loc,t(u.newPath).indentTail(c.loc.indent))}),o};function Q1(s){let e=[];return s.comments&&s.comments.length>0&&s.comments.forEach(function(t){(t.leading||t.trailing)&&e.push(t)}),e}PE.deleteComments=function(s){if(!s.comments)return;let e=this;s.comments.forEach(function(t){t.leading?e.replace({start:t.loc.start,end:s.loc.lines.skipSpaces(t.loc.end,!1,!1)},""):t.trailing&&e.replace({start:s.loc.lines.skipSpaces(t.loc.start,!0,!1),end:t.loc.end},"")})};function a4(s){let e=s.getValue();if(!Ba.check(e))return;let t=e.original,i=t&&t.loc,r=i&&i.lines,a=[];if(!(!r||!u4(s,a)))return function(n){let o=new jE(r);a.forEach(function(c){let l=c.newPath.getValue(),p=c.oldPath.getValue();i4.assert(p.loc,!0);let d=!o.tryToReprintComments(l,p,n);d&&o.deleteComments(p);let m=n(c.newPath,{includeComments:d,avoidRootParens:p.type===l.type&&c.oldPath.hasParens()}).indentTail(p.loc.indent),f=n4(r,p.loc,m),g=o4(r,p.loc,m);if(f||g){let y=[];f&&y.push(" "),y.push(m),g&&y.push(" "),m=C(y)}o.replace(p.loc,m)});let u=o.get(i).indentTail(-t.loc.indent);return s.needsParens()?C(["(",u,")"]):u}}function n4(s,e,t){let i=Bs(e.start),r=s.prevPos(i)&&s.charAt(i),a=t.charAt(t.firstPos());return r&&$o.test(r)&&a&&$o.test(a)}function o4(s,e,t){let i=s.charAt(e.end),r=t.lastPos(),a=t.prevPos(r)&&t.charAt(r);return a&&$o.test(a)&&i&&$o.test(i)}function u4(s,e){let t=s.getValue();Ba.assert(t);let i=t.original;if(Ba.assert(i),t.type!==i.type)return!1;let r=new jt(i),a=qh(s,r,e);return a||(e.length=0),a}function FE(s,e,t){let i=s.getValue(),r=e.getValue();return i===r?!0:Rh.check(i)?IE(s,e,t):Oa.check(i)?c4(s,e,t):!1}function IE(s,e,t){let i=s.getValue(),r=e.getValue();if(i===r||s.valueIsDuplicate()||e.valueIsDuplicate())return!0;Rh.assert(i);let a=i.length;if(!(Rh.check(r)&&r.length===a))return!1;for(let n=0;n<a;++n){s.stack.push(n,i[n]),e.stack.push(n,r[n]);let o=FE(s,e,t);if(s.stack.length-=2,e.stack.length-=2,!o)return!1}return!0}function c4(s,e,t){let i=s.getValue();if(Oa.assert(i),i.original===null)return!1;let r=e.getValue();if(!Oa.check(r))return!1;if(i===r||s.valueIsDuplicate()||e.valueIsDuplicate())return!0;if(Ba.check(i)){if(!Ba.check(r))return!1;let a=s.getParentNode(),n=e.getParentNode();if(n!==null&&n.type==="FunctionTypeAnnotation"&&a!==null&&a.type==="FunctionTypeAnnotation"){let o=n.params.length!==1||!!n.params[0].name,u=a.params.length!==1||!!a.params[0].name;if(!o&&u)return!1}if(i.type===r.type){let o=[];if(qh(s,e,o))t.push.apply(t,o);else if(r.loc)t.push({oldPath:e.copy(),newPath:s.copy()});else return!1;return!0}return Y1.check(i)&&Y1.check(r)&&r.loc?(t.push({oldPath:e.copy(),newPath:s.copy()}),!0):!1}return qh(s,e,t)}function qh(s,e,t){let i=s.getValue(),r=e.getValue();if(Oa.assert(i),Oa.assert(r),i.original===null||s.needsParens()&&!e.hasParens())return!1;let a=Bz(r,i);(r.type==="File"||i.type==="File")&&delete a.tokens,delete a.loc;let n=t.length;for(let o in a){if(o.charAt(0)==="_")continue;s.stack.push(o,ps(i,o)),e.stack.push(o,ps(r,o));let u=FE(s,e,t);if(s.stack.length-=2,e.stack.length-=2,!u)return!1}return!(s4.check(s.getNode())&&t.length>n)}var Ae=Pt,Vh=Ft.string,l4=Ft.object,Vo=function(e,t){Vh.assert(e),this.code=e,t&&(l4.assert(t),this.map=t)},p4=Vo.prototype,Z1=!1;p4.toString=function(){return Z1||(console.warn("Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."),Z1=!0),this.code};var eE=new Vo(""),h4=function(e){let t=e&&e.tabWidth;e=Ko(e),e.sourceFileName=null;function i(a,n){return a=Object.assign({},a,n),o=>r(o,a)}function r(a,n){if(n=n||{},n.includeComments)return X1(a,i(n,{includeComments:!1}));let o=e.tabWidth;if(!t){let l=a.getNode().loc;l&&l.lines&&l.lines.guessTabWidth&&(e.tabWidth=l.lines.guessTabWidth())}let u=a4(a),c=u?u(r):tE(a,e,n,i(n,{includeComments:!0,avoidRootParens:!1}));return e.tabWidth=o,c}this.print=function(a){if(!a)return eE;let n=r(jt.from(a),{includeComments:!0,avoidRootParens:!1});return new Vo(n.toString(e),Oz(e.inputSourceMap,n.getSourceMap(e.sourceMapName,e.sourceRoot)))},this.printGenerically=function(a){if(!a)return eE;function n(l){return X1(l,p=>tE(p,e,{includeComments:!0,avoidRootParens:!1},n))}let o=jt.from(a),u=e.reuseWhitespace;e.reuseWhitespace=!1;let c=new Vo(n(o).toString(e));return e.reuseWhitespace=u,c}};function tE(s,e,t,i){let r=s.getValue(),a=[],n=d4(s,e,i);if(!r||n.isEmpty())return n;let o=!1,u=f4(s,i);return u.isEmpty()?t.avoidRootParens||(o=s.needsParens()):a.push(u),o&&a.unshift("("),a.push(n),o&&a.push(")"),C(a)}function d4(s,e,t){let i=s.getValue();if(!i)return j("");if(typeof i=="string")return j(i,e);Ae.Printable.assert(i);let r=[];switch(i.type){case"File":return s.call(t,"program");case"Program":return i.directives&&s.each(function(a){r.push(t(a),`;
`)},"directives"),i.interpreter&&r.push(s.call(t,"interpreter")),r.push(s.call(a=>rr(a,e,t),"body")),C(r);case"Noop":case"EmptyStatement":return j("");case"ExpressionStatement":return C([s.call(t,"expression"),";"]);case"ParenthesizedExpression":return C(["(",s.call(t,"expression"),")"]);case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return j(" ").join([s.call(t,"left"),i.operator,s.call(t,"right")]);case"AssignmentPattern":return C([s.call(t,"left")," = ",s.call(t,"right")]);case"MemberExpression":case"OptionalMemberExpression":{r.push(s.call(t,"object"));let a=s.call(t,"property"),n=ps(i,"optional");return i.computed?r.push(n?"?.[":"[",a,"]"):r.push(n?"?.":".",a),C(r)}case"ChainExpression":return s.call(t,"expression");case"MetaProperty":return C([s.call(t,"meta"),".",s.call(t,"property")]);case"BindExpression":return i.object&&r.push(s.call(t,"object")),r.push("::",s.call(t,"callee")),C(r);case"Path":return j(".").join(i.body);case"Identifier":return C([j(i.name,e),i.optional?"?":"",s.call(t,"typeAnnotation")]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"ObjectTypeSpreadProperty":case"RestElement":return C(["...",s.call(t,"argument"),s.call(t,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSDeclareFunction":return i.declare&&r.push("declare "),i.async&&r.push("async "),r.push("function"),i.generator&&r.push("*"),i.id?r.push(" ",s.call(t,"id"),s.call(t,"typeParameters")):i.typeParameters&&r.push(s.call(t,"typeParameters")),r.push("(",Gt(s,e,t),")",s.call(t,"returnType")),i.body&&r.push(" ",s.call(t,"body")),C(r);case"ArrowFunctionExpression":return i.async&&r.push("async "),i.typeParameters&&r.push(s.call(t,"typeParameters")),!e.arrowParensAlways&&i.params.length===1&&!i.rest&&i.params[0].type==="Identifier"&&!i.params[0].typeAnnotation&&!i.returnType?r.push(s.call(t,"params",0)):r.push("(",Gt(s,e,t),")",s.call(t,"returnType")),r.push(" => ",s.call(t,"body")),C(r);case"MethodDefinition":return Ph(s,e,t);case"YieldExpression":return r.push("yield"),i.delegate&&r.push("*"),i.argument&&r.push(" ",s.call(t,"argument")),C(r);case"AwaitExpression":return r.push("await"),i.all&&r.push("*"),i.argument&&r.push(" ",s.call(t,"argument")),C(r);case"ModuleExpression":return C([`module {
`,s.call(t,"body").indent(e.tabWidth),`
}`]);case"ModuleDeclaration":return r.push("module",s.call(t,"id")),i.source?r.push("from",s.call(t,"source")):r.push(s.call(t,"body")),j(" ").join(r);case"ImportSpecifier":return i.importKind&&i.importKind!=="value"&&r.push(i.importKind+" "),i.imported?(r.push(s.call(t,"imported")),i.local&&i.local.name!==i.imported.name&&r.push(" as ",s.call(t,"local"))):i.id&&(r.push(s.call(t,"id")),i.name&&r.push(" as ",s.call(t,"name"))),C(r);case"ExportSpecifier":return i.exportKind&&i.exportKind!=="value"&&r.push(i.exportKind+" "),i.local?(r.push(s.call(t,"local")),i.exported&&i.exported.name!==i.local.name&&r.push(" as ",s.call(t,"exported"))):i.id&&(r.push(s.call(t,"id")),i.name&&r.push(" as ",s.call(t,"name"))),C(r);case"ExportBatchSpecifier":return j("*");case"ImportNamespaceSpecifier":return r.push("* as "),i.local?r.push(s.call(t,"local")):i.id&&r.push(s.call(t,"id")),C(r);case"ImportDefaultSpecifier":return i.local?s.call(t,"local"):s.call(t,"id");case"TSExportAssignment":return C(["export = ",s.call(t,"expression")]);case"ExportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return iE(s,e,t);case"ExportAllDeclaration":return r.push("export *"),i.exported&&r.push(" as ",s.call(t,"exported")),r.push(" from ",s.call(t,"source"),";"),C(r);case"TSNamespaceExportDeclaration":return r.push("export as namespace ",s.call(t,"id")),zo(C(r));case"ExportNamespaceSpecifier":return C(["* as ",s.call(t,"exported")]);case"ExportDefaultSpecifier":return s.call(t,"exported");case"Import":return j("import",e);case"ImportExpression":return C(["import(",s.call(t,"source"),")"]);case"ImportDeclaration":{if(r.push("import "),i.importKind&&i.importKind!=="value"&&r.push(i.importKind+" "),i.specifiers&&i.specifiers.length>0){let a=[],n=[];if(s.each(function(o){let u=o.getValue();u.type==="ImportSpecifier"?n.push(t(o)):(u.type==="ImportDefaultSpecifier"||u.type==="ImportNamespaceSpecifier")&&a.push(t(o))},"specifiers"),a.forEach((o,u)=>{u>0&&r.push(", "),r.push(o)}),n.length>0){let o=j(", ").join(n);o.getLineLength(1)>e.wrapColumn&&(o=C([j(`,
`).join(n).indent(e.tabWidth),","])),a.length>0&&r.push(", "),o.length>1?r.push(`{
`,o,`
}`):e.objectCurlySpacing?r.push("{ ",o," }"):r.push("{",o,"}")}r.push(" from ")}return r.push(s.call(t,"source"),NE(s,e,t),";"),C(r)}case"ImportAttribute":return C([s.call(t,"key"),": ",s.call(t,"value")]);case"StaticBlock":r.push("static ");case"BlockStatement":{let a=s.call(n=>rr(n,e,t),"body");return a.isEmpty()&&(!i.directives||i.directives.length===0)?(r.push("{}"),C(r)):(r.push(`{
`),i.directives&&s.each(function(n){r.push(zo(t(n).indent(e.tabWidth)),i.directives.length>1||!a.isEmpty()?`
`:"")},"directives"),r.push(a.indent(e.tabWidth)),r.push(`
}`),C(r))}case"ReturnStatement":{if(r.push("return"),i.argument){let a=s.call(t,"argument");a.startsWithComment()||a.length>1&&Ae.JSXElement&&Ae.JSXElement.check(i.argument)?r.push(` (
`,a.indent(e.tabWidth),`
)`):r.push(" ",a)}return r.push(";"),C(r)}case"CallExpression":case"OptionalCallExpression":return r.push(s.call(t,"callee")),i.typeParameters&&r.push(s.call(t,"typeParameters")),i.typeArguments&&r.push(s.call(t,"typeArguments")),ps(i,"optional")&&r.push("?."),r.push(sE(s,e,t)),C(r);case"RecordExpression":r.push("#");case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":{let a=i.type==="ObjectTypeAnnotation",n=e.flowObjectCommas?",":a?";":",",o=[],u=!1;a&&(o.push("indexers","callProperties"),i.internalSlots!=null&&o.push("internalSlots")),o.push("properties");let c=0;o.forEach(function(g){c+=i[g].length});let l=a&&c===1||c===0,p=i.exact?"{|":"{",d=i.exact?"|}":"}";r.push(l?p:p+`
`);let m=r.length-1,f=0;if(o.forEach(function(g){s.each(function(y){let w=t(y);l||(w=w.indent(e.tabWidth));let T=!a&&w.length>1;T&&u&&r.push(`
`),r.push(w),f<c-1?(r.push(n+(T?`
`:`
`)),u=!T):(c!==1&&a||!l&&_a(e,"objects")&&y.getValue().type!=="RestElement")&&r.push(n),f++},g)}),i.inexact){let g=j("...",e);l?(c>0&&r.push(n," "),r.push(g)):r.push(`
`,g.indent(e.tabWidth))}return r.push(l?d:`
`+d),f!==0&&l&&e.objectCurlySpacing&&(r[m]=p+" ",r[r.length-1]=" "+d),i.typeAnnotation&&r.push(s.call(t,"typeAnnotation")),C(r)}case"PropertyPattern":return C([s.call(t,"key"),": ",s.call(t,"pattern")]);case"ObjectProperty":case"Property":{if(i.method||i.kind==="get"||i.kind==="set")return Ph(s,e,t);if(i.shorthand&&i.value.type==="AssignmentPattern")return s.call(t,"value");let a=s.call(t,"key");return i.computed?r.push("[",a,"]"):r.push(a),(!i.shorthand||i.key.name!==i.value.name)&&r.push(": ",s.call(t,"value")),C(r)}case"ClassMethod":case"ObjectMethod":case"ClassPrivateMethod":case"TSDeclareMethod":return Ph(s,e,t);case"PrivateName":return C(["#",s.call(t,"id")]);case"Decorator":return C(["@",s.call(t,"expression")]);case"TupleExpression":r.push("#");case"ArrayExpression":case"ArrayPattern":{let n=i.elements.length,o=s.map(t,"elements"),c=j(", ").join(o).getLineLength(1)<=e.wrapColumn;return c?e.arrayBracketSpacing?r.push("[ "):r.push("["):r.push(`[
`),s.each(function(l){let p=l.getName();if(!l.getValue())r.push(",");else{let m=o[p];c?p>0&&r.push(" "):m=m.indent(e.tabWidth),r.push(m),(p<n-1||!c&&_a(e,"arrays"))&&r.push(","),c||r.push(`
`)}},"elements"),c&&e.arrayBracketSpacing?r.push(" ]"):r.push("]"),i.typeAnnotation&&r.push(s.call(t,"typeAnnotation")),C(r)}case"SequenceExpression":return j(", ").join(s.map(t,"expressions"));case"ThisExpression":return j("this");case"Super":return j("super");case"NullLiteral":return j("null");case"RegExpLiteral":return j(ar(i)||`/${i.pattern}/${i.flags||""}`,e);case"BigIntLiteral":return j(ar(i)||i.value+"n",e);case"NumericLiteral":return j(ar(i)||i.value,e);case"DecimalLiteral":return j(ar(i)||i.value+"m",e);case"StringLiteral":return j(Pa(i.value,e));case"BooleanLiteral":case"Literal":return j(ar(i)||(typeof i.value=="string"?Pa(i.value,e):i.value),e);case"Directive":return s.call(t,"value");case"DirectiveLiteral":return j(ar(i)||Pa(i.value,e),e);case"InterpreterDirective":return j(`#!${i.value}
`,e);case"ModuleSpecifier":if(i.local)throw new Error("The ESTree ModuleSpecifier type should be abstract");return j(Pa(i.value,e),e);case"UnaryExpression":return r.push(i.operator),/[a-z]$/.test(i.operator)&&r.push(" "),r.push(s.call(t,"argument")),C(r);case"UpdateExpression":return r.push(s.call(t,"argument"),i.operator),i.prefix&&r.reverse(),C(r);case"ConditionalExpression":return C([s.call(t,"test")," ? ",s.call(t,"consequent")," : ",s.call(t,"alternate")]);case"NewExpression":return r.push("new ",s.call(t,"callee")),i.typeParameters&&r.push(s.call(t,"typeParameters")),i.typeArguments&&r.push(s.call(t,"typeArguments")),i.arguments&&r.push(sE(s,e,t)),C(r);case"VariableDeclaration":{i.declare&&r.push("declare "),r.push(i.kind," ");let a=0,n=s.map(function(u){let c=t(u);return a=Math.max(c.length,a),c},"declarations");a===1?r.push(j(", ").join(n)):n.length>1?r.push(j(`,
`).join(n).indentTail(i.kind.length+1)):r.push(n[0]);let o=s.getParentNode();return!Ae.ForStatement.check(o)&&!Ae.ForInStatement.check(o)&&!(Ae.ForOfStatement&&Ae.ForOfStatement.check(o))&&!(Ae.ForAwaitStatement&&Ae.ForAwaitStatement.check(o))&&r.push(";"),C(r)}case"VariableDeclarator":return i.init?j(" = ").join([s.call(t,"id"),s.call(t,"init")]):s.call(t,"id");case"WithStatement":return C(["with (",s.call(t,"object"),") ",s.call(t,"body")]);case"IfStatement":{let a=si(s.call(t,"consequent"),e);return r.push("if (",s.call(t,"test"),")",a),i.alternate&&r.push(rE(a)?" else":`
else`,si(s.call(t,"alternate"),e)),C(r)}case"ForStatement":{let a=s.call(t,"init"),n=a.length>1?`;
`:"; ",o="for (",u=j(n).join([a,s.call(t,"test"),s.call(t,"update")]).indentTail(o.length),c=C([o,u,")"]),l=si(s.call(t,"body"),e);return r.push(c),c.length>1&&(r.push(`
`),l=l.trimLeft()),r.push(l),C(r)}case"WhileStatement":return C(["while (",s.call(t,"test"),")",si(s.call(t,"body"),e)]);case"ForInStatement":return C([i.each?"for each (":"for (",s.call(t,"left")," in ",s.call(t,"right"),")",si(s.call(t,"body"),e)]);case"ForOfStatement":case"ForAwaitStatement":return r.push("for "),(i.await||i.type==="ForAwaitStatement")&&r.push("await "),r.push("(",s.call(t,"left")," of ",s.call(t,"right"),")",si(s.call(t,"body"),e)),C(r);case"DoWhileStatement":{let a=C(["do",si(s.call(t,"body"),e)]);return r.push(a),rE(a)?r.push(" while"):r.push(`
while`),r.push(" (",s.call(t,"test"),");"),C(r)}case"DoExpression":{let a=s.call(n=>rr(n,e,t),"body");return C([`do {
`,a.indent(e.tabWidth),`
}`])}case"BreakStatement":return r.push("break"),i.label&&r.push(" ",s.call(t,"label")),r.push(";"),C(r);case"ContinueStatement":return r.push("continue"),i.label&&r.push(" ",s.call(t,"label")),r.push(";"),C(r);case"LabeledStatement":return C([s.call(t,"label"),`:
`,s.call(t,"body")]);case"TryStatement":return r.push("try ",s.call(t,"block")),i.handler?r.push(" ",s.call(t,"handler")):i.handlers&&s.each(function(a){r.push(" ",t(a))},"handlers"),i.finalizer&&r.push(" finally ",s.call(t,"finalizer")),C(r);case"CatchClause":return r.push("catch "),i.param&&r.push("(",s.call(t,"param")),i.guard&&r.push(" if ",s.call(t,"guard")),i.param&&r.push(") "),r.push(s.call(t,"body")),C(r);case"ThrowStatement":return C(["throw ",s.call(t,"argument"),";"]);case"SwitchStatement":return C(["switch (",s.call(t,"discriminant"),`) {
`,j(`
`).join(s.map(t,"cases")),`
}`]);case"SwitchCase":return i.test?r.push("case ",s.call(t,"test"),":"):r.push("default:"),i.consequent.length>0&&r.push(`
`,s.call(a=>rr(a,e,t),"consequent").indent(e.tabWidth)),C(r);case"DebuggerStatement":return j("debugger;");case"JSXAttribute":return r.push(s.call(t,"name")),i.value&&r.push("=",s.call(t,"value")),C(r);case"JSXIdentifier":return j(i.name,e);case"JSXNamespacedName":return j(":").join([s.call(t,"namespace"),s.call(t,"name")]);case"JSXMemberExpression":return j(".").join([s.call(t,"object"),s.call(t,"property")]);case"JSXSpreadAttribute":return C(["{...",s.call(t,"argument"),"}"]);case"JSXSpreadChild":return C(["{...",s.call(t,"expression"),"}"]);case"JSXExpressionContainer":return C(["{",s.call(t,"expression"),"}"]);case"JSXElement":case"JSXFragment":{let a="opening"+(i.type==="JSXElement"?"Element":"Fragment"),n="closing"+(i.type==="JSXElement"?"Element":"Fragment"),o=s.call(t,a);if(i[a].selfClosing)return o;let u=C(s.map(function(l){let p=l.getValue();if(Ae.Literal.check(p)&&typeof p.value=="string"){if(/\S/.test(p.value))return p.value.replace(/^\s+|\s+$/g,"");if(/\n/.test(p.value))return`
`}return t(l)},"children")).indentTail(e.tabWidth),c=s.call(t,n);return C([o,u,c])}case"JSXOpeningElement":{r.push("<",s.call(t,"name"));let a=[];s.each(function(u){a.push(" ",t(u))},"attributes");let n=C(a);return(n.length>1||n.getLineLength(1)>e.wrapColumn)&&(a.forEach(function(u,c){u===" "&&(a[c]=`
`)}),n=C(a).indentTail(e.tabWidth)),r.push(n,i.selfClosing?" />":">"),C(r)}case"JSXClosingElement":return C(["</",s.call(t,"name"),">"]);case"JSXOpeningFragment":return j("<>");case"JSXClosingFragment":return j("</>");case"JSXText":return j(i.value,e);case"JSXEmptyExpression":return j("");case"TypeAnnotatedIdentifier":return C([s.call(t,"annotation")," ",s.call(t,"identifier")]);case"ClassBody":return i.body.length===0?j("{}"):C([`{
`,s.call(a=>rr(a,e,t),"body").indent(e.tabWidth),`
}`]);case"ClassPropertyDefinition":return r.push("static ",s.call(t,"definition")),Ae.MethodDefinition.check(i.definition)||r.push(";"),C(r);case"ClassProperty":{i.declare&&r.push("declare ");let a=i.accessibility||i.access;typeof a=="string"&&r.push(a," "),i.static&&r.push("static "),i.abstract&&r.push("abstract "),i.readonly&&r.push("readonly ");let n=s.call(t,"key");return i.computed&&(n=C(["[",n,"]"])),i.variance&&(n=C([ja(s,t),n])),r.push(n),i.optional&&r.push("?"),i.definite&&r.push("!"),i.typeAnnotation&&r.push(s.call(t,"typeAnnotation")),i.value&&r.push(" = ",s.call(t,"value")),r.push(";"),C(r)}case"ClassPrivateProperty":return i.static&&r.push("static "),r.push(s.call(t,"key")),i.typeAnnotation&&r.push(s.call(t,"typeAnnotation")),i.value&&r.push(" = ",s.call(t,"value")),r.push(";"),C(r);case"ClassAccessorProperty":return r.push(..._E(i),"accessor "),i.computed?r.push("[",s.call(t,"key"),"]"):r.push(s.call(t,"key")),i.optional&&r.push("?"),i.definite&&r.push("!"),i.typeAnnotation&&r.push(s.call(t,"typeAnnotation")),i.value&&r.push(" = ",s.call(t,"value")),r.push(";"),C(r);case"ClassDeclaration":case"ClassExpression":case"DeclareClass":return i.declare&&r.push("declare "),i.abstract&&r.push("abstract "),r.push("class"),i.id&&r.push(" ",s.call(t,"id")),i.typeParameters&&r.push(s.call(t,"typeParameters")),i.superClass&&r.push(" extends ",s.call(t,"superClass"),s.call(t,"superTypeParameters")),i.extends&&i.extends.length>0&&r.push(" extends ",j(", ").join(s.map(t,"extends"))),i.implements&&i.implements.length>0&&r.push(" implements ",j(", ").join(s.map(t,"implements"))),r.push(" ",s.call(t,"body")),i.type==="DeclareClass"?Aa(s,r):C(r);case"TemplateElement":return j(i.value.raw,e).lockIndentTail();case"TemplateLiteral":{let a=s.map(t,"expressions");return r.push("`"),s.each(function(n){let o=n.getName();r.push(t(n)),o<a.length&&r.push("${",a[o],"}")},"quasis"),r.push("`"),C(r).lockIndentTail()}case"TaggedTemplateExpression":return C([s.call(t,"tag"),s.call(t,"quasi")]);case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"Flow":case"FlowType":case"FlowPredicate":case"MemberTypeAnnotation":case"Type":case"TSHasOptionalTypeParameterInstantiation":case"TSHasOptionalTypeParameters":case"TSHasOptionalTypeAnnotation":case"ChainElement":throw new Error("unprintable type: "+JSON.stringify(i.type));case"CommentBlock":case"Block":return C(["/*",j(i.value,e),"*/"]);case"CommentLine":case"Line":return C(["//",j(i.value,e)]);case"TypeAnnotation":return i.typeAnnotation?(i.typeAnnotation.type!=="FunctionTypeAnnotation"&&r.push(": "),r.push(s.call(t,"typeAnnotation")),C(r)):j("");case"ExistentialTypeParam":case"ExistsTypeAnnotation":return j("*",e);case"EmptyTypeAnnotation":return j("empty",e);case"AnyTypeAnnotation":return j("any",e);case"MixedTypeAnnotation":return j("mixed",e);case"ArrayTypeAnnotation":return C([s.call(t,"elementType"),"[]"]);case"TupleTypeAnnotation":{let a=s.map(t,"types"),o=j(", ").join(a).getLineLength(1)<=e.wrapColumn;return o?e.arrayBracketSpacing?r.push("[ "):r.push("["):r.push(`[
`),s.each(function(u){let c=u.getName();if(!u.getValue())r.push(",");else{let p=a[c];o?c>0&&r.push(" "):p=p.indent(e.tabWidth),r.push(p),(c<i.types.length-1||!o&&_a(e,"arrays"))&&r.push(","),o||r.push(`
`)}},"types"),o&&e.arrayBracketSpacing?r.push(" ]"):r.push("]"),C(r)}case"BooleanTypeAnnotation":return j("boolean",e);case"BooleanLiteralTypeAnnotation":return j(""+i.value,e);case"InterfaceTypeAnnotation":return r.push("interface"),i.extends&&i.extends.length>0&&r.push(" extends ",j(", ").join(s.map(t,"extends"))),r.push(" ",s.call(t,"body")),C(r);case"DeclareFunction":return Aa(s,["function ",s.call(t,"id"),";"]);case"DeclareModule":return Aa(s,["module ",s.call(t,"id")," ",s.call(t,"body")]);case"DeclareModuleExports":return Aa(s,["module.exports",s.call(t,"typeAnnotation")]);case"DeclareVariable":return Aa(s,["var ",s.call(t,"id"),";"]);case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return C(["declare ",iE(s,e,t)]);case"EnumDeclaration":return C(["enum ",s.call(t,"id"),s.call(t,"body")]);case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":return(i.type==="EnumSymbolBody"||i.explicitType)&&r.push(" of ",i.type.slice(4,-4).toLowerCase()),r.push(` {
`,j(`
`).join(s.map(t,"members")).indent(e.tabWidth),`
}`),C(r);case"EnumDefaultedMember":return C([s.call(t,"id"),","]);case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return C([s.call(t,"id")," = ",s.call(t,"init"),","]);case"InferredPredicate":return j("%checks",e);case"DeclaredPredicate":return C(["%checks(",s.call(t,"value"),")"]);case"FunctionTypeAnnotation":{let a=s.getParentNode(0),n=!(Ae.ObjectTypeCallProperty.check(a)||Ae.ObjectTypeInternalSlot.check(a)&&a.method||Ae.DeclareFunction.check(s.getParentNode(2)));n&&!Ae.FunctionTypeParam.check(a)&&!Ae.TypeAlias.check(a)&&r.push(": ");let u=!!i.typeParameters,c=u||i.params.length!==1||i.params[0].name;return r.push(u?s.call(t,"typeParameters"):"",c?"(":"",Gt(s,e,t),c?")":""),i.returnType&&r.push(n?" => ":": ",s.call(t,"returnType")),C(r)}case"FunctionTypeParam":{let a=s.call(t,"name");return r.push(a),i.optional&&r.push("?"),a.infos[0].line&&r.push(": "),r.push(s.call(t,"typeAnnotation")),C(r)}case"GenericTypeAnnotation":return C([s.call(t,"id"),s.call(t,"typeParameters")]);case"DeclareInterface":r.push("declare ");case"InterfaceDeclaration":case"TSInterfaceDeclaration":return i.declare&&r.push("declare "),r.push("interface ",s.call(t,"id"),s.call(t,"typeParameters")," "),i.extends&&i.extends.length>0&&r.push("extends ",j(", ").join(s.map(t,"extends"))," "),i.body&&r.push(s.call(t,"body")),C(r);case"ClassImplements":case"InterfaceExtends":return C([s.call(t,"id"),s.call(t,"typeParameters")]);case"IntersectionTypeAnnotation":return j(" & ").join(s.map(t,"types"));case"NullableTypeAnnotation":return C(["?",s.call(t,"typeAnnotation")]);case"NullLiteralTypeAnnotation":return j("null",e);case"ThisTypeAnnotation":return j("this",e);case"NumberTypeAnnotation":return j("number",e);case"ObjectTypeCallProperty":return s.call(t,"value");case"ObjectTypeIndexer":return i.static&&r.push("static "),r.push(ja(s,t),"["),i.id&&r.push(s.call(t,"id"),": "),r.push(s.call(t,"key"),"]: ",s.call(t,"value")),C(r);case"ObjectTypeProperty":return C([ja(s,t),s.call(t,"key"),i.optional?"?":"",": ",s.call(t,"value")]);case"ObjectTypeInternalSlot":return C([i.static?"static ":"","[[",s.call(t,"id"),"]]",i.optional?"?":"",i.value.type!=="FunctionTypeAnnotation"?": ":"",s.call(t,"value")]);case"QualifiedTypeIdentifier":return C([s.call(t,"qualification"),".",s.call(t,"id")]);case"StringLiteralTypeAnnotation":return j(Pa(i.value,e),e);case"NumberLiteralTypeAnnotation":case"NumericLiteralTypeAnnotation":return j(JSON.stringify(i.value),e);case"BigIntLiteralTypeAnnotation":return j(i.raw,e);case"StringTypeAnnotation":return j("string",e);case"DeclareTypeAlias":r.push("declare ");case"TypeAlias":return C(["type ",s.call(t,"id"),s.call(t,"typeParameters")," = ",s.call(t,"right"),";"]);case"DeclareOpaqueType":r.push("declare ");case"OpaqueType":return r.push("opaque type ",s.call(t,"id"),s.call(t,"typeParameters")),i.supertype&&r.push(": ",s.call(t,"supertype")),i.impltype&&r.push(" = ",s.call(t,"impltype")),r.push(";"),C(r);case"TypeCastExpression":return C(["(",s.call(t,"expression"),s.call(t,"typeAnnotation"),")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":return C(["<",j(", ").join(s.map(t,"params")),">"]);case"Variance":return i.kind==="plus"?j("+"):i.kind==="minus"?j("-"):j("");case"TypeParameter":return i.variance&&r.push(ja(s,t)),r.push(s.call(t,"name")),i.bound&&r.push(s.call(t,"bound")),i.default&&r.push("=",s.call(t,"default")),C(r);case"TypeofTypeAnnotation":return C([j("typeof ",e),s.call(t,"argument")]);case"IndexedAccessType":case"OptionalIndexedAccessType":return C([s.call(t,"objectType"),i.optional?"?.":"","[",s.call(t,"indexType"),"]"]);case"UnionTypeAnnotation":return j(" | ").join(s.map(t,"types"));case"VoidTypeAnnotation":return j("void",e);case"NullTypeAnnotation":return j("null",e);case"SymbolTypeAnnotation":return j("symbol",e);case"BigIntTypeAnnotation":return j("bigint",e);case"TSType":throw new Error("unprintable type: "+JSON.stringify(i.type));case"TSNumberKeyword":return j("number",e);case"TSBigIntKeyword":return j("bigint",e);case"TSObjectKeyword":return j("object",e);case"TSBooleanKeyword":return j("boolean",e);case"TSStringKeyword":return j("string",e);case"TSSymbolKeyword":return j("symbol",e);case"TSAnyKeyword":return j("any",e);case"TSVoidKeyword":return j("void",e);case"TSIntrinsicKeyword":return j("intrinsic",e);case"TSThisType":return j("this",e);case"TSNullKeyword":return j("null",e);case"TSUndefinedKeyword":return j("undefined",e);case"TSUnknownKeyword":return j("unknown",e);case"TSNeverKeyword":return j("never",e);case"TSArrayType":return C([s.call(t,"elementType"),"[]"]);case"TSLiteralType":return s.call(t,"literal");case"TSUnionType":return j(" | ").join(s.map(t,"types"));case"TSIntersectionType":return j(" & ").join(s.map(t,"types"));case"TSConditionalType":return r.push(s.call(t,"checkType")," extends ",s.call(t,"extendsType")," ? ",s.call(t,"trueType")," : ",s.call(t,"falseType")),C(r);case"TSInferType":return r.push("infer ",s.call(t,"typeParameter")),C(r);case"TSParenthesizedType":return C(["(",s.call(t,"typeAnnotation"),")"]);case"TSFunctionType":return C([s.call(t,"typeParameters"),"(",Gt(s,e,t),") => ",s.call(t,"typeAnnotation","typeAnnotation")]);case"TSConstructorType":return C(["new ",s.call(t,"typeParameters"),"(",Gt(s,e,t),") => ",s.call(t,"typeAnnotation","typeAnnotation")]);case"TSMappedType":return r.push(i.readonly?"readonly ":"","[",s.call(t,"typeParameter"),"]",i.optional?"?":""),i.typeAnnotation&&r.push(": ",s.call(t,"typeAnnotation"),";"),C([`{
`,C(r).indent(e.tabWidth),`
}`]);case"TSTupleType":return C(["[",j(", ").join(s.map(t,"elementTypes")),"]"]);case"TSNamedTupleMember":return r.push(s.call(t,"label")),i.optional&&r.push("?"),r.push(": ",s.call(t,"elementType")),C(r);case"TSRestType":return C(["...",s.call(t,"typeAnnotation")]);case"TSOptionalType":return C([s.call(t,"typeAnnotation"),"?"]);case"TSIndexedAccessType":return C([s.call(t,"objectType"),"[",s.call(t,"indexType"),"]"]);case"TSTypeOperator":return C([s.call(t,"operator")," ",s.call(t,"typeAnnotation")]);case"TSTypeLiteral":{let a=j(`
`).join(s.map(t,"members").map(n=>La(n)!==";"?n.concat(";"):n));return a.isEmpty()?j("{}",e):(r.push(`{
`,a.indent(e.tabWidth),`
}`),C(r))}case"TSEnumMember":return r.push(s.call(t,"id")),i.initializer&&r.push(" = ",s.call(t,"initializer")),C(r);case"TSTypeQuery":return C(["typeof ",s.call(t,"exprName")]);case"TSParameterProperty":return i.accessibility&&r.push(i.accessibility," "),i.export&&r.push("export "),i.static&&r.push("static "),i.readonly&&r.push("readonly "),r.push(s.call(t,"parameter")),C(r);case"TSTypeReference":return C([s.call(t,"typeName"),s.call(t,"typeParameters")]);case"TSQualifiedName":return C([s.call(t,"left"),".",s.call(t,"right")]);case"TSAsExpression":case"TSSatisfiesExpression":{let a=s.call(t,"expression");return r.push(a,i.type==="TSSatisfiesExpression"?" satisfies ":" as ",s.call(t,"typeAnnotation")),C(r)}case"TSTypeCastExpression":return C([s.call(t,"expression"),s.call(t,"typeAnnotation")]);case"TSNonNullExpression":return C([s.call(t,"expression"),"!"]);case"TSTypeAnnotation":return C([": ",s.call(t,"typeAnnotation")]);case"TSIndexSignature":return C([i.readonly?"readonly ":"","[",s.map(t,"parameters"),"]",s.call(t,"typeAnnotation")]);case"TSPropertySignature":return r.push(ja(s,t),i.readonly?"readonly ":""),i.computed?r.push("[",s.call(t,"key"),"]"):r.push(s.call(t,"key")),r.push(i.optional?"?":"",s.call(t,"typeAnnotation")),C(r);case"TSMethodSignature":return i.computed?r.push("[",s.call(t,"key"),"]"):r.push(s.call(t,"key")),i.optional&&r.push("?"),r.push(s.call(t,"typeParameters"),"(",Gt(s,e,t),")",s.call(t,"typeAnnotation")),C(r);case"TSTypePredicate":return i.asserts&&r.push("asserts "),r.push(s.call(t,"parameterName")),i.typeAnnotation&&r.push(" is ",s.call(t,"typeAnnotation","typeAnnotation")),C(r);case"TSCallSignatureDeclaration":return C([s.call(t,"typeParameters"),"(",Gt(s,e,t),")",s.call(t,"typeAnnotation")]);case"TSConstructSignatureDeclaration":return i.typeParameters?r.push("new",s.call(t,"typeParameters")):r.push("new "),r.push("(",Gt(s,e,t),")",s.call(t,"typeAnnotation")),C(r);case"TSTypeAliasDeclaration":return C([i.declare?"declare ":"","type ",s.call(t,"id"),s.call(t,"typeParameters")," = ",s.call(t,"typeAnnotation"),";"]);case"TSTypeParameter":{r.push(s.call(t,"name"));let a=s.getParentNode(0),n=Ae.TSMappedType.check(a);return i.constraint&&r.push(n?" in ":" extends ",s.call(t,"constraint")),i.default&&r.push(" = ",s.call(t,"default")),C(r)}case"TSTypeAssertion":return r.push("<",s.call(t,"typeAnnotation"),"> ",s.call(t,"expression")),C(r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return C(["<",j(", ").join(s.map(t,"params")),">"]);case"TSEnumDeclaration":{r.push(i.declare?"declare ":"",i.const?"const ":"","enum ",s.call(t,"id"));let a=j(`,
`).join(s.map(t,"members"));return a.isEmpty()?r.push(" {}"):r.push(` {
`,a.indent(e.tabWidth),`
}`),C(r)}case"TSExpressionWithTypeArguments":return C([s.call(t,"expression"),s.call(t,"typeParameters")]);case"TSInterfaceBody":{let a=j(`
`).join(s.map(t,"body").map(n=>La(n)!==";"?n.concat(";"):n));return a.isEmpty()?j("{}",e):C([`{
`,a.indent(e.tabWidth),`
}`])}case"TSImportType":return r.push("import(",s.call(t,"argument"),")"),i.qualifier&&r.push(".",s.call(t,"qualifier")),i.typeParameters&&r.push(s.call(t,"typeParameters")),C(r);case"TSImportEqualsDeclaration":return i.isExport&&r.push("export "),r.push("import ",s.call(t,"id")," = ",s.call(t,"moduleReference")),zo(C(r));case"TSExternalModuleReference":return C(["require(",s.call(t,"expression"),")"]);case"TSModuleDeclaration":return s.getParentNode().type==="TSModuleDeclaration"?r.push("."):(i.declare&&r.push("declare "),i.global||(i.id.type==="StringLiteral"||i.id.type==="Literal"&&typeof i.id.value=="string"||i.loc&&i.loc.lines&&i.id.loc&&i.loc.lines.sliceString(i.loc.start,i.id.loc.start).indexOf("module")>=0?r.push("module "):r.push("namespace "))),r.push(s.call(t,"id")),i.body&&(r.push(" "),r.push(s.call(t,"body"))),C(r);case"TSModuleBlock":{let a=s.call(n=>rr(n,e,t),"body");return a.isEmpty()?r.push("{}"):r.push(`{
`,a.indent(e.tabWidth),`
}`),C(r)}case"TSInstantiationExpression":return r.push(s.call(t,"expression"),s.call(t,"typeParameters")),C(r);case"V8IntrinsicIdentifier":return C(["%",s.call(t,"name")]);case"TopicReference":return j("#");case"ClassHeritage":case"ComprehensionBlock":case"ComprehensionExpression":case"Glob":case"GeneratorExpression":case"LetStatement":case"LetExpression":case"GraphExpression":case"GraphIndexExpression":case"XMLDefaultDeclaration":case"XMLAnyName":case"XMLQualifiedIdentifier":case"XMLFunctionQualifiedIdentifier":case"XMLAttributeSelector":case"XMLFilterExpression":case"XML":case"XMLElement":case"XMLList":case"XMLEscape":case"XMLText":case"XMLStartTag":case"XMLEndTag":case"XMLPointTag":case"XMLName":case"XMLAttribute":case"XMLCdata":case"XMLComment":case"XMLProcessingInstruction":default:debugger;throw new Error("unknown type: "+JSON.stringify(i.type))}}function f4(s,e){let t=[],i=s.getValue();return i.decorators&&i.decorators.length>0&&!xE(s)?s.each(function(r){t.push(e(r),`
`)},"decorators"):Go(i)&&i.declaration&&i.declaration.decorators&&s.each(function(r){t.push(e(r),`
`)},"declaration","decorators"),C(t)}function rr(s,e,t){let i=[];s.each(function(o){let u=o.getValue();u&&(u.type==="EmptyStatement"&&!(u.comments&&u.comments.length>0)||(Ae.Comment.check(u)||Ae.Statement.check(u)||Vh.assert(u),i.push({node:u,printed:t(o)})))});let r=null,a=i.length,n=[];return i.forEach(function(o,u){let c=o.printed,l=o.node,p=c.length>1,d=u>0,m=u<a-1,f,g,y=l&&l.loc&&l.loc.lines,w=y&&e.reuseWhitespace&&yE(l,y);if(d)if(w){let T=y.skipSpaces(w.start,!0),S=T?T.line:1,E=w.start.line-S;f=Array(E+1).join(`
`)}else f=p?`
`:`
`;else f="";if(m)if(w){let T=y.skipSpaces(w.end),E=(T?T.line:y.length)-w.end.line;g=Array(E+1).join(`
`)}else g=p?`
`:`
`;else g="";n.push(m4(r,f),c),m?r=g:g&&n.push(g)}),C(n)}function m4(s,e){if(!s&&!e)return j("");if(!s)return j(e);if(!e)return j(s);let t=j(s),i=j(e);return i.length>t.length?i:t}function _E(s){let e=[];s.declare&&e.push("declare ");let t=s.accessibility||s.access;return typeof t=="string"&&e.push(t," "),s.static&&e.push("static "),s.override&&e.push("override "),s.abstract&&e.push("abstract "),s.readonly&&e.push("readonly "),e}function Ph(s,e,t){let i=s.getNode(),r=i.kind,a=[],n=i.value;Ae.FunctionExpression.check(n)||(n=i),a.push(..._E(i)),n.async&&a.push("async "),n.generator&&a.push("*"),(r==="get"||r==="set")&&a.push(r," ");let o=s.call(t,"key");return i.computed&&(o=C(["[",o,"]"])),a.push(o),i.optional&&a.push("?"),i===n?(a.push(s.call(t,"typeParameters"),"(",Gt(s,e,t),")",s.call(t,"returnType")),i.body?a.push(" ",s.call(t,"body")):a.push(";")):(a.push(s.call(t,"value","typeParameters"),"(",s.call(u=>Gt(u,e,t),"value"),")",s.call(t,"value","returnType")),n.body?a.push(" ",s.call(t,"value","body")):a.push(";")),C(a)}function sE(s,e,t){let i=s.map(t,"arguments"),r=_a(e,"parameters"),a=j(", ").join(i);return a.getLineLength(1)>e.wrapColumn?(a=j(`,
`).join(i),C([`(
`,a.indent(e.tabWidth),r?`,
)`:`
)`])):C(["(",a,")"])}function Gt(s,e,t){let i=s.getValue(),r,a=[];i.params?(r=i.params,a=s.map(t,"params")):i.parameters&&(r=i.parameters,a=s.map(t,"parameters")),i.defaults&&s.each(function(o){let u=o.getName(),c=a[u];c&&o.getValue()&&(a[u]=C([c," = ",t(o)]))},"defaults"),i.rest&&a.push(C(["...",s.call(t,"rest")]));let n=j(", ").join(a);return n.length>1||n.getLineLength(1)>e.wrapColumn?(n=j(`,
`).join(a),_a(e,"parameters")&&!i.rest&&r[r.length-1].type!=="RestElement"?n=C([n,`,
`]):n=C([n,`
`]),C([`
`,n.indent(e.tabWidth)])):n}function NE(s,e,t){let i=s.getValue();if(i.assertions&&i.assertions.length>0){let r=[" assert {"],a=s.map(t,"assertions"),n=j(", ").join(a);return n.length>1||n.getLineLength(1)>e.wrapColumn?r.push(`
`,j(`,
`).join(a).indent(e.tabWidth),`
}`):r.push(" ",n," }"),C(r)}return j("")}function iE(s,e,t){let i=s.getValue(),r=["export "];i.exportKind&&i.exportKind==="type"&&(i.declaration||r.push("type "));let a=e.objectCurlySpacing;if(Ae.Declaration.assert(i),(i.default||i.type==="ExportDefaultDeclaration")&&r.push("default "),i.declaration)r.push(s.call(t,"declaration"));else if(i.specifiers){if(i.specifiers.length===1&&i.specifiers[0].type==="ExportBatchSpecifier")r.push("*");else if(i.specifiers.length===0)r.push("{}");else if(i.specifiers[0].type==="ExportDefaultSpecifier"){let o=[],u=[];if(s.each(function(c){c.getValue().type==="ExportDefaultSpecifier"?o.push(t(c)):u.push(t(c))},"specifiers"),o.forEach((c,l)=>{l>0&&r.push(", "),r.push(c)}),u.length>0){let c=j(", ").join(u);c.getLineLength(1)>e.wrapColumn&&(c=C([j(`,
`).join(u).indent(e.tabWidth),","])),o.length>0&&r.push(", "),c.length>1?r.push(`{
`,c,`
}`):e.objectCurlySpacing?r.push("{ ",c," }"):r.push("{",c,"}")}}else r.push(a?"{ ":"{",j(", ").join(s.map(t,"specifiers")),a?" }":"}");i.source&&r.push(" from ",s.call(t,"source"),NE(s,e,t))}let n=C(r);return La(n)!==";"&&!(i.declaration&&(i.declaration.type==="FunctionDeclaration"||i.declaration.type==="ClassDeclaration"||i.declaration.type==="TSModuleDeclaration"||i.declaration.type==="TSInterfaceDeclaration"||i.declaration.type==="TSEnumDeclaration"))&&(n=C([n,";"])),n}function Aa(s,e){return xE(s)||e.unshift("declare "),C(e)}function ja(s,e){return s.call(function(t){let i=t.getValue();return i?i==="plus"?j("+"):i==="minus"?j("-"):e(t):j("")},"variance")}function si(s,e){return s.length>1?C([" ",s]):C([`
`,zo(s).indent(e.tabWidth)])}function La(s){let e=s.lastPos();do{let t=s.charAt(e);if(/\S/.test(t))return t}while(s.prevPos(e))}function rE(s){return La(s)==="}"}function No(s){return s.replace(/['"]/g,e=>e==='"'?"'":'"')}function ar(s){let e=ps(s,"value"),t=ps(s,"extra");if(t&&typeof t.raw=="string"&&e==t.rawValue)return t.raw;if(s.type==="Literal"){let i=s.raw;if(typeof i=="string"&&e==i)return i}}function Bo(s){return JSON.stringify(s).replace(/[\u2028\u2029]/g,function(e){return"\\u"+e.charCodeAt(0).toString(16)})}function Pa(s,e){switch(Vh.assert(s),e.quote){case"auto":{let t=Bo(s),i=No(Bo(No(s)));return t.length>i.length?i:t}case"single":return No(Bo(No(s)));case"double":default:return Bo(s)}}function zo(s){let e=La(s);return!e||`
};`.indexOf(e)<0?C([s,";"]):s}function g4(s,e){return new h4(e).print(s)}var Oo;function y4(){if(Oo)return Oo;let s=x4();return Oo={parse(e,t){return nE.parse(e,{...s,...t})}},Oo}function x4(){return{sourceType:"module",strictMode:!1,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,startLine:1,tokens:!0,plugins:["asyncGenerators","bigInt","classPrivateMethods","classPrivateProperties","classProperties","classStaticBlock","decimal","decorators-legacy","doExpressions","dynamicImport","exportDefaultFrom","exportExtensions","exportNamespaceFrom","functionBind","functionSent","importAssertions","importMeta","nullishCoalescingOperator","numericSeparator","objectRestSpread","optionalCatchBinding","optionalChaining",["pipelineOperator",{proposal:"minimal"}],["recordAndTuple",{syntaxType:"hash"}],"throwExpressions","topLevelAwait","v8intrinsic","jsx","typescript"]}}var b4=Object.defineProperty,w4=(s,e,t)=>e in s?b4(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,aE=(s,e,t)=>(w4(s,typeof e!="symbol"?e+"":e,t),t),st=class extends Error{constructor(e,t){if(super(""),aE(this,"rawMessage"),aE(this,"options"),this.name="MagicastError",this.rawMessage=e,this.options=t,t?.ast&&t?.code&&t.ast.loc){let{line:i,column:r}=t.ast.loc.start,a=t.code.split(`
`),n=Math.max(0,i-3),o=Math.min(a.length,i+3),u=a.slice(n,o).map((c,l)=>(c=`${(n+l+1).toString().padStart(3," ")} | ${c}`,n+l===i-1&&(c+=`
${" ".repeat(6+r)}^`),c));e+=`
${u.join(`
`)}
`}this.message=e}},D4=new Set(["Literal","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","RegExpLiteral","BigIntLiteral"]),BE=new Set(["string","number","boolean","bigint","symbol","undefined"]),Ie=Ma;function k4(s){return/^[$A-Z_a-z][\w$]*$/.test(s)}var Wh="__magicast_proxy";function bt(s,e=new Set){if(s===void 0)return Ie.identifier("undefined");if(s===null)return Ie.literal(null);if(BE.has(typeof s))return Ie.literal(s);if(e.has(s))throw new st("Can not serialize circular reference");if(e.add(s),s[Wh])return s.$ast;if(s instanceof RegExp){let t=Ie.regExpLiteral(s.source,s.flags);return delete t.extra.raw,t}return s instanceof Set?Ie.newExpression(Ie.identifier("Set"),[Ie.arrayExpression([...s].map(t=>bt(t,e)))]):s instanceof Date?Ie.newExpression(Ie.identifier("Date"),[Ie.literal(s.toISOString())]):s instanceof Map?Ie.newExpression(Ie.identifier("Map"),[Ie.arrayExpression([...s].map(([t,i])=>Ie.arrayExpression([bt(t,e),bt(i,e)])))]):Array.isArray(s)?Ie.arrayExpression(s.map(t=>bt(t,e))):typeof s=="object"?Ie.objectExpression(Object.entries(s).map(([t,i])=>Ie.property("init",/^[$A-Z_a-z][\w$]*$/g.test(t)?Ie.identifier(t):Ie.literal(t),bt(i,e)))):Ie.literal(s)}function v4(s,e={}){let t=e;return t[Wh]=!0,t.$ast=s,t.$type||(t.$type="object"),t}var E4={enumerable:!0,configurable:!0};function wt(s,e,t){let i=v4(s,e);return new Proxy({},{ownKeys(){return Object.keys(i).filter(r=>r!==Wh&&!r.startsWith("$"))},getOwnPropertyDescriptor(){return E4},has(r,a){return a in i},...t,get(r,a,n){if(a in i)return i[a];if(t.get)return t.get(r,a,n)},set(r,a,n,o){return a in i?(i[a]=n,!0):t.set?t.set(r,a,n,o):!1}})}var dt=Ma,Fh=new WeakMap;function C4(s,e,t){if(Fh.has(e))return Fh.get(e);let i=wt(e,{get $declaration(){return s},get imported(){return e.type==="ImportDefaultSpecifier"?"default":e.type==="ImportNamespaceSpecifier"?"*":e.imported.type==="Identifier"?e.imported.name:e.imported.value},set imported(r){if(e.type!=="ImportSpecifier")throw new st("Changing import name is not yet implemented");e.imported.type==="Identifier"?e.imported.name=r:e.imported.value=r},get local(){return e.local.name},set local(r){e.local.name=r},get from(){return s.source.value},set from(r){if(r===s.source.value)return;s.specifiers=s.specifiers.filter(n=>n!==e),s.specifiers.length===0&&(t.body=t.body.filter(n=>n!==s));let a=t.body.find(n=>n.type==="ImportDeclaration"&&n.source.value===r);a?a.specifiers.push(e):t.body.unshift(dt.importDeclaration([e],dt.stringLiteral(r)))},toJSON(){return{imported:this.imported,local:this.local,from:this.from}}},{ownKeys(){return["imported","local","from","toJSON"]}});return Fh.set(e,i),i}function T4(s,e){let t=()=>{let n=[];for(let o of s.body)if(o.type==="ImportDeclaration")for(let u of o.specifiers)n.push(C4(o,u,s));return n},i=(n,o,u)=>{let c=t(),l=c.find(f=>f.local===n),p=o.local||n;if(l)return l.imported=o.imported,l.local=p,l.from=o.from,!0;let d=o.imported==="default"?dt.importDefaultSpecifier(dt.identifier(p)):o.imported==="*"?dt.importNamespaceSpecifier(dt.identifier(p)):dt.importSpecifier(dt.identifier(o.imported),dt.identifier(p)),m=c.find(f=>f.from===o.from)?.$declaration;if(m)m.specifiers.push(d);else if(u==="prepend"||c.length===0)s.body.unshift(dt.importDeclaration([d],dt.stringLiteral(o.from)));else{let f=c.at(-1).$declaration,g=s.body.indexOf(f);s.body.splice(g+1,0,dt.importDeclaration([d],dt.stringLiteral(o.from)))}return!0},r=n=>{let o=t().find(l=>l.local===n);if(!o)return!1;let u=o.$declaration,c=o.$ast;return u.specifiers=u.specifiers.filter(l=>l!==c),u.specifiers.length===0&&(s.body=s.body.filter(l=>l!==u)),!0};return wt(s,{$type:"imports",$add(n){i(n.local||n.imported,n,"prepend")},$prepend(n){i(n.local||n.imported,n,"prepend")},$append(n){i(n.local||n.imported,n,"append")},get $items(){return t()},toJSON(){return t().reduce((n,o)=>(n[o.local]=o,n),{})}},{get(n,o){return t().find(u=>u.local===o)},set(n,o,u){return i(o,u,"prepend")},deleteProperty(n,o){return r(o)},ownKeys(){return t().map(n=>n.local)},has(n,o){return t().some(u=>u.local===o)}})}function Jo(s,e,t){let i=a=>e[a],r=(a,n)=>{e[a]=n};return wt(s,{$type:"array",push(a){e.push(bt(a))},pop(){return nt(e.pop(),t)},unshift(a){e.unshift(bt(a))},shift(){return nt(e.shift(),t)},splice(a,n,...o){return e.splice(a,n,...o.map(c=>bt(c))).map(c=>nt(c,t))},find(a){return e.map(n=>nt(n,t)).find(a)},findIndex(a){return e.map(n=>nt(n,t)).findIndex(a)},includes(a){return e.map(n=>nt(n,t)).includes(a)},toJSON(){return e.map(a=>nt(a,t))}},{get(a,n){if(n==="length")return e.length;if(n===Symbol.iterator)return function*(){for(let c of e)yield nt(c,t)};if(typeof n=="symbol")return;let o=+n;if(Number.isNaN(o))return;let u=i(o);if(u)return nt(u,t)},set(a,n,o){if(typeof n=="symbol")return!1;let u=+n;return Number.isNaN(u)?!1:(r(u,bt(o)),!0)},deleteProperty(a,n){if(typeof n=="symbol")return!1;let o=+n;return Number.isNaN(o)?!1:(e[o]=bt(void 0),!0)},ownKeys(){return["length",...e.map((a,n)=>n.toString())]}})}function S4(s,e){if("elements"in s)return Jo(s,s.elements,e)}function A4(s,e){if(s.type!=="CallExpression")throw new st("Not a function call");function t(r){if(r.type==="Identifier")return r.name;if(r.type==="MemberExpression")return`${t(r.object)}.${t(r.property)}`;throw new st("Not implemented")}let i=Jo(s,s.arguments,e);return wt(s,{$type:"function-call",$callee:t(s.callee),$args:i},{})}function j4(s,e){if(s.type!=="ArrowFunctionExpression")throw new st("Not an arrow function expression");let t=Jo(s,s.params,e);return wt(s,{$type:"arrow-function-expression",$params:t,$body:nt(s.body,e)},{})}var P4=Ma;function F4(s,e){if(!("properties"in s))return;let t=a=>{for(let n of s.properties){if("key"in n&&"name"in n.key&&n.key.name===a)return n.value;if(n.type==="ObjectProperty"&&(n.key.type==="StringLiteral"||n.key.type==="NumericLiteral"||n.key.type==="BooleanLiteral")&&n.key.value.toString()===a)return n.value.value??n.value}},i=(a,n=!1)=>{if("key"in a&&"name"in a.key)return a.key.name;if(a.type==="ObjectProperty"&&(a.key.type==="StringLiteral"||a.key.type==="NumericLiteral"||a.key.type==="BooleanLiteral"))return a.key.value.toString();if(n)throw new st(`Casting "${a.type}" is not supported`,{ast:a,code:e?.$code})},r=(a,n)=>{let o=s.properties.find(u=>i(u)===a);o?o.value=n:k4(a)?s.properties.push({type:"Property",key:{type:"Identifier",name:a},value:n}):s.properties.push({type:"ObjectProperty",key:P4.stringLiteral(a),value:n})};return wt(s,{$type:"object",toJSON(){return s.properties.reduce((a,n)=>("key"in n&&"name"in n.key&&(a[n.key.name]=nt(n.value,e)),a),{})}},{get(a,n){let o=t(n);if(o)return nt(o,e)},set(a,n,o){return typeof n!="string"&&(n=String(n)),r(n,bt(o)),!0},deleteProperty(a,n){typeof n!="string"&&(n=String(n));let o=s.properties.findIndex(u=>"key"in u&&"name"in u.key&&u.key.name===n);return o!==-1&&s.properties.splice(o,1),!0},ownKeys(){return s.properties.map(a=>i(a,!0)).filter(Boolean)}})}function I4(s,e){if(s.type!=="NewExpression")throw new st("Not a new expression");function t(r){if(r.type==="Identifier")return r.name;if(r.type==="MemberExpression")return`${t(r.object)}.${t(r.property)}`;throw new st("Not implemented")}let i=Jo(s,s.arguments,e);return wt(s,{$type:"new-expression",$callee:t(s.callee),$args:i},{})}function _4(s){if(s.type!=="Identifier")throw new st("Not an identifier");return wt(s,{$type:"identifier",$name:s.name},{})}function N4(s){if(s.type!=="LogicalExpression")throw new st("Not a logical expression");return wt(s,{$type:"logicalExpression"},{})}function B4(s){if(s.type!=="MemberExpression")throw new st("Not a member expression");return wt(s,{$type:"memberExpression"},{})}var Ih=new WeakMap;function nt(s,e){if(BE.has(typeof s))return s;if(D4.has(s.type))return s.value;if(Ih.has(s))return Ih.get(s);let t;switch(s.type){case"ObjectExpression":{t=F4(s,e);break}case"ArrayExpression":{t=S4(s,e);break}case"CallExpression":{t=A4(s,e);break}case"ArrowFunctionExpression":{t=j4(s,e);break}case"NewExpression":{t=I4(s,e);break}case"Identifier":{t=_4(s);break}case"LogicalExpression":{t=N4(s);break}case"MemberExpression":{t=B4(s);break}case"TSAsExpression":case"TSSatisfiesExpression":{t=nt(s.expression,e);break}default:throw new st(`Casting "${s.type}" is not supported`,{ast:s,code:e?.$code})}return Ih.set(s,t),t}var Fa=Ma;function O4(s,e){let t=r=>{let a=r==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let n of s.body)if(n.type===a){if(r==="default")return n.declaration;if(n.declaration&&"declarations"in n.declaration){let o=n.declaration.declarations[0];if("name"in o.id&&o.id.name===r)return o.init}}},i=(r,a)=>{let n=r==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration",o=bt(a);for(let u of s.body)if(u.type===n){if(r==="default"){u.declaration=o;return}if(u.declaration&&"declarations"in u.declaration){let c=u.declaration.declarations[0];if("name"in c.id&&c.id.name===r){c.init=o;return}}}s.body.push(r==="default"?Fa.exportDefaultDeclaration(o):Fa.exportNamedDeclaration(Fa.variableDeclaration("const",[Fa.variableDeclarator(Fa.identifier(r),o)])))};return wt(s,{$type:"exports"},{get(r,a){let n=t(a);if(n)return nt(n,e)},set(r,a,n){return i(a,n),!0},ownKeys(){return s.body.flatMap(r=>r.type==="ExportDefaultDeclaration"?["default"]:r.type==="ExportNamedDeclaration"&&r.declaration&&"declarations"in r.declaration?r.declaration.declarations.map(a=>"name"in a.id?a.id.name:""):[]).filter(Boolean)},deleteProperty(r,a){let n=a==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let o=0;o<s.body.length;o++){let u=s.body[o];if(u.type===n){if(a==="default")return s.body.splice(o,1),!0;if(u.declaration&&"declarations"in u.declaration){let c=u.declaration.declarations[0];if("name"in c.id&&c.id.name===a)return s.body.splice(o,1),!0}}}return!1}})}function L4(s,e){let t=s.program;if(t.type!=="Program")throw new st(`Cannot proxify ${s.type} as module`);let i={$code:e,$type:"module"},r=wt(t,i,{ownKeys(){return["imports","exports","generate"]}});return i.exports=O4(t,r),i.imports=T4(t),i.generate=a=>Ra(r,a),r}function z4(s,e={}){let t={wrapColumn:e.wrapColumn===void 0,indent:e.tabWidth===void 0||e.useTabs===void 0,quote:e.quote===void 0,arrowParens:e.arrowParensAlways===void 0,trailingComma:e.trailingComma===void 0},i=2,r=0,a=0,n=0,o=0,u=/(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g,c={doubleQuote:0,singleQuote:0,singleParam:0,trailingComma:0},l=(s||"").split(`
`),p=!1;for(let d of l){let m=d.trim();if(m.length!==0){if(t.wrapColumn&&d.length>n&&(n=d.length),t.indent){let f=d.match(/^\s+/)?.[0]||"";f.length>0&&(f.length>0&&f.length<i&&(i=f.length),f[0]===" "?r++:f.length>0&&r--)}if(m.at(-1)===";"?a++:m.length>0&&a--,t.quote||t.arrowParens){let f=m.matchAll(u);for(let g of f)if(g.groups)for(let y in c)g.groups[y]&&c[y]++}t.trailingComma&&((d.startsWith("}")||d.startsWith("]"))&&(p?o++:o--),p=m.endsWith(","))}}return{wrapColumn:n,useTabs:r>0,tabWidth:i,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:a>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...e}}function Xo(s,e){let t=Zz(s,{parser:e?.parser||y4(),...e});return L4(t,s)}function Ra(s,e={}){let t=s.$ast||s,i=e.format===!1||!("$code"in s)?{}:z4(s.$code,e.format),{code:r,map:a}=g4(t,{...e,...i});return{code:r,map:a}}async function OE(s){let e=await import(s);return e.default||e}function LE(s,e,t){let i=Xo(s),r=i.exports.default.$ast,a=r?.name?i.exports[r.name]:i.exports.default;return ds(a,e,t),Ra(i).code}h();lt();function Yo(s){return new Function("$env",`const $ENV = $env;return ${s}`)(process.env)}function zE(s,e,t){let i=Xo(`export default ${s}`);ds(i.exports.default,e,t);let{code:r}=Ra(i);return r.replace("export default ","").replace(/;$/g,"")}h();lt();import{readFileSync as M4,writeFileSync as R4}from"node:fs";import{extname as q4}from"node:path";function U4(s,e,t){let i=M4(s,"utf8");switch(q4(s)){case".json":{let r=Yo(i);return ds(r,e,t),JSON.stringify(r,null,2)}case".json5":return zE(i,e,t);case".js":case".ts":case".mjs":case".mts":case".cjs":case".cts":return LE(i,e,t);default:return}}function ME(s,e,t){try{let i=U4(s,e,t);i&&R4(s,i)}catch(i){return console.error(i),i}}import{existsSync as RE,readFileSync as H4}from"node:fs";import{dirname as qE,extname as UE,join as $4}from"node:path";import{fileURLToPath as V4}from"node:url";var W4=qE(V4(import.meta.url));function G4(){try{if([".js",".mjs",".cjs"].find(s=>s===UE(process.argv[1])))return qE(process.argv[1])}catch{}return W4}function K4(){let s=process.cwd(),e=["asign.json","asign.json5","asign.config.js","asign.config.mjs","asign.config.cjs"],t=G4(),i=[s,`${s}/config`,t,`${t}/config`];for(let r of i)for(let a of e)if(RE($4(r,a)))return`${r}/${a}`}async function J4(s){switch(UE(s)){case".json":case".json5":return Yo(H4(s,"utf8"));case".js":case".mjs":case".cjs":return await OE(s);default:return}}async function HE(s){if(s&&!RE(s))throw new Error("找不到配置文件");let e=s||K4();if(!e)throw new Error("找不到配置文件");let t=await J4(e);return{path:e,config:t}}lt();h();go();h();var $E={shake:{enable:!0,num:15,delay:2},garden:{enable:!1,inviteCodes:[],开启果园助力:!1},aiRedPack:{enable:!0},backupWaitTime:20,tasks:{skipTasks:[],每月上传任务单日数量:5},catalog:"/",cloudPhoneRedpack:{enable:!1},是否打印今日云朵:!0,剩余多少天刷新token:10,微信抽奖:{次数:1,间隔:500},云朵大作战:{开启:!1,目标排名:500,开启兑换:!1,邀请用户:[],游戏时间:300},盲盒:{开启:!0},文件获取方式:1};dr();h();import{unlinkSync as pM,writeFileSync as hM}from"node:fs";h();Qu();h();function X4(s){return!s||typeof s.then!="function"?Promise.resolve(s):s}function Ne(s,...e){try{return X4(s(...e))}catch(t){return Promise.reject(t)}}function Y4(s){let e=typeof s;return s===null||e!=="object"&&e!=="function"}function Q4(s){let e=Object.getPrototypeOf(s);return!e||e.isPrototypeOf(Object)}function qa(s){if(Y4(s))return String(s);if(Q4(s)||Array.isArray(s))return JSON.stringify(s);if(typeof s.toJSON=="function")return qa(s.toJSON());throw new Error("[unstorage] Cannot stringify value!")}var Gh="base64:";function VE(s){return typeof s=="string"?s:Gh+eM(s)}function WE(s){return typeof s!="string"||!s.startsWith(Gh)?s:Z4(s.slice(Gh.length))}function Z4(s){return globalThis.Buffer?Buffer.from(s,"base64"):Uint8Array.from(globalThis.atob(s),e=>e.codePointAt(0))}function eM(s){return globalThis.Buffer?Buffer.from(s).toString("base64"):globalThis.btoa(String.fromCodePoint(...s))}var tM=["has","hasItem","get","getItem","getItemRaw","set","setItem","setItemRaw","del","remove","removeItem","getMeta","setMeta","removeMeta","getKeys","clear","mount","unmount"];function Kh(s,e){if(e=ur(e),!e)return s;let t={...s};for(let i of tM)t[i]=(r="",...a)=>s[i](e+r,...a);return t.getKeys=(i="",...r)=>s.getKeys(e+i,...r).then(a=>a.map(n=>n.slice(e.length))),t}function it(s){return s&&s.split("?")[0]?.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,"")||""}function GE(...s){return it(s.join(":"))}function ur(s){return s=it(s),s?s+":":""}function KE(s,e){if(e===void 0)return!0;let t=0,i=s.indexOf(":");for(;i>-1;)t++,i=s.indexOf(":",i+1);return t<=e}function JE(s,e){return e?s.startsWith(e)&&s[s.length-1]!=="$":s[s.length-1]!=="$"}var sM="memory",iM=()=>{let s=new Map;return{name:sM,getInstance:()=>s,hasItem(e){return s.has(e)},getItem(e){return s.get(e)??null},getItemRaw(e){return s.get(e)??null},setItem(e,t){s.set(e,t)},setItemRaw(e,t){s.set(e,t)},removeItem(e){s.delete(e)},getKeys(){return[...s.keys()]},clear(){s.clear()},dispose(){s.clear()}}};function QE(s={}){let e={mounts:{"":s.driver||iM()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},t=c=>{for(let l of e.mountpoints)if(c.startsWith(l))return{base:l,relativeKey:c.slice(l.length),driver:e.mounts[l]};return{base:"",relativeKey:c,driver:e.mounts[""]}},i=(c,l)=>e.mountpoints.filter(p=>p.startsWith(c)||l&&c.startsWith(p)).map(p=>({relativeBase:c.length>p.length?c.slice(p.length):void 0,mountpoint:p,driver:e.mounts[p]})),r=(c,l)=>{if(e.watching){l=it(l);for(let p of e.watchListeners)p(c,l)}},a=async()=>{if(!e.watching){e.watching=!0;for(let c in e.mounts)e.unwatch[c]=await XE(e.mounts[c],r,c)}},n=async()=>{if(e.watching){for(let c in e.unwatch)await e.unwatch[c]();e.unwatch={},e.watching=!1}},o=(c,l,p)=>{let d=new Map,m=f=>{let g=d.get(f.base);return g||(g={driver:f.driver,base:f.base,items:[]},d.set(f.base,g)),g};for(let f of c){let g=typeof f=="string",y=it(g?f:f.key),w=g?void 0:f.value,T=g||!f.options?l:{...l,...f.options},S=t(y);m(S).items.push({key:y,value:w,relativeKey:S.relativeKey,options:T})}return Promise.all([...d.values()].map(f=>p(f))).then(f=>f.flat())},u={hasItem(c,l={}){c=it(c);let{relativeKey:p,driver:d}=t(c);return Ne(d.hasItem,p,l)},getItem(c,l={}){c=it(c);let{relativeKey:p,driver:d}=t(c);return Ne(d.getItem,p,l).then(m=>Us(m))},getItems(c,l={}){return o(c,l,p=>p.driver.getItems?Ne(p.driver.getItems,p.items.map(d=>({key:d.relativeKey,options:d.options})),l).then(d=>d.map(m=>({key:GE(p.base,m.key),value:Us(m.value)}))):Promise.all(p.items.map(d=>Ne(p.driver.getItem,d.relativeKey,d.options).then(m=>({key:d.key,value:Us(m)})))))},getItemRaw(c,l={}){c=it(c);let{relativeKey:p,driver:d}=t(c);return d.getItemRaw?Ne(d.getItemRaw,p,l):Ne(d.getItem,p,l).then(m=>WE(m))},async setItem(c,l,p={}){if(l===void 0)return u.removeItem(c);c=it(c);let{relativeKey:d,driver:m}=t(c);m.setItem&&(await Ne(m.setItem,d,qa(l),p),m.watch||r("update",c))},async setItems(c,l){await o(c,l,async p=>{if(p.driver.setItems)return Ne(p.driver.setItems,p.items.map(d=>({key:d.relativeKey,value:qa(d.value),options:d.options})),l);p.driver.setItem&&await Promise.all(p.items.map(d=>Ne(p.driver.setItem,d.relativeKey,qa(d.value),d.options)))})},async setItemRaw(c,l,p={}){if(l===void 0)return u.removeItem(c,p);c=it(c);let{relativeKey:d,driver:m}=t(c);if(m.setItemRaw)await Ne(m.setItemRaw,d,l,p);else if(m.setItem)await Ne(m.setItem,d,VE(l),p);else return;m.watch||r("update",c)},async removeItem(c,l={}){typeof l=="boolean"&&(l={removeMeta:l}),c=it(c);let{relativeKey:p,driver:d}=t(c);d.removeItem&&(await Ne(d.removeItem,p,l),(l.removeMeta||l.removeMata)&&await Ne(d.removeItem,p+"$",l),d.watch||r("remove",c))},async getMeta(c,l={}){typeof l=="boolean"&&(l={nativeOnly:l}),c=it(c);let{relativeKey:p,driver:d}=t(c),m=Object.create(null);if(d.getMeta&&Object.assign(m,await Ne(d.getMeta,p,l)),!l.nativeOnly){let f=await Ne(d.getItem,p+"$",l).then(g=>Us(g));f&&typeof f=="object"&&(typeof f.atime=="string"&&(f.atime=new Date(f.atime)),typeof f.mtime=="string"&&(f.mtime=new Date(f.mtime)),Object.assign(m,f))}return m},setMeta(c,l,p={}){return this.setItem(c+"$",l,p)},removeMeta(c,l={}){return this.removeItem(c+"$",l)},async getKeys(c,l={}){c=ur(c);let p=i(c,!0),d=[],m=[],f=!0;for(let y of p){y.driver.flags?.maxDepth||(f=!1);let w=await Ne(y.driver.getKeys,y.relativeBase,l);for(let T of w){let S=y.mountpoint+it(T);d.some(E=>S.startsWith(E))||m.push(S)}d=[y.mountpoint,...d.filter(T=>!T.startsWith(y.mountpoint))]}let g=l.maxDepth!==void 0&&!f;return m.filter(y=>(!g||KE(y,l.maxDepth))&&JE(y,c))},async clear(c,l={}){c=ur(c),await Promise.all(i(c,!1).map(async p=>{if(p.driver.clear)return Ne(p.driver.clear,p.relativeBase,l);if(p.driver.removeItem){let d=await p.driver.getKeys(p.relativeBase||"",l);return Promise.all(d.map(m=>p.driver.removeItem(m,l)))}}))},async dispose(){await Promise.all(Object.values(e.mounts).map(c=>YE(c)))},async watch(c){return await a(),e.watchListeners.push(c),async()=>{e.watchListeners=e.watchListeners.filter(l=>l!==c),e.watchListeners.length===0&&await n()}},async unwatch(){e.watchListeners=[],await n()},mount(c,l){if(c=ur(c),c&&e.mounts[c])throw new Error(`already mounted at ${c}`);return c&&(e.mountpoints.push(c),e.mountpoints.sort((p,d)=>d.length-p.length)),e.mounts[c]=l,e.watching&&Promise.resolve(XE(l,r,c)).then(p=>{e.unwatch[c]=p}).catch(console.error),u},async unmount(c,l=!0){c=ur(c),!(!c||!e.mounts[c])&&(e.watching&&c in e.unwatch&&(e.unwatch[c]?.(),delete e.unwatch[c]),l&&await YE(e.mounts[c]),e.mountpoints=e.mountpoints.filter(p=>p!==c),delete e.mounts[c])},getMount(c=""){c=it(c)+":";let l=t(c);return{driver:l.driver,base:l.base}},getMounts(c="",l={}){return c=it(c),i(c,l.parents).map(d=>({driver:d.driver,base:d.mountpoint}))},keys:(c,l={})=>u.getKeys(c,l),get:(c,l={})=>u.getItem(c,l),set:(c,l,p={})=>u.setItem(c,l,p),has:(c,l={})=>u.hasItem(c,l),del:(c,l={})=>u.removeItem(c,l),remove:(c,l={})=>u.removeItem(c,l)};return u}function XE(s,e,t){return s.watch?s.watch((i,r)=>e(i,t+r)):()=>{}}async function YE(s){typeof s.dispose=="function"&&await Ne(s.dispose)}h();import{existsSync as aM,promises as nM}from"node:fs";import{resolve as oM,join as uM}from"node:path";h();function Ua(s,e,t){let i=new Error(`[unstorage] [${s}] ${e}`,t);return Error.captureStackTrace&&Error.captureStackTrace(i,Ua),i}function ZE(s,e){return Array.isArray(e)?Ua(s,`Missing some of the required options ${e.map(t=>"`"+t+"`").join(", ")}`):Ua(s,`Missing required option \`${e}\`.`)}h();import{existsSync as rM,promises as ni}from"node:fs";import{resolve as tC,dirname as sC}from"node:path";function Jh(s){return s.code==="ENOENT"||s.code==="EISDIR"?null:s}function eC(s){return s.code==="EEXIST"?null:s}async function Xh(s,e,t){return await aC(sC(s)),ni.writeFile(s,e,t)}function Yh(s,e){return ni.readFile(s,e).catch(Jh)}function iC(s){return ni.unlink(s).catch(Jh)}function rC(s){return ni.readdir(s,{withFileTypes:!0}).catch(Jh).then(e=>e||[])}async function aC(s){rM(s)||(await aC(sC(s)).catch(eC),await ni.mkdir(s).catch(eC))}async function Qh(s,e,t){if(e&&e(s))return[];let i=await rC(s),r=[];return await Promise.all(i.map(async a=>{let n=tC(s,a.name);if(a.isDirectory()){if(t===void 0||t>0){let o=await Qh(n,e,t===void 0?void 0:t-1);r.push(...o.map(u=>a.name+"/"+u))}}else e&&e(a.name)||r.push(a.name)})),r}async function Zh(s){let e=await rC(s);await Promise.all(e.map(t=>{let i=tC(s,t.name);return t.isDirectory()?Zh(i).then(()=>ni.rmdir(i)):ni.unlink(i)}))}var cM=/\.\.:|\.\.$/,ed="fs-lite",nC=(s={})=>{if(!s.base)throw ZE(ed,"base");s.base=oM(s.base);let e=t=>{if(cM.test(t))throw Ua(ed,`Invalid key: ${JSON.stringify(t)}. It should not contain .. segments`);return uM(s.base,t.replace(/:/g,"/"))};return{name:ed,options:s,flags:{maxDepth:!0},hasItem(t){return aM(e(t))},getItem(t){return Yh(e(t),"utf8")},getItemRaw(t){return Yh(e(t))},async getMeta(t){let{atime:i,mtime:r,size:a,birthtime:n,ctime:o}=await nM.stat(e(t)).catch(()=>({}));return{atime:i,mtime:r,size:a,birthtime:n,ctime:o}},setItem(t,i){if(!s.readOnly)return Xh(e(t),i,"utf8")},setItemRaw(t,i){if(!s.readOnly)return Xh(e(t),i)},removeItem(t){if(!s.readOnly)return iC(e(t))},getKeys(t,i){return Qh(e("."),s.ignore,i?.maxDepth)},async clear(){s.readOnly||s.noClear||await Zh(e("."))}}};h();var lM="memory",oC=()=>{let s=new Map;return{name:lM,getInstance:()=>s,hasItem(e){return s.has(e)},getItem(e){return s.get(e)??null},getItemRaw(e){return s.get(e)??null},setItem(e,t){s.set(e,t)},setItemRaw(e,t){s.set(e,t)},removeItem(e){s.delete(e)},getKeys(){return[...s.keys()]},clear(){s.clear()},dispose(){s.clear()}}};function Qo(s){let e=QE({driver:dM()?nC({base:"./.temp/asign"}):oC()});return Kh(e,s)}function dM(){try{let s="asign_file_write.txt";return hM(s,s),pM(s),!0}catch{return!1}}Pe();Ui();h();h();h();async function Os({logger:s,http:e},t="自定义消息",i){try{let r={method:"POST",headers:{"Content-Type":"application/json"},timeout:1e4,...i};Reflect.has(i,"data")&&Reflect.has(i.data,"agent")&&(r.agent=i.data.agent,delete i.data.agent);let a=await e.fetch(r),{errcode:n,code:o,err:u}=a;if(n||u||![0,200,void 0].some(c=>o===c))return s.error(`${t}发送失败`,JSON.stringify(a));s.info(`${t}已发送!`)}catch(r){s.info(`${t}发送失败: ${r.message}`)}}async function fM({logger:s,http:e},t,i,r){try{if(!t||!t.url)return;let{data:a,body:n,timeout:o,headers:u}=t,l={method:t.method.toUpperCase()||"POST",timeout:o,headers:u,url:"",data:a||n};if(l.url=t.url.replace("{title}",encodeURIComponent(i)).replace("{text}",encodeURIComponent(r)),a&&Object.keys(a).length){let d=JSON.stringify(a).replace(/{title}/g,i).replace(/{text}/g,r).replace(/\n/g,"\\n").replace(/\r/g,"\\r");l.data=JSON.parse(d)}let p=await e.fetch(l);return s.info("自定义消息已发送!"),p}catch(a){s.info(`自定义消息发送失败: ${a.message}`),s.error(a)}}async function mM(s,e,t,i){e=Array.isArray(e)?e:[e];let r=[];for(let a of e)r.push(await fM(s,a,t,i));return r}async function gM(s,{token:e,...t},i,r){return Os(s,"pushplus",{url:"http://www.pushplus.plus/send",method:"POST",data:{token:e,title:i,content:r,...t}})}async function yM(s,{token:e,...t},i,r){return Os(s,"Server酱",{url:`https://sctapi.ftqq.com/${e}.send`,headers:{"content-type":"application/json"},data:{text:i,title:i,desp:r.replace(/\n/g,`
`),...t}})}async function xM(s,{msgtype:e="text",touser:t="@all",agentid:i,corpid:r,corpsecret:a,...n},o,u){try{let{access_token:c}=await s.http.fetch({url:"https://qyapi.weixin.qq.com/cgi-bin/gettoken",method:"POST",data:{corpid:r,corpsecret:a},headers:{"Content-Type":"application/json"}});return Os(s,"企业微信推送",{url:`https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=${c}`,data:{touser:t,msgtype:e,agentid:i,[e]:{content:`${o}
${u}`},...n}})}catch(c){s.logger.error("企业微信推送失败"),s.logger.error(c)}}async function bM(s,{url:e,msgtype:t="text",...i},r,a){return Os(s,"企业微信Bot推送",{url:e,data:{msgtype:t,[t]:{content:`${r}
${a}`},...i}})}async function wM(s,{apiHost:e="api.telegram.org",token:t,disable_web_page_preview:i=!0,agent:r,...a},n,o){return Os(s,"Telegram Bot 推送",{url:`https://${e}/bot${t}/sendMessage`,data:{disable_web_page_preview:i,...a,text:`${n}
${o}`},agent:r})}async function DM(s,{key:e,level:t="passive",...i},r,a){return Os(s,"Bark ios 推送",{url:`https://api.day.app/${e}`,data:{body:a,title:r,level:t,...i}})}async function kM(s,{key:e,sid:t,query:i,msgtype:r="text",...a},n,o){let u=new URLSearchParams({key:e,sid:t});return i&&Object.entries(i).forEach(([c,l])=>{u.append(c,String(l))}),Os(s,"Bark ios 推送",{url:`https://api.2im.cn/push?${u.toString()}`,data:{msgtype:r,content:o,title:n,...a}})}async function vM(s,{token:e,secret:t,...i},r,a){let n="";if(t){let{createHmac:o}=await import("node:crypto"),u=Date.now(),c=o("sha256",t).update(u.toString()+`
`+t).digest("base64");n=`&timestamp=${u}&sign=${encodeURIComponent(c)}`}return Os(s,"钉钉推送",{url:`https://oapi.dingtalk.com/robot/send?access_token=${e}${n}`,data:{msgtype:"text",text:{content:` ${r}
${a}`},...i},headers:{"content-type":"application/json"}})}function uC(){return{pushplus:gM,serverChan:yM,workWeixin:xM,workWeixinBot:bM,tgBot:wM,bark:DM,twoIm:kM,customPost:mM,dingTalk:vM}}async function M9({logger:s},e,t,i){try{if(!e||!e.pass||!e.from||!e.host)return;let{createTransport:r}=await Promise.resolve().then(()=>Dt(WT(),1)),a=Number(e.port)||465,o=await r({host:e.host,port:a,secure:a===465,auth:{user:e.from,pass:e.pass}}).sendMail({from:`${t} <${e.from}>`,to:e.to,subject:t,headers:{"Content-Type":"text/plain; charset=utf-8"},text:i.replace(/\n/g,`\r
`)});s.info(`邮件消息已发送: ${o.messageId}`)}catch(r){s.error("邮件消息发送失败",r)}}async function ru(s,e,t,i){let r={email:M9,...uC()};for(let[a,n]of Object.entries(e)){let o=r[a];!o||!e||(await q9(s,n),await o(s,n,t,i))}}async function R9(s){let{HttpsProxyAgent:e}=await Promise.resolve().then(()=>(YT(),XT));return{https:new e({maxSockets:256,scheduling:"lifo",proxy:s})}}async function q9(s,e){if(typeof e.proxy=="string")try{e.agent=await R9(e.proxy)}catch(t){s.logger.error(t)}}lt();Yu();h();Pe();Ui();import{randomBytes as U9}from"node:crypto";function H9(s){let e=U9(16);return{randomBuffer:e,fileMd5:s.node.myMD5(e.toString("hex")),fileSize:209715216}}async function $9(s){let e=H9(s),t={digest:e.fileMd5,contentSize:e.fileSize,manualRename:2,ext:".mp4",createTime:mr()};s.logger.debug(new Date().toLocaleString(),JSON.stringify(t)),await V9(s,s.config.catalog,t,e.randomBuffer)&&s.logger.debug("上传成功")}async function QT(s,e){if(li()){s.logger.debug("当前环境为WPS,不支持上传文件");return}s.logger.debug("已经上传",e,"字节");let t=1025-Math.floor(e/1024/1024);s.logger.debug("需要上传",t,"MB");for(let i=0;i<t;i+=200)await $9(s),t-200>0&&await s.sleep(3e3)}async function V9(s,e,{ext:t=".png",digest:i=Ke(32).toUpperCase(),contentSize:r=ut(1,1e3),manualRename:a=2,contentName:n="asign-"+Ke(4)+t,createTime:o=mr()}={},u){try{s.logger.warn("未实现功能")}catch(c){s.logger.error("上传文件异常",c)}return!1}h();import{Buffer as au}from"node:buffer";import{createCipheriv as W9,randomBytes as G9}from"node:crypto";function K9(s,e){let t=W9("aes-128-cbc",au.from("xuL97!x7GGxG%8V4","utf-8"),e);return au.concat([t.update(s,"utf-8"),t.final()])}function ZT(s){let e=G9(16);return au.from(au.concat([e,K9(s,e)]).toString("base64"),"utf-8").toString("base64")}h();import{Buffer as J9}from"node:buffer";function zs(s,e){var t=(s&65535)+(e&65535),i=(s>>16)+(e>>16)+(t>>16);return i<<16|t&65535}function X9(s,e){return s<<e|s>>>32-e}function nu(s,e,t,i,r,a){return zs(X9(zs(zs(e,s),zs(i,a)),r),t)}function $e(s,e,t,i,r,a,n){return nu(e&t|~e&i,s,e,r,a,n)}function Ve(s,e,t,i,r,a,n){return nu(e&i|t&~i,s,e,r,a,n)}function We(s,e,t,i,r,a,n){return nu(e^t^i,s,e,r,a,n)}function Ge(s,e,t,i,r,a,n){return nu(t^(e|~i),s,e,r,a,n)}function Y9(s,e,t,i,r){let a,n,o,u,c;for(c=0;c<s.length;c+=16)a=e,n=t,o=i,u=r,e=$e(e,t,i,r,s[c],7,-680876936),r=$e(r,e,t,i,s[c+1],12,-389564586),i=$e(i,r,e,t,s[c+2],17,606105819),t=$e(t,i,r,e,s[c+3],22,-1044525330),e=$e(e,t,i,r,s[c+4],7,-176418897),r=$e(r,e,t,i,s[c+5],12,1200080426),i=$e(i,r,e,t,s[c+6],17,-1473231341),t=$e(t,i,r,e,s[c+7],22,-45705983),e=$e(e,t,i,r,s[c+8],7,1770035416),r=$e(r,e,t,i,s[c+9],12,-1958414417),i=$e(i,r,e,t,s[c+10],17,-42063),t=$e(t,i,r,e,s[c+11],22,-1990404162),e=$e(e,t,i,r,s[c+12],7,1804603682),r=$e(r,e,t,i,s[c+13],12,-40341101),i=$e(i,r,e,t,s[c+14],17,-1502002290),t=$e(t,i,r,e,s[c+15],22,1236535329),e=Ve(e,t,i,r,s[c+1],5,-165796510),r=Ve(r,e,t,i,s[c+6],9,-1069501632),i=Ve(i,r,e,t,s[c+11],14,643717713),t=Ve(t,i,r,e,s[c],20,-373897302),e=Ve(e,t,i,r,s[c+5],5,-701558691),r=Ve(r,e,t,i,s[c+10],9,38016083),i=Ve(i,r,e,t,s[c+15],14,-660478335),t=Ve(t,i,r,e,s[c+4],20,-405537848),e=Ve(e,t,i,r,s[c+9],5,568446438),r=Ve(r,e,t,i,s[c+14],9,-1019803690),i=Ve(i,r,e,t,s[c+3],14,-187363961),t=Ve(t,i,r,e,s[c+8],20,1163531501),e=Ve(e,t,i,r,s[c+13],5,-1444681467),r=Ve(r,e,t,i,s[c+2],9,-51403784),i=Ve(i,r,e,t,s[c+7],14,1735328473),t=Ve(t,i,r,e,s[c+12],20,-1926607734),e=We(e,t,i,r,s[c+5],4,-378558),r=We(r,e,t,i,s[c+8],11,-2022574463),i=We(i,r,e,t,s[c+11],16,1839030562),t=We(t,i,r,e,s[c+14],23,-35309556),e=We(e,t,i,r,s[c+1],4,-1530992060),r=We(r,e,t,i,s[c+4],11,1272893353),i=We(i,r,e,t,s[c+7],16,-155497632),t=We(t,i,r,e,s[c+10],23,-1094730640),e=We(e,t,i,r,s[c+13],4,681279174),r=We(r,e,t,i,s[c],11,-358537222),i=We(i,r,e,t,s[c+3],16,-722521979),t=We(t,i,r,e,s[c+6],23,76029189),e=We(e,t,i,r,s[c+9],4,-640364487),r=We(r,e,t,i,s[c+12],11,-421815835),i=We(i,r,e,t,s[c+15],16,530742520),t=We(t,i,r,e,s[c+2],23,-995338651),e=Ge(e,t,i,r,s[c],6,-198630844),r=Ge(r,e,t,i,s[c+7],10,1126891415),i=Ge(i,r,e,t,s[c+14],15,-1416354905),t=Ge(t,i,r,e,s[c+5],21,-57434055),e=Ge(e,t,i,r,s[c+12],6,1700485571),r=Ge(r,e,t,i,s[c+3],10,-1894986606),i=Ge(i,r,e,t,s[c+10],15,-1051523),t=Ge(t,i,r,e,s[c+1],21,-2054922799),e=Ge(e,t,i,r,s[c+8],6,1873313359),r=Ge(r,e,t,i,s[c+15],10,-30611744),i=Ge(i,r,e,t,s[c+6],15,-1560198380),t=Ge(t,i,r,e,s[c+13],21,1309151649),e=Ge(e,t,i,r,s[c+4],6,-145523070),r=Ge(r,e,t,i,s[c+11],10,-1120210379),i=Ge(i,r,e,t,s[c+2],15,718787259),t=Ge(t,i,r,e,s[c+9],21,-343485551),e=zs(e,a),t=zs(t,n),i=zs(i,o),r=zs(r,u);return[e,t,i,r]}function Q9(s,e,t=!0,i={a:1732584193,b:-271733879,c:-1732584194,d:271733878},r=0){return t&&(s[e>>5]|=128<<e%32,s[(e+64>>>9<<4)+14]=e+r),Y9(s,i.a,i.b,i.c,i.d)}function Z9(s,e=0,t={a:1732584193,b:-271733879,c:-1732584194,d:271733878}){return t7(e7(Q9(s7(decodeURIComponent(s)),s.length*8,!0,t,e)))}function e7(s){let e="",t=s.length*32;for(let i=0;i<t;i+=8)e+=String.fromCharCode(s[i>>5]>>>i%32&255);return e}function t7(s){var e="0123456789abcdef",t="",i,r;for(r=0;r<s.length;r+=1)i=s.charCodeAt(r),t+=e.charAt(i>>>4&15)+e.charAt(i&15);return t}function s7(s){let e=J9.from(s,"binary"),t=Math.ceil(e.length/4),i=new Uint32Array(t),r=new Uint8Array(i.buffer);return e.copy(r,0,0,e.length),Array.from(i)}function e2(s){return Z9(s,3355443200,{a:-1235010310,b:-1633014442,c:1919210400,d:-1138002915})}async function oi(s,{logger:e,localStorage:t,jwtToken:i}){let r=i7(s);if(!r.phone)return e.error("auth 格式解析错误,请查看是否填写正确的 auth"),{};if(r.phone.length!==11||!r.phone.startsWith("1"))return e.info("auth 格式解析错误,请查看是否填写正确的 auth"),{};let a={baseUA:nf,mailUaEnd:`(139PE_WebView_Android_${hr}_mcloud139)`,mailRequested:"cn.cj.pe",mcloudRequested:"com.chinamobile.mcloud"},n=is({hooks:{beforeRequest:[u=>{["caiyun.feixin.10086.cn","mrp.mcloud.139.com"].includes(u.url.hostname)?(i&&(u.headers.jwttoken=i),u.headers.authorization="Basic "+r.auth):u.headers.authorization=r.auth}]},headers:{"user-agent":a.baseUA,"x-requested-with":a.mcloudRequested,charset:"utf-8","content-type":"application/json;charset=UTF-8","x-yun-client-info":ui,"x-DeviceInfo":ui,"x-NetType":of},retry:{limit:3,methods:["POST","GET","PATCH","DELETE","OPTIONS","TRACE"]}}),o={api:Bp(n),config:r,gardenApi:Np(n),logger:e,DATA:a,sleep:wr,node:{uploadTask:QT,myMD5:e2,encryptAiUserId:ZT},md5:$u,store:{},localStorage:t||Qo("caiyun-"+r.phone),http:n};return e.info("=============="),r7(o),a7(o,o.config.expire),i||=await cn(o),{$:o,logger:e,jwtToken:i}}function i7(s){let e=vr(s,$E);return{...e,...rn(e.auth)}}async function ef(s){let e=await HE(s);if(!e.config)throw new Error("配置文件为空");return{config:e.config.caiyun,message:e.config.message,path:e.path}}function r7({config:s,logger:e}){e.info(`登录账号【${s.nickname||pi(s.phone)}】`)}function a7({logger:s},e){s.info("登录过期时间",Km(e))}function ou({pushData:s,message:e}){return wn({pushData:s,message:e,sendNotify:ru,createRequest:is})}h();h();Pe();Ui();lt();function n7(s=0,e=300){let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),s,0,0,e).getTime()-t.getTime();return console.info("等待:",r,"ms"),nn(r)}function t2(s){let e=new Date;if(![0,12,16,20,24].includes(e.getHours()))return n7(e.getHours()+1,s)}async function s2(s,e){let t=[{level:3,type:"info",date:new Date,msg:"文档地址:https://as.js.cool"}],i=await qs({pushData:t});try{let r=rn(s.auth),{$:a,jwtToken:n}=await oi({...s,...r},{logger:i});if(!n)return;let{exchangeTask:o,exchangeApi:u}=await Promise.resolve().then(()=>(go(),Uv)),c=async l=>e?(e.title=l||e.title,e.onlyError=!1,wn({pushData:t,message:e,sendNotify:ru,createRequest:is})):a.logger.debug("未配置推送信息");return{exchange:async l=>{let p=await o(a,l);p&&await c(p).catch(d=>i.error(d))},sendMessage:c,waitToNextHour:t2,exchangeQuickly:async(l,p)=>u(a,l,p)}}catch(r){i.error(r)}}async function o7(s,e,{isAsync:t,delay:i}){let r=s.map(({user:a,ids:n})=>async()=>{let{exchange:o}=await s2(a,e)||{};if(o)return t2(),o(n)});if(t)return Promise.all(r.map(a=>a()));for(let a of r)await a(),await wr(i||1e3)}h();Tp();Pe();lt();import{randomInt as u7}from"node:crypto";var tf=Qo("caiyun-hc1t"),sf="invite";async function c7(s,e,t){if(t<s.config.云朵大作战.目标排名){s.logger.debug(`当前排名 ${t},优于配置排名 ${s.config.云朵大作战.目标排名},不兑换`);return}if(!s.config.云朵大作战.开启兑换){s.logger.debug("未开启兑换,不兑换");return}if(!(e<=0))try{let{code:i,msg:r,result:a}=await s.api.exchangeHecheng1T(e);if(i!==0)return s.logger.fail("兑换次数失败",i,r);let{inviteds:n,curr:o,invite:u}=a;s.logger.debug("剩余次数",o),s.logger.debug("今日剩余可被邀请次数",u),s.logger.debug("已被下列用户邀请过:",n.filter(Boolean).map(c=>pi(c)).join(","))}catch(i){s.logger.error("兑换异常",i)}}async function l7(s){try{let{code:e,msg:t,result:i}=await s.api.getHecheng1T();if(e===0)return i;s.logger.fatal("获取云朵大作战信息失败",t)}catch(e){s.logger.error("获取云朵大作战信息异常",e)}return{}}async function i2(s){let{info:e,history:t}=await l7(s);if(!e)return{curr:0,exchange:0,rank:1};Cp(s.logger,{info:e,history:t});let{exchange:i,curr:r}=e;return{curr:r,exchange:i,rank:Number(t[0].rank)||1}}async function p7(s,e){s.logger.start("开始云朵大作战,",e?"接受"+pi(e)+"邀请":"未获取到可用配置或已使用完");try{let t=s.config.云朵大作战.游戏时间;await vp(s,t,e),await g7(e,s.config.phone)}catch(t){s.logger.error("云朵大作战失败",t)}}async function h7(s,e){return await s.sleep(5e3),s.logger.start("开始云朵大作战,",e?"接受"+pi(e)+"邀请":"未获取到可用配置或已使用完"),await p7(s,e),await s.sleep(7e3),await i2(s)}async function d7(s){let e=s.config.云朵大作战;if(!e)return s.logger.warn("云朵大作战未配置,跳过执行");let t=e.邀请用户;if(!t||!t.length)return s.logger.warn("云朵大作战未配置邀请用户,跳过执行");try{await Ep(s)}catch(a){s.logger.error("云朵大作战登录失败",a)}t.forEach((a,n,o)=>o[n]=m7(a));let i=await i2(s),r=async()=>{let a=s.config.phone;for(let n=0;n<i.curr;n++)i=await h7(s,await x7(t,a)),await s.sleep(3e3)};await r(),await c7(s,i.exchange,i.rank),await r()}async function f7(s,e){let t=await qs({pushData:e}),{$:i}=await oi(s,{logger:t});return await d7(i)}function m7(s){return typeof s!="string"?String(s):s&&s.startsWith("M")?Buffer.from(s,"base64").toString("utf-8"):s}async function g7(s,e){if(!s)return;let t=await tf.getItem(sf)||{},i=new Date().toLocaleDateString("zh-CN"),{time:r,value:a}=t[e]||{time:i,value:[]};r===i?(a.push(s),t[e]={time:r,value:a}):t[e]={time:i,value:[s]},await tf.setItem(sf,t)}async function y7(s){let e=await tf.getItem(sf)||{},t=new Date().toLocaleDateString("zh-CN");return e[s]&&e[s].time===t?e[s].value:[]}async function x7(s,e){let t=await y7(e),i=s.filter(r=>!t.includes(r)&&r!==e);return i.length===0?"":i[u7(0,i.length)]}async function b7(s,e){let{$:t,logger:i,jwtToken:r}=await oi(s,e);if(!r)return{$:t,isNoLogin:!0};await Lp(t);let a=await ln(t);return i.info(`==============
`),{newAuth:a,$:t}}async function w7(s){return bf(s)||xf(s)?await ef(s):s}async function Gae(s){let{config:e,path:t,message:i}=await w7(s),r=[{level:3,type:"info",date:new Date,msg:"文档地址:https://as.js.cool"}],a=await qs({pushData:r});if(r.push({level:3,type:"info",date:new Date,msg:"当前版本 0.5.11-rc.2"}),!e||!e.length)return a.error("未找到配置文件/变量");let{expiredAuth:n}=await k7(e,a,t);await D7(n,i),await ou({pushData:r,message:i})}async function D7(s,e){s.length&&await ou({pushData:[{level:0,type:"error",date:new Date,msg:"存在账号过期,请重新登录"},...s.map(t=>({level:3,type:"info",date:new Date,msg:t}))],message:{...e,title:"账号过期推送"}})}async function k7(s,e,t){let i=[];for(let r=0;r<s.length;r++){let a=s[r];if(!a.auth){e.error("该配置中不存在 auth");continue}try{let{newAuth:n,$:o,isNoLogin:u}=await b7(a,{logger:e});if(u){i.push(o?.config?.phone);continue}n&&ME(t,["caiyun",r,"auth"],n)}catch(n){e.error(n)}}return{expiredAuth:i}}export{k7 as _run,qs as createLogger,w7 as getConfig,oi as init,ef as loadConfig,b7 as main,D7 as pushExpiredAuth,ou as pushMessage,Gae as run,f7 as runHc1t,wr as sleep,s2 as useExchange,o7 as useMultiExchange};
/*! Bundled license information:
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*)
tough-cookie/lib/pubsuffix-psl.js:
(*!
* Copyright (c) 2018, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*)
tough-cookie/lib/store.js:
(*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*)
tough-cookie/lib/permuteDomain.js:
(*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*)
tough-cookie/lib/pathMatch.js:
(*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*)
tough-cookie/lib/memstore.js:
(*!
* Copyright (c) 2015, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*)
tough-cookie/lib/cookie.js:
(*!
* Copyright (c) 2015-2020, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*)
*/