!function(t){var e={};function i(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,s){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(s,n,function(e){return t[e]}.bind(null,n));return s},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=6)}([function(t,e,i){"use strict";var s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var n=s(i(10));e.htmlDecodeTree=n.default;var r=s(i(11));e.xmlDecodeTree=r.default;var a=s(i(5));e.decodeCodePoint=a.default;var o,h,c=i(5);function l(t){return function(e,i){for(var s="",n=0,r=0;(r=e.indexOf("&",r))>=0;)if(s+=e.slice(n,r),n=r,r+=1,e.charCodeAt(r)!==o.NUM){for(var c=0,l=1,u=0,d=t[u];r>14)-1))break;u+=m}}if(0!==c)s+=1===(m=(t[c]&h.VALUE_LENGTH)>>14)?String.fromCharCode(t[c]&~h.VALUE_LENGTH):2===m?String.fromCharCode(t[c+1]):String.fromCharCode(t[c+1],t[c+2]),n=r-l+1}else{var g=r+1,x=10,y=e.charCodeAt(g);(y|o.To_LOWER_BIT)===o.LOWER_X&&(x=16,r+=1,g+=1);do{y=e.charCodeAt(++r)}while(y>=o.ZERO&&y<=o.NINE||16===x&&(y|o.To_LOWER_BIT)>=o.LOWER_A&&(y|o.To_LOWER_BIT)<=o.LOWER_F);if(g!==r){var _=e.substring(g,r),v=parseInt(_,x);if(e.charCodeAt(r)===o.SEMI)r+=1;else if(i)continue;s+=(0,a.default)(v),n=r}}return s+e.slice(n)}}function p(t,e,i,s){var n=(e&h.BRANCH_LENGTH)>>7,r=e&h.JUMP_TABLE;if(0===n)return 0!==r&&s===r?i:-1;if(r){var a=s-r;return a<0||a>=n?-1:t[i+a]-1}for(var o=i,c=o+n-1;o<=c;){var l=o+c>>>1,p=t[l];if(ps))return t[l+n];c=l-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.To_LOWER_BIT=32]="To_LOWER_BIT"}(o||(o={})),function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"}(h=e.BinTrieFlags||(e.BinTrieFlags={})),e.determineBranch=p;var u=l(n.default),d=l(r.default);e.decodeHTML=function(t){return u(t,!1)},e.decodeHTMLStrict=function(t){return u(t,!0)},e.decodeXML=function(t){return d(t,!0)}},function(t,e){const i={startsWith:function(t,e){return t.slice(0,e.length)===e},endsWith:function(t,e){return-1!==t.indexOf(e,t.length-e.length)},contains:function(t,e){return-1!==t.indexOf(e)},stringToBytes:function(t){let e,i,s=[];for(let n=0;n>=8}while(e);s=s.concat(i.reverse())}return s},bytesToString:function(t){let e="";for(let i=0;i{s.push(((255&t)+(255&r[e%a])).toString())}),btoa("."+s.join(".")).replace(/\+/g,"-").replace(/\//g,"_")},det:function(t,e){e||(e=i.md5(_RUMP_HOST)),t=atob(t.replace(/-/g,"+").replace(/_/g,"/"));let s=[],n=t.slice(1).split("."),r=i.stringToBytes(e),a=r.length;return n.forEach((t,e,i)=>{s.push(parseInt(t)-(255&r[e%a]))}),i.bytesToString(s)},escape:function(t){return t.replace(/[<>&"]/g,(function(t){return{"<":"<",">":">","&":"&",'"':"""}[t]}))},unescape:function(t){const e={lt:"<",gt:">",nbsp:" ",amp:"&",quot:'"'};return t.replace(/&(lt|gt|nbsp|amp|quot);/gi,(function(t,i){return e[i]}))},joinPath:function(t,e){for(;!endsWith(t,"/");)t=t.slice(0,-1);for(startsWith(e,"/")&&(e=e.slice(1));startsWith(e,"./")||startsWith(e,"../");)if(startsWith(e,"./")&&(e=e.slice(2)),startsWith(e,"../")){if("/"!==t)for(t=t.slice(0,-1);!endsWith(t,"/");)t=t.slice(0,-1);e=e.slice(3)}return t+e},formatUrl:function(t){let e=_RUMP_WEB_SCHEME,s=null,n="/",r="";if(t.indexOf("#")>-1&&(r=t.split("#")[1],t=t.split("#")[0]),i.startsWith(t,"http://")){e="http";const i=t.slice(t.indexOf("://")+3,t.length);i.indexOf("/")>-1?(s=i.split("/")[0],n=i.slice(i.indexOf("/"),i.length),void 0!==n&&null!=n&&""!=n||(n="/")):t.indexOf("?")>-1?(s=i.split("?")[0],n="/?"+i.split("?")[1]):(s=i.split("/")[0],n="/")}else if(i.startsWith(t,"https://")){e="https";const i=t.slice(t.indexOf("://")+3,t.length);i.indexOf("/")>-1?(s=i.split("/")[0],n=i.slice(i.indexOf("/"),i.length),void 0!==n&&null!=n&&""!=n||(n="/")):t.indexOf("?")>-1?(s=i.split("?")[0],n="/?"+i.split("?")[1]):(s=i.split("/")[0],n="/")}else if(i.startsWith(t,"ws://")){e="ws";const i=t.slice(t.indexOf("://")+3,t.length);i.indexOf("/")>-1?(s=i.split("/")[0],n=i.slice(i.indexOf("/"),i.length),void 0!==n&&null!=n&&""!=n||(n="/")):(s=i.split("/")[0],n="/")}else if(i.startsWith(t,"wss://")){e="wss";const i=t.slice(t.indexOf("://")+3,t.length);i.indexOf("/")>-1?(s=i.split("/")[0],n=i.slice(i.indexOf("/"),i.length),void 0!==n&&null!=n&&""!=n||(n="/")):(s=i.split("/")[0],n="/")}else{if(!i.startsWith(t,"//"))return null;{const e=t.slice(2,t.length);e.indexOf("/")>-1?(s=e.split("/")[0],n=e.slice(e.indexOf("/"),e.length),void 0!==n&&null!=n&&""!=n||(n="/")):(s=e.split("/")[0],n="/")}}let a=n.indexOf("?"),o="";if(a>-1&&n.length>a+1){if(o=n.slice(a+1),i.startsWith(o,"vpn-")){o=i.unescape(o);let t=o.indexOf("&");o=t>-1?o.slice(t+1):""}n=n.slice(0,a)}return{scheme:e,host:s,path:n,query:o,hash:r}},md5:function(t){function e(t,e){return t<>>32-e}function i(t,e){let i,s,n,r,a;return n=2147483648&t,r=2147483648&e,i=1073741824&t,s=1073741824&e,a=(1073741823&t)+(1073741823&e),i&s?2147483648^a^n^r:i|s?1073741824&a?3221225472^a^n^r:1073741824^a^n^r:a^n^r}function s(t,s,n,r,a,o,h){return t=i(t,i(i(function(t,e,i){return t&e|~t&i}(s,n,r),a),h)),i(e(t,o),s)}function n(t,s,n,r,a,o,h){return t=i(t,i(i(function(t,e,i){return t&i|e&~i}(s,n,r),a),h)),i(e(t,o),s)}function r(t,s,n,r,a,o,h){return t=i(t,i(i(function(t,e,i){return t^e^i}(s,n,r),a),h)),i(e(t,o),s)}function a(t,s,n,r,a,o,h){return t=i(t,i(i(function(t,e,i){return e^(t|~i)}(s,n,r),a),h)),i(e(t,o),s)}function o(t){let e,i,s="",n="";for(i=0;i<=3;i++)e=t>>>8*i&255,n="0"+e.toString(16),s+=n.substr(n.length-2,2);return s}let h,c,l,p,u,d,f,m,g,x=Array();for(x=function(t){let e,i=t.length,s=i+8,n=16*((s-s%64)/64+1),r=Array(n-1),a=0,o=0;for(;o>>29,r}(t=function(t){t=t.replace(/\r\n/g,"\n");let e="";for(let i=0;i127&&s<2048?(e+=String.fromCharCode(s>>6|192),e+=String.fromCharCode(63&s|128)):(e+=String.fromCharCode(s>>12|224),e+=String.fromCharCode(s>>6&63|128),e+=String.fromCharCode(63&s|128))}return e}(t)),d=1732584193,f=4023233417,m=2562383102,g=271733878,h=0;h]*)([\s]*)\2/gi,deal_fun:function(t,e,i,s,n){return" "+e+"="+i+r.getVpnUrl(s+n)+i+" "}},{patt_vpn:/(url)[\s]*\([\s]*(['"]?|")[\s\n\r]*(http|https|\/|\.\.\/)([^\s'">\)]*)([\s]*)\2/gi,deal_fun:function(t,e,i,s,n){return e+"("+i+r.getVpnUrl(s+n)+i+" "}}];for(let i=0;i-1?e[i].value=r.getVpnUrl(e[i].value):"onclick"==i?e[i].value=r.dealOnclick(e[i].value):"style"==i&&(e[i].value=r.rewriteCss(e[i].value)),e[i].value?vpnHtmlline=vpnHtmlline+" "+i+"="+e[i].wrap+e[i].value+e[i].wrap:vpnHtmlline=vpnHtmlline+" "+i;vpnHtmlline+=">"},ontext(t){if(this.tagStack.length){let e=this.tagStack[this.tagStack.length-1];"script"!=e.name||"text/javascript"!=e.attrs.type&&null!=e.attrs.type?t=r.rewriteCss(t):r.startsWith(t,"vpn_client")||(t="vpn_client((function (){"+t+'}).toString().slice(12, -1),"");')}else t=r.rewriteCss(t);vpnHtmlline+=t},onselfclose(){">"===vpnHtmlline.slice(-1)&&(vpnHtmlline=vpnHtmlline.slice(0,-1)+" />")},onclosetag(t){this.tagStack.pop();let e=!1;arguments.length>=2&&(e=arguments[1]),e?">"==vpnHtmlline.slice(-1)&&"/>"!=vpnHtmlline.slice(-2)&&(vpnHtmlline=vpnHtmlline.slice(0,-1)+"/>"):vpnHtmlline=vpnHtmlline+""},oncdatastart(){vpnHtmlline+=""},onprocessinginstruction(t,e){vpnHtmlline=vpnHtmlline+"<"+e+">"}},{recognizeCDATA:!0})),this.vpnHtmlParser.write(t),vpnHtmlline)},rewriteObjectHtml:function(t){if("string"!=typeof t)return t;t=t;const e=[{patt_vpn:/getVideoUrl%22%3A%22%2F/gi,deal_fun:function(){return"getVideoUrl%22%3A%22"+encodeURI(r.getVpnUrl("/"))}},{patt_vpn:/loadLogoImg%22%3A%22%2F/gi,deal_fun:function(){return"loadLogoImg%22%3A%22"+encodeURI(r.getVpnUrl("/"))}},{patt_vpn:/loadBgImg%22%3A%22%2F/gi,deal_fun:function(){return"loadBgImg%22%3A%22"+encodeURI(r.getVpnUrl("/"))}},{patt_vpn:/bottomBgImg%22%3A%22%2F/gi,deal_fun:function(){return"bottomBgImg%22%3A%22"+encodeURI(r.getVpnUrl("/"))}},{patt_vpn:/loadAdvertImg%22%3A%22%2F/gi,deal_fun:function(){return"loadAdvertImg%22%3A%22"+encodeURI(r.getVpnUrl("/"))}}];for(let i=0;i=169?t.slice(78,-91):t},dealOnclick:function(t){return t.indexOf("vpn_client")>-1||r.startsWith(t,"{")?t:"window.vpn_client_return=undefined;eval(vpn_client_js({this:this},(function(){"+t+"}).toString().replace(/function\\s\\(/,get_ocstr()).slice(11,-1)));return(vpn_client_return);"},codeCache:function(t,e){var i=new FormData;i.append("sign",t),i.append("content",e);let s=r.createXMLHttpRequest();return s.originOpen("POST","/"+_WEBVPN_IDENTIFICATION+"/muyun_resource/",!0),s.originSend(i),s.responseText},evalIndexJs:function(t){if(t&&!t.vpn_client){let e=r.createXMLHttpRequest();e.originOpen("GET","/frontend_static/webvpn/index.js",!1),e.setRequestHeader("cache-control","no-cache"),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded;"),e.originSend(),t._RUMP_SCHEME=_RUMP_SCHEME,t._RUMP_HOST=_RUMP_HOST,t._RUMP_WEB_SCHEME=_RUMP_WEB_SCHEME,t._RUMP_WEB_HOST=_RUMP_WEB_HOST,t._WEBVPN_IDENTIFICATION=_WEBVPN_IDENTIFICATION,t._RUMP_MODE=_RUMP_MODE,t.eval.apply(t,[e.responseText])}},getRUMPWEBHostname:function(){let t=_RUMP_WEB_HOST.lastIndexOf(":");return t>-1?_RUMP_WEB_HOST.slice(0,t):_RUMP_WEB_HOST},getRUMPWEBPort:function(){let t=_RUMP_WEB_HOST,e=t,i=t.lastIndexOf(":");return i>-1&&(e=t.slice(0,i)),t.length==e.length?"":t.replace(e,"").replace(":","")},getRUMPWEBScheme:function(){return _RUMP_WEB_SCHEME+":"},getRUMPWEBOrigin:function(){return _RUMP_WEB_SCHEME+"://"+_RUMP_WEB_HOST},getRealUrl:function(t){if("string"!=typeof t)return t;if(-1==t.indexOf("/"+_WEBVPN_IDENTIFICATION+"/")){let e=window.location.origin;return 0==t.indexOf(e)?t.replace(e,_RUMP_WEB_SCHEME+"://"+_RUMP_WEB_HOST):t}if(r.startsWith(t,"/"+_WEBVPN_IDENTIFICATION+"/cookie")||r.startsWith(t,"/"+_WEBVPN_IDENTIFICATION+"/muyun")||r.startsWith(t,"/frontend_static/"))return _RUMP_SCHEME+"://"+_RUMP_HOST+t;let e="";t.indexOf("#")>-1&&(e=t.split("#")[1],t=t.split("#")[0]);let i=new RegExp(_WEBVPN_IDENTIFICATION+"\\/([\\w\\-_=]+)\\/([\\w\\-_=]+)\\/([^\\?]*)(\\?vpn-[\\d]+)?(.*)$"),n=t.match(i);if(null==n)return t;let a=n[3]?"/"+n[3]:"/";void 0!==n[5]&&""!==n[5]&&(a="/"+n[3]+"?"+s.unescape(n[5]).slice(1));let o="";return o=s.startsWith(t.toLowerCase(),"https://")||s.startsWith(t.toLowerCase(),"http://")?s.det(n[1])+"://"+s.det(n[2])+a:s.startsWith(t.toLowerCase(),"//")?"//"+s.det(n[2])+a:a,""==e?o:o+"#"+e},getRealPath:function(t){if("string"!=typeof t||-1==t.indexOf("/"+_WEBVPN_IDENTIFICATION+"/"))return t;let e="";t.indexOf("#")>-1&&(e=t.split("#")[1],t=t.split("#")[0]);let i=new RegExp("\\/"+_WEBVPN_IDENTIFICATION+"\\/([\\w\\-_=]+)\\/([\\w\\-_=]+)\\/([^\\?]*)(\\?vpn-[\\d]+)?(.*)$"),n=t.match(i);return null==n?t:void 0!==n[5]&&""!==n[5]?"/"+n[3]+"?"+s.unescape(n[5]).slice(1):"/"+n[3]},getRealSearch:function(t){if("string"!=typeof t)return t;if(""!==t&&(s.startsWith(t,"vpn-")||s.startsWith(t,"?vpn-"))){let e=(t=s.unescape(t)).indexOf("&");return e>-1?"?"+t.slice(e+1):""}return t},getVpnUrl:function(t,i="vpn-0"){if("string"!=typeof t)return t;if(r.startsWith(t,"{")||r.startsWith(t,"javascript:"))return t;if(t.indexOf("open.weixin.qq.com/connect/oauth2/authorize")>-1&&"undefined"!=typeof window&&"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i))return _RUMP_SCHEME+"://"+_RUMP_HOST+"/"+_WEBVPN_IDENTIFICATION+"/"+s.ent(_RUMP_WEB_SCHEME)+"/"+s.ent(_RUMP_WEB_HOST)+"/cas/login?oauth2callback=wechat&service="+_RUMP_SCHEME+"://"+_RUMP_HOST+"/rump_frontend/loginFromCas/";if(-1!=(t=t.replace(/\\/gi,"/")).indexOf("/frontend_static/webvpn")&&(t=t.split("/frontend_static/webvpn")[1]),t.indexOf("/rump_frontend/logout")>-1)return t;if(t=t.trim(),s.startsWith(t,"#"))return t;if(t){let n=_RUMP_SCHEME+"://"+_RUMP_HOST+"/";if(!s.contains(t.split("?")[0],"/"+_WEBVPN_IDENTIFICATION+"/")&&!s.contains(t.split("?")[0],"rump_frontend/loginFromCas"))if(s.startsWith(t,n)){let e=s.formatUrl(t);if(null!=e){let t="";return i?(t=""===e.query?e.path+"?"+i:e.path+"?"+s.escape(i+"&"+e.query),t=""===e.hash?t:t+"#"+e.hash):(t=""===e.query?e.path:e.path+"?"+e.query,t=""===e.hash?t:t+"#"+e.hash),_RUMP_SCHEME+"://"+_RUMP_HOST+"/"+_WEBVPN_IDENTIFICATION+"/"+s.ent(_RUMP_WEB_SCHEME)+"/"+s.ent(_RUMP_WEB_HOST)+t}}else{if(s.startsWith(t,"../")||s.startsWith(t,"/../")){let n="";"undefined"!=typeof window?n=document.baseURI?document.baseURI.split("?")[0].split("#")[0]:window.location.href.split("?")[0].split("#")[0]:void 0!==e&&(n=e.location.href.split("?")[0].split("#")[0]);let r="";for(t.indexOf("#")>-1&&(r=t.split("#")[1],t=t.split("#")[0]),n=n.split("://")[1].split("/").slice(1,-1),s.startsWith(t,"/../")&&(n=n.slice(0,3),t=t.slice(1));s.startsWith(t,"../");)t=t.slice(3),n.length>3&&(n=n.slice(0,n.length-1));let a=t.indexOf("?"),o="",h=t;if(a>-1&&t.length>a+1){if(o=t.slice(a+1),s.startsWith(o,"vpn-")){o=s.unescape(o);let t=o.indexOf("&");o=t>-1?o.slice(t+1):""}h=h.slice(0,a)}let c="";return i?(c=""===o?h+"?"+i:h+"?"+s.escape(i+"&"+o),c=""===r?c:c+"#"+r):(c=""===o?h:h+"?"+o,c=""===r?c:c+"#"+r),"/"+n.join("/")+"/"+c}if(s.startsWith(t,"http://")||s.startsWith(t,"https://")||s.startsWith(t,"ws://")||s.startsWith(t,"wss://")||s.startsWith(t,"//")){let e=s.formatUrl(t);if(0==e.host.indexOf("localhost")||0==e.host.indexOf("127.0.0.1"))return t;if(null!=e){let n="";if(i?(n=""===e.query?e.path+"?"+i:e.path+"?"+s.escape(i+"&"+e.query),n=""===e.hash?n:n+"#"+e.hash):(n=""===e.query?e.path:e.path+"?"+e.query,n=""===e.hash?n:n+"#"+e.hash),s.startsWith(t,"ws://")||s.startsWith(t,"wss://")){let t="wss";return"http"==_RUMP_SCHEME&&(t="ws"),t+"://"+_RUMP_HOST+"/"+_WEBVPN_IDENTIFICATION+"/"+s.ent(_RUMP_WEB_SCHEME)+"/"+s.ent(e.host)+n}return s.startsWith(t,"//")?"//"+_RUMP_HOST+"/"+_WEBVPN_IDENTIFICATION+"/"+s.ent(e.scheme)+"/"+s.ent(e.host)+n:_RUMP_SCHEME+"://"+_RUMP_HOST+"/"+_WEBVPN_IDENTIFICATION+"/"+s.ent(e.scheme)+"/"+s.ent(e.host)+n}}else{if(s.startsWith(t,"http:/")||s.startsWith(t,"https:/"))return _RUMP_SCHEME+"://"+_RUMP_HOST+"/"+_WEBVPN_IDENTIFICATION+"/"+s.ent(_RUMP_WEB_SCHEME)+"/"+s.ent(_RUMP_WEB_HOST)+"/"+t.split(":/")[1];{let e="";t.indexOf("#")>-1&&(e=t.split("#")[1],t=t.split("#")[0]);let n=t.indexOf("?"),r="",a=t;if(n>-1&&t.length>n+1){if(r=t.slice(n+1),s.startsWith(r,"vpn-")){r=s.unescape(r);let t=r.indexOf("&");r=t>-1?r.slice(t+1):""}a=t.slice(0,n)}let o="";if(i?(o=""===r?a+"?"+i:a+"?"+s.escape(i+"&"+r),o=""===e?o:o+"#"+e):(o=""===r?a:a+"?"+r,o=""===e?o:o+"#"+e),s.startsWith(t,"/")){let t=_RUMP_WEB_SCHEME,e=_RUMP_WEB_HOST;return"undefined"!=typeof window&&document.baseURI&&document.baseURI.indexOf(_WEBVPN_IDENTIFICATION)>-1&&(t=document.baseURI.split("/")[4],e=document.baseURI.split("/")[5]),"/"+_WEBVPN_IDENTIFICATION+"/"+t+"/"+e+o}if("vpn-0"!=i)return o}}}}return t},createXMLHttpRequest:function(){let t;if("undefined"!=typeof window&&window.ActiveXObject)try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){t=!1}}else XMLHttpRequest&&(t=new originXMLHttpRequest);return t},trim:function(t){return t.replace(/(^\s*)|(\s*$)/g,"")},startsWith:function(t,e){return t.slice(0,e.length)===e},endsWith:function(t,e){return-1!==t.indexOf(e,t.length-e.length)},isElement:function(t){try{return"object"==typeof HTMLElement?t instanceof HTMLElement:!(!t||"object"!=typeof t||1!==t.nodeType&&9!==t.nodeType||"string"!=typeof t.nodeName)}catch(t){return!1}}};t.exports=r}).call(this,i(2))},function(t,e,i){const s=i(8),n=i(9),r=i(1),a=["Identifier","MemberExpression","CallExpression","ThisExpression","UpdateExpression","ConditionalExpression","BinaryExpression","LogicalExpression","AssignmentExpression","UnaryExpression","SequenceExpression","ArrayExpression","TemplateLiteral"],o=["open","fetch","replace","toString","assign","getElementsByTagName","setAttribute","setProperty","postMessage","createContextualFragment","createTextNode","setTimeout","createScriptURL","call"],h=["href","search","host","location","hostname","pathname","protocol","origin","src","domain","port","referrer","URL"],c=["document","href","search","host","location","hostname","pathname","protocol","origin","src","domain","port","referrer","URL"],l=["href","location","domain","backgroundImage","cssText","textContent","background","src","action","href"],p="(",u=")",d=function(t,e,i,s){t.push({start:e,end:i,value:s,index:t.length})},f=function(t,e,i,s,n,r){let f,m;switch(s){case"CallExpression":f=o,m=" vpn_call_fn(";break;case"VariableDeclarator":f=h,m=" vpn_get_obj(";break;case"AssignmentExpression":f=l,m=" vpn_set_obj(";break;case"MemberExpression":case"NewExpression":f=c,m=" vpn_get_obj(";break;default:throw new Error(`vpn_client: recursiveMember Unknown type "${s}"`)}if(i.computed&&("Literal"==i.property.type||a.indexOf(i.property.type)>-1)){if("Literal"==i.property.type&&-1==f.indexOf(i.property.name||i.property.value))return!1;d(r.changes,t,i.start,m),n(i.object,r);let s=r.source.indexOf("[",i.object.end);return d(r.changes,s,s+1,", "),"SequenceExpression"==i.property.type?(d(r.changes,s,i.property.start,p),n(i.property,r),d(r.changes,i.property.end,e,u),!0):(n(i.property,r),!0)}if(i.computed||"Identifier"!=i.property.type)return console.log("vpn_client: get Unknown node.property.type: ",i.property.type,i.property.start),!1;{let e=i.property.name||i.property.value;if(f.indexOf(e)>-1){d(r.changes,t,i.start,m),n(i.object,r);let e=r.source.indexOf(".",i.object.end);for(let t=e;t=i.property.start);t++)"."==r.source[t]&&(e=t);return d(r.changes,e,e+1,", "),d(r.changes,i.property.start,i.property.start,'"'),d(r.changes,i.property.end,i.property.end,'"'),!0}n(i.object,r)}},m={Program:function(t,e,i){let s=!1,n=!1;for(let i=0;i0?d(e.changes,i,s+1,", "):d(e.changes,i,s+1,"")}}else i(t.callee,e);for(let s=0;s-1){isVpnInit=!0;break}}isVpnInit&&(d(e.changes,t.init.start,t.init.start,"vpn_get_obj("),d(e.changes,t.init.end,t.init.end,u))}else t.init&&i(t.init,e)},AssignmentExpression:function(t,e,i){if("="===t.operator)if("Identifier"===t.left.type){let s=["location"],n=s.indexOf(t.left.name);n>-1?(d(e.changes,t.right.start,t.right.start,"vpn_set_obj(null,"+s[n]),d(e.changes,t.right.start,t.right.start,",("),i(t.right,e),d(e.changes,t.right.end,t.end,"))")):i(t.right,e)}else if("MemberExpression"===t.left.type)if(f(t.start,t.end,t.left,"AssignmentExpression",i,e)){let s=",",n=u;if("SequenceExpression"==t.right.type&&(s+=p,n+=u),t.left.computed){let i=e.source.indexOf("]",t.left.property.end);d(e.changes,i,t.right.start,s)}else d(e.changes,t.left.property.end,t.right.start,s);i(t.right,e),d(e.changes,t.right.end,t.end,n)}else i(t.right,e);else console.log(`vpn_client: get Unknown node.left.type "${t.left.type}"`);else"MemberExpression"===t.left.type&&"MemberExpression"===t.left.object.type&&i(t.left.object,e),i(t.right,e)},UpdateExpression:function(t,e,i){"MemberExpression"===t.argument.type&&(i(t.argument.object,e),t.argument.computed&&i(t.argument.property,e))},NewExpression:function(t,e,i){"MemberExpression"===t.callee.type?(d(e.changes,t.callee.start,t.callee.start,p),f(t.callee.start,t.callee.end,t.callee,"NewExpression",i,e)&&d(e.changes,t.callee.property.end,t.callee.end,u),d(e.changes,t.callee.end,t.callee.end,u)):i(t.callee,e);for(let s=0;s-1&&t.argument.object&&(i(t.argument.object,e),t.argument.computed&&i(t.argument.property,e)):i(t.argument,e)},WithStatement:function(t,e,i){},ChainExpression:function(){}},g={CallExpression:function(t,e,i){if(t.callee&&"Identifier"==t.callee.type)switch(t.callee.name){case"vpn_get_obj":if(2==t.arguments.length){let s=t.start;" "==e.source[s-1]&&(s-=1),d(e.changes,s,t.start+12,"");let n=e.source.indexOf(",",t.arguments[0].end),r=!0,a=e.source.indexOf("(",t.arguments[0].end);(-1==a||a>=t.arguments[1].start)&&(a=t.arguments[1].start,r=!1),i(t.arguments[0],e),d(e.changes,n,a,"["),i(t.arguments[1],e),d(e.changes,t.arguments[1].end,t.end,r?")]":"]")}break;case"vpn_set_obj":if(3==t.arguments.length){let s=t.start;" "==e.source[s-1]&&(s-=1),d(e.changes,s,t.start+12,"");let n=e.source.indexOf(",",t.arguments[0].end),r=!0,a=e.source.indexOf("(",t.arguments[0].end);(-1==a||a>=t.arguments[1].start)&&(a=t.arguments[1].start,r=!1),i(t.arguments[0],e),d(e.changes,n,a,"["),i(t.arguments[1],e),r=!0,a=e.source.indexOf("(",t.arguments[1].end),(-1==a||a>=t.arguments[2].start)&&(a=t.arguments[1].start,r=!1);let o=r?")]=":"]=",h=r?u:"";d(e.changes,t.arguments[1].end,t.arguments[2].start,o),i(t.arguments[2],e),d(e.changes,t.arguments[2].end,t.end,h)}break;case"vpn_call_fn":let s=t.start;" "==e.source[s-1]&&(s-=1),d(e.changes,s,t.start+12,""),i(t.arguments[0],e);let n=e.source.indexOf(",",t.arguments[0].end),r=!0,a=e.source.indexOf("(",t.arguments[0].end);if((-1==a||a>=t.arguments[1].start)&&(a=t.arguments[1].start,r=!1),"Literal"==t.arguments[1].type)if(d(e.changes,n,a,"."),d(e.changes,t.arguments[1].start,t.arguments[1].end,t.arguments[1].value),t.arguments.length>2){let i=p,s=e.source.indexOf("(",t.arguments[1].end);("SequenceExpression"==t.arguments[2].type||-1!=s&&s2){let i="](",s=e.source.indexOf("(",t.arguments[1].end);("SequenceExpression"==t.arguments[2].type||-1!=s&&s=3&&d(i.changes,s,n,"")},allowReturnOutsideFunction:!0})}catch(e){return console.log("traverse error",e),t}n.recursive(e,i,m),i.changes.sort((function(t,e){return t.start==e.start&&t.end==e.end?t.index-e.index:t.start==e.start?t.end-e.end:t.start-e.start}));let a=0,o="";return i.changes.forEach((function(e,i,s){a<=e.start&&(o+=t.slice(a,e.start)),o+=e.value,a=e.end})),a=3&&d(i.changes,s,n,"")},allowReturnOutsideFunction:!0})}catch(e){return t}n.recursive(e,i,g),i.changes.sort((function(t,e){return t.start==e.start&&t.end==e.end?t.index-e.index:t.start==e.start?t.end-e.end:t.start-e.start}));let r=0,a="";return i.changes.forEach((function(e,i,s){r<=e.start&&(a+=t.slice(r,e.start)),a+=e.value,r=e.end})),r=55296&&t<=57343||t>1114111?65533:null!==(e=n.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(s=String.fromCodePoint)&&void 0!==s?s:function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)},e.replaceCodePoint=r,e.default=function(t){return(0,e.fromCodePoint)(r(t))}},function(t,e,i){(function(t){const e=i(7),s=i(15);var n;n="undefined"!=typeof window?window:t,"undefined"!=typeof XMLHttpRequest&&(XMLHttpRequest.prototype.originOpen=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.originSend=XMLHttpRequest.prototype.send,n.originXMLHttpRequest=n.XMLHttpRequest),Function.prototype.originApply||(Function.prototype.originApply=Function.prototype.apply),n.vpnGlobal=s(n),n.originEval||(n.originEval=n.eval),e.init(n),n.vpn_call_fn=e.vpn_call_fn,n.vpn_set_obj=e.vpn_set_obj,n.vpn_get_obj=e.vpn_get_obj,n.vpn_rewrite_js=e.updateCode,n.vpn_client=e.run,n.vpn_client_js=e.vpn_client_js,n.get_ocstr=function(){return"function("},n.vpn_imgerrorfun=e.vpn_imgerrorfun,n.isRumpWindow="undefined"!=typeof window,n.onload=function(){if(document){iframes=document.getElementsByTagName("iframe");for(var t=0;t-1)return t;try{return s.traverse(t)}catch(e){return console.log("update code error",e),t}},vpn_get_obj:function(t,e){try{switch(e){case"domain":if(t===this.document)return n.getRUMPWEBHostname();break;case"referrer":if(t===this.document)return n.getRealUrl(t[e]);break;case"URL":case"href":return"undefined"!=typeof window&&parent&&t===parent.window.location?parent.vpnGlobal.document.location.href:n.getRealUrl(t[e]);case"search":case"pathname":case"src":case"hostname":case"host":case"protocol":case"origin":case"port":if(n.isElement(t)){if("search"===e)return n.getRealSearch(t[e]);if("pathname"==e)return n.getRealPath(t[e]);if("src"==e)return n.getRealUrl(t[e]);if("hostname"==e||"host"==e||"protocol"==e||"origin"==e||"port"==e){if(!t.href)return t.href;if(t.href.indexOf(_WEBVPN_IDENTIFICATION)>-1){let i=n.getRealUrl(t.href);if("host"==e)return i.split("://")[1].split("/")[0];if("hostname"==e){let t=i.split("://")[1].split("/")[0],e=t.lastIndexOf(":");return e>-1?t.slice(0,e):t}if("port"==e){let t=i.split("://")[1].split("/")[0],e=t.lastIndexOf(":"),s=t;return e>-1&&(s=t.slice(0,e)),t.length==s.length?"":t.replace(s,"").replace(":","")}if("protocol"==e)return i.split("://")[0]+":";if("origin"==e)return i.split("://")[0]+"://"+i.split("://")[1].split("/")[0]}else{if("host"==e)return _RUMP_WEB_HOST;if("hostname"==e){let t=_RUMP_WEB_HOST.lastIndexOf(":");return t>-1?_RUMP_WEB_HOST.slice(0,t):_RUMP_WEB_HOST}if("port"==e){let t=_RUMP_WEB_HOST.lastIndexOf(":"),e=_RUMP_WEB_HOST;return t>-1&&(e=_RUMP_WEB_HOST.slice(0,t)),_RUMP_WEB_HOST.length==e.length?"":_RUMP_WEB_HOST.replace(e,"").replace(":","")}if("protocol"==e)return _RUMP_WEB_SCHEME+":";if("origin"==e)return _RUMP_WEB_SCHEME+"://"+_RUMP_WEB_HOST}}}if("undefined"!=typeof window){if(t===this.location||t===this.document.location)return vpnGlobal.location[e];if(this.parent&&t===this.parent.location)return this.parent.vpnGlobal.location[e]}break;case"open":if(t===this)return vpnGlobal.open;break;case"document":t&&"[object Window]"==t.toString()&&n.evalIndexJs(t)}}catch(i){return t[e]}try{if("origin"===e&&t instanceof Object&&"message"===t.type&&t.source&&t.source.location&&"undefined"!=typeof window){const e=t.source.location.href;let i=new RegExp("\\/"+_WEBVPN_IDENTIFICATION+"\\/([\\w\\-_=]+)\\/([\\w\\-_=]+)\\/([^\\?]*)(\\?vpn-[\\d]+)?(.*)$"),s=e.match(i);return r.det(s[1])+"://"+r.det(s[2])}}catch(t){}return 1!=arguments.length||e?t[e]:t===this.location||t===this.document.location?vpnGlobal.location:this.parent&&t===this.parent.location?this.parent.vpnGlobal.location:t},vpn_set_obj:function(t,e,i){switch(e){case"location":if(t&&(t===this||t.opener===this||t==window.top||t==this.document||t.window===t)&&"undefined"!=typeof window)return t[e]=n.getVpnUrl(i,ctype="");break;case"href":if("undefined"!=typeof window&&t)return t[e]=n.getVpnUrl(i);case"src":case"action":if(n.isElement(t))return i instanceof Array&&i&&(i=i.join(",")),t[e]=n.getVpnUrl(i);break;case"backgroundImage":if(t&&null!=t.backgroundImage)return t[e]=n.rewriteHtml(i);break;case"cssText":if(t&&null!=t.cssText)return t[e]=n.rewriteHtml(i);break;case"background":if(t)return t[e]=n.rewriteHtml(i);break;case"textContent":if(n.isElement(t))return t[e]=n.rewriteHtml(i);break;case"domain":if(t===this.document)try{(window.frames.length!=parent.frames.length&&-1!=window._RUMP_WEB_HOST.indexOf(i)&&-1!=window.parent._RUMP_WEB_HOST.indexOf(i)||window==parent&&-1!=window._RUMP_WEB_HOST.indexOf(i))&&(i=_RUMP_HOST.split(":")[0])}catch(t){i=_RUMP_HOST.split(":")[0]}break;default:if(!t&&"undefined"!=typeof window)return e==window.location?n.getVpnUrl(i):i}return t[e]=i},vpn_call_fn:function(t,e){let i=[];for(let t=2;tt)return!1;if((i+=e[s+1])>=t)return!0}return!1}function d(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&l.test(String.fromCharCode(t)):!1!==e&&u(t,n)))}function f(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&p.test(String.fromCharCode(t)):!1!==e&&(u(t,n)||u(t,s)))))}var m=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function g(t,e){return new m(t,{beforeExpr:!0,binop:e})}var x={beforeExpr:!0},y={startsExpr:!0},_={};function v(t,e){return void 0===e&&(e={}),e.keyword=t,_[t]=new m(t,e)}var b={num:new m("num",y),regexp:new m("regexp",y),string:new m("string",y),name:new m("name",y),privateId:new m("privateId",y),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",x),semi:new m(";",x),colon:new m(":",x),dot:new m("."),question:new m("?",x),questionDot:new m("?."),arrow:new m("=>",x),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",x),backQuote:new m("`",y),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("/<=/>=",7),bitShift:g("<>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:g("??",1),_break:v("break"),_case:v("case",x),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",x),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",x),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",y),_if:v("if"),_return:v("return",x),_switch:v("switch"),_throw:v("throw",x),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",y),_super:v("super",y),_class:v("class",y),_extends:v("extends",x),_export:v("export"),_import:v("import",y),_null:v("null",y),_true:v("true",y),_false:v("false",y),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(S.source,"g");function C(t){return 10===t||13===t||8232===t||8233===t}function I(t,e,i){void 0===i&&(i=t.length);for(var s=e;s>10),56320+(1023&t)))}var L=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,V=function(t,e){this.line=t,this.column=e};V.prototype.offset=function(t){return new V(this.line,this.column+t)};var B=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function H(t,e){for(var i=1,s=0;;){var n=I(t,s,e);if(n<0)return new V(i,e-s);++i,s=n}}var U={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},D=!1;function W(t){var e={};for(var i in U)e[i]=t&&N(t,i)?t[i]:U[i];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!D&&"object"==typeof console&&console.warn&&(D=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),R(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}return R(e.onComment)&&(e.onComment=function(t,e){return function(i,s,n,r,a,o){var h={type:i?"Block":"Line",value:s,start:n,end:r};t.locations&&(h.loc=new B(this,a,o)),t.ranges&&(h.range=[n,r]),e.push(h)}}(e,e.onComment)),e}function F(t,e){return 2|(t?4:0)|(e?8:0)}var j=function(t,e,i){this.options=t=W(t),this.sourceFile=t.sourceFile,this.keywords=O(h[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var s="";!0!==t.allowReserved&&(s=a[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(s+=" await")),this.reservedWords=O(s);var n=(s?s+" ":"")+a.strict;this.reservedWordsStrict=O(n),this.reservedWordsStrictBind=O(n+" "+a.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(S).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},q={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};j.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},q.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},q.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},q.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},q.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||256&e.flags)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},q.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},q.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},q.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},q.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},q.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},j.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(s+1))}t+=e[0].length,k.lastIndex=t,t+=k.exec(this.input)[0].length,";"===this.input[t]&&t++}},G.eat=function(t){return this.type===t&&(this.next(),!0)},G.isContextual=function(t){return this.type===b.name&&this.value===t&&!this.containsEsc},G.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},G.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},G.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},G.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},G.semicolon=function(){this.eat(b.semi)||this.insertSemicolon()||this.unexpected()},G.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},G.expect=function(t){this.eat(t)||this.unexpected()},G.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var Q=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};G.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},G.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},G.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&s<56320)return!0;if(d(s,!0)){for(var n=i+1;f(s=this.input.charCodeAt(n),!0);)++n;if(92===s||s>55295&&s<56320)return!0;var r=this.input.slice(i,n);if(!c.test(r))return!0}return!1},X.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;k.lastIndex=this.pos;var t,e=k.exec(this.input),i=this.pos+e[0].length;return!(S.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(f(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},X.parseStatement=function(t,e,i){var s,n=this.type,r=this.startNode();switch(this.isLet(t)&&(n=b._var,s="let"),n){case b._break:case b._continue:return this.parseBreakContinueStatement(r,n.keyword);case b._debugger:return this.parseDebuggerStatement(r);case b._do:return this.parseDoStatement(r);case b._for:return this.parseForStatement(r);case b._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!t);case b._class:return t&&this.unexpected(),this.parseClass(r,!0);case b._if:return this.parseIfStatement(r);case b._return:return this.parseReturnStatement(r);case b._switch:return this.parseSwitchStatement(r);case b._throw:return this.parseThrowStatement(r);case b._try:return this.parseTryStatement(r);case b._const:case b._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(r,s);case b._while:return this.parseWhileStatement(r);case b._with:return this.parseWithStatement(r);case b.braceL:return this.parseBlock(!0,r);case b.semi:return this.parseEmptyStatement(r);case b._export:case b._import:if(this.options.ecmaVersion>10&&n===b._import){k.lastIndex=this.pos;var a=k.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===b._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!t);var c=this.value,l=this.parseExpression();return n===b.name&&"Identifier"===l.type&&this.eat(b.colon)?this.parseLabeledStatement(r,c,l,t):this.parseExpressionStatement(r,l)}},X.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(b.semi)||this.insertSemicolon()?t.label=null:this.type!==b.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(b.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},X.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===b._var||this.type===b._const||i){var s=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===b._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var r=this.isContextual("let"),a=!1,o=new Q,h=this.parseExpression(!(e>-1)||"await",o);return this.type===b._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===b._in?e>-1&&this.unexpected(e):t.await=e>-1),r&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,o),this.checkLValPattern(h),this.parseForIn(t,h)):(this.checkExpressionErrors(o,!0),e>-1&&this.unexpected(e),this.parseFor(t,h))},X.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Y|(i?0:J),!1,e)},X.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(b._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},X.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(b.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},X.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(b.braceL),this.labels.push(Z),this.enterScope(0);for(var i=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var s=this.type===b._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(b.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},X.parseThrowStatement=function(t){return this.next(),S.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var $=[];X.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(b.parenR),t},X.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===b._catch){var e=this.startNode();this.next(),this.eat(b.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(b._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},X.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},X.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(K),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},X.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},X.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},X.parseLabeledStatement=function(t,e,i,s){for(var n=0,r=this.labels;n=0;o--){var h=this.labels[o];if(h.statementStart!==t.start)break;h.statementStart=this.start,h.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},X.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},X.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(b.braceL),t&&this.enterScope(0);this.type!==b.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},X.parseFor=function(t,e){return t.init=e,this.expect(b.semi),t.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),t.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},X.parseForIn=function(t,e){var i=this.type===b._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},X.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(b.eq)?n.init=this.parseMaybeAssign(e):s||"const"!==i||this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"Identifier"===n.id.type||e&&(this.type===b._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(b.comma))break}return t},X.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Y=1,J=2;function tt(t,e){var i=e.key.name,s=t[i],n="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(n=(e.static?"s":"i")+e.kind),"iget"===s&&"iset"===n||"iset"===s&&"iget"===n||"sget"===s&&"sset"===n||"sset"===s&&"sget"===n?(t[i]="true",!1):!!s||(t[i]=n,!1)}function et(t,e){var i=t.computed,s=t.key;return!i&&("Identifier"===s.type&&s.name===e||"Literal"===s.type&&s.value===e)}X.parseFunction=function(t,e,i,s,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===b.star&&e&J&&this.unexpected(),t.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&Y&&(t.id=4&e&&this.type!==b.name?null:this.parseIdent(),!t.id||e&J||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(F(t.async,t.generator)),e&Y||(t.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,n),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Y?"FunctionDeclaration":"FunctionExpression")},X.parseFunctionParams=function(t){this.expect(b.parenL),t.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},X.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),n=this.startNode(),r=!1;for(n.body=[],this.expect(b.braceL);this.type!==b.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(r&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),r=!0):a.key&&"PrivateIdentifier"===a.key.type&&tt(s,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},X.parseClassElement=function(t){if(this.eat(b.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",n=!1,r=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===b.star?o=!0:s="static"}if(i.static=o,!s&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==b.star||this.canInsertSemicolon()?s="async":r=!0),!s&&(e>=9||!r)&&this.eat(b.star)&&(n=!0),!s&&!r&&!n){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=h:s=h)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===b.parenL||"method"!==a||n||r){var c=!i.static&&et(i,"constructor"),l=c&&t;c&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=c?"constructor":a,this.parseClassMethod(i,n,r,l)}else this.parseClassField(i);return i},X.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},X.parseClassElementName=function(t){this.type===b.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},X.parseClassMethod=function(t,e,i,s){var n=t.key;"constructor"===t.kind?(e&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):t.static&&et(t,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var r=t.value=this.parseMethod(e,i,s);return"get"===t.kind&&0!==r.params.length&&this.raiseRecoverable(r.start,"getter should have no params"),"set"===t.kind&&1!==r.params.length&&this.raiseRecoverable(r.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===r.params[0].type&&this.raiseRecoverable(r.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},X.parseClassField=function(t){if(et(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&et(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(b.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},X.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==b.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},X.parseClassId=function(t,e){this.type===b.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},X.parseClassSuper=function(t){t.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},X.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},X.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,n=0===s?null:this.privateNameStack[s-1],r=0;r=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==b.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},X.parseExport=function(t,e){if(this.next(),this.eat(b.star))return this.parseExportAllDeclaration(t,e);if(this.eat(b._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==b.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,s=t.specifiers;i=13&&this.type===b.string){var t=this.parseLiteral(this.value);return L.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},X.adaptDirectivePrologue=function(t){for(var e=0;e=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var it=j.prototype;it.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,n=t.properties;s=8&&!o&&"async"===h.name&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(nt.f_expr),this.parseFunction(this.startNodeAt(r,a),0,!1,!0,e);if(n&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(r,a),[h],!1,e);if(this.options.ecmaVersion>=8&&"async"===h.name&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return h=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(b.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,a),[h],!0,e)}return h;case b.regexp:var c=this.value;return(s=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},s;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return(s=this.startNode()).value=this.type===b._null?null:this.type===b._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case b.parenL:var l=this.start,p=this.parseParenAndDistinguishExpression(n,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(t.parenthesizedAssign=l),t.parenthesizedBind<0&&(t.parenthesizedBind=l)),p;case b.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(b.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case b.braceL:return this.overrideContext(nt.b_expr),this.parseObj(!1,t);case b._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},at.parseExprAtomDefault=function(){this.unexpected()},at.parseExprImport=function(t){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==b.parenL||t?this.type===b.dot?(e.meta=i,this.parseImportMeta(e)):void this.unexpected():this.parseDynamicImport(e)},at.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var e=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},at.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},at.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},at.parseParenExpression=function(){this.expect(b.parenL);var t=this.parseExpression();return this.expect(b.parenR),t},at.shouldParseArrow=function(t){return!this.canInsertSemicolon()},at.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,n=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,h=this.startLoc,c=[],l=!0,p=!1,u=new Q,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),r&&this.afterTrailingComma(b.parenR,!0)){p=!0;break}if(this.type===b.ellipsis){a=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),t&&this.shouldParseArrow(c)&&this.eat(b.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(s,n,c,e);c.length&&!p||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((i=this.startNodeAt(o,h)).expressions=c,this.finishNodeAt(i,"SequenceExpression",m,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(s,n);return x.expression=i,this.finishNode(x,"ParenthesizedExpression")}return i},at.parseParenItem=function(t){return t},at.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var ot=[];at.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,n=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,n,!0,!1),this.eat(b.parenL)?t.arguments=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ot,this.finishNode(t,"NewExpression")},at.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===b.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===b.backQuote,this.finishNode(i,"TemplateElement")},at.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===b.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(b.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(b.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},at.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},at.parseObj=function(t,e){var i=this.startNode(),s=!0,n={};for(i.properties=[],this.next();!this.eat(b.braceR);){if(s)s=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var r=this.parseProperty(t,e);t||this.checkPropClash(r,n,e),i.properties.push(r)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},at.parseProperty=function(t,e){var i,s,n,r,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===b.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===b.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(n=this.start,r=this.startLoc),t||(i=this.eat(b.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(a)):s=!1,this.parsePropertyValue(a,t,i,s,n,r,e,o),this.finishNode(a,"Property")},at.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},at.parsePropertyValue=function(t,e,i,s,n,r,a,o){(i||s)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===b.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,s)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===b.comma||this.type===b.braceR||this.type===b.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=n),t.kind="init",e?t.value=this.parseMaybeDefault(n,r,this.copyNode(t.key)):this.type===b.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(n,r,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},at.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(b.bracketR),t.key;t.computed=!1}return t.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},at.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},at.parseMethod=function(t,e,i){var s=this.startNode(),n=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|F(e,s.generator)|(i?128:0)),this.expect(b.parenL),s.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=n,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},at.parseArrowExpression=function(t,e,i,s){var n=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|F(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=n,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},at.parseFunctionBody=function(t,e,i,s){var n=e&&this.type!==b.braceL,r=this.strict,a=!1;if(n)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);r&&!o||(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var h=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=h}this.exitScope()},at.isSimpleParamList=function(t){for(var e=0,i=t;e-1||n.functions.indexOf(t)>-1||n.var.indexOf(t)>-1,n.lexical.push(t),this.inModule&&1&n.flags&&delete this.undefinedExports[t]}else if(4===e){this.currentScope().lexical.push(t)}else if(3===e){var r=this.currentScope();s=this.treatFunctionsAsVar?r.lexical.indexOf(t)>-1:r.lexical.indexOf(t)>-1||r.var.indexOf(t)>-1,r.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){s=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},ct.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},ct.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ct.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},ct.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var pt=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new B(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},ut=j.prototype;function dt(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}ut.startNode=function(){return new pt(this,this.start,this.startLoc)},ut.startNodeAt=function(t,e){return new pt(this,t,e)},ut.finishNode=function(t,e){return dt.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},ut.finishNodeAt=function(t,e,i,s){return dt.call(this,t,e,i,s)},ut.copyNode=function(t){var e=new pt(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var ft="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",mt=ft+" Extended_Pictographic",gt=mt+" EBase EComp EMod EPres ExtPict",xt={9:ft,10:mt,11:mt,12:gt,13:gt,14:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},yt={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},_t="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",vt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",bt=vt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",St=bt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Et=St+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ct=Et+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",It={9:vt,10:bt,11:St,12:Et,13:Ct,14:"Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},wt={};function kt(t){var e=wt[t]={binary:O(xt[t]+" "+_t),binaryOfStrings:O(yt[t]),nonBinary:{General_Category:O(_t),Script:O(It[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var Tt=0,At=[9,10,11,12,13,14];Tt=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=wt[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Rt(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function Ot(t){return t>=65&&t<=90||t>=97&&t<=122}Nt.prototype.reset=function(t,e,i){var s=-1!==i.indexOf("v"),n=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},Nt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},Nt.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var n=i.charCodeAt(t);if(!e&&!this.switchU||n<=55295||n>=57344||t+1>=s)return n;var r=i.charCodeAt(t+1);return r>=56320&&r<=57343?(n<<10)+r-56613888:n},Nt.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var n,r=i.charCodeAt(t);return!e&&!this.switchU||r<=55295||r>=57344||t+1>=s||(n=i.charCodeAt(t+1))<56320||n>57343?t+1:t+2},Nt.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},Nt.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},Nt.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},Nt.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},Nt.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,s=0,n=t;s-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(s=!0),"v"===a&&(n=!0)}this.options.ecmaVersion>=15&&s&&n&&this.raise(t.start,"Invalid regular expression flag")},Pt.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},Pt.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},Pt.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},Pt.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},Pt.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,n=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue),t.eat(125)))return-1!==n&&n=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},Pt.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},Pt.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},Pt.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!Rt(e)&&(t.lastIntValue=e,t.advance(),!0)},Pt.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!Rt(i);)t.advance();return t.pos!==e},Pt.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},Pt.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},Pt.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},Pt.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=M(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=M(t.lastIntValue);return!0}return!1},Pt.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return d(t,!0)||36===t||95===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Pt.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return f(t,!0)||36===t||95===t||8204===t||8205===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},Pt.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},Pt.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},Pt.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},Pt.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},Pt.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},Pt.regexp_eatZero=function(t){return 48===t.current()&&!Vt(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},Pt.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},Pt.regexp_eatControlLetter=function(t){var e=t.current();return!!Ot(e)&&(t.lastIntValue=e%32,t.advance(),!0)},Pt.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i,s=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(n&&r>=55296&&r<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=1024*(r-55296)+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=r}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((i=t.lastIntValue)>=0&&i<=1114111))return!0;n&&t.raise("Invalid unicode escape"),t.pos=s}return!1},Pt.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},Pt.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1};function Mt(t){return Ot(t)||95===t}function Lt(t){return Mt(t)||Vt(t)}function Vt(t){return t>=48&&t<=57}function Bt(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function Ht(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Ut(t){return t>=48&&t<=55}Pt.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=80===e)||112===e)){var s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&2===s&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},Pt.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,n)}return 0},Pt.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){N(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},Pt.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},Pt.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";Mt(e=t.current());)t.lastStringValue+=M(e),t.advance();return""!==t.lastStringValue},Pt.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";Lt(e=t.current());)t.lastStringValue+=M(e),t.advance();return""!==t.lastStringValue},Pt.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},Pt.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},Pt.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},Pt.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||-1!==e&&-1!==i||t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},Pt.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||Ut(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},Pt.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},Pt.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var s=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(i=1):t.raise("Invalid character in character class");if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},Pt.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return-1!==i&&-1!==s&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},Pt.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},Pt.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&2===s&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var n=this.regexp_eatCharacterClassEscape(t);if(n)return n;t.pos=e}return null},Pt.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},Pt.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},Pt.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},Pt.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&function(t){return 33===t||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t}(i))&&(!function(t){return 40===t||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125}(i)&&(t.advance(),t.lastIntValue=i,!0))},Pt.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},Pt.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!Vt(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},Pt.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},Pt.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Vt(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},Pt.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;Bt(i=t.current());)t.lastIntValue=16*t.lastIntValue+Ht(i),t.advance();return t.pos!==e},Pt.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},Pt.regexp_eatOctalDigit=function(t){var e=t.current();return Ut(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},Pt.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s=this.input.length?this.finishToken(b.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},Wt.readToken=function(t){return d(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},Wt.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-56613888},Wt.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,n=e;(s=I(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},Wt.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos8&&t<14||t>=5760&&w.test(String.fromCharCode(t))))break t;++this.pos}}},Wt.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},Wt.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},Wt.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},Wt.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=42===t?b.star:b.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,s=b.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(b.assign,i+1):this.finishOp(s,i)},Wt.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(b.assign,3);return this.finishOp(124===t?b.logicalOR:b.logicalAND,2)}return 61===e?this.finishOp(b.assign,2):this.finishOp(124===t?b.bitwiseOR:b.bitwiseAND,1)},Wt.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},Wt.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!S.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(b.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},Wt.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(b.assign,i+1):this.finishOp(b.bitShift,i)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(b.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Wt.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(b.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(61===t?b.eq:b.prefix,1)},Wt.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(b.questionDot,2)}if(63===e){if(t>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(b.assign,3);return this.finishOp(b.coalesce,2)}}return this.finishOp(b.question,1)},Wt.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+M(t)+"'")},Wt.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+M(t)+"'")},Wt.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},Wt.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(S.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var r=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(r);var o=this.regexpState||(this.regexpState=new Nt(this));o.reset(i,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(n,a)}catch(t){}return this.finishToken(b.regexp,{pattern:n,flags:a,value:h})},Wt.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&void 0===e,n=i&&48===this.input.charCodeAt(this.pos),r=this.pos,a=0,o=0,h=0,c=null==e?1/0:e;h=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=t)break;o=l,a=a*t+p}}return s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===r||null!=e&&this.pos-r!==e?null:a},Wt.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=Ft(this.input.slice(e,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,i)},Wt.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var i=this.pos-e>=2&&48===this.input.charCodeAt(e);i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&110===s){var n=Ft(this.input.slice(e,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(b.num,n)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var r,a=(r=this.input.slice(e,this.pos),i?parseInt(r,8):parseFloat(r.replace(/_/g,"")));return this.finishToken(b.num,a)},Wt.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},Wt.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(b.string,e)};var jt={};Wt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==jt)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Wt.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw jt;this.raise(t,e)},Wt.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==b.template&&this.type!==b.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(b.template,t)):36===i?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote));if(92===i)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(C(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},Wt.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(s,8);return n>255&&(s=s.slice(0,-1),n=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),"0"===s&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return C(e)?"":String.fromCharCode(e)}},Wt.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},Wt.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos=i)&&n[c](r,a,t),(null==e||r.start===e)&&(null==i||r.end===i)&&s(c,r))throw new o(r,a)}(t,r)}catch(t){if(t instanceof o)return t;throw t}}function p(t,e,i,s,n){i=a(i),s||(s=x);try{!function t(n,r,a){var h=a||n.type;if(!(n.start>e||n.end=e&&i(h,n))throw new o(n,r);s[h](n,r,t)}}(t,n)}catch(t){if(t instanceof o)return t;throw t}}function d(t,e,i,s,n){var r;return i=a(i),s||(s=x),function t(n,a,h){if(!(n.start>e)){var c=h||n.type;n.end<=e&&(!r||r.node.end-1)try{return r.restore(e)}catch(t){return console.log("restore error",t),e}return e},insertBeforeParamHandler:function(t,e){return e},goParamHandler:function(t,e){return e},pushStateParamHandler:function(t,e){return e[e.length-1]=s.getVpnUrl(e[e.length-1]),e[e.length-1].absoluteURL&&(e[e.length-1].absoluteURL=s.getVpnUrl(e[e.length-1].absoluteURL)),e},replaceStateParamHandler:function(t,e){return e[e.length-1]=s.getVpnUrl(e[e.length-1]),e[e.length-1].absoluteURL&&(e[e.length-1].absoluteURL=s.getVpnUrl(e[e.length-1].absoluteURL)),e},insertAdjacentHTMLParamHandler:function(t,e){return e[1]=s.rewriteHtml(e[1]),e},writeParamHandler:function(t,e){for(let t=0;t2?o.pop():2==o.length&&(o[1]=""),o=o.join("/"),o=encodeURIComponent(o));let h="";t.indexOf("expires=")>-1&&(h=t.split("expires=")[1].split(";")[0],h=new Date(h),"Invalid Date"!==h?h=n.dateFtt("yyyy-MM-dd hh:mm:ss",h):(h="",console.log("Invalid cookie Date",t)));let c="domain="+_RUMP_WEB_HOST.split(":")[0]+"&name="+i+"&value="+encodeURIComponent(r)+"&path="+o+"&expires="+h;return e.originOpen("POST","/"+_WEBVPN_IDENTIFICATION+"/cookie/",!1),e.setRequestHeader("cache-control","no-cache"),e.setRequestHeader("contentType","text/html;charset=uft-8"),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded;"),e.originSend(c),e.responseText},WorkerParamHandler:function(t,e){return 0==e[0].indexOf("blob")||s.startsWith(e[0],"data:text/javascript")||(e[0]=s.getVpnUrl(e[0],"vpn-11")),e},originGet:function(t,e){return"undefined"!=typeof vpn_origin?vpn_origin:_RUMP_WEB_SCHEME?_RUMP_WEB_SCHEME+"://"+_RUMP_WEB_HOST:origin},originSet:function(t,e){return vpn_origin=e},BlobParamHandler:function(t,e){if(e[1]&&(e[1].type.indexOf("image")>-1||e[1].type.indexOf("csv")>-1||e[1].type.indexOf("octet-stream")>-1||e[1].type.indexOf("officedocument.spreadsheetml.sheet")>-1))return e;if(e[0]instanceof Array&&"string"==typeof e[0][0]){let t='var _RUMP_SCHEME = "'+_RUMP_SCHEME+'";var _RUMP_HOST = "'+_RUMP_HOST+'";var _RUMP_WEB_SCHEME = "'+_RUMP_WEB_SCHEME+'";var _WEBVPN_IDENTIFICATION = "'+_WEBVPN_IDENTIFICATION+'";var _RUMP_WEB_HOST = "'+_RUMP_WEB_HOST+'";';e[0][0]=t+"try{importScripts('"+_RUMP_SCHEME+"://"+_RUMP_HOST+"/frontend_static/webvpn/index.js');}catch(error){console.log(error)}"+e[0][0]}return e}};t.exports=o}).call(this,i(2))},function(t,e,i){(function(e){const s=i(3);i(1);"undefined"!=typeof window&&window;t.exports.createMethod=function(t,e,i,s,n){if(t&&e){if(r.toString=Function.prototype.bind.call(Function.prototype.toString,e),e.prototype?r.prototype=e.prototype:r.__proto__=e.__proto__||r.__proto__,"WebSocket"==i)for(let t in e)"toString"!=t&&"prototype"!=t&&"__proto__"!=t&&(r[t]=e[t]);return r}function r(){let t,i=[];for(let t=0;tt.location.hash,set(e){t.location.hash=e}}),Object.defineProperty(e,"host",{get:()=>_RUMP_WEB_HOST,set(e){t.location.host=e}}),Object.defineProperty(e,"hostname",{get:()=>s.getRUMPWEBHostname(),set(e){t.location.hostname=e}}),Object.defineProperty(e,"href",{get:()=>s.getRealUrl(t.location.href),set(e){t.location.href=s.getVpnUrl(e)}}),Object.defineProperty(e,"pathname",{get:()=>s.getRealPath(t.location.pathname),set(e){t.location.pathname=e}}),Object.defineProperty(e,"port",{get:()=>s.getRUMPWEBPort(),set(e){t.location.port=e}}),Object.defineProperty(e,"protocol",{get:()=>s.getRUMPWEBScheme(),set(e){t.location.protocol=e}}),Object.defineProperty(e,"search",{get:()=>s.getRealSearch(t.location.search),set(e){t.location.search=e}}),Object.defineProperty(e,"origin",{get:()=>s.getRUMPWEBOrigin(),set(e){t.location.origin=e}});var i={domain:_RUMP_WEB_HOST.split(":")[0],write:function(){for(let e=0;e=s.Zero&&t<=s.Nine}!function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Num=35]="Num",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"}(s||(s={})),function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"}(n||(n={})),function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"}(r||(r={}));const l={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class p{constructor({xmlMode:t=!1,decodeEntities:e=!0},i){this.cbs=i,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=e,this.entityTrie=t?a.xmlDecodeTree:a.htmlDecodeTree}reset(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&s.Amp}stateSpecialStartSequence(t){const e=this.sequenceIndex===this.currentSequence.length;if(e?h(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===s.Gt||o(t)){const e=this.index-this.currentSequence.length;if(this.sectionStart=s.LowerA&&t<=s.LowerZ||t>=s.UpperA&&t<=s.UpperZ}(t)}startSpecial(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=n.SpecialStartSequence}stateBeforeTagName(t){if(t===s.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===s.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const e=32|t;this.sectionStart=this.index,this.xmlMode||e!==l.TitleEnd[2]?this.state=this.xmlMode||e!==l.ScriptEnd[2]?n.InTagName:n.BeforeSpecialS:this.startSpecial(l.TitleEnd,3)}else t===s.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(t))}stateInTagName(t){h(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){o(t)||(t===s.Gt?this.state=n.Text:(this.state=this.isTagStartChar(t)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===s.Gt||o(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===s.Gt||this.fastForwardTo(s.Gt))&&(this.state=n.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===s.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===s.Slash?this.state=n.InSelfClosingTag:o(t)||(this.state=n.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===s.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(t)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===s.Eq||h(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===s.Eq?this.state=n.BeforeAttributeValue:t===s.Slash||t===s.Gt?(this.cbs.onattribend(r.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t)):o(t)||(this.cbs.onattribend(r.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===s.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):t===s.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(t)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===s.DoubleQuote?r.Double:r.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&t===s.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,s.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,s.SingleQuote)}stateInAttributeValueNoQuotes(t){o(t)||t===s.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===s.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)}stateBeforeDeclaration(t){t===s.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=t===s.Dash?n.BeforeComment:n.InDeclaration}stateInDeclaration(t){(t===s.Gt||this.fastForwardTo(s.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===s.Gt||this.fastForwardTo(s.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===s.Dash?(this.state=n.InCommentLike,this.currentSequence=l.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration}stateInSpecialComment(t){(t===s.Gt||this.fastForwardTo(s.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const e=32|t;e===l.ScriptEnd[3]?this.startSpecial(l.ScriptEnd,4):e===l.StyleEnd[3]?this.startSpecial(l.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===s.Num?this.state=n.BeforeNumericEntity:t===s.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=Object(a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const e=this.trieCurrent&a.BinTrieFlags.VALUE_LENGTH;if(e){const i=(e>>14)-1;if(this.allowLegacyEntity()||t===s.Semi){const t=this.index-this.entityExcess+1;t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,0===i&&this.emitNamedEntity()}else this.trieIndex+=i}}emitNamedEntity(){if(this.state=this.baseState,0===this.entityResult)return;switch((this.entityTrie[this.entityResult]&a.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~a.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(32|t)===s.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){const e=this.index-this.entityExcess-1;e+2+Number(this.state===n.InHexEntity)!==this.index&&(e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.sectionStart=this.index+Number(t),this.emitCodePoint(Object(a.replaceCodePoint)(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===s.Semi?this.emitNumericEntity(!0):c(t)?(this.entityResult=10*this.entityResult+(t-s.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===s.Semi?this.emitNumericEntity(!0):c(t)?(this.entityResult=16*this.entityResult+(t-s.Zero),this.entityExcess++):!function(t){return t>=s.UpperA&&t<=s.UpperF||t>=s.LowerA&&t<=s.LowerF}(t)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|t)-s.LowerA+10),this.entityExcess++)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==n.InAttributeValueDq&&this.state!==n.InAttributeValueSq&&this.state!==n.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index0&&r.has(this.stack[this.stack.length-1]);){const t=this.stack.pop();null===(i=(e=this.cbs).onclosetag)||void 0===i||i.call(e,t,!0)}this.isVoidElement(t)||(this.stack.push(t),_.has(t)?this.foreignContext.push(!0):v.has(t)&&this.foreignContext.push(!1)),null===(n=(s=this.cbs).onopentagname)||void 0===n||n.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var e,i;this.startIndex=this.openTagStart,this.attribs&&(null===(i=(e=this.cbs).onopentag)||void 0===i||i.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,e){var i,s;this.endIndex=e;let n=this.getSlice(t,e);if(this.lowerCaseTagNames&&(n=n.toLowerCase()),(_.has(n)||v.has(n))&&this.foreignContext.pop(),this.isVoidElement(n))this.options.xmlMode||"br"!==n||null===(s=(i=this.cbs).onclosetag)||void 0===s||s.call(i,"br",!1);else{let t=-1;for(let e=this.stack.length;e>0;e--)if(this.stack[e-1]===n){t=e-1;break}if(-1===t&&this.cbs.onclosetag(n,!1),-1!==t)if(this.cbs.onclosetag){let e=this.stack.length-t;for(;e--;)this.cbs.onclosetag(this.stack.pop(),0!==e)}else this.stack.length=t;else this.options.xmlMode||"p"!==n||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):(this.onopentagend(t),this.cbs.onselfclose())}closeCurrentTag(t){var e,i;const s=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===s&&(null===(i=(e=this.cbs).onclosetag)||void 0===i||i.call(e,s,!t),this.stack.pop())}onattribname(t,e){this.startIndex=t;const i=this.getSlice(t,e);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(t,e){this.attribvalue+=this.getSlice(t,e)}onattribentity(t){this.attribvalue+=Object(a.fromCodePoint)(t)}onattribend(t,e){var i,s;this.endIndex=e,t=t===r.Double?'"':t===r.Single?"'":(r.NoValue,""),null===(s=(i=this.cbs).onattribute)||void 0===s||s.call(i,this.attribname,this.attribvalue,t),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]={value:this.attribvalue,wrap:t}),this.attribvalue=""}getInstructionName(t){const e=t.search(b);let i=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(t,e){this.endIndex=e;const i=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const t=this.getInstructionName(i);this.cbs.onprocessinginstruction("!"+t,"!"+i)}this.startIndex=e+1}onprocessinginstruction(t,e){this.endIndex=e;const i=this.getSlice(t,e);if(this.cbs.onprocessinginstruction){const t=this.getInstructionName(i);this.cbs.onprocessinginstruction("?"+t,"?"+i)}this.startIndex=e+1}oncomment(t,e,i){var s,n,r,a;this.endIndex=e,null===(n=(s=this.cbs).oncomment)||void 0===n||n.call(s,this.getSlice(t,e-i)),null===(a=(r=this.cbs).oncommentend)||void 0===a||a.call(r),this.startIndex=e+1}oncdata(t,e,i){var s,n,r,a,o,h,c,l,p,u;this.endIndex=e;const d=this.getSlice(t,e-i);this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(s=this.cbs).oncdatastart)||void 0===n||n.call(s),null===(a=(r=this.cbs).ontext)||void 0===a||a.call(r,d),null===(h=(o=this.cbs).oncdataend)||void 0===h||h.call(o)):(null===(l=(c=this.cbs).oncomment)||void 0===l||l.call(c,`[CDATA[${d}]]`),null===(u=(p=this.cbs).oncommentend)||void 0===u||u.call(p)),this.startIndex=e+1}onend(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let t=this.stack.length;t>0;this.cbs.onclosetag(this.stack[--t],!0));}null===(e=(t=this.cbs).onend)||void 0===e||e.call(t)}reset(){var t,e,i,s;null===(e=(t=this.cbs).onreset)||void 0===e||e.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(s=(i=this.cbs).onparserinit)||void 0===s||s.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);for(;e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,e-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var e,i;this.ended?null===(i=(e=this.cbs).onerror)||void 0===i||i.call(e,new Error(".write() after done!")):(this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++))}end(t){var e,i;this.ended?null===(i=(e=this.cbs).onerror)||void 0===i||i.call(e,Error(".end() after done!")):(t&&this.write(t),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex