Spaces:
Paused
Paused
| ;(()=>{var aa=Object.create,Je=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,oa=Object.getOwnPropertyNames,ca=Object.getPrototypeOf,ua=Object.prototype.hasOwnProperty,la=(e,t,i)=>t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,Nt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fr=(e,t)=>{for(var i in t)Je(e,i,{get:t[i],enumerable:!0})},ha=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of oa(t))!ua.call(e,n)&&n!==i&&Je(e,n,{get:()=>t[n],enumerable:!(r=sa(t,n))||r.enumerable});return e},Ze=(e,t,i)=>(i=null!=e?aa(ca(e)):{},ha(!t&&e&&e.__esModule?i:Je(i,"default",{value:e,enumerable:!0}),e)),q=(e,t,i)=>(la(e,"symbol"!=typeof t?t+"":t,i),i),Mt=Nt(((e,t)=>{function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var i,r="",n=0,s=-1,a=0,o=0;o<=e.length;++o){if(o<e.length)i=e.charCodeAt(o);else{if(47===i)break;i=47}if(47===i){if(s!==o-1&&1!==a)if(s!==o-1&&2===a){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",n=0):n=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),s=o,a=0;continue}}else if(2===r.length||1===r.length){r="",n=0,s=o,a=0;continue}t&&(r.length>0?r+="/..":r="..",n=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),n=o-s-1;s=o,a=0}else 46===i&&-1!==a?++a:a=-1}return r}var n={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var a;s>=0?a=arguments[s]:(void 0===e&&(e=process.cwd()),a=e),i(a),0!==a.length&&(t=a+"/"+t,n=47===a.charCodeAt(0))}return t=r(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0===(e=r(e,!t)).length&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":n.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t||(e=n.resolve(e))===(t=n.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var s=e.length,a=s-r,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var c=t.length-o,l=a<c?a:c,p=-1,h=0;h<=l;++h){if(h===l){if(c>l){if(47===t.charCodeAt(o+h))return t.slice(o+h+1);if(0===h)return t.slice(o+h)}else a>l&&(47===e.charCodeAt(r+h)?p=h:0===h&&(p=0));break}var u=e.charCodeAt(r+h);if(u!==t.charCodeAt(o+h))break;47===u&&(p=h)}var d="";for(h=r+p+1;h<=s;++h)(h===s||47===e.charCodeAt(h))&&(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+p):(o+=p,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!a){n=r+1;break}}else-1===c&&(a=!1,c=r+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=c))}return n===s?s=c:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else-1===s&&(a=!1,s=r+1);return-1===s?"":e.slice(n,s)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(47!==c)-1===n&&(s=!1,n=o+1),46===c?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){r=o+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var i=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+r:i+e+r:r}("/",e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),s=47===n;s?(t.root="/",r=1):r=0;for(var a=-1,o=0,c=-1,l=!0,p=e.length-1,h=0;p>=r;--p)if(47!==(n=e.charCodeAt(p)))-1===c&&(l=!1,c=p+1),46===n?-1===a?a=p:1!==h&&(h=1):-1!==a&&(h=-1);else if(!l){o=p+1;break}return-1===a||-1===c||0===h||1===h&&a===c-1&&a===o+1?-1!==c&&(t.base=t.name=0===o&&s?e.slice(1,c):e.slice(o,c)):(0===o&&s?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(o,a),t.base=e.slice(o,c)),t.ext=e.slice(a,c)),o>0?t.dir=e.slice(0,o-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,t.exports=n})),wn=Nt((e=>{e.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var i={},n=(t||{}).decode||r,a=0;a<e.length;){var o=e.indexOf("=",a);if(-1===o)break;var c=e.indexOf(";",a);if(-1===c)c=e.length;else if(c<o){a=e.lastIndexOf(";",o-1)+1;continue}var l=e.slice(a,o).trim();if(void 0===i[l]){var p=e.slice(o+1,c).trim();34===p.charCodeAt(0)&&(p=p.slice(1,-1)),i[l]=s(p,n)}a=c+1}return i},e.serialize=function(e,r,s){var a=s||{},o=a.encode||n;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var c=o(r);if(c&&!i.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=a.maxAge){var p=a.maxAge-0;if(isNaN(p)||!isFinite(p))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(p)}if(a.domain){if(!i.test(a.domain))throw new TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw new TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){var h=a.expires;if(!function(e){return"[object Date]"===t.call(e)||e instanceof Date}(h)||isNaN(h.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+h.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.priority){switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var t=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function r(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function n(e){return encodeURIComponent(e)}function s(e,t){try{return t(e)}catch{return e}}})),Sn=Nt(((e,t)=>{var i={decodeValues:!0,map:!1,silent:!1};function r(e){return"string"==typeof e&&!!e.trim()}function n(e,t){var n=e.split(";").filter(r),s=function(e){var t="",i="",r=e.split("=");return r.length>1?(t=r.shift(),i=r.join("=")):i=e,{name:t,value:i}}(n.shift()),a=s.name,o=s.value;t=t?Object.assign({},i,t):i;try{o=t.decodeValues?decodeURIComponent(o):o}catch(e){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+o+"'. Set options.decodeValues to false to disable this feature.",e)}var c={name:a,value:o};return n.forEach((function(e){var t=e.split("="),i=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"===i?c.expires=new Date(r):"max-age"===i?c.maxAge=parseInt(r,10):"secure"===i?c.secure=!0:"httponly"===i?c.httpOnly=!0:"samesite"===i?c.sameSite=r:c[i]=r})),c}function s(e,t){if(t=t?Object.assign({},i,t):i,!e)return t.map?{}:[];if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var s=e.headers[Object.keys(e.headers).find((function(e){return"set-cookie"===e.toLowerCase()}))];!s&&e.headers.cookie&&!t.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=s}if(Array.isArray(e)||(e=[e]),(t=t?Object.assign({},i,t):i).map){return e.filter(r).reduce((function(e,i){var r=n(i,t);return e[r.name]=r,e}),{})}return e.filter(r).map((function(e){return n(e,t)}))}t.exports=s,t.exports.parse=s,t.exports.parseString=n,t.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,i,r,n,s,a=[],o=0;function c(){for(;o<e.length&&/\s/.test(e.charAt(o));)o+=1;return o<e.length}for(;o<e.length;){for(t=o,s=!1;c();)if(","===(i=e.charAt(o))){for(r=o,o+=1,c(),n=o;o<e.length&&"="!==(i=e.charAt(o))&&";"!==i&&","!==i;)o+=1;o<e.length&&"="===e.charAt(o)?(s=!0,o=n,a.push(e.substring(t,r)),t=o):o=r+1}else o+=1;(!s||o>=e.length)&&a.push(e.substring(t,e.length))}return a}})),gr=Ze(Mt()),et={"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/http":{source:"iana"},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/sql":{source:"iana",extensions:["sql"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-gzip":{source:"apache"},"application/x-javascript":{compressible:!0},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/red":{source:"iana"},"audio/rtx":{source:"iana"},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/webp":{source:"iana",extensions:["webp"]},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/ecmascript":{source:"apache"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]}},xr=/^\s*([^;\s]*)(?:;|\s|$)/,fa=/^text\//i,U={};function yr(e){if(!e||"string"!=typeof e)return!1;var t=xr.exec(e),i=t&&et[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!fa.test(t[1]))&&"UTF-8"}function da(e){if(!e||"string"!=typeof e)return!1;var t=-1===e.indexOf("/")?U.lookup(e):e;if(!t)return!1;if(-1===t.indexOf("charset")){var i=U.charset(t);i&&(t+="; charset="+i.toLowerCase())}return t}function ma(e){if(!e||"string"!=typeof e)return!1;var t=xr.exec(e),i=t&&U.extensions[t[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function ya(e){if(!e||"string"!=typeof e)return!1;var t=(0,gr.extname)("x."+e).toLowerCase().substr(1);return t&&U.types[t]||!1}function ga(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(et).forEach((function(r){var n=et[r],s=n.extensions;if(s&&s.length){e[r]=s;for(var a=0;a<s.length;a++){var o=s[a];if(t[o]){var c=i.indexOf(et[t[o]].source),l=i.indexOf(n.source);if("application/octet-stream"!==t[o]&&(c>l||c===l&&"application/"===t[o].substr(0,12)))continue}t[o]=r}}}))}U.charset=yr,U.charsets={lookup:yr},U.contentType=da,U.extension=ma,U.extensions=Object.create(null),U.lookup=ya,U.types=Object.create(null),ga(U.extensions,U.types);var _r=U,Us=Ze(Mt(),1),tt={};fr(tt,{deleteDB:()=>Ca,openDB:()=>$t,unwrap:()=>Pe,wrap:()=>G});var xa=(e,t)=>t.some((t=>e instanceof t)),br,wr;function _a(){return br||(br=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function ba(){return wr||(wr=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var vr=new WeakMap,Ot=new WeakMap,Sr=new WeakMap,Dt=new WeakMap,Ft=new WeakMap;function wa(e){let t=new Promise(((t,i)=>{let r=()=>{e.removeEventListener("success",n),e.removeEventListener("error",s)},n=()=>{t(G(e.result)),r()},s=()=>{i(e.error),r()};e.addEventListener("success",n),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&vr.set(t,e)})).catch((()=>{})),Ft.set(t,e),t}function va(e){if(Ot.has(e))return;let t=new Promise(((t,i)=>{let r=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",s),e.removeEventListener("abort",s)},n=()=>{t(),r()},s=()=>{i(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",n),e.addEventListener("error",s),e.addEventListener("abort",s)}));Ot.set(e,t)}var Vt={get(e,t,i){if(e instanceof IDBTransaction){if("done"===t)return Ot.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Sr.get(e);if("store"===t)return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return G(e[t])},set:(e,t,i)=>(e[t]=i,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Er(e){Vt=e(Vt)}function Sa(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?ba().includes(e)?function(...t){return e.apply(Pe(this),t),G(vr.get(this))}:function(...t){return G(e.apply(Pe(this),t))}:function(t,...i){let r=e.call(Pe(this),t,...i);return Sr.set(r,t.sort?t.sort():[t]),G(r)}}function Ea(e){return"function"==typeof e?Sa(e):(e instanceof IDBTransaction&&va(e),xa(e,_a())?new Proxy(e,Vt):e)}function G(e){if(e instanceof IDBRequest)return wa(e);if(Dt.has(e))return Dt.get(e);let t=Ea(e);return t!==e&&(Dt.set(e,t),Ft.set(t,e)),t}var Pe=e=>Ft.get(e);function $t(e,t,{blocked:i,upgrade:r,blocking:n,terminated:s}={}){let a=indexedDB.open(e,t),o=G(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(G(a.result),e.oldVersion,e.newVersion,G(a.transaction),e)})),i&&a.addEventListener("blocked",(e=>i(e.oldVersion,e.newVersion,e))),o.then((e=>{s&&e.addEventListener("close",(()=>s())),n&&e.addEventListener("versionchange",(e=>n(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}function Ca(e,{blocked:t}={}){let i=indexedDB.deleteDatabase(e);return t&&i.addEventListener("blocked",(e=>t(e.oldVersion,e))),G(i).then((()=>{}))}var ka=["get","getKey","getAll","getAllKeys","count"],Aa=["put","add","delete","clear"],Bt=new Map;function Cr(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Bt.get(t))return Bt.get(t);let i=t.replace(/FromIndex$/,""),r=t!==i,n=Aa.includes(i);if(!(i in(r?IDBIndex:IDBObjectStore).prototype)||!n&&!ka.includes(i))return;let s=async function(e,...t){let s=this.transaction(e,n?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[i](...t),n&&s.done]))[0]};return Bt.set(t,s),s}Er((e=>({...e,get:(t,i,r)=>Cr(t,i)||e.get(t,i,r),has:(t,i)=>!!Cr(t,i)||e.has(t,i)})));var La=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Rr=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Pa="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Ir="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",jt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ut="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ra={5:Ut,"5module":Ut+" export import",6:Ut+" const class extends export import super"},Ia=/^in(stanceof)?$/,Ta=new RegExp("["+Ir+"]"),Na=new RegExp("["+Ir+Pa+"]");function Wt(e,t){for(var i=65536,r=0;r<t.length;r+=2){if((i+=t[r])>e)return!1;if((i+=t[r+1])>=e)return!0}return!1}function ce(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Ta.test(String.fromCharCode(e)):!1!==t&&Wt(e,Rr)))}function be(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Na.test(String.fromCharCode(e)):!1!==t&&(Wt(e,Rr)||Wt(e,La)))))}var L=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function z(e,t){return new L(e,{beforeExpr:!0,binop:t})}var K={beforeExpr:!0},H={startsExpr:!0},zt={};function k(e,t){return void 0===t&&(t={}),t.keyword=e,zt[e]=new L(e,t)}var u={num:new L("num",H),regexp:new L("regexp",H),string:new L("string",H),name:new L("name",H),privateId:new L("privateId",H),eof:new L("eof"),bracketL:new L("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new L("]"),braceL:new L("{",{beforeExpr:!0,startsExpr:!0}),braceR:new L("}"),parenL:new L("(",{beforeExpr:!0,startsExpr:!0}),parenR:new L(")"),comma:new L(",",K),semi:new L(";",K),colon:new L(":",K),dot:new L("."),question:new L("?",K),questionDot:new L("?."),arrow:new L("=>",K),template:new L("template"),invalidTemplate:new L("invalidTemplate"),ellipsis:new L("...",K),backQuote:new L("`",H),dollarBraceL:new L("${",{beforeExpr:!0,startsExpr:!0}),eq:new L("=",{beforeExpr:!0,isAssign:!0}),assign:new L("_=",{beforeExpr:!0,isAssign:!0}),incDec:new L("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new L("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:z("||",1),logicalAND:z("&&",2),bitwiseOR:z("|",3),bitwiseXOR:z("^",4),bitwiseAND:z("&",5),equality:z("==/!=/===/!==",6),relational:z("</>/<=/>=",7),bitShift:z("<</>>/>>>",8),plusMin:new L("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:z("%",10),star:z("*",10),slash:z("/",10),starstar:new L("**",{beforeExpr:!0}),coalesce:z("??",1),_break:k("break"),_case:k("case",K),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",K),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",K),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",H),_if:k("if"),_return:k("return",K),_switch:k("switch"),_throw:k("throw",K),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",H),_super:k("super",H),_class:k("class",H),_extends:k("extends",K),_export:k("export"),_import:k("import",H),_null:k("null",H),_true:k("true",H),_false:k("false",H),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Y=/\r\n?|\n|\u2028|\u2029/,Ma=new RegExp(Y.source,"g");function we(e){return 10===e||13===e||8232===e||8233===e}function Tr(e,t,i){void 0===i&&(i=e.length);for(var r=t;r<i;r++){var n=e.charCodeAt(r);if(we(n))return r<i-1&&13===n&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var Nr=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,X=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Mr=Object.prototype,Da=Mr.hasOwnProperty,Oa=Mr.toString,Ne=Object.hasOwn||function(e,t){return Da.call(e,t)},kr=Array.isArray||function(e){return"[object Array]"===Oa.call(e)};function pe(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function fe(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var Va=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ie=function(e,t){this.line=e,this.column=t};Ie.prototype.offset=function(e){return new Ie(this.line,this.column+e)};var st=function(e,t,i){this.start=t,this.end=i,null!==e.sourceFile&&(this.source=e.sourceFile)};function Dr(e,t){for(var i=1,r=0;;){var n=Tr(e,r,t);if(n<0)return new Ie(i,t-r);++i,r=n}}var qt={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},Ar=!1;function Fa(e){var t={};for(var i in qt)t[i]=e&&Ne(e,i)?e[i]:qt[i];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Ar&&"object"==typeof console&&console.warn&&(Ar=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),(!e||null==e.allowHashBang)&&(t.allowHashBang=t.ecmaVersion>=14),kr(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return kr(t.onComment)&&(t.onComment=Ba(t,t.onComment)),t}function Ba(e,t){return function(i,r,n,s,a,o){var c={type:i?"Block":"Line",value:r,start:n,end:s};e.locations&&(c.loc=new st(this,a,o)),e.ranges&&(c.range=[n,s]),t.push(c)}}var Te=1,ve=2,Kt=4,Or=8,Vr=16,Fr=32,Xt=64,Br=128,Me=256,Qt=Te|ve|Me;function Yt(e,t){return ve|(e?Kt:0)|(t?Or:0)}var rt=0,Jt=1,le=2,$r=3,jr=4,Ur=5,T=function(e,t,i){this.options=e=Fa(e),this.sourceFile=e.sourceFile,this.keywords=pe(Ra[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=jt[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=pe(r);var n=(r?r+" ":"")+jt.strict;this.reservedWordsStrict=pe(n),this.reservedWordsStrictBind=pe(n+" "+jt.strictBind),this.input=String(t),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(Y).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=u.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"===e.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&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Te),this.regexpState=null,this.privateNameStack=[]},ie={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}};T.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},ie.inFunction.get=function(){return(this.currentVarScope().flags&ve)>0},ie.inGenerator.get=function(){return(this.currentVarScope().flags&Or)>0&&!this.currentVarScope().inClassFieldInit},ie.inAsync.get=function(){return(this.currentVarScope().flags&Kt)>0&&!this.currentVarScope().inClassFieldInit},ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Me)return!1;if(t.flags&ve)return(t.flags&Kt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&Xt)>0||i||this.options.allowSuperOutsideMethod},ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Br)>0},ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(ve|Me))>0||i},ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Me)>0},T.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=this,r=0;r<e.length;r++)i=e[r](i);return i},T.parse=function(e,t){return new this(t,e).parse()},T.parseExpressionAt=function(e,t,i){var r=new this(i,e,t);return r.nextToken(),r.parseExpression()},T.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(T.prototype,ie);var $=T.prototype,$a=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;$.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){X.lastIndex=e,e+=X.exec(this.input)[0].length;var t=$a.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){X.lastIndex=e+t[0].length;var i=X.exec(this.input),r=i.index+i[0].length,n=this.input.charAt(r);return";"===n||"}"===n||Y.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(n)||"!"===n&&"="===this.input.charAt(r+1))}e+=t[0].length,X.lastIndex=e,e+=X.exec(this.input)[0].length,";"===this.input[e]&&e++}},$.eat=function(e){return this.type===e&&(this.next(),!0)},$.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc},$.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},$.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||Y.test(this.input.slice(this.lastTokEnd,this.start))},$.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$.semicolon=function(){!this.eat(u.semi)&&!this.insertSemicolon()&&this.unexpected()},$.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$.expect=function(e){this.eat(e)||this.unexpected()},$.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ot=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},$.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,r=e.doubleProto;if(!t)return i>=0||r>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},$.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},$.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var w=T.prototype;w.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==u.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var r=0,n=Object.keys(this.undefinedExports);r<n.length;r+=1){var s=n[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Zt={kind:"loop"},ja={kind:"switch"};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;X.lastIndex=this.pos;var t=X.exec(this.input),i=this.pos+t[0].length,r=this.input.charCodeAt(i);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(ce(r,!0)){for(var n=i+1;be(r=this.input.charCodeAt(n),!0);)++n;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(i,n);if(!Ia.test(s))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X.lastIndex=this.pos;var e,t=X.exec(this.input),i=this.pos+t[0].length;return!(Y.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(be(e=this.input.charCodeAt(i+8))||e>55295&&e<56320))},w.parseStatement=function(e,t,i){var r,n=this.type,s=this.startNode();switch(this.isLet(e)&&(n=u._var,r="let"),n){case u._break:case u._continue:return this.parseBreakContinueStatement(s,n.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case u._class:return e&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock(!0,s);case u.semi:return this.parseEmptyStatement(s);case u._export:case u._import:if(this.options.ecmaVersion>10&&n===u._import){X.lastIndex=this.pos;var a=X.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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===u._import?this.parseImport(s):this.parseExport(s,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,p=this.parseExpression();return n===u.name&&"Identifier"===p.type&&this.eat(u.colon)?this.parseLabeledStatement(s,l,p,e):this.parseExpressionStatement(s,p)}},w.parseBreakContinueStatement=function(e,t){var i="break"===t;this.next(),this.eat(u.semi)||this.insertSemicolon()?e.label=null:this.type!==u.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var n=this.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(i||"loop"===n.kind)||e.label&&i))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},w.parseDoStatement=function(e){return this.next(),this.labels.push(Zt),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(u.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Zt),this.enterScope(0),this.expect(u.parenL),this.type===u.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===u._var||this.type===u._const||i){var r=this.startNode(),n=i?"let":this.value;return this.next(),this.parseVar(r,!0,n),this.finishNode(r,"VariableDeclaration"),(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),a=!1,o=new ot,c=this.parseExpression(!(t>-1)||"await",o);return this.type===u._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===u._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&a&&this.raise(c.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(c,!1,o),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,Re|(i?0:Gt),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(u.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(ja),this.enterScope(0);for(var t,i=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var r=this.type===u._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(u.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},w.parseThrowStatement=function(e){return this.next(),Y.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ua=[];w.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?Fr:0),this.checkLValPattern(e,t?jr:le),this.expect(u.parenR),e},w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var t=this.startNode();this.next(),this.eat(u.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},w.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Zt),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},w.parseLabeledStatement=function(e,t,i,r){for(var n=0,s=this.labels;n<s.length;n+=1){s[n].name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var a=this.type.isLoop?"loop":this.type===u._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var c=this.labels[o];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=a}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},w.parseBlock=function(e,t,i){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(u.braceL),e&&this.enterScope(0);this.type!==u.braceR;){var r=this.parseStatement(null);t.body.push(r)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},w.parseFor=function(e,t){return e.init=t,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},w.parseForIn=function(e,t){var i=this.type===u._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},w.parseVar=function(e,t,i,r){for(e.declarations=[],e.kind=i;;){var n=this.startNode();if(this.parseVarId(n,i),this.eat(u.eq)?n.init=this.parseMaybeAssign(t):r||"const"!==i||this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===n.id.type||t&&(this.type===u._in||this.isContextual("of"))?n.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(u.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?Jt:le,!1)};var Re=1,Gt=2,Hr=4;function Ha(e,t){var i=t.key.name,r=e[i],n="true";return"MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(n=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===n||"iset"===r&&"iget"===n||"sget"===r&&"sset"===n||"sset"===r&&"sget"===n?(e[i]="true",!1):!!r||(e[i]=n,!1)}function nt(e,t){var i=e.computed,r=e.key;return!i&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}w.parseFunction=function(e,t,i,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===u.star&&t&Gt&&this.unexpected(),e.generator=this.eat(u.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Re&&(e.id=t&Hr&&this.type!==u.name?null:this.parseIdent(),e.id&&!(t&Gt)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Jt:le:$r));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Yt(e.async,e.generator)),t&Re||(e.id=this.type===u.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,n),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&Re?"FunctionDeclaration":"FunctionExpression")},w.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),n=this.startNode(),s=!1;for(n.body=[],this.expect(u.braceL);this.type!==u.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&Ha(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(n,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},w.parseClassElement=function(e){if(this.eat(u.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),r="",n=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===u.star?o=!0:r="static"}if(i.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==u.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(t>=9||!s)&&this.eat(u.star)&&(n=!0),!r&&!s&&!n){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=c:r=c)}if(r?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=r,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===u.parenL||"method"!==a||n||s){var l=!i.static&&nt(i,"constructor"),p=l&&e;l&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=l?"constructor":a,this.parseClassMethod(i,n,s,p)}else this.parseClassField(i);return i},w.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===u.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,i,r){var n=e.key;"constructor"===e.kind?(t&&this.raise(n.start,"Constructor can't be a generator"),i&&this.raise(n.start,"Constructor can't be an async method")):e.static&&nt(e,"prototype")&&this.raise(n.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,i,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},w.parseClassField=function(e){if(nt(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&nt(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(u.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Me|Xt);this.type!==u.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},w.parseClassId=function(e,t){this.type===u.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,le,!1)):(!0===t&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,n=0===r?null:this.privateNameStack[r-1],s=0;s<i.length;++s){var a=i[s];Ne(t,a.name)||(n?n.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},w.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},w.parseExport=function(e,t){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,t);if(this.eat(u._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==u.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,r=e.specifiers;i<r.length;i+=1){var n=r[i];this.checkUnreserved(n.local),this.checkLocalExport(n.local),"Literal"===n.local.type&&this.raise(n.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},w.parseExportDeclaration=function(e){return this.parseStatement(null)},w.parseExportDefaultDeclaration=function(){var e;if(this.type===u._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,Re|Hr,!1,e)}if(this.type===u._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},w.checkExport=function(e,t,i){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),Ne(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},w.checkPatternExport=function(e,t){var i=t.type;if("Identifier"===i)this.checkExport(e,t,t.start);else if("ObjectPattern"===i)for(var r=0,n=t.properties;r<n.length;r+=1){var s=n[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===i)for(var a=0,o=t.elements;a<o.length;a+=1){var c=o[a];c&&this.checkPatternExport(e,c)}else"Property"===i?this.checkPatternExport(e,t.value):"AssignmentPattern"===i?this.checkPatternExport(e,t.left):"RestElement"===i?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===i&&this.checkPatternExport(e,t.expression)},w.checkVariableExport=function(e,t){if(e)for(var i=0,r=t;i<r.length;i+=1){var n=r[i];this.checkPatternExport(e,n.id)}},w.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},w.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(i)i=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;t.push(this.parseExportSpecifier(e))}return t},w.parseImport=function(e){return this.next(),this.type===u.string?(e.specifiers=Ua,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},w.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,le),this.finishNode(e,"ImportSpecifier")},w.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,le),this.finishNode(e,"ImportDefaultSpecifier")},w.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,le),this.finishNode(e,"ImportNamespaceSpecifier")},w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===u.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma)))return e;if(this.type===u.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break;e.push(this.parseImportSpecifier())}return e},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);return Va.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var J=T.prototype;J.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var r=0,n=e.properties;r<n.length;r+=1){var s=n[r];this.toAssignable(s,t),"RestElement"===s.type&&("ArrayPattern"===s.argument.type||"ObjectPattern"===s.argument.type)&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},J.toAssignableList=function(e,t){for(var i=e.length,r=0;r<i;r++){var n=e[r];n&&this.toAssignable(n,t)}if(i){var s=e[i-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},J.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},J.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==u.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},J.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()},J.parseBindingList=function(e,t,i,r){for(var n=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(u.comma),t&&this.type===u.comma)n.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===u.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),n.push(a),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}n.push(this.parseAssignableListItem(r))}return n},J.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},J.parseBindingListItem=function(e){return e},J.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return i;var r=this.startNodeAt(e,t);return r.left=i,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},J.checkLValSimple=function(e,t,i){void 0===t&&(t=rt);var r=t!==rt;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(t===le&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(Ne(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Ur&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},J.checkLValPattern=function(e,t,i){switch(void 0===t&&(t=rt),e.type){case"ObjectPattern":for(var r=0,n=e.properties;r<n.length;r+=1){var s=n[r];this.checkLValInnerPattern(s,t,i)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var c=o[a];c&&this.checkLValInnerPattern(c,t,i)}break;default:this.checkLValSimple(e,t,i)}},J.checkLValInnerPattern=function(e,t,i){switch(void 0===t&&(t=rt),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var Z=function(e,t,i,r,n){this.token=e,this.isExpr=!!t,this.preserveSpace=!!i,this.override=r,this.generator=!!n},R={b_stat:new Z("{",!1),b_expr:new Z("{",!0),b_tmpl:new Z("${",!1),p_stat:new Z("(",!1),p_expr:new Z("(",!0),q_tmpl:new Z("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Z("function",!1),f_expr:new Z("function",!0),f_expr_gen:new Z("function",!0,!1,null,!0),f_gen:new Z("function",!1,!1,null,!0)},Se=T.prototype;Se.initialContext=function(){return[R.b_stat]},Se.curContext=function(){return this.context[this.context.length-1]},Se.braceIsBlock=function(e){var t=this.curContext();return t===R.f_expr||t===R.f_stat||(e!==u.colon||t!==R.b_stat&&t!==R.b_expr?e===u._return||e===u.name&&this.exprAllowed?Y.test(this.input.slice(this.lastTokEnd,this.start)):e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow||(e===u.braceL?t===R.b_stat:e!==u._var&&e!==u._const&&e!==u.name&&!this.exprAllowed):!t.isExpr)},Se.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Se.updateContext=function(e){var t,i=this.type;i.keyword&&e===u.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},Se.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},u.parenR.updateContext=u.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===R.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?R.b_stat:R.b_expr),this.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.context.push(R.b_tmpl),this.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(t?R.p_stat:R.p_expr),this.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u._else||e===u.semi&&this.curContext()!==R.p_stat||e===u._return&&Y.test(this.input.slice(this.lastTokEnd,this.start))||(e===u.colon||e===u.braceL)&&this.curContext()===R.b_stat?this.context.push(R.f_stat):this.context.push(R.f_expr),this.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===R.q_tmpl?this.context.pop():this.context.push(R.q_tmpl),this.exprAllowed=!1},u.star.updateContext=function(e){if(e===u._function){var t=this.context.length-1;this.context[t]===R.f_expr?this.context[t]=R.f_expr_gen:this.context[t]=R.f_gen}this.exprAllowed=!0},u.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==u.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var v=T.prototype;function Wr(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Wr(e.expression)}v.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,n=e.key;switch(n.type){case"Identifier":r=n.name;break;case"Literal":r=String(n.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===r&&"init"===s&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0));var a=t[r="$"+r];if(a)("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(n.start,"Redefinition of property");else a=t[r]={init:!1,get:!1,set:!1};a[s]=!0}},v.parseExpression=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeAssign(e,t);if(this.type===u.comma){var s=this.startNodeAt(i,r);for(s.expressions=[n];this.eat(u.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return n},v.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,n=-1,s=-1,a=-1;t?(n=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ot,r=!0);var o=this.start,c=this.startLoc;(this.type===u.parenL||this.type===u.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var l=this.parseMaybeConditional(e,t);if(i&&(l=i.call(this,l,o,c)),this.type.isAssign){var p=this.startNodeAt(o,c);return p.operator=this.value,this.type===u.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===u.eq?this.checkLValPattern(l):this.checkLValSimple(l),p.left=l,this.next(),p.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(p,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),n>-1&&(t.parenthesizedAssign=n),s>-1&&(t.trailingComma=s),l},v.parseMaybeConditional=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return n;if(this.eat(u.question)){var s=this.startNodeAt(i,r);return s.test=n,s.consequent=this.parseMaybeAssign(),this.expect(u.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return n},v.parseExprOps=function(e,t){var i=this.start,r=this.startLoc,n=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||n.start===i&&"ArrowFunctionExpression"===n.type?n:this.parseExprOp(n,i,r,-1,e)},v.parseExprOp=function(e,t,i,r,n){var s=this.type.binop;if(null!=s&&(!n||this.type!==u._in)&&s>r){var a=this.type===u.logicalOR||this.type===u.logicalAND,o=this.type===u.coalesce;o&&(s=u.logicalAND.binop);var c=this.value;this.next();var l=this.start,p=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,n),l,p,s,n),d=this.buildBinary(t,i,e,h,c,a||o);return(a&&this.type===u.coalesce||o&&(this.type===u.logicalOR||this.type===u.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(d,t,i,r,n)}return e},v.buildBinary=function(e,t,i,r,n,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=i,a.operator=n,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},v.parseMaybeUnary=function(e,t,i,r){var n,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)n=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),c=this.type===u.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&"Identifier"===o.argument.type?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&Wr(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,n=this.finishNode(o,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==u.privateId){if(n=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,a);l.operator=this.value,l.prefix=!1,l.argument=n,this.checkLValSimple(n),this.next(),n=this.finishNode(l,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),n=this.parsePrivateIdent(),this.type!==u._in&&this.unexpected();return i||!this.eat(u.starstar)?n:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,n,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},v.parseExprSubscripts=function(e,t){var i=this.start,r=this.startLoc,n=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return n;var s=this.parseSubscripts(n,i,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},v.parseSubscripts=function(e,t,i,r,n){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,i,r,s,a,n);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var c=this.startNodeAt(t,i);c.expression=o,o=this.finishNode(c,"ChainExpression")}return o}e=o}},v.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)},v.parseSubscriptAsyncArrow=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,r)},v.parseSubscript=function(e,t,i,r,n,s,a){var o=this.options.ecmaVersion>=11,c=o&&this.eat(u.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||c&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var p=this.startNodeAt(t,i);p.object=e,l?(p.property=this.parseExpression(),this.expect(u.bracketR)):this.type===u.privateId&&"Super"!==e.type?p.property=this.parsePrivateIdent():p.property=this.parseIdent("never"!==this.options.allowReserved),p.computed=!!l,o&&(p.optional=c),e=this.finishNode(p,"MemberExpression")}else if(!r&&this.eat(u.parenL)){var h=new ot,d=this.yieldPos,m=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var y=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,h);if(n&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,i,y,a);this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,i);g.callee=e,g.arguments=y,o&&(g.optional=c),e=this.finishNode(g,"CallExpression")}else if(this.type===u.backQuote){(c||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var _=this.startNodeAt(t,i);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,"TaggedTemplateExpression")}return e},v.parseExprAtom=function(e,t,i){this.type===u.slash&&this.readRegexp();var r,n=this.potentialArrowAt===this.start;switch(this.type){case u._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper&&this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL&&this.unexpected(),this.finishNode(r,"Super");case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:var s=this.start,a=this.startLoc,o=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(R.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(n&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===u.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(u.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[c],!0,t)}return c;case u.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return(r=this.startNode()).value=this.type===u._null?null:this.type===u._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case u.parenL:var p=this.start,h=this.parseParenAndDistinguishExpression(n,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(h)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),h;case u.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case u.braceL:return this.overrideContext(R.b_expr),this.parseObj(!1,e);case u._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},v.parseExprAtomDefault=function(){this.unexpected()},v.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);return this.type!==u.parenL||e?this.type===u.dot?(t.meta=i,this.parseImportMeta(t)):void this.unexpected():this.parseDynamicImport(t)},v.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(u.parenR)){var t=this.start;this.eat(u.comma)&&this.eat(u.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},v.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},v.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},v.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},v.shouldParseArrow=function(e){return!this.canInsertSemicolon()},v.parseParenAndDistinguishExpression=function(e,t){var i,r=this.start,n=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,c=this.startLoc,l=[],p=!0,h=!1,d=new ot,m=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==u.parenR;){if(p?p=!1:this.expect(u.comma),s&&this.afterTrailingComma(u.parenR,!0)){h=!0;break}if(this.type===u.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var y=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(l)&&this.eat(u.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=f,this.parseParenArrowList(r,n,l,t);(!l.length||h)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((i=this.startNodeAt(o,c)).expressions=l,this.finishNodeAt(i,"SequenceExpression",y,g)):i=l[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(r,n);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")}return i},v.parseParenItem=function(e){return e},v.parseParenArrowList=function(e,t,i,r){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,r)};var Wa=[];v.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(u.dot)){e.meta=t;var i=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,n=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,n,!0,!1),this.eat(u.parenL)?e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Wa,this.finishNode(e,"NewExpression")},v.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===u.invalidTemplate?(t||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===u.backQuote,this.finishNode(i,"TemplateElement")},v.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(i.quasis=[r];!r.tail;)this.type===u.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(u.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(u.braceR),i.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},v.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!Y.test(this.input.slice(this.lastTokEnd,this.start))},v.parseObj=function(e,t){var i=this.startNode(),r=!0,n={};for(i.properties=[],this.next();!this.eat(u.braceR);){if(r)r=!1;else if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,n,t),i.properties.push(s)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},v.parseProperty=function(e,t){var i,r,n,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===u.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===u.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(n=this.start,s=this.startLoc),e||(i=this.eat(u.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(r=!0,i=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,i,r,n,s,t,o),this.finishNode(a,"Property")},v.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var i=e.value.start;"get"===e.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},v.parsePropertyValue=function(e,t,i,r,n,s,a,o){(i||r)&&this.type===u.colon&&this.unexpected(),this.eat(u.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===u.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===u.comma||this.type===u.braceR||this.type===u.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((i||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"===e.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=n),e.kind="init",t?e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key)):this.type===u.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(n,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((i||r)&&this.unexpected(),this.parseGetterSetter(e))},v.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;e.computed=!1}return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},v.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},v.parseMethod=function(e,t,i){var r=this.startNode(),n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Yt(t,r.generator)|Xt|(i?Br:0)),this.expect(u.parenL),r.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},v.parseArrowExpression=function(e,t,i,r){var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(Yt(i,!1)|Vr),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},v.parseFunctionBody=function(e,t,i,r){var n=t&&this.type!==u.braceL,s=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&((a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var c=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ur),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},v.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){if("Identifier"!==i[t].type)return!1}return!0},v.checkParams=function(e,t){for(var i=Object.create(null),r=0,n=e.params;r<n.length;r+=1){var s=n[r];this.checkLValInnerPattern(s,Jt,t?null:i)}},v.parseExprList=function(e,t,i,r){for(var n=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(u.comma),t&&this.afterTrailingComma(e))break;var a=void 0;i&&this.type===u.comma?a=null:this.type===u.ellipsis?(a=this.parseSpread(r),r&&this.type===u.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),n.push(a)}return n},v.checkUnreserved=function(e){var t=e.start,i=e.end,r=e.name;(this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},v.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"===t.name&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},v.parseIdentNode=function(){var e=this.startNode();return this.type===u.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop()):this.unexpected(),e},v.parsePrivateIdent=function(){var e=this.startNode();return this.type===u.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},v.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},v.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var at=T.prototype;at.raise=function(e,t){var i=Dr(this.input,e);t+=" ("+i.line+":"+i.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=i,r.raisedAt=this.pos,r},at.raiseRecoverable=at.raise,at.curPosition=function(){if(this.options.locations)return new Ie(this.curLine,this.pos-this.lineStart)};var de=T.prototype,qa=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};de.enterScope=function(e){this.scopeStack.push(new qa(e))},de.exitScope=function(){this.scopeStack.pop()},de.treatFunctionsAsVarInScope=function(e){return e.flags&ve||!this.inModule&&e.flags&Te},de.declareName=function(e,t,i){var r=!1;if(t===le){var n=this.currentScope();r=n.lexical.indexOf(e)>-1||n.functions.indexOf(e)>-1||n.var.indexOf(e)>-1,n.lexical.push(e),this.inModule&&n.flags&Te&&delete this.undefinedExports[e]}else if(t===jr){this.currentScope().lexical.push(e)}else if(t===$r){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(o.flags&Fr&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&o.flags&Te&&delete this.undefinedExports[e],o.flags&Qt)break}r&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},de.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},de.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},de.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Qt)return t}},de.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Qt&&!(t.flags&Vr))return t}};var ct=function(e,t,i){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new st(e,i)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},De=T.prototype;function qr(e,t,i,r){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=i),e}De.startNode=function(){return new ct(this,this.start,this.startLoc)},De.startNodeAt=function(e,t){return new ct(this,e,t)},De.finishNode=function(e,t){return qr.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},De.finishNodeAt=function(e,t,i,r){return qr.call(this,e,t,i,r)},De.copyNode=function(e){var t=new ct(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Gr="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",zr=Gr+" Extended_Pictographic",Kr=zr,Xr=Kr+" EBase EComp EMod EPres ExtPict",Qr=Xr,Ga=Qr,za={9:Gr,10:zr,11:Kr,12:Xr,13:Qr,14:Ga},Ka="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Xa={9:"",10:"",11:"",12:"",13:"",14:Ka},Lr="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",Yr="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",Jr=Yr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Zr=Jr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",en=Zr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tn=en+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qa=tn+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Ya={9:Yr,10:Jr,11:Zr,12:en,13:tn,14:Qa},rn={};function Ja(e){var t=rn[e]={binary:pe(za[e]+" "+Lr),binaryOfStrings:pe(Xa[e]),nonBinary:{General_Category:pe(Lr),Script:pe(Ya[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(it=0,Ht=[9,10,11,12,13,14];it<Ht.length;it+=1)Pr=Ht[it],Ja(Pr);var Pr,it,Ht,b=T.prototype,re=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=rn[e.options.ecmaVersion>=14?14:e.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 nn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Za(e){return ce(e,!0)||36===e||95===e}function es(e){return be(e,!0)||36===e||95===e||8204===e||8205===e}function an(e){return e>=65&&e<=90||e>=97&&e<=122}function ts(e){return e>=0&&e<=1114111}re.prototype.reset=function(e,t,i){var r=-1!==i.indexOf("v"),n=-1!==i.indexOf("u");this.start=0|e,this.source=t+"",this.flags=i,r&&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)},re.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},re.prototype.at=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return-1;var n=i.charCodeAt(e);if(!t&&!this.switchU||n<=55295||n>=57344||e+1>=r)return n;var s=i.charCodeAt(e+1);return s>=56320&&s<=57343?(n<<10)+s-56613888:n},re.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var i=this.source,r=i.length;if(e>=r)return r;var n,s=i.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(n=i.charCodeAt(e+1))<56320||n>57343?e+1:e+2},re.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},re.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},re.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},re.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},re.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var i=this.pos,r=0,n=e;r<n.length;r+=1){var s=n[r],a=this.at(i,t);if(-1===a||a!==s)return!1;i=this.nextIndex(i,t)}return this.pos=i,!0},b.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,r=!1,n=!1,s=0;s<i.length;s++){var a=i.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(n=!0)}this.options.ecmaVersion>=15&&r&&n&&this.raise(e.start,"Invalid regular expression flag")},b.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},b.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var r=i[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},b.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},b.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},b.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},b.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},b.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},b.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},b.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var r=0,n=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue),e.eat(125)))return-1!==n&&n<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},b.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},b.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},b.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},b.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},b.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},b.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},b.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!nn(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;-1!==(i=e.current())&&!nn(i);)e.advance();return e.pos!==t},b.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},b.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},b.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},b.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=fe(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=fe(e.lastIntValue);return!0}return!1},b.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),Za(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,r=e.current(i);return e.advance(i),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(r=e.lastIntValue),es(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},b.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},b.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},b.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},b.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},b.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},b.regexp_eatZero=function(e){return 48===e.current()&&!ut(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},b.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},b.regexp_eatControlLetter=function(e){var t=e.current();return!!an(t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var i=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(r&&n>=55296&&n<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(n-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=n}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&ts(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=i}return!1},b.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};var sn=0,ue=1,Q=2;function is(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function on(e){return an(e)||95===e}function rs(e){return on(e)||ut(e)}function ns(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function as(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function ss(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function ut(e){return e>=48&&e<=57}function cn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function un(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function ln(e){return e>=48&&e<=55}b.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(is(t))return e.lastIntValue=-1,e.advance(),ue;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&r===Q&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return sn},b.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,r),ue}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,n)}return sn},b.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){Ne(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},b.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?ue:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?Q:void e.raise("Invalid property name")},b.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";on(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";rs(t=e.current());)e.lastStringValue+=fe(t),e.advance();return""!==e.lastStringValue},b.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},b.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===Q&&e.raise("Negated character class may contain strings"),!0}return!1},b.regexp_classContents=function(e){return 93===e.current()?ue:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),ue)},b.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(-1===t||-1===i)&&e.raise("Invalid character class"),-1!==t&&-1!==i&&t>i&&e.raise("Range out of order in character class")}}},b.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(99===i||ln(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},b.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},b.regexp_classSetExpression=function(e){var t,i=ue;if(!this.regexp_eatClassSetRange(e))if(t=this.regexp_eatClassSetOperand(e)){t===Q&&(i=Q);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==Q&&(i=ue):e.raise("Invalid character in character class");if(r!==e.pos)return i;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return i}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return i;t===Q&&(i=Q)}},b.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==i&&-1!==r&&i>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},b.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?ue:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},b.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return i&&r===Q&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var n=this.regexp_eatCharacterClassEscape(e);if(n)return n;e.pos=t}return null},b.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},b.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Q&&(t=Q);return t},b.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?ue:Q},b.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var i=e.current();return!(i<0||i===e.lookahead()&&ns(i)||as(i))&&(e.advance(),e.lastIntValue=i,!0)},b.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!ss(t)&&(e.lastIntValue=t,e.advance(),!0)},b.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ut(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},b.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},b.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;ut(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t},b.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;cn(i=e.current());)e.lastIntValue=16*e.lastIntValue+un(i),e.advance();return e.pos!==t},b.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*i+e.lastIntValue:e.lastIntValue=8*t+i}else e.lastIntValue=t;return!0}return!1},b.regexp_eatOctalDigit=function(e){var t=e.current();return ln(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},b.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var n=e.current();if(!cn(n))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+un(n),e.advance()}return!0};var ei=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new st(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},C=T.prototype;function os(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function hn(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}C.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ei(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},C.getToken=function(){return this.next(),new ei(this)},typeof Symbol<"u"&&(C[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===u.eof,value:t}}}}),C.nextToken=function(){var e=this.curContext();return(!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(u.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},C.readToken=function(e){return ce(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},C.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},C.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=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 r=void 0,n=t;(r=Tr(this.input,n,this.pos))>-1;)++this.curLine,n=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},C.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!we(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},C.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&Nr.test(String.fromCharCode(e))))break e;++this.pos}}},C.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},C.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(u.ellipsis)):(++this.pos,this.finishToken(u.dot))},C.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},C.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,r=42===e?u.star:u.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++i,r=u.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(u.assign,i+1):this.finishOp(r,i)},C.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(u.assign,3);return this.finishOp(124===e?u.logicalOR:u.logicalAND,2)}return 61===t?this.finishOp(u.assign,2):this.finishOp(124===e?u.bitwiseOR:u.bitwiseAND,1)},C.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)},C.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Y.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(u.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)},C.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(u.assign,i+1):this.finishOp(u.bitShift,i)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(i=2),this.finishOp(u.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},C.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(u.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(u.arrow)):this.finishOp(61===e?u.eq:u.prefix,1)},C.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(u.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(u.assign,3);return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)},C.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,ce(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(u.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},C.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)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(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+fe(e)+"'")},C.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},C.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Y.test(r)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var n=this.input.slice(i,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new re(this));o.reset(i,n,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var c=null;try{c=new RegExp(n,a)}catch{}return this.finishToken(u.regexp,{pattern:n,flags:a,value:c})},C.readInt=function(e,t,i){for(var r=this.options.ecmaVersion>=12&&void 0===t,n=i&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,c=0,l=t??1/0;c<l;++c,++this.pos){var p=this.input.charCodeAt(this.pos),h=void 0;if(r&&95===p)n&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=p;else{if((h=p>=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,a=a*e+h}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:a},C.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return null==i&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=hn(this.input.slice(t,this.pos)),++this.pos):ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,i)},C.readNumber=function(e){var t=this.pos;!e&&null===this.readInt(10,void 0,!0)&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&48===this.input.charCodeAt(t);i&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&110===r){var n=hn(this.input.slice(t,this.pos));return++this.pos,ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(u.num,n)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),46===r&&!i&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(69===r||101===r)&&!i&&((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),ce(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s=os(this.input.slice(t,this.pos),i);return this.finishToken(u.num,s)},C.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},C.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(we(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(u.string,t)};var pn={};C.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==pn)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},C.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw pn;this.raise(e,t)},C.readTmplToken=function(){for(var e="",t=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!==u.template&&this.type!==u.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(u.template,e)):36===i?(this.pos+=2,this.finishToken(u.dollarBraceL)):(++this.pos,this.finishToken(u.backQuote));if(92===i)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(we(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},C.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},C.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return fe(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),("0"!==r||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(n)}return we(t)?"":String.fromCharCode(t)}},C.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return null===i&&this.invalidStringToken(t,"Bad character escape sequence"),i},C.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var n=this.fullCharCodeAtPos();if(be(n,r))this.pos+=n<=65535?1:2;else{if(92!==n)break;this.containsEsc=!0,e+=this.input.slice(i,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ce:be)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=fe(a),i=this.pos}t=!1}return e+this.input.slice(i,this.pos)},C.readWord=function(){var e=this.readWord1(),t=u.name;return this.keywords.test(e)&&(t=zt[e]),this.finishToken(t,e)};var cs="8.10.0";function fn(e,t){return T.parse(e,t)}T.acorn={Parser:T,version:cs,defaultOptions:qt,Position:Ie,SourceLocation:st,getLineInfo:Dr,Node:ct,TokenType:L,tokTypes:u,keywordTypes:zt,TokContext:Z,tokContexts:R,isIdentifierChar:be,isIdentifierStart:ce,Token:ei,isNewLine:we,lineBreak:Y,lineBreakG:Ma,nonASCIIwhitespace:Nr};var ii=globalThis.fetch,me=globalThis.WebSocket,us=globalThis.Request,dn=globalThis.Response,ge={prototype:{send:me.prototype.send},CLOSED:me.CLOSED,CLOSING:me.CLOSING,CONNECTING:me.CONNECTING,OPEN:me.OPEN},ls=20,hs=[101,204,205,304],ps=[301,302,303,307,308],ht=class extends Error{constructor(e,t){super(t.message||t.code),q(this,"status"),q(this,"body"),this.status=e,this.body=t}},ri=class{constructor(e,t){q(this,"base"),this.base=new URL(`./v${e}/`,t)}};function ye(e,t){let i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function fs(e,t){return e<<t|e>>>32-t}function pt(e,t,i,r,n,s){return ye(fs(ye(ye(t,e),ye(r,s)),n),i)}function D(e,t,i,r,n,s,a){return pt(t&i|~t&r,e,t,n,s,a)}function O(e,t,i,r,n,s,a){return pt(t&r|i&~r,e,t,n,s,a)}function V(e,t,i,r,n,s,a){return pt(t^i^r,e,t,n,s,a)}function F(e,t,i,r,n,s,a){return pt(i^(t|~r),e,t,n,s,a)}function lt(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let i=1732584193,r=-271733879,n=-1732584194,s=271733878;for(let t=0;t<e.length;t+=16){let a=i,o=r,c=n,l=s;i=D(i,r,n,s,e[t],7,-680876936),s=D(s,i,r,n,e[t+1],12,-389564586),n=D(n,s,i,r,e[t+2],17,606105819),r=D(r,n,s,i,e[t+3],22,-1044525330),i=D(i,r,n,s,e[t+4],7,-176418897),s=D(s,i,r,n,e[t+5],12,1200080426),n=D(n,s,i,r,e[t+6],17,-1473231341),r=D(r,n,s,i,e[t+7],22,-45705983),i=D(i,r,n,s,e[t+8],7,1770035416),s=D(s,i,r,n,e[t+9],12,-1958414417),n=D(n,s,i,r,e[t+10],17,-42063),r=D(r,n,s,i,e[t+11],22,-1990404162),i=D(i,r,n,s,e[t+12],7,1804603682),s=D(s,i,r,n,e[t+13],12,-40341101),n=D(n,s,i,r,e[t+14],17,-1502002290),r=D(r,n,s,i,e[t+15],22,1236535329),i=O(i,r,n,s,e[t+1],5,-165796510),s=O(s,i,r,n,e[t+6],9,-1069501632),n=O(n,s,i,r,e[t+11],14,643717713),r=O(r,n,s,i,e[t],20,-373897302),i=O(i,r,n,s,e[t+5],5,-701558691),s=O(s,i,r,n,e[t+10],9,38016083),n=O(n,s,i,r,e[t+15],14,-660478335),r=O(r,n,s,i,e[t+4],20,-405537848),i=O(i,r,n,s,e[t+9],5,568446438),s=O(s,i,r,n,e[t+14],9,-1019803690),n=O(n,s,i,r,e[t+3],14,-187363961),r=O(r,n,s,i,e[t+8],20,1163531501),i=O(i,r,n,s,e[t+13],5,-1444681467),s=O(s,i,r,n,e[t+2],9,-51403784),n=O(n,s,i,r,e[t+7],14,1735328473),r=O(r,n,s,i,e[t+12],20,-1926607734),i=V(i,r,n,s,e[t+5],4,-378558),s=V(s,i,r,n,e[t+8],11,-2022574463),n=V(n,s,i,r,e[t+11],16,1839030562),r=V(r,n,s,i,e[t+14],23,-35309556),i=V(i,r,n,s,e[t+1],4,-1530992060),s=V(s,i,r,n,e[t+4],11,1272893353),n=V(n,s,i,r,e[t+7],16,-155497632),r=V(r,n,s,i,e[t+10],23,-1094730640),i=V(i,r,n,s,e[t+13],4,681279174),s=V(s,i,r,n,e[t],11,-358537222),n=V(n,s,i,r,e[t+3],16,-722521979),r=V(r,n,s,i,e[t+6],23,76029189),i=V(i,r,n,s,e[t+9],4,-640364487),s=V(s,i,r,n,e[t+12],11,-421815835),n=V(n,s,i,r,e[t+15],16,530742520),r=V(r,n,s,i,e[t+2],23,-995338651),i=F(i,r,n,s,e[t],6,-198630844),s=F(s,i,r,n,e[t+7],10,1126891415),n=F(n,s,i,r,e[t+14],15,-1416354905),r=F(r,n,s,i,e[t+5],21,-57434055),i=F(i,r,n,s,e[t+12],6,1700485571),s=F(s,i,r,n,e[t+3],10,-1894986606),n=F(n,s,i,r,e[t+10],15,-1051523),r=F(r,n,s,i,e[t+1],21,-2054922799),i=F(i,r,n,s,e[t+8],6,1873313359),s=F(s,i,r,n,e[t+15],10,-30611744),n=F(n,s,i,r,e[t+6],15,-1560198380),r=F(r,n,s,i,e[t+13],21,1309151649),i=F(i,r,n,s,e[t+4],6,-145523070),s=F(s,i,r,n,e[t+11],10,-1120210379),n=F(n,s,i,r,e[t+2],15,718787259),r=F(r,n,s,i,e[t+9],21,-343485551),i=ye(i,a),r=ye(r,o),n=ye(n,c),s=ye(s,l)}return[i,r,n,s]}function mn(e){let t="",i=32*e.length;for(let r=0;r<i;r+=8)t+=String.fromCharCode(e[r>>5]>>>r%32&255);return t}function ni(e){let t=[],i=e.length>>2;for(let e=0;e<i;e+=1)t[e]=0;let r=8*e.length;for(let i=0;i<r;i+=8)t[i>>5]|=(255&e.charCodeAt(i/8))<<i%32;return t}function ds(e){return mn(lt(ni(e),8*e.length))}function ms(e,t){let i=ni(e),r=[],n=[];i.length>16&&(i=lt(i,8*e.length));for(let e=0;e<16;e+=1)r[e]=909522486^i[e],n[e]=1549556828^i[e];let s=lt(r.concat(ni(t)),512+8*t.length);return mn(lt(n.concat(s),640))}function yn(e){let t="0123456789abcdef",i="";for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);i+=t.charAt(n>>>4&15)+t.charAt(15&n)}return i}function ai(e){return unescape(encodeURIComponent(e))}function gn(e){return ds(ai(e))}function ys(e){return yn(gn(e))}function xn(e,t){return ms(ai(e),ai(t))}function gs(e,t){return yn(xn(e,t))}function xs(e,t,i){return t?i?xn(t,e):gs(t,e):i?gn(e):ys(e)}var ti=3072;function _s(e){let t=new Headers(e);if(e.has("x-bare-headers")){let i=e.get("x-bare-headers");if(i.length>ti){t.delete("x-bare-headers");let e=0;for(let r=0;r<i.length;r+=ti){let n=i.slice(r,r+ti),s=e++;t.set(`x-bare-headers-${s}`,`;${n}`)}}}return t}function bs(e){let t=new Headers(e),i="x-bare-headers";if(e.has(`${i}-0`)){let r=[];for(let[n,s]of e){if(!n.startsWith(i))continue;if(!s.startsWith(";"))throw new ht(400,{code:"INVALID_BARE_HEADER",id:`request.headers.${n}`,message:"Value didn't begin with semi-colon."});r[parseInt(n.slice(15))]=s.slice(1),t.delete(n)}t.set(i,r.join(""))}return t}var si=class extends ri{constructor(e){super(3,e),q(this,"ws"),q(this,"http"),this.ws=new URL(this.base),this.http=new URL(this.base),"https:"===this.ws.protocol?this.ws.protocol="wss:":this.ws.protocol="ws:"}connect(e,t,i,r,n){let s=new me(this.ws),a=()=>{s.removeEventListener("close",o),s.removeEventListener("message",c)},o=()=>{a()},c=e=>{if(a(),"string"!=typeof e.data)throw new TypeError("the first websocket message was not a text frame");let t=JSON.parse(e.data);if("open"!==t.type)throw new TypeError("message was not of open type");e.stopImmediatePropagation(),r({protocol:t.protocol,setCookies:t.setCookies}),n(ge.OPEN),s.dispatchEvent(new Event("open"))};return s.addEventListener("close",o),s.addEventListener("message",c),s.addEventListener("open",(r=>{r.stopImmediatePropagation(),n(ge.CONNECTING),i().then((i=>ge.prototype.send.call(s,JSON.stringify({type:"connect",remote:e.toString(),protocols:t,headers:i,forwardHeaders:[]}))))}),{once:!0}),s}async request(e,t,i,r,n,s,a){if(r.protocol.startsWith("blob:")){let e=await ii(r),t=new dn(e.body,e);return t.rawHeaders=Object.fromEntries(e.headers),t.rawResponse=e,t}let o={};if(t instanceof Headers)for(let[e,i]of t)o[e]=i;else for(let e in t)o[e]=t[e];let c={credentials:"omit",method:e,signal:a};"only-if-cached"!==n&&(c.cache=n),void 0!==i&&(c.body=i),void 0!==s&&(c.duplex=s),c.headers=this.createBareHeaders(r,o);let l=await ii(this.http+"?cache="+xs(r.toString()),c),p=await this.readBareResponse(l),h=new dn(hs.includes(p.status)?void 0:l.body,{status:p.status,statusText:p.statusText??void 0,headers:new Headers(p.headers)});return h.rawHeaders=p.headers,h.rawResponse=l,h}async readBareResponse(e){if(!e.ok)throw new ht(e.status,await e.json());let t=bs(e.headers),i={},r=t.get("x-bare-status");null!==r&&(i.status=parseInt(r));let n=t.get("x-bare-status-text");null!==n&&(i.statusText=n);let s=t.get("x-bare-headers");return null!==s&&(i.headers=JSON.parse(s)),i}createBareHeaders(e,t,i=[],r=[],n=[]){let s=new Headers;s.set("x-bare-url",e.toString()),s.set("x-bare-headers",JSON.stringify(t));for(let e of i)s.append("x-bare-forward-headers",e);for(let e of r)s.append("x-bare-pass-headers",e);for(let e of n)s.append("x-bare-pass-status",e.toString());return _s(s),s}},ws="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~";function vs(e){for(let t=0;t<e.length;t++){let i=e[t];if(!ws.includes(i))return!1}return!0}var Ss=[["v3",si]];async function _n(e,t){let i=await ii(e,{signal:t});if(!i.ok)throw new Error(`Unable to fetch Bare meta: ${i.status} ${await i.text()}`);return await i.json()}var Es=Object.getOwnPropertyDescriptor(me.prototype,"readyState").get,Cs=["ws:","wss:"],Oe=class{constructor(e,t){q(this,"manifest"),q(this,"client"),q(this,"server"),q(this,"working"),q(this,"onDemand"),q(this,"onDemandSignal"),this.server=new URL(e),!t||t instanceof AbortSignal?(this.onDemand=!0,this.onDemandSignal=t):(this.onDemand=!1,this.loadManifest(t))}loadManifest(e){return this.manifest=e,this.client=this.getClient(),this.client}demand(){return this.onDemand?(this.working||(this.working=_n(this.server,this.onDemandSignal).then((e=>this.loadManifest(e))).catch((e=>{throw delete this.working,e}))),this.working):this.client}getClient(){for(let[e,t]of Ss)if(this.manifest.versions.includes(e))return new t(this.server);throw new Error("Unable to find compatible client version. Starting from v2.0.0, @tomphttp/bare-client only supports Bare servers v3+. For more information, see https://github.com/tomphttp/bare-client/")}createWebSocket(e,t=[],i){if(!this.client)throw new TypeError("You need to wait for the client to finish fetching the manifest before creating any WebSockets. Try caching the manifest data before making this request.");try{e=new URL(e)}catch{throw new DOMException(`Faiiled to construct 'WebSocket': The URL '${e}' is invalid.`)}if(!Cs.includes(e.protocol))throw new DOMException(`Failed to construct 'WebSocket': The URL's scheme must be either 'ws' or 'wss'. '${e.protocol}' is not allowed.`);Array.isArray(t)||(t=[t]),t=t.map(String);for(let e of t)if(!vs(e))throw new DOMException(`Failed to construct 'WebSocket': The subprotocol '${e}' is invalid.`);let r=this.client.connect(e,t,(async()=>{let t="function"==typeof i.headers?await i.headers():i.headers||{},r=t instanceof Headers?Object.fromEntries(t):t;return r.Host=e.host,r.Pragma="no-cache",r["Cache-Control"]="no-cache",r.Upgrade="websocket",r.Connection="Upgrade",r}),(e=>{n=e.protocol,i.setCookiesCallback&&i.setCookiesCallback(e.setCookies)}),(e=>{s=e}),i.webSocketImpl||me),n="",s=ge.CONNECTING,a=()=>{let e=Es.call(r);return e===ge.OPEN?s:e};i.readyStateHook?i.readyStateHook(r,a):Object.defineProperty(r,"readyState",{get:a,configurable:!0,enumerable:!0});let o=()=>{if(a()===ge.CONNECTING)return new DOMException("Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.")};i.sendErrorHook?i.sendErrorHook(r,o):r.send=function(...e){let t=o();if(t)throw t;ge.prototype.send.call(this,...e)},i.urlHook?i.urlHook(r,e):Object.defineProperty(r,"url",{get:()=>e.toString(),configurable:!0,enumerable:!0});let c=()=>n;return i.protocolHook?i.protocolHook(r,c):Object.defineProperty(r,"protocol",{get:c,configurable:!0,enumerable:!0}),r}async fetch(e,t){let i=ks(e)?new us(e,t):e,r=t?.headers||i.headers,n=r instanceof Headers?Object.fromEntries(r):r,s=t?.duplex,a=t?.body||i.body,o=new URL(i.url),c=await this.demand();for(let e=0;;e++){"host"in n?n.host=o.host:n.Host=o.host;let r=await c.request(i.method,n,a,o,i.cache,s,i.signal);r.finalURL=o.toString();let l=t?.redirect||i.redirect;if(!ps.includes(r.status))return r;switch(l){case"follow":{let t=r.headers.get("location");if(ls>e&&null!==t){o=new URL(t,o);continue}throw new TypeError("Failed to fetch")}case"error":throw new TypeError("Failed to fetch");case"manual":return r}}}};function ks(e){return"string"==typeof e||e instanceof URL}async function bn(e,t){let i=await _n(e,t);return new Oe(e,i)}var Hs=Ze(wn(),1),Tn=Ze(Sn(),1),{stringify:Os}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var dt={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},ee=17,Vs={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:ee,ClassExpression:ee,FunctionExpression:ee,ObjectExpression:ee,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Ce(e,t){let{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);let{length:r}=t;for(let n=1;n<r;n++){let r=t[n];e.write(", "),i[r.type](r,e)}}e.write(")")}function Rn(e,t,i,r){let n=e.expressionsPrecedence[t.type];if(n===ee)return!0;let s=e.expressionsPrecedence[i.type];return n!==s?!r&&15===n&&14===s&&"**"===i.operator||n<s:(13===n||14===n)&&("**"===t.operator&&"**"===i.operator?!r:13===n&&13===s&&("??"===t.operator||"??"===i.operator)||(r?dt[t.operator]<=dt[i.operator]:dt[t.operator]<dt[i.operator]))}function mt(e,t,i,r){let{generator:n}=e;Rn(e,t,i,r)?(e.write("("),n[t.type](t,e),e.write(")")):n[t.type](t,e)}function Fs(e,t,i,r){let n=t.split("\n"),s=n.length-1;if(e.write(n[0].trim()),s>0){e.write(r);for(let t=1;t<s;t++)e.write(i+n[t].trim()+r);e.write(i+n[s].trim())}}function j(e,t,i,r){let{length:n}=t;for(let s=0;s<n;s++){let n=t[s];e.write(i),"L"===n.type[0]?e.write("// "+n.value.trim()+"\n",n):(e.write("/*"),Fs(e,n.value,i,r),e.write("*/"+r))}}function Bs(e){let t=e;for(;null!=t;){let{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}function li(e,t){let{generator:i}=e,{declarations:r}=t;e.write(t.kind+" ");let{length:n}=r;if(n>0){i.VariableDeclarator(r[0],e);for(let t=1;t<n;t++)e.write(", "),i.VariableDeclarator(r[t],e)}}var En,Cn,kn,An,Ln,Pn,$s={Program(e,t){let i=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:n}=t;n&&null!=e.comments&&j(t,e.comments,i,r);let s=e.body,{length:a}=s;for(let e=0;e<a;e++){let a=s[e];n&&null!=a.comments&&j(t,a.comments,i,r),t.write(i),this[a.type](a,t),t.write(r)}n&&null!=e.trailingComments&&j(t,e.trailingComments,i,r)},BlockStatement:Pn=function(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;t.write("{");let a=e.body;if(null!=a&&a.length>0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let{length:o}=a;for(let e=0;e<o;e++){let i=a[e];n&&null!=i.comments&&j(t,i.comments,s,r),t.write(s),this[i.type](i,t),t.write(r)}t.write(i)}else n&&null!=e.comments&&(t.write(r),j(t,e.comments,s,r),t.write(i));n&&null!=e.trailingComments&&j(t,e.trailingComments,s,r),t.write("}"),t.indentLevel--},ClassBody:Pn,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let i=t.expressionsPrecedence[e.expression.type];i===ee||3===i&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t;t.indentLevel++;let s=i+t.indent,a=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);let{cases:o}=e,{length:c}=o;for(let e=0;e<c;e++){let i=o[e];n&&null!=i.comments&&j(t,i.comments,s,r),i.test?(t.write(s+"case "),this[i.test.type](i.test,t),t.write(":"+r)):t.write(s+"default:"+r);let{consequent:c}=i,{length:l}=c;for(let e=0;e<l;e++){let i=c[e];n&&null!=i.comments&&j(t,i.comments,a,r),t.write(a),this[i.type](i,t),t.write(r)}}t.indentLevel-=2,t.write(i+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:i}=e;null==i.param?t.write(" catch "):(t.write(" catch ("),this[i.param.type](i.param,t),t.write(") ")),this[i.body.type](i.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){let{init:i}=e;"V"===i.type[0]?li(t,i):this[i.type](i,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:En=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:i}=e;"V"===i.type[0]?li(t,i):this[i.type](i,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:En,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:Cn=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Ce(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:Cn,VariableDeclaration(e,t){li(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:i}=e,{type:r}=i,n=t.expressionsPrecedence[r];"C"===r[0]&&"l"===r[1]&&"E"===r[5]||!(n===ee||n<t.expressionsPrecedence.ClassExpression)?this[i.type](i,t):(t.write("("),this[e.superClass.type](i,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:i}=e,{length:r}=i,n=0;if(r>0){for(;n<r;){n>0&&t.write(", ");let e=i[n],r=e.type[6];if("D"===r)t.write(e.local.name,e),n++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),n++}}if(n<r){for(t.write("{");;){let e=i[n],{name:s}=e.imported;if(t.write(s,e),s!==e.local.name&&t.write(" as "+e.local.name),!(++n<r))break;t.write(", ")}t.write("}")}t.write(" from ")}this.Literal(e.source,t),t.write(";")},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:i}=e,{length:r}=i;if(r>0)for(let e=0;;){let n=i[e],{name:s}=n.local;if(t.write(s,n),s!==n.exported.name&&t.write(" as "+n.exported.name),!(++e<r))break;t.write(", ")}t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),t.write(";")}},ExportAllDeclaration(e,t){null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let i=e.kind[0];("g"===i||"s"===i)&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Ce(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:i}=e;null!=i&&(1===i.length&&"I"===i[0].type[0]?t.write(i[0].name,i[0]):Ce(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:kn=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:kn,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),mt(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:i,expressions:r}=e;t.write("`");let{length:n}=r;for(let e=0;e<n;e++){let n=r[e],s=i[e];t.write(s.value.raw,s),t.write("${"),this[n.type](n,t),t.write("}")}let s=i[i.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){mt(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:Ln=function(e,t){if(t.write("["),e.elements.length>0){let{elements:i}=e,{length:r}=i;for(let e=0;;){let n=i[e];if(null!=n&&this[n.type](n,t),!(++e<r)){null==n&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:Ln,ObjectExpression(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),n&&null!=e.comments&&j(t,e.comments,s,r);let a=","+r,{properties:o}=e,{length:c}=o;for(let e=0;;){let i=o[e];if(n&&null!=i.comments&&j(t,i.comments,s,r),t.write(s),this[i.type](i,t),!(++e<c))break;t.write(a)}t.write(r),n&&null!=e.trailingComments&&j(t,e.trailingComments,s,r),t.write(i+"}")}else n?null!=e.comments?(t.write(r),j(t,e.comments,s,r),null!=e.trailingComments&&j(t,e.trailingComments,s,r),t.write(i+"}")):null!=e.trailingComments?(t.write(r),j(t,e.trailingComments,s,r),t.write(i+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null!=e.value?(t.write(" = "),this[e.value.type](e.value,t),t.write(";")):"F"!==e.key.type[0]&&t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:i}=e,{length:r}=i;for(let e=0;this[i[e].type](i[e],t),++e<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Ce(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:i,argument:r,argument:{type:n}}=e;t.write(i);let s=Rn(t,r,e);!s&&(i.length>1||"U"===n[0]&&("n"===n[1]||"p"===n[1])&&r.prefix&&r.operator[0]===i&&("+"===i||"-"===i))&&t.write(" "),s?(t.write(i.length>1?" (":"("),this[n](r,t),t.write(")")):this[n](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:An=function(e,t){let i="in"===e.operator;i&&t.write("("),mt(t,e.left,e,!1),t.write(" "+e.operator+" "),mt(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:An,ConditionalExpression(e,t){let{test:i}=e,r=t.expressionsPrecedence[i.type];r===ee||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let i=t.expressionsPrecedence[e.callee.type];i===ee||i<t.expressionsPrecedence.CallExpression||Bs(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Ce(t,e.arguments)},CallExpression(e,t){let i=t.expressionsPrecedence[e.callee.type];i===ee||i<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Ce(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let i=t.expressionsPrecedence[e.object.type];i===ee||i<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(Os(e.value),e)},RegExpLiteral(e,t){let{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},js={},hi=class{constructor(e){let t=e??js;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:$s,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:Vs,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){let{type:i}=t;if("L"===i[0]&&"n"===i[2])return this.column=0,void this.line++;if(null!=t.loc){let{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===i[0]&&"E"===i[8]||"L"===i[0]&&"i"===i[1]&&"string"==typeof t.value){let{length:t}=e,{column:i,line:r}=this;for(let n=0;n<t;n++)"\n"===e[n]?(i=0,r++):i++;return this.column=i,void(this.line=r)}}let{length:i}=e,{lineEnd:r}=this;i>0&&(this.lineEndSize>0&&(1===r.length?e[i-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}};function In(e,t){let i=new hi(t);return i.generator[e.type](e,i),i.output}var pi=class{constructor(e){this.mime=_r,this.idb=tt,this.path=Us,this.acorn={parse:fn},this.bare={createBareClient:bn,BareClient:Oe},this.base64={encode:btoa,decode:atob},this.estree={generate:In},this.cookie=Hs,this.setCookieParser=Tn.parse,this.ctx=e}},Nn=pi;function fi(e,t,i,r,n="",s=!1,a=""){if(self.__dynamic$config)var o="development"==self.__dynamic$config.mode;else o=!1;if(s){var c=[{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:e+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}]},{nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:t+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}]}];return this.ctx.config.assets.files.inject&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:this.ctx.config.assets.files.inject+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}]}),r&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(`self.__dynamic$cookies = atob("${btoa(r)}");document.currentScript?.remove();`)}]}),n&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(n+";document.currentScript?.remove();")}]}),a&&c.unshift({nodeName:"script",tagName:"script",namespaceURI:"http://www.w3.org/1999/xhtml",childNodes:[],attrs:[{name:"src",value:"data:application/javascript;base64,"+btoa(a+";document.currentScript?.remove();")}]}),c}var l=[`<script src="${t+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}"><\/script>`,`<script src="${e+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}"><\/script>`];return this.ctx.config.assets.files.inject&&l.unshift(`<script src="${this.ctx.config.assets.files.inject+(o?"?"+Math.floor(89999*Math.random()+1e4):"")}"><\/script>`),r&&l.unshift(`<script src="${"data:application/javascript;base64,"+btoa(`self.__dynamic$cookies = atob("${btoa(r)}");document.currentScript?.remove();`)}"><\/script>`),n&&l.unshift(`<script src="${"data:application/javascript;base64,"+btoa(n+";document.currentScript?.remove();")}"><\/script>`),a&&l.unshift(`<script src="${"data:application/javascript;base64,"+btoa(a+";document.currentScript?.remove();")}"><\/script>`),l}var Fe=class{constructor(e){this.generateHead=fi,this.config=[{elements:"all",tags:["style"],action:"css"},{elements:["script","iframe","embed","input","track","media","source","img","a","link","area","form","object"],tags:["src","href","action","data"],action:"url"},{elements:["source","img"],tags:["srcset"],action:"srcset"},{elements:["script","link"],tags:["integrity"],action:"rewrite",new:"nointegrity"},{elements:["script","link"],tags:["nonce"],action:"rewrite",new:"nononce"},{elements:["meta"],tags:["http-equiv"],action:"http-equiv"},{elements:["iframe"],tags:["srcdoc"],action:"html"},{elements:["link"],tags:["imagesrcset"],action:"srcset"},{elements:"all",tags:["onclick"],action:"js"}],this.ctx=e.ctx}generateRedirect(e){return`\n<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">\n<TITLE>301 Moved</TITLE></HEAD><BODY>\n<H1>301 Moved</H1>\nThe document has moved\n<A HREF="${e}">here</A>.\n</BODY></HTML>\n `}iterate(e,t){!function i(r=e){for(var n=0;n<r.childNodes.length;n++)t(r.childNodes[n]),r.childNodes[n].childNodes&&r.childNodes[n].childNodes.length&&i(r.childNodes[n])}(e)}rewrite(e,t,i=[]){return Array.isArray(e)&&(e=e[0]),e&&((e=e.toString()).match(/<\!DOCTYPE[^>]*>/gi)||(e="<!DOCTYPE html>"+e),e.replace(/(<!DOCTYPE html>|<html(.*?)>)/im,`$1${i.join("")}\n`).replace(/<(script|link)\b[^>]*>/g,((e,t)=>e.replace(/\snonce\s*=\s*"[^"]*"/,(e=>e.replace("nonce","nononce"))).replace(/\sintegrity\s*=\s*"[^"]*"/,(e=>e.replace("integrity","nointegrity"))))))}},Be=class{constructor(e){this.ctx=e.ctx}rewrite(e,t,i={}){return e&&e.toString().replace(/(?:@import\s?|url\(?)['"]?(.*?)['")]/gim,((...e)=>{try{return e[0].replace(e[3],this.ctx.url.encode(e[3],t))}catch{return e[0]}}))}};function di(e,t){"object"==typeof e&&t&&function e(t,i,r){if("object"==typeof t&&r){t.parent=i,r(t,i,r);for(let i in t)"parent"!==i&&(Array.isArray(t[i])?t[i].forEach((i=>{i&&e(i,t,r)})):t[i]&&e(t[i],t,r));"function"==typeof t.iterateEnd&&t.iterateEnd()}}(e,null,t)}function mi(e,t={},i,r){var n=this.ctx.modules.acorn.parse(e.toString(),{sourceType:t.module?"module":"script",allowImportExportEverywhere:!0,allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,ecmaVersion:"latest",preserveParens:!1,loose:!0,allowReserved:!0});return this.iterate(n,((e,n=null)=>{this.emit(e,e.type,n,i,r,t)})),e=this.ctx.modules.estree.generate(n)}function yi(e,t={}){if("string"!=typeof e.name)return!1;if(!0!==e.__dynamic){if(!["parent","top","postMessage","opener","window","self","globalThis","parent","location"].includes(e.name))return!1;if(("CallExpression"!=t.type||t.callee!=e)&&("MemberExpression"!=t.type||t.object===e||["document","window","self","globalThis"].includes(t.object.name))&&"FunctionDeclaration"!=t.type&&"VariableDeclaration"!=t.type&&("VariableDeclarator"!=t.type||t.id!=e)&&"LabeledStatement"!=t.type&&("Property"!=t.type||t.key!=e)&&("ArrowFunctionExpression"!=t.type||!t.params.includes(e))&&("FunctionExpression"!=t.type||!t.params.includes(e))&&("FunctionExpression"!=t.type||t.id!=e)&&("CatchClause"!=t.type||t.param!=e)&&"ContinueStatement"!=t.type&&"BreakStatement"!=t.type&&("AssignmentExpression"!=t.type||t.left!=e)&&"UpdateExpression"!=t.type&&"UpdateExpression"!=t.type&&("ForInStatement"!=t.type||t.left!=e)&&("MethodDefinition"!=t.type||t.key!=e)&&("AssignmentPattern"!=t.type||t.left!=e)&&"NewExpression"!=t.type&&"NewExpression"!=t?.parent?.type&&("UnaryExpression"!=t.type||t.argument!=e)&&("Property"!=t.type||1!=t.shorthand||t.value!=e)){if("__dynamic"==e.name)return e.name="undefined";if("eval"==e.name&&t.right!==e)return e.name="__dynamic$eval";e.name=`dg$(${e.name})`}}}function ke(e,t={}){Object.entries({type:"CallExpression",callee:{type:"MemberExpression",object:{type:"Identifier",name:"self"},property:{type:"Identifier",name:"__dynamic$message"}},arguments:[e.object||e,{type:"Identifier",name:"self",__dynamic:!0}]}).forEach((([t,i])=>e[t]=i))}function gi(e,t={},i={}){if(e.object.name+="","AssignmentExpression"!==t.type&&t.left!==e){if("postMessage"==e.property.value&&"CallExpression"==t.type&&t.callee==e)return ke(e,t);if("postMessage"==e.object.value&&"CallExpression"==t.type&&t.callee==e)return ke(e,t);if(("postMessage"==e.property.name||"postMessage"==e.object.name)&&"Super"!==e.object.type){var r=e.object?.name;return e.type="CallExpression",e.callee={type:"Identifier",name:"__dynamic$message"},e.arguments=[{type:"Identifier",name:r},{type:"Identifier",name:"self",__dynamic:!0}],void("CallExpression"==t.type&&(t.arguments=t.arguments))}}if("eval"==e.property.name&&(e.property.name="__dynamic$eval"),"eval"==e.object.name&&(e.object.name="__dynamic$eval"),"worker"!==i.destination&&("window"==e.property.name&&"top"!=e.object.name&&("self"==e.object.name||"globalThis"==e.object.name)&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.property.name="__dynamic$window"),"top"==e.object.name&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.object.name="top.__dynamic$window"),"top"==e.property.name&&("self"==e.object.name||"globalThis"==e.object.name)&&"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&(e.property.name="top.__dynamic$window"),"NewExpression"!==t.type&&("CallExpression"!==t.type||"CallExpression"==t.type&&e!==t.callee)&&("window"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"parent"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"__dynamic"==e.property.name&&(e.property.name="undefined"),"self"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"document"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"globalThis"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0})),"location"==e.object.name&&(e.object={type:"CallExpression",callee:{type:"Identifier",name:"dg$"},arguments:[e.object],__dynamic:!0}),"location"==e.property.name&&"BinaryExpression"!==t.type&&"AssignmentExpression"!==t.type)){e.property.__dynamic=!0,e.__dynamic=!0;let t=Object.assign({},e);e.type="CallExpression",e.callee={type:"Identifier",name:"dg$",__dynamic:!0},e.arguments=[t],e.__dynamic=!0}e.computed&&"worker"!==i.destination&&(e.property={type:"CallExpression",callee:{type:"Identifier",name:"dp$"},arguments:[e.property],__dynamic:!0})}function xi(e,t={}){if(!(e.value instanceof String&&("__dynamic"==e.value&&(e.value="undefined"),["location","parent","top","postMessage"].includes(e.value))))return!1;"postMessage"==e.value&&"AssignmentExpression"!=t.type&&t.left!=e&&ke(e,t),"location"==e.value&&(e.value="__dynamic$location"),"__dynamic"==e.value&&(e.value="undefined"),"eval"==e.value&&(e.value="__dynamic$eval")}function yt(e,t={}){e.__dynamic||e.arguments.length&&(e.arguments=[{type:"CallExpression",callee:{type:"Identifier",name:"__dynamic$wrapEval",__dynamic:!0},arguments:e.arguments,__dynamic:!0}],e.__dynamic=!0)}function _i(e,t={}){if("AssignmentExpression"!=t.type||t.left!=e){if("Identifier"==e.callee.type){if("postMessage"==e.callee.name){let t="undefined";return e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},void(e.callee.arguments=[{type:"Identifier",name:t},{type:"Identifier",name:"self",__dynamic:!0}])}"eval"==e.callee.name&&yt(e)}if("MemberExpression"==e.callee.type){if("postMessage"==e.callee.property.name&&"Super"!==e.callee.object.type){let t=e.callee.object;return e.callee.type="CallExpression",e.callee.callee={type:"Identifier",name:"__dynamic$message"},void(e.callee.arguments=[t,{type:"Identifier",name:"self",__dynamic:!0}])}"eval"==e.callee.object.name&&yt(e)}e.arguments.length>0&&e.arguments.length}}function bi(e,t={}){if("Identifier"==e.left.type){if(!0===e.left.__dynamic)return;if("location"==e.left.name){var i=structuredClone(e.left),r=structuredClone(e.right);e.right.type="CallExpression",e.right.callee={type:"Identifier",name:"ds$"},e.right.arguments=[i,r]}}}function wi(e,t={}){"ObjectPattern"!=e.parent.type&&"AssignmentExpression"!=e.parent?.parent?.type&&(e.shorthand=!1)}function vi(e,t={},i={},r={}){if("Literal"==e.type&&("ImportDeclaration"==t.type||"ExportNamedDeclaration"==t.type||"ExportAllDeclaration"==t.type)){var n=e.value+"";e.value=i.url.encode(e.value,r.meta),e.raw=e.raw.replace(n,e.value),e.__dynamic=!0}"ImportExpression"==e.type&&(e.source={type:"CallExpression",callee:{type:"Identifier",name:"__dynamic$import"},arguments:[e.source,{type:"Literal",__dynamic:!0,value:i.meta.href}]},e.__dynamic=!0)}function Si(e,t={}){if("Identifier"!==e.id.type)return!1;!0!==e.id.__dynamic&&e.id.name}function Ws(e,t,i={},r={},n={},s={}){if(!e.__dynamic){switch(t){case"Identifier":yi(e,i);break;case"MemberExpression":gi(e,i,s);break;case"Literal":xi(e,i);break;case"CallExpression":_i(e,i);break;case"AssignmentExpression":bi(e,i);break;case"ThisExpression":case"CatchClause":default:break;case"Property":wi(e,i);break;case"VariableDeclarator":Si(e,i)}vi(e,i,r,n)}}var Mn=Ws,$e=class{constructor(e){this.iterate=di,this.process=mi,this.emit=Mn,this.ctx=e.ctx}rewrite(e,t={},i=!0,r={}){if(!e||e instanceof Object||(e=e.toString()).includes("/* dynamic.js */"))return e;e=`/* dynamic.js */ \n\n${e}`;try{try{e=this.process(e,t,{module:!0,...this.ctx},r)}catch{e=this.process(e,t,{module:!1,...this.ctx},r)}}catch{}return i&&(e=`\n if (typeof self !== undefined && typeof self.importScripts == 'function' && typeof self.__dynamic == 'undefined') importScripts('/assets/dyn/config.js?v=10-02-2024', '/assets/dyn/handler.js?v=10-02-2024'+Math.floor(Math.random()*(99999-10000)+10000));\n\n ${e}`),e}},je=class{constructor(e){this.config={rewrite:[["icons","urlit"],["name"," - Dynamic"],["start_url","url"],["scope","url"],["short_name"," - Dynamic"],["shortcuts","urlev"]],delete:["serviceworker"]},this.ctx=e.ctx}rewrite(e,t){let i=JSON.parse(e);for(let e in this.config)if("rewrite"==e)for(var[r,n]of this.config[e])if("urlit"==n&&i[r])for(var s=0;s<i[r].length;s++)i[r][s].src=this.ctx.url.encode(i[r][s].src,t);else if("urlev"==n&&i[r])for(s=0;s<i[r].length;s++)i[r][s].url=this.ctx.url.encode(i[r][s].url,t);else"url"==n&&i[r]?i[r]=this.ctx.url.encode(i[r],t):"url"==n||"urlit"==n||"urlev"==n||(i[r]=i[r]+n);else if("delete"==e)for(var r of this.config[e])i[r]&&delete i[r];return JSON.stringify(i)}},Dn={encode:(e,t)=>e&&e.toString()?e.split(", ").map((e=>e.split(" ").map(((e,i)=>0==i?t.url.encode(e,t.baseURL||t.meta):e)).join(" "))).join(", "):e,decode:e=>e},Ei=class{constructor(e){this.ctx=e,this.html=new Fe(this),this.srcset=Dn,this.js=new $e(this),this.css=new Be(this),this.man=new je(this)}},On=Ei;async function Vn(e){var t;if("GET"===e.method){t=new URL(e.url).searchParams.get("url")}else{if("POST"!==e.method)return new Response("Error: Invalid method",{status:405});null===(t=(await e.formData()).get("url"))&&(t=new URL(e.url).searchParams.get("url"));if(!t)return new Response("Error: Invalid or Unfound url",{status:400})}return new Response("",{status:301,headers:{location:location.origin+this.ctx.config.prefix+this.ctx.encoding.encode(t)}})}function Fn({url:e}){return!e.toString().substr(location.origin.length,(this.ctx.config.prefix+"route").length).startsWith(this.ctx.config.prefix+"route")}function Ci({url:e}){return!e.toString().substr(location.origin.length,this.ctx.config.prefix.length).startsWith(this.ctx.config.prefix)}async function ki(e,t,i){for(let n in e)if(-1!==this.ctx.headers.csp.indexOf(n.toLowerCase())&&delete e[n],"location"!=n.toLowerCase())if("set-cookie"!==n.toLowerCase());else{for await(var r of(Array.isArray(e[n])?e[n]=e[n].map((e=>this.ctx.modules.setCookieParser(e,{decodeValues:!1})[0])):e[n]=this.ctx.modules.setCookieParser(e[n],{decodeValues:!1}),e[n]))await i.set(t.host,this.ctx.modules.cookie.serialize(r.name,r.value,{...r,encode:e=>e}));delete e[n]}else e[n]=this.ctx.url.encode(e[n],t);return new Headers(e)}function Ai(e,t,i,r){let{referrer:n}=i;if(["origin","Origin","host","Host","referer","Referer"].forEach((t=>{e[t]&&delete e[t]})),e.Origin=`${t.protocol}//${t.host}${t.port?":"+t.port:""}`,e.Host=t.host+(t.port?":"+t.port:""),e.Referer=t.href,"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=`${t.protocol}//${t.host}/`),"origin"==i.referrerPolicy&&t.origin&&(n=t.origin+"/"),r){switch(i.credentials){case"omit":default:break;case"same-origin":i.client&&t.origin==i.client.__dynamic$location.origin&&(e.Cookie=r),i.client||(e.Cookie=r);break;case"include":e.Cookie=r}e.Cookie=r}if(n&&n!=location.origin+"/")try{e.Referer=this.ctx.url.decode(n),"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=new URL(this.ctx.url.decode(n)).origin),e.Origin=new URL(this.ctx.url.decode(n)).origin}catch{}return i.client&&(e.Origin=i.client.__dynamic$location.origin,e.Referer=i.client.__dynamic$location.href,"strict-origin-when-cross-origin"==i.referrerPolicy&&(e.Referer=i.client.__dynamic$location.origin)),this.ctx.config.tab&&this.ctx.config.tab.ua&&(delete e["user-agent"],delete e["User-Agent"],e["user-agent"]=this.ctx.config.tab.ua),e["sec-fetch-dest"]=i.destination||"empty",e["sec-fetch-mode"]=i.mode||"cors",e["sec-fetch-site"]=i.client?i.client.__dynamic$location.origin==t.origin?i.client.__dynamic$location.port==t.port?"same-origin":"same-site":"cross-origin":"none","navigate"==i.mode&&(e["sec-fetch-site"]="same-origin"),e["sec-fetch-user"]="?1",new Headers(e)}function Li(e){return Object.assign(Object.create(Object.getPrototypeOf(e)),e)}function Pi(e){try{if(new new Proxy(e,{construct:()=>({})}),!Object.getOwnPropertyNames(e).includes("arguments"))throw new Error("");return!0}catch{return!1}}function Ri(e){return e.url.toString().substr(location.origin.length,e.url.toString().length).startsWith(self.__dynamic$config.assets.prefix)}async function Ii(e){let t;if("development"!==self.__dynamic$config.mode){var i=await caches.open("__dynamic$files");t=i&&await i.match(e.url)||await fetch(e)}else t=await fetch(e);let r=await t.blob();return(e.url.startsWith(location.origin+"/assets/dyn/config.js?v=10-02-2024")||e.url.startsWith(location.origin+"/assets/dyn/client.js?v=10-02-2024"))&&(r=new Blob([`${await r.text()}\nself.document?.currentScript?.remove();`],{type:"application/javascript"})),new Response(r,{headers:t.headers,status:t.status,statusText:t.statusText})}async function Ti(e,t){}var Ue=class{constructor(e){this.rawHeaders={},this.headers=new Headers({}),this.status=200,this.statusText="OK",this.body=e}async blob(){return this.body}async text(){return await this.body.text()}};function Ni(e){var t=this.ctx.encoding;return t="object"==typeof this.ctx.config.encoding?{...t,...this.ctx.encoding}:{...this.ctx.encoding[this.ctx.config.encoding]},this.ctx.encoding={...this.ctx.encoding,...t},this.ctx.encoding}function Mi(e,t,i){if(!e.url.startsWith("http"))return e.url;let r=e.url.toString();return e.url.startsWith(location.origin)&&(r=r.substr(self.location.origin.length)),r=new URL(r,new URL(t.__dynamic$location.href)).href,this.ctx.url.encode(r,i)}var Di=class{constructor(e){this.route=Vn,this.routePath=Fn,this.path=Ci,this.resHeader=ki,this.reqHeader=Ai,this.clone=Li,this.class=Pi,this.file=Ri,this.edit=Ii,this.error=Ti,this.encode=Ni,this.rewritePath=Mi,this.about=Ue,this.ctx=e}},Bn=Di;function Oi(e,t){if(!e)return e;if((e=new String(e).toString()).startsWith("about:blank"))return location.origin+this.ctx.config.prefix+e;if(!e.match(this.ctx.regex.ProtocolRegex)&&e.match(/^([a-zA-Z0-9\-]+)\:\/\//g)||e.startsWith("chrome-extension://"))return e;if(e.startsWith("javascript:")&&!e.startsWith("javascript:__dynamic$eval")){let t=new URL(e);return`javascript:__dynamic$eval(${JSON.stringify(t.pathname)})`}e.match(this.ctx.regex.WeirdRegex)&&((i=this.ctx.regex.WeirdRegex.exec(e))&&(e=i[2]));if(e.startsWith(location.origin+this.ctx.config.prefix)||e.startsWith(this.ctx.config.prefix)||e.startsWith(location.origin+this.ctx.config.assets.prefix+"dynamic.")||e.match(this.ctx.regex.BypassRegex))return e;if(e.match(this.ctx.regex.DataRegex)){try{var i;if(i=this.ctx.regex.DataRegex.exec(e)){var[r,n,s,a,o]=i;o="base64"==a?this.ctx.modules.base64.atob(decodeURIComponent(o)):decodeURIComponent(o),n&&("text/html"==n?o=this.ctx.rewrite.html.rewrite(o,t,this.ctx.rewrite.html.generateHead(location.origin+"/assets/dyn/client.js?v=10-02-2024",location.origin+"/assets/dyn/config.js?v=10-02-2024","",`window.__dynamic$url = "${t.href}"; window.__dynamic$parentURL = "${location.href}";`)):"text/css"==n?o=this.ctx.rewrite.css.rewrite(o,t):("text/javascript"==n||"application/javascript"==n)&&(o=this.ctx.rewrite.js.rewrite(o,t))),o="base64"==a?this.ctx.modules.base64.btoa(o):encodeURIComponent(o),e=s?a?`data:${n};${s};${a},${o}`:`data:${n};${s},${o}`:a?`data:${n};${a},${o}`:`data:${n},${o}`}}catch{}return e}return e=new String(e).toString(),t.href.match(this.ctx.regex.BypassRegex)&&(e=new URL(e,new URL((this.ctx.parent.__dynamic||this.ctx).meta.href)).href),e=new URL(e,t.href),(this.ctx._location?.origin||("null"==location.origin?location.ancestorOrigins[0]:location.origin))+this.ctx.config.prefix+(this.ctx.encoding.encode(e.origin+e.pathname)+e.search+e.hash)}function Vi(e){if(!e||(e=new String(e).toString()).match(this.ctx.regex.BypassRegex))return e;var t=e.indexOf(this.ctx.config.prefix);if(-1==t)return e;try{if(t=(e=new URL(e,new URL(self.location.origin)).href).indexOf(this.ctx.config.prefix),"about:blank"==e.slice(t+this.ctx.config.prefix.length).trim())return"about:blank";var i=new URL(e).search+new URL(e).hash||"",r=new URL(this.ctx.encoding.decode(e.slice(t+this.ctx.config.prefix.length).replace("https://","https:/").replace("https:/","https://").split("?")[0]))}catch{return e}return e=r.origin+r.pathname+i+(new URL(e).search?r.search.replace("?","&"):r.search)}var Fi=class{constructor(e){this.encode=Oi,this.decode=Vi,this.ctx=e}},$n=Fi,qs=/^(#|about:|mailto:|blob:|javascript:)/g,Gs=/^data:([a-z\/A-Z0-9\-\+]+);?(charset\=[\-A-Za-z0-9]+)?;?(base64)?[;,]*(.*)/g,zs=/^([\/A-Za-z0-9\-%]+)(http[s]?:\/\/.*)/g,He=class{constructor(e){this.BypassRegex=qs,this.DataRegex=Gs,this.WeirdRegex=zs,this.ctx=e}};function Bi(e){for(var t in e=new URL(e.href))this.ctx.meta[t]=e[t];return!0}var We=class{constructor(){}},$i=class extends We{constructor(e){super(),this.load=Bi,this.ctx=e}},jn=$i,Un={csp:["cross-origin-embedder-policy","cross-origin-opener-policy","cross-origin-resource-policy","content-security-policy","content-security-policy-report-only","expect-ct","feature-policy","origin-isolation","strict-transport-security","upgrade-insecure-requests","x-content-type-options","x-frame-options","x-permitted-cross-domain-policies","x-xss-protection"],status:{empty:[204,101,205,304]},method:{body:["GET","HEAD"]}};function ji(e,t=""){return"text/css"===(this.ctx.modules.mime.contentType(t||e.pathname)||"text/css").split(";")[0]}function Ui(e,t="",i=""){let r;return t||this.ctx.modules.mime.contentType(e.pathname)!=e.pathname?"text/html"===(this.ctx.modules.mime.contentType(t||e.pathname)||"text/html").split(";")[0]||i.trim().match(/\<\!(doctype|DOCTYPE) html\>/g):i.trim().match(/<(html|script|body)[^>]*>/g)&&(r=i.trim().indexOf((i.trim().match(/<(html|script|body)[^>]*>/g)||[])[0]),r>-1&&r<100)}function Hi(e,t=""){if(e.pathname.endsWith(".js")&&"text/plain"==t)return!0;var i=(this.ctx.modules.mime.contentType(t||e.pathname)||"application/javascript").split(";")[0];return"text/javascript"==i||"application/javascript"==i||"application/x-javascript"==i}var Wi=class{constructor(e){this.html=Ui,this.js=Hi,this.css=ji,this.ctx=e}},Hn=Wi;function gt(e,t=!0){let i=e.location.ancestorOrigins||[],r=[e.Window,e.Location,e.WorkerLocation,e.Document].filter((e=>e));[...r,e.Object].forEach((e=>{delete e.prototype.__dynamic$location}));let n={get:()=>e.__dynamic.location,set(t){if(t instanceof e.Location)return e.__dynamic.location=t;e.__dynamic.location.href=t},configurable:!0};try{var s=new URL(e.__dynamic$url||e.__dynamic.url.decode(e.location.pathname+e.location.search+e.location.hash))}catch{e.__dynamic$url="about:blank";s=new URL("about:blank")}return e.__dynamic.property=s,e.__dynamic.meta.load(s),e.__dynamic.location=e.__dynamic.util.clone(e.location),["href","host","hash","origin","hostname","port","pathname","protocol","search"].forEach((t=>{e.__dynamic.define(e.__dynamic.location,t,{get:()=>"search"==t&&e.location[t]+(e.location.search?s.search.replace("?","&"):s.search)||("hash"==t?location[t]:s[t]),set:i=>{e.location[t]="href"===t?e.__dynamic.url.encode(e.__dynamic.meta.href.replace(s[t],i),s):i.toString()}})})),e.__dynamic.define(e.Object.prototype,"__dynamic$location",{get(){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic?.location:this.location},set(t){return this===e||this===e.__dynamic$window||this===e.document||this===e.__dynamic$document?this.__dynamic.location.href=t:this.location=t},configurable:!0}),["assign","replace","toString","reload"].forEach((t=>{e.__dynamic.define(e.__dynamic.location,t,{get:()=>"toString"==t?()=>s.href:new e.__dynamic.Function("arg",`return window.location.${t}(arg?${"reload"!==t&&"toString"!==t?"(self.__dynamic).url.encode(arg, new URL('"+s.href+"'))":"arg"}:null)`),set:()=>null})})),i.length&&e.__dynamic.define(e.__dynamic.location,"ancestorOrigins",{get:()=>(t=>{let i=e.__dynamic.util.clone(t);for(var r=0;r<t.length;r++)e.__dynamic.define(i,r,{value:(e.top.__dynamic$location||e.__dynamic$location).origin,configurable:!0,enumerable:!0,writable:!1});return e.__dynamic.define(i,"length",{value:t.length,configurable:!0,enumerable:!0,writable:!1}),i})(i),set:()=>null}),r.forEach((t=>{e.__dynamic.define(t.prototype,"__dynamic$location",n)})),e.__dynamic.hashchange||(e.__dynamic.hashchange=(e.addEventListener("hashchange",(e=>{})),!0)),e.__dynamic.location}function xt(e){e.__dynamic$get=function(t){var i=e.__dynamic.fire("get",[t]);if(i)return i;try{return t==e.parent?e.parent.__dynamic$window:t==e.top?e.top.__dynamic$window:t==e.location||(e.Location||e.WorkerLocation)&&t instanceof(e.Location||e.WorkerLocation)?e.__dynamic$location:e.Document&&t instanceof e.Document?e.__dynamic$document:t==e?e.__dynamic$window:"function"==typeof t&&"__d$Send"==t.name?e.__dynamic$message(t.target,e):t}catch{return t}},e.__dynamic$property=function(e){return"string"!=typeof e?e:"location"==e?"__dynamic$location":"eval"==e?"__dynamic$eval":e},e.__dynamic$set=function(t,i){return t?e.__dynamic.url.encode(e.__dynamic.meta.href.replace(e.__dynamic.property.href,i),e.__dynamic.property):i},e.__dynamic$var=function(e,t){return window[t]=e},e.dg$=e.__dynamic$get,e.ds$=e.__dynamic$set,e.dp$=e.__dynamic$property,e.dv$=e.__dynamic$var,e.d$g_=e.__dynamic$get,e.d$s_=e.__dynamic$set,e.d$p_=e.__dynamic$property,e.d$v_=e.__dynamic$var}function _t(e){e.__dynamic.util.CreateDocumentProxy=function(t){return new Proxy(t,{get(i,r){let n=i[r];return"location"==r?t.defaultView?t.defaultView.__dynamic$location:e.__dynamic$location:"documentURI"==r&&t.defaultView||"baseURI"==r&&t.defaultView?t.defaultView.__dynamic.location.toString():n&&("function"==typeof n&&n.toString==e.Object.toString?new Proxy(n,{apply:(i,r,s)=>((t.defaultView&&s[0]==t.defaultView.__dynamic$document||s[0]==e.__dynamic$document)&&(s[0]=t),n.apply(t,s))}):n)},set(e,i,r){try{try{t.defaultView.__dynamic?t.defaultView.__dynamic.Reflect.set(e,i,r):e[i]=r}catch{return r||e[i]||!0}return r||e[i]||!0}catch{return r||e[i]||!0}}})},e.__dynamic.util.CreateWindowProxy=function(t){return new Proxy(t,{get(i,r){let n=e.__dynamic.Reflect.get(i,r);if(Object.getOwnPropertyDescriptor(i,r)){var s=Object.getOwnPropertyDescriptor(i,r);if(!1===s?.configurable&&!1===s?.writable&&s?.hasOwnProperty("enumerable"))return s?.value||s?.get?.call(i)}return"__dynamic$self"==r?t.window:"location"==r?t.__dynamic$location:"parent"==r?t.parent.__dynamic$window||t.parent:"top"==r?t.top.__dynamic?t.top.__dynamic$window:t.parent.__dynamic$window:"self"==r||"globalThis"==r?t.__dynamic$window:n&&("function"==typeof n&&n.toString==e.Object.toString?new Proxy(n,{apply:(e,i,r)=>Reflect.apply(e,t,r)}):n)},set(i,r,n){try{var s=Object.getOwnPropertyDescriptor(i,r);if(!1===s?.writable&&!1===s?.enumerable)return!1;if(r.constructor==e.Symbol)return Reflect.set(i,r,n),i[r];if(i.hasOwnProperty("undefined")&&i[r]+""==r)return i[r]||n||!0;if("location"==r)return t.__dynamic$location=n;if(i.hasOwnProperty(r)&&!i.propertyIsEnumerable(r)&&!s?.writable)return i[r];try{t.__dynamic?t.__dynamic.Reflect.set(i,r,n):i[r]=n}catch{return i[r]||!0}return i[r]||!0}catch{return i[r]||!0}}})},e.__dynamic.define(e,"__dynamic$window",{value:e.__dynamic.util.CreateWindowProxy(e),configurable:!1,enumerable:!1,writable:!1}),e.document&&e.__dynamic.define(e,"__dynamic$document",{value:e.__dynamic.util.CreateDocumentProxy(e.document),configurable:!1,enumerable:!1,writable:!1}),e.__dynamic$globalThis=e.__dynamic$window,e.__dynamic$self=e.__dynamic$window}function qi(e){e.__dynamic.rewrite.dom=function(t,i){if(typeof e.DOMParser>"u"||!t)return t;var r=(new e.DOMParser).parseFromString(t.toString(),"text/html").documentElement;return r.querySelectorAll("script").forEach((function(t){!t.type||t.type&&"text/javascript"!==t.type&&"application/javascript"!==t.type&&"application/x-javascript"!==t.type?t.src&&(t.src=e.__dynamic.url.encode(t.getAttribute("src"),i)):t.innerHTML&&(t.innerHTML=e.__dynamic.js.encode(t.innerHTML,{type:"script"},i,{}))})),r.querySelectorAll("link").forEach((function(t){t.href&&"stylesheet"!==t.getAttribute("rel")&&(t.href=e.__dynamic.url.encode(t.getAttribute("href"),i))})),r.querySelectorAll("img").forEach((function(t){t.src&&(t.src=e.__dynamic.url.encode(t.getAttribute("src"),i)),t.srcset&&(t.srcset=e.__dynamic.rewrite.srcset.encode(t.getAttribute("srcset"),e.__dynamic))})),r.querySelectorAll("a").forEach((function(t){t.href&&(t.href=e.__dynamic.url.encode(t.getAttribute("href"),i))})),r.querySelectorAll("style").forEach((function(t){t.innerHTML&&(t.innerHTML=e.__dynamic.rewrite.css.rewrite(t.innerHTML,i))})),r.outerHTML}}function Gi(e){if(e.__dynamic.elements.config.forEach((t=>{t.elements.forEach((i=>{t.tags.forEach((r=>{var n=Object.getOwnPropertyDescriptor(i.prototype,r);n||(n=Object.getOwnPropertyDescriptor(HTMLElement.prototype,r)),typeof i.prototype.setAttribute.__dynamic$target>"u"&&(i.prototype.setAttribute=e.__dynamic.wrap(i.prototype.setAttribute,(function(t,...i){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&"href"==i[0].toLowerCase()&&("icon"==this.rel||"shortcut icon"==this.rel)?(i[1]=e.__dynamic$icon,Reflect.apply(t,this,i)):-1==e.__dynamic.elements.attributes.indexOf(i[0].toLowerCase())?Reflect.apply(t,this,i):"srcset"==i[0].toLowerCase()||"imagesrcset"==i[0].toLowerCase()?(this.dataset[`dynamic_${i[0]}`]=i[1],i[1]=e.__dynamic.rewrite.srcset.encode(i[1],e.__dynamic),Reflect.apply(t,this,i)):"integrity"==i[0].toLowerCase()||"nonce"==i[0].toLowerCase()?(this.dataset[`dynamic_${i[0]}`]=i[1],this.removeAttribute(i[0]),Reflect.apply(t,this,["nointegrity",i[1]])):(this.dataset[`dynamic_${i[0]}`]=i[1],i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(t,this,i))}),"setAttribute"),i.prototype.setAttributeNS=e.__dynamic.wrap(i.prototype.setAttributeNS,(function(t,...i){return this instanceof HTMLLinkElement&&e.__dynamic$icon&&"href"==i[1].toLowerCase()&&("icon"==this.rel||"shortcut icon"==this.rel)?(i[2]=e.__dynamic$icon,Reflect.apply(t,this,i)):-1==e.__dynamic.elements.attributes.indexOf(i[1].toLowerCase())?Reflect.apply(t,this,i):"srcset"==i[1].toLowerCase()||"imagesrcset"==i[1].toLowerCase()?(this.dataset[`dynamic_${i[1]}`]=i[2],i[2]=e.__dynamic.rewrite.srcset.encode(i[2],e.__dynamic),Reflect.apply(t,this,i)):"integrity"==i[1].toLowerCase()||"nonce"==i[1].toLowerCase()?(this.dataset[`dynamic_${i[1]}`]=i[2],this.removeAttribute(i[1]),Reflect.apply(t,this,["nointegrity",i[2]])):(this.dataset[`dynamic_${i[1]}`]=i[2],i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.baseURL||e.__dynamic.meta),Reflect.apply(t,this,i))}),"setAttributeNS"),i.prototype.getAttribute=e.__dynamic.wrap(i.prototype.getAttribute,(function(e,...t){return this.dataset[`dynamic_${t[0]}`]?this.dataset[`dynamic_${t[0]}`]:Reflect.apply(e,this,t)}),"getAttribute"),i.prototype.getAttributeNS=e.__dynamic.wrap(i.prototype.getAttributeNS,(function(e,...t){return this.dataset[`dynamic_${t[1]}`]?this.dataset[`dynamic_${t[1]}`]:Reflect.apply(e,this,t)}),"getAttributeNS")),e.__dynamic.define(i.prototype,r,{get(){if("window"==t.action){let t=e.__dynamic.elements.contentWindow.get.call(this),i=!0;try{t.location.href}catch{i=!1}if(i&&(t.__dynamic||e.__dynamic.elements.client(t,e.__dynamic$config,decodeURIComponent(this.src))),"contentDocument"==r)return t.document;if("contentWindow"==r)return i&&t.__dynamic$window||t}if("css"==t.action)return n.get.call(this);try{return e.__dynamic.url.decode(n.get.call(this))}catch{}return n.get.call(this)},set(i){return i&&"string"==typeof i&&(i=i.toString()),"href"==r&&this instanceof HTMLLinkElement&&e.__dynamic$icon&&("icon"==this.rel||"shortcut icon"==this.rel)&&(this.dataset[`dynamic_${r}`]=i,i=e.__dynamic$icon),"html"==t.action?(Promise.resolve(e.__dynamic.createBlobHandler(new Blob([i],{type:"text/html"}),this,i)).then((e=>{this.setAttribute(r,e)})),i):("srcset"==t.action&&(i=e.__dynamic.rewrite.srcset.encode(i,e.__dynamic)),"rewrite"==t.action?(this.dataset[`dynamic_${r}`]=i,this.removeAttribute(r),this.setAttribute(t.new,i)):("css"==t.action&&(i=e.__dynamic.rewrite.css.rewrite(i,e.__dynamic.meta)),"url"==t.action&&(i=e.__dynamic.url.encode(i,e.__dynamic.baseURL||e.__dynamic.meta)),this.dataset[`dynamic_${r}`]=i,n.set.call(this,i)))}})}))}))})),["innerHTML","outerHTML"].forEach((t=>{e.__dynamic.define(e.HTMLElement.prototype,t,{get(){return(this["__"+t]||e.__dynamic.elements[t].get.call(this)).toString()},set(i){return this["__"+t]=(e=>(new DOMParser).parseFromString(e,"text/html").body.innerHTML)(i),this instanceof e.HTMLTextAreaElement?e.__dynamic.elements[t].set.call(this,i):this instanceof e.HTMLScriptElement?e.__dynamic.elements[t].set.call(this,e.__dynamic.rewrite.js.rewrite(i,{type:"script"})):this instanceof e.HTMLStyleElement?e.__dynamic.elements[t].set.call(this,e.__dynamic.rewrite.css.rewrite(i,e.__dynamic.meta)):e.__dynamic.elements[t].set.call(this,e.__dynamic.rewrite.dom(i,e.__dynamic.meta))}})})),["MutationObserver","ResizeObserver","IntersectionObserver"].forEach((t=>{e[t].prototype.observe=e.__dynamic.wrap(e[t].prototype.observe,(function(t,...i){return i[0]==e.__dynamic$document&&(i[0]=e.document),Reflect.apply(t,this,i)}),t+".prototype.observe")})),e.__dynamic.defines(e.HTMLAnchorElement.prototype,{pathname:e.__dynamic.elements.createGetter("pathname"),origin:e.__dynamic.elements.createGetter("origin"),host:e.__dynamic.elements.createGetter("host"),hostname:e.__dynamic.elements.createGetter("hostname"),port:e.__dynamic.elements.createGetter("port"),protocol:e.__dynamic.elements.createGetter("protocol"),search:e.__dynamic.elements.createGetter("search"),hash:e.__dynamic.elements.createGetter("hash"),toString:{get:function(){return this.__toString||(()=>this.href?new URL(this.href).toString():"")},set:function(e){this.__toString=e}}}),e.HTMLElement.prototype.insertAdjacentHTML=e.__dynamic.wrap(e.HTMLElement.prototype.insertAdjacentHTML,(function(t,...i){return this instanceof e.HTMLStyleElement?Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta)]):this instanceof e.HTMLScriptElement?Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.js.rewrite(i[1],{type:"script"},!1,e.__dynamic)]):this instanceof e.HTMLTextAreaElement?Reflect.apply(t,this,i):Reflect.apply(t,this,[i[0],e.__dynamic.rewrite.html.rewrite(i[1],e.__dynamic.meta)])}),"insertAdjacentHTML"),[[e.Node,"textContent"],[e.HTMLElement,"innerText"]].forEach((([t,i])=>{var r=Object.getOwnPropertyDescriptor(t.prototype,i);function n(){return this["__"+i]||r?.get&&r.get.call(this)}e.__dynamic.define(e.HTMLStyleElement.prototype,i,{get:n,set(t){return this["__"+i]=t,r?.set&&r.set.call(this,e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.HTMLScriptElement.prototype,i,{get:n,set(t){return this["__"+i]=t,null!==this.type||"application/javascript"!==this.type||"text/javascript"!==this.type||"application/x-javascript"!==this.type?r?.set&&r.set.call(this,t):r?.set&&r.set.call(this,e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic))}})})),e.Text.prototype.toString=function(){return this.textContent},e.document.createElement=e.__dynamic.wrap(e.document.createElement,(function(e,...t){var i=Reflect.apply(e,this,t);return i.rewritten=!0,"iframe"==t[0].toLowerCase()&&(i.src="about:blank"),i}),"createElement"),!document.querySelector('link[rel="icon"], link[rel="shortcut icon"]')){var t=document.createElement("link");t.rel="icon",t.href=(e.__dynamic$icon||"/favicon.ico")+"?dynamic",t.dataset.dynamic_hidden="true",document.head.appendChild(t)}e.__dynamic.define(e.Attr.prototype,"value",{get(){return this.__value||e.__dynamic.elements.attrValue.get.call(this)},set(t){return this.__value=t,"href"==this.name||"src"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.url.encode(t,e.__dynamic.meta)):"style"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta)):"onclick"==this.name?e.__dynamic.elements.attrValue.set.call(this,e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic)):e.__dynamic.elements.attrValue.set.call(this,t)}})}function zi(e){let t=e.XMLHttpRequest;e.Worker=new Proxy(e.Worker,{construct(i,r){if(r[0])if(r[0]=r[0].toString(),r[0].trim().startsWith(`blob:${e.location.origin}`)){let i=new t;i.open("GET",r[0],!1),i.send();let n=e.__dynamic.rewrite.js.rewrite(i.responseText,{type:"worker"},!0),s=new Blob([n],{type:"application/javascript"});r[0]=URL.createObjectURL(s)}else r[0]=e.__dynamic.url.encode(r[0],e.__dynamic.meta);return Reflect.construct(i,r)}})}function Ki(e){e.__dynamic$history=function(t,...i){i[2]&&(i[2]=e.__dynamic.url.encode(i[2],e.__dynamic.meta)),e.__dynamic.Reflect.apply(t,this,i),e.__dynamic.client.location(e,!0,!1)},e.History.prototype.pushState=e.__dynamic.wrap(e.History.prototype.pushState,e.__dynamic$history),e.History.prototype.replaceState=e.__dynamic.wrap(e.History.prototype.replaceState,e.__dynamic$history)}var Ks="!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~",Xs="%";function Wn(e){e=e.toString();let t="";for(let i=0;i<e.length;i++){let r=e[i];if(Ks.includes(r)&&!Xs.includes(r))t+=r;else{t+="%"+r.charCodeAt().toString(16).padStart(2,0)}}return t}function Xi(e){let t=Object.getOwnPropertyDescriptor(e.WebSocket.prototype,"url");e.__dynamic.define(e.WebSocket.prototype,"url",{get(){let i=t.get.call(this);return e.__dynamic.url.decode(i)},set:e=>!1}),e.WebSocket=e.__dynamic.wrap(e.WebSocket,((t,...i)=>{console.log(i);let r=new URL(i[0]),n={remote:{host:r.hostname,port:r.port||("wss:"===r.protocol?"443":"80"),path:r.pathname+r.search,protocol:r.protocol},headers:{Host:r.hostname+(r.port?":"+r.port:""),Origin:e.__dynamic$location.origin,Pragma:"no-cache","Cache-Control":"no-cache",Upgrade:"websocket",Connection:"Upgrade"},forward_headers:["accept-encoding","accept-language","sec-websocket-extensions","sec-websocket-key","sec-websocket-version","sec-websocket-accept"]};return i[1]&&(n.headers["sec-websocket-protocol"]=i[1].toString()),[e.location.protocol.replace("http","ws")+"//"+new URL((e.__dynamic$config.bare.path+"/"||"/fq/")+"v1/",new URL(location.origin)).href.replace(/http(s?):\/\//g,"").replace(/\/\//g,"/"),["bare",Wn(JSON.stringify(n))]]}))}function Qi(e){e.Request=e.__dynamic.wrap(e.Request,(function(t,...i){if(i[0]instanceof t){let e=Reflect.construct(t,i);return"navigate"===i[0].mode&&(e.mode="same-origin"),e}return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),i})),e.__dynamic.define(e.Request.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.RequestURL.get.call(this))},set:e=>e}),e.fetch=e.__dynamic.wrap(e.fetch,(function(t,...i){return e.Request&&("Request"===i[0].constructor.name||i[0]instanceof e.Request)?(console.log(i[0]),Reflect.apply(t,e,i)):(i[0]&&e.__dynamic&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,e,i))}),"fetch"),e.XMLHttpRequest.prototype.open=e.__dynamic.wrap(e.XMLHttpRequest.prototype.open,(function(t,...i){return i[1]&&(i[1]=e.__dynamic.url.encode(i[1],e.__dynamic.meta)),!1===i[2]&&(i[2]=!0),Reflect.apply(t,this,i)}),"XMLHttpRequest.prototype.open"),Object.defineProperty(e.XMLHttpRequest.prototype,"responseURL",{get(){return e.__dynamic.url.decode(e.__dynamic.http.XMLResponseURL.get.call(this))},set:e=>e}),Object.defineProperty(e.Response.prototype,"url",{get(){return e.__dynamic.url.decode(e.__dynamic.http.ResponseURL.get.call(this))},set:e=>e}),e.open=e.__dynamic.wrap(e.open,(function(t,...i){""!=i[0]&&i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),""==i[0]&&(i[0]="about:blank");let r=Reflect.apply(t,this,i);r.opener=e.__dynamic$window;try{"about:"===new URL(i[0]).protocol?r.__dynamic$url="about:srcdoc":r.__dynamic$url=e.__dynamic.url.decode(i[0])}catch{r.__dynamic$url="about:srcdoc"}return e.__dynamic.elements.client(r,e.__dynamic$config,r.__dynamic$url),r.__dynamic$window}),"window.open"),e.__dynamic.define(e,"__dynamic$import",{get:()=>function(t,i){try{return e.__dynamic.url.encode(t,new URL(i))}catch{return e.__dynamic.url.encode(t,e.__dynamic.meta)}},set:()=>{}})}function bt(e){e.__dynamic$message=function(t,i=top){return t||(t=e),function(){var r=arguments;return(t=>"Worker"==t.constructor.name||"MessagePort"==t.constructor.name||"DedicatedWorkerGlobalScope"==e.constructor.name)(t)||!(e=>"Window"==e.constructor.name||"global"==e.constructor.name)(t)?t.postMessage.call(t,...r):(t.__dynamic$self&&(t=t.__dynamic$self),(t._postMessage||t.postMessage).call(t,[r[0],i.__dynamic$location.origin,i.location.href,i.name,i!==e],"*",r[2]||[]))}},"Window"==e.constructor.name&&(e.addEventListener&&(e.addEventListener=new Proxy(e.addEventListener,{apply(t,i,r){if(i==e.__dynamic$window&&(i=e),!r[1]||!r[0]||"function"!=typeof r[1])return Reflect.apply(t,i,r);if("message"==r[0]){var n=r[1].bind({});r[1]=function(t){return n(function(t){let i,r=e.__dynamic.util.clone(t);for(var n in t.source&&(i=((e,t)=>Object.keys(window||{}).map((e=>parseInt(e))).filter((e=>isFinite(e))).map((e=>window[e])).filter((e=>e||!1)).find((i=>{try{return i.name==e&&i.location.href==t}catch{return!1}})))(t.data[3],t.data[2])||t.currentTarget),e.__dynamic.define(r,"isTrusted",{value:!0,writable:!1}),t.origin&&(Array.isArray(t.data)&&5==t.data.length?e.__dynamic.define(r,"origin",{value:t.data[1],writable:!1}):e.__dynamic.define(r,"origin",{value:t.origin,writable:!1})),t.data&&(Array.isArray(t.data)&&5==t.data.length?e.__dynamic.define(r,"data",{value:t.data[0],writable:!1}):e.__dynamic.define(r,"data",{value:t.data,writable:!1})),t.source&&(i?e.__dynamic.define(r,"source",{value:i?.__dynamic$window||i,writable:!0}):e.__dynamic.define(r,"source",{value:i||Array.isArray(t.data)&&3==t.data.length&&!0===t.data[2]?t.source:t.currentTarget,writable:!0})),t)"isTrusted"!==n&&"origin"!==n&&"data"!==n&&"source"!==n&&e.__dynamic.define(r,n,{value:t[n],writable:!1});return r}(t))}}return Reflect.apply(t,i,r)}})),"Window"==e.constructor.name&&e.__dynamic.define(e,"onmessage",{get:()=>e._onmessage||null,set:t=>(e._onmessage&&e.removeEventListener("message",e._onmessage),e.addEventListener("message",t),e._onmessage=t)}))}function Yi(e){function t(t,...i){for(var r in i)i[r]=e.__dynamic.rewrite.dom(i[r],e.__dynamic.meta);return t.apply(this,i)}["write","writeln"].forEach((i=>{e.document[i]=e.__dynamic.wrap(e.document[i],t,`document.${i}`)}))}function wt(e){e.importScripts=new Proxy(e.importScripts,{apply:(t,i,r)=>([...r].forEach(((t,i)=>{r[i]=e.__dynamic.url.encode(t,e.__dynamic.meta)})),Reflect.apply(t,i,r))}),e.__dynamic.define(e.__dynamic,"_location",{value:e.location,writable:!0}),e.__dynamic.define(e.WorkerGlobalScope.prototype,"location",{get:()=>e.__dynamic.location,set:e=>e}),e.location=e.__dynamic.location}function vt(e){var t=e.Reflect.get.bind({}),i=e.Reflect.set.bind({});e.Reflect.set=e.__dynamic.wrap(e.Reflect.set,(function(t,...r){return"Window"==r[0].constructor.name&&"location"==r[1]?(r[0].__dynamic$location=r[2],!0):"Location"==r[0].constructor.name?(e.__dynamic$location[r[1]]=r[2],!0):Reflect.apply(i,this,r)}),"Reflect.set"),e.Reflect.get=e.__dynamic.wrap(e.Reflect.get,(function(i,...r){if("object"==typeof r[0]){if("Window"==r[0].constructor.name){if("location"==r[1])return r[0].__dynamic?r[0].__dynamic$location:Reflect.apply(t,this,r);if(r[0][r[1]]&&"Window"==r[0][r[1]].constructor.name)return r[0][r[1]].__dynamic$window}if("Location"==r[0].constructor.name)return e.__dynamic$location[r[1]]}return Reflect.apply(t,this,r)}),"Reflect.get"),e.__dynamic.Reflect={get:t,set:i,apply:e.Reflect.apply.bind({}),construct:e.Reflect.construct.bind({}),defineProperty:e.Reflect.defineProperty.bind({}),deleteProperty:e.Reflect.deleteProperty.bind({}),getOwnPropertyDescriptor:e.Reflect.getOwnPropertyDescriptor.bind({}),getPrototypeOf:e.Reflect.getPrototypeOf.bind({}),has:e.Reflect.has.bind({}),isExtensible:e.Reflect.isExtensible.bind({}),ownKeys:e.Reflect.ownKeys.bind({}),preventExtensions:e.Reflect.preventExtensions.bind({}),setPrototypeOf:e.Reflect.setPrototypeOf.bind({})}}function Ji(e){e.__dynamic.define(e.document,"origin",{value:e.__dynamic$location.origin,configurable:!1,enumerable:!1}),e.__dynamic.define(e.document,"domain",{value:e.__dynamic$location.hostname,configurable:!1,enumerable:!1}),["referrer","URL","documentURI"].forEach((t=>{e.__dynamic.define(e.document,t,{value:e.__dynamic$location.toString(),configurable:!1,enumerable:!1})})),[e.document,e.HTMLElement.prototype].forEach((t=>{e.__dynamic.define(t,"baseURI",{get:()=>(e.__dynamic.baseURL||e.__dynamic$location).href})})),["getEntries","getEntriesByName","getEntriesByType"].forEach((t=>{e.performance[t]=new Proxy(e.performance[t],{apply:(t,i,r)=>Reflect.apply(t,i,r).filter((t=>!t.name?.includes(e.location.origin+"/assets/dyn/dynamic."))).filter((t=>!t.name.includes(e.location.origin+e.__dynamic.config.prefix+"caches/"))).map((t=>{if(t.name){var i=e.__dynamic.util.clone(t);for(var r in i.__defineGetter__("name",(function(){return this._name})),i.__defineSetter__("name",(function(e){this._name=e})),i.name=e.__dynamic.url.decode(t.name),e.__dynamic.define(i,"name",{get:void 0,set:void 0}),e.__dynamic.define(i,"name",{value:i._name,writable:!1}),delete i._name,t)if("name"!=r){if("function"==typeof t[r])var n=new Proxy(t[r],{apply(e,r,n){if("toJSON"==e.name){var s={};for(var a in i)s[a]=i[a];return s}return Reflect.apply(e,t,n)}});else n=t[r];Object.defineProperty(i,r,{value:n,writable:!0})}t=i}return t}))})})),e.MouseEvent&&(e.MouseEvent.prototype.initMouseEvent=e.__dynamic.wrap(e.MouseEvent.prototype.initMouseEvent,(function(t,...i){return i.length&&(i=i.map((t=>t==e.__dynamic$window?e:t))),Reflect.apply(t,this,i)}))),e.KeyboardEvent&&(e.KeyboardEvent.prototype.initKeyboardEvent=e.__dynamic.wrap(e.KeyboardEvent.prototype.initKeyboardEvent,(function(t,...i){return i.length&&(i=i.map((t=>t==e.__dynamic$window?e:t))),Reflect.apply(t,this,i)}))),e.StorageEvent&&(e.StorageEvent.prototype.initStorageEvent=e.__dynamic.wrap(e.StorageEvent.prototype.initStorageEvent,(function(t,...i){return i.length&&(i=i.map((t=>t==e.localStorage?e.__dynamic.storage.localStorage:t==e.sessionStorage?e.__dynamic.storage.sessionStorage:t))),Reflect.apply(t,this,i)}))),e.Object.defineProperty=e.__dynamic.wrap(e.Object.defineProperty,(function(e,...t){try{return Reflect.apply(e,this,t)}catch(e){e.toString().includes("Cannot redefine property:")&&(t[0].__defined||(t[0].__defined={}),t[0].__defined[t[1]]=t[2])}})),"https://www.google.com"==e.__dynamic.meta.origin&&(e.setInterval=new Proxy(e.setInterval,{apply:(e,t,i)=>500==i[1]?null:Reflect.apply(e,t,i)}))}function Zi(e){e.Storage.prototype.setItem=e.__dynamic.wrap(e.Storage.prototype.setItem,(function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)}),"Storage.prototype.setItem"),e.Storage.prototype.getItem=e.__dynamic.wrap(e.Storage.prototype.getItem,(function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)||null}),"Storage.prototype.getItem"),e.Storage.prototype.removeItem=e.__dynamic.wrap(e.Storage.prototype.removeItem,(function(t,...i){return i[0]&&(i[0]="__dynamic$"+e.__dynamic$location.host+"$"+i[0].toString()),Reflect.apply(t,this,i)}),"Storage.prototype.removeItem"),e.Storage.prototype.clear=e.__dynamic.wrap(e.Storage.prototype.clear,(function(t,...i){for(var r=[],n=0;n<this.length;n++)t.call(this,n)?.startsWith("__dynamic$"+e.__dynamic$location.host+"$")&&r.push(t.call(this,n)?.replace("__dynamic$"+e.__dynamic$location.host+"$",""));for(var s in r)t.call(this,r[s])}),"Storage.prototype.clear"),e.Storage.prototype.key=e.__dynamic.wrap(e.Storage.prototype.key,(function(t,...i){for(var r=[],n=0;n<this.length;n++)t.call(this,n)?.startsWith("__dynamic$"+e.__dynamic$location.host+"$")&&r.push(t.call(this,n)?.replace("__dynamic$"+e.__dynamic$location.host+"$",""));return r[i[0]]?r[i[0]]:null}),"Storage.prototype.key"),["localStorage","sessionStorage"].forEach((t=>{e["__dynamic$"+t]=new Proxy(e[t],{get(i,r){if("length"==r){for(var n=[],s=0;s<Object.keys(e.__dynamic.storage[t]).length;s++)Object.keys(e.__dynamic.storage[t])[s].startsWith("__dynamic$"+e.__dynamic$location.host+"$")&&n.push(Object.keys(e.__dynamic.storage[t])[s].replace("__dynamic$"+e.__dynamic$location.host+"$",""));return n.length}return e.__dynamic.storage.methods.includes(r)?e.__dynamic.storage.cloned[t][r].bind(e.__dynamic.storage[t]):e.__dynamic.storage[t].getItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString())},set:(i,r,n)=>(e.__dynamic.storage[t].setItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString(),n),n||!0),deleteProperty:(i,r)=>e.__dynamic.storage[t].removeItem("__dynamic$"+e.__dynamic$location.host+"$"+r.toString())}),delete e[t],e[t]=e["__dynamic$"+t]}))}function er(e){"serviceWorker"in e.navigator&&(e.__dynamic.sw=e.navigator.serviceWorker,delete e.navigator.serviceWorker,delete e.Navigator.prototype.serviceWorker),e.navigator.sendBeacon=e.__dynamic.wrap(e.navigator.sendBeacon,(function(t,...i){return i[0]&&(i[0]=e.__dynamic.url.encode(i[0],e.__dynamic.meta)),Reflect.apply(t,this,i)}),"navigator.sendBeacon")}var tr=e=>e?e.split(";").map((e=>e.split("="))).reduce(((e,t)=>(e[t[0].trim()]=t[1].trim(),e)),{}):{},qe=(e=[])=>e.map((e=>`${e.name}=${e.value}`)).join("; ");function ir(e){if(delete e.Document.prototype.cookie,e.__dynamic.define(e.document,"cookie",{get(){return e.__dynamic.fire("getCookies",[e.__dynamic.location.host,e.__dynamic.cookie.str||""])||(e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str||e.__dynamic.cookie.desc.get.call(this)||"")},set(t){var i=e.__dynamic.modules.setCookieParser.parse(t,{decodeValues:!1})[0],r=e.__dynamic.fire("setCookie",[e.__dynamic.location.host,t,i]);if(r)return r;i.name=i.name.replace(/^\./g,""),Promise.resolve(e.__dynamic.cookies.set(e.__dynamic.location.host,e.__dynamic.modules.cookie.serialize(i.name,i.value,{...i,encode:e=>e}))).then((async t=>{await e.__dynamic.cookies.update(e.__dynamic.location.host),e.__dynamic.cookie.str=await e.__dynamic.cookies.get(e.__dynamic.location.host)}));var n=tr(e.__dynamic.cookie.str||"");n[i.name]=i.value,e.__dynamic.cookie.str=qe(Object.entries(n).map((e=>({name:e[0],value:e[1]}))))}}),e.navigator.serviceWorker)try{e.navigator.serviceWorker.onmessage=({data:t})=>{if(t.host==e.__dynamic.location.host&&"set-cookie"==t.type){var i=e.__dynamic.modules.cookie.parse(t.val),r=tr(e.__dynamic.cookie.str||"");r[Object.entries(i)[0][0]]=Object.entries(i)[0][1],e.__dynamic.cookie.str=qe(Object.entries(r).map((e=>({name:e[0],value:e[1]}))))}t.host==e.__dynamic.location.host&&"cookies"==t.type&&(e.__dynamic.cookie.str=t.cookies)}}catch{}}function rr(e){e.CSSStyleDeclaration.prototype._setProperty=e.CSSStyleDeclaration.prototype.setProperty,e.CSSStyleDeclaration.prototype.setProperty=e.__dynamic.wrap(e.CSSStyleDeclaration.prototype.setProperty,(function(t,...i){return("background-image"==i[0]||"background"==i[0]||"backgroundImage"==i[0])&&(i[1]=e.__dynamic.rewrite.css.rewrite(i[1],e.__dynamic.meta)),t.apply(this,i)}),"CSSStyleDeclaration.prototype.setProperty"),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background",{get(){return this._background?this._background:this.getPropertyValue("background")},set(t){return this._background=t,this._setProperty("background",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"backgroundImage",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}}),e.__dynamic.define(e.CSSStyleDeclaration.prototype,"background-image",{get(){return this._backgroundImage?this._backgroundImage:this.getPropertyValue("background-image")},set(t){return this._backgroundImage=t,this._setProperty("background-image",e.__dynamic.rewrite.css.rewrite(t,e.__dynamic.meta))}})}function St(e){e.__dynamic.createBlobHandler=async function(t,i,r){let n=(await e.__dynamic.sw.ready).active;e.__dynamic.sw.addEventListener("message",(({data:{url:t}})=>{t&&e.__dynamic.elements.iframeSrc.set.call(i,t)}),{once:!0}),n.postMessage({type:"createBlobHandler",blob:t,url:e.__dynamic.modules.base64.encode(r.toString().split("").slice(0,10)),location:e.__dynamic.location.href})}}var qn=(e,t,i)=>((i=new MutationObserver((function(t){for(var i of t)e[i.type](i),document.dispatchEvent(new CustomEvent({attributes:"attrChanged",characterData:"characterData",childList:"nodeChanged"}[i.type],{detail:i}))}))).observe(t,{subtree:!0,attributes:!0,childList:!0}),i);function Et(e,t){function i(e){if(!e.rewritten&&(1===e.nodeType||3===e.nodeType)){if((e=new Proxy(e,{get:(e,i)=>"src"==i||"href"==i||"srcset"==i||"imageSrcset"==i||"data"==i||"action"==i?t.elements.getAttribute.call(e,i.toLowerCase()):"setAttribute"==i||"getAttribute"==i||"removeAttribute"==i||"hasAttribute"==i||"cloneNode"==i||"addEventListener"==i?(...r)=>t.elements[i].call(e,...r):"node"==i?e:e[i],set:(e,i,r)=>("src"==i||"href"==i||"srcset"==i||"imageSrcset"==i||"data"==i||"action"==i?t.elements.setAttribute.call(e,i.toLowerCase(),r):e[i]=r,!0)}))instanceof HTMLScriptElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.type&&e.textContent?.length?("application/javascript"==e.type||"text/javascript"==e.type||"application/x-javascript"==e.type&&e.textContent?.length)&&(e.textContent=t.rewrite.js.rewrite(e.textContent,{type:"script"},!1,t)):!e.type&&e.textContent?.length&&(e.textContent=t.rewrite.js.rewrite(e.textContent,{type:"script"},!1,t))),e instanceof HTMLStyleElement&&e.textContent?.length&&(e.textContent=t.rewrite.css.rewrite(e.textContent,t.meta)),e instanceof HTMLIFrameElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcdoc)){e.dataset.dynamic_srcdoc=e.srcdoc;let i=new Blob([t.rewrite.html.rewrite(e.srcdoc,t.meta)],{type:"text/html"});e.src=URL.createObjectURL(i)}if(e instanceof HTMLLinkElement&&("stylesheet"!==e.getAttribute("rel")&&"prefetch"!==e.getAttribute("rel")&&"dns-prefetch"!==e.getAttribute("rel")?(e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e.imageSrcset&&(e.dataset.dynamic_imagesrcset=e.imageSrcset,e.imageSrcset=t.rewrite.srcset.encode(e.imageSrcset,t))):e.addEventListener("error",(i=>{if(e instanceof HTMLLinkElement)return e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e.imageSrcset&&(e.dataset.dynamic_imagesrcset=e.imageSrcset,e.imageSrcset=t.rewrite.srcset.encode(e.imageSrcset,t)),i.preventDefault(),!1}),{once:!0})),e instanceof HTMLAnchorElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLFormElement&&e.action&&(e.dataset.dynamic_action=e.action,e.action=t.url.encode(e.action,t.meta)),e instanceof HTMLObjectElement&&e.data&&(e.dataset.dynamic_data=e.data,e.data=t.url.encode(e.data,t.meta)),e instanceof HTMLSourceElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcset&&(e.dataset.dynamic_srcset=e.srcset,e.srcset=t.rewrite.srcset.encode(e.srcset,t))),e instanceof HTMLImageElement&&(e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e.srcset&&(e.dataset.dynamic_srcset=e.srcset,e.srcset=t.rewrite.srcset.encode(e.srcset,t))),e instanceof HTMLAreaElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLBaseElement&&e.href&&(e.dataset.dynamic_href=e.href,e.href=t.url.encode(e.href,t.meta)),e instanceof HTMLInputElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLAudioElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLVideoElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLTrackElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLMediaElement&&e.src&&(e.dataset.dynamic_src=e.src,e.src=t.url.encode(e.src,t.meta)),e instanceof HTMLMetaElement&&e.httpEquiv){if("refresh"==e.httpEquiv.toLowerCase()){var i=e.content.split(";url=")[0],r=e.content.split(";url=")[1];e.content=`${i};url=${t.url.encode(r,t.meta)}`}"content-security-policy"==e.httpEquiv.toLowerCase()&&e.remove()}return e instanceof HTMLElement&&(e.getAttribute("style")&&e.setAttribute("style",t.rewrite.css.rewrite(e.getAttribute("style"),t.meta)),e.integrity&&(e.setAttribute("nointegrity",e.integrity),e.removeAttribute("integrity")),e.nonce&&(e.setAttribute("nononce",e.nonce),e.removeAttribute("nonce"))),e.rewritten=!0}}t||(t=e.__dynamic);let r=qn({childList(e){i(e.target);for(let t of e.addedNodes)if(t.childNodes)for(let e of t.childNodes)i(e);if(e.target.childNodes)for(var t of e.target.childNodes)i(t)},attributes(e){},characterData(e){}},e.document);e.document.addEventListener("DOMContentLoaded",(function(){r.disconnect()}),{once:!0})}function nr(e){e.__dynamic.eval=e.__dynamic.wrap(eval,(function(t,...i){if(i.length){var r=i[0].toString();return r=e.__dynamic.rewrite.js.rewrite(r,{type:"script"},!1,e.__dynamic),t.apply(this,[r])}}),"eval"),e.__dynamic.define(e.Object.prototype,"__dynamic$eval",{get(){return this===window?e.__dynamic.eval:this.eval},set:e=>e}),e.__dynamic$wrapEval=function(t){return arguments.length?e.__dynamic.fire("eval",[e,t])||(t=e.__dynamic.rewrite.js.rewrite(t,{type:"script"},!1,e.__dynamic)):arguments[0]}}function ar(e){var t=e.Function.prototype.toString;e.__dynamic.Function=e.Function.bind({}),e.__dynamic.define(e.Function.prototype,"_toString",{get:()=>t,set:()=>{}});var i=function(){try{var e=Reflect.apply(t,this,[])}catch{return`function ${this.name}() { [native code] }`}return e.includes("[native code]")?`function ${this.name}() { [native code] }`:e};e.__dynamic.define(e.Function.prototype,"toString",{get(){return this.__toString||i},set(e){this.__toString=e}}),e.Function=new Proxy(e.Function,{apply(t,i,r){var n=[...r],s=n.pop();return s=`(function anonymous(${n.toString()}) {${s}})`,s=e.__dynamic.rewrite.js.rewrite(s,{type:"script"},!1,e.__dynamic),e.eval(s)},construct(t,i){var r=[...i],n=r.pop();return n=`(function anonymous(${r.toString()}) {${n}})`,n=e.__dynamic.rewrite.js.rewrite(n,{type:"script"},!1,e.__dynamic),e.eval(n)}}),e.Function.prototype.apply=e.__dynamic.wrap(e.Function.prototype.apply,(function(t,...i){return i[0]==e.__dynamic$window&&(i[0]=i[0].__dynamic$self),i[0]==e.__dynamic$document&&(i[0]=e.document),Reflect.apply(t,this,i)}),"Function.prototype.apply"),e.Function.prototype.call=new Proxy(e.Function.prototype.call,{apply:(t,i,r)=>(r[0]==e.__dynamic$window&&(r[0]=r[0].__dynamic$self),r[0]==e.__dynamic$document&&(r[0]=e.document),Reflect.apply(t,i,r))}),e.Function.prototype.bind=e.__dynamic.wrap(e.Function.prototype.bind,(function(t,...i){return i[0]==e.__dynamic$window&&(i[0]=i[0].__dynamic$self),i[0]==e.__dynamic$document&&(i[0]=e.document),t.apply(this,i)}),"Function.prototype.bind")}function sr(e){}function or(e){}var Gn=[{name:"get",function:"self"},{name:"func",function:"self"},{name:"location",function:"self"},{name:"mutation",function:"self"},{name:"dom",function:"self"},{name:"write",function:"self"},{name:"message",function:"self"},{name:"reflect",function:"self"},{name:"window",function:"self"},{name:"eval",function:"self"},{name:"attr",function:"self"},{name:"policy",function:"self"},{name:"worker",function:"self"},{name:"history",function:"self"},{name:"ws",function:"self"},{name:"cookie",function:"self"},{name:"fetch",function:"self"},{name:"niche",function:"self"},{name:"storage",function:"self"},{name:"style",function:"self"},{name:"rtc",function:"self"},{name:"blob",function:"self"},{name:"navigator",function:"self"}],Ge=class{constructor(e){this.methods=Gn,"DedicatedWorkerGlobalScope"==self.constructor.name||"SharedWorkerGlobalScope"==self.constructor.name?(this.message=bt,this.location=gt,this.window=_t,this.get=xt,this.reflect=vt,this.imports=wt,this.blob=St,this.mutation=Et):(this.location=gt,this.get=xt,this.window=_t,this.attr=Gi,this.worker=zi,this.history=Ki,this.ws=Xi,this.fetch=Qi,this.message=bt,this.policy=sr,this.write=Yi,this.imports=wt,this.reflect=vt,this.niche=Ji,this.storage=Zi,this.navigator=er,this.cookie=ir,this.style=rr,this.blob=St,this.mutation=Et,this.eval=nr,this.func=ar,this.rtc=or,this.dom=qi),this.ctx=e}};function Qs(e,t){return e||(e=[]),e.find((e=>e.name==t.name))?e[e.findIndex((e=>e.name==t.name))]={name:t.name,value:t.value,expires:t.expires}:e.push({name:t.name,value:t.value,expires:t.expires}),e}var he={open:async()=>$t("__dynamic$cookies",1,{async upgrade(e){await e.createObjectStore("__dynamic$cookies")}}),set:async(e,t,i)=>{if((t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1)),t.expires)&&new Date(t.expires)<new Date)return he.remove(e,t,i);return await(await i).put("__dynamic$cookies",Qs(await(await i).get("__dynamic$cookies",e),t),e),!0},get:async(e,t)=>{var i=e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"),r=await(await t).get("__dynamic$cookies",e)||[];if(e!==i&&e!=="."+i){var n=await(await t).get("__dynamic$cookies",i);if(n)for(var{name:s,value:a,expires:o}of n){if(o)if(new Date(o)<=new Date){he.remove(e,n.find((e=>e.name==s&&e.value==a&&e.expires==o)),t);continue}r.find((e=>e.name==s&&e.value==a))||r.push({name:s,value:a,expires:o||new Date(1e13)})}}return r},remove:async(e,t,i)=>{t.domain&&(e=t.domain),e.startsWith(".")&&(e=e.slice(1));var r=await(await i).get("__dynamic$cookies",e);return!!r&&(r=r.filter((e=>e.name!==t.name)),await(await i).put("__dynamic$cookies",r,e),!0)},update:async(e,t)=>{var i=e.replace(/^(.*\.)?([^.]*\..*)$/g,"$2"),r=await(await t).get("__dynamic$cookies",i);if(r)for(var{name:n,value:s,expires:a}of r)if(a){if(new Date(a)<=new Date){he.remove(e,{name:n,value:s,expires:a},t);continue}}return r}},ze=class{constructor(e){this.db=he,this.ctx=e}async get(e){this._db||(this._db=this.db.open());let t=await he.get(e,this._db);return qe(t)}async set(e,t=""){return t=this.ctx.modules.setCookieParser.parse(t,{decodeValues:!1})[0],this._db||(this._db=this.db.open()),await he.set(e,t,this._db)}async open(){await he.open()}async update(e){return this._db||(this._db=this.db.open()),await he.update(e,this._db)}},hr={};fr(hr,{aes:()=>po,base64:()=>mo,none:()=>fo,plain:()=>ho,xor:()=>lo});var xe=14,ne=8,Ke=!1,Ys=function(e){try{return unescape(encodeURIComponent(e))}catch{throw"Error on UTF-8 encode"}},Js=function(e){try{return decodeURIComponent(escape(e))}catch{throw"Bad Key"}},Zs=function(e){var t,i,r=[];for(e.length<16&&(r=[t=16-e.length,t,t,t,t,t,t,t,t,t,t,t,t,t,t,t]),i=0;i<e.length;i++)r[i]=e[i];return r},zn=function(e,t){var i,r,n="";if(t){if((i=e[15])>16)throw"Decryption error: Maybe bad key";if(16===i)return"";for(r=0;r<16-i;r++)n+=String.fromCharCode(e[r])}else for(r=0;r<16;r++)n+=String.fromCharCode(e[r]);return n},cr=function(e,t){var i,r=[];for(t||(e=Ys(e)),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r},eo=function(e){var t,i=[];for(t=0;t<e;t++)i=i.concat(Math.floor(256*Math.random()));return i},Qn=function(e,t){var i,r=xe>=12?3:2,n=[],s=[],a=e.concat(t);for(n[0]=Xn(a),s=n[0],i=1;i<r;i++)n[i]=Xn(n[i-1].concat(a)),s=s.concat(n[i]);return{key:s.slice(0,4*ne),iv:s.slice(4*ne,4*ne+16)}},to=function(e,t,i){t=ea(t);var r,n=Math.ceil(e.length/16),s=[],a=[];for(r=0;r<n;r++)s[r]=Zs(e.slice(16*r,16*r+16));for(e.length%16==0&&(s.push([16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16]),n++),r=0;r<s.length;r++)s[r]=Tt(s[r],0===r?i:a[r-1]),a[r]=ro(s[r],t);return a},io=function(e,t,i,r){t=ea(t);var n,s=e.length/16,a=[],o=[],c="";for(n=0;n<s;n++)a.push(e.slice(16*n,16*(n+1)));for(n=a.length-1;n>=0;n--)o[n]=no(a[n],t),o[n]=Tt(o[n],0===n?i:a[n-1]);for(n=0;n<s-1;n++)c+=zn(o[n],!1);return c+=zn(o[n],!0),r?c:Js(c)},ro=function(e,t){Ke=!1;var i,r=It(e,t,0);for(i=1;i<xe+1;i++)r=Yn(r),r=Jn(r),i<xe&&(r=Zn(r)),r=It(r,t,i);return r},no=function(e,t){Ke=!0;var i,r=It(e,t,xe);for(i=xe-1;i>-1;i--)r=Jn(r),r=Yn(r),r=It(r,t,i),i>0&&(r=Zn(r));return r},Yn=function(e){var t,i=Ke?co:lr,r=[];for(t=0;t<16;t++)r[t]=i[e[t]];return r},Jn=function(e){var t,i=[],r=Ke?[0,13,10,7,4,1,14,11,8,5,2,15,12,9,6,3]:[0,5,10,15,4,9,14,3,8,13,2,7,12,1,6,11];for(t=0;t<16;t++)i[t]=e[r[t]];return i},Zn=function(e){var t,i=[];if(Ke)for(t=0;t<4;t++)i[4*t]=Rt[e[4*t]]^Lt[e[1+4*t]]^Pt[e[2+4*t]]^At[e[3+4*t]],i[1+4*t]=At[e[4*t]]^Rt[e[1+4*t]]^Lt[e[2+4*t]]^Pt[e[3+4*t]],i[2+4*t]=Pt[e[4*t]]^At[e[1+4*t]]^Rt[e[2+4*t]]^Lt[e[3+4*t]],i[3+4*t]=Lt[e[4*t]]^Pt[e[1+4*t]]^At[e[2+4*t]]^Rt[e[3+4*t]];else for(t=0;t<4;t++)i[4*t]=Ct[e[4*t]]^kt[e[1+4*t]]^e[2+4*t]^e[3+4*t],i[1+4*t]=e[4*t]^Ct[e[1+4*t]]^kt[e[2+4*t]]^e[3+4*t],i[2+4*t]=e[4*t]^e[1+4*t]^Ct[e[2+4*t]]^kt[e[3+4*t]],i[3+4*t]=kt[e[4*t]]^e[1+4*t]^e[2+4*t]^Ct[e[3+4*t]];return i},It=function(e,t,i){var r,n=[];for(r=0;r<16;r++)n[r]=e[r]^t[i][r];return n},Tt=function(e,t){var i,r=[];for(i=0;i<16;i++)r[i]=e[i]^t[i];return r},ea=function(e){var t,i,r,n,s=[],a=[],o=[];for(t=0;t<ne;t++)i=[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]],s[t]=i;for(t=ne;t<4*(xe+1);t++){for(s[t]=[],r=0;r<4;r++)a[r]=s[t-1][r];for(t%ne==0?(a=Kn(ao(a)))[0]^=uo[t/ne-1]:ne>6&&t%ne==4&&(a=Kn(a)),r=0;r<4;r++)s[t][r]=s[t-ne][r]^a[r]}for(t=0;t<xe+1;t++)for(o[t]=[],n=0;n<4;n++)o[t].push(s[4*t+n][0],s[4*t+n][1],s[4*t+n][2],s[4*t+n][3]);return o},Kn=function(e){for(var t=0;t<4;t++)e[t]=lr[e[t]];return e},ao=function(e){var t,i=e[0];for(t=0;t<3;t++)e[t]=e[t+1];return e[3]=i,e},ur=function(e,t){var i,r=[];for(i=0;i<e.length;i+=t)r[i/t]=parseInt(e.substr(i,t),16);return r},so=function(e){var t,i=[];for(t=0;t<e.length;t++)i[e[t]]=t;return i},oo=function(e,t){var i,r;for(r=0,i=0;i<8;i++)r=1==(1&t)?r^e:r,e=e>127?283^e<<1:e<<1,t>>>=1;return r},Ae=function(e){var t,i=[];for(t=0;t<256;t++)i[t]=oo(e,t);return i},lr=ur("637c777bf26b6fc53001672bfed7ab76ca82c97dfa5947f0add4a2af9ca472c0b7fd9326363ff7cc34a5e5f171d8311504c723c31896059a071280e2eb27b27509832c1a1b6e5aa0523bd6b329e32f8453d100ed20fcb15b6acbbe394a4c58cfd0efaafb434d338545f9027f503c9fa851a3408f929d38f5bcb6da2110fff3d2cd0c13ec5f974417c4a77e3d645d197360814fdc222a908846eeb814de5e0bdbe0323a0a4906245cc2d3ac629195e479e7c8376d8dd54ea96c56f4ea657aae08ba78252e1ca6b4c6e8dd741f4bbd8b8a703eb5664803f60e613557b986c11d9ee1f8981169d98e949b1e87e9ce5528df8ca1890dbfe6426841992d0fb054bb16",2),co=so(lr),uo=ur("01020408102040801b366cd8ab4d9a2f5ebc63c697356ad4b37dfaefc591",2),Ct=Ae(2),kt=Ae(3),At=Ae(9),Lt=Ae(11),Pt=Ae(13),Rt=Ae(14),ta=function(e,t,i){var r,n=eo(8),s=Qn(cr(t,i),n),a=s.key,o=s.iv,c=[[83,97,108,116,101,100,95,95].concat(n)];return e=cr(e,i),r=to(e,a,o),r=c.concat(r),ra.encode(r)},ia=function(e,t,i){var r=ra.decode(e),n=r.slice(8,16),s=Qn(cr(t,i),n),a=s.key,o=s.iv;return r=r.slice(16,r.length),e=io(r,a,o,i)},Xn=function(e){function t(e,t){return e<<t|e>>>32-t}function i(e,t){var i,r,n,s,a;return n=2147483648&e,s=2147483648&t,a=(1073741823&e)+(1073741823&t),(i=1073741824&e)&(r=1073741824&t)?2147483648^a^n^s:i|r?1073741824&a?3221225472^a^n^s:1073741824^a^n^s:a^n^s}function r(e,r,n,s,a,o,c){return e=i(e,i(i(function(e,t,i){return e&t|~e&i}(r,n,s),a),c)),i(t(e,o),r)}function n(e,r,n,s,a,o,c){return e=i(e,i(i(function(e,t,i){return e&i|t&~i}(r,n,s),a),c)),i(t(e,o),r)}function s(e,r,n,s,a,o,c){return e=i(e,i(i(function(e,t,i){return e^t^i}(r,n,s),a),c)),i(t(e,o),r)}function a(e,r,n,s,a,o,c){return e=i(e,i(i(function(e,t,i){return t^(e|~i)}(r,n,s),a),c)),i(t(e,o),r)}function o(e){var t,i,r=[];for(i=0;i<=3;i++)t=e>>>8*i&255,r=r.concat(t);return r}var c,l,p,h,u,d,m,f,y,g,_=ur("67452301efcdab8998badcfe10325476d76aa478e8c7b756242070dbc1bdceeef57c0faf4787c62aa8304613fd469501698098d88b44f7afffff5bb1895cd7be6b901122fd987193a679438e49b40821f61e2562c040b340265e5a51e9b6c7aad62f105d02441453d8a1e681e7d3fbc821e1cde6c33707d6f4d50d87455a14eda9e3e905fcefa3f8676f02d98d2a4c8afffa39428771f6816d9d6122fde5380ca4beea444bdecfa9f6bb4b60bebfbc70289b7ec6eaa127fad4ef308504881d05d9d4d039e6db99e51fa27cf8c4ac5665f4292244432aff97ab9423a7fc93a039655b59c38f0ccc92ffeff47d85845dd16fa87e4ffe2ce6e0a30143144e0811a1f7537e82bd3af2352ad7d2bbeb86d391",8);for(c=function(e){for(var t,i=e.length,r=i+8,n=16*((r-r%64)/64+1),s=[],a=0,o=0;o<i;)a=o%4*8,s[t=(o-o%4)/4]=s[t]|e[o]<<a,o++;return a=o%4*8,s[t=(o-o%4)/4]=s[t]|128<<a,s[n-2]=i<<3,s[n-1]=i>>>29,s}(e),m=_[0],f=_[1],y=_[2],g=_[3],l=0;l<c.length;l+=16)p=m,h=f,u=y,d=g,m=r(m,f,y,g,c[l+0],7,_[4]),g=r(g,m,f,y,c[l+1],12,_[5]),y=r(y,g,m,f,c[l+2],17,_[6]),f=r(f,y,g,m,c[l+3],22,_[7]),m=r(m,f,y,g,c[l+4],7,_[8]),g=r(g,m,f,y,c[l+5],12,_[9]),y=r(y,g,m,f,c[l+6],17,_[10]),f=r(f,y,g,m,c[l+7],22,_[11]),m=r(m,f,y,g,c[l+8],7,_[12]),g=r(g,m,f,y,c[l+9],12,_[13]),y=r(y,g,m,f,c[l+10],17,_[14]),f=r(f,y,g,m,c[l+11],22,_[15]),m=r(m,f,y,g,c[l+12],7,_[16]),g=r(g,m,f,y,c[l+13],12,_[17]),y=r(y,g,m,f,c[l+14],17,_[18]),m=n(m,f=r(f,y,g,m,c[l+15],22,_[19]),y,g,c[l+1],5,_[20]),g=n(g,m,f,y,c[l+6],9,_[21]),y=n(y,g,m,f,c[l+11],14,_[22]),f=n(f,y,g,m,c[l+0],20,_[23]),m=n(m,f,y,g,c[l+5],5,_[24]),g=n(g,m,f,y,c[l+10],9,_[25]),y=n(y,g,m,f,c[l+15],14,_[26]),f=n(f,y,g,m,c[l+4],20,_[27]),m=n(m,f,y,g,c[l+9],5,_[28]),g=n(g,m,f,y,c[l+14],9,_[29]),y=n(y,g,m,f,c[l+3],14,_[30]),f=n(f,y,g,m,c[l+8],20,_[31]),m=n(m,f,y,g,c[l+13],5,_[32]),g=n(g,m,f,y,c[l+2],9,_[33]),y=n(y,g,m,f,c[l+7],14,_[34]),m=s(m,f=n(f,y,g,m,c[l+12],20,_[35]),y,g,c[l+5],4,_[36]),g=s(g,m,f,y,c[l+8],11,_[37]),y=s(y,g,m,f,c[l+11],16,_[38]),f=s(f,y,g,m,c[l+14],23,_[39]),m=s(m,f,y,g,c[l+1],4,_[40]),g=s(g,m,f,y,c[l+4],11,_[41]),y=s(y,g,m,f,c[l+7],16,_[42]),f=s(f,y,g,m,c[l+10],23,_[43]),m=s(m,f,y,g,c[l+13],4,_[44]),g=s(g,m,f,y,c[l+0],11,_[45]),y=s(y,g,m,f,c[l+3],16,_[46]),f=s(f,y,g,m,c[l+6],23,_[47]),m=s(m,f,y,g,c[l+9],4,_[48]),g=s(g,m,f,y,c[l+12],11,_[49]),y=s(y,g,m,f,c[l+15],16,_[50]),m=a(m,f=s(f,y,g,m,c[l+2],23,_[51]),y,g,c[l+0],6,_[52]),g=a(g,m,f,y,c[l+7],10,_[53]),y=a(y,g,m,f,c[l+14],15,_[54]),f=a(f,y,g,m,c[l+5],21,_[55]),m=a(m,f,y,g,c[l+12],6,_[56]),g=a(g,m,f,y,c[l+3],10,_[57]),y=a(y,g,m,f,c[l+10],15,_[58]),f=a(f,y,g,m,c[l+1],21,_[59]),m=a(m,f,y,g,c[l+8],6,_[60]),g=a(g,m,f,y,c[l+15],10,_[61]),y=a(y,g,m,f,c[l+6],15,_[62]),f=a(f,y,g,m,c[l+13],21,_[63]),m=a(m,f,y,g,c[l+4],6,_[64]),g=a(g,m,f,y,c[l+11],10,_[65]),y=a(y,g,m,f,c[l+2],15,_[66]),f=a(f,y,g,m,c[l+9],21,_[67]),m=i(m,p),f=i(f,h),y=i(y,u),g=i(g,d);return o(m).concat(o(f),o(y),o(g))},ra=(e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=e.split(""),"function"==typeof Array.indexOf&&(e=t),{encode:function(e,i){var r,n,s=[],a="";for(Math.floor(16*e.length/3),r=0;r<16*e.length;r++)s.push(e[Math.floor(r/16)][r%16]);for(r=0;r<s.length;r+=3)a+=t[s[r]>>2],a+=t[(3&s[r])<<4|s[r+1]>>4],void 0!==s[r+1]?a+=t[(15&s[r+1])<<2|s[r+2]>>6]:a+="=",void 0!==s[r+2]?a+=t[63&s[r+2]]:a+="=";for(n=a.slice(0,64)+"\n",r=1;r<Math.ceil(a.length/64);r++)n+=a.slice(64*r,64*r+64)+(Math.ceil(a.length/64)===r+1?"":"\n");return n},decode:function(t){t=t.replace(/\n/g,"");var i,r=[],n=[],s=[];for(i=0;i<t.length;i+=4)n[0]=e.indexOf(t.charAt(i)),n[1]=e.indexOf(t.charAt(i+1)),n[2]=e.indexOf(t.charAt(i+2)),n[3]=e.indexOf(t.charAt(i+3)),s[0]=n[0]<<2|n[1]>>4,s[1]=(15&n[1])<<4|n[2]>>2,s[2]=(3&n[2])<<6|n[3],r.push(s[0],s[1],s[2]);return r=r.slice(0,r.length-r.length%16)}}),e,t,lo={encode:(e,t=2)=>e&&encodeURIComponent(e.split("").map(((e,i)=>i%t?String.fromCharCode(e.charCodeAt(0)^t):e)).join("")),decode:(e,t=2)=>e&&decodeURIComponent(e).split("").map(((e,i)=>i%t?String.fromCharCode(e.charCodeAt(0)^t):e)).join("")},ho={encode:e=>e&&encodeURIComponent(e),decode:e=>e&&decodeURIComponent(e)},po={encode:e=>e&&encodeURIComponent(ta(e,"dynamic").substring(10)),decode:e=>e&&ia("U2FsdGVkX1"+decodeURIComponent(e),"dynamic")},fo={encode:e=>e,decode:e=>e},mo={encode:e=>e&&decodeURIComponent(btoa(e)),decode:e=>e&&atob(e)},Le=class{constructor(e){this.modules=new Nn(this),this.util=new Bn(this),this.meta=new jn(this),this.regex=new He(this),this.rewrite=new On(this),this.url=new $n(this),this.is=new Hn(this),this.cookies=new ze(this),this.client=new Ge(this),this.encoding=hr,this.headers=Un,this.listeners=[],e&&!this.config&&(this.config=e),e&&this.util.encode(self)}on(e,t){this.listeners.push({event:e,cb:t})}fire(e,t){let i=!1;for(let r of this.listeners)r.event===e&&(i=!0,t=r.cb(...t));return i&&t?t:null}};function Xe(e){e.__dynamic.wrap=function(t,i,r){if(t.__dynamic$target)return t;if(t.toString().includes("{ [native code] }")&&!t.prototype){var n=i,s=t,a=function(...t){if("string"==typeof r){var i=e.__dynamic.fire(r,this?[this,...t]:t);if(i)return i}return n.call(this,s,...t)},o=function(...e){return a.call(this,...e)};return e.__dynamic.define(o,"name",{value:t.name,writable:!1}),o.__dynamic$target=t,o.toString=()=>`function ${t.name}() { [native code] }`,o}try{let e=class extends t{constructor(...e){var n=[...e],s=i.call(t,t,...e);s&&(e=s),super(...e),r&&r(this,n)}};return Object.defineProperty(e,"name",{value:t.name,writable:!1}),e}catch{return t}}}function na(e,t={},i=""){if(e.hasOwnProperty("__dynamic"))return!1;e.hasOwnProperty("__dynamic$config")||(e.__dynamic$config=t),e.parent?.__dynamic&&(e.__dynamic$bare=e.parent.__dynamic$bare);let r=new Le(e.__dynamic$config);for(var n of(r.config.bare.path="string"==typeof r.config.bare.path||r.config.bare.path instanceof URL?new URL(r.config.bare.path,e.location):r.config.bare.path.map((t=>new URL(t,e.location))),e.__dynamic$baseURL=i||e.__dynamic$url||r.url.decode(location.pathname+location.search+location.hash)||"",e.__dynamic=r,e.__dynamic.bare=new e.__dynamic.modules.bare.BareClient(e.__dynamic$config.bare.path,e.__dynamic$bare),e.__dynamic.meta.load(new URL(e.__dynamic$baseURL)),Qe(e,null),Xe(e),e.__dynamic.client.methods)){let t=n.name,i=Object.entries(e.__dynamic.client).find((e=>e[0]==t));"mutation"==t&&e.frameElement||"self"==n.function&&i[1](e)}return e}function Qe(e,t){t||(t=e.__dynamic),t.define=new e.Proxy(e.Object.defineProperty,{apply(e,t,i){try{return Reflect.apply(e,t,i)}catch{return i[2]}}}),t.defines=new e.Proxy(e.Object.defineProperties,{apply(e,t,i){try{return Reflect.apply(e,t,i)}catch{return i[1]}}}),e.parent&&(t.parent=e.parent),e.top&&(t.top=e.top),e.document&&(t.elements={attributes:["src","href","srcset","action","data","integrity","nonce","imagesrcset"],iframeSrc:Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"src"),contentWindow:Object.getOwnPropertyDescriptor(e.HTMLIFrameElement.prototype,"contentWindow"),innerHTML:Object.getOwnPropertyDescriptor(e.Element.prototype,"innerHTML"),outerHTML:Object.getOwnPropertyDescriptor(e.Element.prototype,"outerHTML"),attrValue:Object.getOwnPropertyDescriptor(e.Attr.prototype,"value"),setAttribute:e.Element.prototype.setAttribute,getAttribute:e.Element.prototype.getAttribute,removeAttribute:e.Element.prototype.removeAttribute,hasAttribute:e.Element.prototype.hasAttribute,cloneNode:e.Node.prototype.cloneNode,addEventListener:e.Node.prototype.addEventListener,config:[{elements:[e.HTMLScriptElement,e.HTMLIFrameElement,e.HTMLEmbedElement,e.HTMLInputElement,e.HTMLTrackElement,e.HTMLMediaElement,e.HTMLSourceElement,e.Image,e.HTMLImageElement],tags:["src"],action:"url"},{elements:[e.HTMLSourceElement,e.HTMLImageElement],tags:["srcset"],action:"srcset"},{elements:[e.HTMLAnchorElement,e.HTMLLinkElement,e.HTMLAreaElement,e.SVGImageElement,e.HTMLBaseElement],tags:["href"],action:"url"},{elements:[e.HTMLIFrameElement],tags:["contentWindow","contentDocument"],action:"window"},{elements:[e.HTMLFormElement],tags:["action"],action:"url"},{elements:[e.HTMLObjectElement],tags:["data"],action:"url"},{elements:[e.HTMLScriptElement,e.HTMLLinkElement],tags:["integrity"],action:"rewrite",new:"nointegrity"},{elements:[e.HTMLScriptElement,e.HTMLLinkElement],tags:["nonce"],action:"rewrite",new:"nononce"},{elements:[e.HTMLIFrameElement],tags:["srcdoc"],action:"html"},{elements:[e.HTMLElement],tags:["style"],action:"css"},{elements:[e.HTMLLinkElement],tags:["imageSrcset"],action:"srcset"}],createGetter:t=>({get(){return new URL(this.href||e.__dynamic$location.href)[t]},set(e){}}),client:na},e.__dynamic.baseURL=e.document?new URL(e.__dynamic.url.decode(e.document.baseURI)):null),e.document&&(t.cookie={str:e.__dynamic$cookie||"",desc:Object.getOwnPropertyDescriptor(e.Document.prototype,"cookie")}),e.XMLHttpRequest&&(t.http={XMLResponseURL:Object.getOwnPropertyDescriptor(e.XMLHttpRequest.prototype,"responseURL"),ResponseURL:Object.getOwnPropertyDescriptor(e.Response.prototype,"url"),RequestURL:Object.getOwnPropertyDescriptor(e.Request.prototype,"url"),XMLHttpRequest:e.XMLHttpRequest}),e.Storage&&(t.storage={localStorage:e.localStorage,sessionStorage:e.sessionStorage,keys:{localStorage:Object.keys(e.localStorage),sessionStorage:Object.keys(e.sessionStorage)},methods:["getItem","setItem","removeItem","clear","length","keys","values","entries","forEach","hasOwnProperty","toString","toLocaleString","valueOf","isPrototypeOf","propertyIsEnumerable","constructor","key"]},t.storage.cloned={localStorage:t.util.clone(t.storage.localStorage),sessionStorage:t.util.clone(t.storage.sessionStorage)}),e.RTCPeerConnection&&(t.webrtc={endpoints:["stun:stun.webice.org"]}),e.trustedTypes&&(t.trustedTypes={policy:e.trustedTypes.createPolicy("dynamic",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e,createURL:e=>e}),createScript:e.TrustedTypePolicy.prototype.createScript}),e.__dynamic$config.tab&&(e.document&&e.__dynamic$config.tab.title&&(document.title=e.__dynamic$config.tab.title,t.define(e.document,"title",{get:()=>e.__dynamic$config.tab.title,set:e=>e})),e.__dynamic$config.tab.icon&&(e.__dynamic$icon=e.__dynamic$config.tab.icon),e.Navigator&&e.__dynamic$config.tab.ua&&t.define(e.navigator,"userAgent",{get:()=>e.__dynamic$config.tab.ua,set(){}}))}importScripts("/assets/dyn/config.js?v=10-02-2024"),function(e){let t=new Le(e.__dynamic$config);e.__dynamic=t;let i=t.url.decode(location.pathname);t.meta.load(new URL(i)),Qe(e,null),Xe(e),t.client.message(e),t.client.location(e,!1),t.client.window(e),t.client.get(e),t.client.reflect(e),t.client.imports(e),t.client.blob(e)}(self)})(); | |
| /*! Bundled license information: | |
| cookie/index.js: | |
| (*! | |
| * cookie | |
| * Copyright(c) 2012-2014 Roman Shtylman | |
| * Copyright(c) 2015 Douglas Christopher Wilson | |
| * MIT Licensed | |
| *) | |
| */ |