diff --git a/Scriptcat/_locales/en/messages.json b/Scriptcat/_locales/en/messages.json new file mode 100755 index 0000000..b09d366 --- /dev/null +++ b/Scriptcat/_locales/en/messages.json @@ -0,0 +1,5 @@ +{ + "i18n": { + "message": "i18n" + } +} \ No newline at end of file diff --git a/Scriptcat/_locales/zh_CN/messages.json b/Scriptcat/_locales/zh_CN/messages.json new file mode 100755 index 0000000..b09d366 --- /dev/null +++ b/Scriptcat/_locales/zh_CN/messages.json @@ -0,0 +1,5 @@ +{ + "i18n": { + "message": "i18n" + } +} \ No newline at end of file diff --git a/Scriptcat/assets/logo.png b/Scriptcat/assets/logo.png new file mode 100755 index 0000000..25e2f20 Binary files /dev/null and b/Scriptcat/assets/logo.png differ diff --git a/Scriptcat/assets/logo/github.png b/Scriptcat/assets/logo/github.png new file mode 100755 index 0000000..fd55374 Binary files /dev/null and b/Scriptcat/assets/logo/github.png differ diff --git a/Scriptcat/manifest.json b/Scriptcat/manifest.json new file mode 100755 index 0000000..18fa818 --- /dev/null +++ b/Scriptcat/manifest.json @@ -0,0 +1 @@ +{"manifest_version":2,"name":"ScriptCat","version":"0.13.1","author":"CodFrm","description":"脚本猫,一个用户脚本管理器,支持后台脚本、定时脚本、页面脚本,可编写脚本每天帮你自动处理事务.","options_ui":{"page":"src/options.html","open_in_tab":true},"default_locale":"zh_CN","icons":{"128":"assets/logo.png"},"browser_action":{"default_popup":"src/popup.html"},"background":{"page":"src/background.html"},"content_scripts":[{"matches":[""],"js":["src/content.js"],"run_at":"document_start","all_frames":true}],"permissions":["tabs","cookies","storage","downloads","webRequest","background","","contextMenus","notifications","clipboardWrite","webRequestBlocking"],"sandbox":{"pages":["src/sandbox.html"]}} \ No newline at end of file diff --git a/Scriptcat/src/673.js b/Scriptcat/src/673.js new file mode 100755 index 0000000..e5b7c93 --- /dev/null +++ b/Scriptcat/src/673.js @@ -0,0 +1 @@ +(self.webpackChunkscriptcat=self.webpackChunkscriptcat||[]).push([[673],{3775:(e,t,r)=>{"use strict";r.d(t,{u_:()=>c});var n=r(4942);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t{"use strict";r.d(t,{QI:()=>p});var n=r(15861),a=r(64687),s=r.n(a),o=r(60147),i=r(45349);function c(e){return i.h.get("/auth/net-disk/token?netDiskType=".concat(e)).then((function(e){return e.data}))}function u(e,t){return i.h.post("/auth/net-disk/token/refresh?netDiskType=".concat(e),{netDiskType:e,refreshToken:t}).then((function(e){return e.data}))}function l(e){return new Promise((function(t){var r=window.open("".concat(o.P4,"api/v1/auth/net-disk?netDiskType=").concat(e)),n=setInterval((function(){try{r.closed&&(clearInterval(n),t())}catch(e){clearInterval(n),t()}}),1e3)}))}function p(e,t){return d.apply(this,arguments)}function d(){return(d=(0,n.Z)(s().mark((function e(t,r){var n,a,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n=JSON.parse(localStorage["netdisk:token:".concat(t)])}catch(e){}if(!r&&n&&n.accessToken){e.next=11;break}return e.next=4,l(t);case 4:return e.next=6,c(t);case 6:if(0===(a=e.sent).code){e.next=9;break}return e.abrupt("return",Promise.reject(new Error(a.msg)));case 9:n={accessToken:a.data.token.access_token,refreshToken:a.data.token.refresh_token,createtime:Date.now()},localStorage["netdisk:token:".concat(t)]=JSON.stringify(n);case 11:if(!(Date.now()>=n.createtime+36e5)){e.next=28;break}return e.prev=12,e.next=15,u(t,n.refreshToken);case 15:if(0===(o=e.sent).code){e.next=19;break}return localStorage.removeItem("netdisk:token:".concat(t)),e.abrupt("return",Promise.reject(new Error(o.msg)));case 19:n={accessToken:o.data.token.access_token,refreshToken:o.data.token.refresh_token,createtime:Date.now()},localStorage["netdisk:token:".concat(t)]=JSON.stringify(n),e.next=26;break;case 23:return e.prev=23,e.t0=e.catch(12),e.abrupt("return",Promise.resolve(n.accessToken));case 26:e.next=29;break;case 28:case 29:return e.abrupt("return",Promise.resolve(n.accessToken));case 30:case"end":return e.stop()}}),e,null,[[12,23]])})))).apply(this,arguments)}},82102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(15861),a=r(15671),s=r(43144),o=r(64687),i=r.n(o),c=r(41258),u=r(10802),l=r(68665),p=r(42378),d=r(78989),f=function(){function e(t,r){(0,a.Z)(this,e),this.path=t||"/apps",this.accessToken=r,this.systemConfig=c.Z.instance(u.T)}var t;return(0,s.Z)(e,[{key:"verify",value:(t=(0,n.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.QI)("baidu");case 2:return t=e.sent,this.accessToken=t,e.abrupt("return",Promise.resolve());case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"open",value:function(e){return Promise.resolve(new d.j(this,e))}},{key:"openDir",value:function(t){return Promise.resolve(new e((0,p.V)(this.path,t),this.accessToken))}},{key:"create",value:function(e){return Promise.resolve(new d.Q(this,(0,p.V)(this.path,e)))}},{key:"createDir",value:function(e){e=(0,p.V)(this.path,e);var t=new URLSearchParams;t.append("path",e),t.append("size","0"),t.append("isdir","1"),t.append("rtype","3");var r=new Headers;return r.append("Content-Type","application/x-www-form-urlencoded"),this.request("https://pan.baidu.com/rest/2.0/xpan/file?method=create&access_token=".concat(this.accessToken),{method:"POST",headers:r,body:t,redirect:"follow"}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return Promise.resolve()}))}},{key:"request",value:function(e,t){var r=this,a=(t=t||{}).headers||new Headers;return a.append("".concat(this.systemConfig.scriptCatFlag,"-gm-xhr"),"true"),a.append("".concat(this.systemConfig.scriptCatFlag,"-anonymous"),"true"),t.headers=a,fetch(e,t).then((function(e){return e.json()})).then(function(){var a=(0,n.Z)(i().mark((function n(a){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(111!==a.errno){n.next=4;break}return n.next=3,r.verify();case 3:return n.abrupt("return",fetch(e,t).then((function(e){return e.json()})).then((function(e){if(111===e.errno)throw new Error(JSON.stringify(e));return e})));case 4:return n.abrupt("return",a);case 5:case"end":return n.stop()}}),n)})));return function(e){return a.apply(this,arguments)}}())}},{key:"delete",value:function(e){var t=[(0,p.V)(this.path,e)];return this.request("https://pan.baidu.com/rest/2.0/xpan/file?method=filemanager&access_token=".concat(this.accessToken,"&opera=delete"),{method:"POST",body:"async=0&filelist=".concat(encodeURIComponent(JSON.stringify(t)))}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return e}))}},{key:"list",value:function(){var e=this;return this.request("https://pan.baidu.com/rest/2.0/xpan/file?method=list&dir=".concat(encodeURIComponent(this.path),"&order=time&access_token=").concat(this.accessToken)).then((function(t){if(t.errno){if(-9===t.errno)return[];throw new Error(JSON.stringify(t))}var r=[];return t.list.forEach((function(t){r.push({fsid:t.fs_id,name:t.server_filename,path:e.path,size:t.size,digest:t.md5,createtime:1e3*t.server_ctime,updatetime:1e3*t.server_mtime})})),r}))}},{key:"getDirUrl",value:function(){return Promise.resolve("https://pan.baidu.com/disk/main#/index?category=all&path=".concat(encodeURIComponent(this.path)))}}]),e}()},78989:(e,t,r)=>{"use strict";r.d(t,{Q:()=>p,j:()=>l});var n=r(15861),a=r(15671),s=r(43144),o=r(64687),i=r.n(o),c=r(51870),u=r(81354),l=function(){function e(t,r){(0,a.Z)(this,e),this.fs=t,this.file=r}var t;return(0,s.Z)(e,[{key:"read",value:(t=(0,n.Z)(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fs.request("https://pan.baidu.com/rest/2.0/xpan/multimedia?method=filemetas&access_token=".concat(this.fs.accessToken,"&fsids=[").concat(this.file.fsid,"]&dlink=1"));case 2:if((r=e.sent).list.length){e.next=5;break}return e.abrupt("return",Promise.reject(new Error("file not found")));case 5:e.t0=t,e.next="string"===e.t0?8:9;break;case 8:return e.abrupt("return",fetch("".concat(r.list[0].dlink,"&access_token=").concat(this.fs.accessToken)).then((function(e){return e.text()})));case 9:return e.abrupt("return",fetch("".concat(r.list[0].dlink,"&access_token=").concat(this.fs.accessToken)).then((function(e){return e.blob()})));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),p=function(){function e(t,r){(0,a.Z)(this,e),this.fs=t,this.path=r}var t,r;return(0,s.Z)(e,[{key:"size",value:function(e){return e instanceof Blob?e.size:new Blob([e]).size}},{key:"md5",value:(r=(0,n.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Blob)){e.next=2;break}return e.abrupt("return",(0,c.Pu)(t));case 2:return e.abrupt("return",(0,u.MD5)(t).toString());case 3:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"write",value:(t=(0,n.Z)(i().mark((function e(t){var r,n,a,s,o,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.size(t).toString(),e.next=3,this.md5(t);case 3:return n=e.sent,a=[n],(s=new URLSearchParams).append("path",this.path),s.append("size",r),s.append("isdir","0"),s.append("autoinit","1"),s.append("rtype","3"),s.append("block_list",JSON.stringify(a)),(o=new Headers).append("Content-Type","application/x-www-form-urlencoded"),e.next=16,this.fs.request("http://pan.baidu.com/rest/2.0/xpan/file?method=precreate&access_token=".concat(this.fs.accessToken),{method:"POST",headers:o,body:s}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return e.uploadid}));case 16:return c=e.sent,u=new FormData,t instanceof Blob?u.append("file",t):u.append("file",new Blob([t])),e.next=21,this.fs.request("".concat("https://d.pcs.baidu.com/rest/2.0/pcs/superfile2?method=upload&access_token=".concat(this.fs.accessToken)+"&type=tmpfile&path=").concat(encodeURIComponent(this.path),"&uploadid=").concat(c,"&partseq=0"),{method:"POST",body:u}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return e}));case 21:return(s=new URLSearchParams).append("path",this.path),s.append("size",r),s.append("isdir","0"),s.append("block_list",JSON.stringify(a)),s.append("uploadid",c),s.append("rtype","3"),e.abrupt("return",this.fs.request("https://pan.baidu.com/rest/2.0/xpan/file?method=create&access_token=".concat(this.fs.accessToken),{method:"POST",headers:o,body:s}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return Promise.resolve()})));case 29:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}()},43529:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(15861),a=r(15671),s=r(43144),o=r(64687),i=r.n(o),c=r(82102),u=r(68536),l=r(63097),p=r(62043),d=function(){function e(){(0,a.Z)(this,e)}var t;return(0,s.Z)(e,null,[{key:"create",value:function(e,t){var r;switch(e){case"zip":r=new p.Z(t);break;case"webdav":r=new l.Z(t.authType,t.url,t.username,t.password);break;case"baidu-netdsik":r=new c.Z;break;case"onedrive":r=new u.Z;break;default:throw new Error("not found filesystem")}return r.verify().then((function(){return r}))}},{key:"params",value:function(){return{webdav:{authType:{title:"鉴权类型",type:"select",options:["password","digest","none","token"]},url:{title:"URL"},username:{title:"用户名"},password:{title:"密码"}},"baidu-netdsik":{},onedrive:{}}}},{key:"mkdirAll",value:(t=(0,n.Z)(i().mark((function e(t,r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var a=r.split("/"),s=0;!function r(){if(s>=a.length)e();else{var o=a.slice(0,s+1).join("/");t.createDir(o).then((function(){s+=1,r()})).catch((function(){n()}))}}()})));case 1:case"end":return e.stop()}}),e)}))),function(e,r){return t.apply(this,arguments)})}]),e}()},68536:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(15861),a=r(15671),s=r(43144),o=r(64687),i=r.n(o),c=r(41258),u=r(10802),l=r(68665),p=r(42378),d=r(53879),f=function(){function e(t,r){(0,a.Z)(this,e),this.path=t||"/",this.accessToken=r,this.systemConfig=c.Z.instance(u.T)}var t;return(0,s.Z)(e,[{key:"verify",value:(t=(0,n.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.QI)("onedrive");case 2:return t=e.sent,this.accessToken=t,e.abrupt("return",Promise.resolve());case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"open",value:function(e){return Promise.resolve(new d.h(this,e))}},{key:"openDir",value:function(t){return t.startsWith("ScriptCat")&&(t=t.substring(9)),Promise.resolve(new e((0,p.V)(this.path,t),this.accessToken))}},{key:"create",value:function(e){return Promise.resolve(new d.E(this,(0,p.V)(this.path,e)))}},{key:"createDir",value:function(e){if(e&&e.startsWith("ScriptCat")&&(e=e.substring(9)).startsWith("/")&&(e=e.substring(1)),!e)return Promise.resolve();var t=(e=(0,p.V)(this.path,e)).split("/"),r="";t.length>2&&(r=t.slice(0,t.length-1).join("/"));var n=new Headers;return n.append("Content-Type","application/json"),this.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat(r,":/children"),{method:"POST",headers:n,body:JSON.stringify({name:t[t.length-1],folder:{},"@microsoft.graph.conflictBehavior":"replace"})}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return Promise.resolve()}))}},{key:"request",value:function(e,t,r){var a=(t=t||{}).headers||new Headers;a.append("Authorization","Bearer ".concat(this.accessToken)),t.headers=a;var s=fetch(e,t);return r?s:s.then((function(e){return e.json()})).then(function(){var e=(0,n.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=2;break}throw new Error(JSON.stringify(t));case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"delete",value:function(e){return this.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat((0,p.V)(this.path,e)),{method:"DELETE"},!0).then(function(){var e=(0,n.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(204===t.status){e.next=6;break}return e.t0=Error,e.next=4,t.text();case 4:throw e.t1=e.sent,new e.t0(e.t1);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"list",value:function(){var e=this,t=this.path;return"/"===t&&(t=""),this.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat(t,":/children")).then((function(t){var r=[];return t.value.forEach((function(t){r.push({name:t.name,path:e.path,size:t.size,digest:t.eTag,createtime:new Date(t.createdDateTime).getTime(),updatetime:new Date(t.lastModifiedDateTime).getTime()})})),r}))}},{key:"getDirUrl",value:function(){throw new Error("Method not implemented.")}}]),e}()},53879:(e,t,r)=>{"use strict";r.d(t,{E:()=>d,h:()=>p});var n=r(15861),a=r(15671),s=r(43144),o=r(64687),i=r.n(o),c=r(51870),u=r(81354),l=r(42378),p=function(){function e(t,r){(0,a.Z)(this,e),this.fs=t,this.file=r}var t;return(0,s.Z)(e,[{key:"read",value:(t=(0,n.Z)(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fs.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat((0,l.V)(this.file.path,this.file.name),":/content"),{},!0);case 2:if(200===(r=e.sent).status){e.next=9;break}return e.t0=Promise,e.next=7,r.text();case 7:return e.t1=e.sent,e.abrupt("return",e.t0.reject.call(e.t0,e.t1));case 9:e.t2=t,e.next="string"===e.t2?12:13;break;case 12:return e.abrupt("return",r.text());case 13:return e.abrupt("return",r.blob());case 14:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),d=function(){function e(t,r){(0,a.Z)(this,e),this.fs=t,this.path=r}var t,r;return(0,s.Z)(e,[{key:"size",value:function(e){return e instanceof Blob?e.size:new Blob([e]).size}},{key:"md5",value:(r=(0,n.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Blob)){e.next=2;break}return e.abrupt("return",(0,c.Pu)(t));case 2:return e.abrupt("return",(0,u.MD5)(t).toString());case 3:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"write",value:(t=(0,n.Z)(i().mark((function e(t){var r,n,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.size(t).toString(),(n=new Headers).append("Content-Type","application/json"),e.next=5,this.fs.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat(this.path,":/createUploadSession"),{method:"POST",headers:n,body:JSON.stringify({item:{"@microsoft.graph.conflictBehavior":"replace",description:"description",fileSystemInfo:{"@odata.type":"microsoft.graph.fileSystemInfo"},name:this.path.substring(this.path.lastIndexOf("/")+1)}})}).then((function(e){if(e.error)throw new Error(JSON.stringify(e));return e.uploadUrl}));case 5:return a=e.sent,(n=new Headers).append("Content-Range","bytes 0-".concat(parseInt(r,10)-1,"/").concat(r)),e.abrupt("return",this.fs.request(a,{method:"PUT",body:t,headers:n}));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}()},42378:(e,t,r)=>{"use strict";function n(){for(var e="",t=arguments.length,r=new Array(t),n=0;nn})},53644:(e,t,r)=>{"use strict";r.d(t,{B:()=>u,E:()=>c});var n=r(15861),a=r(15671),s=r(43144),o=r(64687),i=r.n(o),c=function(){function e(t,r){(0,a.Z)(this,e),this.client=t,this.path=r}var t;return(0,s.Z)(e,[{key:"read",value:(t=(0,n.Z)(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="string"===e.t0?3:4;break;case 3:return e.abrupt("return",this.client.getFileContents(this.path,{format:"text"}));case 4:return e.next=6,this.client.getFileContents(this.path,{format:"binary"});case 6:return r=e.sent,e.abrupt("return",Promise.resolve(new Blob([r])));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),u=function(){function e(t,r){(0,a.Z)(this,e),this.client=t,this.path=r}var t;return(0,s.Z)(e,[{key:"write",value:(t=(0,n.Z)(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Blob)){e.next=11;break}return e.t0=this.client,e.t1=this.path,e.next=5,t.arrayBuffer();case 5:return e.t2=e.sent,e.next=8,e.t0.putFileContents.call(e.t0,e.t1,e.t2);case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,this.client.putFileContents(this.path,t);case 13:r=e.sent;case 14:if(!r){e.next=16;break}return e.abrupt("return",Promise.resolve());case 16:return e.abrupt("return",Promise.reject(new Error("write error")));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}()},63097:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(15861),a=r(71002),s=r(15671),o=r(43144),i=r(4942),c=r(64687),u=r.n(c),l=r(79478),p=r(42378),d=r(53644),f=function(){function e(t,r,n,o){(0,s.Z)(this,e),(0,i.Z)(this,"basePath","/"),"object"===(0,a.Z)(t)?(this.client=t,this.basePath=(0,p.V)(r||""),this.url=n):(this.url=r,this.client=(0,l.createClient)(r,{authType:t,username:n,password:o}))}var t,r,c;return(0,o.Z)(e,[{key:"verify",value:(c=(0,n.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.getQuota();case 2:return e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"open",value:function(e){return Promise.resolve(new d.E(this.client,(0,p.V)(e.path,e.name)))}},{key:"openDir",value:function(t){return Promise.resolve(new e(this.client,(0,p.V)(this.basePath,t),this.url))}},{key:"create",value:function(e){return Promise.resolve(new d.B(this.client,(0,p.V)(this.basePath,e)))}},{key:"createDir",value:function(e){return this.client.createDirectory((0,p.V)(this.basePath,e))}},{key:"delete",value:(r=(0,n.Z)(u().mark((function e(t){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.deleteFile((0,p.V)(this.basePath,t)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"list",value:(t=(0,n.Z)(u().mark((function e(){var t,r,n=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.getDirectoryContents(this.basePath);case 2:return t=e.sent,r=[],t.forEach((function(e){"file"===e.type&&r.push({name:e.basename,path:n.basePath,digest:e.etag||"",size:e.size,createtime:new Date(e.lastmod).getTime(),updatetime:new Date(e.lastmod).getTime()})})),e.abrupt("return",Promise.resolve(r));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getDirUrl",value:function(){return Promise.resolve(this.url+this.basePath)}}]),e}()},11197:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,I:()=>o});var n=r(15671),a=r(43144),s=function(){function e(t){(0,n.Z)(this,e),this.zipObject=t}return(0,a.Z)(e,[{key:"read",value:function(e){return this.zipObject.async(e||"string")}}]),e}(),o=function(){function e(t,r){(0,n.Z)(this,e),this.zip=t,this.path=r}return(0,a.Z)(e,[{key:"write",value:function(e){return this.zip.file(this.path,e),Promise.resolve()}}]),e}()},62043:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(15671),a=r(43144),s=r(55733),o=r.n(s),i=r(11197),c=function(){function e(t,r){(0,n.Z)(this,e),this.zip=t||new(o()),this.basePath=r||""}return(0,a.Z)(e,[{key:"verify",value:function(){return Promise.resolve()}},{key:"open",value:function(e){var t=e.name,r=this.zip.file(t);return r?Promise.resolve(new i.$(r)):Promise.reject(new Error("File not found"))}},{key:"openDir",value:function(t){return Promise.resolve(new e(this.zip,t))}},{key:"create",value:function(e){return Promise.resolve(new i.I(this.zip,e))}},{key:"createDir",value:function(){return Promise.resolve()}},{key:"delete",value:function(e){return this.zip.remove(e),Promise.resolve()}},{key:"list",value:function(){var e=this,t=[];return Object.keys(this.zip.files).forEach((function(r){t.push({name:r,path:r,size:0,digest:"",createtime:e.zip.files[r].date.getTime(),updatetime:e.zip.files[r].date.getTime()})})),Promise.resolve(t)}},{key:"getDirUrl",value:function(){throw new Error("Method not implemented.")}}]),e}()},23435:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(15861),a=r(15671),s=r(43144),o=r(4942),i=r(64687),c=r.n(i),u=function(){function e(){(0,a.Z)(this,e),this.map=new Map}var t;return(0,s.Z)(e,[{key:"get",value:function(e){return this.map.get(e)}},{key:"getOrSet",value:(t=(0,n.Z)(c().mark((function e(t,r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.get(t)){e.next=6;break}return e.next=4,r();case 4:n=e.sent,this.set(t,n);case 6:return e.abrupt("return",Promise.resolve(n));case 7:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"set",value:function(e,t){this.map.set(e,t)}},{key:"has",value:function(e){return this.map.has(e)}},{key:"del",value:function(e){this.map.delete(e)}}],[{key:"getInstance",value:function(){return e.instance}}]),e}();(0,o.Z)(u,"instance",new u)},29376:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(92826),a=r(15671),s=r(43144),o=r(4942),i=r(44624),c=r(42070),u=function(){function e(t){(0,a.Z)(this,e),(0,o.Z)(this,"level","info"),(0,o.Z)(this,"debug",!1),this.writer=t.writer,this.level=t.level||this.level,this.debug=t.debug||this.debug,this.labels=t.labels||{},e.instance||(e.instance=this)}return(0,s.Z)(e,[{key:"logger",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r{"use strict";r.d(t,{Z:()=>s});var n=r(15671),a=r(43144),s=function(){function e(t){(0,n.Z)(this,e),this.dao=t}return(0,a.Z)(e,[{key:"write",value:function(e,t,r){this.dao.save({id:0,level:e,message:t,label:r,createtime:(new Date).getTime()})}}]),e}()},42070:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(92826),a=r(42982),s=r(71002),o=r(15671),i=r(43144),c=r(27484),u=r.n(c),l=r(29376),p={debug:10,info:100,warn:1e3,error:1e4};function d(){for(var e={},t=arguments.length,r=new Array(t),n=0;n1?r-1:0),a=1;a2?r-2:0),a=2;a=p[this.core.level]&&this.core.writer.write(e,t,d(this.label,n)),this.core.debug){"object"===(0,s.Z)(t)&&(t=JSON.stringify(t));var o="".concat(u()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(e,"] msg=").concat(t," label=").concat(JSON.stringify(d(this.label,n)));switch(e){case"error":console.error(o);break;case"warn":console.warn(o);break;default:console.info(o)}}l.Z.hook.trigger("log",{level:e,message:t,label:n})}},{key:"with",value:function(){for(var t=arguments.length,r=new Array(t),s=0;s1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n{"use strict";r.d(t,{Z:()=>f});var n=r(15671),a=r(43144),s=r(97326),o=r(60136),i=r(27121),c=r(61120),u=r(4942),l=r(29376),p=r(41643);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var f=function(e){(0,o.Z)(r,e);var t=d(r);function r(){var e;return(0,n.Z)(this,r),e=t.call(this),(0,u.Z)((0,s.Z)(e),"connectMap",new Map),(0,u.Z)((0,s.Z)(e),"streamMap",new Map),e.logger=l.Z.getInstance().logger({component:"messageCenter"}),e}return(0,a.Z)(r,[{key:"setSandbox",value:function(e){this.sandbox=e}},{key:"start",value:function(){var e=this;chrome.runtime.onConnect.addListener((function(t){var r=e.connectMap.get(t.name);r||(r=new Map,e.connectMap.set(t.name,r));var n,a={targetTag:t.name},s=0;t.sender&&t.sender.tab&&(t.sender.frameId?(s=t.sender.tab.id+t.sender.frameId,a.frameId=t.sender.frameId):s=t.sender.tab.id,a.tabId=null===(n=t.sender.tab)||void 0===n?void 0:n.id,a.url=t.sender.url);r.set(s,t);var o=new p.dS((function(e){t.postMessage(e)}));t.onDisconnect.addListener((function(){r.delete(s),o.free()})),t.onMessage.addListener((function(t){if(!0!==t.broadcast)e.handler(t,o,a);else{var r=t.target;t.action?e.send(r,t.action,t.data):e.sendNative(r,t.data)}}))}));var t=new p.dS((function(t){var r;null===(r=e.sandbox)||void 0===r||r.postMessage(t,"*")}));window.addEventListener("message",(function(r){var n=r.data;if(!0===n.broadcast){var a=n.target;n.action?e.send(a,n.action,n.data):e.sendNative(a,n.data)}e.handler(n,t,{targetTag:"sandbox"})}))}},{key:"broadcast",value:function(e,t,r){return this.send(e,t,r)}},{key:"send",value:function(e,t,r){this.sendNative(e,{action:t,data:r})}},{key:"sendNative",value:function(e,t){var r=this;if("all"===e.tag)return this.connectMap.forEach((function(e,n){r.sendNative({tag:n},t)})),void this.sendNative({tag:"sandbox"},t);if("sandbox"!==e.tag){var n=this.connectMap.get(e.tag);n&&(e.id?e.id.forEach((function(e){var r;null===(r=n.get(e))||void 0===r||r.postMessage(t)})):n.forEach((function(e){e.postMessage(t)})))}else{var a;null===(a=this.sandbox)||void 0===a||a.postMessage(t,"*")}}}]),r}(p.Ez)},69376:(e,t,r)=>{"use strict";r.d(t,{$:()=>c});var n=r(15671),a=r(43144),s=r(4942),o=r(29376),i=r(42070),c=function(){function e(t,r){var a=this;(0,n.Z)(this,e),(0,s.Z)(this,"disChannelHandlerArray",[]),"function"==typeof t?(this.setHandler(t),this.setCatch(r)):(this.manager=t,this.flag=r,this.setCatch((function(e){o.Z.getInstance().logger(i.Z.E(e)).error("channel error",{flag:a.flag})})),this.setHandler((function(){o.Z.getInstance().logger().warn("channel handler is null")})))}return(0,a.Z)(e,[{key:"channel",value:function(e,t){this.manager.nativeSend({action:e,data:t,stream:this.flag,channel:!0})}},{key:"send",value:function(e){this.manager.nativeSend({data:e,stream:this.flag,channel:!0})}},{key:"throw",value:function(e){this.manager.nativeSend({stream:this.flag,error:e,channel:!0}),this.manager.disChannel(this)}},{key:"syncSend",value:function(e,t){var r=this;return this.manager.nativeSend({action:e,data:t,stream:this.flag,channel:!1}),new Promise((function(e,t){r.handler=function(t){e(t)},r.catch=function(e){t(e)}}))}},{key:"setHandler",value:function(e){this.handler=function(t){if("dischannel"===t)return this.manager.disChannel(this),void this.disChannelHandlerArray.forEach((function(e){e("dischannel")}));e(t)}}},{key:"setCatch",value:function(e){this.catch=function(t){e(t),this.manager.disChannel(this),this.disChannelHandlerArray.forEach((function(e){e("dischannel")}))}}},{key:"setDisChannelHandler",value:function(e){this.disChannelHandlerArray.push(e)}},{key:"disChannel",value:function(){this.send("dischannel"),this.manager.disChannel(this)}}]),e}()},57805:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(15671),a=r(43144),s=r(60136),o=r(27121),i=r(61120),c=r(41643);function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,i.Z)(e);if(t){var a=(0,i.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,o.Z)(this,r)}}var l=function(e){(0,s.Z)(r,e);var t=u(r);function r(e){var a;return(0,n.Z)(this,r),(a=t.call(this)).tag=e,a.reconnect(),a}return(0,a.Z)(r,[{key:"reconnect",value:function(){var e=this;this.port=chrome.runtime.connect({name:this.tag}),this.channelManager=new c.dS((function(t){e.nativeSend(t)})),this.port.onMessage.addListener((function(t){e.handler(t,e.channelManager,{targetTag:"content"})})),this.port.onDisconnect.addListener((function(){var t;e.channelManager.free(),null===(t=e.onDisconnect)||void 0===t||t.call(e)}))}},{key:"getChannel",value:function(e){return this.channelManager.getChannel(e)}},{key:"channel",value:function(e){return this.channelManager.channel(e)}},{key:"disChannel",value:function(e){this.channelManager.disChannel(e)}},{key:"free",value:function(){this.channelManager.free()}},{key:"nativeSend",value:function(e){this.port.postMessage(e)}},{key:"send",value:function(e,t){this.port.postMessage({action:e,data:t})}},{key:"syncSend",value:function(e,t){return this.channelManager.channel().syncSend(e,t)}},{key:"broadcast",value:function(e,t,r){this.nativeSend({target:e,action:t,data:r,broadcast:!0})}},{key:"broadcastChannel",value:function(e,t,r){this.nativeSend({target:e,data:{stream:t,channel:!0,data:r},broadcast:!0})}}]),r}(c.Ez)},41643:(e,t,r)=>{"use strict";r.d(t,{Bb:()=>d,Ez:()=>h,dS:()=>f});var n=r(15861),a=r(15671),s=r(43144),o=r(4942),i=r(64687),c=r.n(i),u=r(43528),l=r(29376),p=r(69376),d=Symbol("MessageBroadcast"),f=function(){function e(t){(0,a.Z)(this,e),(0,o.Z)(this,"channelMap",new Map),this.nativeSend=t}return(0,s.Z)(e,[{key:"channel",value:function(e){e||(e=(0,u.Z)());var t=new p.$(this,e);return this.channelMap.set(e,t),t}},{key:"getChannel",value:function(e){return this.channelMap.get(e)}},{key:"disChannel",value:function(e){this.channelMap.delete(e.flag)}},{key:"free",value:function(){this.channelMap.forEach((function(e){e.disChannelHandlerArray.forEach((function(e){e("free")}))})),this.channelMap.clear()}}]),e}(),h=function(){function e(){(0,a.Z)(this,e),(0,o.Z)(this,"handlerMap",new Map),(0,o.Z)(this,"channelHandlerMap",new Map)}var t;return(0,s.Z)(e,[{key:"handler",value:(t=(0,n.Z)(c().mark((function e(t,r,n){var a,s,o,i,u,p;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.channel){e.next=4;break}return(a=r.getChannel(t.stream))?t.error?a.catch(t.error):a.handler(t.data):(s=this.channelHandlerMap.get(t.action))&&(a=r.channel(t.stream),s(a,t.action,t.data,n)),e.abrupt("return");case 4:if(!t.stream){e.next=7;break}return t.action?(o=this.handlerMap.get(t.action))&&((i=o(t.action,t.data,n))?i instanceof Promise?i.then((function(e){r.nativeSend({stream:t.stream,data:e})})).catch((function(e){r.nativeSend({error:e.message,stream:t.stream})})):r.nativeSend({stream:t.stream,data:i}):l.Z.getLogger({component:"message"}).warn("handler return is null")):(u=r.getChannel(t.stream))&&(t.error?u.catch(t.error):u.handler(t.data)),e.abrupt("return");case 7:(p=this.handlerMap.get(t.action))&&p(t.action,t.data,n);case 9:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})},{key:"setHandler",value:function(e,t){this.handlerMap.set(e,t)}},{key:"setHandlerWithChannel",value:function(e,t){this.channelHandlerMap.set(e,t)}}]),e}()},65832:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(15861),a=r(64687),s=r.n(a),o=r(63585);function i(){o.db.version(1).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,createtime,updatetime,checktime"}),o.db.version(2).stores({logger:"++id,level,origin,createtime",permission:"++id,[scriptId+permission+permissionValue],createtime,updatetime"}),o.db.version(3).stores({logger:"++id,level,title,origin,createtime"}),o.db.version(4).stores({value:"++id,scriptId,namespace,key,createtime"}),o.db.version(5).stores({logger:"++id,level,origin,createtime,title,[origin+title],[level+origin+title]"}),o.db.version(6).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,runStatus,createtime,updatetime,checktime"}),o.db.version(7).stores({resource:"++id,&url,content,type,createtime,updatetime",resourceLink:"++id,url,scriptId,createtime"}),o.db.version(8).stores({logger:"++id,level,origin,createtime"}),o.db.version(9).stores({logger:"++id,level,scriptId,origin,createtime"}),o.db.version(10).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,sort,status,runStatus,createtime,updatetime,checktime"}).upgrade((function(e){return e.table("scripts").toCollection().modify((function(e){e.sort=0}))})),o.db.version(11).stores({export:"++id,&uuid,scriptId"}),o.db.version(12).stores({value:"++id,scriptId,storageName,key,createtime"}).upgrade((function(e){e.table("value").toCollection().modify((function(e){e.namespace&&(e.storageName=e.namespace,delete e.namespace)}))})),o.db.version(13).stores({subscribe:"++id,&url,createtime,updatetime,checktime",scripts:"++id,&uuid,name,namespace,author,origin_domain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",sync:"++id,&key,[user+device+type],createtime"}),o.db.version(14).stores({value:"++id,[scriptId+key],[storageName+key]"}),o.db.version(15).stores({permission:"++id,scriptId,[scriptId+permission+permissionValue],createtime,updatetime"}),o.db.version(16).stores({scripts:"++id,&uuid,name,namespace,author,originDomain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",logger:"++id,level,createtime"}).upgrade(function(){var e=(0,n.Z)(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.table("export").clear();case 2:return e.abrupt("return",t.table("scripts").toCollection().modify((function(e){e.origin_domain&&(e.originDomain=e.origin_domain),e.checkupdate_url&&(e.checkUpdateUrl=e.checkupdate_url),e.download_url&&(e.downloadUrl=e.download_url)})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),o.db.version(17).stores({export:"++id,&scriptId"})}},63585:(e,t,r)=>{"use strict";r.d(t,{db:()=>u,sR:()=>p});var n=r(15861),a=r(4942),s=r(15671),o=r(43144),i=r(64687),c=r.n(i),u=new(r(49520).ZP)("ScriptCat"),l=new Error("数据保存失败"),p=function(){function e(){(0,s.Z)(this,e),(0,a.Z)(this,"tableName","")}var t,r;return(0,o.Z)(e,[{key:"list",value:function(e,t){if(!t)return this.table.where(e).toArray();var r=this.table.where(e).offset((t.page()-1)*t.count()).limit(t.count());return"id"!==t.order()&&r.sortBy(t.order()),"desc"===t.sort()&&(r=r.reverse()),r.toArray()}},{key:"find",value:function(){return this.table}},{key:"findOne",value:function(e){return this.table.where(e).first()}},{key:"save",value:(r=(0,n.Z)(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.id){e.next=4;break}return delete t.id,e.abrupt("return",this.table.add(t));case 4:return e.next=6,this.table.update(r,t);case 6:if(!e.sent){e.next=9;break}return e.abrupt("return",Promise.resolve(r));case 9:return e.abrupt("return",Promise.reject(l));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"findById",value:function(e){return this.table.get(e)}},{key:"clear",value:function(){return this.table.clear()}},{key:"delete",value:(t=(0,n.Z)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("number"!=typeof t){e.next=2;break}return e.abrupt("return",this.table.where({id:t}).delete());case 2:return e.abrupt("return",this.table.where(t).delete());case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"update",value:function(e,t){return this.table.update(e,t)}},{key:"count",value:function(){return this.table.count()}}]),e}()},12875:(e,t,r)=>{"use strict";r.d(t,{z:()=>m});var n=r(15861),a=r(15671),s=r(43144),o=r(97326),i=r(60136),c=r(27121),u=r(61120),l=r(4942),p=r(64687),d=r.n(p),f=r(63585);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,u.Z)(e);if(t){var a=(0,u.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,c.Z)(this,r)}}var m=function(e){(0,i.Z)(c,e);var t,r=h(c);function c(){var e;return(0,a.Z)(this,c),e=r.call(this),(0,l.Z)((0,o.Z)(e),"tableName","logger"),e.table=f.db.table(e.tableName),e}return(0,s.Z)(c,[{key:"queryLogs",value:(t=(0,n.Z)(d().mark((function e(t,r){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.table.where("createtime").between(t,r).toArray();case 2:return n=e.sent,e.abrupt("return",n.sort((function(e,t){return t.createtime-e.createtime})));case 4:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})},{key:"deleteBefore",value:function(e){return this.table.where("createtime").below(e).delete()}}]),c}(f.sR)},31274:(e,t,r)=>{"use strict";r.d(t,{y:()=>d});var n=r(43144),a=r(15671),s=r(97326),o=r(60136),i=r(27121),c=r(61120),u=r(4942),l=r(63585);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var d=function(e){(0,o.Z)(r,e);var t=p(r);function r(){var e;return(0,a.Z)(this,r),e=t.call(this),(0,u.Z)((0,s.Z)(e),"tableName","permission"),e.table=l.db.table(e.tableName),e}return(0,n.Z)(r)}(l.sR)},85372:(e,t,r)=>{"use strict";r.d(t,{P:()=>d});var n=r(43144),a=r(15671),s=r(97326),o=r(60136),i=r(27121),c=r(61120),u=r(4942),l=r(63585);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var d=function(e){(0,o.Z)(r,e);var t=p(r);function r(){var e;return(0,a.Z)(this,r),e=t.call(this),(0,u.Z)((0,s.Z)(e),"tableName","resource"),e.table=l.db.table(e.tableName),e}return(0,n.Z)(r)}(l.sR)},14874:(e,t,r)=>{"use strict";r.d(t,{Z:()=>d});var n=r(43144),a=r(15671),s=r(97326),o=r(60136),i=r(27121),c=r(61120),u=r(4942),l=r(63585);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var d=function(e){(0,o.Z)(r,e);var t=p(r);function r(){var e;return(0,a.Z)(this,r),e=t.call(this),(0,u.Z)((0,s.Z)(e),"tableName","resourceLink"),e.table=l.db.table(e.tableName),e}return(0,n.Z)(r)}(l.sR)},46601:(e,t,r)=>{"use strict";r.d(t,{Q:()=>d});var n=r(43144),a=r(15671),s=r(97326),o=r(60136),i=r(27121),c=r(61120),u=r(4942),l=r(63585);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var d=function(e){(0,o.Z)(r,e);var t=p(r);function r(){var e;return(0,a.Z)(this,r),e=t.call(this),(0,u.Z)((0,s.Z)(e),"tableName","value"),e.table=l.db.table(e.tableName),e}return(0,n.Z)(r)}(l.sR)},44624:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(71002),a=r(15671),s=r(43144),o=r(4942);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var c=function(){function e(){(0,a.Z)(this,e),(0,o.Z)(this,"hookMap",{})}return(0,s.Z)(e,[{key:"trigger",value:function(e){if(this.hookMap[e]){for(var t=[],r=arguments.length,a=new Array(r>1?r-1:0),s=1;s-1&&this.hookMap[e].splice(r,1)}}}]),e}()},54650:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(15671),a=r(43144),s=r(29376),o=function(){function e(t,r){(0,n.Z)(this,e),this.message=t,this.name=r,this.logger=s.Z.getLogger({component:this.name,manager:!0})}return(0,a.Z)(e,[{key:"listenEvent",value:function(e,t){this.message.setHandler("".concat(this.name,"-").concat(e),(function(e,r,n){return new Promise((function(e){e(t(r,n))}))}))}}]),e}()},99839:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>T});var n,a=r(4942),s=r(15861),o=r(15671),i=r(43144),c=r(60136),u=r(27121),l=r(61120),p=r(64687),d=r.n(p),f=r(41258),h=r(81354),m=r.n(h),v=r(29376),g=r(42070),y=r(41643),b=r(85372),k=r(14874),w=r(51120),M=r(23435),x=r(77337),Z=r(10010),O=r(28182),I=r(54650);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t(new Date).getTime()-6e4)){e.next=6;break}return e.abrupt("return",Promise.resolve(a));case 6:return e.prev=6,e.next=9,this.updateResource(r,t,n);case 9:if(!(a=e.sent)){e.next=12;break}return e.abrupt("return",Promise.resolve(a));case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(6);case 16:return e.abrupt("return",Promise.resolve(void 0));case 17:case"end":return e.stop()}}),e,this,[[6,14]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"updateResource",value:(n=(0,s.Z)(d().mark((function e(t,r,n){var a,s,o,i,c;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.parseUrl(t),e.next=3,this.getResourceModel(a.url);case 3:return s=e.sent,e.prev=4,e.next=7,this.loadByUrl(a.url,n);case 7:if((o=e.sent).updatetime=(new Date).getTime(),M.Z.getInstance().set(Z.Z.resourceByUrl(a.url),o),s){e.next=19;break}return o.createtime=(new Date).getTime(),e.next=14,this.resourceDAO.save(o);case 14:i=e.sent,s=o,this.logger.info("reload new resource success",{url:a.url,id:i}),e.next=27;break;case 19:return s.base64=o.base64,s.content=o.content,s.contentType=o.contentType,s.hash=o.hash,s.updatetime=o.updatetime,e.next=26,this.resourceDAO.update(s.id,s);case 26:this.logger.info("reload resource success",{url:a.url,id:s.id});case 27:e.next=33;break;case 29:throw e.prev=29,e.t0=e.catch(4),this.logger.error("load resource error",{url:a.url},g.Z.E(e.t0)),e.t0;case 33:return e.next=35,this.resourceLinkDAO.findOne({url:a.url,scriptId:r});case 35:if(!e.sent){e.next=38;break}return e.abrupt("return",Promise.resolve(s));case 38:return e.next=40,this.resourceLinkDAO.save({id:0,url:a.url,scriptId:r,createtime:(new Date).getTime()});case 40:return c=e.sent,this.logger.debug("resource link",{url:a.url,resourceID:s.id,id:c}),e.abrupt("return",Promise.resolve(s));case 43:case"end":return e.stop()}}),e,this,[[4,29]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"addResource",value:(r=(0,s.Z)(d().mark((function e(t,r,n){var a,s,o,i,c;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.parseUrl(t),e.next=3,this.getResourceModel(a.url);case 3:if(s=e.sent){e.next=23;break}return e.prev=5,e.next=8,this.loadByUrl(a.url,n);case 8:return(o=e.sent).createtime=(new Date).getTime(),o.updatetime=(new Date).getTime(),M.Z.getInstance().set(Z.Z.resourceByUrl(a.url),o),e.next=14,this.resourceDAO.save(o);case 14:i=e.sent,s=o,this.logger.info("load resource success",{url:a.url,id:i}),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(5),this.logger.error("load resource error",{url:a.url},g.Z.E(e.t0)),e.t0;case 23:return e.next=25,this.resourceLinkDAO.findOne({url:a.url,scriptId:r});case 25:if(!e.sent){e.next=28;break}return e.abrupt("return",Promise.resolve(s));case 28:return e.next=30,this.resourceLinkDAO.save({id:0,url:a.url,scriptId:r,createtime:(new Date).getTime()});case 30:return c=e.sent,this.logger.debug("resource link",{url:a.url,resourceID:s.id,id:c}),e.abrupt("return",Promise.resolve(s));case 33:case"end":return e.stop()}}),e,this,[[5,19]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"getResourceModel",value:(t=(0,s.Z)(d().mark((function e(t){var r,n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.parseUrl(t),e.next=3,this.resourceDAO.findOne({url:r.url});case 3:if(!(n=e.sent)){e.next=7;break}return r.hash&&(r.hash.md5&&r.hash.md5!==n.hash.md5||r.hash.sha1&&r.hash.sha1!==n.hash.sha1||r.hash.sha256&&r.hash.sha256!==n.hash.sha256||r.hash.sha384&&r.hash.sha384!==n.hash.sha384||r.hash.sha512&&r.hash.sha512!==n.hash.sha512)&&(n.content="console.warn(\"ScriptCat: couldn't load resource from URL ".concat(t,' due to a SRI error ");')),e.abrupt("return",Promise.resolve(n));case 7:return e.abrupt("return",Promise.resolve(void 0));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"loadByUrl",value:function(e,t){var r=this;return new Promise((function(n,a){var o=r.parseUrl(e);w.Z.get(o.url,{responseType:"blob"}).then(function(){var e=(0,s.Z)(d().mark((function e(r){var s,i,c;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200===r.status){e.next=2;break}return e.abrupt("return",a(new Error("resource response status not 200:".concat(r.status))));case 2:return e.t0=o.url,e.t1=(r.headers["content-type"]||"application/octet-stream").split(";")[0],e.next=6,P(r.data);case 6:return e.t2=e.sent,e.t3=t,e.t4=(new Date).getTime(),s={id:0,url:e.t0,content:"",contentType:e.t1,hash:e.t2,base64:"",type:e.t3,createtime:e.t4},e.next=12,r.data.arrayBuffer();case 12:if(i=e.sent,c=new Uint8Array(i),!(0,O.Gs)(c)){e.next=18;break}return e.next=17,r.data.text();case 17:s.content=e.sent;case 18:return e.next=20,(0,x.w8)(r.data);case 20:if(e.t5=e.sent,e.t5){e.next=23;break}e.t5="";case 23:return s.base64=e.t5,e.abrupt("return",n(s));case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){return a(e)}))}))}},{key:"parseUrl",value:function(e){var t=e.split("#");if(t.length<2)return{url:t[0],hash:void 0};var r=t[1].split(/[,;]/),n={};return r.forEach((function(e){var t=e.split("=");t.length<2||(n[t[0]]=t[1].toLocaleLowerCase())})),{url:t[0],hash:n}}}]),C}(I.Z))||n},39882:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n,a,s,o,i,c,u,l,p,d=r(15861),f=r(15671),h=r(43144),m=r(53229),v=r(64687),g=r.n(v),y=r(29376),b=r(42070),k=r(10010),w=r(23435),M=r(79275),x=r(4888),Z={};function O(e){return function(t,r){Z[e]=t[r]}}var I=(n=O("upsert"),a=O("fetch"),s=O("enable"),o=O("disable"),i=O("delete"),c=O("checkUpdate"),u=O("importByUrl"),l=O("exclude"),p=function(){function e(t,r){var n=this;(0,f.Z)(this,e),this.manager=t,this.dao=r,this.cache=w.Z.getInstance(),this.logger=y.Z.getInstance().logger({component:"script"}),Object.keys(Z).forEach((function(e){n.manager.listenEvent(e,Z[e].bind(n))}))}var t;return(0,h.Z)(e,[{key:"upsertHandler",value:(t=(0,d.Z)(g().mark((function e(t){var r,n,a,s=this,o=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.length>1&&void 0!==o[1]?o[1]:"user",n=this.logger.with({scriptId:t.id,name:t.name,uuid:t.uuid,version:t.metadata.version[0],upsertBy:r}),!t.id){e.next=7;break}return e.next=5,this.dao.findById(t.id);case 5:(a=e.sent)&&(t.selfMetadata=a.selfMetadata);case 7:return e.abrupt("return",new Promise((function(e,a){s.dao.save(t).then((function(){n.info("script upsert success"),x.Z.hook.trigger("upsert",t,r),e({id:t.id})}),(function(e){n.error("script upsert failed",b.Z.E(e)),a(e)}))})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"fetchInfoHandler",value:function(e){var t=this;return new Promise((function(r){r(t.cache.get(k.Z.scriptInfo(e)))}))}},{key:"enableHandler",value:function(e){var t=this,r=this.logger.with({scriptId:e});return new Promise((function(n,a){t.dao.findById(e).then((function(e){return e?(e.status!==M.Kv&&(e.status=M.Kv,e.updatetime=(new Date).getTime(),t.dao.save(e),r.info("enable script"),x.Z.hook.trigger("enable",e)),n(1)):a(new Error("脚本不存在"))})).catch((function(e){r.error("enable error",b.Z.E(e)),a(e)}))}))}},{key:"disableHandler",value:function(e){var t=this,r=this.logger.with({scriptId:e});return new Promise((function(n,a){t.dao.findById(e).then((function(e){return e?(e.status===M.Kv&&(e.status=M.J7,e.updatetime=(new Date).getTime(),t.dao.save(e),r.info("disable script"),x.Z.hook.trigger("disable",e)),n(1)):a(new Error("脚本不存在"))})).catch((function(e){r.error("disable error",b.Z.E(e)),a(e)}))}))}},{key:"deleteHandler",value:function(e){var t=this,r=this.logger.with({scriptId:e});return new Promise((function(n,a){t.dao.findById(e).then((function(e){return e?(r=r.with({name:e.name,uuid:e.uuid,version:e.metadata.version[0]}),t.dao.delete(e.id).then((function(){return r.info("script delete success"),x.Z.hook.trigger("delete",e),n(1)})).catch((function(e){return r.error("script delete failed",b.Z.E(e)),a(e)}))):Promise.reject(new Error("脚本不存在"))}))}))}},{key:"checkUpdateHandler",value:function(e){return this.manager.checkUpdate(e,"user")}},{key:"importByUrlHandler",value:function(e){return this.manager.openInstallPageByUrl(e)}},{key:"excludeHandler",value:function(e){var t=this,r=e.id,n=e.exclude,a=e.remove,s=this.logger.with({scriptId:r});return new Promise((function(e,o){t.dao.findById(r).then((function(r){if(!r)return o(new Error("脚本不存在"));r.selfMetadata=r.selfMetadata||{};var i=r.selfMetadata.exclude||[];if(a)for(var c=0;c{"use strict";r.d(t,{Z:()=>R});var n,a,s,o,i,c=r(15861),u=r(15671),l=r(43144),p=r(97326),d=r(60136),f=r(27121),h=r(61120),m=r(4942),v=r(53229),g=r(64687),y=r.n(g),b=r(43528),k=r(77337),w=r(23435),M=r(10010),x=r(41643),Z=r(41258),O=r(29376),I=r(42070),D=r(10802),A=r(51870),j=r(54650),P=r(79275),T=r(39882),C=r(44624);function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,h.Z)(e);if(t){var a=(0,h.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,f.Z)(this,r)}}const R=(n=Z.Z.Singleton(x.Ez,D.T),a=M.Z.Trigger(),n((i=function(e){(0,d.Z)(a,e);var t,r,n=_(a);function a(e,t){var r;return(0,u.Z)(this,a),(r=n.call(this,e,"script")).event=new T.Z((0,p.Z)(r),new P.Ru),r.scriptDAO=new P.Ru,r.systemConfig=t,r.logger=O.Z.getLogger({component:"scriptManager"}),r}return(0,l.Z)(a,[{key:"start",value:function(){var e=this;this.listenInstallRequest(),setInterval((function(){e.systemConfig.checkScriptUpdateCycle&&(e.logger.debug("start check update"),e.scriptDAO.table.where("checktime").belowOrEqual((new Date).getTime()-1e3*e.systemConfig.checkScriptUpdateCycle).toArray().then((function(t){t.forEach((function(t){(e.systemConfig.updateDisableScript||t.status!==P.J7)&&e.checkUpdate(t.id,"system")}))})))}),6e5)}},{key:"listenInstallRequest",value:function(){var e=this;chrome.webRequest.onBeforeRequest.addListener((function(t){return"GET"!==t.method||-1!==t.url.split("#").splice(1).join("#").indexOf("bypass=true")?{}:(e.openInstallPage(t),{redirectUrl:"javascript:void 0"})}),{urls:["*://*/*.user.js","*://*/*.user.js?*","https://*/*.user.sub.js","https://*/*.user.sub.js?*","https://*/*.user.bg.js","https://*/*.user.bg.js?*","file:///*/*.user.js"],types:["main_frame"]},["blocking"])}},{key:"openInstallPage",value:function(e){this.openInstallPageByUrl(e.url).catch((function(){chrome.tabs.update(e.tabId,{url:"".concat(e.url,"#bypass=true")})}))}},{key:"openInstallPageByUrl",value:function(e){return(0,k.i3)(e,"user",!1,(0,b.Z)()).then((function(e){w.Z.getInstance().set(M.Z.scriptInfo(e.uuid),e),setTimeout((function(){w.Z.getInstance().del(M.Z.scriptInfo(e.uuid))}),6e4),(0,A.hR)("/src/install.html?uuid=".concat(e.uuid))}))}},{key:"checkUpdate",value:(r=(0,c.Z)(y().mark((function e(t,r){var n,a,s,o,i,c;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.scriptDAO.findById(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",Promise.resolve(!1));case 5:if(this.scriptDAO.update(t,{checktime:(new Date).getTime()}),n.checkUpdateUrl){e.next=8;break}return e.abrupt("return",Promise.resolve(!1));case 8:return a=O.Z.getLogger({scriptId:t,name:n.name}),e.prev=9,e.next=12,(0,k.i3)(n.checkUpdateUrl,r,!1,n.uuid);case 12:if(s=e.sent,o=s.metadata){e.next=17;break}return a.error("parse metadata failed"),e.abrupt("return",Promise.resolve(!1));case 17:if(i=o.version&&o.version[0]){e.next=21;break}return a.error("parse version failed",{version:o.version[0]}),e.abrupt("return",Promise.resolve(!1));case 21:if((c=n.metadata.version&&n.metadata.version[0])||(c="0.0.0"),!(0,A.jo)(i,c,a)){e.next=25;break}return e.abrupt("return",Promise.resolve(!1));case 25:this.openUpdatePage(n,r),e.next=32;break;case 28:return e.prev=28,e.t0=e.catch(9),a.error("check update failed",I.Z.E(e.t0)),e.abrupt("return",Promise.resolve(!1));case 32:return e.abrupt("return",Promise.resolve(!0));case 33:case"end":return e.stop()}}),e,this,[[9,28]])}))),function(e,t){return r.apply(this,arguments)})},{key:"openUpdatePage",value:function(e,t){var r=this,n=this.logger.with({scriptId:e.id,name:e.name,downloadUrl:e.downloadUrl,checkUpdateUrl:e.checkUpdateUrl});(0,k.i3)(e.downloadUrl||e.checkUpdateUrl,t,!0,e.uuid).then(function(){var t=(0,c.Z)(y().mark((function t(a){var s;return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.systemConfig.silenceUpdateScript){t.next=14;break}return t.prev=1,t.next=4,(0,k.zg)(a.code,e.downloadUrl||e.checkUpdateUrl,e.uuid);case 4:if(s=t.sent,!(0,A.Sk)(s.oldScript.metadata,s.metadata)){t.next=9;break}return n.info("silence update script"),r.event.upsertHandler(s),t.abrupt("return");case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.error("prepare script failed",I.Z.E(t.t0));case 14:w.Z.getInstance().set(M.Z.scriptInfo(a.uuid),a),chrome.tabs.create({url:"/src/install.html?uuid=".concat(a.uuid)});case 16:case"end":return t.stop()}}),t,null,[[1,11]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){n.error("fetch script info failed",I.Z.E(e))}))}},{key:"installByUrl",value:(t=(0,c.Z)(y().mark((function e(t,r,n){var a,s;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.i3)(t,"system",!1,(0,b.Z)());case 2:return a=e.sent,e.next=5,(0,k.zg)(a.code,t,a.uuid);case 5:return(s=e.sent).subscribeUrl=n,e.next=9,this.event.upsertHandler(s,"system");case 9:return e.abrupt("return",Promise.resolve(s));case 10:case"end":return e.stop()}}),e,this)}))),function(e,r,n){return t.apply(this,arguments)})}],[{key:"CacheManager",value:function(){a.hook.addListener("upsert",(function(e){return w.Z.getInstance().del(M.Z.script(e.id)),Promise.resolve(!0)})),a.hook.addListener("delete",(function(e){return w.Z.getInstance().del(M.Z.script(e.id)),Promise.resolve(!0)}))}}]),a}(j.Z),(0,m.Z)(i,"hook",new C.Z),o=i,(0,v.Z)(o,"CacheManager",[a],Object.getOwnPropertyDescriptor(o,"CacheManager"),o),s=o))||s)},7985:(e,t,r)=>{"use strict";r.d(t,{Z:()=>I});var n,a,s=r(70885),o=r(15861),i=r(15671),c=r(43144),u=r(60136),l=r(27121),p=r(61120),d=r(4942),f=r(64687),h=r.n(f),m=r(41258),v=r(41643),g=r(79275),y=r(46601),b=r(10010),k=r(96486),w=r(23435),M=r(54650),x=r(4888),Z=r(44624);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,p.Z)(e);if(t){var a=(0,p.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,l.Z)(this,r)}}const I=m.Z.Singleton(v.Ez,v.Bb)((a=function(e){(0,u.Z)(l,e);var t,r,n,a=O(l);function l(e,t){var r;return(0,i.Z)(this,l),(r=a.call(this,e,"value")).broadcast=t,r.scriptDAO=new g.Ru,r.valueDAO=new y.Q,r}return(0,c.Z)(l,[{key:"start",value:function(){var e=this;this.listenEvent("upsert",function(){var t=(0,o.Z)(h().mark((function t(r,n){var a,s,o,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=r.scriptId,s=r.key,o=r.value,t.next=3,e.scriptDAO.findById(a);case 3:if(i=t.sent){t.next=6;break}return t.abrupt("return",Promise.reject(new Error("script not found")));case 6:return t.abrupt("return",e.setValue(i,s,o,n));case 7:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),this.message.setHandlerWithChannel("watchValue",function(){var e=(0,o.Z)(h().mark((function e(t,r,n){var a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=function(e){if(n.metadata.storagename){if(e.storageName!==n.metadata.storagename[0])return}else if(e.scriptId!==n.id)return;t.send(e)},l.hook.addListener("upsert",a),t.setDisChannelHandler((function(){l.hook.removeListener("upsert",a)}));case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}()),x.Z.hook.addListener("delete",(function(){}))}},{key:"getScriptValues",value:(n=(0,o.Z)(h().mark((function e(t){var r=this;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",w.Z.getInstance().getOrSet(b.Z.scriptValue(t.id,t.metadata.storagename),(function(){return r.getValues(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getValues",value:(r=(0,o.Z)(h().mark((function e(t){var r,n,a,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},t.metadata.storagename?(n=(0,s.Z)(t.metadata.storagename,1),r.storageName=n[0]):r.scriptId=t.id,e.next=4,this.valueDAO.list(r);case 4:return a=e.sent,o={},a.forEach((function(e){o[e.key]=e})),e.abrupt("return",Promise.resolve(o));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"setValue",value:(t=(0,o.Z)(h().mark((function e(t,r,n,a){var s,o,i,c,u;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.metadata.storagename){e.next=6;break}return e.next=3,this.valueDAO.findOne({storageName:t.metadata.storagename[0],key:r});case 3:s=e.sent,e.next=9;break;case 6:return e.next=8,this.valueDAO.findOne({scriptId:null==t?void 0:t.id,key:r});case 8:s=e.sent;case 9:if(s){e.next=13;break}s={id:0,scriptId:(null==t?void 0:t.id)||0,storageName:(null==t?void 0:t.metadata.storagename)&&(null==t?void 0:t.metadata.storagename[0])||"",key:r,value:n,createtime:(new Date).getTime(),updatetime:0},e.next=18;break;case 13:if(!(0,k.isEqual)(s.value,n)){e.next=15;break}return e.abrupt("return",Promise.resolve(!0));case 15:o=s.value,s.value=n,s.updatetime=(new Date).getTime();case 18:if(i=0,c=w.Z.getInstance().get(b.Z.scriptValue(t.id,t.metadata.storagename)),null!=n){e.next=28;break}return s.value=void 0,e.next=24,this.valueDAO.delete(s.id);case 24:i=e.sent,c&&delete c[r],e.next=32;break;case 28:return e.next=30,this.valueDAO.save(s);case 30:i=e.sent,c&&(c[r]=s);case 32:if(!(i<=0)){e.next=34;break}return e.abrupt("return",Promise.reject(new Error("value no change")));case 34:return u={oldValue:o,sender:a,value:s},this.broadcast.broadcast({tag:"all"},"valueUpdate",u),l.hook.trigger("upsert",s),e.abrupt("return",Promise.resolve(!0));case 38:case"end":return e.stop()}}),e,this)}))),function(e,r,n,a){return t.apply(this,arguments)})}]),l}(M.Z),(0,d.Z)(a,"hook",new Z.Z),n=a))||n},45349:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(60147),a=r(51120).Z.create({baseURL:"".concat(n.P4,"api/v1"),validateStatus:function(e){return e<500}})},25459:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(15671),a=r(43144),s=function(){function e(t,r){(0,n.Z)(this,e),this.prefix="".concat(t,"_"),this.storage=r?chrome.storage.sync:chrome.storage.local}return(0,a.Z)(e,[{key:"buildKey",value:function(e){return this.prefix+e}},{key:"get",value:function(e){var t=this;return new Promise((function(r){e=t.buildKey(e),t.storage.get(e,(function(t){r(t[e])}))}))}},{key:"set",value:function(e,t){var r=this;return new Promise((function(n){var a={};a[r.buildKey(e)]=t,r.storage.set(a,(function(){return n()}))}))}},{key:"remove",value:function(e){var t=this;return new Promise((function(r){t.storage.remove(t.buildKey(e),(function(){return r()}))}))}},{key:"removeAll",value:function(){var e=this;return new Promise((function(t){e.storage.clear((function(){return t()}))}))}},{key:"keys",value:function(){var e=this;return new Promise((function(t){var r={},n=e.buildKey("");e.storage.get((function(e){Object.keys(e).forEach((function(t){t.startsWith(n)&&(r[t.substring(n.length)]=e[t])})),t(r)}))}))}}]),e}()},10802:(e,t,r)=>{"use strict";r.d(t,{T:()=>k});var n,a,s=r(15861),o=r(15671),i=r(43144),c=r(4942),u=r(64687),l=r.n(u),p=r(41258),d=r(85706),f=r(57805),h=r(41643),m=r(3067),v=r(44624),g=r(25459),y=r(3775),b="systemConfigChange",k=p.Z.Singleton(h.Ez)((a=function(){function e(t){(0,o.Z)(this,e),(0,c.Z)(this,"cache",new Map),(0,c.Z)(this,"storage",new g.Z("system",!0)),t instanceof d.Z&&(this.message=t),t instanceof f.Z&&(this.internal=t),this.syncConfig()}var t,r;return(0,i.Z)(e,[{key:"syncConfig",value:(r=(0,s.Z)(l().mark((function e(){var t,r=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storage.keys();case 2:t=e.sent,Object.keys(t).forEach((function(e){r.cache.has(e)||r.cache.set(e,t[e])}));case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"init",value:(t=(0,s.Z)(l().mark((function t(){var r,n=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(r=this.message)||void 0===r||r.setHandler(b,(function(t,r){n.storage.set(r.key,r.val),n.cache.set(r.key,r.val),e.hook.trigger("update",r.key,r.val)}));case 1:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"set",value:function(e,t){this.cache.set(e,t),this.internal?this.internal.send(b,{key:e,val:t}):this.storage.set(e,t)}},{key:"list",value:function(){var e={};return this.cache.forEach((function(t,r){e[r]=t})),e}},{key:"changetime",get:function(){return this.cache.get("changetime")||0},set:function(e){this.set("changetime",0)}},{key:"checkScriptUpdateCycle",get:function(){return void 0===this.cache.get("check_script_update_cycle")?86400:this.cache.get("check_script_update_cycle")},set:function(e){this.set("check_script_update_cycle",e)}},{key:"silenceUpdateScript",get:function(){return this.cache.get("silence_update_script")||!1},set:function(e){this.set("silence_update_script",e)}},{key:"enableAutoSync",get:function(){return!this.cache.has("enable_auto_sync")||this.cache.get("enable_auto_sync")},set:function(e){this.set("enable_auto_sync",e)}},{key:"updateDisableScript",get:function(){var e=this.cache.get("update_disable_script");return void 0===e||e},set:function(e){this.set("update_disable_script",e)}},{key:"vscodeUrl",get:function(){return this.cache.get("vscode_url")||"ws://localhost:8642"},set:function(e){this.set("vscode_url",e)}},{key:"vscodeReconnect",get:function(){return this.cache.get("vscode_reconnect")||!1},set:function(e){this.set("vscode_reconnect",e)}},{key:"backup",get:function(){return this.cache.get("backup")||{filesystem:"webdav",params:{}}},set:function(e){this.set("backup",e)}},{key:"cloudSync",get:function(){return this.cache.get("cloud_sync")||{enable:!1,syncDelete:!0,filesystem:"webdav",params:{}}},set:function(e){this.set("cloud_sync",e)}},{key:"scriptCatFlag",get:function(){return this.cache.get("script_cat_flag")},set:function(e){this.set("script_cat_flag",e)}},{key:"enableEslint",get:function(){return this.cache.get("enable_eslint")},set:function(e){this.set("enable_eslint",e)}},{key:"eslintConfig",get:function(){return this.cache.get("eslint_config")||y.u_},set:function(e){if(""===e)return this.set("eslint_config",e),void m.Z.success("ESLint规则已重置");try{JSON.parse(e),this.set("eslint_config",e),m.Z.success("ESLint规则已保存")}catch(e){m.Z.error(e.toString())}}},{key:"logCleanCycle",get:function(){return this.cache.get("log_clean_cycle")||7},set:function(e){this.set("log_clean_cycle",e)}}]),e}(),(0,c.Z)(a,"hook",new v.Z),n=a))||n},10010:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(15671),a=r(43144),s=function(){function e(){(0,n.Z)(this,e)}return(0,a.Z)(e,null,[{key:"Trigger",value:function(){return function(e,t,r){r.value()}}},{key:"script",value:function(e){return"script:".concat(e.toString())}},{key:"scriptInfo",value:function(e){return"scriptInfo:".concat(e)}},{key:"resourceByUrl",value:function(e){return"resource:".concat(e)}},{key:"scriptValue",value:function(e,t){return t?"value:storagename:".concat(t[0]):"value:id:".concat(e.toString())}},{key:"permissionConfirm",value:function(e,t){return"permission:".concat(e.toString(),":").concat(t.permissionValue||"",":").concat(t.permission||"")}},{key:"importInfo",value:function(e){return"import:".concat(e)}}]),e}()},28182:(e,t,r)=>{"use strict";function n(e){return"utf8"===a(e)}function a(e,t){var r,n;if(!e)return null;var c="utf8",u="binary",l=null!==(r=null==t?void 0:t.chunkLength)&&void 0!==r?r:24,p=null!==(n=null==t?void 0:t.chunkBegin)&&void 0!==n?n:0;if(null==(null==t?void 0:t.chunkBegin)){var d=a(e,{chunkLength:l,chunkBegin:p});return d===c&&(d=a(e,{chunkLength:l,chunkBegin:p=Math.max(0,Math.floor(e.length/2)-l)}))===c&&(d=a(e,{chunkLength:l,chunkBegin:p=Math.max(0,e.length-l)})),d}if(-1===(p=function(e,t){if(0===t)return 0;if(r=e[t],r>>6!=2)return t;var r;var n=t-3;if(n>=0&&s(e[n]))return n;if(n=t-2,n>=0&&(s(e[n])||o(e[n])))return n;if(n=t-1,n>=0&&(s(e[n])||o(e[n])||i(e[n])))return n;return-1}(e,p)))return u;var f=function(e,t){if(t===e.length)return t;var r=t-3;if(r>=0&&s(e[r]))return t+1;if(r=t-2,r>=0){if(s(e[r]))return t+2;if(o(e[r]))return t+1}if(r=t-1,r>=0){if(s(e[r]))return t+3;if(o(e[r]))return t+2;if(i(e[r]))return t+1}return t}(e,Math.min(e.length,p+l));if(f>e.length)return u;for(var h=e.slice(p,f),m=0;m>3==30}function o(e){return e>>4==14}function i(e){return e>>5==6}r.d(t,{Gs:()=>n})},2887:(e,t,r)=>{"use strict";r.d(t,{Hl:()=>g,yR:()=>v});var n=r(97326),a=r(88301),s=r(60136),o=r(27121),i=r(61120),c=r(71002),u=r(42982),l=r(15671),p=r(43144),d=r(4942),f=r(42070);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,i.Z)(e);if(t){var a=(0,i.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,o.Z)(this,r)}}var m=function(){function e(){(0,l.Z)(this,e),(0,d.Z)(this,"cache",new Map),(0,d.Z)(this,"rule",new Map)}return(0,p.Z)(e,[{key:"parseURL",value:function(e){0===e.indexOf("*http")&&(e=e.substring(1));var t=/^(.+?):\/\/(.*?)((\/.*?)(\?.*?|)|)$/.exec(e);return t?{scheme:t[1],host:t[2],path:t[4]||("*"===e[e.length-1]?"*":"/"),search:t[5]}:"*"===e?{scheme:"*",host:"*",path:"*",search:"*"}:void 0}},{key:"compileRe",value:function(e){var t=this.parseURL(e);if(!t)return"";switch(t.scheme){case"*":t.scheme=".+?";break;case"http*":t.scheme="http[s]?"}var r=t.host.indexOf("*");if("*"===t.host||"**"===t.host)r=-1;else if(t.host.endsWith("*"))t.host=t.host.substring(0,t.host.length-1);else if(-1!==r&&0!==r)return"";if(t.host=t.host.replace(/\*/g,"[^/]*?"),t.host.startsWith("[^/]*?."))t.host="([^/]*?\\.?)".concat(t.host.substring(7));else if(-1!==r&&-1===t.host.indexOf("."))return"";t.host.endsWith("tld")&&(t.host="".concat(t.host.substr(0,t.host.length-3),".*?"));var n=t.host.indexOf(":");t.host="".concat(-1===n?t.host:t.host.substring(0,n),"(:\\d+)?");var a="^".concat(t.scheme,"://").concat(t.host);return"/"===t.path?a+="[/]?":a+=t.path.replace(/\*/g,".*?"),t.search&&(a+=t.search.replace(/([\\?])/g,"\\$1").replace(/\*/g,".*?")),"".concat(a.replace(/\//g,"/"),"$")}},{key:"add",value:function(e,t){var r=this.compileRe(e);if(!r)throw new Error("invalid url: ".concat(e));var n=this.rule.get(r);n||(n=[],this.rule.set(r,n)),n.push(t),this.delCache()}},{key:"match",value:function(e){var t=this.cache.get(e);if(t)return t;t=[];try{this.rule.forEach((function(r,n){var a;new RegExp(n).test(e)&&t&&(a=t).push.apply(a,(0,u.Z)(r))}))}catch(e){console.warn("bad match rule",f.Z.E(e))}return this.cache.set(e,t),t}},{key:"del",value:function(t){var r=this,n=e.getId(t);this.rule.forEach((function(t,a){var s=[];t.forEach((function(t){e.getId(t)!==n&&s.push(t)})),s?r.rule.set(a,s):r.rule.delete(a)})),this.delCache()}},{key:"delCache",value:function(){this.cache.clear()}}],[{key:"getId",value:function(e){return"object"===(0,c.Z)(e)?e.id:e}}]),e}(),v=function(e){(0,s.Z)(r,e);var t=h(r);function r(){var e;(0,l.Z)(this,r);for(var a=arguments.length,s=new Array(a),o=0;o{"use strict";r.d(t,{Z:()=>o});var n=r(15671),a=r(43144),s=r(4942),o=function(){function e(){(0,n.Z)(this,e),(0,s.Z)(this,"list",[])}return(0,a.Z)(e,[{key:"push",value:function(e){this.resolve?(this.resolve(e),this.resolve=void 0):this.list.push(e)}},{key:"pop",value:function(){var e=this;return new Promise((function(t){e.list.length>0?t(e.list.shift()):e.resolve=t}))}}]),e}()},77337:(e,t,r)=>{"use strict";r.d(t,{Jr:()=>y,c0:()=>p,i3:()=>h,w8:()=>g,zg:()=>b});var n=r(70885),a=r(15861),s=r(64687),o=r.n(s),i=r(43528),c=r(79275),u=r(16956),l=(r(14511),r(42070),r(29376),r(51870));function p(e){var t=e.indexOf("==UserScript=="),r=e.indexOf("==/UserScript==");return-1===t||-1===r?null:"// ".concat(e.substring(t,r+14))}function d(e){var t=!1,r=/\/\/\s*==UserScript==([\s\S]+?)\/\/\s*==\/UserScript==/m,n=r.exec(e);if(!n){if(!(n=(r=/\/\/\s*==UserSubscribe==([\s\S]+?)\/\/\s*==\/UserSubscribe==/m).exec(e)))return null;t=!0}for(var a={},s=(r=/\/\/\s*@([\S]+)((.+?)$|$)/gm).exec(n[1]);null!==s;){var o=[s[1].toLowerCase().trim(),s[2].trim()],i=o[0],c=o[1],u=a[i];null==u&&(u=[]),u.push(c),a[i]=u,s=r.exec(n[1])}return void 0===a.name?null:(a.namespace||(a.namespace=[""]),t&&(a.usersubscribe=[]),a)}function f(e){var t=/\/\*\s*==UserConfig==([\s\S]+?)\s*==\/UserConfig==\s*\*\//m.exec(e);if(t){var r=t[1].trim().split(/[-]{3,}/),n={};return r.forEach((function(e){var t=u.ZP.parse(e);Object.keys(t).forEach((function(e){n[e]=t[e]}))})),n}}function h(e,t,r,n){return m.apply(this,arguments)}function m(){return(m=(0,a.Z)(o().mark((function e(t,r,n,a){var s,i,c,u,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{headers:{"Cache-Control":"no-cache"}});case 2:if(200===(i=e.sent).status){e.next=5;break}throw new Error("fetch script info failed");case 5:if(-1===(null===(s=i.headers.get("content-type"))||void 0===s?void 0:s.indexOf("text/html"))){e.next=7;break}throw new Error("url is html");case 7:return e.next=9,i.text();case 9:if(c=e.sent,u=d(c)){e.next=13;break}throw new Error("parse script info failed");case 13:return l={url:t,code:c,uuid:a,isSubscribe:!1,isUpdate:n,metadata:u,source:r},u.usersubscribe&&(l.isSubscribe=!0),e.abrupt("return",l);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function v(e,t){var r=e;return r.id=t.id,r.uuid=t.uuid,r.createtime=t.createtime,r.lastruntime=t.lastruntime,r.error=t.error,r.sort=t.sort,r.selfMetadata||(r.selfMetadata=t.selfMetadata||{}),r.subscribeUrl=t.subscribeUrl,r.status=t.status,r}function g(e){return new Promise((function(t){var r=new FileReader;r.onloadend=function(){return t(r.result)},r.readAsDataURL(e)}))}function y(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],r=atob(e.split(",")[1]),n=new ArrayBuffer(r.length),a=new Uint8Array(n),s=0;s{"use strict";r.d(t,{Z:()=>W});var n,a,s,o,i,c,u,l,p,d,f,h,m,v,g,y,b,k,w,M,x=r(70885),Z=r(15861),O=r(15671),I=r(43144),D=r(4942),A=r(53229),j=r(64687),P=r.n(j),T=r(23435),C=r(29376),_=r(42070),R=r(79275),E=r(7985),S=r(10010),L=r(43528),G=r(77337),N=r(51870),z=r(44624),U=r(41258),B=r(10802),H=r(43529),V=r(42378),q=r(81427),Q=r(3498),W=(n=q.Z.API(),a=q.Z.API({confirm:function(e){var t=e.params[0],r=new URL(t.url);if(e.script.metadata.connect)for(var n=e.script.metadata.connect,a=0;a{"use strict";r.d(t,{Z:()=>v});var n=r(15861),a=r(15671),s=r(43144),o=r(4942),i=r(64687),c=r.n(i),u=r(23435),l=r(31274),p=r(10010),d=r(43528),f=r(48502),h=r(41258),m=r(41643),v=function(){function e(){var t=this;(0,a.Z)(this,e),(0,o.Z)(this,"confirmQueue",new f.Z),(0,o.Z)(this,"confirmMap",new Map),this.permissionDAO=new l.y;var r=h.Z.instance(m.Ez);r.setHandler("permissionConfirm",(function(e,r){var n=t.confirmMap.get(r.uuid);return n?(t.confirmMap.delete(r.uuid),n.resolve(r.userConfirm),Promise.resolve(!0)):0===r.userConfirm.type?Promise.resolve(void 0):Promise.reject(new Error("confirm not found"))})),r.setHandler("getConfirm",(function(e,r){var n=t.confirmMap.get(r);if(!n)return Promise.reject(new Error("uuid not found"));var a=0;return n.confirm.wildcard&&t.confirmQueue.list.forEach((function(e){var t=e.confirm;t.wildcard&&e.request.scriptId===n.script.id&&t.permission===n.confirm.permission&&(a+=1)})),Promise.resolve({script:n.script,confirm:n.confirm,likeNum:a})})),r.setHandler("deletePermission",function(){var e=(0,n.Z)(c().mark((function e(r,n){var a,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=p.Z.permissionConfirm(n.scriptId,n.confirm),e.next=3,u.Z.getInstance().del(a);case 3:return e.next=5,t.permissionDAO.findOne({scriptId:n.scriptId,permission:n.confirm.permission,permissionValue:n.confirm.permissionValue||""});case 5:if(s=e.sent){e.next=8;break}return e.abrupt("return",Promise.resolve(!0));case 8:return e.next=10,t.permissionDAO.delete(s.id);case 10:return e.abrupt("return",Promise.resolve(!0));case 11:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this.dealConfirmQueue()}var t,r,i,v;return(0,s.Z)(e,[{key:"verify",value:function(e,t){if(t.param.default)return Promise.resolve(!0);var r=e.script.metadata.grant;if(!r)return Promise.reject(new Error("grant is undefined"));for(var n=0;n=2&&u.Z.getInstance().set(a,i),!(o.type>=4)){e.next=34;break}return e.next=26,this.permissionDAO.findOne({scriptId:t.scriptId,permission:i.permission,permissionValue:i.permissionValue});case 26:if(l=e.sent){e.next=32;break}return e.next=30,this.permissionDAO.save(i);case 30:e.next=34;break;case 32:return e.next=34,this.permissionDAO.update(l.id,i);case 34:if(!o.allow){e.next=36;break}return e.abrupt("return",Promise.resolve(!0));case 36:return e.abrupt("return",Promise.reject(new Error("permission not allowed")));case 37:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"confirmWindow",value:(t=(0,n.Z)(c().mark((function e(t,r){var n=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){var s=(0,d.Z)(),o=setTimeout((function(){n.confirmMap.delete(s),a(new Error("permission confirm timeout"))}),4e4);n.confirmMap.set(s,{confirm:r,script:t,resolve:function(t){clearTimeout(o),e(t)},reject:a}),chrome.tabs.create({url:chrome.runtime.getURL("src/confirm.html?uuid=".concat(s))})})));case 1:case"end":return e.stop()}}),e)}))),function(e,r){return t.apply(this,arguments)})}],[{key:"API",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r,n,a){var s=n;t.listener&&t.listener(),e.apis.set(s,{api:a.value,param:t}),t.alias&&t.alias.forEach((function(r){e.apis.set(r,{api:a.value,param:t})}));var o=s.replace("_",".");o!==s&&e.apis.set(o,{api:a.value,param:t})}}}]),e}();(0,o.Z)(v,"apis",new Map),(0,o.Z)(v,"textarea",document.createElement("textarea"))},3498:(e,t,r)=>{"use strict";r.d(t,{Og:()=>I,VI:()=>x,Xy:()=>y,bO:()=>b,hL:()=>k,q7:()=>Z,tc:()=>w});var n=r(15861),a=r(4942),s=r(64687),o=r.n(s),i=r(29376),c=r(42070),u=r(79275),l=r(51870),p=r(85706),d=r(41258),f=r(73471);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var m={"user-agent":!0,"proxy-":!0,"sec-":!0,cookie:!0,"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,date:!0,dnt:!0,expect:!0,"feature-policy":!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,via:!0},v={"set-cookie":!0};function g(e){return!!(e.initiator&&chrome.runtime.getURL("").startsWith(e.initiator)||e.originUrl&&e.originUrl.startsWith(chrome.runtime.getURL("")))}function y(e){var t=["blocking","requestHeaders"],r=["blocking","responseHeaders"];(0,l.vU)()||(t.push("extraHeaders"),r.push("extraHeaders"));var n=new Map;chrome.webRequest.onBeforeSendHeaders.addListener((function(t){var r;if(!g(t))return{};var a="",s="",o=!1,i=!1,c=[],u={};return null===(r=t.requestHeaders)||void 0===r||r.forEach((function(r){var l=r.name.toLowerCase();if(l.startsWith("".concat(e,"-"))){var p=l.substring(e.length+1);switch(p){case"cookie":s=r.value||"";break;case"max-redirects":n.set(t.requestId,[0,parseInt(r.value||"",10)]);break;case"anonymous":o=!0;break;case"gm-xhr":i=!0;break;default:u[p]=r.value||null}}else if("cookie"===l)a=r.value||"";else m[l]||l.startsWith("sec-")||l.startsWith("proxy-")?null!==u[l]&&(u[l]=u[l]||r.value||""):c.push(r)})),i?(o&&(a=""),s&&(!a||a.endsWith(";")?a+=s:a+=";".concat(s)),a&&c.push({name:"Cookie",value:a}),Object.keys(u).forEach((function(e){null!==u[e]&&c.push({name:e,value:u[e]})})),{requestHeaders:c}):{}}),{urls:[""]},t),chrome.webRequest.onHeadersReceived.addListener((function(t){var r,s;if(!g(t)){if("main_frame"!==t.type&&"sub_frame"!==t.type||!(0,l.vU)())return{};if(d.Z.instance(f.Z).matchUrl(t.url,(function(e){return"sub_frame"===t.type&&!!e.metadata.noframes||e.status!==u.Kv})).length>0&&t.responseHeaders){for(var o=0;oc[1]&&(r.name="".concat(e,"-").concat(r.name)))}})),null===(s=t.responseHeaders)||void 0===s||s.push.apply(s,i),{responseHeaders:t.responseHeaders}}),{urls:[""]},r),chrome.webRequest.onCompleted.addListener((function(e){g(e)&&n.delete(e.requestId)}),{urls:[""]})}function b(e,t,r){r.setRequestHeader("".concat(e,"-gm-xhr"),"true"),t.headers&&Object.keys(t.headers).forEach((function(n){var a=n.toLowerCase();if(m[a]||a.startsWith("sec-")||a.startsWith("proxy-"))try{r.setRequestHeader("".concat(e,"-").concat(a),t.headers[n])}catch(e){i.Z.getLogger(c.Z.E(e)).error("GM XHR setRequestHeader error")}else r.setRequestHeader(n,t.headers[n])})),void 0!==t.maxRedirects&&r.setRequestHeader("".concat(e,"-max-redirects"),t.maxRedirects.toString()),t.cookie&&r.setRequestHeader("".concat(e,"-cookie"),t.cookie),t.anonymous&&r.setRequestHeader("".concat(e,"-anonymous"),"true")}function k(e,t){var r={};return r["".concat(e,"-gm-xhr")]="true",t.headers&&Object.keys(t.headers).forEach((function(n){var a=n.toLowerCase();m[a]||a.startsWith("sec-")||a.startsWith("proxy-")?r["".concat(e,"-").concat(a)]=t.headers[n]:r[n]=t.headers[n]})),void 0!==t.maxRedirects&&(r["".concat(e,"-max-redirects")]=t.maxRedirects.toString()),t.cookie&&(r["".concat(e,"-cookie")]=t.cookie),t.anonymous&&(r["".concat(e,"-anonymous")]="true"),r}function w(e,t,r){return M.apply(this,arguments)}function M(){return(M=(0,n.Z)(o().mark((function e(t,r,n){var a,s,u,l,p,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=new RegExp("".concat(t,"-"),"g"),s={finalUrl:n.responseURL||r.url,readyState:n.readyState,status:n.status,statusText:n.statusText,responseHeaders:n.getAllResponseHeaders().replace(a,""),responseType:r.responseType},4!==n.readyState){e.next=19;break}if("arraybuffer"!==(null===(u=r.responseType)||void 0===u?void 0:u.toLowerCase())&&"blob"!==(null===(l=r.responseType)||void 0===l?void 0:l.toLowerCase())){e.next=18;break}if(n.response instanceof ArrayBuffer?(p=new Blob([n.response]),s.response=URL.createObjectURL(p)):(p=n.response,s.response=URL.createObjectURL(p)),e.prev=5,-1===(null===(d=n.getResponseHeader("Content-Type"))||void 0===d?void 0:d.indexOf("text"))){e.next=10;break}return e.next=9,p.text();case 9:s.responseText=e.sent;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),i.Z.getLogger(c.Z.E(e.t0)).error("GM XHR getResponseHeader error");case 15:setTimeout((function(){URL.revokeObjectURL(s.response)}),6e4),e.next=19;break;case 18:if("json"===r.responseType){try{s.response=JSON.parse(n.responseText)}catch(e){i.Z.getLogger(c.Z.E(e)).error("GM XHR JSON parse error")}try{s.responseText=n.responseText}catch(e){i.Z.getLogger(c.Z.E(e)).error("GM XHR getResponseText error")}}else{try{s.response=n.response}catch(e){i.Z.getLogger(c.Z.E(e)).error("GM XHR response error")}try{s.responseText=n.responseText}catch(e){i.Z.getLogger(c.Z.E(e)).error("GM XHR getResponseText error")}}case 19:return e.abrupt("return",Promise.resolve(s));case 20:case"end":return e.stop()}}),e,null,[[5,12]])})))).apply(this,arguments)}function x(e,t,r,n){var a=new RegExp("".concat(e,"-"),"g"),s="";return r.headers&&r.headers.forEach((function(e,t){s+="".concat(t.replace(a,""),": ").concat(e,"\n")})),{finalUrl:r.url||t.url,readyState:n,status:r.status,statusText:r.statusText,responseHeaders:s,responseType:t.responseType}}function Z(e){return e.metadata.icon&&e.metadata.icon[0]||e.metadata.iconurl&&e.metadata.iconurl[0]||e.metadata.defaulticon&&e.metadata.defaulticon[0]||e.metadata.icon64&&e.metadata.icon64[0]||e.metadata.icon64url&&e.metadata.icon64url[0]}function O(e){e.forEach((function(e,t){chrome.contextMenus.create({id:"scriptMenu_".concat(t),title:e[0].request.script.name,contexts:["all"],parentId:"scriptMenu"}),e.forEach((function(e){chrome.contextMenus.create({id:"scriptMenu_menu_".concat(t,"_").concat(e.request.params[0]),title:e.request.params[1],contexts:["all"],parentId:"scriptMenu_".concat(t),onclick:function(){d.Z.instance(p.Z).sendNative({tag:e.request.sender.targetTag,id:[e.request.sender.frameId||e.request.sender.tabId||0]},{stream:e.channel.flag,channel:!0,data:"click"})}})}))}))}function I(e,t){chrome.contextMenus.removeAll();var r=t.get(e),n=t.get("sandbox");(r||n)&&(chrome.contextMenus.create({id:"scriptMenu",title:"ScriptCat",contexts:["all"]}),r&&O(r),"sandbox"!==e&&n&&O(n))}},81198:(e,t,r)=>{"use strict";var n,a,s,o,i,c,u,l,p,d,f,h,m,v,g,y,b,k,w,M,x,Z,O,I,D,A,j,P,T,C,_,R=r(15861),E=r(71002),S=r(53229),L=r(15671),G=r(43144),N=r(4942),z=r(64687),U=r.n(z),B=r(60147),H=r(29376),V=r(77337),q=r(43528);function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(r,n,a){var s=n;t.listener&&t.listener(),e.apis.set(s,{api:a.value,param:t});var o=s.replace("_",".");o!==s&&("GM.xmlhttpRequest"===o&&(o="GM.xmlHttpRequest"),e.apis.set(o,{api:a.value,param:t}))}}}]),e}();(0,N.Z)(Y,"apis",new Map);n=Y.API(),a=Y.API(),s=Y.API({depend:["GM_setValue"]}),o=Y.API(),i=Y.API(),c=Y.API(),u=Y.API(),l=Y.API(),p=Y.API(),d=Y.API({depend:["CAT_fetchBlob","CAT_createBlobUrl","CAT_fetchDocument"]}),f=Y.API(),h=Y.API(),m=Y.API(),v=Y.API(),g=Y.API({depend:["GM_closeInTab"]}),y=Y.API(),b=Y.API(),k=Y.API(),w=Y.API(),M=Y.API(),x=Y.API(),Z=Y.API(),O=Y.API(),I=Y.API(),D=Y.API(),A=Y.API(),j=Y.API(),P=Y.API(),T=Y.API(),C=Y.API({depend:["CAT_fetchBlob","CAT_createBlobUrl"]}),_=function(){function e(){(0,L.Z)(this,e),(0,N.Z)(this,"valueChangeListener",new Map)}var t,r,n,a;return(0,G.Z)(e,[{key:"sendMessage",value:function(e,t){return this.message.syncSend("gmApi",{api:e,scriptId:this.scriptRes.id,params:t,runFlag:this.runFlag})}},{key:"connect",value:function(e,t,r){var n=(0,q.Z)(),a=this.message.channel(n);return a.setHandler(r),a.channel("gmApiChannel",{api:e,scriptId:this.scriptRes.id,params:t,runFlag:this.runFlag}),a}},{key:"valueUpdate",value:function(e){var t=this,r=this.scriptRes.metadata.storagename;(e.value.scriptId===this.scriptRes.id||r&&e.value.storageName&&r[0]===e.value.storageName)&&(void 0===e.value.value?delete this.scriptRes.value[e.value.key]:this.scriptRes.value[e.value.key]=e.value,this.valueChangeListener.forEach((function(r){r.name===e.value.key&&r.listener(e.value.key,e.oldValue,e.value.value,e.sender.runFlag!==t.runFlag,e.sender.tabId)})))}},{key:"GM_getValue",value:function(e,t){var r=this.scriptRes.value[e];return r?r.value:t}},{key:"GM_setValue",value:function(e,t){"object"===(0,E.Z)(t)&&(t=JSON.parse(JSON.stringify(t)));var r=this.scriptRes.value[e];return r?r.value=t:r={id:0,scriptId:this.scriptRes.id,storageName:this.scriptRes.metadata.storagename&&this.scriptRes.metadata.storagename[0]||"",key:e,value:t,createtime:(new Date).getTime(),updatetime:0},void 0===t?delete this.scriptRes.value[e]:this.scriptRes.value[e]=r,this.sendMessage("GM_setValue",[e,t])}},{key:"GM_deleteValue",value:function(e){this.GM_setValue(e,void 0)}},{key:"GM_listValues",value:function(){return Object.keys(this.scriptRes.value)}},{key:"GM_addValueChangeListener",value:function(e,t){var r=1e7*Math.random();return this.valueChangeListener.set(r,{name:e,listener:t}),r}},{key:"GM_removeValueChangeListener",value:function(e){this.valueChangeListener.delete(e)}},{key:"CAT_fetchBlob",value:function(e){return this.message.syncSend("CAT_fetchBlob",e)}},{key:"CAT_fetchDocument",value:function(e){var t=this;return new Promise((function(r){var n;t.message.sendCallback("CAT_fetchDocument",e,(function(e){n=t.message.getAndDelRelatedTarget(e.relatedTarget),r(n)}))}))}},{key:"CAT_createBlobUrl",value:function(e){return this.message.syncSend("CAT_createBlobUrl",e)}},{key:"GM_xmlhttpRequest",value:function(e){var t,r=this,n=new URL(e.url,window.location.href);e.headers&&Object.keys(e.headers).forEach((function(t){"cookie"===t.toLowerCase()&&(e.cookie=e.headers[t],delete e.headers[t])}));var a={method:e.method,timeout:e.timeout,url:n.href,headers:e.headers,cookie:e.cookie,context:e.context,responseType:e.responseType,overrideMimeType:e.overrideMimeType,anonymous:e.anonymous,user:e.user,password:e.password,maxRedirects:e.maxRedirects};a.headers||(a.headers={}),e.nocache&&(a.headers["Cache-Control"]="no-cache");var s=function(){var n=(0,R.Z)(U().mark((function n(){var s,o,i,c,u,l,p,d;return U().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.data){n.next=20;break}if(!(e.data instanceof FormData)){n.next=12;break}return a.dataType="FormData",o=[],i={},e.data.forEach((function(e,t){i[t]=!0})),c=Object.keys(i).map((function(t){var r=e.data.getAll(t).map((function(e){return new Promise((function(r){e instanceof File?(0,V.w8)(e).then((function(n){o.push({key:t,type:"file",val:n||"",filename:e.name}),r()})):(o.push({key:t,type:"text",val:e}),r())}))}));return Promise.all(r)})),n.next=9,Promise.all(c);case 9:a.data=o,n.next=20;break;case 12:if(!(e.data instanceof Blob)){n.next=19;break}return a.dataType="Blob",n.next=16,r.CAT_createBlobUrl(e.data);case 16:a.data=n.sent,n.next=20;break;case 19:a.data=e.data;case 20:p=null===(s=e.responseType)||void 0===s?void 0:s.toLocaleLowerCase(),d=function(e){return"stream"===p&&(u=new ReadableStream({start:function(e){l=e}})),function(){var t=(0,R.Z)(U().mark((function t(n){var a;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.response){t.next=19;break}if("document"!==p){t.next=9;break}return t.next=4,r.CAT_fetchDocument(n.response);case 4:n.response=t.sent,n.responseXML=n.response,n.responseType="document",t.next=19;break;case 9:return t.next=11,r.CAT_fetchBlob(n.response);case 11:if(a=t.sent,"arraybuffer"!==p){t.next=18;break}return t.next=15,a.arrayBuffer();case 15:n.response=t.sent,t.next=19;break;case 18:n.response=a;case 19:"stream"===p&&(n.response=u),e(n);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"arraybuffer"!==p&&"blob"!==p&&"document"!==p&&"stream"!==p||(e.onload&&(e.onload=d(e.onload)),e.onreadystatechange&&(e.onreadystatechange=d(e.onreadystatechange)),e.onloadend&&(e.onloadend=d(e.onloadend)),"document"===p&&(a.responseType="blob"),"stream"===p&&e.onloadstart&&(e.onloadstart=d(e.onloadstart))),(t=r.connect("GM_xmlhttpRequest",[a],(function(t){var r,n=t.data||{};switch(t.event){case"onload":e.onload&&e.onload(n);break;case"onloadend":var a;if(e.onloadend&&e.onloadend(n),u)null===(a=l)||void 0===a||a.close();break;case"onloadstart":e.onloadstart&&e.onloadstart(n);break;case"onprogress":e.onprogress&&e.onprogress(n);break;case"onreadystatechange":e.onreadystatechange&&e.onreadystatechange(n);break;case"ontimeout":e.ontimeout&&e.ontimeout();break;case"onerror":e.onerror&&e.onerror("");break;case"onabort":e.onabort&&e.onabort();break;case"onstream":null===(r=l)||void 0===r||r.enqueue(new Uint8Array(t.data));break;default:H.Z.getLogger().warn("GM_xmlhttpRequest resp is error",{resp:t})}}))).setCatch((function(t){e.onerror&&e.onerror(t)}));case 25:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return s(),{abort:function(){t&&t.disChannel()}}}},{key:"GM_notification",value:(a=(0,R.Z)(U().mark((function e(t,r,n,a){var s,o,i,c,u=arguments;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s={},"string"!=typeof t){e.next=12;break}s.text=t,e.t0=u.length,e.next=4===e.t0?6:3===e.t0?7:2===e.t0?8:9;break;case 6:s.onclick=a;case 7:s.image=n;case 8:s.title=r;case 9:return e.abrupt("break",10);case 10:e.next=14;break;case 12:(s=t).ondone=s.ondone||r;case 14:s.onclick&&(o=s.onclick,delete s.onclick),s.ondone&&(i=s.ondone,delete s.ondone),s.oncreate&&(c=s.oncreate,delete s.oncreate),this.connect("GM_notification",[s],(function(e){switch(e.event){case"click":o&&o.apply({id:e.id},[e.id,e.index]);break;case"done":i&&i.apply({id:e.id},[e.user]);break;case"create":c&&c.apply({id:e.id},[e.id]);break;default:H.Z.getLogger().warn("GM_notification resp is error",{resp:e})}}));case 18:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return a.apply(this,arguments)})},{key:"GM_closeNotification",value:function(e){this.sendMessage("GM_closeNotification",[e])}},{key:"GM_updateNotification",value:function(e,t){this.sendMessage("GM_updateNotification",[e,t])}},{key:"GM_log",value:function(e,t,r){return this.sendMessage("GM_log",[e,t,r])}},{key:"GM_openInTab",value:function(e,t){var r,n=this,a={};1===arguments.length?a.active=!0:"boolean"==typeof t?a.active=t:a=t;var s={close:function(){n.GM_closeInTab(r)}},o=this.connect("GM_openInTab",[e,a],(function(e){switch(e.event){case"oncreate":r=e.tabId;break;case"onclose":s.onclose&&s.onclose(),s.closed=!0,o.disChannel()}}));return s}},{key:"GM_closeInTab",value:function(e){return this.sendMessage("GM_closeInTab",[e])}},{key:"GM_getResourceText",value:function(e){if(this.scriptRes.resource){var t=this.scriptRes.resource[e];return t?t.content:void 0}}},{key:"GM_getResourceURL",value:function(e,t){if(this.scriptRes.resource){var r=this.scriptRes.resource[e];return r?t?URL.createObjectURL((0,V.Jr)(r.base64)):r.base64:void 0}}},{key:"GM_addStyle",value:function(e){var t,r=this;return this.message.sendCallback("GM_addElement",{param:["style",{textContent:e}]},(function(e){t=r.message.getAndDelRelatedTarget(e.relatedTarget)})),t}},{key:"GM_getTab",value:(n=(0,R.Z)(U().mark((function e(t){var r;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendMessage("GM_getTab",[]);case 2:r=e.sent,t(r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"GM_saveTab",value:function(e){return"object"===(0,E.Z)(e)&&(e=JSON.parse(JSON.stringify(e))),this.sendMessage("GM_saveTab",[e])}},{key:"GM_getTabs",value:(r=(0,R.Z)(U().mark((function e(t){var r;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendMessage("GM_getTabs",[]);case 2:r=e.sent,t(r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"GM_download",value:function(e,t){var r;r="string"==typeof e?{name:t||"",url:e}:e;var n=this.connect("GM_download",[{method:r.method,url:r.url,name:r.name,headers:r.headers,saveAs:r.saveAs,timeout:r.timeout,cookie:r.cookie,anonymous:r.anonymous}],(function(e){var t=e.data||{};switch(e.event){case"onload":r.onload&&r.onload(t);break;case"onprogress":r.onprogress&&r.onprogress(t);break;case"ontimeout":r.ontimeout&&r.ontimeout();break;case"onerror":r.onerror&&r.onerror({error:"unknown"});break;default:H.Z.getLogger().warn("GM_download resp is error",{resp:e})}}));return{abort:function(){n.disChannel()}}}},{key:"GM_setClipboard",value:function(e,t){return this.sendMessage("GM_setClipboard",[e,t])}},{key:"GM_cookie",value:function(e,t,r){this.sendMessage("GM_cookie",[e,t]).then((function(e){r&&r(e,void 0)})).catch((function(e){r&&r(void 0,e)}))}},{key:"GM_registerMenuCommand",value:function(e,t,r){this.menuMap||(this.menuMap=new Map);var n=0;if(this.menuMap.forEach((function(t,r){t===e&&(n=r)})),n)return n;this.menuId?this.menuId+=1:this.menuId=1;var a=this.menuId;return this.connect("GM_registerMenuCommand",[a,e,r],(function(){t()})),this.menuMap.set(a,e),a}},{key:"GM_unregisterMenuCommand",value:function(e){this.menuMap||(this.menuMap=new Map),this.menuMap.delete(e),this.sendMessage("GM_unregisterMenuCommand",[e])}},{key:"CAT_userConfig",value:function(){return this.sendMessage("CAT_userConfig",[])}},{key:"GM_addElement",value:function(e,t,r){var n,a=this;return this.message.sendCallback("GM_addElement",{param:["string"==typeof e?e:t,"string"==typeof e?t:r],relatedTarget:"string"==typeof e?null:e},(function(e){n=a.message.getAndDelRelatedTarget(e.relatedTarget)})),n}},{key:"CAT_fileStorage",value:(t=(0,R.Z)(U().mark((function e(t,r){var n,a,s,o=this;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={path:r.path||"",filename:r.filename,file:r.file},"upload"!==t){e.next=6;break}return e.next=4,this.CAT_createBlobUrl(r.data);case 4:a=e.sent,n.data=a;case 6:s=this.connect("CAT_fileStorage",[t,n],function(){var e=(0,R.Z)(U().mark((function e(n){var a;return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("download"!==t){e.next=7;break}return e.next=3,o.CAT_fetchBlob(n.data);case 3:a=e.sent,r.onload&&r.onload(a),e.next=8;break;case 7:r.onload&&r.onload(n.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),s.setCatch((function(e){void 0!==e.code?r.onerror&&r.onerror(e):r.onerror&&r.onerror({code:-1,message:e.message})}));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}],[{key:"GM_info",value:function(e){var t=(0,V.c0)(e.sourceCode),r={description:e.metadata.description&&e.metadata.description[0]||null,matches:e.metadata.match||[],includes:e.metadata.include||[],"run-at":e.metadata["run-at"]&&e.metadata["run-at"][0]||"document-idle",icon:e.metadata.icon&&e.metadata.icon[0]||null,icon64:e.metadata.icon64&&e.metadata.icon64[0]||null,header:t,grant:e.metadata.grant||[]};return{scriptWillUpdate:!0,scriptHandler:"ScriptCat",scriptUpdateURL:e.downloadUrl,scriptMetaStr:t,version:B.mr,script:W({name:e.name,namespace:e.namespace,version:e.metadata.version&&e.metadata.version[0],author:e.author},r)}}}]),e}(),(0,S.Z)(_.prototype,"GM_getValue",[n],Object.getOwnPropertyDescriptor(_.prototype,"GM_getValue"),_.prototype),(0,S.Z)(_.prototype,"GM_setValue",[a],Object.getOwnPropertyDescriptor(_.prototype,"GM_setValue"),_.prototype),(0,S.Z)(_.prototype,"GM_deleteValue",[s],Object.getOwnPropertyDescriptor(_.prototype,"GM_deleteValue"),_.prototype),(0,S.Z)(_.prototype,"GM_listValues",[o],Object.getOwnPropertyDescriptor(_.prototype,"GM_listValues"),_.prototype),(0,S.Z)(_.prototype,"GM_addValueChangeListener",[i],Object.getOwnPropertyDescriptor(_.prototype,"GM_addValueChangeListener"),_.prototype),(0,S.Z)(_.prototype,"GM_removeValueChangeListener",[c],Object.getOwnPropertyDescriptor(_.prototype,"GM_removeValueChangeListener"),_.prototype),(0,S.Z)(_.prototype,"CAT_fetchBlob",[u],Object.getOwnPropertyDescriptor(_.prototype,"CAT_fetchBlob"),_.prototype),(0,S.Z)(_.prototype,"CAT_fetchDocument",[l],Object.getOwnPropertyDescriptor(_.prototype,"CAT_fetchDocument"),_.prototype),(0,S.Z)(_.prototype,"CAT_createBlobUrl",[p],Object.getOwnPropertyDescriptor(_.prototype,"CAT_createBlobUrl"),_.prototype),(0,S.Z)(_.prototype,"GM_xmlhttpRequest",[d],Object.getOwnPropertyDescriptor(_.prototype,"GM_xmlhttpRequest"),_.prototype),(0,S.Z)(_.prototype,"GM_notification",[f],Object.getOwnPropertyDescriptor(_.prototype,"GM_notification"),_.prototype),(0,S.Z)(_.prototype,"GM_closeNotification",[h],Object.getOwnPropertyDescriptor(_.prototype,"GM_closeNotification"),_.prototype),(0,S.Z)(_.prototype,"GM_updateNotification",[m],Object.getOwnPropertyDescriptor(_.prototype,"GM_updateNotification"),_.prototype),(0,S.Z)(_.prototype,"GM_log",[v],Object.getOwnPropertyDescriptor(_.prototype,"GM_log"),_.prototype),(0,S.Z)(_.prototype,"GM_openInTab",[g],Object.getOwnPropertyDescriptor(_.prototype,"GM_openInTab"),_.prototype),(0,S.Z)(_.prototype,"GM_closeInTab",[y],Object.getOwnPropertyDescriptor(_.prototype,"GM_closeInTab"),_.prototype),(0,S.Z)(_.prototype,"GM_getResourceText",[b],Object.getOwnPropertyDescriptor(_.prototype,"GM_getResourceText"),_.prototype),(0,S.Z)(_.prototype,"GM_getResourceURL",[k],Object.getOwnPropertyDescriptor(_.prototype,"GM_getResourceURL"),_.prototype),(0,S.Z)(_.prototype,"GM_addStyle",[w],Object.getOwnPropertyDescriptor(_.prototype,"GM_addStyle"),_.prototype),(0,S.Z)(_.prototype,"GM_getTab",[M],Object.getOwnPropertyDescriptor(_.prototype,"GM_getTab"),_.prototype),(0,S.Z)(_.prototype,"GM_saveTab",[x],Object.getOwnPropertyDescriptor(_.prototype,"GM_saveTab"),_.prototype),(0,S.Z)(_.prototype,"GM_getTabs",[Z],Object.getOwnPropertyDescriptor(_.prototype,"GM_getTabs"),_.prototype),(0,S.Z)(_.prototype,"GM_download",[O],Object.getOwnPropertyDescriptor(_.prototype,"GM_download"),_.prototype),(0,S.Z)(_.prototype,"GM_setClipboard",[I],Object.getOwnPropertyDescriptor(_.prototype,"GM_setClipboard"),_.prototype),(0,S.Z)(_.prototype,"GM_cookie",[D],Object.getOwnPropertyDescriptor(_.prototype,"GM_cookie"),_.prototype),(0,S.Z)(_.prototype,"GM_registerMenuCommand",[A],Object.getOwnPropertyDescriptor(_.prototype,"GM_registerMenuCommand"),_.prototype),(0,S.Z)(_.prototype,"GM_unregisterMenuCommand",[j],Object.getOwnPropertyDescriptor(_.prototype,"GM_unregisterMenuCommand"),_.prototype),(0,S.Z)(_.prototype,"CAT_userConfig",[P],Object.getOwnPropertyDescriptor(_.prototype,"CAT_userConfig"),_.prototype),(0,S.Z)(_.prototype,"GM_addElement",[T],Object.getOwnPropertyDescriptor(_.prototype,"GM_addElement"),_.prototype),(0,S.Z)(_.prototype,"CAT_fileStorage",[C],Object.getOwnPropertyDescriptor(_.prototype,"CAT_fileStorage"),_.prototype)},26770:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var n,a=r(15861),s=r(15671),o=r(43144),i=r(64687),c=r.n(i),u=r(57805),l=r(23435),p=r(10010),d=r(41258),f=r(73471),h=d.Z.Singleton(u.Z)(n=function(){function e(t){(0,s.Z)(this,e),this.internal=t;try{this.runtime=d.Z.instance(f.Z)}catch(e){}}var t;return(0,o.Z)(e,[{key:"dispatchEvent",value:function(e,t){return this.internal.syncSend("runtime-".concat(e),t)}},{key:"debugScript",value:(t=(0,a.Z)(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l.Z.getInstance().del(p.Z.script(t.id)),l.Z.getInstance().del(p.Z.scriptValue(t.id,t.metadata.storagename)),e.abrupt("return",this.runtime.startBackgroundScript(t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"watchRunStatus",value:function(){var e=this.internal.channel();return e.channel("watchRunStatus"),e}},{key:"startScript",value:function(e){return this.dispatchEvent("start",e)}},{key:"stopScript",value:function(e){return this.dispatchEvent("stop",e)}}]),e}())||n},52042:(e,t,r)=>{"use strict";r.d(t,{IT:()=>a,gQ:()=>n});r(96486),r(81198);function n(e){var t=e.code,r="";return e.metadata.require&&e.metadata.require.forEach((function(t){var n=e.resource[t];n&&(r="".concat(r,"\n").concat(n.content))})),"with (context) return (()=>{\n".concat(t=r+t,"\n//# sourceURL=").concat(chrome.runtime.getURL("/".concat(encodeURI(e.name),".user.js")),"\n})()")}function a(e){return"window['".concat(e.flag,"']=function(context,GM_info){\n").concat(e.code,"\n}")}var s={addEventListener:r.g.addEventListener.bind(r.g),removeEventListener:r.g.removeEventListener.bind(r.g),dispatchEvent:r.g.dispatchEvent.bind(r.g)},o=new Map,i=Object.getOwnPropertyDescriptors(r.g);Object.keys(i).forEach((function(e){var t=i[e];t&&t.writable&&!s[e]?"function"==typeof t.value?t.value.prototype?s[e]=t.value:s[e]=t.value.bind(r.g):s[e]=t.value:o.set(e,!0)}))},27595:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(8081),a=r.n(n),s=r(23645),o=r.n(s)()(a());o.push([e.id,'*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}.visible{visibility:visible;}.absolute{position:absolute;}.relative{position:relative;}.bottom-0{bottom:0;}.top-50px{top:50px;}.\\!m-0{margin:0 !important;}.box-border{box-sizing:border-box;}.block{display:block;}.hidden{display:none;}.\\!h-6{height:1.5rem !important;}.h-6{height:1.5rem;}.h-auto{height:auto;}.h-full{height:100%;}.max-w-\\[240px\\]{max-width:240px;}.w-full{width:100%;}.\\!flex,.flex\\!{display:flex !important;}.flex{display:flex;}.flex-1,[flex~="\\31 "]{flex:1 1 0%;}.flex-grow{flex-grow:1;}.\\!flex-row{flex-direction:row !important;}.flex-row{flex-direction:row;}.\\!flex-col{flex-direction:column !important;}.flex-col{flex-direction:column;}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}.items-center{align-items:center;}.justify-end{justify-content:flex-end;}.justify-between{justify-content:space-between;}.gap-10{grid-gap:2.5rem;gap:2.5rem;}.overflow-auto{overflow:auto;}.break-all{word-break:break-all;}.border{border-width:1px;}.\\!p-\\[10px\\]{padding:10px !important;}.p-2{padding:0.5rem;}.p-8px{padding:8px;}.\\!px-4{padding-left:1rem !important;padding-right:1rem !important;}.p-x-4{padding-left:1rem;padding-right:1rem;}.text-center{text-align:center;}.text-left{text-align:left;}.text-end{text-align:end;}.text-\\[12px\\]{font-size:12px;}.text-1{font-size:0.25rem;}.text-2xl{font-size:1.5rem;line-height:2rem;}.text-base{font-size:1rem;line-height:1.5rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.text-xl{font-size:1.25rem;line-height:1.75rem;}.\\!text-size-lg{font-size:1.125rem !important;}.\\!text-size-sm{font-size:0.875rem !important;}.text-size-lg{font-size:1.125rem;}.font-500,.font-medium{font-weight:500;}.color-gray-5{--un-text-opacity:1;color:rgba(107,114,128,var(--un-text-opacity));}[color~="blue"]{--un-text-opacity:1;color:rgba(96,165,250,var(--un-text-opacity));}[color~="cyan"]{--un-text-opacity:1;color:rgba(34,211,238,var(--un-text-opacity));}[color~="green"]{--un-text-opacity:1;color:rgba(74,222,128,var(--un-text-opacity));}[color~="orange"]{--un-text-opacity:1;color:rgba(251,146,60,var(--un-text-opacity));}[color~="purple"]{--un-text-opacity:1;color:rgba(192,132,252,var(--un-text-opacity));}[color~="red"]{--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4;}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}',""]);const i=o},52438:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(8081),a=r.n(n),s=r(23645),o=r.n(s)()(a());o.push([e.id,".arco-dropdown-menu-selected {\n background-color: var(--color-fill-2) !important;\n}\n\n.action-tools .arco-dropdown-popup-visible .arco-icon-down {\n transform: rotate(180deg);\n}\n\n.action-tools > .arco-btn {\n padding: 0 8px;\n}\n",""]);const i=o},43914:(e,t,r)=>{var n={"./align-attributes.js":2672,"./better-use-match.js":82162,"./compat-grant.js":45644,"./compat-headers.js":73285,"./filename-user.js":18039,"./metadata-spacing.js":39877,"./no-invalid-grant.js":20070,"./no-invalid-headers.js":18754,"./no-invalid-metadata.js":91763,"./require-attribute-space-prefix.js":14350,"./require-description.js":70230,"./require-name.js":18295,"./require-version.js":43880,"./use-download-and-update-url.js":52215,"./use-homepage-and-url.js":11933};function a(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=s,e.exports=a,a.id=43914},44471:(e,t,r)=>{"use strict";var n=r(93379),a=r.n(n),s=r(7795),o=r.n(s),i=r(90569),c=r.n(i),u=r(3565),l=r.n(u),p=r(19216),d=r.n(p),f=r(44589),h=r.n(f),m=r(27595),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=c().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=d();a()(m.Z,v),m.Z&&m.Z.locals&&m.Z.locals},44098:(e,t,r)=>{"use strict";var n=r(93379),a=r.n(n),s=r(7795),o=r.n(s),i=r(90569),c=r.n(i),u=r(3565),l=r.n(u),p=r(19216),d=r.n(p),f=r(44589),h=r.n(f),m=r(52438),v={};v.styleTagTransform=h(),v.setAttributes=l(),v.insert=c().bind(null,"head"),v.domAPI=o(),v.insertStyleElement=d();a()(m.Z,v),m.Z&&m.Z.locals&&m.Z.locals},94748:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},6161:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},51096:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},42480:()=>{}}]); \ No newline at end of file diff --git a/Scriptcat/src/background.html b/Scriptcat/src/background.html new file mode 100755 index 0000000..a15d6b6 --- /dev/null +++ b/Scriptcat/src/background.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Scriptcat/src/background.js b/Scriptcat/src/background.js new file mode 100755 index 0000000..ec5b1e9 --- /dev/null +++ b/Scriptcat/src/background.js @@ -0,0 +1 @@ +(()=>{var e,t={23771:(e,t,r)=>{"use strict";var n=r(15671),a=r(43144),s=r(97326),o=r(60136),i=r(27121),c=r(61120),u=r(4942),l=r(92826),p=r(71002);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var d=function(){function e(){(0,n.Z)(this,e),(0,u.Z)(this,"hookMap",{})}return(0,a.Z)(e,[{key:"trigger",value:function(e){if(this.hookMap[e]){for(var t=[],r=arguments.length,n=new Array(r>1?r-1:0),a=1;a-1&&this.hookMap[e].splice(r,1)}}}]),e}(),h=r(42982),m=r(27484),v=r.n(m),g={debug:10,info:100,warn:1e3,error:1e4};function y(){for(var e={},t=arguments.length,r=new Array(t),n=0;n1?r-1:0),s=1;s2?r-2:0),a=2;a=g[this.core.level]&&this.core.writer.write(e,t,y(this.label,n)),this.core.debug){"object"===(0,p.Z)(t)&&(t=JSON.stringify(t));var s="".concat(v()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(e,"] msg=").concat(t," label=").concat(JSON.stringify(y(this.label,n)));switch(e){case"error":console.error(s);break;case"warn":console.warn(s);break;default:console.info(s)}}k.hook.trigger("log",{level:e,message:t,label:n})}},{key:"with",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n1?t-1:0),n=1;n=0}function fe(e,t){chrome.notifications.create({type:"basic",title:e,message:t,iconUrl:chrome.runtime.getURL("assets/logo.png")})}function de(e){switch((0,p.Z)(e)){case"string":return"s".concat(e);case"number":return"n".concat(e.toString());case"boolean":return"b".concat(e?"true":"false");default:try{return"o".concat(JSON.stringify(e))}catch(e){return""}}}function he(e,t,r){try{return ce().lte(e,t)}catch(e){null==r||r.warn("does not conform to the Semantic Versioning specification",b.E(e))}for(var n=e.split("."),a=t.split("."),s=0;sNumber(a[s]))return!1;if(Number(n[s])>6!=2)return t;var r;var n=t-3;if(n>=0&&je(e[n]))return n;if(n=t-2,n>=0&&(je(e[n])||De(e[n])))return n;if(n=t-1,n>=0&&(je(e[n])||De(e[n])||Ee(e[n])))return n;return-1}(e,i)))return s;var u=function(e,t){if(t===e.length)return t;var r=t-3;if(r>=0&&je(e[r]))return t+1;if(r=t-2,r>=0){if(je(e[r]))return t+2;if(De(e[r]))return t+1}if(r=t-1,r>=0){if(je(e[r]))return t+3;if(De(e[r]))return t+2;if(Ee(e[r]))return t+1}return t}(e,Math.min(e.length,i+o));if(u>e.length)return s;for(var l=e.slice(i,u),p=0;p>3==30}function De(e){return e>>4==14}function Ee(e){return e>>5==6}var Te,Ae=function(){function e(t,r){(0,n.Z)(this,e),this.message=t,this.name=r,this.logger=k.getLogger({component:this.name,manager:!0})}return(0,a.Z)(e,[{key:"listenEvent",value:function(e,t){this.message.setHandler("".concat(this.name,"-").concat(e),(function(e,r,n){return new Promise((function(e){e(t(r,n))}))}))}}]),e}();function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t(new Date).getTime()-6e4)){e.next=6;break}return e.abrupt("return",Promise.resolve(a));case 6:return e.prev=6,e.next=9,this.updateResource(r,t,n);case 9:if(!(a=e.sent)){e.next=12;break}return e.abrupt("return",Promise.resolve(a));case 12:e.next=16;break;case 14:e.prev=14,e.t0=e.catch(6);case 16:return e.abrupt("return",Promise.resolve(void 0));case 17:case"end":return e.stop()}}),e,this,[[6,14]])}))),function(e,t,r){return i.apply(this,arguments)})},{key:"updateResource",value:(s=(0,w.Z)(O().mark((function e(t,r,n){var a,s,o,i,c;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.parseUrl(t),e.next=3,this.getResourceModel(a.url);case 3:return s=e.sent,e.prev=4,e.next=7,this.loadByUrl(a.url,n);case 7:if((o=e.sent).updatetime=(new Date).getTime(),W.getInstance().set(Ie.resourceByUrl(a.url),o),s){e.next=19;break}return o.createtime=(new Date).getTime(),e.next=14,this.resourceDAO.save(o);case 14:i=e.sent,s=o,this.logger.info("reload new resource success",{url:a.url,id:i}),e.next=27;break;case 19:return s.base64=o.base64,s.content=o.content,s.contentType=o.contentType,s.hash=o.hash,s.updatetime=o.updatetime,e.next=26,this.resourceDAO.update(s.id,s);case 26:this.logger.info("reload resource success",{url:a.url,id:s.id});case 27:e.next=33;break;case 29:throw e.prev=29,e.t0=e.catch(4),this.logger.error("load resource error",{url:a.url},b.E(e.t0)),e.t0;case 33:return e.next=35,this.resourceLinkDAO.findOne({url:a.url,scriptId:r});case 35:if(!e.sent){e.next=38;break}return e.abrupt("return",Promise.resolve(s));case 38:return e.next=40,this.resourceLinkDAO.save({id:0,url:a.url,scriptId:r,createtime:(new Date).getTime()});case 40:return c=e.sent,this.logger.debug("resource link",{url:a.url,resourceID:s.id,id:c}),e.abrupt("return",Promise.resolve(s));case 43:case"end":return e.stop()}}),e,this,[[4,29]])}))),function(e,t,r){return s.apply(this,arguments)})},{key:"addResource",value:(r=(0,w.Z)(O().mark((function e(t,r,n){var a,s,o,i,c;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.parseUrl(t),e.next=3,this.getResourceModel(a.url);case 3:if(s=e.sent){e.next=23;break}return e.prev=5,e.next=8,this.loadByUrl(a.url,n);case 8:return(o=e.sent).createtime=(new Date).getTime(),o.updatetime=(new Date).getTime(),W.getInstance().set(Ie.resourceByUrl(a.url),o),e.next=14,this.resourceDAO.save(o);case 14:i=e.sent,s=o,this.logger.info("load resource success",{url:a.url,id:i}),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(5),this.logger.error("load resource error",{url:a.url},b.E(e.t0)),e.t0;case 23:return e.next=25,this.resourceLinkDAO.findOne({url:a.url,scriptId:r});case 25:if(!e.sent){e.next=28;break}return e.abrupt("return",Promise.resolve(s));case 28:return e.next=30,this.resourceLinkDAO.save({id:0,url:a.url,scriptId:r,createtime:(new Date).getTime()});case 30:return c=e.sent,this.logger.debug("resource link",{url:a.url,resourceID:s.id,id:c}),e.abrupt("return",Promise.resolve(s));case 33:case"end":return e.stop()}}),e,this,[[5,19]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"getResourceModel",value:(t=(0,w.Z)(O().mark((function e(t){var r,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.parseUrl(t),e.next=3,this.resourceDAO.findOne({url:r.url});case 3:if(!(n=e.sent)){e.next=7;break}return r.hash&&(r.hash.md5&&r.hash.md5!==n.hash.md5||r.hash.sha1&&r.hash.sha1!==n.hash.sha1||r.hash.sha256&&r.hash.sha256!==n.hash.sha256||r.hash.sha384&&r.hash.sha384!==n.hash.sha384||r.hash.sha512&&r.hash.sha512!==n.hash.sha512)&&(n.content="console.warn(\"ScriptCat: couldn't load resource from URL ".concat(t,' due to a SRI error ");')),e.abrupt("return",Promise.resolve(n));case 7:return e.abrupt("return",Promise.resolve(void 0));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"loadByUrl",value:function(e,t){var r=this;return new Promise((function(n,a){var s=r.parseUrl(e);J.Z.get(s.url,{responseType:"blob"}).then(function(){var e=(0,w.Z)(O().mark((function e(r){var o,i;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(200===r.status){e.next=2;break}return e.abrupt("return",a(new Error("resource response status not 200:".concat(r.status))));case 2:return e.t0=s.url,e.t1=(r.headers["content-type"]||"application/octet-stream").split(";")[0],e.next=6,Be(r.data);case 6:return e.t2=e.sent,e.t3=t,e.t4=(new Date).getTime(),o={id:0,url:e.t0,content:"",contentType:e.t1,hash:e.t2,base64:"",type:e.t3,createtime:e.t4},e.next=12,r.data.arrayBuffer();case 12:if(i=e.sent,!Ce(new Uint8Array(i))){e.next=18;break}return e.next=17,r.data.text();case 17:o.content=e.sent;case 18:return e.next=20,Ze(r.data);case 20:if(e.t5=e.sent,e.t5){e.next=23;break}e.t5="";case 23:return o.base64=e.t5,e.abrupt("return",n(o));case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){return a(e)}))}))}},{key:"parseUrl",value:function(e){var t=e.split("#");if(t.length<2)return{url:t[0],hash:void 0};var r=t[1].split(/[,;]/),n={};return r.forEach((function(e){var t=e.split("=");t.length<2||(n[t[0]]=t[1].toLocaleLowerCase())})),{url:t[0],hash:n}}}]),y}(Ae))||Te;const qe=He;var Ne=r(53229);function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var Fe=function(e){(0,o.Z)(r,e);var t=Ve(r);function r(e){var a;return(0,n.Z)(this,r),(a=t.call(this)).tag=e,a.reconnect(),a}return(0,a.Z)(r,[{key:"reconnect",value:function(){var e=this;this.port=chrome.runtime.connect({name:this.tag}),this.channelManager=new _((function(t){e.nativeSend(t)})),this.port.onMessage.addListener((function(t){e.handler(t,e.channelManager,{targetTag:"content"})})),this.port.onDisconnect.addListener((function(){var t;e.channelManager.free(),null===(t=e.onDisconnect)||void 0===t||t.call(e)}))}},{key:"getChannel",value:function(e){return this.channelManager.getChannel(e)}},{key:"channel",value:function(e){return this.channelManager.channel(e)}},{key:"disChannel",value:function(e){this.channelManager.disChannel(e)}},{key:"free",value:function(){this.channelManager.free()}},{key:"nativeSend",value:function(e){this.port.postMessage(e)}},{key:"send",value:function(e,t){this.port.postMessage({action:e,data:t})}},{key:"syncSend",value:function(e,t){return this.channelManager.channel().syncSend(e,t)}},{key:"broadcast",value:function(e,t,r){this.nativeSend({target:e,action:t,data:r,broadcast:!0})}},{key:"broadcastChannel",value:function(e,t,r){this.nativeSend({target:e,data:{stream:t,channel:!0,data:r},broadcast:!0})}}]),r}(S),ze=r(3067),Je=function(){function e(t,r){(0,n.Z)(this,e),this.prefix="".concat(t,"_"),this.storage=r?chrome.storage.sync:chrome.storage.local}return(0,a.Z)(e,[{key:"buildKey",value:function(e){return this.prefix+e}},{key:"get",value:function(e){var t=this;return new Promise((function(r){e=t.buildKey(e),t.storage.get(e,(function(t){r(t[e])}))}))}},{key:"set",value:function(e,t){var r=this;return new Promise((function(n){var a={};a[r.buildKey(e)]=t,r.storage.set(a,(function(){return n()}))}))}},{key:"remove",value:function(e){var t=this;return new Promise((function(r){t.storage.remove(t.buildKey(e),(function(){return r()}))}))}},{key:"removeAll",value:function(){var e=this;return new Promise((function(t){e.storage.clear((function(){return t()}))}))}},{key:"keys",value:function(){var e=this;return new Promise((function(t){var r={},n=e.buildKey("");e.storage.get((function(e){Object.keys(e).forEach((function(t){t.startsWith(n)&&(r[t.substring(n.length)]=e[t])})),t(r)}))}))}}]),e}();function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t1&&void 0!==o[1]?o[1]:"user",n=this.logger.with({scriptId:t.id,name:t.name,uuid:t.uuid,version:t.metadata.version[0],upsertBy:r}),!t.id){e.next=7;break}return e.next=5,this.dao.findById(t.id);case 5:(a=e.sent)&&(t.selfMetadata=a.selfMetadata);case 7:return e.abrupt("return",new Promise((function(e,a){s.dao.save(t).then((function(){n.info("script upsert success"),xt.hook.trigger("upsert",t,r),e({id:t.id})}),(function(e){n.error("script upsert failed",b.E(e)),a(e)}))})));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"fetchInfoHandler",value:function(e){var t=this;return new Promise((function(r){r(t.cache.get(Ie.scriptInfo(e)))}))}},{key:"enableHandler",value:function(e){var t=this,r=this.logger.with({scriptId:e});return new Promise((function(n,a){t.dao.findById(e).then((function(e){return e?(e.status!==$&&(e.status=$,e.updatetime=(new Date).getTime(),t.dao.save(e),r.info("enable script"),xt.hook.trigger("enable",e)),n(1)):a(new Error("脚本不存在"))})).catch((function(e){r.error("enable error",b.E(e)),a(e)}))}))}},{key:"disableHandler",value:function(e){var t=this,r=this.logger.with({scriptId:e});return new Promise((function(n,a){t.dao.findById(e).then((function(e){return e?(e.status===$&&(e.status=2,e.updatetime=(new Date).getTime(),t.dao.save(e),r.info("disable script"),xt.hook.trigger("disable",e)),n(1)):a(new Error("脚本不存在"))})).catch((function(e){r.error("disable error",b.E(e)),a(e)}))}))}},{key:"deleteHandler",value:function(e){var t=this,r=this.logger.with({scriptId:e});return new Promise((function(n,a){t.dao.findById(e).then((function(e){return e?(r=r.with({name:e.name,uuid:e.uuid,version:e.metadata.version[0]}),t.dao.delete(e.id).then((function(){return r.info("script delete success"),xt.hook.trigger("delete",e),n(1)})).catch((function(e){return r.error("script delete failed",b.E(e)),a(e)}))):Promise.reject(new Error("脚本不存在"))}))}))}},{key:"checkUpdateHandler",value:function(e){return this.manager.checkUpdate(e,"user")}},{key:"importByUrlHandler",value:function(e){return this.manager.openInstallPageByUrl(e)}},{key:"excludeHandler",value:function(e){var t=this,r=e.id,n=e.exclude,a=e.remove,s=this.logger.with({scriptId:r});return new Promise((function(e,o){t.dao.findById(r).then((function(r){if(!r)return o(new Error("脚本不存在"));r.selfMetadata=r.selfMetadata||{};var i=r.selfMetadata.exclude||[];if(a)for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:{};return function(r,n,a){var s=n;t.listener&&t.listener(),e.apis.set(s,{api:a.value,param:t});var o=s.replace("_",".");o!==s&&("GM.xmlhttpRequest"===o&&(o="GM.xmlHttpRequest"),e.apis.set(o,{api:a.value,param:t}))}}}]),e}();(0,u.Z)(gr,"apis",new Map);Dt=gr.API(),Et=gr.API(),Tt=gr.API({depend:["GM_setValue"]}),At=gr.API(),Ut=gr.API(),Gt=gr.API(),Lt=gr.API(),Bt=gr.API(),Ht=gr.API(),qt=gr.API({depend:["CAT_fetchBlob","CAT_createBlobUrl","CAT_fetchDocument"]}),Nt=gr.API(),Vt=gr.API(),Ft=gr.API(),zt=gr.API(),Jt=gr.API({depend:["GM_closeInTab"]}),Wt=gr.API(),Yt=gr.API(),Qt=gr.API(),Xt=gr.API(),$t=gr.API(),Kt=gr.API(),er=gr.API(),tr=gr.API(),rr=gr.API(),nr=gr.API(),ar=gr.API(),sr=gr.API(),or=gr.API(),ir=gr.API(),cr=gr.API({depend:["CAT_fetchBlob","CAT_createBlobUrl"]}),ur=function(){function e(){(0,n.Z)(this,e),(0,u.Z)(this,"valueChangeListener",new Map)}var t,r,s,o;return(0,a.Z)(e,[{key:"sendMessage",value:function(e,t){return this.message.syncSend("gmApi",{api:e,scriptId:this.scriptRes.id,params:t,runFlag:this.runFlag})}},{key:"connect",value:function(e,t,r){var n=(0,Z.Z)(),a=this.message.channel(n);return a.setHandler(r),a.channel("gmApiChannel",{api:e,scriptId:this.scriptRes.id,params:t,runFlag:this.runFlag}),a}},{key:"valueUpdate",value:function(e){var t=this,r=this.scriptRes.metadata.storagename;(e.value.scriptId===this.scriptRes.id||r&&e.value.storageName&&r[0]===e.value.storageName)&&(void 0===e.value.value?delete this.scriptRes.value[e.value.key]:this.scriptRes.value[e.value.key]=e.value,this.valueChangeListener.forEach((function(r){r.name===e.value.key&&r.listener(e.value.key,e.oldValue,e.value.value,e.sender.runFlag!==t.runFlag,e.sender.tabId)})))}},{key:"GM_getValue",value:function(e,t){var r=this.scriptRes.value[e];return r?r.value:t}},{key:"GM_setValue",value:function(e,t){"object"===(0,p.Z)(t)&&(t=JSON.parse(JSON.stringify(t)));var r=this.scriptRes.value[e];return r?r.value=t:r={id:0,scriptId:this.scriptRes.id,storageName:this.scriptRes.metadata.storagename&&this.scriptRes.metadata.storagename[0]||"",key:e,value:t,createtime:(new Date).getTime(),updatetime:0},void 0===t?delete this.scriptRes.value[e]:this.scriptRes.value[e]=r,this.sendMessage("GM_setValue",[e,t])}},{key:"GM_deleteValue",value:function(e){this.GM_setValue(e,void 0)}},{key:"GM_listValues",value:function(){return Object.keys(this.scriptRes.value)}},{key:"GM_addValueChangeListener",value:function(e,t){var r=1e7*Math.random();return this.valueChangeListener.set(r,{name:e,listener:t}),r}},{key:"GM_removeValueChangeListener",value:function(e){this.valueChangeListener.delete(e)}},{key:"CAT_fetchBlob",value:function(e){return this.message.syncSend("CAT_fetchBlob",e)}},{key:"CAT_fetchDocument",value:function(e){var t=this;return new Promise((function(r){var n;t.message.sendCallback("CAT_fetchDocument",e,(function(e){n=t.message.getAndDelRelatedTarget(e.relatedTarget),r(n)}))}))}},{key:"CAT_createBlobUrl",value:function(e){return this.message.syncSend("CAT_createBlobUrl",e)}},{key:"GM_xmlhttpRequest",value:function(e){var t,r=this,n=new URL(e.url,window.location.href);e.headers&&Object.keys(e.headers).forEach((function(t){"cookie"===t.toLowerCase()&&(e.cookie=e.headers[t],delete e.headers[t])}));var a={method:e.method,timeout:e.timeout,url:n.href,headers:e.headers,cookie:e.cookie,context:e.context,responseType:e.responseType,overrideMimeType:e.overrideMimeType,anonymous:e.anonymous,user:e.user,password:e.password,maxRedirects:e.maxRedirects};a.headers||(a.headers={}),e.nocache&&(a.headers["Cache-Control"]="no-cache");var s=function(){var n=(0,w.Z)(O().mark((function n(){var s,o,i,c,u,l,p,f;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!e.data){n.next=20;break}if(!(e.data instanceof FormData)){n.next=12;break}return a.dataType="FormData",o=[],i={},e.data.forEach((function(e,t){i[t]=!0})),c=Object.keys(i).map((function(t){var r=e.data.getAll(t).map((function(e){return new Promise((function(r){e instanceof File?Ze(e).then((function(n){o.push({key:t,type:"file",val:n||"",filename:e.name}),r()})):(o.push({key:t,type:"text",val:e}),r())}))}));return Promise.all(r)})),n.next=9,Promise.all(c);case 9:a.data=o,n.next=20;break;case 12:if(!(e.data instanceof Blob)){n.next=19;break}return a.dataType="Blob",n.next=16,r.CAT_createBlobUrl(e.data);case 16:a.data=n.sent,n.next=20;break;case 19:a.data=e.data;case 20:p=null===(s=e.responseType)||void 0===s?void 0:s.toLocaleLowerCase(),f=function(e){return"stream"===p&&(u=new ReadableStream({start:function(e){l=e}})),function(){var t=(0,w.Z)(O().mark((function t(n){var a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.response){t.next=19;break}if("document"!==p){t.next=9;break}return t.next=4,r.CAT_fetchDocument(n.response);case 4:n.response=t.sent,n.responseXML=n.response,n.responseType="document",t.next=19;break;case 9:return t.next=11,r.CAT_fetchBlob(n.response);case 11:if(a=t.sent,"arraybuffer"!==p){t.next=18;break}return t.next=15,a.arrayBuffer();case 15:n.response=t.sent,t.next=19;break;case 18:n.response=a;case 19:"stream"===p&&(n.response=u),e(n);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"arraybuffer"!==p&&"blob"!==p&&"document"!==p&&"stream"!==p||(e.onload&&(e.onload=f(e.onload)),e.onreadystatechange&&(e.onreadystatechange=f(e.onreadystatechange)),e.onloadend&&(e.onloadend=f(e.onloadend)),"document"===p&&(a.responseType="blob"),"stream"===p&&e.onloadstart&&(e.onloadstart=f(e.onloadstart))),(t=r.connect("GM_xmlhttpRequest",[a],(function(t){var r,n=t.data||{};switch(t.event){case"onload":e.onload&&e.onload(n);break;case"onloadend":var a;if(e.onloadend&&e.onloadend(n),u)null===(a=l)||void 0===a||a.close();break;case"onloadstart":e.onloadstart&&e.onloadstart(n);break;case"onprogress":e.onprogress&&e.onprogress(n);break;case"onreadystatechange":e.onreadystatechange&&e.onreadystatechange(n);break;case"ontimeout":e.ontimeout&&e.ontimeout();break;case"onerror":e.onerror&&e.onerror("");break;case"onabort":e.onabort&&e.onabort();break;case"onstream":null===(r=l)||void 0===r||r.enqueue(new Uint8Array(t.data));break;default:k.getLogger().warn("GM_xmlhttpRequest resp is error",{resp:t})}}))).setCatch((function(t){e.onerror&&e.onerror(t)}));case 25:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return s(),{abort:function(){t&&t.disChannel()}}}},{key:"GM_notification",value:(o=(0,w.Z)(O().mark((function e(t,r,n,a){var s,o,i,c,u=arguments;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s={},"string"!=typeof t){e.next=12;break}s.text=t,e.t0=u.length,e.next=4===e.t0?6:3===e.t0?7:2===e.t0?8:9;break;case 6:s.onclick=a;case 7:s.image=n;case 8:s.title=r;case 9:return e.abrupt("break",10);case 10:e.next=14;break;case 12:(s=t).ondone=s.ondone||r;case 14:s.onclick&&(o=s.onclick,delete s.onclick),s.ondone&&(i=s.ondone,delete s.ondone),s.oncreate&&(c=s.oncreate,delete s.oncreate),this.connect("GM_notification",[s],(function(e){switch(e.event){case"click":o&&o.apply({id:e.id},[e.id,e.index]);break;case"done":i&&i.apply({id:e.id},[e.user]);break;case"create":c&&c.apply({id:e.id},[e.id]);break;default:k.getLogger().warn("GM_notification resp is error",{resp:e})}}));case 18:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"GM_closeNotification",value:function(e){this.sendMessage("GM_closeNotification",[e])}},{key:"GM_updateNotification",value:function(e,t){this.sendMessage("GM_updateNotification",[e,t])}},{key:"GM_log",value:function(e,t,r){return this.sendMessage("GM_log",[e,t,r])}},{key:"GM_openInTab",value:function(e,t){var r,n=this,a={};1===arguments.length?a.active=!0:"boolean"==typeof t?a.active=t:a=t;var s={close:function(){n.GM_closeInTab(r)}},o=this.connect("GM_openInTab",[e,a],(function(e){switch(e.event){case"oncreate":r=e.tabId;break;case"onclose":s.onclose&&s.onclose(),s.closed=!0,o.disChannel()}}));return s}},{key:"GM_closeInTab",value:function(e){return this.sendMessage("GM_closeInTab",[e])}},{key:"GM_getResourceText",value:function(e){if(this.scriptRes.resource){var t=this.scriptRes.resource[e];return t?t.content:void 0}}},{key:"GM_getResourceURL",value:function(e,t){if(this.scriptRes.resource){var r=this.scriptRes.resource[e];return r?t?URL.createObjectURL(Pe(r.base64)):r.base64:void 0}}},{key:"GM_addStyle",value:function(e){var t,r=this;return this.message.sendCallback("GM_addElement",{param:["style",{textContent:e}]},(function(e){t=r.message.getAndDelRelatedTarget(e.relatedTarget)})),t}},{key:"GM_getTab",value:(s=(0,w.Z)(O().mark((function e(t){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendMessage("GM_getTab",[]);case 2:r=e.sent,t(r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"GM_saveTab",value:function(e){return"object"===(0,p.Z)(e)&&(e=JSON.parse(JSON.stringify(e))),this.sendMessage("GM_saveTab",[e])}},{key:"GM_getTabs",value:(r=(0,w.Z)(O().mark((function e(t){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendMessage("GM_getTabs",[]);case 2:r=e.sent,t(r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"GM_download",value:function(e,t){var r;r="string"==typeof e?{name:t||"",url:e}:e;var n=this.connect("GM_download",[{method:r.method,url:r.url,name:r.name,headers:r.headers,saveAs:r.saveAs,timeout:r.timeout,cookie:r.cookie,anonymous:r.anonymous}],(function(e){var t=e.data||{};switch(e.event){case"onload":r.onload&&r.onload(t);break;case"onprogress":r.onprogress&&r.onprogress(t);break;case"ontimeout":r.ontimeout&&r.ontimeout();break;case"onerror":r.onerror&&r.onerror({error:"unknown"});break;default:k.getLogger().warn("GM_download resp is error",{resp:e})}}));return{abort:function(){n.disChannel()}}}},{key:"GM_setClipboard",value:function(e,t){return this.sendMessage("GM_setClipboard",[e,t])}},{key:"GM_cookie",value:function(e,t,r){this.sendMessage("GM_cookie",[e,t]).then((function(e){r&&r(e,void 0)})).catch((function(e){r&&r(void 0,e)}))}},{key:"GM_registerMenuCommand",value:function(e,t,r){this.menuMap||(this.menuMap=new Map);var n=0;if(this.menuMap.forEach((function(t,r){t===e&&(n=r)})),n)return n;this.menuId?this.menuId+=1:this.menuId=1;var a=this.menuId;return this.connect("GM_registerMenuCommand",[a,e,r],(function(){t()})),this.menuMap.set(a,e),a}},{key:"GM_unregisterMenuCommand",value:function(e){this.menuMap||(this.menuMap=new Map),this.menuMap.delete(e),this.sendMessage("GM_unregisterMenuCommand",[e])}},{key:"CAT_userConfig",value:function(){return this.sendMessage("CAT_userConfig",[])}},{key:"GM_addElement",value:function(e,t,r){var n,a=this;return this.message.sendCallback("GM_addElement",{param:["string"==typeof e?e:t,"string"==typeof e?t:r],relatedTarget:"string"==typeof e?null:e},(function(e){n=a.message.getAndDelRelatedTarget(e.relatedTarget)})),n}},{key:"CAT_fileStorage",value:(t=(0,w.Z)(O().mark((function e(t,r){var n,a,s,o=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={path:r.path||"",filename:r.filename,file:r.file},"upload"!==t){e.next=6;break}return e.next=4,this.CAT_createBlobUrl(r.data);case 4:a=e.sent,n.data=a;case 6:s=this.connect("CAT_fileStorage",[t,n],function(){var e=(0,w.Z)(O().mark((function e(n){var a;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("download"!==t){e.next=7;break}return e.next=3,o.CAT_fetchBlob(n.data);case 3:a=e.sent,r.onload&&r.onload(a),e.next=8;break;case 7:r.onload&&r.onload(n.data);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),s.setCatch((function(e){void 0!==e.code?r.onerror&&r.onerror(e):r.onerror&&r.onerror({code:-1,message:e.message})}));case 8:case"end":return e.stop()}}),e,this)}))),function(e,r){return t.apply(this,arguments)})}],[{key:"GM_info",value:function(e){var t,r,n,a=(t=e.sourceCode,r=t.indexOf("==UserScript=="),n=t.indexOf("==/UserScript=="),-1===r||-1===n?null:"// ".concat(t.substring(r,n+14))),s={description:e.metadata.description&&e.metadata.description[0]||null,matches:e.metadata.match||[],includes:e.metadata.include||[],"run-at":e.metadata["run-at"]&&e.metadata["run-at"][0]||"document-idle",icon:e.metadata.icon&&e.metadata.icon[0]||null,icon64:e.metadata.icon64&&e.metadata.icon64[0]||null,header:a,grant:e.metadata.grant||[]};return{scriptWillUpdate:!0,scriptHandler:"ScriptCat",scriptUpdateURL:e.downloadUrl,scriptMetaStr:a,version:dr,script:vr({name:e.name,namespace:e.namespace,version:e.metadata.version&&e.metadata.version[0],author:e.author},s)}}}]),e}(),(0,Ne.Z)(ur.prototype,"GM_getValue",[Dt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_getValue"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_setValue",[Et],Object.getOwnPropertyDescriptor(ur.prototype,"GM_setValue"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_deleteValue",[Tt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_deleteValue"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_listValues",[At],Object.getOwnPropertyDescriptor(ur.prototype,"GM_listValues"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_addValueChangeListener",[Ut],Object.getOwnPropertyDescriptor(ur.prototype,"GM_addValueChangeListener"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_removeValueChangeListener",[Gt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_removeValueChangeListener"),ur.prototype),(0,Ne.Z)(ur.prototype,"CAT_fetchBlob",[Lt],Object.getOwnPropertyDescriptor(ur.prototype,"CAT_fetchBlob"),ur.prototype),(0,Ne.Z)(ur.prototype,"CAT_fetchDocument",[Bt],Object.getOwnPropertyDescriptor(ur.prototype,"CAT_fetchDocument"),ur.prototype),(0,Ne.Z)(ur.prototype,"CAT_createBlobUrl",[Ht],Object.getOwnPropertyDescriptor(ur.prototype,"CAT_createBlobUrl"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_xmlhttpRequest",[qt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_xmlhttpRequest"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_notification",[Nt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_notification"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_closeNotification",[Vt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_closeNotification"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_updateNotification",[Ft],Object.getOwnPropertyDescriptor(ur.prototype,"GM_updateNotification"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_log",[zt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_log"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_openInTab",[Jt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_openInTab"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_closeInTab",[Wt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_closeInTab"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_getResourceText",[Yt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_getResourceText"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_getResourceURL",[Qt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_getResourceURL"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_addStyle",[Xt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_addStyle"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_getTab",[$t],Object.getOwnPropertyDescriptor(ur.prototype,"GM_getTab"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_saveTab",[Kt],Object.getOwnPropertyDescriptor(ur.prototype,"GM_saveTab"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_getTabs",[er],Object.getOwnPropertyDescriptor(ur.prototype,"GM_getTabs"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_download",[tr],Object.getOwnPropertyDescriptor(ur.prototype,"GM_download"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_setClipboard",[rr],Object.getOwnPropertyDescriptor(ur.prototype,"GM_setClipboard"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_cookie",[nr],Object.getOwnPropertyDescriptor(ur.prototype,"GM_cookie"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_registerMenuCommand",[ar],Object.getOwnPropertyDescriptor(ur.prototype,"GM_registerMenuCommand"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_unregisterMenuCommand",[sr],Object.getOwnPropertyDescriptor(ur.prototype,"GM_unregisterMenuCommand"),ur.prototype),(0,Ne.Z)(ur.prototype,"CAT_userConfig",[or],Object.getOwnPropertyDescriptor(ur.prototype,"CAT_userConfig"),ur.prototype),(0,Ne.Z)(ur.prototype,"GM_addElement",[ir],Object.getOwnPropertyDescriptor(ur.prototype,"GM_addElement"),ur.prototype),(0,Ne.Z)(ur.prototype,"CAT_fileStorage",[cr],Object.getOwnPropertyDescriptor(ur.prototype,"CAT_fileStorage"),ur.prototype);function yr(e){var t=e.code,r="";return e.metadata.require&&e.metadata.require.forEach((function(t){var n=e.resource[t];n&&(r="".concat(r,"\n").concat(n.content))})),"with (context) return (()=>{\n".concat(t=r+t,"\n//# sourceURL=").concat(chrome.runtime.getURL("/".concat(encodeURI(e.name),".user.js")),"\n})()")}var br={addEventListener:r.g.addEventListener.bind(r.g),removeEventListener:r.g.removeEventListener.bind(r.g),dispatchEvent:r.g.dispatchEvent.bind(r.g)},kr=new Map,wr=Object.getOwnPropertyDescriptors(r.g);Object.keys(wr).forEach((function(e){var t=wr[e];t&&t.writable&&!br[e]?"function"==typeof t.value?t.value.prototype?br[e]=t.value:br[e]=t.value.bind(r.g):br[e]=t.value:kr.set(e,!0)}));var xr=J.Z.create({baseURL:"".concat(hr,"api/v1"),validateStatus:function(e){return e<500}});function Or(e){return xr.get("/auth/net-disk/token?netDiskType=".concat(e)).then((function(e){return e.data}))}function Zr(e,t){return xr.post("/auth/net-disk/token/refresh?netDiskType=".concat(e),{netDiskType:e,refreshToken:t}).then((function(e){return e.data}))}function Pr(e){return new Promise((function(t){var r=window.open("".concat(hr,"api/v1/auth/net-disk?netDiskType=").concat(e)),n=setInterval((function(){try{r.closed&&(clearInterval(n),t())}catch(e){clearInterval(n),t()}}),1e3)}))}function Mr(e,t){return _r.apply(this,arguments)}function _r(){return(_r=(0,w.Z)(O().mark((function e(t,r){var n,a,s;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n=JSON.parse(localStorage["netdisk:token:".concat(t)])}catch(e){}if(!r&&n&&n.accessToken){e.next=11;break}return e.next=4,Pr(t);case 4:return e.next=6,Or(t);case 6:if(0===(a=e.sent).code){e.next=9;break}return e.abrupt("return",Promise.reject(new Error(a.msg)));case 9:n={accessToken:a.data.token.access_token,refreshToken:a.data.token.refresh_token,createtime:Date.now()},localStorage["netdisk:token:".concat(t)]=JSON.stringify(n);case 11:if(!(Date.now()>=n.createtime+36e5)){e.next=28;break}return e.prev=12,e.next=15,Zr(t,n.refreshToken);case 15:if(0===(s=e.sent).code){e.next=19;break}return localStorage.removeItem("netdisk:token:".concat(t)),e.abrupt("return",Promise.reject(new Error(s.msg)));case 19:n={accessToken:s.data.token.access_token,refreshToken:s.data.token.refresh_token,createtime:Date.now()},localStorage["netdisk:token:".concat(t)]=JSON.stringify(n),e.next=26;break;case 23:return e.prev=23,e.t0=e.catch(12),e.abrupt("return",Promise.resolve(n.accessToken));case 26:e.next=29;break;case 28:case 29:return e.abrupt("return",Promise.resolve(n.accessToken));case 30:case"end":return e.stop()}}),e,null,[[12,23]])})))).apply(this,arguments)}function Sr(){for(var e="",t=arguments.length,r=new Array(t),n=0;n2&&(r=t.slice(0,t.length-1).join("/"));var n=new Headers;return n.append("Content-Type","application/json"),this.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat(r,":/children"),{method:"POST",headers:n,body:JSON.stringify({name:t[t.length-1],folder:{},"@microsoft.graph.conflictBehavior":"replace"})}).then((function(e){if(e.errno)throw new Error(JSON.stringify(e));return Promise.resolve()}))}},{key:"request",value:function(e,t,r){var n=(t=t||{}).headers||new Headers;n.append("Authorization","Bearer ".concat(this.accessToken)),t.headers=n;var a=fetch(e,t);return r?a:a.then((function(e){return e.json()})).then(function(){var e=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=2;break}throw new Error(JSON.stringify(t));case 2:return e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"delete",value:function(e){return this.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat(Sr(this.path,e)),{method:"DELETE"},!0).then(function(){var e=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(204===t.status){e.next=6;break}return e.t0=Error,e.next=4,t.text();case 4:throw e.t1=e.sent,new e.t0(e.t1);case 6:return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},{key:"list",value:function(){var e=this,t=this.path;return"/"===t&&(t=""),this.request("https://graph.microsoft.com/v1.0/me/drive/special/approot:".concat(t,":/children")).then((function(t){var r=[];return t.value.forEach((function(t){r.push({name:t.name,path:e.path,size:t.size,digest:t.eTag,createtime:new Date(t.createdDateTime).getTime(),updatetime:new Date(t.lastModifiedDateTime).getTime()})})),r}))}},{key:"getDirUrl",value:function(){throw new Error("Method not implemented.")}}]),e}(),Tr=r(79478),Ar=function(){function e(t,r){(0,n.Z)(this,e),this.client=t,this.path=r}var t;return(0,a.Z)(e,[{key:"read",value:(t=(0,w.Z)(O().mark((function e(t){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="string"===e.t0?3:4;break;case 3:return e.abrupt("return",this.client.getFileContents(this.path,{format:"text"}));case 4:return e.next=6,this.client.getFileContents(this.path,{format:"binary"});case 6:return r=e.sent,e.abrupt("return",Promise.resolve(new Blob([r])));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),Ur=function(){function e(t,r){(0,n.Z)(this,e),this.client=t,this.path=r}var t;return(0,a.Z)(e,[{key:"write",value:(t=(0,w.Z)(O().mark((function e(t){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t instanceof Blob)){e.next=11;break}return e.t0=this.client,e.t1=this.path,e.next=5,t.arrayBuffer();case 5:return e.t2=e.sent,e.next=8,e.t0.putFileContents.call(e.t0,e.t1,e.t2);case 8:r=e.sent,e.next=14;break;case 11:return e.next=13,this.client.putFileContents(this.path,t);case 13:r=e.sent;case 14:if(!r){e.next=16;break}return e.abrupt("return",Promise.resolve());case 16:return e.abrupt("return",Promise.reject(new Error("write error")));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),Gr=function(){function e(t,r,a,s){(0,n.Z)(this,e),(0,u.Z)(this,"basePath","/"),"object"===(0,p.Z)(t)?(this.client=t,this.basePath=Sr(r||""),this.url=a):(this.url=r,this.client=(0,Tr.createClient)(r,{authType:t,username:a,password:s}))}var t,r,s;return(0,a.Z)(e,[{key:"verify",value:(s=(0,w.Z)(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.getQuota();case 2:return e.abrupt("return",Promise.resolve());case 3:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"open",value:function(e){return Promise.resolve(new Ar(this.client,Sr(e.path,e.name)))}},{key:"openDir",value:function(t){return Promise.resolve(new e(this.client,Sr(this.basePath,t),this.url))}},{key:"create",value:function(e){return Promise.resolve(new Ur(this.client,Sr(this.basePath,e)))}},{key:"createDir",value:function(e){return this.client.createDirectory(Sr(this.basePath,e))}},{key:"delete",value:(r=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.deleteFile(Sr(this.basePath,t)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"list",value:(t=(0,w.Z)(O().mark((function e(){var t,r,n=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.getDirectoryContents(this.basePath);case 2:return t=e.sent,r=[],t.forEach((function(e){"file"===e.type&&r.push({name:e.basename,path:n.basePath,digest:e.etag||"",size:e.size,createtime:new Date(e.lastmod).getTime(),updatetime:new Date(e.lastmod).getTime()})})),e.abrupt("return",Promise.resolve(r));case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getDirUrl",value:function(){return Promise.resolve(this.url+this.basePath)}}]),e}(),Lr=r(55733),Br=r.n(Lr),Hr=function(){function e(t){(0,n.Z)(this,e),this.zipObject=t}return(0,a.Z)(e,[{key:"read",value:function(e){return this.zipObject.async(e||"string")}}]),e}(),qr=function(){function e(t,r){(0,n.Z)(this,e),this.zip=t,this.path=r}return(0,a.Z)(e,[{key:"write",value:function(e){return this.zip.file(this.path,e),Promise.resolve()}}]),e}(),Nr=function(){function e(t,r){(0,n.Z)(this,e),this.zip=t||new(Br()),this.basePath=r||""}return(0,a.Z)(e,[{key:"verify",value:function(){return Promise.resolve()}},{key:"open",value:function(e){var t=e.name,r=this.zip.file(t);return r?Promise.resolve(new Hr(r)):Promise.reject(new Error("File not found"))}},{key:"openDir",value:function(t){return Promise.resolve(new e(this.zip,t))}},{key:"create",value:function(e){return Promise.resolve(new qr(this.zip,e))}},{key:"createDir",value:function(){return Promise.resolve()}},{key:"delete",value:function(e){return this.zip.remove(e),Promise.resolve()}},{key:"list",value:function(){var e=this,t=[];return Object.keys(this.zip.files).forEach((function(r){t.push({name:r,path:r,size:0,digest:"",createtime:e.zip.files[r].date.getTime(),updatetime:e.zip.files[r].date.getTime()})})),Promise.resolve(t)}},{key:"getDirUrl",value:function(){throw new Error("Method not implemented.")}}]),e}(),Vr=function(){function e(){(0,n.Z)(this,e)}var t;return(0,a.Z)(e,null,[{key:"create",value:function(e,t){var r;switch(e){case"zip":r=new Nr(t);break;case"webdav":r=new Gr(t.authType,t.url,t.username,t.password);break;case"baidu-netdsik":r=new Rr;break;case"onedrive":r=new Er;break;default:throw new Error("not found filesystem")}return r.verify().then((function(){return r}))}},{key:"params",value:function(){return{webdav:{authType:{title:"鉴权类型",type:"select",options:["password","digest","none","token"]},url:{title:"URL"},username:{title:"用户名"},password:{title:"密码"}},"baidu-netdsik":{},onedrive:{}}}},{key:"mkdirAll",value:(t=(0,w.Z)(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var a=r.split("/"),s=0;!function r(){if(s>=a.length)e();else{var o=a.slice(0,s+1).join("/");t.createDir(o).then((function(){s+=1,r()})).catch((function(){n()}))}}()})));case 1:case"end":return e.stop()}}),e)}))),function(e,r){return t.apply(this,arguments)})}]),e}();function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var zr=function(e){(0,o.Z)(r,e);var t=Fr(r);function r(){var e;return(0,n.Z)(this,r),e=t.call(this),(0,u.Z)((0,s.Z)(e),"tableName","permission"),e.table=E.table(e.tableName),e}return(0,a.Z)(r)}(A),Jr=function(){function e(){(0,n.Z)(this,e),(0,u.Z)(this,"list",[])}return(0,a.Z)(e,[{key:"push",value:function(e){this.resolve?(this.resolve(e),this.resolve=void 0):this.list.push(e)}},{key:"pop",value:function(){var e=this;return new Promise((function(t){e.list.length>0?t(e.list.shift()):e.resolve=t}))}}]),e}(),Wr=function(){function e(){var t=this;(0,n.Z)(this,e),(0,u.Z)(this,"confirmQueue",new Jr),(0,u.Z)(this,"confirmMap",new Map),this.permissionDAO=new zr;var r=B.instance(S);r.setHandler("permissionConfirm",(function(e,r){var n=t.confirmMap.get(r.uuid);return n?(t.confirmMap.delete(r.uuid),n.resolve(r.userConfirm),Promise.resolve(!0)):0===r.userConfirm.type?Promise.resolve(void 0):Promise.reject(new Error("confirm not found"))})),r.setHandler("getConfirm",(function(e,r){var n=t.confirmMap.get(r);if(!n)return Promise.reject(new Error("uuid not found"));var a=0;return n.confirm.wildcard&&t.confirmQueue.list.forEach((function(e){var t=e.confirm;t.wildcard&&e.request.scriptId===n.script.id&&t.permission===n.confirm.permission&&(a+=1)})),Promise.resolve({script:n.script,confirm:n.confirm,likeNum:a})})),r.setHandler("deletePermission",function(){var e=(0,w.Z)(O().mark((function e(r,n){var a,s;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Ie.permissionConfirm(n.scriptId,n.confirm),e.next=3,W.getInstance().del(a);case 3:return e.next=5,t.permissionDAO.findOne({scriptId:n.scriptId,permission:n.confirm.permission,permissionValue:n.confirm.permissionValue||""});case 5:if(s=e.sent){e.next=8;break}return e.abrupt("return",Promise.resolve(!0));case 8:return e.next=10,t.permissionDAO.delete(s.id);case 10:return e.abrupt("return",Promise.resolve(!0));case 11:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),this.dealConfirmQueue()}var t,r,s,o;return(0,a.Z)(e,[{key:"verify",value:function(e,t){if(t.param.default)return Promise.resolve(!0);var r=e.script.metadata.grant;if(!r)return Promise.reject(new Error("grant is undefined"));for(var n=0;n=2&&W.getInstance().set(n,o),!(s.type>=4)){e.next=34;break}return e.next=26,this.permissionDAO.findOne({scriptId:t.scriptId,permission:o.permission,permissionValue:o.permissionValue});case 26:if(i=e.sent){e.next=32;break}return e.next=30,this.permissionDAO.save(o);case 30:e.next=34;break;case 32:return e.next=34,this.permissionDAO.update(i.id,o);case 34:if(!s.allow){e.next=36;break}return e.abrupt("return",Promise.resolve(!0));case 36:return e.abrupt("return",Promise.reject(new Error("permission not allowed")));case 37:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"confirmWindow",value:(t=(0,w.Z)(O().mark((function e(t,r){var n=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){var s=(0,Z.Z)(),o=setTimeout((function(){n.confirmMap.delete(s),a(new Error("permission confirm timeout"))}),4e4);n.confirmMap.set(s,{confirm:r,script:t,resolve:function(t){clearTimeout(o),e(t)},reject:a}),chrome.tabs.create({url:chrome.runtime.getURL("src/confirm.html?uuid=".concat(s))})})));case 1:case"end":return e.stop()}}),e)}))),function(e,r){return t.apply(this,arguments)})}],[{key:"API",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r,n,a){var s=n;t.listener&&t.listener(),e.apis.set(s,{api:a.value,param:t}),t.alias&&t.alias.forEach((function(r){e.apis.set(r,{api:a.value,param:t})}));var o=s.replace("_",".");o!==s&&e.apis.set(o,{api:a.value,param:t})}}}]),e}();function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}(0,u.Z)(Wr,"apis",new Map),(0,u.Z)(Wr,"textarea",document.createElement("textarea"));var Qr,Xr,$r,Kr,en,tn,rn,nn,an,sn,on,cn,un,ln,pn,fn,dn,hn,mn,vn,gn={"user-agent":!0,"proxy-":!0,"sec-":!0,cookie:!0,"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,date:!0,dnt:!0,expect:!0,"feature-policy":!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,via:!0},yn={"set-cookie":!0};function bn(e){return!!(e.initiator&&chrome.runtime.getURL("").startsWith(e.initiator)||e.originUrl&&e.originUrl.startsWith(chrome.runtime.getURL("")))}function kn(e){var t=["blocking","requestHeaders"],r=["blocking","responseHeaders"];pe()||(t.push("extraHeaders"),r.push("extraHeaders"));var n=new Map;chrome.webRequest.onBeforeSendHeaders.addListener((function(t){var r;if(!bn(t))return{};var a="",s="",o=!1,i=!1,c=[],u={};return null===(r=t.requestHeaders)||void 0===r||r.forEach((function(r){var l=r.name.toLowerCase();if(l.startsWith("".concat(e,"-"))){var p=l.substring(e.length+1);switch(p){case"cookie":s=r.value||"";break;case"max-redirects":n.set(t.requestId,[0,parseInt(r.value||"",10)]);break;case"anonymous":o=!0;break;case"gm-xhr":i=!0;break;default:u[p]=r.value||null}}else if("cookie"===l)a=r.value||"";else gn[l]||l.startsWith("sec-")||l.startsWith("proxy-")?null!==u[l]&&(u[l]=u[l]||r.value||""):c.push(r)})),i?(o&&(a=""),s&&(!a||a.endsWith(";")?a+=s:a+=";".concat(s)),a&&c.push({name:"Cookie",value:a}),Object.keys(u).forEach((function(e){null!==u[e]&&c.push({name:e,value:u[e]})})),{requestHeaders:c}):{}}),{urls:[""]},t),chrome.webRequest.onHeadersReceived.addListener((function(t){var r,a;if(!bn(t)){if("main_frame"!==t.type&&"sub_frame"!==t.type||!pe())return{};if(B.instance(Tn).matchUrl(t.url,(function(e){return"sub_frame"===t.type&&!!e.metadata.noframes||e.status!==$})).length>0&&t.responseHeaders){for(var s=0;si[1]&&(r.name="".concat(e,"-").concat(r.name)))}})),null===(a=t.responseHeaders)||void 0===a||a.push.apply(a,o),{responseHeaders:t.responseHeaders}}),{urls:[""]},r),chrome.webRequest.onCompleted.addListener((function(e){bn(e)&&n.delete(e.requestId)}),{urls:[""]})}function wn(e,t,r){r.setRequestHeader("".concat(e,"-gm-xhr"),"true"),t.headers&&Object.keys(t.headers).forEach((function(n){var a=n.toLowerCase();if(gn[a]||a.startsWith("sec-")||a.startsWith("proxy-"))try{r.setRequestHeader("".concat(e,"-").concat(a),t.headers[n])}catch(e){k.getLogger(b.E(e)).error("GM XHR setRequestHeader error")}else r.setRequestHeader(n,t.headers[n])})),void 0!==t.maxRedirects&&r.setRequestHeader("".concat(e,"-max-redirects"),t.maxRedirects.toString()),t.cookie&&r.setRequestHeader("".concat(e,"-cookie"),t.cookie),t.anonymous&&r.setRequestHeader("".concat(e,"-anonymous"),"true")}function xn(e,t){var r={};return r["".concat(e,"-gm-xhr")]="true",t.headers&&Object.keys(t.headers).forEach((function(n){var a=n.toLowerCase();gn[a]||a.startsWith("sec-")||a.startsWith("proxy-")?r["".concat(e,"-").concat(a)]=t.headers[n]:r[n]=t.headers[n]})),void 0!==t.maxRedirects&&(r["".concat(e,"-max-redirects")]=t.maxRedirects.toString()),t.cookie&&(r["".concat(e,"-cookie")]=t.cookie),t.anonymous&&(r["".concat(e,"-anonymous")]="true"),r}function On(e,t,r){return Zn.apply(this,arguments)}function Zn(){return Zn=(0,w.Z)(O().mark((function e(t,r,n){var a,s,o,i,c,u;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=new RegExp("".concat(t,"-"),"g"),s={finalUrl:n.responseURL||r.url,readyState:n.readyState,status:n.status,statusText:n.statusText,responseHeaders:n.getAllResponseHeaders().replace(a,""),responseType:r.responseType},4!==n.readyState){e.next=19;break}if("arraybuffer"!==(null===(o=r.responseType)||void 0===o?void 0:o.toLowerCase())&&"blob"!==(null===(i=r.responseType)||void 0===i?void 0:i.toLowerCase())){e.next=18;break}if(n.response instanceof ArrayBuffer?(c=new Blob([n.response]),s.response=URL.createObjectURL(c)):(c=n.response,s.response=URL.createObjectURL(c)),e.prev=5,-1===(null===(u=n.getResponseHeader("Content-Type"))||void 0===u?void 0:u.indexOf("text"))){e.next=10;break}return e.next=9,c.text();case 9:s.responseText=e.sent;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),k.getLogger(b.E(e.t0)).error("GM XHR getResponseHeader error");case 15:setTimeout((function(){URL.revokeObjectURL(s.response)}),6e4),e.next=19;break;case 18:if("json"===r.responseType){try{s.response=JSON.parse(n.responseText)}catch(e){k.getLogger(b.E(e)).error("GM XHR JSON parse error")}try{s.responseText=n.responseText}catch(e){k.getLogger(b.E(e)).error("GM XHR getResponseText error")}}else{try{s.response=n.response}catch(e){k.getLogger(b.E(e)).error("GM XHR response error")}try{s.responseText=n.responseText}catch(e){k.getLogger(b.E(e)).error("GM XHR getResponseText error")}}case 19:return e.abrupt("return",Promise.resolve(s));case 20:case"end":return e.stop()}}),e,null,[[5,12]])}))),Zn.apply(this,arguments)}function Pn(e,t,r,n){var a=new RegExp("".concat(e,"-"),"g"),s="";return r.headers&&r.headers.forEach((function(e,t){s+="".concat(t.replace(a,""),": ").concat(e,"\n")})),{finalUrl:r.url||t.url,readyState:n,status:r.status,statusText:r.statusText,responseHeaders:s,responseType:t.responseType}}function Mn(e){e.forEach((function(e,t){chrome.contextMenus.create({id:"scriptMenu_".concat(t),title:e[0].request.script.name,contexts:["all"],parentId:"scriptMenu"}),e.forEach((function(e){chrome.contextMenus.create({id:"scriptMenu_menu_".concat(t,"_").concat(e.request.params[0]),title:e.request.params[1],contexts:["all"],parentId:"scriptMenu_".concat(t),onclick:function(){B.instance(C).sendNative({tag:e.request.sender.targetTag,id:[e.request.sender.frameId||e.request.sender.tabId||0]},{stream:e.channel.flag,channel:!0,data:"click"})}})}))}))}function _n(e,t){chrome.contextMenus.removeAll();var r=t.get(e),n=t.get("sandbox");(r||n)&&(chrome.contextMenus.create({id:"scriptMenu",title:"ScriptCat",contexts:["all"]}),r&&Mn(r),"sandbox"!==e&&n&&Mn(n))}var Sn,In,Cn=(Qr=Wr.API(),Xr=Wr.API({confirm:function(e){var t=e.params[0],r=new URL(t.url);if(e.script.metadata.connect)for(var n=e.script.metadata.connect,a=0;a3&&void 0!==arguments[3]?arguments[3]:1,s=a.get(e);s||(s=new Map,a.set(e,s));var o=s.get(t.id);o||(o={script:t,runNum:0,runNumByIframe:0},s.set(t.id,o)),t.status===$&&(o.runNum+=n,r&&(o.runNumByIframe+=n))};chrome.tabs.onRemoved.addListener((function(e){a.delete(e)})),this.message.setHandler("queryPageScript",function(){var t=(0,w.Z)(O().mark((function t(r,s){var o,i,c,u,l,p,f,d,h;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.url,i=s.tabId,c=n.get(i),u=a.get(i),l=[],l=u?Array.from(u.values()):e.matchUrl(o).map((function(e){return{runNum:0,runNumByIframe:0,script:e}})),p=l.map(function(){var t=(0,w.Z)(O().mark((function t(r){var n,a,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=[],c&&(null===(a=c.get(r.script.id))||void 0===a||a.forEach((function(e){n.push({name:e.request.params[1],accessKey:e.request.params[2],id:e.request.params[0],sender:e.request.sender,channelFlag:e.channel.flag})}))),t.next=4,e.scriptDAO.findById(r.script.id);case 4:if(s=t.sent){t.next=7;break}return t.abrupt("return",{id:r.script.id,name:r.script.name,enable:r.script.status===$,updatetime:r.script.updatetime||r.script.createtime,hasUserConfig:!!r.script.config,runNum:r.runNum,runNumByIframe:r.runNumByIframe,customExclude:r.script.selfMetadata&&r.script.selfMetadata.exclude,menus:n});case 7:return t.abrupt("return",{id:s.id,name:s.name,enable:s.status===$,updatetime:s.updatetime||s.createtime,hasUserConfig:!(null==s||!s.config),runNum:r.runNum,runNumByIframe:r.runNumByIframe,customExclude:s.selfMetadata&&s.selfMetadata.exclude,menus:n});case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.next=8,Promise.all(p);case 8:return f=t.sent,d=[],h=n.get("sandbox"),e.runBackScript.forEach((function(e){var t,r=[];h&&(null==h||null===(t=h.get(e.id))||void 0===t||t.forEach((function(e){r.push({name:e.request.params[1],accessKey:e.request.params[2],id:e.request.params[0],sender:e.request.sender,channelFlag:e.channel.flag})})));d.push({id:e.id,name:e.name,enable:e.status===$,updatetime:e.updatetime||e.createtime,runStatus:e.runStatus,hasUserConfig:!!e.config,runNum:e.runStatus&&"running"!==e.runStatus?1:0,menus:r,runNumByIframe:0})})),t.abrupt("return",Promise.resolve({scriptList:f,backScriptList:d}));case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),this.message.setHandler("pageLoad",(function(n,o,i){return new Promise((function(n){if(i&&i.url&&i.tabId&&(void 0===i.frameId&&a.delete(i.tabId),"false"!==localStorage.enable_script)){e.customizeExclude.match(i.url).forEach((function(e){s(i.tabId,e,!1,0)}));var o=e.matchUrl(i.url,(function(e){return void 0!==i.frameId?!!e.metadata.noframes||(s(i.tabId,e,!0),e.status!==$):(s(i.tabId,e,!1),e.status!==$)}));chrome.tabs.executeScript(i.tabId,{frameId:i.frameId,code:"(function(){\n let temp = document.createElement('script');\n temp.setAttribute('type', 'text/javascript');\n temp.innerHTML = \"".concat(r,'";\n temp.className = "injected-js";\n document.documentElement.appendChild(temp)\n temp.remove();\n }())'),runAt:"document_start"}),o.length?(n({flag:t,scripts:o}),o.forEach((function(e){var t="document_idle";e.metadata["run-at"]&&(t=(0,Y.Z)(e.metadata["run-at"],1)[0]);switch(t){case"document-body":case"document-start":t="document_start";break;case"document-end":t="document_end";break;default:t="document_idle"}chrome.tabs.executeScript(i.tabId,{frameId:i.frameId,code:"(function(){\n let temp = document.createElement('script');\n temp.setAttribute('type', 'text/javascript');\n temp.innerHTML = \"".concat(e.code,'";\n temp.className = "injected-js";\n document.documentElement.appendChild(temp)\n temp.remove();\n }())'),runAt:t})})),chrome.browserAction.getBadgeText({tabId:i.tabId},(function(e){chrome.browserAction.setBadgeText({text:(o.length+(parseInt(e,10)||0)).toString(),tabId:i.tabId})})),chrome.browserAction.setBadgeBackgroundColor({color:"#4594d5",tabId:i.tabId})):n({flag:t,scripts:[]})}}))}))}},{key:"setMessageSandbox",value:function(e){this.messageSandbox=e}},{key:"startSandbox",value:function(e){var t=this;this.messageSandbox=e,this.scriptDAO.table.toArray((function(e){e.forEach((function(e){e?e.type!==X&&e.status===$&&(t.enable(e),t.runBackScript.set(e.id,e)):t.logger.error("script is null")}))}))}},{key:"listenScriptRunStatus",value:function(){var e=this;this.message.setHandler("scriptRunStatus",(function(t,r){var n=(0,Y.Z)(r,2),a=n[0],s=n[1];e.scriptDAO.update(a,{runStatus:s,lastruntime:(new Date).getTime()}),f.hook.trigger("runStatus",a,s)})),this.message.setHandlerWithChannel("watchRunStatus",(function(e){var t=function(t,r){e.send([t,r])};f.hook.addListener("runStatus",t),e.setDisChannelHandler((function(){f.hook.removeListener("runStatus",t)}))}))}},{key:"scriptUpdate",value:(l=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.resourceManager.checkScriptResource(t);case 2:if(t.status!==$){e.next=4;break}return e.abrupt("return",this.enable(t));case 4:return e.abrupt("return",this.disable(t));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"matchUrl",value:function(e,t){var r=this.match.match(e);r.push.apply(r,(0,h.Z)(this.include.match(e)));var n={};return r.forEach((function(e){t&&t(e)||(n[e.id]=e)})),Object.keys(n).map((function(e){return n[e]}))}},{key:"scriptDelete",value:(c=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.type===X?(this.match.del(t),this.include.del(t)):this.unloadBackgroundScript(t),e.abrupt("return",Promise.resolve(!0));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"enable",value:(i=(0,w.Z)(O().mark((function e(t){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.buildScriptRunResource(t);case 2:if(r=e.sent,t.type===X){e.next=5;break}return e.abrupt("return",this.loadBackgroundScript(r));case 5:return e.abrupt("return",this.loadPageScript(r));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"disable",value:function(e){return e.type!==X?this.unloadBackgroundScript(e):this.unloadPageScript(e)}},{key:"loadPageScript",value:function(e){var t=this,r=this.logger.with({scriptId:e.id,name:e.name});return e.code=le(function(e){return"window['".concat(e.flag,"']=function(context,GM_info){\n").concat(e.code,"\n}")}(e)),this.match.del(e),this.include.del(e),e.metadata.match&&e.metadata.match.forEach((function(n){try{t.match.add(n,e)}catch(e){r.error("url加载错误",b.E(e))}})),e.metadata.include&&e.metadata.include.forEach((function(n){try{t.include.add(n,e)}catch(e){r.error("url加载错误",b.E(e))}})),e.metadata.exclude&&e.metadata.exclude.forEach((function(n){try{t.include.exclude(n,e),t.match.exclude(n,e)}catch(e){r.error("url加载错误",b.E(e))}})),e.selfMetadata&&e.selfMetadata.exclude&&e.selfMetadata.exclude.forEach((function(n){try{t.customizeExclude.add(n,e)}catch(e){r.error("url加载错误",b.E(e))}})),Promise.resolve(!0)}},{key:"unloadPageScript",value:function(e){return this.loadPageScript(e)}},{key:"loadBackgroundScript",value:function(e){var t=this;return this.runBackScript.set(e.id,e),new Promise((function(r,n){var a;null===(a=t.messageSandbox)||void 0===a||a.syncSend("enable",e).then((function(){r(!0)})).catch((function(e){t.logger.error("backscript load error",b.E(e)),n(e)}))}))}},{key:"unloadBackgroundScript",value:function(e){var t=this;return this.runBackScript.delete(e.id),new Promise((function(r,n){var a;null===(a=t.messageSandbox)||void 0===a||a.syncSend("disable",e.id).then((function(){r(!0)})).catch((function(e){t.logger.error("backscript stop error",b.E(e)),n(e)}))}))}},{key:"startBackgroundScript",value:(r=(0,w.Z)(O().mark((function e(t){var r,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.buildScriptRunResource(t);case 2:return n=e.sent,null===(r=this.messageSandbox)||void 0===r||r.syncSend("start",n),e.abrupt("return",Promise.resolve(!0));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"stopBackgroundScript",value:function(e){var t=this;return new Promise((function(r,n){var a;null===(a=t.messageSandbox)||void 0===a||a.syncSend("stop",e).then((function(e){r(e)})).catch((function(e){t.logger.error("backscript stop error",b.E(e)),n(e)}))}))}},{key:"buildScriptRunResource",value:(t=(0,w.Z)(O().mark((function e(t){var r,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=Object.assign(t)).selfMetadata&&(n.metadata=jn({},n.metadata),Object.keys(n.selfMetadata).forEach((function(e){n.metadata[e]=n.selfMetadata[e]}))),e.next=4,this.valueManager.getScriptValues(n);case 4:return n.value=e.sent,e.next=7,this.resourceManager.getScriptResources(n);case 7:return n.resource=e.sent,n.flag=ue(16),n.sourceCode=n.code,n.code=yr(n),n.grantMap={},null===(r=n.metadata.grant)||void 0===r||r.forEach((function(e){n.grantMap[e]="ok"})),e.abrupt("return",Promise.resolve(n));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),f}(Ae),(0,u.Z)(In,"hook",new d),Sn=In))||Sn,An=r(34605);function Un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}const Gn=B.Singleton(S,pt)(En=function(e){(0,o.Z)(r,e);var t=Un(r);function r(e,a){var s;return(0,n.Z)(this,r),(s=t.call(this,e,"system")).scriptDAO=new K,s.systemConfig=a,s.scriptManager=B.instance(xt),s.loggerDAO=new G,s}return(0,a.Z)(r,[{key:"init",value:function(){var e=this,t=function(){fetch("".concat(hr,"api/v1/system/version?version=").concat(dr)).then((function(e){return e.json()})).then((function(e){chrome.storage.local.get(["notice"],(function(t){t.notice!==e.data.notice&&chrome.storage.local.set({notice:e.data.notice,setRead:!1}),chrome.storage.local.set({version:e.data.version})}))}))};t(),setInterval((function(){t()}),216e5),chrome.runtime.onInstalled.addListener((function(e){"install"===e.reason?chrome.tabs.create({url:"https://docs.scriptcat.org/"}):"update"===e.reason&&chrome.tabs.create({url:"https://docs.scriptcat.org/docs/change/#".concat(dr)})})),this.message.setHandler("ping",(function(){return Promise.resolve("pong")})),this.message.setHandler("externalMessage",function(){var t=(0,w.Z)(O().mark((function t(r,n){var a,s,o,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.action,s=n.name,o=n.namespace,"isInstalled"!==a){t.next=8;break}return t.next=4,e.scriptDAO.findByNameAndNamespace(s,o);case 4:if(!(i=t.sent)){t.next=7;break}return t.abrupt("return",Promise.resolve({installed:!0,version:i.metadata.version&&i.metadata.version[0]}));case 7:return t.abrupt("return",Promise.resolve({installed:!1}));case 8:return t.abrupt("return",Promise.resolve(!1));case 9:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()),this.listenEvent("connectVSCode",this.connectVSCode.bind(this)),this.reconnectVSCode(),this.clearLogger()}},{key:"reconnectVSCode",value:function(){var e,t=this,r=function(){t.wsVscode||t.connectVSCode()};this.systemConfig.vscodeReconnect&&(r(),e=setInterval((function(){r()}),3e4)),pt.hook.addListener("update",(function(t,n){"vscodeReconnect"===t&&(n?e=setInterval((function(){r()}),3e4):clearInterval(e))}))}},{key:"connectVSCode",value:function(){var e=this;this.wsVscode&&this.wsVscode.close();try{this.wsVscode=new WebSocket(this.systemConfig.vscodeUrl)}catch(e){return void this.logger.debug("vscode连接失败",b.E(e))}this.wsVscode.addEventListener("open",(function(){e.wsVscode.send('{"action":"hello"}')})),this.wsVscode.addEventListener("message",function(){var t=(0,w.Z)(O().mark((function t(r){var n,a,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=JSON.parse(r.data),t.t0=n.action,t.next="onchange"===t.t0?4:10;break;case 4:return a=n.data.script,t.next=7,Me(a,"",(0,An.Z)(n.data.uri,An.Z.URL));case 7:return s=t.sent,e.scriptManager.event.upsertHandler(s,"vscode"),t.abrupt("break",10);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.wsVscode.addEventListener("error",(function(t){e.wsVscode=void 0,e.logger.debug("vscode连接失败",b.E(t))})),this.wsVscode.addEventListener("close",(function(){e.wsVscode=void 0,e.logger.debug("vscode连接关闭")}))}},{key:"getNotice",value:function(){return new Promise((function(e){chrome.storage.local.get(["notice","isRead"],(function(t){e({notice:t.notice,isRead:t.isRead})}))}))}},{key:"setRead",value:function(e){chrome.storage.local.set({isRead:e})}},{key:"getVersion",value:function(){return new Promise((function(e){chrome.storage.local.get(["version"],(function(t){e(t.version)}))}))}},{key:"clearLogger",value:function(){var e=this;setInterval((function(){chrome.storage.local.get(["lastClearLoggerTime"],(function(t){var r=t.lastClearLoggerTime||0,n=(new Date).getTime();n-r>36e5&&(chrome.storage.local.set({lastClearLoggerTime:n}),e.loggerDAO.deleteBefore(new Date(n-24*e.systemConfig.logCleanCycle*60*60*1e3).getTime()))}))}),6e4)}}]),r}(Ae))||En;function Ln(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t1&&void 0!==l[1]&&l[1],(n=this.logger.with({syncDelete:t.syncDelete})).info("start cloud sync"),e.prev=3,e.next=6,Vr.create(t.filesystem,t.params[t.filesystem]);case 6:return a=e.sent,e.next=9,Vr.mkdirAll(a,"ScriptCat/sync");case 9:return e.next=11,a.openDir("ScriptCat/sync");case 11:a=e.sent,e.next=20;break;case 14:throw e.prev=14,e.t0=e.catch(3),n.error("create filesystem error",b.E(e.t0),{type:t.filesystem}),fe("同步系统连接失败",ge(e.t0)),r&&(this.systemConfig.cloudSync=Fn(Fn({},this.systemConfig.cloudSync),{},{enable:!1})),e.t0;case 20:return s=[],o=function(){var e=(0,w.Z)(O().mark((function e(t,r){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("sync"!==r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,u.pushScript(a,t);case 4:u.updateFileDigest(a);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),s.push((function(){return xt.hook.removeListener("upsert",o)})),xt.hook.addListener("upsert",o),t.syncDelete&&(i=function(e){u.deleteCloudScript(a,e)},xt.hook.addListener("delete",i),s.push((function(){return xt.hook.removeListener("delete",i)}))),c=setInterval((0,w.Z)(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u.syncOnce(a);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),fe("同步失败,请检查同步配置",ge(e.t0));case 8:case"end":return e.stop()}}),e,null,[[0,5]])}))),36e5),s.push((function(){clearInterval(c)})),e.prev=27,e.next=30,this.syncOnce(a);case 30:e.next=35;break;case 32:e.prev=32,e.t1=e.catch(27),fe("同步失败,请检查同步配置",ge(e.t1));case 35:return e.abrupt("return",Promise.resolve((function(){n.info("stop cloud sync"),s.forEach((function(e){return e()}))})));case 36:case"end":return e.stop()}}),e,this,[[3,14],[27,32]])}))),function(e){return h.apply(this,arguments)})},{key:"syncOnce",value:(d=(0,w.Z)(O().mark((function e(t){var r,n,a,s,o,i,c=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logger.info("start sync once"),e.next=3,t.list();case 3:return r=e.sent,n=new Map,e.next=7,this.storage.get("file_digest");case 7:if(e.t0=e.sent,e.t0){e.next=10;break}e.t0={};case 10:return a=e.t0,r.forEach((function(e){if(e.name.endsWith(".user.js")){var t=e.name.substring(0,e.name.length-8),r=n.get(t);r||(r={},n.set(t,r)),r.script=e}else if(e.name.endsWith(".meta.json")){var a=e.name.substring(0,e.name.length-10),s=n.get(a);s||(s={},n.set(a,s)),s.meta=e}})),e.next=14,this.scriptDAO.table.toArray();case 14:return s=e.sent,o=new Map,s.forEach((function(e){o.set(e.uuid,e)})),i=[],n.forEach((function(e,r){var n=o.get(r);if(n)return e.script?(a[e.script.name]===e.script.digest||((n.updatetime||n.createtime)>e.script.updatetime?i.push(c.pushScript(t,n)):i.push(c.pullScript(t,e,n))),void o.delete(r)):void i.push(new Promise((function(r){var a=function(){var a=(0,w.Z)(O().mark((function a(){var s,o;return O().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.open(e.meta);case 2:return s=a.sent,a.next=5,s.read("string");case 5:if(o=a.sent,!JSON.parse(o).isDeleted){a.next=11;break}n&&(c.scriptManager.event.deleteHandler(n.id),fe("脚本删除同步","脚本".concat(n.name,"已被删除"))),a.next=13;break;case 11:return a.next=13,t.delete(e.meta.path);case 13:r();case 14:case"end":return a.stop()}}),a)})));return function(){return a.apply(this,arguments)}}();a()})));e.script&&i.push(c.pullScript(t,e))})),o.forEach((function(e){i.push(c.pushScript(t,e))})),e.next=22,Promise.allSettled(i);case 22:return this.logger.info("sync complete"),e.next=25,this.updateFileDigest(t);case 25:return e.abrupt("return",Promise.resolve());case 26:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"updateFileDigest",value:(f=(0,w.Z)(O().mark((function e(t){var r,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.list();case 2:return r=e.sent,n={},r.forEach((function(e){n[e.name]=e.digest})),e.next=7,this.storage.set("file_digest",n);case 7:return e.abrupt("return",Promise.resolve());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"deleteCloudScript",value:(p=(0,w.Z)(O().mark((function e(t,r){var n,a,s;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(r.uuid,".user.js"),a=this.logger.with({scriptId:r.id,name:r.name,file:n}),e.prev=2,e.next=5,t.delete(n);case 5:return e.next=7,t.create("".concat(r.uuid,".meta.json"));case 7:return s=e.sent,e.next=10,s.write(JSON.stringify({uuid:r.uuid,origin:r.origin,downloadUrl:r.downloadUrl,checkUpdateUrl:r.checkUpdateUrl,isDeleted:!0}));case 10:a.info("delete success"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),a.error("delete file error",b.E(e.t0));case 16:return e.abrupt("return",Promise.resolve());case 17:case"end":return e.stop()}}),e,this,[[2,13]])}))),function(e,t){return p.apply(this,arguments)})},{key:"pushScript",value:(l=(0,w.Z)(O().mark((function e(t,r){var n,a,s,o;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(r.uuid,".user.js"),a=this.logger.with({scriptId:r.id,name:r.name,file:n}),e.prev=2,e.next=5,t.create(n);case 5:return s=e.sent,e.next=8,s.write(r.code);case 8:return e.next=10,t.create("".concat(r.uuid,".meta.json"));case 10:return o=e.sent,e.next=13,o.write(JSON.stringify({uuid:r.uuid,origin:r.origin,downloadUrl:r.downloadUrl,checkUpdateUrl:r.checkUpdateUrl}));case 13:a.info("push script success"),e.next=20;break;case 16:throw e.prev=16,e.t0=e.catch(2),a.error("push script error",b.E(e.t0)),e.t0;case 20:return e.abrupt("return",Promise.resolve());case 21:case"end":return e.stop()}}),e,this,[[2,16]])}))),function(e,t){return l.apply(this,arguments)})},{key:"pullScript",value:(c=(0,w.Z)(O().mark((function e(t,r,n){var a,s,o,i,c,u,l;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.logger.with({scriptId:(null==n?void 0:n.id)||-1,name:(null==n?void 0:n.name)||"",file:r.script.name}),e.prev=1,e.next=4,t.open(r.script);case 4:return s=e.sent,e.next=7,s.read("string");case 7:return o=e.sent,e.next=10,t.open(r.meta);case 10:return i=e.sent,e.next=13,i.read("string");case 13:return c=e.sent,u=JSON.parse(c),e.next=17,Me(o,(null==n?void 0:n.downloadUrl)||u.downloadUrl||"",(null==n?void 0:n.uuid)||u.uuid);case 17:(l=e.sent).origin=l.origin||u.origin,this.scriptManager.event.upsertHandler(l,"sync"),a.info("pull script success"),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(1),a.error("pull script error",b.E(e.t0));case 26:return e.abrupt("return",Promise.resolve());case 27:case"end":return e.stop()}}),e,this,[[1,23]])}))),function(e,t,r){return c.apply(this,arguments)})},{key:"backup",value:(i=(0,w.Z)(O().mark((function e(t){var r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getScriptBackupData();case 2:return e.t0=e.sent,e.t1=[],r={script:e.t0,subscribe:e.t1},e.next=7,new qn(t).export(r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"getScriptBackupData",value:(r=(0,w.Z)(O().mark((function e(){var t,r,n=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.scriptDAO.table.toArray();case 2:return t=e.sent,r=t.map(function(){var e=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.generateScriptBackupData(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.abrupt("return",Promise.all(r));case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"generateScriptBackupData",value:(t=(0,w.Z)(O().mark((function e(t){var r,n,a,s,o,i;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={code:t.code,options:{options:this.scriptOption(t),settings:{enabled:t.status===$,position:t.sort},meta:{name:t.name,uuid:t.uuid,sc_uuid:t.uuid,modified:t.updatetime,file_url:t.downloadUrl,subscribe_url:t.subscribeUrl}},requires:[],requiresCss:[],resources:[]},n={data:{},ts:(new Date).getTime()},e.next=4,this.valueManager.getValues(t);case 4:return a=e.sent,Object.keys(a).forEach((function(e){n.data[e]=a[e].value})),e.next=8,this.resourceManager.getRequireResource(t);case 8:return s=e.sent,e.next=11,this.resourceManager.getRequireCssResource(t);case 11:return o=e.sent,e.next=14,this.resourceManager.getResourceResource(t);case 14:return i=e.sent,r.requires=this.resourceToBackdata(s),r.requiresCss=this.resourceToBackdata(o),r.resources=this.resourceToBackdata(i),r.storage=n,e.abrupt("return",Promise.resolve(r));case 20:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"resourceToBackdata",value:function(e){var t=this,r=[];return Object.keys(e).forEach((function(n){r.push({meta:{name:t.getUrlName(e[n].url),url:e[n].url,ts:e[n].updatetime||e[n].createtime,mimetype:e[n].contentType},source:e[n].content||void 0,base64:e[n].base64})})),r}},{key:"getUrlName",value:function(e){var t=e.indexOf("?");return-1!==t&&(e=e.substring(0,t)),-1!==(t=e.lastIndexOf("/"))&&(e=e.substring(t+1)),e}},{key:"scriptOption",value:function(e){return{check_for_updates:!1,comment:null,compat_foreach:!1,compat_metadata:!1,compat_prototypes:!1,compat_wrappedjsobject:!1,compatopts_for_requires:!0,noframes:null,override:{merge_connects:!0,merge_excludes:!0,merge_includes:!0,merge_matches:!0,orig_connects:e.metadata.connect||[],orig_excludes:e.metadata.exclude||[],orig_includes:e.metadata.include||[],orig_matches:e.metadata.match||[],orig_noframes:!!e.metadata.noframe||null,orig_run_at:e.metadata.run_at&&e.metadata.run_at[0]||"document-idle",use_blockers:[],use_connects:[],use_excludes:[],use_includes:[],use_matches:[]},run_at:null}}}]),g}(Ae))||Hn;function Qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return(0,i.Z)(this,r)}}var Xn=B.Singleton(S,xt,pt)((Wn=function(e){(0,o.Z)(f,e);var t,r,i,c,l,p=Qn(f);function f(e,t,r){var a;return(0,n.Z)(this,f),a=p.call(this,e,"subscribe"),(0,u.Z)((0,s.Z)(a),"subscribeDAO",new ne),(0,u.Z)((0,s.Z)(a),"scriptDAO",new K),a.systemConfig=r,a.scriptManager=t,a}return(0,a.Z)(f,[{key:"start",value:function(){var e=this;this.listenEvent("upsert",this.upsertHandler.bind(this)),this.listenEvent("checkUpdate",(function(t){return e.checkUpdate(t,"user")})),this.listenEvent("delete",this.deleteHandler.bind(this)),f.hook.addListener("upsert",this.upsertScript.bind(this)),setInterval((function(){e.systemConfig.checkScriptUpdateCycle&&(e.logger.debug("start check update"),e.subscribeDAO.table.where("checktime").belowOrEqual((new Date).getTime()-1e3*e.systemConfig.checkScriptUpdateCycle).toArray().then((function(t){t.forEach((function(t){(e.systemConfig.updateDisableScript||t.status!==re)&&e.checkUpdate(t.id,"system")}))})))}),6e5)}},{key:"upsertHandler",value:(l=(0,w.Z)(O().mark((function e(t,r){var n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.logger.with({subscribeId:t.id,name:t.name}),e.prev=1,e.next=4,this.subscribeDAO.save(t);case 4:return n.info("upsert subscribe success"),f.hook.trigger("upsert",t,r),e.abrupt("return",Promise.resolve(t.id));case 9:return e.prev=9,e.t0=e.catch(1),n.error("upsert subscribe error",b.E(e.t0)),e.abrupt("return",Promise.reject(e.t0));case 13:case"end":return e.stop()}}),e,this,[[1,9]])}))),function(e,t){return l.apply(this,arguments)})},{key:"deleteHandler",value:(c=(0,w.Z)(O().mark((function e(t){var r,n,a=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.logger.with({subscribeId:t}),e.next=3,this.subscribeDAO.findById(t);case 3:if(n=e.sent){e.next=7;break}return r.warn("subscribe not found"),e.abrupt("return",Promise.resolve(!1));case 7:return e.next=9,this.scriptDAO.table.where("subscribeUrl").equals(n.url).toArray();case 9:return e.sent.forEach((function(e){a.scriptManager.event.deleteHandler(e.id)})),e.next=13,this.subscribeDAO.delete(t);case 13:return r.info("delete subscribe success"),e.abrupt("return",Promise.resolve(!0));case 15:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"checkUpdate",value:(i=(0,w.Z)(O().mark((function e(t,r){var n,a,s,o,i,c;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.subscribeDAO.findById(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",Promise.resolve(!1));case 5:return a=this.logger.with({subscribeId:n.id,name:n.name}),this.subscribeDAO.update(t,{checktime:(new Date).getTime()}),e.prev=7,e.next=10,ke(n.url,r,!1,n.url);case 10:if(s=e.sent,o=s.metadata){e.next=15;break}return a.error("parse metadata failed"),e.abrupt("return",Promise.resolve(!1));case 15:if(i=o.version&&o.version[0]){e.next=19;break}return a.error("parse version failed",{version:o.version[0]}),e.abrupt("return",Promise.resolve(!1));case 19:if((c=n.metadata.version&&n.metadata.version[0])||(c="0.0.0"),!he(i,c,a)){e.next=23;break}return e.abrupt("return",Promise.resolve(!1));case 23:return this.openUpdatePage(s),e.abrupt("return",Promise.resolve(!0));case 27:return e.prev=27,e.t0=e.catch(7),a.error("check update failed",b.E(e.t0)),e.abrupt("return",Promise.resolve(!1));case 31:case"end":return e.stop()}}),e,this,[[7,27]])}))),function(e,t){return i.apply(this,arguments)})},{key:"openUpdatePage",value:(r=(0,w.Z)(O().mark((function e(t){var r,n;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.logger.with({url:t.url}),!this.systemConfig.silenceUpdateScript){e.next=15;break}return e.prev=2,e.next=5,_e(t.code,t.url);case 5:if(!me((n=e.sent).oldSubscribe.metadata,n.metadata)){e.next=10;break}return r.info("silence update subscribe"),this.upsertHandler(n),e.abrupt("return");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),r.error("prepare script failed",b.E(e.t0));case 15:W.getInstance().set(Ie.scriptInfo(t.uuid),t),chrome.tabs.create({url:"/src/install.html?uuid=".concat(t.uuid)});case 17:case"end":return e.stop()}}),e,this,[[2,12]])}))),function(e){return r.apply(this,arguments)})},{key:"upsertScript",value:(t=(0,w.Z)(O().mark((function e(t){var r,n,a,s,o,i,c,u=this;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.logger.with({subscribeId:t.id,name:t.name}),n=[],a=[],s=t.metadata.scripturl||[],o=Object.keys(t.scripts),s.forEach((function(e){o.includes(e)||n.push(e)})),o.forEach((function(e){s.includes(e)||a.push(t.scripts[e])})),i=[[],[]],c=[],n.forEach((function(e){c.push((0,w.Z)(O().mark((function r(){var n;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,u.scriptManager.installByUrl(e,"subscribe",t.url);case 2:return n=r.sent,t.scripts[e]={url:e,uuid:n.uuid},i[0].push(n.name),r.abrupt("return",Promise.resolve(!0));case 6:case"end":return r.stop()}}),r)})))())})),a.forEach((function(e){c.push((0,w.Z)(O().mark((function t(){var r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u.scriptDAO.findByUUID(e.uuid);case 2:return(r=t.sent)&&(i[1].push(r.name),u.scriptManager.event.deleteHandler(r.id)),t.abrupt("return",Promise.resolve(!0));case 5:case"end":return t.stop()}}),t)})))())})),e.next=13,Promise.allSettled(c);case 13:return fe("订阅更新","安装了:".concat(i[0].join(","),"\n删除了:").concat(i[1].join("\n"))),r.info("subscribe update",{install:i[0],update:i[1]}),e.abrupt("return",Promise.resolve(!0));case 16:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),f}(Ae),(0,u.Z)(Wn,"hook",new d),Jn=Wn))||Jn;E.version(1).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,createtime,updatetime,checktime"}),E.version(2).stores({logger:"++id,level,origin,createtime",permission:"++id,[scriptId+permission+permissionValue],createtime,updatetime"}),E.version(3).stores({logger:"++id,level,title,origin,createtime"}),E.version(4).stores({value:"++id,scriptId,namespace,key,createtime"}),E.version(5).stores({logger:"++id,level,origin,createtime,title,[origin+title],[level+origin+title]"}),E.version(6).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,runStatus,createtime,updatetime,checktime"}),E.version(7).stores({resource:"++id,&url,content,type,createtime,updatetime",resourceLink:"++id,url,scriptId,createtime"}),E.version(8).stores({logger:"++id,level,origin,createtime"}),E.version(9).stores({logger:"++id,level,scriptId,origin,createtime"}),E.version(10).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,sort,status,runStatus,createtime,updatetime,checktime"}).upgrade((function(e){return e.table("scripts").toCollection().modify((function(e){e.sort=0}))})),E.version(11).stores({export:"++id,&uuid,scriptId"}),E.version(12).stores({value:"++id,scriptId,storageName,key,createtime"}).upgrade((function(e){e.table("value").toCollection().modify((function(e){e.namespace&&(e.storageName=e.namespace,delete e.namespace)}))})),E.version(13).stores({subscribe:"++id,&url,createtime,updatetime,checktime",scripts:"++id,&uuid,name,namespace,author,origin_domain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",sync:"++id,&key,[user+device+type],createtime"}),E.version(14).stores({value:"++id,[scriptId+key],[storageName+key]"}),E.version(15).stores({permission:"++id,scriptId,[scriptId+permission+permissionValue],createtime,updatetime"}),E.version(16).stores({scripts:"++id,&uuid,name,namespace,author,originDomain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",logger:"++id,level,createtime"}).upgrade(function(){var e=(0,w.Z)(O().mark((function e(t){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.table("export").clear();case 2:return e.abrupt("return",t.table("scripts").toCollection().modify((function(e){e.origin_domain&&(e.originDomain=e.origin_domain),e.checkupdate_url&&(e.checkUpdateUrl=e.checkupdate_url),e.download_url&&(e.downloadUrl=e.download_url)})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),E.version(17).stores({export:"++id,&scriptId"}),new k({debug:!1,writer:new D(new G),labels:{env:"background"}}).logger().debug("background start");var $n=new C;$n.start(),B.registerInstance(C,$n).alias([S,M]),function(e,t){t.setHandler("log",(function(t,r){e.save(r)}))}(new G,$n),B.instance(pt).init(),B.instance(Gn).init();var Kn=new He($n),ea=new It($n,$n),ta=new Tn($n,Kn,ea);B.registerInstance(Tn,ta),ta.start(),ea.start(),Kn.start(),B.instance(xt).start(),B.instance(Xn).start(),B.instance(Yn).start(),window.onload=function(){var e=new j(sandbox);ta.startSandbox(e),$n.setSandbox(sandbox)},$n.setHandler("sandboxOnload",(function(){return Promise.resolve(!0)})),new Cn($n,new Wr).start()},43914:(e,t,r)=>{var n={"./align-attributes.js":2672,"./better-use-match.js":82162,"./compat-grant.js":45644,"./compat-headers.js":73285,"./filename-user.js":18039,"./metadata-spacing.js":39877,"./no-invalid-grant.js":20070,"./no-invalid-headers.js":18754,"./no-invalid-metadata.js":91763,"./require-attribute-space-prefix.js":14350,"./require-description.js":70230,"./require-name.js":18295,"./require-version.js":43880,"./use-download-and-update-url.js":52215,"./use-homepage-and-url.js":11933};function a(e){var t=s(e);return r(t)}function s(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=s,e.exports=a,a.id=43914},42480:()=>{}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var s=r[e]={id:e,loaded:!1,exports:{}};return t[e].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=t,e=[],n.O=(t,r,a,s)=>{if(!r){var o=1/0;for(l=0;l=s)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(i=!1,s0&&e[l-1][2]>s;l--)e[l]=e[l-1];e[l]=[r,a,s]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=352,(()=>{var e={352:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var a,s,[o,i,c]=r,u=0;if(o.some((t=>0!==e[t]))){for(a in i)n.o(i,a)&&(n.m[a]=i[a]);if(c)var l=c(n)}for(t&&t(r);un(23771)));a=n.O(a)})(); \ No newline at end of file diff --git a/Scriptcat/src/confirm.html b/Scriptcat/src/confirm.html new file mode 100755 index 0000000..ddde786 --- /dev/null +++ b/Scriptcat/src/confirm.html @@ -0,0 +1,24 @@ + + + + + + Confirm - ScriptCat + + +
+ + + diff --git a/Scriptcat/src/confirm.js b/Scriptcat/src/confirm.js new file mode 100755 index 0000000..ecf3ffd --- /dev/null +++ b/Scriptcat/src/confirm.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t={46182:(e,t,n)=>{var r=n(67294),a=n(20745),i=(n(48945),n(15671)),o=n(43144),c=n(60136),s=n(27121),l=n(61120),u=n(15861),d=n(4942),f=n(64687),h=n.n(f),p=n(43528),m=n(92826),g=n(71002);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var y=function(){function e(){(0,i.Z)(this,e),(0,d.Z)(this,"hookMap",{})}return(0,o.Z)(e,[{key:"trigger",value:function(e){if(this.hookMap[e]){for(var t=[],n=arguments.length,r=new Array(n>1?n-1:0),a=1;a-1&&this.hookMap[e].splice(n,1)}}}]),e}(),v=n(42982),b=n(27484),w=n.n(b),k={debug:10,info:100,warn:1e3,error:1e4};function A(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1?n-1:0),a=1;a2?n-2:0),a=2;a=k[this.core.level]&&this.core.writer.write(e,t,A(this.label,r)),this.core.debug){"object"===(0,g.Z)(t)&&(t=JSON.stringify(t));var i="".concat(w()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(e,"] msg=").concat(t," label=").concat(JSON.stringify(A(this.label,r)));switch(e){case"error":console.error(i);break;case"warn":console.warn(i);break;default:console.info(i)}}j.hook.trigger("log",{level:e,message:t,label:r})}},{key:"with",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r2&&r.createElement(ie.Z,{onClick:M(!0,2),status:"success"},"临时允许全部",null==a?void 0:a.permissionContent),r.createElement(ie.Z,{onClick:M(!0,5),status:"success"},"永久允许此",null==a?void 0:a.permissionContent),s>2&&r.createElement(ie.Z,{onClick:M(!0,4),status:"success"},"永久允许全部",null==a?void 0:a.permissionContent))),r.createElement("div",null,r.createElement(ae.Z,null,r.createElement(ie.Z,{onClick:M(!1,1),status:"danger"},"拒绝一次"),r.createElement(ie.Z,{onClick:M(!1,3),status:"danger"},"临时拒绝此",null==a?void 0:a.permissionContent),s>2&&r.createElement(ie.Z,{onClick:M(!1,2),status:"danger"},"临时拒绝全部",null==a?void 0:a.permissionContent),r.createElement(ie.Z,{onClick:M(!1,5),status:"danger"},"永久拒绝此",null==a?void 0:a.permissionContent),s>2&&r.createElement(ie.Z,{onClick:M(!1,4),status:"danger"},"永久拒绝全部",null==a?void 0:a.permissionContent)))))};function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var a=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var se=function(e){(0,c.Z)(n,e);var t=ce(n);function n(){var e;return(0,i.Z)(this,n),e=t.call(this),(0,d.Z)((0,$.Z)(e),"tableName","scripts"),e.table=C.table(e.tableName),e}return(0,o.Z)(n,[{key:"findByName",value:function(e){return this.findOne({name:e})}},{key:"findByNameAndNamespace",value:function(e,t){return t?this.findOne({name:e,namespace:t}):this.findOne({name:e})}},{key:"findByUUID",value:function(e){return this.findOne({uuid:e})}},{key:"findByUUIDAndSubscribeUrl",value:function(e,t){return this.findOne({subscribeUrl:t,uuid:e})}},{key:"findByOriginAndSubscribeUrl",value:function(e,t){return this.findOne({subscribeUrl:t,origin:e})}}]),n}(T);function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var a=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var ue,de=function(e){(0,c.Z)(n,e);var t=le(n);function n(){var e;return(0,i.Z)(this,n),e=t.call(this),(0,d.Z)((0,$.Z)(e),"tableName","subscribe"),e.table=C.table(e.tableName),e}return(0,o.Z)(n,[{key:"findByUrl",value:function(e){return this.findOne({url:e})}}]),n}(T),fe=F.Singleton(z)(ue=function(){function e(t){(0,i.Z)(this,e),(0,d.Z)(this,"scriptDAO",new se),(0,d.Z)(this,"subscribeDAO",new de),this.internal=t}return(0,o.Z)(e,[{key:"dispatchEvent",value:function(e,t){return this.internal.syncSend("script-".concat(e),t)}},{key:"upsert",value:function(e){return this.dispatchEvent("upsert",e)}},{key:"enable",value:function(e){return this.dispatchEvent("enable",e)}},{key:"disable",value:function(e){return this.dispatchEvent("disable",e)}},{key:"delete",value:function(e){return this.dispatchEvent("delete",e)}},{key:"fetchScriptInfo",value:function(e){return this.dispatchEvent("fetch",e)}},{key:"checkUpdate",value:function(e){return this.dispatchEvent("checkUpdate",e)}},{key:"importByUrl",value:function(e){return this.dispatchEvent("importByUrl",e)}},{key:"exclude",value:function(e,t,n){return this.dispatchEvent("exclude",{id:e,exclude:t,remove:n})}}]),e}())||ue,he=n(45409),pe=n(67710),me=n(82695),ge=n(65630),Me=n(66807),ye=n(63086),ve=n(72297),be=n(31944),we=n(77217),ke=n(15959),Ae=n(15386),xe=n(11910),je=n(1290),De=n(21279),Ze=n(52438),Ie={};Ie.styleTagTransform=J(),Ie.setAttributes=U(),Ie.insert=Q().bind(null,"head"),Ie.domAPI=Y(),Ie.insertStyleElement=W();L()(Ze.Z,Ie);Ze.Z&&Ze.Z.locals&&Ze.Z.locals;function Ee(e){if("auto"===e){var t=window.matchMedia("(prefers-color-scheme: dark)"),n=function(e){e?(document.body.setAttribute("arco-theme","dark"),je.j6.setTheme("vs-dark")):(document.body.removeAttribute("arco-theme"),je.j6.setTheme("vs"))};t.addEventListener("change",(function(e){n(e.matches)})),n(t.matches)}else document.body.setAttribute("arco-theme",e),je.j6.setTheme("dark"===e?"vs-dark":"vs")}const Ne=function(e){var t=e.children,n=e.className,a=e.pageName,i=(0,r.useState)(localStorage.lightMode||"auto"),o=(0,K.Z)(i,2),c=o[0],s=o[1],l=(0,r.useRef)(null),d=(0,r.useState)(!1),f=(0,K.Z)(d,2),p=f[0],m=f[1];return Ee(c),r.createElement(he.Z,null,r.createElement(he.Z.Header,{style:{height:"50px",borderBottom:"1px solid var(--color-neutral-3)"},className:"flex items-center justify-between p-x-4"},r.createElement(pe.Z,{title:"链接导入",visible:p,onOk:(0,u.Z)(h().mark((function e(){var t;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=F.instance(fe),e.prev=1,e.next=4,t.importByUrl(l.current.dom.value);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),re.Z.error("链接导入失败: ".concat(e.t0));case 9:m(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])}))),onCancel:function(){m(!1)}},r.createElement(me.Z,{ref:l,defaultValue:""})),r.createElement("div",{className:"flex row items-center"},r.createElement("img",{style:{height:"40px"},src:"/assets/logo.png",alt:"ScriptCat"}),r.createElement(ge.Z.Title,{heading:4,className:"!m-0"},"ScriptCat")),r.createElement(ae.Z,{size:"small",className:"action-tools"},"options"===a&&r.createElement(Me.Z,{droplist:r.createElement(ye.Z,{style:{maxHeight:"100%",width:"calc(100% + 10px)"}},r.createElement(ye.Z.Item,{key:"/script/editor"},r.createElement("a",{href:"#/script/editor"},r.createElement(De.Mdh,null)," 添加普通脚本")),r.createElement(ye.Z.Item,{key:"background"},r.createElement("a",{href:"#/script/editor?template=background"},r.createElement(De.NJc,null)," 添加后台脚本")),r.createElement(ye.Z.Item,{key:"crontab"},r.createElement("a",{href:"#/script/editor?template=crontab"},r.createElement(De.Phe,null)," 添加定时脚本")),r.createElement(ye.Z.Item,{key:"link",onClick:function(){m(!0)}},r.createElement(ve.Z,null)," 链接导入")),position:"bl"},r.createElement(ie.Z,{type:"text",size:"small",style:{color:"var(--color-text-1)"},className:"!text-size-sm"},r.createElement(De.QEj,null)," 新建脚本 ",r.createElement(be.Z,null))),"options"===a&&r.createElement(Me.Z,{droplist:r.createElement(ye.Z,{style:{maxHeight:"100%",width:"calc(100% + 10px)"}},r.createElement(ye.Z.Item,{key:"scriptcat/docs/use/"},r.createElement("a",{href:"https://docs.scriptcat.org/docs/use/",target:"_blank",rel:"noreferrer"},r.createElement(De.Mdh,null)," 使用指南")),r.createElement(ye.Z.Item,{key:"scriptcat/docs/dev/"},r.createElement("a",{href:"https://docs.scriptcat.org/docs/dev/",target:"_blank",rel:"noreferrer"},r.createElement(De.Mdh,null)," API文档")),r.createElement(ye.Z.Item,{key:"scriptcat/docs/learn/"},r.createElement("a",{href:"https://learn.scriptcat.org/docs/%E7%AE%80%E4%BB%8B/",target:"_blank",rel:"noreferrer"},r.createElement(De.Mdh,null)," 开发指南")),r.createElement(ye.Z.Item,{key:"scriptcat/userscript"},r.createElement("a",{href:"https://scriptcat.org/search",target:"_blank",rel:"noreferrer"},r.createElement(ve.Z,null)," 脚本站")),r.createElement(ye.Z.Item,{key:"tampermonkey/bbs"},r.createElement("a",{href:"https://bbs.tampermonkey.net.cn/",target:"_blank",rel:"noreferrer"},r.createElement(ve.Z,null)," 社区论坛")),r.createElement(ye.Z.Item,{key:"GitHub"},r.createElement("a",{href:"https://github.com/scriptscat/scriptcat",target:"_blank",rel:"noreferrer"},r.createElement(we.Z,null)," GitHub"))),position:"bl"},r.createElement(ie.Z,{type:"text",size:"small",style:{color:"var(--color-text-1)"},className:"!text-size-sm"},r.createElement(De.DNM,null)," 外部链接 ",r.createElement(be.Z,null))),r.createElement(Me.Z,{droplist:r.createElement(ye.Z,{onClickMenuItem:function(e){Ee(e),s(e),localStorage.lightMode=e},selectedKeys:[c]},r.createElement(ye.Z.Item,{key:"light"},r.createElement(ke.Z,null)," Light"),r.createElement(ye.Z.Item,{key:"dark"},r.createElement(Ae.Z,null)," Dark"),r.createElement(ye.Z.Item,{key:"auto"},r.createElement(xe.Z,null)," 跟随系统")),position:"bl"},r.createElement(ie.Z,{type:"text",size:"small",icon:r.createElement(r.Fragment,null,"auto"===c&&r.createElement(xe.Z,null),"light"===c&&r.createElement(ke.Z,null),"dark"===c&&r.createElement(Ae.Z,null)),style:{color:"var(--color-text-1)"},className:"!text-size-lg"})))),r.createElement(he.Z,{className:"absolute top-50px bottom-0 w-full ".concat(n),style:{background:"var(--color-fill-2)"}},t))};C.version(1).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,createtime,updatetime,checktime"}),C.version(2).stores({logger:"++id,level,origin,createtime",permission:"++id,[scriptId+permission+permissionValue],createtime,updatetime"}),C.version(3).stores({logger:"++id,level,title,origin,createtime"}),C.version(4).stores({value:"++id,scriptId,namespace,key,createtime"}),C.version(5).stores({logger:"++id,level,origin,createtime,title,[origin+title],[level+origin+title]"}),C.version(6).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,runStatus,createtime,updatetime,checktime"}),C.version(7).stores({resource:"++id,&url,content,type,createtime,updatetime",resourceLink:"++id,url,scriptId,createtime"}),C.version(8).stores({logger:"++id,level,origin,createtime"}),C.version(9).stores({logger:"++id,level,scriptId,origin,createtime"}),C.version(10).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,sort,status,runStatus,createtime,updatetime,checktime"}).upgrade((function(e){return e.table("scripts").toCollection().modify((function(e){e.sort=0}))})),C.version(11).stores({export:"++id,&uuid,scriptId"}),C.version(12).stores({value:"++id,scriptId,storageName,key,createtime"}).upgrade((function(e){e.table("value").toCollection().modify((function(e){e.namespace&&(e.storageName=e.namespace,delete e.namespace)}))})),C.version(13).stores({subscribe:"++id,&url,createtime,updatetime,checktime",scripts:"++id,&uuid,name,namespace,author,origin_domain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",sync:"++id,&key,[user+device+type],createtime"}),C.version(14).stores({value:"++id,[scriptId+key],[storageName+key]"}),C.version(15).stores({permission:"++id,scriptId,[scriptId+permission+permissionValue],createtime,updatetime"}),C.version(16).stores({scripts:"++id,&uuid,name,namespace,author,originDomain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",logger:"++id,level,createtime"}).upgrade(function(){var e=(0,u.Z)(h().mark((function e(t){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.table("export").clear();case 2:return e.abrupt("return",t.table("scripts").toCollection().modify((function(e){e.origin_domain&&(e.originDomain=e.origin_domain),e.checkupdate_url&&(e.checkUpdateUrl=e.checkupdate_url),e.download_url&&(e.downloadUrl=e.download_url)})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),C.version(17).stores({export:"++id,&scriptId"});var ze=new z("confirm");F.registerInstance(z,ze).alias([E,Z]),a.createRoot(document.getElementById("root")).render(r.createElement("div",null,r.createElement(Ne,{className:"!flex-col !px-4 box-border"},r.createElement(oe,null))))},27595:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8081),a=n.n(r),i=n(23645),o=n.n(i)()(a());o.push([e.id,'*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}.visible{visibility:visible;}.absolute{position:absolute;}.relative{position:relative;}.bottom-0{bottom:0;}.top-50px{top:50px;}.\\!m-0{margin:0 !important;}.box-border{box-sizing:border-box;}.block{display:block;}.hidden{display:none;}.\\!h-6{height:1.5rem !important;}.h-6{height:1.5rem;}.h-auto{height:auto;}.h-full{height:100%;}.max-w-\\[240px\\]{max-width:240px;}.w-full{width:100%;}.\\!flex,.flex\\!{display:flex !important;}.flex{display:flex;}.flex-1,[flex~="\\31 "]{flex:1 1 0%;}.flex-grow{flex-grow:1;}.\\!flex-row{flex-direction:row !important;}.flex-row{flex-direction:row;}.\\!flex-col{flex-direction:column !important;}.flex-col{flex-direction:column;}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}.items-center{align-items:center;}.justify-end{justify-content:flex-end;}.justify-between{justify-content:space-between;}.gap-10{grid-gap:2.5rem;gap:2.5rem;}.overflow-auto{overflow:auto;}.break-all{word-break:break-all;}.border{border-width:1px;}.\\!p-\\[10px\\]{padding:10px !important;}.p-2{padding:0.5rem;}.p-8px{padding:8px;}.\\!px-4{padding-left:1rem !important;padding-right:1rem !important;}.p-x-4{padding-left:1rem;padding-right:1rem;}.text-center{text-align:center;}.text-left{text-align:left;}.text-end{text-align:end;}.text-\\[12px\\]{font-size:12px;}.text-1{font-size:0.25rem;}.text-2xl{font-size:1.5rem;line-height:2rem;}.text-base{font-size:1rem;line-height:1.5rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.text-xl{font-size:1.25rem;line-height:1.75rem;}.\\!text-size-lg{font-size:1.125rem !important;}.\\!text-size-sm{font-size:0.875rem !important;}.text-size-lg{font-size:1.125rem;}.font-500,.font-medium{font-weight:500;}.color-gray-5{--un-text-opacity:1;color:rgba(107,114,128,var(--un-text-opacity));}[color~="blue"]{--un-text-opacity:1;color:rgba(96,165,250,var(--un-text-opacity));}[color~="cyan"]{--un-text-opacity:1;color:rgba(34,211,238,var(--un-text-opacity));}[color~="green"]{--un-text-opacity:1;color:rgba(74,222,128,var(--un-text-opacity));}[color~="orange"]{--un-text-opacity:1;color:rgba(251,146,60,var(--un-text-opacity));}[color~="purple"]{--un-text-opacity:1;color:rgba(192,132,252,var(--un-text-opacity));}[color~="red"]{--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4;}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}',""]);const c=o},52438:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8081),a=n.n(r),i=n(23645),o=n.n(i)()(a());o.push([e.id,".arco-dropdown-menu-selected {\n background-color: var(--color-fill-2) !important;\n}\n\n.action-tools .arco-dropdown-popup-visible .arco-icon-down {\n transform: rotate(180deg);\n}\n\n.action-tools > .arco-btn {\n padding: 0 8px;\n}\n",""]);const c=o},94748:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},6161:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},51096:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,r.amdO={},e=[],r.O=(t,n,a,i)=>{if(!n){var o=1/0;for(u=0;u=i)&&Object.keys(r.O).every((e=>r.O[e](n[s])))?n.splice(s--,1):(c=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,a,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.e=()=>Promise.resolve(),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=368,(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&!e;)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{r.b=document.baseURI||self.location.href;var e={368:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var a,i,[o,c,s]=n,l=0;if(o.some((t=>0!==e[t]))){for(a in c)r.o(c,a)&&(r.m[a]=c[a]);if(s)var u=s(r)}for(t&&t(n);lr(46182)));a=r.O(a)})(); \ No newline at end of file diff --git a/Scriptcat/src/content.js b/Scriptcat/src/content.js new file mode 100755 index 0000000..45e3a5f --- /dev/null +++ b/Scriptcat/src/content.js @@ -0,0 +1,2 @@ +/*! For license information please see content.js.LICENSE.txt */ +(()=>{var t={7484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",a="minute",o="hour",i="day",s="week",c="month",u="quarter",l="year",f="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),a=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(a,2,"0")},m:function t(e,n){if(e.date()1)return t(i[0])}else{var s=e.name;b[s]=e,a=s}return!r&&a&&(m=a),a||!r&&m},O=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},S=g;S.l=M,S.i=w,S.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function y(t){this.$L=M(t.locale,null,!0),this.parse(t)}var v=y.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(S.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var a=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===h)},v.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return O(t){var r=n(8698).default;function a(){"use strict";t.exports=a=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var a=e&&e.prototype instanceof p?e:p,o=Object.create(a.prototype),i=new x(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return{value:void 0,done:!0}}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=S(i,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=h(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,i),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var d={};function p(){}function y(){}function v(){}var g={};l(g,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(C([])));b&&b!==n&&o.call(b,s)&&(g=b);var w=v.prototype=p.prototype=Object.create(g);function M(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(a,i,s,c){var u=h(t[a],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==r(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var a;this._invoke=function(t,r){function o(){return new e((function(e,a){n(t,r,e,a)}))}return a=a?a.then(o,o):o()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=h(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function $(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function C(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),$(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;$(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:(t,e,n)=>{var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,n)}function e(n,r,a){return e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(e,n,r){var a=[null];a.push.apply(a,n);var o=new(Function.bind.apply(e,a));return r&&t(o,r.prototype),o},e.apply(null,arguments)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n1?n-1:0),a=1;a-1&&this.hookMap[t].splice(n,1)}}}]),t}();function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1?n-1:0),o=1;o2?n-2:0),a=2;a=d[this.core.level]&&this.core.writer.write(t,e,p(this.label,r)),this.core.debug){"object"===s(e)&&(e=JSON.stringify(e));var o="".concat(h()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(t,"] msg=").concat(e," label=").concat(JSON.stringify(p(this.label,r)));switch(t){case"error":console.error(o);break;case"warn":console.warn(o);break;default:console.info(o)}}v.hook.trigger("log",{level:t,message:e,label:r})}},{key:"with",value:function(){for(var n=arguments.length,r=new Array(n),a=0;a1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:0,n=(D[t[e+0]]+D[t[e+1]]+D[t[e+2]]+D[t[e+3]]+"-"+D[t[e+4]]+D[t[e+5]]+"-"+D[t[e+6]]+D[t[e+7]]+"-"+D[t[e+8]]+D[t[e+9]]+"-"+D[t[e+10]]+D[t[e+11]]+D[t[e+12]]+D[t[e+13]]+D[t[e+14]]+D[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&j.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n},L=function(t,e,n){var r=(t=t||{}).random||(t.rng||C)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=r[a];return e}return _(r)};var T=function(){function t(e,n){var a=this;r(this,t),i(this,"disChannelHandlerArray",[]),"function"==typeof e?(this.setHandler(e),this.setCatch(n)):(this.manager=e,this.flag=n,this.setCatch((function(t){v.getInstance().logger(y.E(t)).error("channel error",{flag:a.flag})})),this.setHandler((function(){v.getInstance().logger().warn("channel handler is null")})))}return o(t,[{key:"channel",value:function(t,e){this.manager.nativeSend({action:t,data:e,stream:this.flag,channel:!0})}},{key:"send",value:function(t){this.manager.nativeSend({data:t,stream:this.flag,channel:!0})}},{key:"throw",value:function(t){this.manager.nativeSend({stream:this.flag,error:t,channel:!0}),this.manager.disChannel(this)}},{key:"syncSend",value:function(t,e){var n=this;return this.manager.nativeSend({action:t,data:e,stream:this.flag,channel:!1}),new Promise((function(t,e){n.handler=function(e){t(e)},n.catch=function(t){e(t)}}))}},{key:"setHandler",value:function(t){this.handler=function(e){if("dischannel"===e)return this.manager.disChannel(this),void this.disChannelHandlerArray.forEach((function(t){t("dischannel")}));t(e)}}},{key:"setCatch",value:function(t){this.catch=function(e){t(e),this.manager.disChannel(this),this.disChannelHandlerArray.forEach((function(t){t("dischannel")}))}}},{key:"setDisChannelHandler",value:function(t){this.disChannelHandlerArray.push(t)}},{key:"disChannel",value:function(){this.send("dischannel"),this.manager.disChannel(this)}}]),t}(),A=(Symbol("MessageBroadcast"),function(){function t(e){r(this,t),i(this,"channelMap",new Map),this.nativeSend=e}return o(t,[{key:"channel",value:function(t){t||(t=L());var e=new T(this,t);return this.channelMap.set(t,e),e}},{key:"getChannel",value:function(t){return this.channelMap.get(t)}},{key:"disChannel",value:function(t){this.channelMap.delete(t.flag)}},{key:"free",value:function(){this.channelMap.forEach((function(t){t.disChannelHandlerArray.forEach((function(t){t("free")}))})),this.channelMap.clear()}}]),t}()),H=function(){function t(){r(this,t),i(this,"handlerMap",new Map),i(this,"channelHandlerMap",new Map)}var e,n;return o(t,[{key:"handler",value:(e=$().mark((function t(e,n,r){var a,o,i,s,c,u;return $().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.channel){t.next=4;break}return(a=n.getChannel(e.stream))?e.error?a.catch(e.error):a.handler(e.data):(o=this.channelHandlerMap.get(e.action))&&(a=n.channel(e.stream),o(a,e.action,e.data,r)),t.abrupt("return");case 4:if(!e.stream){t.next=7;break}return e.action?(i=this.handlerMap.get(e.action))&&((s=i(e.action,e.data,r))?s instanceof Promise?s.then((function(t){n.nativeSend({stream:e.stream,data:t})})).catch((function(t){n.nativeSend({error:t.message,stream:e.stream})})):n.nativeSend({stream:e.stream,data:s}):v.getLogger({component:"message"}).warn("handler return is null")):(c=n.getChannel(e.stream))&&(e.error?c.catch(e.error):c.handler(e.data)),t.abrupt("return");case 7:(u=this.handlerMap.get(e.action))&&u(e.action,e.data,r);case 9:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(t){O(o,r,a,i,s,"next",t)}function s(t){O(o,r,a,i,s,"throw",t)}i(void 0)}))},function(t,e,r){return n.apply(this,arguments)})},{key:"setHandler",value:function(t,e){this.handlerMap.set(t,e)}},{key:"setHandlerWithChannel",value:function(t,e){this.channelHandlerMap.set(t,e)}}]),t}();var P=function(t){b(i,t);var e,n,a=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=M(e);if(n){var a=M(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return w(this,t)});function i(t,e){var n;return r(this,i),(n=a.call(this)).eventId=t,n.isContent=e,n.channelManager=new A((function(t){n.nativeSend(t)})),n.relatedTarget=new Map,document.addEventListener((e?"ct":"fd")+t,(function(t){if(t instanceof MouseEvent)n.relatedTarget.set(t.detail,t.relatedTarget);else{var e=t.detail;n.handler(e,n.channelManager,{targetTag:"content"})}})),i.instance||(i.instance=m(n)),n}return o(i,[{key:"getChannel",value:function(t){return this.channelManager.getChannel(t)}},{key:"channel",value:function(t){return this.channelManager.channel(t)}},{key:"disChannel",value:function(t){return this.channelManager.disChannel(t)}},{key:"free",value:function(){return this.channelManager.free()}},{key:"syncSend",value:function(t,e){return this.channelManager.channel().syncSend(t,e)}},{key:"sendCallback",value:function(t,e,n){var r=this.channelManager.channel();r.handler=n,this.nativeSend({action:t,data:e,stream:r.flag,channel:!1})}},{key:"getAndDelRelatedTarget",value:function(t){var e=this.relatedTarget.get(t);return this.relatedTarget.delete(t),e}},{key:"nativeSend",value:function(t){var e=t;if("undefined"!=typeof cloneInto)try{e=cloneInto(e,document.defaultView)}catch(t){console.log(t)}if(e.data&&"object"===s(e.data.relatedTarget)){var n=e.data.relatedTarget;delete e.data.relatedTarget,e.data.relatedTarget=Math.ceil(1e6*Math.random());var r=new MouseEvent((this.isContent?"fd":"ct")+this.eventId,{detail:e.data.relatedTarget,relatedTarget:n});document.dispatchEvent(r)}var a=new CustomEvent((this.isContent?"fd":"ct")+this.eventId,{detail:e});document.dispatchEvent(a)}},{key:"send",value:function(t,e){this.nativeSend({action:t,data:e})}}],[{key:"getInstance",value:function(){return this.instance}}]),i}(H);var R=function(t){b(i,t);var e,n,a=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=M(e);if(n){var a=M(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return w(this,t)});function i(t){var e;return r(this,i),(e=a.call(this)).tag=t,e.reconnect(),e}return o(i,[{key:"reconnect",value:function(){var t=this;this.port=chrome.runtime.connect({name:this.tag}),this.channelManager=new A((function(e){t.nativeSend(e)})),this.port.onMessage.addListener((function(e){t.handler(e,t.channelManager,{targetTag:"content"})})),this.port.onDisconnect.addListener((function(){var e;t.channelManager.free(),null===(e=t.onDisconnect)||void 0===e||e.call(t)}))}},{key:"getChannel",value:function(t){return this.channelManager.getChannel(t)}},{key:"channel",value:function(t){return this.channelManager.channel(t)}},{key:"disChannel",value:function(t){this.channelManager.disChannel(t)}},{key:"free",value:function(){this.channelManager.free()}},{key:"nativeSend",value:function(t){this.port.postMessage(t)}},{key:"send",value:function(t,e){this.port.postMessage({action:t,data:e})}},{key:"syncSend",value:function(t,e){return this.channelManager.channel().syncSend(t,e)}},{key:"broadcast",value:function(t,e,n){this.nativeSend({target:t,action:e,data:n,broadcast:!0})}},{key:"broadcastChannel",value:function(t,e,n){this.nativeSend({target:t,data:{stream:e,channel:!0,data:n},broadcast:!0})}}]),i}(H);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var Y=function(){function t(e,n){r(this,t),this.contentMessage=e,this.internalMessage=n}return o(t,[{key:"start",value:function(t){var e=this;this.contentMessage.setHandler("gmApi",(function(t,n){return e.internalMessage.syncSend(t,n)})),this.contentMessage.setHandler("log",(function(t,n){e.internalMessage.send(t,n)})),this.contentMessage.setHandler("externalMessage",(function(t,n){return e.internalMessage.syncSend(t,n)})),this.contentMessage.setHandler("GM_addElement",(function(t,n){var r,a=n.param,o="";a[1]?(r=function(t){for(var e=1;e{"use strict";var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();const t=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(a.isErrorNoTelemetry(e))throw new a(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function n(e){var n;(n=e)instanceof i||n instanceof Error&&n.name===o&&n.message===o||t.onUnexpectedError(e)}function r(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:a.isErrorNoTelemetry(e)}}return e}const o="Canceled";class i extends Error{constructor(){super(o),this.name=this.message}}class s extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class a extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof a)return e;const t=new a;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class l extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,l.prototype)}}function d(e){const t=this;let n,r=!1;return function(){return r||(r=!0,n=e.apply(t,arguments)),n}}var c;!function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){for(const n of e)if(t(n))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.concat=function*(...e){for(const t of e)for(const e of t)yield e},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);to}]}}(c||(c={}));let u=null;function h(e){return null==u||u.trackDisposable(e),e}function g(e){null==u||u.markAsDisposed(e)}function m(e,t){null==u||u.setParent(e,t)}function f(e){if(c.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function p(e){const t=h({dispose:d((()=>{g(t),e()}))});return t}class b{constructor(){this._toDispose=new Set,this._isDisposed=!1,h(this)}dispose(){this._isDisposed||(g(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{f(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return m(e,this),this._isDisposed?b.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}b.DISABLE_DISPOSED_WARNING=!1;class C{constructor(){this._store=new b,h(this),m(this._store,this)}dispose(){g(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}C.None=Object.freeze({dispose(){}});class y{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,h(this)}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>void 0!==t,this.dispose=()=>{t&&(t(),t=void 0,g(this))},this}}class v{constructor(){this._store=new Map,this._isDisposed=!1,h(this)}dispose(){g(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{f(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}class w{constructor(e){this.element=e,this.next=w.Undefined,this.prev=w.Undefined}}w.Undefined=new w(void 0);class _{constructor(){this._first=w.Undefined,this._last=w.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===w.Undefined}clear(){let e=this._first;for(;e!==w.Undefined;){const t=e.next;e.prev=w.Undefined,e.next=w.Undefined,e=t}this._first=w.Undefined,this._last=w.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new w(e);if(this._first===w.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==w.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==w.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==w.Undefined&&e.next!==w.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===w.Undefined&&e.next===w.Undefined?(this._first=w.Undefined,this._last=w.Undefined):e.next===w.Undefined?(this._last=this._last.prev,this._last.next=w.Undefined):e.prev===w.Undefined&&(this._first=this._first.next,this._first.prev=w.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==w.Undefined;)yield e.element,e=e.next}}let L="undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function S(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const r=n[0],o=t[r];let i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i})),L&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}(t,n)}function N(e,t){if("string"==typeof t){var n=N.mapLangIdx[t]||-1,r=N.mapNlsLang[N.selectLang]||{};n in r&&(t=r[n])}for(var o=[],i=0;i console.log` because `log` has been completed recently.":122,"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.":123,"Controls how suggestions are pre-selected when showing the suggest list.":124,"Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.":125,"Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.":126,"Tab complete will insert the best matching suggestion when pressing tab.":127,"Disable tab completions.":128,"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.":129,"Enables tab completions.":130,"Controls whether filtering and sorting suggestions accounts for small typos.":131,"Controls whether sorting favours words that appear close to the cursor.":132,"Control whether an active snippet prevents quick suggestions.":133,"Controls whether the editor should highlight matches similar to the selection":134,"Controls whether the editor should highlight semantic symbol occurrences.":135,"Controls the number of decorations that can show up at the same position in the overview ruler.":136,"Controls whether a border should be drawn around the overview ruler.":137,"Control the cursor animation style.":138,"Zoom the font of the editor when using mouse wheel and holding `Ctrl`.":139,"Controls the cursor style.":140,"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.":141,"Enables/Disables font ligatures.":142,"Controls whether the cursor should be hidden in the overview ruler.":143,"Render whitespace characters except for single spaces between words.":144,"Controls how the editor should render whitespace characters.":145,"Controls whether the editor should render control characters.":146,"Controls whether the editor should render indent guides.":147,"Controls whether the editor should highlight the active indent guide.":148,"Highlights both the gutter and the current line.":149,"Controls how the editor should render the current line highlight.":150,"Controls whether the editor shows CodeLens":151,"Controls whether the editor has code folding enabled":152,"Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.":153,"Controls whether the fold controls on the gutter are automatically hidden.":154,"Highlight matching brackets when one of them is selected.":155,"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.":156,"Inserting and deleting whitespace follows tab stops.":157,"Remove trailing auto inserted whitespace.":158,"Keep peek editors open even when double clicking their content or when hitting `Escape`.":159,"Controls whether the editor should allow moving selections via drag and drop.":160,"The editor will use platform APIs to detect when a Screen Reader is attached.":161,"The editor will be permanently optimized for usage with a Screen Reader.":162,"The editor is not accessible at this time. Press Alt+F1 for options.":163,"Editor content":164,"Unexpected exception while executing command.":165,"Plain Text":166,"[{0}]\n{1} [{2}]":167,"[{0}]\n{1}":168,"Background color for the highlight of line at the cursor position.":169,"Background color for the border around the line at the cursor position.":170,"Background color of highlighted ranges, like by quick open and find features. The color must not be opaque to not hide underlying decorations.":171,"Background color of the border around highlighted ranges.":172,"Color of the editor cursor.":173,"The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.":174,"Color of whitespace characters in the editor.":175,"Color of the editor indentation guides.":176,"Color of the active editor indentation guides.":177,"Color of editor line numbers.":178,"Color of editor active line number":179,"Id is deprecated. Use 'editorLineNumber.activeForeground' instead.":180,"Color of the editor rulers.":181,"Foreground color of editor code lenses":182,"Background color behind matching brackets":183,"Color for matching brackets boxes":184,"Color of the overview ruler border.":185,"Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.":186,"Foreground color of error squigglies in the editor.":187,"Border color of error squigglies in the editor.":188,"Foreground color of warning squigglies in the editor.":189,"Border color of warning squigglies in the editor.":190,"Foreground color of info squigglies in the editor.":191,"Border color of info squigglies in the editor.":192,"Foreground color of hint squigglies in the editor.":193,"Border color of hint squigglies in the editor.":194,"Border of unnecessary code in the editor.":195,"Opacity of unnecessary code in the editor.":196,"Overview ruler marker color for errors.":197,"Overview ruler marker color for warnings.":198,"Overview ruler marker color for infos.":199,"Overview ruler marker color for matching brackets.":200,"Go to Bracket":201,"Select to Bracket":202,"Move Caret Left":203,"Move Caret Right":204,"Transpose Letters":205,Cut:206,"Cu&&t":207,Copy:208,"&&Copy":209,Paste:210,"&&Paste":211,"Copy With Syntax Highlighting":212,"Show Fixes ({0})":213,"Show Fixes":214,"Quick Fix...":215,"No code actions available":216,"Refactor...":217,"No refactorings available":218,"Source Action...":219,"No source actions available":220,"Organize Imports":221,"No organize imports action available":222,"Toggle Line Comment":223,"&&Toggle Line Comment":224,"Add Line Comment":225,"Remove Line Comment":226,"Toggle Block Comment":227,"Toggle &&Block Comment":228,"Show Editor Context Menu":229,"Soft Undo":230,Find:231,"&&Find":232,"Find With Selection":233,"Find Next":234,"Find Previous":235,"Find Next Selection":236,"Find Previous Selection":237,Replace:238,"&&Replace":239,"Previous match":240,"Next match":241,"Find in selection":242,"Replace All":243,"Toggle Replace mode":244,"Only the first {0} results are highlighted, but all find operations work on the entire text.":245,"{0} of {1}":246,"No Results":247,Unfold:248,"Unfold Recursively":249,Fold:250,"Fold Recursively":251,"Fold All Block Comments":252,"Fold All Regions":253,"Unfold All Regions":254,"Fold All":255,"Unfold All":256,"Fold Level {0}":257,"Editor Font Zoom In":258,"Editor Font Zoom Out":259,"Editor Font Zoom Reset":260,"Made 1 formatting edit on line {0}":261,"Made {0} formatting edits on line {1}":262,"Made 1 formatting edit between lines {0} and {1}":263,"Made {0} formatting edits between lines {1} and {2}":264,"There is no formatter for '{0}'-files installed.":265,"Format Document":266,"There is no document formatter for '{0}'-files installed.":267,"Format Selection":268,"There is no selection formatter for '{0}'-files installed.":269,"No definition found for '{0}'":270,"No definition found":271," – {0} definitions":272,"Go to Definition":273,"Open Definition to the Side":274,"Peek Definition":275,"No implementation found for '{0}'":276,"No implementation found":277," – {0} implementations":278,"Go to Implementation":279,"Peek Implementation":280,"No type definition found for '{0}'":281,"No type definition found":282," – {0} type definitions":283,"Go to Type Definition":284,"Peek Type Definition":285,"Click to show {0} definitions.":286,"Go to Next Problem (Error, Warning, Info)":287,"Go to Previous Problem (Error, Warning, Info)":288,"Go to Next Problem in Files (Error, Warning, Info)":289,"Go to Previous Problem in Files (Error, Warning, Info)":290,"({0}/{1})":291,"Editor marker navigation widget error color.":292,"Editor marker navigation widget warning color.":293,"Editor marker navigation widget info color.":294,"Editor marker navigation widget background.":295,"Show Hover":296,"Loading...":297,"Replace with Previous Value":298,"Replace with Next Value":299,"Copy Line Up":300,"&&Copy Line Up":301,"Copy Line Down":302,"Co&&py Line Down":303,"Move Line Up":304,"Mo&&ve Line Up":305,"Move Line Down":306,"Move &&Line Down":307,"Sort Lines Ascending":308,"Sort Lines Descending":309,"Trim Trailing Whitespace":310,"Delete Line":311,"Indent Line":312,"Outdent Line":313,"Insert Line Above":314,"Insert Line Below":315,"Delete All Left":316,"Delete All Right":317,"Join Lines":318,"Transpose characters around the cursor":319,"Transform to Uppercase":320,"Transform to Lowercase":321,"Cmd + click to follow link":322,"Ctrl + click to follow link":323,"Cmd + click to execute command":324,"Ctrl + click to execute command":325,"Option + click to follow link":326,"Alt + click to follow link":327,"Option + click to execute command":328,"Alt + click to execute command":329,"Failed to open this link because it is not well-formed: {0}":330,"Failed to open this link because its target is missing.":331,"Open Link":332,"Cannot edit in read-only editor":333,"Add Cursor Above":334,"&&Add Cursor Above":335,"Add Cursor Below":336,"A&&dd Cursor Below":337,"Add Cursors to Line Ends":338,"Add C&&ursors to Line Ends":339,"Add Selection To Next Find Match":340,"Add &&Next Occurrence":341,"Add Selection To Previous Find Match":342,"Add P&&revious Occurrence":343,"Move Last Selection To Next Find Match":344,"Move Last Selection To Previous Find Match":345,"Select All Occurrences of Find Match":346,"Select All &&Occurrences":347,"Change All Occurrences":348,"Trigger Parameter Hints":349,"{0}, hint":350," – {0} references":351,"Find All References":352,"symbol in {0} on line {1} at column {2}":353,"1 symbol in {0}, full path {1}":354,"{0} symbols in {1}, full path {2}":355,"No results found":356,"Found 1 symbol in {0}":357,"Found {0} symbols in {1}":358,"Found {0} symbols in {1} files":359,"Failed to resolve file.":360,"{0} references":361,"{0} reference":362,"no preview available":363,References:364,"No results":365,"Background color of the peek view title area.":366,"Color of the peek view title.":367,"Color of the peek view title info.":368,"Color of the peek view borders and arrow.":369,"Background color of the peek view result list.":370,"Foreground color for line nodes in the peek view result list.":371,"Foreground color for file nodes in the peek view result list.":372,"Background color of the selected entry in the peek view result list.":373,"Foreground color of the selected entry in the peek view result list.":374,"Background color of the peek view editor.":375,"Background color of the gutter in the peek view editor.":376,"Match highlight color in the peek view result list.":377,"Match highlight color in the peek view editor.":378,"Match highlight border in the peek view editor.":379,"No result.":380,"An unknown error occurred while resolving rename location":381,"Successfully renamed '{0}' to '{1}'. Summary: {2}":382,"Rename failed to execute.":383,"Rename input. Type new name and press Enter to commit.":384,"Expand Select":385,"&&Expand Selection":386,"Shrink Select":387,"&&Shrink Selection":388,Sunday:389,Monday:390,Tuesday:391,Wednesday:392,Thursday:393,Friday:394,Saturday:395,Sun:396,Mon:397,Tue:398,Wed:399,Thu:400,Fri:401,Sat:402,January:403,February:404,March:405,April:406,May:407,June:408,July:409,August:410,September:411,October:412,November:413,December:414,Jan:415,Feb:416,Mar:417,Apr:418,Jun:419,Jul:420,Aug:421,Sep:422,Oct:423,Nov:424,Dec:425,"Accepting '{0}' did insert the following text: {1}":426,"Trigger Suggest":427,"Background color of the suggest widget.":428,"Border color of the suggest widget.":429,"Foreground color of the suggest widget.":430,"Background color of the selected entry in the suggest widget.":431,"Color of the match highlights in the suggest widget.":432,"Read More...{0}":433,"Read less...{0}":434,"No suggestions.":435,"{0}, accepted":436,"{0}, snippet suggestion":437,"{0}, suggestion":438,"{0}, snippet suggestion. Reading details. {1}":439,"{0}, suggestion. Reading details. {1}":440,"Toggle Tab Key Moves Focus":441,"Background color of a symbol during read-access, like reading a variable. The color must not be opaque to not hide underlying decorations.":442,"Background color of a symbol during write-access, like writing to a variable. The color must not be opaque to not hide underlying decorations.":443,"Border color of a symbol during read-access, like reading a variable.":444,"Border color of a symbol during write-access, like writing to a variable.":445,"Overview ruler marker color for symbol highlights. The color must not be opaque to not hide underlying decorations.":446,"Overview ruler marker color for write-access symbol highlights. The color must not be opaque to not hide underlying decorations.":447,"Go to Next Symbol Highlight":448,"Go to Previous Symbol Highlight":449,"No selection":450,"Line {0}, Column {1} ({2} selected)":451,"Line {0}, Column {1}":452,"{0} selections ({1} characters selected)":453,"{0} selections":454,"Now changing the setting `accessibilitySupport` to 'on'.":455,"Now opening the Editor Accessibility documentation page.":456," in a read-only pane of a diff editor.":457," in a pane of a diff editor.":458," in a read-only code editor":459," in a code editor":460,"To configure the editor to be optimized for usage with a Screen Reader press Command+E now.":461,"To configure the editor to be optimized for usage with a Screen Reader press Control+E now.":462,"The editor is configured to be optimized for usage with a Screen Reader.":463,"The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.":464,"Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.":465,"Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.":466,"Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.":467,"Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.":468,"Press Command+H now to open a browser window with more information related to editor accessibility.":469,"Press Control+H now to open a browser window with more information related to editor accessibility.":470,"You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.":471,"Show Accessibility Help":472,"Developer: Inspect Tokens":473,"Go to line {0} and character {1}":474,"Go to line {0}":475,"Type a line number between 1 and {0} to navigate to":476,"Type a character between 1 and {0} to navigate to":477,"Type a line number, followed by an optional colon and a character number to navigate to":478,"Go to Line...":479,"{0}, commands":480,"Type the name of an action you want to execute":481,"Command Palette":482,"{0}, symbols":483,"Type the name of an identifier you wish to navigate to":484,"Go to Symbol...":485,"symbols ({0})":486,"modules ({0})":487,"classes ({0})":488,"interfaces ({0})":489,"methods ({0})":490,"functions ({0})":491,"properties ({0})":492,"variables ({0})":493,"constructors ({0})":494,"calls ({0})":495,"Made {0} edits in {1} files":496,"Press Ctrl+F1 for Accessibility Options.":497,"Press Alt+F1 for Accessibility Options.":498,"Toggle High Contrast Theme":499,"Default Configuration Overrides":500,"Configure editor settings to be overridden for {0} language.":501,"Configure editor settings to be overridden for a language.":502,"Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.":503,"Cannot register '{0}'. This property is already registered.":504,"({0}) was pressed. Waiting for second key of chord...":505,"The key combination ({0}, {1}) is not a command.":506,Workbench:507,"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.":508,"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ":509,"Controls whether trees support horizontal scrolling in the workbench.":510,"Colors used in the workbench.":511,"Overall foreground color. This color is only used if not overridden by a component.":512,"Overall foreground color for error messages. This color is only used if not overridden by a component.":513,"Overall border color for focused elements. This color is only used if not overridden by a component.":514,"An extra border around elements to separate them from others for greater contrast.":515,"An extra border around active elements to separate them from others for greater contrast.":516,"Foreground color for links in text.":517,"Background color for code blocks in text.":518,"Shadow color of widgets such as find/replace inside the editor.":519,"Input box background.":520,"Input box foreground.":521,"Input box border.":522,"Border color of activated options in input fields.":523,"Input validation background color for information severity.":524,"Input validation foreground color for information severity.":525,"Input validation border color for information severity.":526,"Input validation background color for warning severity.":527,"Input validation foreground color for warning severity.":528,"Input validation border color for warning severity.":529,"Input validation background color for error severity.":530,"Input validation foreground color for error severity.":531,"Input validation border color for error severity.":532,"Dropdown background.":533,"Dropdown foreground.":534,"List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.":535,"List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.":536,"List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.":537,"List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.":538,"List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.":539,"List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.":540,"List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.":541,"List/Tree background when hovering over items using the mouse.":542,"List/Tree foreground when hovering over items using the mouse.":543,"List/Tree drag and drop background when moving items around using the mouse.":544,"List/Tree foreground color of the match highlights when searching inside the list/tree.":545,"Quick picker color for grouping labels.":546,"Quick picker color for grouping borders.":547,"Badge background color. Badges are small information labels, e.g. for search results count.":548,"Badge foreground color. Badges are small information labels, e.g. for search results count.":549,"Scrollbar shadow to indicate that the view is scrolled.":550,"Scrollbar slider background color.":551,"Scrollbar slider background color when hovering.":552,"Scrollbar slider background color when clicked on.":553,"Background color of the progress bar that can show for long running operations.":554,"Border color of menus.":555,"Foreground color of menu items.":556,"Background color of menu items.":557,"Foreground color of the selected menu item in menus.":558,"Background color of the selected menu item in menus.":559,"Border color of the selected menu item in menus.":560,"Color of a separator menu item in menus.":561,"Editor background color.":562,"Editor default foreground color.":563,"Background color of editor widgets, such as find/replace.":564,"Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.":565,"Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.":566,"Color of the editor selection.":567,"Color of the selected text for high contrast.":568,"Color of the selection in an inactive editor. The color must not be opaque to not hide underlying decorations.":569,"Color for regions with the same content as the selection. The color must not be opaque to not hide underlying decorations.":570,"Border color for regions with the same content as the selection.":571,"Color of the current search match.":572,"Color of the other search matches. The color must not be opaque to not hide underlying decorations.":573,"Color of the range limiting the search. The color must not be opaque to not hide underlying decorations.":574,"Border color of the current search match.":575,"Border color of the other search matches.":576,"The editor will never be optimized for usage with a Screen Reader.":577,"Controls whether the editor should run in a mode where it is optimized for screen readers.":578,"Controls fading out of unused code.":579,"Controls whether the editor should detect links and make them clickable.":580,"Controls whether the editor should render the inline color decorators and color picker.":581,"Enables the code action lightbulb in the editor.":582,"Controls whether organize imports action should be run on file save.":583,"Code action kinds to be run on save.":584,"Timeout in milliseconds after which the code actions that are run on save are cancelled.":585,"Controls whether the Linux primary clipboard should be supported.":586,"Controls whether the diff editor shows the diff side by side or inline.":587,"Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.":588,"Special handling for large files to disable certain memory intensive features.":589,"Controls whether the diff editor shows +/- indicators for added/removed changes.":590,"[{0}] {1} [{2}]":591,"[{0}] {1}":592,"Go to &&Definition":593,"Go to &&Type Definition":594,"Go to &&Implementation":595,"Rename Symbol":596,"{0}, snippet suggestion, has details":597,"{0}, suggestion, has details":598,"Pressing Tab will now move focus to the next focusable element":599,"Pressing Tab will now insert the tab character":600,"Trigger Symbol Highlight":601,"Border color of the range limiting the search. The color must not be opaque to not hide underlying decorations.":602,"Highlight below the word for which a hover is shown. The color must not be opaque to not hide underlying decorations.":603,"Background color of the editor hover.":604,"Border color of the editor hover.":605,"Color of active links.":606,"Background color for text that got inserted. The color must not be opaque to not hide underlying decorations.":607,"Background color for text that got removed. The color must not be opaque to not hide underlying decorations.":608,"Outline color for the text that got inserted.":609,"Outline color for text that got removed.":610,"Border color between the two text editors.":611,"Highlight background color of a snippet tabstop.":612,"Highlight border color of a snippet tabstop.":613,"Highlight background color of the final tabstop of a snippet.":614,"Highlight border color of the final stabstop of a snippet.":615,"Overview ruler marker color for find matches. The color must not be opaque to not hide underlying decorations.":616,"Overview ruler marker color for selection highlights. The color must not be opaque to not hide underlying decorations.":617},N.mapNlsLang={es:{0:"{0} ({1})",1:"{0} (ocurrió de nuevo)",2:"{0} (occurred {1} times)",3:"entrada",4:"Coincidir mayúsculas y minúsculas",5:"Solo palabras completas",6:"Usar expresión regular",7:"Error: {0}",8:"Advertencia: {0}",9:"Información: {0}",10:"{0}. Use the navigation keys to navigate.",11:"Ctrl",12:"Mayús",13:"Alt",14:"Windows",15:"Super",16:"Control",17:"Comando",18:"Error",19:"Advertencia",20:"Información",21:"{0}, selector",22:"selector",23:"Selector rápido. Escriba para restringir los resultados.",24:"Selector rápido",25:"{0} Results",26:"&&Select All",27:"&&Undo",28:"&&Redo",29:"El número de cursores se ha limitado a {0}.",30:"Los archivos no se pueden comparar porque uno de ellos es demasiado grande.",31:"Cerrar",32:"sin líneas",33:"1 línea",34:"{0} líneas",35:"Diferencia {0} de {1}: original {2}, {3}, modificado {4}, {5}",36:"vacío",37:"original {0}, modificado {1}: {2}",38:"+ modificado {0}: {1}",39:"- original {0}: {1}",40:"Ir a la siguiente diferencia",41:"Ir a la diferencia anterior",42:"Editor",43:"Controla la familia de fuentes.",44:"Controla el grosor de la fuente.",45:"Controla el tamaño de fuente en píxeles.",46:"Controla la altura de línea. Utilice 0 para calcular el valor de lineHeight a partir de fontSize.",47:"Controla el espacio entre letras en pixels.",48:"Los números de línea no se muestran.",49:"Los números de línea se muestran como un número absoluto.",50:"Los números de línea se muestran como distancia en líneas a la posición del cursor.",51:"Los números de línea se muestran cada 10 líneas.",52:"Controla la visualización de los números de línea.",53:"Representar reglas verticales después de un cierto número de caracteres monoespacio. Usar multiples valores para multiples reglas. No se dibuja ninguna regla si la matriz esta vacía.",54:"Caracteres que se usarán como separadores de palabras al realizar operaciones o navegaciones relacionadas con palabras.",55:"El número de espacios a los que equivale una tabulación. Este valor se invalida según el contenido del archivo cuando `editor.detectIndentation` está activado.",56:'Se esperaba "number". Tenga en cuenta que el ajuste "editor.detectIndentation" ha reemplazado al valor "auto".',57:'Insertar espacios al presionar TAB. Este valor se invalida en función del contenido del archivo cuando "editor.detectIndentation" está activado.',58:'Se esperaba "boolean". Tenga en cuenta que el ajuste "editor.detectIndentation" ha reemplazado al valor "auto".',59:"Al abrir un archivo, se detectarán `editor.tabSize` y `editor.insertSpaces` en función del contenido del archivo.",60:"Controla si las selecciones tienen esquinas redondeadas",61:"Controla si el editor se seguirá desplazando después de la última línea",62:"Controla el número de caracteres adicionales a partir del cual el editor se desplazará horizontalmente",63:"Controla si el editor se desplaza con una animación",64:"Controla si se muestra el minimapa",65:"Controla en qué lado se muestra el minimapa.",66:"Controla si el control deslizante del minimapa es ocultado automáticamente.",67:"Presentar los caracteres reales en una línea (por oposición a bloques de color)",68:"Limitar el ancho del minimapa para presentar como mucho un número de columnas determinado",69:"Controls whether the hover is shown.",70:"Time delay in milliseconds after which to the hover is shown.",71:"Controls whether the hover should remain visible when mouse is moved over it.",72:"Controla si se inicializa la cadena de búsqueda en Buscar widget en la selección del editor",73:"Controla si el indicador Buscar en selección se activa cuando se seleccionan varios caracteres o líneas de texto en el editor",74:"Controla si el widget de búsqueda debería leer o modificar el portapapeles de busqueda compartido en macOS",75:"Las líneas no se ajustarán nunca.",76:"Las líneas se ajustarán en el ancho de la ventanilla.",77:'Las líneas se ajustarán en "editor.wordWrapColumn".',78:'Las líneas se ajustarán al valor que sea inferior: el tamaño de la ventanilla o el valor de "editor.wordWrapColumn".',79:'Controla cómo se deben ajustar las líneas. Pueden ser:\n - "off" (deshabilitar ajuste),\n - "on" (ajuste de ventanilla),\n - "wordWrapColumn" (ajustar en "editor.wordWrapColumn") o\n - "bounded" (ajustar en la parte mínima de la ventanilla y "editor.wordWrapColumn").',80:"Controls the wrapping column of the editor when `editor.wordWrap` is 'wordWrapColumn' or 'bounded'.",81:"No indentation. Wrapped lines begin at column 1.",82:"Wrapped lines get the same indentation as the parent.",83:"Wrapped lines get +1 indentation toward the parent.",84:"Wrapped lines get +2 indentation toward the parent.",85:'Se asigna a "Control" en Windows y Linux y a "Comando" en macOS.',86:'Se asigna a "Alt" en Windows y Linux y a "Opción" en macOS.',87:'Se asigna a "Control" en Windows y Linux y a "Comando" en macOS.',88:'Se asigna a "Alt" en Windows y Linux y a "Opción" en macOS.',89:'El modificador que se usará para agregar varios cursores con el mouse. "ctrlCmd" se asigna a "Control" en Windows y Linux y a "Comando" en macOS. Los gestos del mouse "Ir a la definición" y "Abrir vínculo" se adaptarán de modo que no entren en conflicto con el modificador multicurso',90:"Combinar varios cursores cuando se solapan.",91:"Habilita sugerencias rápidas en las cadenas.",92:"Habilita sugerencias rápidas en los comentarios.",93:"Habilita sugerencias rápidas fuera de las cadenas y los comentarios.",94:"Controla si las sugerencias deben mostrarse automáticamente mientras se escribe",95:"Controla el retardo en ms tras el cual aparecerán sugerencias rápidas",96:"Habilita el desplegable que muestra documentación de los parámetros e información de los tipos mientras escribe",97:"Controla si el editor debe cerrar automáticamente los corchetes después de abrirlos",98:"Controla si el editor debe dar formato automáticamente a la línea después de escribirla",99:"Controla si el editor debe formatear automáticamente el contenido pegado. Debe haber disponible un formateador capaz de aplicar formato a un intervalo dentro de un documento.",100:"Controla si el editor debería ajustar automáticamente la sangría cuando los usuarios escriben, pegan o mueven líneas. Las reglas de sangría del idioma deben estar disponibles",101:"Controla si las sugerencias deben aparecer de forma automática al escribir caracteres desencadenadores",102:"Only accept a suggestion with `Enter` when it makes a textual change.",103:'Controla si las sugerencias deben aceptarse en "Entrar" (además de "TAB"). Ayuda a evitar la ambigüedad entre insertar nuevas líneas o aceptar sugerencias. El valor "smart" significa que solo se acepta una sugerencia con Entrar cuando se realiza un cambio textual.',104:'Controla si se deben aceptar sugerencias en los caracteres de confirmación. Por ejemplo, en Javascript, el punto y coma (";") puede ser un carácter de confirmación que acepta una sugerencia y escribe ese carácter.',105:"Mostrar sugerencias de fragmentos de código por encima de otras sugerencias.",106:"Mostrar sugerencias de fragmentos de código por debajo de otras sugerencias.",107:"Mostrar sugerencias de fragmentos de código con otras sugerencias.",108:"No mostrar sugerencias de fragmentos de código.",109:"Controla si se muestran los fragmentos de código con otras sugerencias y cómo se ordenan.",110:"Controla si al copiar sin selección se copia la línea actual.",111:"Habilita sugerencias basadas en palabras.",112:"Siempre seleccione la primera sugerencia.",113:"Seleccione sugerencias recientes a menos que escriba una nueva opción, por ejemplo ' Console. | -> Console. log ' porque ' log ' se ha completado recientemente.",114:"Seleccione sugerencias basadas en prefijos anteriores que han completado esas sugerencias, por ejemplo, ' Co-> Console ' y ' con-> const '.",115:"Controla cómo se preseleccionan las sugerencias cuando se muestra la lista,",116:"Tamaño de fuente para el widget de sugerencias",117:"Alto de línea para el widget de sugerencias",118:"Controls whether filtering and sorting suggestions accounts for small typos.",119:"Control whether an active snippet prevents quick suggestions.",120:"Controla si el editor debería destacar coincidencias similares a la selección",121:"Controla si el editor debe resaltar los símbolos semánticos.",122:"Controla el número de decoraciones que pueden aparecer en la misma posición en la regla de visión general",123:"Controla si debe dibujarse un borde alrededor de la regla de información general.",124:"Controla el estilo de animación del cursor.",125:"Ampliar la fuente del editor cuando se use la rueda del mouse mientras se presiona Ctrl",126:'Controla el estilo del cursor. Los valores aceptados son "block", "block-outline", "line", "line-thin", "underline" y "underline-thin"',127:"Controla el ancho del cursor cuando editor.cursorStyle se establece a 'line'",128:"Habilita las ligaduras tipográficas.",129:"Controla si el cursor debe ocultarse en la regla de visión general.",130:"Render whitespace characters except for single spaces between words.",131:'Controla cómo debe representar el editor los espacios en blanco. Las posibilidades son "none", "boundary" y "all". La opción "boundary" no representa los espacios individuales entre palabras.',132:"Controla si el editor debe representar caracteres de control",133:"Controla si el editor debe representar guías de sangría.",134:"Controls whether the editor should highlight the active indent guide.",135:"Highlights both the gutter and the current line.",136:'Controla cómo el editor debe presentar el resaltado de línea. Las posibilidades son "ninguno", "margen", "línea" y "todo".',137:"Controla si el editor muestra CodeLens",138:"Controla si el editor tiene habilitado el plegado de código.",139:"Controla la forma en que se calculan las gamas plegables. Las selecciones ' auto' utilizan una estrategia de plegado específica del idioma, si está disponible. 'Sangría' obliga a utilizar la estrategia de plegado con sangría.",140:"Controla cuándo los controles de plegado del margen son ocultados automáticamente.",141:"Resaltar corchetes coincidentes cuando se seleccione uno de ellos.",142:"Controla si el editor debe representar el margen de glifo vertical. El margen de glifo se usa, principalmente, para depuración.",143:"La inserción y eliminación del espacio en blanco sigue a las tabulaciones.",144:"Quitar espacio en blanco final autoinsertado",145:"Mantiene abierto el editor interactivo incluso al hacer doble clic en su contenido o presionar Escape.",146:"Controla si el editor debe permitir mover selecciones mediante arrastrar y colocar.",147:"El editor usará API de plataforma para detectar cuándo está conectado un lector de pantalla.",148:"El editor se optimizará de forma permanente para su uso con un editor de pantalla.",149:"El editor nunca se optimizará para su uso con un lector de pantalla.",150:"Controla si el editor se debe ejecutar en un modo optimizado para lectores de pantalla.",151:"Controls fading out of unused code.",152:"Controla si el editor debe detectar enlaces y hacerlos cliqueables",153:"Controla si el editor debe representar el Selector de colores y los elementos Decorator de color en línea.",154:"Permite que el foco de acción del código",155:"¿organizar importaciones en guardar?",156:"Tipos de acción de código que se ejecutarán en guardar.",157:"Tiempo de espera para ejecutar acciones de código en guardar.",158:"Controla si el portapapeles principal de Linux debe admitirse.",159:"Controla si el editor de diferencias muestra las diferencias en paralelo o alineadas.",160:"Controla si el editor de diferencias muestra los cambios de espacio inicial o espacio final como diferencias.",161:"Manejo especial para archivos grandes para desactivar ciertas funciones de memoria intensiva.",162:"Controla si el editor de diff muestra indicadores +/- para cambios agregados/quitados",163:"No se puede acceder al editor en este momento. Presione Alt+F1 para ver opciones.",164:"Editor content",165:"Excepción inesperada al ejecutar el comando.",166:"Texto sin formato",167:"[{0}]\n{1}",168:"[{0}] {1}",169:"Color de fondo para la línea resaltada en la posición del cursor.",170:"Color de fondo del borde alrededor de la línea en la posición del cursor.",171:"Color de fondo de los rangos resaltados, como por ejemplo las características de abrir rápidamente y encontrar. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",172:"Color de fondo del borde alrededor de los intervalos resaltados.",173:"Color del cursor del editor.",174:"Color de fondo del cursor de edición. Permite personalizar el color del caracter solapado por el bloque del cursor.",175:"Color de los caracteres de espacio en blanco del editor.",176:"Color de las guías de sangría del editor.",177:"Color de las guías de sangría activas del editor.",178:"Color de números de línea del editor.",179:"Color del número de línea activa en el editor",180:"ID es obsoleto. Usar en lugar 'editorLineNumber.activeForeground'. ",181:"Color de las reglas del editor",182:"Color principal de lentes de código en el editor",183:"Color de fondo tras corchetes coincidentes",184:"Color de bloques con corchetes coincidentes",185:"Color del borde de la regla de visión general.",186:"Color de fondo del margen del editor. Este espacio contiene los márgenes de glifos y los números de línea.",187:"Color de primer plano de squigglies de error en el editor.",188:"Color de borde de squigglies de error en el editor.",189:"Color de primer plano de squigglies de advertencia en el editor.",190:"Color de borde de squigglies de advertencia en el editor.",191:"Color de primer plano de los subrayados ondulados informativos en el editor.",192:"Color del borde de los subrayados ondulados informativos en el editor.",193:"Color de primer plano de pista squigglies en el editor.",194:"Color de borde de pista squigglies en el editor.",195:"Border of unnecessary code in the editor.",196:"Opacity of unnecessary code in the editor.",197:"Color de marcador de regla de información general para errores. ",198:"Color de marcador de regla de información general para advertencias.",199:"Color de marcador de regla de información general para mensajes informativos. ",200:"Resumen color de marcador de regla para corchetes.",201:"Ir al corchete",202:"Seleccione esta opción para soporte",203:"Mover símbolo de inserción a la izquierda",204:"Mover símbolo de inserción a la derecha",205:"Transponer letras",206:"Cortar",207:"Cu&&t",208:"Copiar",209:"&&Copy",210:"Pegar",211:"&&Paste",212:"Copiar con resaltado de sintaxis",213:"Mostrar correcciones ({0})",214:"Mostrar correcciones",215:"Corrección Rápida",216:"No hay acciones de código disponibles",217:"Refactorizar...",218:"No hay refactorizaciones disponibles",219:"Acción de Origen...",220:"No hay acciones de origen disponibles",221:"Organizar Importaciones",222:"No hay acciones de importación disponibles",223:"Alternar comentario de línea",224:"&&Toggle Line Comment",225:"Agregar comentario de línea",226:"Quitar comentario de línea",227:"Alternar comentario de bloque",228:"Toggle &&Block Comment",229:"Mostrar menú contextual del editor",230:"Soft Undo",231:"Buscar",232:"&&Find",233:"Buscar con selección",234:"Buscar siguiente",235:"Buscar anterior",236:"Buscar selección siguiente",237:"Buscar selección anterior",238:"Reemplazar",239:"&&Replace",240:"Coincidencia anterior",241:"Coincidencia siguiente",242:"Buscar en selección",243:"Reemplazar todo",244:"Alternar modo de reemplazar",245:"Sólo los primeros {0} resultados son resaltados, pero todas las operaciones de búsqueda trabajan en todo el texto.",246:"{0} de {1}",247:"Sin resultados",248:"Desplegar",249:"Desplegar de forma recursiva",250:"Plegar",251:"Plegar de forma recursiva",252:"Cerrar todos los comentarios de bloqueo",253:"Plegar todas las regiones",254:"Desplegar Todas las Regiones",255:"Plegar todo",256:"Desplegar todo",257:"Nivel de plegamiento {0}",258:"Acercarse a la tipografía del editor",259:"Alejarse de la tipografía del editor",260:"Restablecer alejamiento de la tipografía del editor",261:"1 edición de formato en la línea {0}",262:"{0} ediciones de formato en la línea {1}",263:"1 edición de formato entre las líneas {0} y {1}",264:"{0} ediciones de formato entre las líneas {1} y {2}",265:"No hay formateador para los archivos ' {0} ' instalados.",266:"Dar formato al documento",267:"No hay formateador de documentos para los archivos ' {0} ' instalados.",268:"Dar formato a la selección",269:"No hay formateador de selección para los archivos ' {0} ' instalados.",270:'No se encontró ninguna definición para "{0}"',271:"No se encontró ninguna definición",272:" – {0} definiciones",273:"Ir a definición",274:"Abrir definición en el lateral",275:"Ver la definición",276:'No se encontró ninguna implementación para "{0}"',277:"No se encontró ninguna implementación",278:"{0} implementaciones",279:"Ir a implementación",280:"Inspeccionar implementación",281:'No se encontró ninguna definición de tipo para "{0}"',282:"No se encontró ninguna definición de tipo",283:" – {0} definiciones de tipo",284:"Ir a la definición de tipo",285:"Inspeccionar definición de tipo",286:"Haga clic para mostrar {0} definiciones.",287:"Ir al siguiente problema (Error, Advertencia, Información)",288:"Ir al problema anterior (Error, Advertencia, Información)",289:"Ir al siguiente problema en Archivos (Error, Advertencia, Información)",290:"Ir al problema anterior en Archivos (Error, Advertencia, Información)",291:"({0}/{1})",292:"Color de los errores del widget de navegación de marcadores del editor.",293:"Color de las advertencias del widget de navegación de marcadores del editor.",294:"Color del widget informativo marcador de navegación en el editor.",295:"Fondo del widget de navegación de marcadores del editor.",296:"Mostrar al mantener el puntero",297:"{0}, sugerencia",298:"Reemplazar con el valor anterior",299:"Reemplazar con el valor siguiente",300:"Copiar línea arriba",301:"&&Copy Line Up",302:"Copiar línea abajo",303:"Co&&py Line Down",304:"Mover línea hacia arriba",305:"Mo&&ve Line Up",306:"Mover línea hacia abajo",307:"Move &&Line Down",308:"Ordenar líneas en orden ascendente",309:"Ordenar líneas en orden descendente",310:"Recortar espacio final",311:"Eliminar línea",312:"Sangría de línea",313:"Anular sangría de línea",314:"Insertar línea arriba",315:"Insertar línea debajo",316:"Eliminar todo a la izquierda",317:"Eliminar todo lo que está a la derecha",318:"Unir líneas",319:"Transponer caracteres alrededor del cursor",320:"Transformar a mayúsculas",321:"Transformar a minúsculas",322:"Cmd + clic para abrir el vínculo",323:"Ctrl + clic para abrir el vínculo",324:"Cmd + click para ejecutar el comando",325:"Ctrl + click para ejecutar el comando",326:"Opción + clic para seguir el enlace",327:"Alt + clic para seguir el vínculo",328:"Opción + click para ejecutar el comando",329:"Alt + clic para ejecutar el comando",330:"No se pudo abrir este vínculo porque no tiene un formato correcto: {0}",331:"No se pudo abrir este vínculo porque falta el destino.",332:"Abrir vínculo",333:"No se puede editar en un editor de sólo lectura",334:"Agregar cursor arriba",335:"&&Add Cursor Above",336:"Agregar cursor debajo",337:"A&&dd Cursor Below",338:"Añadir cursores a finales de línea",339:"Add C&&ursors to Line Ends",340:"Agregar selección hasta la siguiente coincidencia de búsqueda",341:"Add &&Next Occurrence",342:"Agregar selección hasta la anterior coincidencia de búsqueda",343:"Add P&&revious Occurrence",344:"Mover última selección hasta la siguiente coincidencia de búsqueda",345:"Mover última selección hasta la anterior coincidencia de búsqueda",346:"Seleccionar todas las repeticiones de coincidencia de búsqueda",347:"Select All &&Occurrences",348:"Cambiar todas las ocurrencias",349:"Sugerencias para parámetros Trigger",350:"{0}, sugerencia",351:" – {0} referencias",352:"Buscar todas las referencias",353:"símbolo en {0} linea {1} en la columna {2}",354:"1 símbolo en {0}, ruta de acceso completa {1}",355:"{0} símbolos en {1}, ruta de acceso completa {2}",356:"No se encontraron resultados",357:"Encontró 1 símbolo en {0}",358:"Encontró {0} símbolos en {1}",359:"Encontró {0} símbolos en {1} archivos",360:"Error al resolver el archivo.",361:"{0} referencias",362:"{0} referencia",363:"vista previa no disponible",364:"Referencias",365:"No hay resultados.",366:"Color de fondo del área de título de la vista de inspección.",367:"Color del título de la vista de inpección.",368:"Color de la información del título de la vista de inspección.",369:"Color de los bordes y la flecha de la vista de inspección.",370:"Color de fondo de la lista de resultados de vista de inspección.",371:"Color de primer plano de los nodos de inspección en la lista de resultados.",372:"Color de primer plano de los archivos de inspección en la lista de resultados.",373:"Color de fondo de la entrada seleccionada en la lista de resultados de vista de inspección.",374:"Color de primer plano de la entrada seleccionada en la lista de resultados de vista de inspección.",375:"Color de fondo del editor de vista de inspección.",376:"Color de fondo del margen en el editor de vista de inspección.",377:"Buscar coincidencia con el color de resaltado de la lista de resultados de vista de inspección.",378:"Buscar coincidencia del color de resultado del editor de vista de inspección.",379:"Hacer coincidir el borde resaltado en el editor de vista previa.",380:"No hay ningún resultado.",381:"Nombre cambiado correctamente de '{0}' a '{1}'. Resumen: {2}",382:"No se pudo cambiar el nombre.",383:"Cambiar el nombre del símbolo",384:"Cambie el nombre de la entrada. Escriba el nuevo nombre y presione Entrar para confirmar.",385:"Expandir selección",386:"&&Expand Selection",387:"Reducir selección",388:"&&Shrink Selection",389:"Domingo",390:"Lunes",391:"Martes",392:"Miércoles",393:"Jueves",394:"Viernes",395:"Sábado",396:"Dom",397:"Lun",398:"Mar",399:"Mié",400:"Jue",401:"Vie",402:"Sáb",403:"Enero",404:"Febrero",405:"Marzo",406:"Abril",407:"May",408:"Junio",409:"Julio",410:"Agosto",411:"Septiembre",412:"Octubre",413:"Noviembre",414:"Diciembre",415:"Ene",416:"Feb",417:"Mar",418:"Abr",419:"Jun",420:"Jul",421:"Ago",422:"Sep",423:"Oct",424:"Noviembre",425:"Dic",426:"Aceptando '{0}' Insertó el siguente texto : {1}",427:"Sugerencias para Trigger",428:"Color de fondo del widget sugerido.",429:"Color de borde del widget sugerido.",430:"Color de primer plano del widget sugerido.",431:"Color de fondo de la entrada seleccionada del widget sugerido.",432:"Color del resaltado coincidido en el widget sugerido.",433:"Leer más...{0}",434:"{0}, sugerencia, con detalles",435:"Leer menos...{0}",436:"Cargando...",437:"No hay sugerencias.",438:"{0}, aceptada",439:"{0}, sugerencia, con detalles",440:"{0}, sugerencia",441:"Alternar tecla de tabulación para mover el punto de atención",442:"Color de fondo de un símbolo durante el acceso de lectura, como leer una variable. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",443:"Color de fondo de un símbolo durante el acceso de escritura, como escribir en una variable. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",444:"Color de fondo de un símbolo durante el acceso de lectura; por ejemplo, cuando se lee una variable.",445:"Color de fondo de un símbolo durante el acceso de escritura; por ejemplo, cuando se escribe una variable.",446:"Destaca el color del marcador para los puntos del símbolo. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",447:"Destaca el color del marcador de acceso de escritura. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",448:"Ir al siguiente símbolo destacado",449:"Ir al símbolo destacado anterior",450:"No selection",451:"Line {0}, Column {1} ({2} selected)",452:"Line {0}, Column {1}",453:"{0} selections ({1} characters selected)",454:"{0} selections",455:"Now changing the setting `accessibilitySupport` to 'on'.",456:"Now opening the Editor Accessibility documentation page.",457:" in a read-only pane of a diff editor.",458:" in a pane of a diff editor.",459:" in a read-only code editor",460:" in a code editor",461:"To configure the editor to be optimized for usage with a Screen Reader press Command+E now.",462:"To configure the editor to be optimized for usage with a Screen Reader press Control+E now.",463:"The editor is configured to be optimized for usage with a Screen Reader.",464:"The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.",465:"Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.",466:"Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.",467:"Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.",468:"Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.",469:"Press Command+H now to open a browser window with more information related to editor accessibility.",470:"Press Control+H now to open a browser window with more information related to editor accessibility.",471:"You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.",472:"Show Accessibility Help",473:"Developer: Inspect Tokens",474:"Go to line {0} and character {1}",475:"Go to line {0}",476:"Type a line number between 1 and {0} to navigate to",477:"Type a character between 1 and {0} to navigate to",478:"Type a line number, followed by an optional colon and a character number to navigate to",479:"Go to Line...",480:"{0}, commands",481:"Type the name of an action you want to execute",482:"Command Palette",483:"{0}, symbols",484:"Type the name of an identifier you wish to navigate to",485:"Go to Symbol...",486:"symbols ({0})",487:"modules ({0})",488:"classes ({0})",489:"interfaces ({0})",490:"methods ({0})",491:"functions ({0})",492:"properties ({0})",493:"variables ({0})",494:"constructors ({0})",495:"calls ({0})",496:"Made {0} edits in {1} files",497:"Press Ctrl+F1 for Accessibility Options.",498:"Press Alt+F1 for Accessibility Options.",499:"Toggle High Contrast Theme",500:"La configuración predeterminada se reemplaza",501:"Establecer los valores de configuración que se reemplazarán para el lenguaje {0}.",502:"Establecer los valores de configuración que se reemplazarán para un lenguaje.",503:'No se puede registrar "{0}". Coincide con el patrón de propiedad \'\\\\[.*\\\\]$\' para describir la configuración del editor específica del lenguaje. Utilice la contribución "configurationDefaults".',504:'No se puede registrar "{0}". Esta propiedad ya está registrada.',505:"Se presionó ({0}). Esperando la siguiente tecla...",506:"La combinación de teclas ({0}, {1}) no es ningún comando.",507:"Área de trabajo",508:"El modificador que se usará para agregar un elemento en árboles y listas a una selección múltiple con el mouse (por ejemplo en el explorador, los editores abiertos y la vista SCM). ' ctrlCmd ' se asigna a ' control ' en Windows y Linux y a ' Command ' en macOS. Los gestos de ratón \"abrir a lado\", si se admiten, se adaptarán de tal manera que no estén en conflicto con el modificador multiselección.",509:"Controla cómo abrir elementos en árboles y listas con el ratón (si está soportado). Establecer en ' singleClick ' para abrir elementos con un solo clic del ratón y ' DoubleClick ' para abrir sólo a través del doble clic del ratón. Para los elementos padres con hijos en los árboles, este ajuste controlará si un solo clic expande el padre o un doble clic. Tenga en cuenta que algunos árboles y listas pueden optar por ignorar esta configuración si no es aplicable",510:"Controla el esplazamiento horizontal de los árboles en la mesa de trabajo.",511:"Colores usados en el área de trabajo.",512:"Color de primer plano general. Este color solo se usa si un componente no lo invalida.",513:"Color de primer plano general para los mensajes de erroe. Este color solo se usa si un componente no lo invalida.",514:"Color de borde de los elementos con foco. Este color solo se usa si un componente no lo invalida.",515:"Un borde adicional alrededor de los elementos para separarlos unos de otros y así mejorar el contraste.",516:"Un borde adicional alrededor de los elementos activos para separarlos unos de otros y así mejorar el contraste.",517:"Color de primer plano para los vínculos en el texto.",518:"Color de fondo para los bloques de código en el texto.",519:"Color de sombra de los widgets dentro del editor, como buscar/reemplazar",520:"Fondo de cuadro de entrada.",521:"Primer plano de cuadro de entrada.",522:"Borde de cuadro de entrada.",523:"Color de borde de opciones activadas en campos de entrada.",524:"Color de fondo de validación de entrada para gravedad de información.",525:"Color de borde de validación de entrada para gravedad de información.",526:"Color de fondo de validación de entrada para gravedad de advertencia.",527:"Color de borde de validación de entrada para gravedad de advertencia.",528:"Color de fondo de validación de entrada para gravedad de error.",529:"Color de borde de valdación de entrada para gravedad de error.",530:"Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.",531:"Color de fondo de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.",532:"Color de fondo de la lista o el árbol del elemento seleccionado cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.",533:"Color de primer plano de la lista o el árbol del elemento con el foco cuando la lista o el árbol están activos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.",534:"Color de fondo de la lista o el árbol del elemento seleccionado cuando la lista o el árbol están inactivos. Una lista o un árbol tienen el foco del teclado cuando están activos, cuando están inactivos no.",535:"Color de primer plano de la lista o el árbol del elemento con el foco cuando la lista o el árbol esta inactiva. Una lista o un árbol tiene el foco del teclado cuando está activo, cuando esta inactiva no.",536:"List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.",537:"Fondo de la lista o el árbol al mantener el mouse sobre los elementos.",538:"Color de primer plano de la lista o el árbol al pasar por encima de los elementos con el ratón.",539:"Fondo de arrastrar y colocar la lista o el árbol al mover los elementos con el mouse.",540:"Color de primer plano de la lista o el árbol de las coincidencias resaltadas al buscar dentro de la lista o el ábol.",541:"Selector de color rápido para la agrupación de etiquetas.",542:"Selector de color rápido para la agrupación de bordes.",543:"Color de fondo de la insignia. Las insignias son pequeñas etiquetas de información, por ejemplo los resultados de un número de resultados.",544:"Color de fondo de la insignia. Las insignias son pequeñas etiquetas de información, por ejemplo los resultados de un número de resultados.",545:"Sombra de la barra de desplazamiento indica que la vista se ha despazado.",546:"Color de fondo de control deslizante de barra de desplazamiento.",547:"Color de fondo de barra de desplazamiento cursor cuando se pasar sobre el control.",548:"Color de fondo de la barra de desplazamiento al hacer clic.",549:"Color de fondo para la barra de progreso que se puede mostrar para las operaciones de larga duración.",550:"Color de fondo del editor.",551:"Color de primer plano predeterminado del editor.",552:"Color de fondo del editor de widgets como buscar/reemplazar",553:"Color de borde de los widgets del editor. El color solo se usa si el widget elige tener un borde y no invalida el color.",554:"Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.",555:"Color de la selección del editor.",556:"Color del texto seleccionado para alto contraste.",557:"Color de la selección en un editor inactivo. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",558:"Color para regiones con el mismo contenido que la selección. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",559:"Color de borde de las regiones con el mismo contenido que la selección.",560:"Color de la coincidencia de búsqueda actual.",561:"Color de las otras coincidencias de búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",562:"Color de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",563:"Color de borde de la coincidencia de búsqueda actual.",564:"Color de borde de otra búsqueda que coincide.",565:"Color de borde de la gama que limita la búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",566:"Resalte debajo de la palabra para la cual se muestra un Hover. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",567:"Color de fondo al mantener el puntero en el editor.",568:"Color del borde al mantener el puntero en el editor.",569:"Color de los vínculos activos.",570:"Color de fondo del texto que se insertó. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",571:"Color de fondo del texto que se eliminó. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",572:"Color de contorno para el texto insertado.",573:"Color de contorno para el texto quitado.",574:"Border color between the two text editors.",575:"Destaca el color del marcador de regla para las coincidencias de búsqueda. El color no debe ser opaco para no ocultar las decoraciones subyacentes.",576:"Destaca el color del marcador de regla para los puntos de selección . El color no debe ser opaco para no ocultar las decoraciones subyacentes."},"zh-cn":{0:"{0} ({1})",1:"{0} (再次发生)",2:"{0} (发生了 {1} 次)",3:"输入",4:"区分大小写",5:"全字匹配",6:"使用正则表达式",7:"错误: {0}",8:"警告: {0}",9:"信息: {0}",10:"{0}. 使用导航键进行导航。",11:"Ctrl",12:"Shift",13:"Alt",14:"Windows",15:"Super",16:"Control",17:"Command",18:"错误",19:"警告",20:"信息",21:"{0}, 选取器",22:"选取器",23:"快速选取器。键入以缩小结果范围。",24:"快速选取器",25:"{0} 个结果",26:"全选(&&S)",27:"撤消(&&U)",28:"恢复(&&R)",29:"光标数量被限制为 {0}.",30:"文件过大,无法比较。",31:"关闭",32:"无内容",33:"1 行",34:"{0} 行",35:"差异 {0},总共 {1}: 原始,{2},{3};改后,{4},{5}",36:"空白",37:"未修改 {0},已修改 {1}: {2}",38:"+ 已修改 {0}: {1}",39:"- 未修改 {0}: {1}",40:"转至下一个差异",41:"转至上一个差异",42:"编辑器",43:"控制字体系列。",44:"控制字体粗细。",45:"以像素为单位控制字体大小。",46:"控制行高。为 0 时则通过字体大小自动计算。",47:"控制以像素为单位的字母间距。",48:"不显示行号。",49:"将行号显示为绝对行数。",50:"将行号显示为与光标相隔的行数。",51:"每 10 行显示一次行号。",52:"控制行号的显示。",53:"在一定数量的等宽字符后显示垂直标尺。输入多个值,显示多个标尺。若数组为空,则不绘制标尺。",54:"执行单词相关的导航或操作时作为单词分隔符的字符。",55:"一个制表符等于的空格数。在 `#editor.detectIndentation#` 启用时,根据文件内容,该设置可能会被覆盖。",56:"按 `Tab` 键时插入空格。该设置在 `#editor.detectIndentation#` 启用时根据文件内容可能会被覆盖。",57:"控制是否在打开文件时,基于文件内容自动检测 `#editor.tabSize#` 和 `#editor.insertSpaces#`。",58:"控制选区是否有圆角。",59:"控制编辑器是否可以滚动到最后一行之后。",60:"控制编辑器水平滚动时可以超过范围的字符数。",61:"控制编辑器是否在滚动时使用动画。",62:"控制是否显示缩略图。",63:"控制在哪一侧显示缩略图。",64:"控制是否自动隐藏缩略图滑块。",65:"渲染每行的实际字符,而不是色块。",66:"限制缩略图的宽度,控制其最多显示的列数。",67:"控制是否显示悬停提示。",68:"控制显示悬停提示前的等待时间 (毫秒)。",69:"控制当鼠标移动到悬停提示上时,其是否保持可见。",70:"控制是否将编辑器选中内容作为搜索词填入到查找小组件中。",71:"在执行查找操作时,在编辑器中的选中文本中还是整个文件中进行查找。",72:"控制“查找”小组件是否读取或修改 macOS 的共享查找剪贴板。",73:"永不换行。",74:"将在视区宽度处换行。",75:"在 `#editor.wordWrapColumn#` 处折行。",76:"在视区宽度和 `#editor.wordWrapColumn#` 中的较小值处折行。",77:"控制折行的方式。",78:"在 `#editor.wordWrap#` 为 `wordWrapColumn` 或 `bounded` 时,控制编辑器的折行列。",79:"没有缩进。折行从第 1 列开始。",80:"折行的缩进量与其父级相同。",81:"折行的缩进量比其父级多 1。",82:"折行的缩进量比其父级多 2。",83:"控制折行的缩进。",84:"对鼠标滚轮滚动事件的 `deltaX` 和 `deltaY` 乘上的系数。",85:"映射为 `Ctrl` (Windows 和 Linux) 或 `Command` (macOS)。",86:"映射为 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。",87:"在通过鼠标添加多个光标时使用的修改键。“转到定义”和“打开链接”功能所需的鼠标动作将会相应调整,不与多光标修改键冲突。[阅读详细信息](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier)。",88:"当多个光标重叠时进行合并。",89:"在字符串内启用快速建议。",90:"在注释内启用快速建议。",91:"在字符串和注释外启用快速建议。",92:"控制是否在键入时自动显示建议。",93:"控制显示快速建议前的等待时间 (毫秒)。",94:"在输入时显示含有参数文档和类型信息的小面板。",95:"控制参数提示菜单在到达列表末尾时进行循环还是关闭。",96:"使用语言配置确定何时自动闭合括号。",97:"仅当光标位于空白字符左侧时,才自动闭合括号。",98:"控制编辑器是否在左括号后自动插入右括号。",99:"使用语言配置确定何时自动闭合引号。",100:"仅当光标位于空白字符左侧时,才自动闭合引号。",101:"控制编辑器是否在左引号后自动插入右引号。",102:"使用语言配置确定何时自动包住所选内容。",103:"使用括号而非引号来包住所选内容。",104:"使用引号而非括号来包住所选内容。",105:"控制编辑器是否应自动包住所选内容。",106:"控制编辑器在键入一行后是否自动格式化该行。",107:"控制编辑器是否自动格式化粘贴的内容。格式化程序必须可用,并且能针对文档中的某一范围进行格式化。",108:"控制编辑器是否在用户键入、粘贴或移动行时自动调整缩进。必须安装包含此语言缩进规则的扩展。",109:"控制在键入触发字符后是否自动显示建议。",110:"仅当建议包含文本改动时才可使用 `Enter` 键进行接受。",111:"控制除了 `Tab` 键以外, `Enter` 键是否同样可以接受建议。这能减少“插入新行”和“接受建议”命令之间的歧义。",112:"控制是否应在遇到提交字符时接受建议。例如,在 JavaScript 中,半角分号 (`;`) 可以为提交字符,能够在接受建议的同时键入该字符。",113:"在其他建议上方显示代码片段建议。",114:"在其他建议下方显示代码片段建议。",115:"在其他建议中穿插显示代码片段建议。",116:"不显示代码片段建议。",117:"控制代码片段是否与其他建议一起显示及其排列的位置。",118:"控制在没有选择内容时进行复制是否复制当前行。",119:"控制在复制时是否同时复制语法高亮。",120:"控制是否根据文档中的文字计算自动完成列表。",121:"始终选择第一个建议。",122:"选择最近的建议,除非进一步键入选择其他项。例如 `console. -> console.log`,因为最近补全过 `log`。",123:"根据之前补全过的建议的前缀来进行选择。例如,`co -> console`、`con -> const`。",124:"控制在建议列表中如何预先选择建议。",125:"建议小部件的字号。如果设置为 `0`,则使用 `#editor.fontSize#` 的值。",126:"建议小部件的行高。如果设置为 `0`,则使用 `#editor.lineHeight#` 的值。",127:"在按下 Tab 键时进行 Tab 补全,将插入最佳匹配建议。",128:"禁用 Tab 补全。",129:'在前缀匹配时进行 Tab 补全。在 "quickSuggestions" 未启用时体验最好。',130:"启用 Tab 补全。",131:"控制对建议的筛选和排序是否考虑小的拼写错误。",132:"控制排序时是否提高靠近光标的词语的优先级。",133:"控制在活动代码片段内是否禁用快速建议。",134:"控制编辑器是否应突出显示与所选内容类似的匹配项。",135:"控制编辑器是否突出显示语义符号的匹配项。",136:"控制概览标尺中同一位置可显示的提示数量。",137:"控制是否在概览标尺周围绘制边框。",138:"控制光标的动画样式。",139:"按住 `Ctrl` 键并滚动鼠标滚轮时对编辑器字体大小进行缩放。",140:"控制光标样式。",141:"当 `#editor.cursorStyle#` 设置为 `line` 时,控制光标的宽度。",142:"启用或禁用字体连字。",143:"控制是否在概览标尺中隐藏光标。",144:"仅在选定文本上呈现空白字符。",145:"控制编辑器在空白字符上显示符号的方式。",146:"控制编辑器是否显示控制字符。",147:"控制编辑器是否显示缩进参考线。",148:"控制是否突出显示编辑器中活动的缩进参考线。",149:"同时突出显示导航线和当前行。",150:"控制编辑器的当前行进行高亮显示的方式。",151:"控制是否在编辑器中显示 CodeLens。",152:"控制编辑器是否启用了代码折叠。",153:"控制计算折叠范围的策略。`auto` 将使用语言特定的折叠策略 (若可用)。`indentation` 将使用基于缩进的折叠策略。",154:"控制是否自动隐藏导航线上的折叠控件。",155:"当选择其中一项时,将突出显示匹配的括号。",156:"控制编辑器是否应呈现垂直字形边距。字形边距最常用于调试。",157:"根据制表位插入和删除空格。",158:"删除自动插入的尾随空白符号。",159:"在速览编辑器中,即使双击其中的内容或者按 `Esc` 键,也保持其打开状态。",160:"控制在编辑器中是否允许通过拖放来移动选中内容。",161:"编辑器将使用平台 API 以检测是否附加了屏幕阅读器。",162:"编辑器将对屏幕阅读器的使用进行永久优化。",163:"现在无法访问编辑器。按 Alt+F1 显示选项。",164:"编辑器内容",165:"Unexpected exception while executing command.",166:"纯文本",167:"[{0}]\n{1} [{2}]",168:"[{0}]\n{1}",169:"光标所在行高亮内容的背景颜色。",170:"光标所在行四周边框的背景颜色。",171:"背景颜色的高亮范围,喜欢通过快速打开和查找功能。颜色不能不透明,以免隐藏底层装饰。",172:"高亮区域边框的背景颜色。",173:"编辑器光标颜色。",174:"编辑器光标的背景色。可以自定义块型光标覆盖字符的颜色。",175:"编辑器中空白字符的颜色。",176:"编辑器缩进参考线的颜色。",177:"编辑器活动缩进参考线的颜色。",178:"编辑器行号的颜色。",179:"编辑器活动行号的颜色",180:'"Id" 已被弃用,请改用 "editorLineNumber.activeForeground"。',181:"编辑器标尺的颜色。",182:"编辑器 CodeLens 的前景色",183:"匹配括号的背景色",184:"匹配括号外框的颜色",185:"概览标尺边框的颜色。",186:"编辑器导航线的背景色。导航线包括边缘符号和行号。",187:"Foreground color of error squigglies in the editor.",188:"Border color of error squigglies in the editor.",189:"Foreground color of warning squigglies in the editor.",190:"Border color of warning squigglies in the editor.",191:"Foreground color of info squigglies in the editor.",192:"Border color of info squigglies in the editor.",193:"Foreground color of hint squigglies in the editor.",194:"Border color of hint squigglies in the editor.",195:"编辑器中不必要(未使用)的源代码的边框颜色。",196:'非必须(未使用)代码的在编辑器中显示的不透明度。例如,"#000000c0" 将以 75% 的不透明度显示代码。对于高对比度主题,请使用 ”editorUnnecessaryCode.border“ 主题来为非必须代码添加下划线,以避免颜色淡化。',197:"概览标尺中错误标记的颜色。",198:"概览标尺中警告标记的颜色。",199:"概览标尺中信息标记的颜色。",200:"概览标尺上表示匹配括号的标记颜色。",201:"转到括号",202:"选择括号所有内容",203:"将插入点左移",204:"将插入点右移",205:"转置字母",206:"剪切",207:"剪切(&&T)",208:"复制",209:"复制(&&C)",210:"粘贴",211:"粘贴(&&P)",212:"复制并突出显示语法",213:"显示修复 ({0})",214:"显示修复",215:"快速修复...",216:"没有可用的代码操作",217:"重构...",218:"没有可用的重构操作",219:"源代码操作...",220:"没有可用的源代码操作",221:"整理 import 语句",222:"没有可用的整理 import 语句操作",223:"切换行注释",224:"切换行注释(&&T)",225:"添加行注释",226:"删除行注释",227:"切换块注释",228:"切换块注释(&&B)",229:"显示编辑器上下文菜单",230:"软撤消",231:"查找",232:"查找(&&F)",233:"查找选定内容",234:"查找下一个",235:"查找上一个",236:"查找下一个选择",237:"查找上一个选择",238:"替换",239:"替换(&&R)",240:"上一个匹配项",241:"下一个匹配项",242:"在选定内容中查找",243:"全部替换",244:"切换替换模式",245:"仅高亮了前 {0} 个结果,但所有查找操作均针对全文。",246:"{1} 中的 {0}",247:"无结果",248:"展开",249:"以递归方式展开",250:"折叠",251:"以递归方式折叠",252:"折叠所有块注释",253:"折叠所有区域",254:"展开所有区域",255:"全部折叠",256:"全部展开",257:"折叠级别 {0}",258:"放大编辑器字体",259:"缩小编辑器字体",260:"重置编辑器字体大小",261:"在第 {0} 行进行了 1 次格式编辑",262:"在第 {1} 行进行了 {0} 次格式编辑",263:"第 {0} 行到第 {1} 行间进行了 1 次格式编辑",264:"第 {1} 行到第 {2} 行间进行了 {0} 次格式编辑",265:"当前没有安装“{0}”文件的格式化程序。",266:"格式化文档",267:"当前没有安装“{0}”文件的文档格式化程序。",268:"格式化选定内容",269:"当前没有安装“{0}”文件的选择格式化程序。",270:"未找到“{0}”的任何定义",271:"找不到定义",272:" – {0} 定义",273:"转到定义",274:"打开侧边的定义",275:"查看定义",276:"未找到“{0}”的实现",277:"未找到实现",278:"– {0} 个实现",279:"转到实现",280:"速览实现",281:"未找到“{0}”的类型定义",282:"未找到类型定义",283:" – {0} 个类型定义",284:"转到类型定义",285:"快速查看类型定义",286:"单击显示 {0} 个定义。",287:"转到下一个问题 (错误、警告、信息)",288:"转到上一个问题 (错误、警告、信息)",289:"转到文件中的下一个问题 (错误、警告、信息)",290:"转到文件中的上一个问题 (错误、警告、信息)",291:"({0}/{1})",292:"编辑器标记导航小组件错误颜色。",293:"编辑器标记导航小组件警告颜色。",294:"编辑器标记导航小组件信息颜色。",295:"编辑器标记导航小组件背景色。",296:"显示悬停",297:"正在加载...",298:"替换为上一个值",299:"替换为下一个值",300:"向上复制行",301:"向上复制行(&&C)",302:"向下复制行",303:"向下复制一行(&&P)",304:"向上移动行",305:"向上移动一行(&&V)",306:"向下移动行",307:"向下移动一行(&&L)",308:"按升序排列行",309:"按降序排列行",310:"裁剪尾随空格",311:"删除行",312:"行缩进",313:"行减少缩进",314:"在上面插入行",315:"在下面插入行",316:"删除左侧所有内容",317:"删除右侧所有内容",318:"合并行",319:"转置光标处的字符",320:"转换为大写",321:"转换为小写",322:"按住 Cmd 并单击可访问链接",323:"按住 Ctrl 并单击可访问链接",324:"Cmd + 单击",325:"Ctrl + 单击",326:"按住 Option 并单击可访问链接",327:"按住 Alt 并单击可访问链接",328:"option + 单击",329:"alt + 单击",330:"此链接格式不正确,无法打开: {0}",331:"此链接目标已丢失,无法打开。",332:"打开链接",333:"无法在只读编辑器中编辑",334:"在上面添加光标",335:"在上面添加光标(&&A)",336:"在下面添加光标",337:"在下面添加光标(&&D)",338:"在行尾添加光标",339:"在行尾添加光标(&&U)",340:"将下一个查找匹配项添加到选择",341:"添加下一个匹配项(&&N)",342:"将选择内容添加到上一查找匹配项",343:"添加上一个匹配项(&&R)",344:"将上次选择移动到下一个查找匹配项",345:"将上个选择内容移动到上一查找匹配项",346:"选择所有找到的查找匹配项",347:"选择所有匹配项(&&O)",348:"更改所有匹配项",349:"触发参数提示",350:"{0},提示",351:" – {0} 个引用",352:"查看引用",353:"在文件 {0} 的 {1} 行 {2} 列的符号",354:"{0} 中有 1 个符号,完整路径: {1}",355:"{1} 中有 {0} 个符号,完整路径: {2}",356:"未找到结果",357:"在 {0} 中找到 1 个符号",358:"在 {1} 中找到 {0} 个符号",359:"在 {1} 个文件中找到 {0} 个符号",360:"解析文件失败。",361:"{0} 个引用",362:"{0} 个引用",363:"无可用预览",364:"引用",365:"无结果",366:"速览视图标题区域背景颜色。",367:"速览视图标题颜色。",368:"速览视图标题信息颜色。",369:"速览视图边框和箭头颜色。",370:"速览视图结果列表背景色。",371:"速览视图结果列表中行节点的前景色。",372:"速览视图结果列表中文件节点的前景色。",373:"速览视图结果列表中所选条目的背景色。",374:"速览视图结果列表中所选条目的前景色。",375:"速览视图编辑器背景色。",376:"速览视图编辑器中装订线的背景色。",377:"在速览视图结果列表中匹配突出显示颜色。",378:"在速览视图编辑器中匹配突出显示颜色。",379:"在速览视图编辑器中匹配项的突出显示边框。",380:"无结果。",381:"解析重命名位置时发生未知错误",382:"成功将“{0}”重命名为“{1}”。摘要: {2}",383:"无法进行重命名。",384:'重命名输入。键入新名称并按 "Enter" 提交。',385:"展开选择",386:"展开选定内容(&&E)",387:"收起选择",388:"缩小选定范围(&&S)",389:"星期天",390:"星期一",391:"星期二",392:"星期三",393:"星期四",394:"星期五",395:"星期六",396:"周日",397:"周一",398:"周二",399:"周三",400:"周四",401:"周五",402:"周六",403:"一月",404:"二月",405:"三月",406:"四月",407:"5月",408:"六月",409:"七月",410:"八月",411:"九月",412:"十月",413:"十一月",414:"十二月",415:"1月",416:"2月",417:"三月",418:"4月",419:"6月",420:"七月",421:"八月",422:"九月",423:"10月",424:"11 月",425:"12月",426:"选择“{0}”后进行了其他 {1} 次编辑",427:"触发建议",428:"建议小组件的背景色。",429:"建议小组件的边框颜色。",430:"建议小组件的前景色。",431:"建议小组件中所选条目的背景色。",432:"建议小组件中匹配内容的高亮颜色。",433:"阅读更多...{0}",434:"阅读简略信息...{0}",435:"无建议。",436:"{0}, accepted",437:"{0}, snippet suggestion",438:"{0}, suggestion",439:"{0}, snippet suggestion. Reading details. {1}",440:"{0}, suggestion. Reading details. {1}",441:"切换 Tab 键移动焦点",442:"读取访问期间符号的背景色,例如读取变量时。颜色必须透明,以免隐藏下面的修饰效果。",443:"写入访问过程中符号的背景色,例如写入变量时。颜色必须透明,以免隐藏下面的修饰效果。",444:"符号在进行读取访问操作时的边框颜色,例如读取变量。",445:"符号在进行写入访问操作时的边框颜色,例如写入变量。",446:"用于突出显示符号的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",447:"用于突出显示写权限符号的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",448:"转到下一个突出显示的符号",449:"转到上一个突出显示的符号",450:"无选择",451:"行 {0}, 列 {1} (选中 {2})",452:"行 {0}, 列 {1}",453:"{0} 选择(已选择 {1} 个字符)",454:"{0} 选择",455:'现在将 "辅助功能支持" 设置更改为 "打开"。',456:"现在正在打开“编辑器辅助功能”文档页。",457:"在差异编辑器的只读窗格中。",458:"在一个差异编辑器的窗格中。",459:"在只读代码编辑器中",460:"在代码编辑器中",461:"若要配置编辑器,将其进行优化以最好地配合屏幕阅读器的使用,请立即按 Command+E。",462:"若要配置编辑器,将其进行优化以最高效地配合屏幕阅读器的使用,按下 Control+E。",463:"配置编辑器,将其进行优化以最好地配合屏幕读取器的使用。",464:"编辑器被配置为永远不进行优化以配合屏幕读取器的使用, 而当前不是这种情况。",465:"在当前编辑器中按 Tab 会将焦点移动到下一个可聚焦的元素。通过按 {0} 切换此行为。",466:"在当前编辑器中按 Tab 会将焦点移动到下一个可聚焦的元素。当前无法通过按键绑定触发命令 {0}。",467:"在当前编辑器中按 Tab 将插入制表符。通过按 {0} 切换此行为。",468:"在当前编辑器中按 Tab 会插入制表符。当前无法通过键绑定触发命令 {0}。",469:"现在按 Command+H 打开一个浏览器窗口, 其中包含有关编辑器辅助功能的详细信息。",470:'现在按 "控制" + H 打开一个浏览器窗口, 其中包含有关编辑器辅助功能的更多信息。',471:"你可以按 Esc 或 Shift+Esc 消除此工具提示并返回到编辑器。",472:"显示辅助功能帮助",473:"开发人员: 检查令牌",474:"转到第 {0} 行,第 {1} 列",475:"转至行 {0}",476:"键入要导航到的介于 1 和 {0} 之间的行号",477:"键入 1 和 {0} 之间的字符以导航到",478:"键入行号, 后跟可选冒号和要导航到的字符数",479:"转到行...",480:"{0},命令",481:"键入要执行的操作的名称",482:"命令面板",483:"{0}, 符号",484:"键入要导航到的标识符的名称",485:"转到符号...",486:"符号({0})",487:"模块({0})",488:"类({0})",489:"接口({0})",490:"方法({0})",491:"函数({0})",492:"属性 ({0})",493:"变量({0})",494:"构造函数 ({0})",495:"调用 ({0})",496:"在 {1} 个文件中进行了 {0} 次编辑",497:"按 Ctrl+F1 可打开辅助功能选项。",498:"按 Alt+F1 可打开辅助功能选项。",499:"切换高对比度主题",500:"默认配置替代",501:"针对 {0} 语言,配置替代编辑器设置。",502:"针对某种语言,配置替代编辑器设置。",503:'无法注册“{0}”。其符合描述特定语言编辑器设置的表达式 "\\[.*\\]$"。请使用 "configurationDefaults"。',504:"无法注册“{0}”。此属性已注册。",505:"已按下({0})。正在等待同时按下第二个键...",506:"组合键({0}, {1})不是命令。",507:"工作台",508:"在通过鼠标多选树和列表条目时使用的修改键 (例如“资源管理器”、“打开的编辑器”和“源代码管理”视图)。“在侧边打开”功能所需的鼠标动作 (若可用) 将会相应调整,不与多选修改键冲突。",509:"控制在树和列表中怎样使用鼠标来展开子项(若支持)。对于树中的父节点,此设置将控制是使用单击还是双击来展开。注意,某些不适用于此设置的树或列表可能会忽略此项。",510:"控制工作台中的树控件是否支持水平滚动。",511:"工作台的颜色。",512:"整体前景色。此颜色仅在不被组件覆盖时适用。",513:"错误信息的整体前景色。此颜色仅在不被组件覆盖时适用。",514:"焦点元素的整体边框颜色。此颜色仅在不被其他组件覆盖时适用。",515:"在元素周围额外的一层边框,用来提高对比度从而区别其他元素。",516:"在活动元素周围额外的一层边框,用来提高对比度从而区别其他元素。",517:"文本中链接的前景色。",518:"文本中代码块的背景颜色。",519:"编辑器内小组件(如查找/替换)的阴影颜色。",520:"输入框背景色。",521:"输入框前景色。",522:"输入框边框。",523:"输入字段中已激活选项的边框颜色。",524:"输入验证结果为信息级别时的背景色。",525:"输入验证结果为信息级别时的前景色。",526:"严重性为信息时输入验证的边框颜色。",527:"严重性为警告时输入验证的背景色。",528:"输入验证结果为警告级别时的前景色。",529:"严重性为警告时输入验证的边框颜色。",530:"输入验证结果为错误级别时的背景色。",531:"输入验证结果为错误级别时的前景色。",532:"严重性为错误时输入验证的边框颜色。",533:"下拉列表背景色。",534:"下拉列表前景色。",535:"焦点项在列表或树活动时的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",536:"焦点项在列表或树活动时的前景颜色。活动的列表或树具有键盘焦点,非活动的没有。",537:"已选项在列表或树活动时的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",538:"已选项在列表或树活动时的前景颜色。活动的列表或树具有键盘焦点,非活动的没有。",539:"已选项在列表或树非活动时的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",540:"已选项在列表或树非活动时的前景颜色。活动的列表或树具有键盘焦点,非活动的没有。",541:"非活动的列表或树控件中焦点项的背景颜色。活动的列表或树具有键盘焦点,非活动的没有。",542:"使用鼠标移动项目时,列表或树的背景颜色。",543:"鼠标在项目上悬停时,列表或树的前景颜色。",544:"使用鼠标移动项目时,列表或树进行拖放的背景颜色。",545:"在列表或树中搜索时,其中匹配内容的高亮颜色。",546:"快速选取器分组标签的颜色。",547:"快速选取器分组边框的颜色。",548:"Badge 背景色。Badge 是小型的信息标签,如表示搜索结果数量的标签。",549:"Badge 前景色。Badge 是小型的信息标签,如表示搜索结果数量的标签。",550:"表示视图被滚动的滚动条阴影。",551:"滚动条滑块背景色",552:"滚动条滑块在悬停时的背景色",553:"滚动条滑块在被点击时的背景色。",554:"表示长时间操作的进度条的背景色。",555:"菜单的边框颜色。",556:"菜单项的前景颜色。",557:"菜单项的背景颜色。",558:"菜单中选定菜单项的前景色。",559:"菜单中所选菜单项的背景色。",560:"菜单中所选菜单项的边框颜色。",561:"菜单中分隔线的颜色。",562:"编辑器背景色。",563:"编辑器默认前景色。",564:"编辑器组件(如查找/替换)背景颜色。",565:"编辑器小部件的边框颜色。此颜色仅在小部件有边框且不被小部件重写时适用。",566:"编辑器小部件大小调整条的边框颜色。此颜色仅在小部件有调整边框且不被小部件颜色覆盖时使用。",567:"编辑器所选内容的颜色。",568:"用以彰显高对比度的所选文本的颜色。",569:"非活动编辑器中所选内容的颜色,颜色必须透明,以免隐藏下面的装饰效果。",570:"具有与所选项相关内容的区域的颜色。颜色必须透明,以免隐藏下面的修饰效果。",571:"与所选项内容相同的区域的边框颜色。",572:"当前搜索匹配项的颜色。",573:"其他搜索匹配项的颜色。颜色必须透明,以免隐藏下面的修饰效果。",574:"限制搜索范围的颜色。颜色不能不透明,以免隐藏底层装饰。",575:"当前搜索匹配项的边框颜色。",576:"其他搜索匹配项的边框颜色。",577:"编辑器将不再对屏幕阅读器的使用进行优化。",578:"控制编辑器是否应运行在对屏幕阅读器进行优化的模式。",579:"控制是否淡化未使用的代码。",580:"控制是否在编辑器中检测链接并使其可被点击。",581:"控制编辑器是否显示内联颜色修饰器和颜色选取器。",582:"在编辑器中启用代码操作小灯泡提示。",583:"控制是否在文件保存时整理 import 语句。",584:"在保存时运行的代码操作类型。",585:"控制在保存文件时进行的代码操作的超时时间 (毫秒)。",586:"控制是否支持 Linux 主剪贴板。",587:"控制差异编辑器的显示方式是并排还是内联。",588:"控制在差异编辑器中是否把前导空格或尾随空格的改动显示为差异。",589:"对大型文件进行特殊处理,禁用某些内存密集型功能。",590:"控制差异编辑器是否为添加/删除的更改显示 +/- 指示符号。",591:"[{0}] {1} [{2}]",592:"[{0}] {1}",593:"转到定义(&&D)...",594:"转到类型定义(&&T)",595:"转到实现(&&I)",596:"重命名符号",597:"{0}, snippet suggestion, has details",598:"{0}, suggestion, has details",599:"Tab 键将移动到下一可聚焦的元素",600:"Tab 键将插入制表符",601:"触发符号高亮",602:"限制搜索的范围的边框颜色。颜色必须透明,以免隐藏下面的修饰效果。",603:"在下面突出显示悬停的字词。颜色必须透明,以免隐藏下面的修饰效果。",604:"编辑器悬停提示的背景颜色。",605:"光标悬停时编辑器的边框颜色。",606:"活动链接颜色。",607:"已插入的文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。",608:"已删除的文本的背景色。颜色必须透明,以免隐藏下面的修饰效果。",609:"插入的文本的轮廓颜色。",610:"被删除文本的轮廓颜色。",611:"两个文本编辑器之间的边框颜色。",612:"代码片段 Tab 位的高亮背景色。",613:"代码片段 Tab 位的高亮边框颜色。",614:"代码片段中最后的 Tab 位的高亮背景色。",615:"代码片段中最后的 Tab 位的高亮边框颜色。",616:"用于查找匹配项的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。",617:"用于突出显示所选内容的概述标尺标记颜色。颜色必须透明,以免隐藏下面的修饰效果。"}};const A="en";let k,R,x=!1,T=!1,M=!1,O=!1,I=!1,P=!1,D=!1,q=!1,F=!1,B=!1,K=null,V=null,U=null;const W="object"==typeof self?self:"object"==typeof e.g?e.g:{};let H;void 0!==W.vscode&&void 0!==W.vscode.process?H=W.vscode.process:"undefined"!=typeof process&&(H=process);const z="string"==typeof(null===(E=null==H?void 0:H.versions)||void 0===E?void 0:E.electron),j=z&&"renderer"===(null==H?void 0:H.type);if("object"!=typeof navigator||j)if("object"==typeof H){x="win32"===H.platform,T="darwin"===H.platform,M="linux"===H.platform,O=M&&!!H.env.SNAP&&!!H.env.SNAP_REVISION,D=z,F=!!H.env.CI||!!H.env.BUILD_ARTIFACTSTAGINGDIRECTORY,k=A,K=A;const e=H.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];k=t.locale,V=t.osLocale,K=n||A,U=t._translationsConfigFile}catch(e){}I=!0}else console.error("Unable to resolve platform.");else R=navigator.userAgent,x=R.indexOf("Windows")>=0,T=R.indexOf("Macintosh")>=0,q=(R.indexOf("Macintosh")>=0||R.indexOf("iPad")>=0||R.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,M=R.indexOf("Linux")>=0,B=(null==R?void 0:R.indexOf("Mobi"))>=0,P=!0,k=void N({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_")||A,K=k,V=navigator.language;let $=0;T?$=1:x?$=3:M&&($=2);const G=x,J=T,Q=(P&&W.importScripts,R),Y="function"==typeof W.postMessage&&!W.importScripts;(()=>{if(Y){const e=[];W.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n=0),X=(Q&&Q.indexOf("Firefox"),!Z&&Q&&Q.indexOf("Safari"),Q&&Q.indexOf("Edg/"),Q&&Q.indexOf("Android"),W.performance&&"function"==typeof W.performance.now);class ee{static create(e=!0){return new ee(e)}constructor(e){this._highResolution=X&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?W.performance.now():Date.now()}}var te,ne;!function(e){function t(e){return(t,n=null,r)=>{let o,i=!1;return o=e((e=>{if(!i)return o?o.dispose():i=!0,t.call(n,e)}),null,r),i&&o.dispose(),o}}function n(e,t,n){return s(((n,r=null,o)=>e((e=>n.call(r,t(e))),null,o)),n)}function r(e,t,n){return s(((n,r=null,o)=>e((e=>{t(e),n.call(r,e)}),null,o)),n)}function o(e,t,n){return s(((n,r=null,o)=>e((e=>t(e)&&n.call(r,e)),null,o)),n)}function i(e,t,r,o){let i=r;return n(e,(e=>(i=t(i,e),i)),o)}function s(e,t){let n;const r=new ae({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){null==n||n.dispose()}});return null==t||t.add(r),r.event}function a(e,t,n=100,r=!1,o=!1,i,s){let a,l,d,c,u=0;const h=new ae({leakWarningThreshold:i,onWillAddFirstListener(){a=e((e=>{u++,l=t(l,e),r&&!d&&(h.fire(l),l=void 0),c=()=>{const e=l;l=void 0,d=void 0,(!r||u>1)&&h.fire(e),u=0},"number"==typeof n?(clearTimeout(d),d=setTimeout(c,n)):void 0===d&&(d=0,queueMicrotask(c))}))},onWillRemoveListener(){o&&u>0&&(null==c||c())},onDidRemoveLastListener(){c=void 0,a.dispose()}});return null==s||s.add(h),h.event}function l(e,t=((e,t)=>e===t),n){let r,i=!0;return o(e,(e=>{const n=i||!t(e,r);return i=!1,r=e,n}),n)}e.None=()=>C.None,e.defer=function(e,t){return a(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=t,e.map=n,e.forEach=r,e.filter=o,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>function(...e){const t=p((()=>f(e)));return function(e,t){if(u)for(const n of e)u.setParent(n,t)}(e,t),t}(...e.map((e=>e((e=>t.call(n,e)),null,r))))},e.reduce=i,e.debounce=a,e.accumulate=function(t,n=0,r){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,r)},e.latch=l,e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,(e=>!n(e)),r)]},e.buffer=function(e,t=!1,n=[]){let r=n.slice(),o=e((e=>{r?r.push(e):s.fire(e)}));const i=()=>{null==r||r.forEach((e=>s.fire(e))),r=null},s=new ae({onWillAddFirstListener(){o||(o=e((e=>s.fire(e))))},onDidAddFirstListener(){r&&(t?setTimeout(i):i())},onDidRemoveLastListener(){o&&o.dispose(),o=null}});return s.event};class d{constructor(e){this.event=e,this.disposables=new b}map(e){return new d(n(this.event,e,this.disposables))}forEach(e){return new d(r(this.event,e,this.disposables))}filter(e){return new d(o(this.event,e,this.disposables))}reduce(e,t){return new d(i(this.event,e,t,this.disposables))}latch(){return new d(l(this.event,void 0,this.disposables))}debounce(e,t=100,n=!1,r=!1,o){return new d(a(this.event,e,t,n,r,o,this.disposables))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}dispose(){this.disposables.dispose()}}e.chain=function(e){return new d(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>o.fire(n(...e)),o=new ae({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return o.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>o.fire(n(...e)),o=new ae({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return o.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.runAndSubscribe=function(e,t){return t(void 0),e((e=>t(e)))},e.runAndSubscribeWithStore=function(e,t){let n=null;function r(e){null==n||n.dispose(),n=new b,t(e,n)}r(void 0);const o=e((e=>r(e)));return p((()=>{o.dispose(),null==n||n.dispose()}))};class c{constructor(e,t){this.obs=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new ae(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handleChange(e,t){this._hasChanged=!0}endUpdate(e){0==--this._counter&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event}}(te||(te={}));class re{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${re._idPool++}`,re.all.add(this)}start(e){this._stopWatch=new ee(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}re.all=new Set,re._idPool=0;class oe{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}}class ie{static create(){var e;return new ie(null!==(e=(new Error).stack)&&void 0!==e?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class se{constructor(e,t,n){this.callback=e,this.callbackThis=t,this.stack=n,this.subscription=new y}invoke(e){this.callback.call(this.callbackThis,e)}}class ae{constructor(e){var t,n,r,o,i;this._disposed=!1,this._options=e,this._leakageMon=(null===(t=this._options)||void 0===t?void 0:t.leakWarningThreshold)?new oe(null!==(r=null===(n=this._options)||void 0===n?void 0:n.leakWarningThreshold)&&void 0!==r?r:-1):void 0,this._perfMon=(null===(o=this._options)||void 0===o?void 0:o._profName)?new re(this._options._profName):void 0,this._deliveryQueue=null===(i=this._options)||void 0===i?void 0:i.deliveryQueue}dispose(){var e,t,n,r;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),null===(e=this._deliveryQueue)||void 0===e||e.clear(this),null===(n=null===(t=this._options)||void 0===t?void 0:t.onDidRemoveLastListener)||void 0===n||n.call(t),null===(r=this._leakageMon)||void 0===r||r.dispose())}get event(){return this._event||(this._event=(e,t,n)=>{var r,o,i;if(this._listeners||(this._listeners=new _),this._leakageMon&&this._listeners.size>3*this._leakageMon.threshold)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),C.None;const s=this._listeners.isEmpty();let a,l;s&&(null===(r=this._options)||void 0===r?void 0:r.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this),this._leakageMon&&this._listeners.size>=Math.ceil(.2*this._leakageMon.threshold)&&(l=ie.create(),a=this._leakageMon.check(l,this._listeners.size+1));const d=new se(e,t,l),c=this._listeners.push(d);s&&(null===(o=this._options)||void 0===o?void 0:o.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),(null===(i=this._options)||void 0===i?void 0:i.onDidAddListener)&&this._options.onDidAddListener(this,e,t);const u=d.subscription.set((()=>{var e,t;null==a||a(),!this._disposed&&(null===(t=null===(e=this._options)||void 0===e?void 0:e.onWillRemoveListener)||void 0===t||t.call(e,this),c(),this._options&&this._options.onDidRemoveLastListener)&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this))}));return n instanceof b?n.add(u):Array.isArray(n)&&n.push(u),u}),this._event}fire(e){var t,n,r;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new de(null===(t=this._options)||void 0===t?void 0:t.onListenerError));for(const t of this._listeners)this._deliveryQueue.push(this,t,e);null===(n=this._perfMon)||void 0===n||n.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),null===(r=this._perfMon)||void 0===r||r.stop()}}hasListeners(){return!!this._listeners&&!this._listeners.isEmpty()}}class le{constructor(e=n){this._onListenerError=e,this._queue=new _}get size(){return this._queue.size}push(e,t,n){this._queue.push(new ce(e,t,n))}clear(e){const t=new _;for(const n of this._queue)n.emitter!==e&&t.push(n);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(e){this._onListenerError(e)}}}}class de extends le{clear(e){this._queue.clear()}}class ce{constructor(e,t,n){this.emitter=e,this.listener=t,this.event=n}}function ue(e){const t=[];for(const n of function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}(e))"function"==typeof e[n]&&t.push(n);return t}Object.prototype.hasOwnProperty;class he{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function ge(e){return e>=65&&e<=90}function me(e){return 55296<=e&&e<=56319}function fe(e){return 56320<=e&&e<=57343}function pe(e,t){return t-56320+(e-55296<<10)+65536}function be(e,t,n){const r=e.charCodeAt(n);if(me(r)&&n+1t[3*r+1]))return t[3*r+2];r=2*r+1}return 0}}ye._INSTANCE=null;class ve{static getInstance(e){return ve.cache.get(Array.from(e))}static getLocales(){return ve._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}ne=ve,ve.ambiguousCharacterData=new he((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ve.cache=new class{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}((e=>{function t(e){const t=new Map;for(let n=0;n!e.startsWith("_")&&e in r));0===i.length&&(i=["_default"]);for(const e of i)o=n(o,t(r[e]));const s=function(e,t){const n=new Map(e);for(const[e,r]of t)n.set(e,r);return n}(t(r._common),o);return new ve(s)})),ve._locales=new he((()=>Object.keys(ve.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class we{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(we.getRawData())),this._data}static isInvisibleCharacter(e){return we.getData().has(e)}static get codePoints(){return we.getData()}}we._data=void 0;let _e;class Le{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.method=n,this.args=r,this.type=0}}class Se{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}}class Ne{constructor(e,t,n,r){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=r,this.type=2}}class Ee{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Ae{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class ke{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((r,o)=>{this._pendingReplies[n]={resolve:r,reject:o},this._send(new Le(this._workerId,n,e,t))}))}listen(e,t){let n=null;const r=new ae({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,r),this._send(new Ne(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Ae(this._workerId,n)),n=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Se(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=r(e.detail)),this._send(new Se(this._workerId,t,void 0,r(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new Ee(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(xe(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(Re(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,r){this._protocol.setWorkerId(e);const o=function(e,t,n){const r=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},o=e=>function(t){return n(e,t)},i={};for(const t of e)xe(t)?i[t]=o(t):Re(t)?i[t]=n(t,void 0):i[t]=r(t);return i}(r,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(ue(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==typeof t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(o),this._requestHandler?e(ue(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class Me{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Oe(e,t){return(t<<5)-t+e|0}function Ie(e,t){t=Oe(149417,t);for(let n=0,r=e.length;n>>r)>>>0}function De(e,t=0,n=e.byteLength,r=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length>>0).toString(16),t/4)}class Fe{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,o,i=this._buffLen,s=this._leftoverHighSurrogate;for(0!==s?(r=s,o=-1,s=0):(r=e.charCodeAt(0),o=0);;){let a=r;if(me(r)){if(!(o+1>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),qe(this._h0)+qe(this._h1)+qe(this._h2)+qe(this._h3)+qe(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,De(this._buff,this._buffLen),this._buffLen>56&&(this._step(),De(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Fe._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,Pe(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,r,o,i=this._h0,s=this._h1,a=this._h2,l=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(n=s&a|~s&l,r=1518500249):t<40?(n=s^a^l,r=1859775393):t<60?(n=s&a|s&l|a&l,r=2400959708):(n=s^a^l,r=3395469782),o=Pe(i,5)+n+d+r+e.getUint32(4*t,!1)&4294967295,d=l,l=a,a=Pe(s,30),s=i,i=o;this._h0=this._h0+i&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+d&4294967295}}Fe._bigBlock32=new DataView(new ArrayBuffer(320));class Be{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new Me(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class He{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[r,o,i]=He._getElements(e),[s,a,l]=He._getElements(t);this._hasStrings=i&&l,this._originalStringElements=r,this._originalElementsOrHash=o,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(He._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,r=t.length;n=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let o;return n<=r?(Ve.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new Me(e,0,n,r-n+1)]):e<=t?(Ve.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new Me(e,t-e+1,n,0)]):(Ve.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ve.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const i=[0],s=[0],a=this.ComputeRecursionPoint(e,t,n,r,i,s,o),l=i[0],d=s[0];if(null!==a)return a;if(!o[0]){const i=this.ComputeDiffRecursive(e,l,n,d,o);let s=[];return s=o[0]?[new Me(l+1,t-(l+1)+1,d+1,r-(d+1)+1)]:this.ComputeDiffRecursive(l+1,t,d+1,r,o),this.ConcatenateChanges(i,s)}return[new Me(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,o,i,s,a,l,d,c,u,h,g,m,f,p,b){let C=null,y=null,v=new We,w=t,_=n,L=h[0]-f[0]-r,S=-1073741824,N=this.m_forwardHistory.length-1;do{const t=L+e;t===w||t<_&&l[t-1]=0&&(e=(l=this.m_forwardHistory[N])[0],w=1,_=l.length-1)}while(--N>=-1);if(C=v.getReverseChanges(),b[0]){let e=h[0]+1,t=f[0]+1;if(null!==C&&C.length>0){const n=C[C.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new Me(e,u-e+1,t,m-t+1)]}else{v=new We,w=i,_=s,L=h[0]-f[0]-a,S=1073741824,N=p?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=L+o;e===w||e<_&&d[e-1]>=d[e+1]?(g=(c=d[e+1]-1)-L-a,c>S&&v.MarkNextChange(),S=c+1,v.AddOriginalElement(c+1,g+1),L=e+1-o):(g=(c=d[e-1])-L-a,c>S&&v.MarkNextChange(),S=c,v.AddModifiedElement(c+1,g+1),L=e-1-o),N>=0&&(o=(d=this.m_reverseHistory[N])[0],w=1,_=d.length-1)}while(--N>=-1);y=v.getChanges()}return this.ConcatenateChanges(C,y)}ComputeRecursionPoint(e,t,n,r,o,i,s){let a=0,l=0,d=0,c=0,u=0,h=0;e--,n--,o[0]=0,i[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(r-n),m=g+1,f=new Int32Array(m),p=new Int32Array(m),b=r-n,C=t-e,y=e-n,v=t-r,w=(C-b)%2==0;f[b]=e,p[C]=t,s[0]=!1;for(let _=1;_<=g/2+1;_++){let g=0,L=0;d=this.ClipDiagonalBound(b-_,_,b,m),c=this.ClipDiagonalBound(b+_,_,b,m);for(let e=d;e<=c;e+=2){a=e===d||eg+L&&(g=a,L=l),!w&&Math.abs(e-C)<=_-1&&a>=p[e])return o[0]=a,i[0]=l,n<=p[e]&&_<=1448?this.WALKTRACE(b,d,c,y,C,u,h,v,f,p,a,t,o,l,r,i,w,s):null}const S=(g-e+(L-n)-_)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,S))return s[0]=!0,o[0]=g,i[0]=L,S>0&&_<=1448?this.WALKTRACE(b,d,c,y,C,u,h,v,f,p,a,t,o,l,r,i,w,s):(e++,n++,[new Me(e,t-e+1,n,r-n+1)]);u=this.ClipDiagonalBound(C-_,_,C,m),h=this.ClipDiagonalBound(C+_,_,C,m);for(let g=u;g<=h;g+=2){a=g===u||g=p[g+1]?p[g+1]-1:p[g-1],l=a-(g-C)-v;const m=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(p[g]=a,w&&Math.abs(g-b)<=_&&a<=f[g])return o[0]=a,i[0]=l,m>=f[g]&&_<=1448?this.WALKTRACE(b,d,c,y,C,u,h,v,f,p,a,t,o,l,r,i,w,s):null}if(_<=1447){let e=new Int32Array(c-d+2);e[0]=b-d+1,Ue.Copy2(f,d,e,1,c-d+1),this.m_forwardHistory.push(e),e=new Int32Array(h-u+2),e[0]=C-u+1,Ue.Copy2(p,u,e,1,h-u+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,d,c,y,C,u,h,v,f,p,a,t,o,l,r,i,w,s)}PrettifyChanges(e){for(let t=0;t0,s=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let r=0,o=0;if(t>0){const n=e[t-1];r=n.originalStart+n.originalLength,o=n.modifiedStart+n.modifiedLength}const i=n.originalLength>0,s=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,d=n.modifiedStart-e;if(tl&&(l=c,a=e)}n.originalStart-=a,n.modifiedStart-=a;const d=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],d)&&(e[t-1]=d[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>a&&(a=n,l=t,d=e)}return a>0?[l,d]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const r=new Array(e.length+t.length-1);return Ue.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],Ue.Copy(t,1,r,e.length,t.length-1),r}{const n=new Array(e.length+t.length);return Ue.Copy(e,0,n,0,e.length),Ue.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Ve.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ve.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const r=e.originalStart;let o=e.originalLength;const i=e.modifiedStart;let s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Me(r,o,i,s),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&ee.cwd()}}else _e="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return G?"win32":J?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const ze=_e.cwd,je=_e.env,$e=_e.platform,Ge=46,Je=47,Qe=92,Ye=58;class Ze extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${t}`;i+=". Received type "+typeof n,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function Xe(e,t){if("string"!=typeof e)throw new Ze(t,"string",e)}const et="win32"===$e;function tt(e){return e===Je||e===Qe}function nt(e){return e===Je}function rt(e){return e>=65&&e<=90||e>=97&&e<=122}function ot(e,t,n,r){let o="",i=0,s=-1,a=0,l=0;for(let d=0;d<=e.length;++d){if(d2){const e=o.lastIndexOf(n);-1===e?(o="",i=0):(o=o.slice(0,e),i=o.length-1-o.lastIndexOf(n)),s=d,a=0;continue}if(0!==o.length){o="",i=0,s=d,a=0;continue}}t&&(o+=o.length>0?`${n}..`:"..",i=2)}else o.length>0?o+=`${n}${e.slice(s+1,d)}`:o=e.slice(s+1,d),i=d-s-1;s=d,a=0}else l===Ge&&-1!==a?++a:a=-1}return o}function it(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new Ze("pathObject","Object",e)}(t);const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const st={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let i;if(o>=0){if(i=e[o],Xe(i,"path"),0===i.length)continue}else 0===t.length?i=ze():(i=je[`=${t}`]||ze(),(void 0===i||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===Qe)&&(i=`${t}\\`));const s=i.length;let a=0,l="",d=!1;const c=i.charCodeAt(0);if(1===s)tt(c)&&(a=1,d=!0);else if(tt(c))if(d=!0,tt(i.charCodeAt(1))){let e=2,t=e;for(;e2&&tt(i.charCodeAt(2))&&(d=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(r){if(t.length>0)break}else if(n=`${i.slice(a)}\\${n}`,r=d,d&&t.length>0)break}return n=ot(n,!r,"\\",tt),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Xe(e,"path");const t=e.length;if(0===t)return".";let n,r=0,o=!1;const i=e.charCodeAt(0);if(1===t)return nt(i)?"\\":e;if(tt(i))if(o=!0,tt(e.charCodeAt(1))){let o=2,i=o;for(;o2&&tt(e.charCodeAt(2))&&(o=!0,r=3));let s=r0&&tt(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?o?`\\${s}`:s:o?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){Xe(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return tt(n)||t>2&&rt(n)&&e.charCodeAt(1)===Ye&&tt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r0&&(void 0===t?t=n=o:t+=`\\${o}`)}if(void 0===t)return".";let r=!0,o=0;if("string"==typeof n&&tt(n.charCodeAt(0))){++o;const e=n.length;e>1&&tt(n.charCodeAt(1))&&(++o,e>2&&(tt(n.charCodeAt(2))?++o:r=!1))}if(r){for(;o=2&&(t=`\\${t.slice(o)}`)}return st.normalize(t)},relative(e,t){if(Xe(e,"from"),Xe(t,"to"),e===t)return"";const n=st.resolve(e),r=st.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(i-1)===Qe;)i--;const s=i-o;let a=0;for(;aa&&t.charCodeAt(l-1)===Qe;)l--;const d=l-a,c=sc){if(t.charCodeAt(a+h)===Qe)return r.slice(a+h+1);if(2===h)return r.slice(a+h)}s>c&&(e.charCodeAt(o+h)===Qe?u=h:2===h&&(u=3)),-1===u&&(u=0)}let g="";for(h=o+u+1;h<=i;++h)h!==i&&e.charCodeAt(h)!==Qe||(g+=0===g.length?"..":"\\..");return a+=u,g.length>0?`${g}${r.slice(a,l)}`:(r.charCodeAt(a)===Qe&&++a,r.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=st.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Qe){if(t.charCodeAt(1)===Qe){const e=t.charCodeAt(2);if(63!==e&&e!==Ge)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(rt(t.charCodeAt(0))&&t.charCodeAt(1)===Ye&&t.charCodeAt(2)===Qe)return`\\\\?\\${t}`;return e},dirname(e){Xe(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const o=e.charCodeAt(0);if(1===t)return tt(o)?e:".";if(tt(o)){if(n=r=1,tt(e.charCodeAt(1))){let o=2,i=o;for(;o2&&tt(e.charCodeAt(2))?3:2,r=n);let i=-1,s=!0;for(let n=t-1;n>=r;--n)if(tt(e.charCodeAt(n))){if(!s){i=n;break}}else s=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&Xe(t,"ext"),Xe(e,"path");let n,r=0,o=-1,i=!0;if(e.length>=2&&rt(e.charCodeAt(0))&&e.charCodeAt(1)===Ye&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(tt(l)){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=a))}return r===o?o=a:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=r;--n)if(tt(e.charCodeAt(n))){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){Xe(e,"path");let t=0,n=-1,r=0,o=-1,i=!0,s=0;e.length>=2&&e.charCodeAt(1)===Ye&&rt(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(tt(t)){if(!i){r=a+1;break}}else-1===o&&(i=!1,o=a+1),t===Ge?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===o||0===s||1===s&&n===o-1&&n===r+1?"":e.slice(n,o)},format:it.bind(null,"\\"),parse(e){Xe(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,o=e.charCodeAt(0);if(1===n)return tt(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(tt(o)){if(r=1,tt(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,r));let i=-1,s=r,a=-1,l=!0,d=e.length-1,c=0;for(;d>=r;--d)if(o=e.charCodeAt(d),tt(o)){if(!l){s=d+1;break}}else-1===a&&(l=!1,a=d+1),o===Ge?-1===i?i=d:1!==c&&(c=1):-1!==i&&(c=-1);return-1!==a&&(-1===i||0===c||1===c&&i===a-1&&i===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,i),t.base=e.slice(s,a),t.ext=e.slice(i,a))),t.dir=s>0&&s!==r?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},at=(()=>{if(et){const e=/\\/g;return()=>{const t=ze().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>ze()})(),lt={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:at();Xe(o,"path"),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===Je)}return t=ot(t,!n,"/",nt),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Xe(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Je,n=e.charCodeAt(e.length-1)===Je;return 0===(e=ot(e,!t,"/",nt)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(Xe(e,"path"),e.length>0&&e.charCodeAt(0)===Je),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":lt.normalize(t)},relative(e,t){if(Xe(e,"from"),Xe(t,"to"),e===t)return"";if((e=lt.resolve(e))===(t=lt.resolve(t)))return"";const n=e.length,r=n-1,o=t.length-1,i=ri){if(t.charCodeAt(1+a)===Je)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else r>i&&(e.charCodeAt(1+a)===Je?s=a:0===a&&(s=0));let l="";for(a=1+s+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Je||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+s)}`},toNamespacedPath:e=>e,dirname(e){if(Xe(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Je;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===Je){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&Xe(t,"ext"),Xe(e,"path");let n,r=0,o=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===Je){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=a))}return r===o?o=a:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Je){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){Xe(e,"path");let t=-1,n=0,r=-1,o=!0,i=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==Je)-1===r&&(o=!1,r=s+1),a===Ge?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)},format:it.bind(null,"/"),parse(e){Xe(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Je;let r;n?(t.root="/",r=1):r=0;let o=-1,i=0,s=-1,a=!0,l=e.length-1,d=0;for(;l>=r;--l){const t=e.charCodeAt(l);if(t!==Je)-1===s&&(a=!1,s=l+1),t===Ge?-1===o?o=l:1!==d&&(d=1):-1!==o&&(d=-1);else if(!a){i=l+1;break}}if(-1!==s){const r=0===i&&n?1:i;-1===o||0===d||1===d&&o===s-1&&o===i+1?t.base=t.name=e.slice(r,s):(t.name=e.slice(r,o),t.base=e.slice(r,s),t.ext=e.slice(o,s))}return i>0?t.dir=e.slice(0,i-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};lt.win32=st.win32=st,lt.posix=st.posix=lt,et?st.normalize:lt.normalize,et?st.resolve:lt.resolve,et?st.relative:lt.relative,et?st.dirname:lt.dirname,et?st.basename:lt.basename,et?st.extname:lt.extname,et?st.sep:lt.sep;const dt=/^\w[\w\d+.-]*$/,ct=/^\//,ut=/^\/\//;function ht(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!dt.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ct.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(ut.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const gt="",mt="/",ft=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class pt{static isUri(e){return e instanceof pt||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,n,r,o,i=!1){"object"==typeof e?(this.scheme=e.scheme||gt,this.authority=e.authority||gt,this.path=e.path||gt,this.query=e.query||gt,this.fragment=e.fragment||gt):(this.scheme=function(e,t){return e||t?e:"file"}(e,i),this.authority=t||gt,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==mt&&(t=mt+t):t=mt}return t}(this.scheme,n||gt),this.query=r||gt,this.fragment=o||gt,ht(this,i))}get fsPath(){return _t(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:o,fragment:i}=e;return void 0===t?t=this.scheme:null===t&&(t=gt),void 0===n?n=this.authority:null===n&&(n=gt),void 0===r?r=this.path:null===r&&(r=gt),void 0===o?o=this.query:null===o&&(o=gt),void 0===i?i=this.fragment:null===i&&(i=gt),t===this.scheme&&n===this.authority&&r===this.path&&o===this.query&&i===this.fragment?this:new Ct(t,n,r,o,i)}static parse(e,t=!1){const n=ft.exec(e);return n?new Ct(n[2]||gt,Et(n[4]||gt),Et(n[5]||gt),Et(n[7]||gt),Et(n[9]||gt),t):new Ct(gt,gt,gt,gt,gt)}static file(e){let t=gt;if(G&&(e=e.replace(/\\/g,mt)),e[0]===mt&&e[1]===mt){const n=e.indexOf(mt,2);-1===n?(t=e.substring(2),e=mt):(t=e.substring(2,n),e=e.substring(n)||mt)}return new Ct("file",t,e,gt,gt)}static from(e){const t=new Ct(e.scheme,e.authority,e.path,e.query,e.fragment);return ht(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=G&&"file"===e.scheme?pt.file(st.join(_t(e,!0),...t)).path:lt.join(e.path,...t),e.with({path:n})}toString(e=!1){return Lt(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof pt)return e;{const t=new Ct(e);return t._formatted=e.external,t._fsPath=e._sep===bt?e.fsPath:null,t}}return e}}const bt=G?1:void 0;class Ct extends pt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_t(this,!1)),this._fsPath}toString(e=!1){return e?Lt(this,!0):(this._formatted||(this._formatted=Lt(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=bt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const yt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function vt(e,t,n){let r,o=-1;for(let i=0;i=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));const t=yt[s];void 0!==t?(-1!==o&&(r+=encodeURIComponent(e.substring(o,i)),o=-1),r+=t):-1===o&&(o=i)}}return-1!==o&&(r+=encodeURIComponent(e.substring(o))),void 0!==r?r:e}function wt(e){let t;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,G&&(n=n.replace(/\//g,"\\")),n}function Lt(e,t){const n=t?wt:vt;let r="",{scheme:o,authority:i,path:s,query:a,fragment:l}=e;if(o&&(r+=o,r+=":"),(i||"file"===o)&&(r+=mt,r+=mt),i){let e=i.indexOf("@");if(-1!==e){const t=i.substr(0,e);i=i.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}i=i.toLowerCase(),e=i.lastIndexOf(":"),-1===e?r+=n(i,!1,!0):(r+=n(i.substr(0,e),!1,!0),r+=i.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),l&&(r+="#",r+=t?l:vt(l,!1,!1)),r}function St(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+St(e.substr(3)):e}}const Nt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Et(e){return e.match(Nt)?e.replace(Nt,(e=>St(e))):e}class At{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new At(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return At.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return At.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return kt.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return kt.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return kt.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return kt.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return kt.plusRange(this,e)}static plusRange(e,t){let n,r,o,i;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,i=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,i=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,i=e.endColumn),new kt(n,r,o,i)}intersectRanges(e){return kt.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,i=e.endColumn;const s=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,d=t.endColumn;return nl?(o=l,i=d):o===l&&(i=Math.min(i,d)),n>o||n===o&&r>i?null:new kt(n,r,o,i)}equalsRange(e){return kt.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return kt.getEndPosition(this)}static getEndPosition(e){return new At(e.endLineNumber,e.endColumn)}getStartPosition(){return kt.getStartPosition(this)}static getStartPosition(e){return new At(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new kt(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new kt(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return kt.collapseToStart(this)}static collapseToStart(e){return new kt(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return kt.collapseToEnd(this)}static collapseToEnd(e){return new kt(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new kt(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new kt(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new kt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}var Rt;!function(e){e.isLessThan=function(e){return e<0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(Rt||(Rt={}));class xt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new xt((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new xt((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((r=>((n||Rt.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0))),t}}function Tt(e){return e<0?0:e>255?255:0|e}function Mt(e){return e<0?0:e>4294967295?4294967295:0|e}xt.empty=new xt((e=>{}));class Ot{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Mt(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=Mt(e),t=Mt(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;const o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Mt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,o=0,i=0;for(;t<=n;)if(r=t+(n-t)/2|0,o=this.prefixSum[r],i=o-this.values[r],e=o))break;t=r+1}return new It(r,e-i)}}class It{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Pt{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new At(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;r/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}(),qt=new _;function Ft(e,t,n,r,o){if(o||(o=c.first(qt)),n.length>o.maxLen){let i=e-o.maxLen/2;return i<0?i=0:r+=i,Ft(e,t,n=n.substring(i,e+o.maxLen/2),r,o)}const i=Date.now(),s=e-1-r;let a=-1,l=null;for(let e=1;!(Date.now()-i>=o.timeBudget);e++){const r=s-o.windowSize*e;t.lastIndex=Math.max(0,r);const i=Bt(t,n,s,a);if(!i&&l)break;if(l=i,r<=0)break;a=r}if(l){const e={word:l[0],startColumn:r+1+l.index,endColumn:r+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Bt(e,t,n,r){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=n&&e.lastIndex>=n)return o;if(r>0&&t>r)return null}return null}qt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class Kt{constructor(e){const t=Tt(e);this._defaultValue=t,this._asciiMap=Kt._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=Tt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class Vt{constructor(e,t,n){const r=new Uint8Array(e*t);for(let o=0,i=e*t;ot&&(t=i),o>n&&(n=o),s>n&&(n=s)}t++,n++;const r=new Vt(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let Wt=null,Ht=null;class zt{static _createLink(e,t,n,r,o){let i=o-1;do{const n=t.charCodeAt(i);if(2!==e.get(n))break;i--}while(i>r);if(r>0){const e=t.charCodeAt(r-1),n=t.charCodeAt(i);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&i--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:i+2},url:t.substring(r,i+1)}}static computeLinks(e,t=function(){return null===Wt&&(Wt=new Ut([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Wt}()){const n=function(){if(null===Ht){Ht=new Kt(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}jt.INSTANCE=new jt;const $t=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Gt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof Jt||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:te.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:$t})}(Gt||(Gt={}));class Jt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?$t:(this._emitter||(this._emitter=new ae),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Qt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Yt=new Qt,Zt=new Qt,Xt=new Qt,en=new Array(230),tn={},nn=[],rn=Object.create(null),on=Object.create(null),sn=[],an=[];for(let e=0;e<=193;e++)sn[e]=-1;for(let e=0;e<=127;e++)an[e]=-1;var ln;!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const e of t){const[t,o,i,s,a,l,d,c,u,h]=e;if(r[i]||(r[i]=!0,nn[i]=s,rn[s]=i,on[s.toLowerCase()]=i,o&&(sn[i]=a,0!==a&&3!==a&&5!==a&&4!==a&&6!==a&&57!==a&&(an[a]=i))),!n[a]){if(n[a]=!0,!l)throw new Error(`String representation missing for key code ${a} around scan code ${s}`);Yt.define(a,l),Zt.define(a,u||l),Xt.define(a,h||u||l)}d&&(en[d]=a),c&&(tn[c]=a)}an[3]=46}(),function(e){e.toString=function(e){return Yt.keyCodeToStr(e)},e.fromString=function(e){return Yt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Zt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Xt.keyCodeToStr(e)},e.fromUserSettings=function(e){return Zt.strToKeyCode(e)||Xt.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Yt.keyCodeToStr(e)}}(ln||(ln={}));class dn extends kt{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return dn.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new dn(this.startLineNumber,this.startColumn,e,t):new dn(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new At(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new At(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new dn(e,t,this.endLineNumber,this.endColumn):new dn(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new dn(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new dn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new dn(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new dn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const r=new lr(this,e,t);return this._factories.set(e,r),p((()=>{const t=this._factories.get(e);t&&t===r&&(this._factories.delete(e),t.dispose())}))}getOrCreate(e){return ar(this,void 0,void 0,(function*(){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))}))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(vn||(vn={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(wn||(wn={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(_n||(_n={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(Ln||(Ln={})),function(e){e[e.Deprecated=1]="Deprecated"}(Sn||(Sn={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Nn||(Nn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(En||(En={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(An||(An={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(kn||(kn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Rn||(Rn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(xn||(xn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.parameterHints=82]="parameterHints",e[e.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",e[e.quickSuggestions=85]="quickSuggestions",e[e.quickSuggestionsDelay=86]="quickSuggestionsDelay",e[e.readOnly=87]="readOnly",e[e.renameOnType=88]="renameOnType",e[e.renderControlCharacters=89]="renderControlCharacters",e[e.renderFinalNewline=90]="renderFinalNewline",e[e.renderLineHighlight=91]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=93]="renderValidationDecorations",e[e.renderWhitespace=94]="renderWhitespace",e[e.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",e[e.roundedSelection=96]="roundedSelection",e[e.rulers=97]="rulers",e[e.scrollbar=98]="scrollbar",e[e.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=100]="scrollBeyondLastLine",e[e.scrollPredominantAxis=101]="scrollPredominantAxis",e[e.selectionClipboard=102]="selectionClipboard",e[e.selectionHighlight=103]="selectionHighlight",e[e.selectOnLineNumbers=104]="selectOnLineNumbers",e[e.showFoldingControls=105]="showFoldingControls",e[e.showUnused=106]="showUnused",e[e.snippetSuggestions=107]="snippetSuggestions",e[e.smartSelect=108]="smartSelect",e[e.smoothScrolling=109]="smoothScrolling",e[e.stickyScroll=110]="stickyScroll",e[e.stickyTabStops=111]="stickyTabStops",e[e.stopRenderingLineAfter=112]="stopRenderingLineAfter",e[e.suggest=113]="suggest",e[e.suggestFontSize=114]="suggestFontSize",e[e.suggestLineHeight=115]="suggestLineHeight",e[e.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",e[e.suggestSelection=117]="suggestSelection",e[e.tabCompletion=118]="tabCompletion",e[e.tabIndex=119]="tabIndex",e[e.unicodeHighlighting=120]="unicodeHighlighting",e[e.unusualLineTerminators=121]="unusualLineTerminators",e[e.useShadowDOM=122]="useShadowDOM",e[e.useTabStops=123]="useTabStops",e[e.wordBreak=124]="wordBreak",e[e.wordSeparators=125]="wordSeparators",e[e.wordWrap=126]="wordWrap",e[e.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=129]="wordWrapColumn",e[e.wordWrapOverride1=130]="wordWrapOverride1",e[e.wordWrapOverride2=131]="wordWrapOverride2",e[e.wrappingIndent=132]="wrappingIndent",e[e.wrappingStrategy=133]="wrappingStrategy",e[e.showDeprecated=134]="showDeprecated",e[e.inlayHints=135]="inlayHints",e[e.editorClassName=136]="editorClassName",e[e.pixelRatio=137]="pixelRatio",e[e.tabFocusMode=138]="tabFocusMode",e[e.layoutInfo=139]="layoutInfo",e[e.wrappingInfo=140]="wrappingInfo"}(Tn||(Tn={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Mn||(Mn={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(On||(On={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(In||(In={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Pn||(Pn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Dn||(Dn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(qn||(qn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"}(Fn||(Fn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Bn||(Bn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Kn||(Kn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(Vn||(Vn={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Un||(Un={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Wn||(Wn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Hn||(Hn={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(zn||(zn={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(jn||(jn={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}($n||($n={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(Gn||(Gn={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Jn||(Jn={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Qn||(Qn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Yn||(Yn={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(Zn||(Zn={})),function(e){e[e.Deprecated=1]="Deprecated"}(Xn||(Xn={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(er||(er={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(tr||(tr={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(nr||(nr={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(rr||(rr={}));class cr{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}cr.CtrlCmd=2048,cr.Shift=1024,cr.Alt=512,cr.WinCtrl=256;function ur(e,t,n,r,o){return function(e,t,n,r,o){if(0===r)return!0;const i=t.charCodeAt(r-1);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r);if(0!==e.get(n))return!0}return!1}(e,t,0,r,o)&&function(e,t,n,r,o){if(r+o===n)return!0;const i=t.charCodeAt(r+o);if(0!==e.get(i))return!0;if(13===i||10===i)return!0;if(o>0){const n=t.charCodeAt(r+o-1);if(0!==e.get(n))return!0}return!1}(e,t,n,r,o)}!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(or||(or={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(ir||(ir={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(sr||(sr={}));class hr{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,o=n[0].length;if(r===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){be(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=o,!this._wordSeparators||ur(this._wordSeparators,e,t,r,o))return n}while(n);return null}}function gr(e,t="Unreachable"){throw new Error(t)}function mr(e){e()||(e(),n(new l("Assertion Failed")))}function fr(e,t){let n=0;for(;nString.fromCodePoint(e))).join(""),l.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}]`,"g");const d=new hr(null,a),c=[];let u,h=!1,g=0,m=0,f=0;e:for(let t=r,n=o;t<=n;t++){const n=e.getLineContent(t),r=n.length;d.reset(0);do{if(u=d.next(n),u){let e=u.index,o=u.index+u[0].length;e>0&&me(n.charCodeAt(e-1))&&e--,o+1=n){h=!0;break e}c.push(new kt(t,e+1,t,o+1))}}}while(u)}return{ranges:c,hasMore:h,ambiguousCharacterCount:g,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:f}}static computeUnicodeHighlightReason(e,t){const n=new br(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const r=e.codePointAt(0),o=n.ambiguousCharacters.getPrimaryConfusable(r),i=ve.getLocales().filter((e=>!ve.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:i}}case 1:return{kind:2}}}}class br{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ve.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of we.codePoints)Cr(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,o=!1;if(t)for(const e of t){const t=e.codePointAt(0),n=(i=e,Ce.test(i));r=r||n,n||this.ambiguousCharacters.isAmbiguous(t)||we.isInvisibleCharacter(t)||(o=!0)}var i;return!r&&o?0:this.options.invisibleCharacters&&!Cr(e)&&we.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Cr(e){return" "===e||"\n"===e||"\t"===e}class yr{constructor(e,t){this.changes=e,this.hitTimeout=t}}class vr{constructor(e,t,n){this.originalRange=e,this.modifiedRange=t,this.innerChanges=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}class wr{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}class _r{static joinMany(e){if(0===e.length)return[];let t=e[0];for(let n=1;n=s.startLineNumber?i=new _r(i.startLineNumber,Math.max(i.endLineNumberExclusive,s.endLineNumberExclusive)):(n.push(i),i=s)}return null!==i&&n.push(i),n}constructor(e,t){if(e>t)throw new l(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&e(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class Er{constructor(e,t,n,r,o,i,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=o,this.modifiedStartColumn=i,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const r=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),i=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),d=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new Er(r,o,i,s,a,l,d,c)}}class Ar{constructor(e,t,n,r,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=r,this.charChanges=o}static createFromDiffResult(e,t,n,r,o,i,s){let a,l,d,c,u;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(d=r.getStartLineNumber(t.modifiedStart)-1,c=0):(d=r.getStartLineNumber(t.modifiedStart),c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),i&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const i=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=r.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(i.getElements().length>0&&a.getElements().length>0){let e=Lr(i,a,o,!0).changes;s&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,o=e.length;r1&&s>1&&e.charCodeAt(n-2)===t.charCodeAt(s-2);)n--,s--;(n>1||s>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,n,i+1,1,s)}{let n=xr(e,1),s=xr(t,1);const a=e.length+1,l=t.length+1;for(;n=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function Tr(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-tt))return new Mr(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new l(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Mr(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}join(e){return new Mr(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(t<=n)return new Mr(t,n)}}class Or{static trivial(e,t){return new Or([new Ir(new Mr(0,e.length),new Mr(0,t.length))],!1)}static trivialTimedOut(e,t){return new Or([new Ir(new Mr(0,e.length),new Mr(0,t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Ir{constructor(e,t){this.seq1Range=e,this.seq2Range=t}reverse(){return new Ir(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Ir(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}}class Pr{isValid(){return!0}}Pr.instance=new Pr;class Dr{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new l("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&l>0&&3===i.get(a-1,l-1)&&(u+=s.get(a-1,l-1)),u+=r?r(a,l):1):u=-1;const h=Math.max(d,c,u);if(h===u){const e=a>0&&l>0?s.get(a-1,l-1):0;s.set(a,l,e+1),i.set(a,l,3)}else h===d?(s.set(a,l,0),i.set(a,l,1)):h===c&&(s.set(a,l,0),i.set(a,l,2));o.set(a,l,h)}const a=[];let l=e.length,d=t.length;function c(e,t){e+1===l&&t+1===d||a.push(new Ir(new Mr(e+1,l),new Mr(t+1,d))),l=e,d=t}let u=e.length-1,h=t.length-1;for(;u>=0&&h>=0;)3===i.get(u,h)?(c(u,h),u--,h--):1===i.get(u,h)?u--:h--;return c(-1,-1),a.reverse(),new Or(a,!1)}}function Br(e,t,n){let r=n;return r=function(e,t,n){const r=[];n.length>0&&r.push(n[0]);for(let e=1;e0?n[r-1].seq2Range.endExclusive:-1,s=r+10?n[r-1].seq1Range.endExclusive:-1,s=r+1o&&n.getElement(e.seq2Range.start-i)===n.getElement(e.seq2Range.endExclusive-i)&&i<20;)i++;i--;let s=0;for(;e.seq2Range.start+sl&&(l=d,a=r)}return 0!==a?new Ir(e.seq1Range.delta(a),e.seq2Range.delta(a)):e}class Vr{compute(e,t,n=Pr.instance){if(0===e.length||0===t.length)return Or.trivial(e,t);function r(n,r){for(;n=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class Hr{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class zr{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:jr(this.lines[e-1]))+(e===this.lines.length?0:jr(this.lines[e])))}}function jr(e){let t=0;for(;t0&&t.endExclusive>=e.length&&(t=new Mr(t.start-1,t.endExclusive),r=!0),this.lineRange=t;for(let t=this.lineRange.start;tString.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Yr(e>0?this.elements[e-1]:-1),n=Yr(ee?n=r:t=r+1}const r=0===t?0:this.firstCharOffsetByLineMinusOne[t-1];return new At(this.lineRange.start+t+1,e-r+1+this.offsetByLine[t])}translateRange(e){return kt.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!Gr(this.elements[e]))return;let t=e;for(;t>0&&Gr(this.elements[t-1]);)t--;let n=e;for(;n=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Jr={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Qr(e){return Jr[e]}function Yr(e){return 10===e?7:13===e?6:function(e){return 32===e||9===e}(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:4}const Zr={smart:new class{computeDiff(e,t,n){var r;const o=new kr(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[];let s=null;for(const e of o.changes){let t,n;t=0===e.originalEndLineNumber?new _r(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new _r(e.originalStartLineNumber,e.originalEndLineNumber+1),n=0===e.modifiedEndLineNumber?new _r(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new _r(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let o=new vr(t,n,null===(r=e.charChanges)||void 0===r?void 0:r.map((e=>new wr(new kt(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new kt(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));s&&(s.modifiedRange.endLineNumberExclusive!==o.modifiedRange.startLineNumber&&s.originalRange.endLineNumberExclusive!==o.originalRange.startLineNumber||(o=new vr(s.originalRange.join(o.originalRange),s.modifiedRange.join(o.modifiedRange),s.innerChanges&&o.innerChanges?s.innerChanges.concat(o.innerChanges):void 0),i.pop())),i.push(o),s=o}return mr((()=>fr(i,((e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusives(e.trim()))),l=t.map((e=>s(e.trim()))),d=new zr(a,e),c=new zr(l,t),u=(()=>d.length+c.length<1500?this.dynamicProgrammingDiffing.compute(d,c,r,((n,r)=>e[n]===t[r]?0===t[r].length?.1:1+Math.log(1+t[r].length):.99)):this.myersDiffingAlgorithm.compute(d,c))();let h=u.diffs,g=u.hitTimeout;h=Br(d,c,h);const m=[],f=n=>{if(o)for(let i=0;in.seq1Range.start-p==n.seq2Range.start-b)),f(n.seq1Range.start-p),p=n.seq1Range.endExclusive,b=n.seq2Range.endExclusive;const i=this.refineDiff(e,t,n,r,o);i.hitTimeout&&(g=!0);for(const e of i.mappings)m.push(e)}f(e.length-p);const C=function(e,t,n){const r=[];for(const o of function*(e,t){let n,r;for(const t of e)void 0!==r&&(i=t,(o=r).originalRange.overlapOrTouch(i.originalRange)||o.modifiedRange.overlapOrTouch(i.modifiedRange))?n.push(t):(n&&(yield n),n=[t]),r=t;var o,i;n&&(yield n)}(e.map((e=>function(e,t,n){let r=0,o=0;e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&(r=1),1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(o=-1);const i=new _r(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+o),s=new _r(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+o);return new vr(i,s,[e])}(e,t,n))))){const e=o[0],t=o[o.length-1];r.push(new vr(e.originalRange.join(t.originalRange),e.modifiedRange.join(t.modifiedRange),o.map((e=>e.innerChanges[0]))))}return mr((()=>fr(r,((e,t)=>t.originalRange.startLineNumber-e.originalRange.endLineNumberExclusive==t.modifiedRange.startLineNumber-e.modifiedRange.endLineNumberExclusive&&e.originalRange.endLineNumberExclusivee&&r.push(new Ir(o.s1Range,o.s2Range)),o=void 0}for(const s of n){function a(e,t){var n,r,a,l;if(!o||!o.s1Range.containsRange(e)||!o.s2Range.containsRange(t))if(!o||o.s1Range.endExclusive0||t.length>0;){const r=e[0],o=t[0];let i;i=r&&(!o||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=i.seq1Range.start?n[n.length-1]=n[n.length-1].join(i):n.push(i)}return n}(n,r)}(i,s,l),l=function(e,t,n){const r=[];for(const e of n){const t=r[r.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?r[r.length-1]=new Ir(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}(0,0,l),{mappings:l.map((e=>new wr(i.translateRange(e.seq1Range),s.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}};var Xr=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};class eo extends Pt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const n=Ft(e.column,function(e){let t=Dt;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}(t),this._lines[e.lineNumber-1],0);return n?new kt(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let r=0,o="",i=0,s=[];return{*[Symbol.iterator](){for(;;)if(ithis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}}class to{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new eo(pt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,n){return Xr(this,void 0,void 0,(function*(){const r=this._getModel(e);return r?pr.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}))}computeDiff(e,t,n,r){return Xr(this,void 0,void 0,(function*(){const o=this._getModel(e),i=this._getModel(t);return o&&i?to.computeDiff(o,i,n,r):null}))}static computeDiff(e,t,n,r){const o="experimental"===r?Zr.experimental:Zr.smart,i=e.getLinesContent(),s=t.getLinesContent(),a=o.computeDiff(i,s,n);return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:a.changes.map((e=>{var t;return[e.originalRange.startLineNumber,e.originalRange.endLineNumberExclusive,e.modifiedRange.startLineNumber,e.modifiedRange.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}computeMoreMinimalEdits(e,t,n){return Xr(this,void 0,void 0,(function*(){const r=this._getModel(e);if(!r)return t;const o=[];let i;t=t.slice(0).sort(((e,t)=>e.range&&t.range?kt.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));for(let{range:e,text:s,eol:a}of t){if("number"==typeof a&&(i=a),kt.isEmpty(e)&&!s)continue;const t=r.getValueInRange(e);if(s=s.replace(/\r\n|\n|\r/g,r.eol),t===s)continue;if(Math.max(s.length,t.length)>to._diffLimit){o.push({range:e,text:s});continue}const l=Ke(t,s,n),d=r.offsetAt(kt.lift(e).getStartPosition());for(const e of l){const t=r.positionAt(d+e.originalStart),n=r.positionAt(d+e.originalStart+e.originalLength),i={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};r.getValueInRange(i.range)!==i.text&&o.push(i)}}return"number"==typeof i&&o.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}))}computeLinks(e){return Xr(this,void 0,void 0,(function*(){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?zt.computeLinks(e):[]}(t):null}))}textualSuggest(e,t,n,r){return Xr(this,void 0,void 0,(function*(){const o=new ee(!0),i=new RegExp(n,r),s=new Set;e:for(const n of e){const e=this._getModel(n);if(e)for(const n of e.words(i))if(n!==t&&isNaN(Number(n))&&(s.add(n),s.size>to._suggestionsLimit))break e}return{words:Array.from(s),duration:o.elapsed()}}))}computeWordRanges(e,t,n,r){return Xr(this,void 0,void 0,(function*(){const o=this._getModel(e);if(!o)return Object.create(null);const i=new RegExp(n,r),s=Object.create(null);for(let e=t.startLineNumber;efunction(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r={};for(const t of e)r[t]=n(t);return r}(n,((e,t)=>this._host.fhr(e,t))),o={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(ue(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}to._diffLimit=1e5,to._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Jt),this._token}cancel(){this._token?this._token instanceof Jt&&this._token.cancel():this._token=Gt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Jt&&this._token.dispose():this._token=Gt.None}},Emitter:ae,KeyCode:Fn,KeyMod:cr,Position:At,Range:kt,Selection:dn,SelectionDirection:Qn,MarkerSeverity:Bn,MarkerTag:Kn,Uri:pt,Token:class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}});let no=!1;globalThis.onmessage=e=>{no||function(e){if(no)return;no=!0;const t=new Te((e=>{globalThis.postMessage(e)}),(e=>new to(e,null)));globalThis.onmessage=e=>{t.onmessage(e.data)}}()}})(); \ No newline at end of file diff --git a/Scriptcat/src/fa2cc0ab9f0bec2b3365.ttf b/Scriptcat/src/fa2cc0ab9f0bec2b3365.ttf new file mode 100755 index 0000000..ea2309d Binary files /dev/null and b/Scriptcat/src/fa2cc0ab9f0bec2b3365.ttf differ diff --git a/Scriptcat/src/import.html b/Scriptcat/src/import.html new file mode 100755 index 0000000..1f6963b --- /dev/null +++ b/Scriptcat/src/import.html @@ -0,0 +1,24 @@ + + + + + + Import - ScriptCat + + +
+ + + diff --git a/Scriptcat/src/import.js b/Scriptcat/src/import.js new file mode 100755 index 0000000..4f0eeff --- /dev/null +++ b/Scriptcat/src/import.js @@ -0,0 +1 @@ +(()=>{var e,t={75710:(e,t,n)=>{"use strict";var r=n(67294),a=n(20745),i=(n(48945),n(15671)),s=n(43144),o=n(60136),c=n(27121),u=n(61120),l=n(15861),f=n(4942),p=n(64687),d=n.n(p),h=n(43528),m=n(92826),g=n(71002);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var y=function(){function e(){(0,i.Z)(this,e),(0,f.Z)(this,"hookMap",{})}return(0,s.Z)(e,[{key:"trigger",value:function(e){if(this.hookMap[e]){for(var t=[],n=arguments.length,r=new Array(n>1?n-1:0),a=1;a-1&&this.hookMap[e].splice(n,1)}}}]),e}(),b=n(42982),M=n(27484),w=n.n(M),x={debug:10,info:100,warn:1e3,error:1e4};function k(){for(var e={},t=arguments.length,n=new Array(t),r=0;r1?n-1:0),a=1;a2?n-2:0),a=2;a=x[this.core.level]&&this.core.writer.write(e,t,k(this.label,r)),this.core.debug){"object"===(0,g.Z)(t)&&(t=JSON.stringify(t));var i="".concat(w()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(e,"] msg=").concat(t," label=").concat(JSON.stringify(k(this.label,r)));switch(e){case"error":console.error(i);break;case"warn":console.warn(i);break;default:console.info(i)}}Z.hook.trigger("log",{level:e,message:t,label:r})}},{key:"with",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r>6!=2)return t;var n;var r=t-3;if(r>=0&&Me(e[r]))return r;if(r=t-2,r>=0&&(Me(e[r])||we(e[r])))return r;if(r=t-1,r>=0&&(Me(e[r])||we(e[r])||xe(e[r])))return r;return-1}(e,o)))return i;var u=function(e,t){if(t===e.length)return t;var n=t-3;if(n>=0&&Me(e[n]))return t+1;if(n=t-2,n>=0){if(Me(e[n]))return t+2;if(we(e[n]))return t+1}if(n=t-1,n>=0){if(Me(e[n]))return t+3;if(we(e[n]))return t+2;if(xe(e[n]))return t+1}return t}(e,Math.min(e.length,o+s));if(u>e.length)return i;for(var l=e.slice(o,u),f=0;f>3==30}function we(e){return e>>4==14}function xe(e){return e>>5==6}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var a=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var Ae=1,Ze=2,je=3,De=1,Ee=2,Ie="complete",Ne=function(e){(0,o.Z)(n,e);var t=ke(n);function n(){var e;return(0,i.Z)(this,n),e=t.call(this),(0,f.Z)((0,$.Z)(e),"tableName","scripts"),e.table=O.table(e.tableName),e}return(0,s.Z)(n,[{key:"findByName",value:function(e){return this.findOne({name:e})}},{key:"findByNameAndNamespace",value:function(e,t){return t?this.findOne({name:e,namespace:t}):this.findOne({name:e})}},{key:"findByUUID",value:function(e){return this.findOne({uuid:e})}},{key:"findByUUIDAndSubscribeUrl",value:function(e,t){return this.findOne({subscribeUrl:t,uuid:e})}},{key:"findByOriginAndSubscribeUrl",value:function(e,t){return this.findOne({subscribeUrl:t,origin:e})}}]),n}(C),ze=n(16956);function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var a=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var Te=function(e){(0,o.Z)(n,e);var t=Oe(n);function n(){var e;return(0,i.Z)(this,n),e=t.call(this),(0,f.Z)((0,$.Z)(e),"tableName","subscribe"),e.table=O.table(e.tableName),e}return(0,s.Z)(n,[{key:"findByUrl",value:function(e){return this.findOne({url:e})}}]),n}(C),Ce=n(41976),Se=(n(33852),n(84110)),Le=n.n(Se);n(81249),n(81354);function Pe(e){if(""!==e){var t=e[0],n=e.substring(1);switch(t){case"b":return"true"===n;case"n":return parseFloat(n);case"o":try{return JSON.parse(n)}catch(t){return e}case"s":return n;default:return e}}}function Re(e){var t=!1,n=/\/\/\s*==UserScript==([\s\S]+?)\/\/\s*==\/UserScript==/m,r=n.exec(e);if(!r){if(!(r=(n=/\/\/\s*==UserSubscribe==([\s\S]+?)\/\/\s*==\/UserSubscribe==/m).exec(e)))return null;t=!0}for(var a={},i=(n=/\/\/\s*@([\S]+)((.+?)$|$)/gm).exec(r[1]);null!==i;){var s=[i[1].toLowerCase().trim(),i[2].trim()],o=s[0],c=s[1],u=a[o];null==u&&(u=[]),u.push(c),a[o]=u,i=n.exec(r[1])}return void 0===a.name?null:(a.namespace||(a.namespace=[""]),t&&(a.usersubscribe=[]),a)}function Ue(e){var t=/\/\*\s*==UserConfig==([\s\S]+?)\s*==\/UserConfig==\s*\*\//m.exec(e);if(t){var n=t[1].trim().split(/[-]{3,}/),r={};return n.forEach((function(e){var t=ze.ZP.parse(e);Object.keys(t).forEach((function(e){r[e]=t[e]}))})),r}}function Ye(e,t){var n=e;return n.id=t.id,n.uuid=t.uuid,n.createtime=t.createtime,n.lastruntime=t.lastruntime,n.error=t.error,n.sort=t.sort,n.selfMetadata||(n.selfMetadata=t.selfMetadata||{}),n.subscribeUrl=t.subscribeUrl,n.status=t.status,n}function Be(e){return new Promise((function(t){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)}))}function Qe(e,t,n){var r=new Ne;return new Promise((function(a,i){var s=Re(e);if(null==s)throw new Error("MetaData信息错误");if(void 0===s.name)throw new Error("脚本名不能为空");if(void 0===s.version)throw new Error("脚本@version版本不能为空");if(void 0===s.namespace)throw new Error("脚本@namespace命名空间不能为空");var o,c=Ae;if(void 0!==s.crontab){c=Ze;try{!function(e){var t,n=0;if(-1!==e.indexOf("once")){var r=e.split(" ");r.forEach((function(e,t){"once"===e&&(n=t)})),5===r.length&&(n+=1)}try{t=new Ce.CronTime(e.replace(/once/g,"*"))}catch(e){throw new Error("错误的定时表达式")}if(n){switch(n){case 1:return t.sendAt().toFormat("yyyy-MM-dd HH:mm 每分钟运行一次");case 2:return t.sendAt().plus({hour:1}).toFormat("yyyy-MM-dd HH 每小时运行一次");case 3:return t.sendAt().plus({day:1}).toFormat("yyyy-MM-dd 每天运行一次");case 4:return t.sendAt().plus({month:1}).toFormat("yyyy-MM 每月运行一次");case 5:return t.sendAt().plus({week:1}).toFormat("yyyy-MM-dd 每星期运行一次")}throw new Error("错误表达式")}t.sendAt().toFormat("yyyy-MM-dd HH:mm:ss")}(s.crontab[0])}catch(e){throw new Error("错误的定时表达式,请检查: ".concat(s.crontab[0]))}}else void 0!==s.background&&(c=je);var u="",f="",p=t;s.updateurl&&s.downloadurl?(f=(0,re.Z)(s.updateurl,1)[0],p=(0,re.Z)(s.downloadurl,1)[0]):f=t.replace("user.js","meta.js");if(-1!==t.indexOf("/")&&(o=t.split("/"))[2]){var m=o;u=(0,re.Z)(m,2)[1]}var g={id:0,uuid:n||(0,h.Z)(),name:s.name[0],code:e,author:s.author&&s.author[0],namespace:s.namespace&&s.namespace[0],originDomain:u,origin:t,checkUpdateUrl:f,downloadUrl:p,config:Ue(e),metadata:s,selfMetadata:{},sort:-1,type:c,status:Ee,runStatus:Ie,createtime:Date.now(),updatetime:Date.now(),checktime:Date.now()},v=function(){var e=(0,l.Z)(d().mark((function e(){var s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=10;break}return e.next=3,r.findByUUID(n);case 3:if((s=e.sent)||!t){e.next=8;break}return e.next=7,r.findByNameAndNamespace(g.name,g.namespace);case 7:s=e.sent;case 8:e.next=17;break;case 10:return e.next=12,r.findByNameAndNamespace(g.name,g.namespace);case 12:if(s=e.sent){e.next=17;break}return e.next=16,r.findByUUID(g.uuid);case 16:s=e.sent;case 17:if(!s){e.next=25;break}if(!(s.type===Ae&&g.type!==Ae||g.type===Ae&&s.type!==Ae)){e.next=21;break}return i(new Error("脚本类型不匹配,普通脚本与后台脚本不能互相转变")),e.abrupt("return");case 21:g.oldScript=s,g=Ye(g,s),e.next=27;break;case 25:g.type===Ae&&(g.status=De),g.checktime=(new Date).getTime();case 27:a(g);case 28:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();v()}))}w().locale("zh-cn"),w().extend(Le());var We,Ve,He=function(){function e(t){(0,i.Z)(this,e),this.fs=t,this.logger=Z.getLogger({component:"backupImport"})}var t,n;return(0,s.Z)(e,[{key:"parse",value:(n=(0,l.Z)(d().mark((function e(){var t,n,r,a,i=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Map,n=new Map,e.next=4,this.fs.list();case 4:return r=e.sent,e.next=7,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(t){var r,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.name).endsWith(".user.sub.js")){e.next=3;break}return e.abrupt("return",Promise.resolve(!1));case 3:return a=r.substring(0,r.length-12),e.next=6,i.fs.open(t);case 6:return e.next=8,e.sent.read();case 8:return e.t0=e.sent,s={source:e.t0},n.set(a,s),e.abrupt("return",Promise.resolve(!0));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 7:return r=e.sent,e.next=10,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(t){var r,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.name).endsWith(".user.sub.options.json")){e.next=3;break}return e.abrupt("return",Promise.resolve(!1));case 3:return a=r.substring(0,r.length-22),e.t0=JSON,e.next=7,i.fs.open(t);case 7:return e.next=9,e.sent.read();case 9:return e.t1=e.sent,s=e.t0.parse.call(e.t0,e.t1),n.get(a).options=s,e.abrupt("return",Promise.resolve(!0));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 10:return r=e.sent,e.next=13,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(n){var r,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=n.name).endsWith(".user.js")){e.next=3;break}return e.abrupt("return",Promise.resolve(!1));case 3:return a=r.substring(0,r.length-8),e.next=6,i.fs.open(n);case 6:return e.next=8,e.sent.read();case 8:return e.t0=e.sent,e.t1={},e.t2=[],e.t3=[],e.t4=[],s={code:e.t0,storage:e.t1,requires:e.t2,requiresCss:e.t3,resources:e.t4},t.set(a,s),e.abrupt("return",Promise.resolve(!0));case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 13:return r=e.sent,e.next=16,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(n){var r,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=n.name).endsWith(".options.json")){e.next=3;break}return e.abrupt("return",Promise.resolve(!1));case 3:return a=r.substring(0,r.length-13),e.t0=JSON,e.next=7,i.fs.open(n);case 7:return e.next=9,e.sent.read();case 9:return e.t1=e.sent,s=e.t0.parse.call(e.t0,e.t1),t.get(a).options=s,e.abrupt("return",Promise.resolve(!0));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 16:return r=e.sent,e.next=19,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(n){var r,a,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=n.name).endsWith(".storage.json")){e.next=3;break}return e.abrupt("return",Promise.resolve(!1));case 3:return a=r.substring(0,r.length-13),e.t0=JSON,e.next=7,i.fs.open(n);case 7:return e.next=9,e.sent.read();case 9:return e.t1=e.sent,s=e.t0.parse.call(e.t0,e.t1),Object.keys(s.data).forEach((function(e){s.data[e]=Pe(s.data[e])})),t.get(a).storage=s,e.abrupt("return",Promise.resolve(!0));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 19:return r=e.sent,a=new Map,e.next=23,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(n){var r,s,o,c,u;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.name,-1!==(s=r.indexOf(".user.js-"))){e.next=4;break}return e.abrupt("return",Promise.resolve(!1));case 4:if(o=r.substring(0,s),c="",r.endsWith(".resources.json")){e.next=18;break}if(r.endsWith(".requires.json")){e.next=14;break}if(r.endsWith(".requires.css.json")){e.next=10;break}return e.abrupt("return",Promise.resolve(!1));case 10:c="requiresCss",a.set(r.substring(0,r.length-18),{index:t.get(o).requiresCss.length,key:o,type:c}),e.next=16;break;case 14:c="requires",a.set(r.substring(0,r.length-14),{index:t.get(o).requires.length,key:o,type:c});case 16:e.next=20;break;case 18:c="resources",a.set(r.substring(0,r.length-15),{index:t.get(o).resources.length,key:o,type:c});case 20:return e.t0=JSON,e.next=23,i.fs.open(n);case 23:return e.next=25,e.sent.read();case 25:return e.t1=e.sent,u=e.t0.parse.call(e.t0,e.t1),t.get(o)[c].push({meta:u}),e.abrupt("return",Promise.resolve(!0));case 29:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 23:return r=e.sent,e.next=26,this.dealFile(r,function(){var e=(0,l.Z)(d().mark((function e(n){var r,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(r=a.get(n.name))){e.next=3;break}return e.abrupt("return",Promise.resolve(!1));case 3:return s=t.get(r.key)[r.type][r.index],e.t0=Be,e.next=7,i.fs.open(n);case 7:return e.next=9,e.sent.read("blob");case 9:return e.t1=e.sent,e.next=12,(0,e.t0)(e.t1);case 12:if(s.base64=e.sent,!s.meta){e.next=27;break}return s.meta.mimetype&&(s.base64=s.base64.replace(/^data:.*?;base64,/,"data:".concat(s.meta.mimetype,";base64,"))),e.t2=ye,e.next=18,i.fs.open(n);case 18:return e.next=20,e.sent.read("blob");case 20:if(e.t3=e.sent,!(0,e.t2)(e.t3)){e.next=27;break}return e.next=24,i.fs.open(n);case 24:return e.next=26,e.sent.read();case 26:s.source=e.sent;case 27:return e.abrupt("return",Promise.resolve(!0));case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 26:return(r=e.sent).length&&this.logger.warn("unhandled files",{num:r.length,files:r.map((function(e){return e.name}))}),e.abrupt("return",Promise.resolve({script:Array.from(t.values()),subscribe:Array.from(n.values())}));case 29:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"dealFile",value:(t=(0,l.Z)(d().mark((function e(t,n){var r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.next=3,Promise.all(t.map(n));case 3:return e.sent.forEach((function(e,n){e||r.push(t[n])})),e.abrupt("return",Promise.resolve(r));case 6:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),Je=K.Singleton(z)(We=function(){function e(t){(0,i.Z)(this,e),this.internal=t}return(0,s.Z)(e,[{key:"dispatchEvent",value:function(e,t){return this.internal.syncSend("sync-".concat(e),t)}},{key:"openImportFile",value:function(e){var t=this;return new Promise((function(n,r){e.onchange=(0,l.Z)(d().mark((function a(){var i,s,o,c;return d().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i=e.files){a.next=3;break}return a.abrupt("return",r(new Error("no file")));case 3:if(s=i[0]){a.next=6;break}return a.abrupt("return",r(new Error("no file")));case 6:return o=URL.createObjectURL(s),setTimeout((function(){URL.revokeObjectURL(o)}),6e6),a.prev=8,a.next=11,t.openImportWindow(s.name,o);case 11:return c=a.sent,a.abrupt("return",n(c));case 15:return a.prev=15,a.t0=a.catch(8),a.abrupt("return",r(a.t0));case 18:case"end":return a.stop()}}),a,null,[[8,15]])}))),e.click()}))}},{key:"openImportWindow",value:function(e,t){return this.dispatchEvent("openImportWindow",{filename:e,url:t})}},{key:"fetchImportInfo",value:function(e){return this.dispatchEvent("fetchImportInfo",e)}},{key:"parseBackup",value:function(e){var t=new ve(e);return new He(t).parse()}},{key:"backup",value:function(){return this.dispatchEvent("backup",null)}},{key:"backupToCloud",value:function(e,t){return this.dispatchEvent("backupToCloud",{type:e,params:t})}}]),e}())||We,Fe=K.Singleton(z)(Ve=function(){function e(t){(0,i.Z)(this,e),(0,f.Z)(this,"scriptDAO",new Ne),(0,f.Z)(this,"subscribeDAO",new Te),this.internal=t}return(0,s.Z)(e,[{key:"dispatchEvent",value:function(e,t){return this.internal.syncSend("script-".concat(e),t)}},{key:"upsert",value:function(e){return this.dispatchEvent("upsert",e)}},{key:"enable",value:function(e){return this.dispatchEvent("enable",e)}},{key:"disable",value:function(e){return this.dispatchEvent("disable",e)}},{key:"delete",value:function(e){return this.dispatchEvent("delete",e)}},{key:"fetchScriptInfo",value:function(e){return this.dispatchEvent("fetch",e)}},{key:"checkUpdate",value:function(e){return this.dispatchEvent("checkUpdate",e)}},{key:"importByUrl",value:function(e){return this.dispatchEvent("importByUrl",e)}},{key:"exclude",value:function(e,t,n){return this.dispatchEvent("exclude",{id:e,exclude:t,remove:n})}}]),e}())||Ve;function Ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var a=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var _e,Xe=function(e){(0,o.Z)(n,e);var t=Ge(n);function n(){var e;return(0,i.Z)(this,n),e=t.call(this),(0,f.Z)((0,$.Z)(e),"tableName","value"),e.table=O.table(e.tableName),e}return(0,s.Z)(n)}(C),qe=function(){function e(t,n){(0,i.Z)(this,e),this.message=t,this.name=n,this.logger=Z.getLogger({component:this.name,controller:!0})}return(0,s.Z)(e,[{key:"dispatchEvent",value:function(e,t){return this.message.syncSend("".concat(this.name,"-").concat(e),t)}}]),e}();function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var a=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var $e=K.Singleton(z)(_e=function(e){(0,o.Z)(r,e);var t,n=Ke(r);function r(e){var t;return(0,i.Z)(this,r),(t=n.call(this,e,"value")).internal=e,t.valueDAO=new Xe,t}return(0,s.Z)(r,[{key:"setValue",value:function(e,t,n){return this.dispatchEvent("upsert",{scriptId:e,key:t,value:n})}},{key:"getValues",value:(t=(0,l.Z)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.metadata.storagename?(r=(0,re.Z)(t.metadata.storagename,1),n.storageName=r[0]):n.scriptId=t.id,e.t0=Promise,e.next=5,this.valueDAO.list(n);case 5:return e.t1=e.sent,e.abrupt("return",e.t0.resolve.call(e.t0,e.t1));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"watchValue",value:function(e){var t=this.internal.channel();return t.channel("watchValue",e),t}}]),r}(qe))||_e;const et=function(){var e=(0,r.useState)([]),t=(0,re.Z)(e,2),n=t[0],a=t[1],i=(0,r.useState)([]),s=(0,re.Z)(i,2),o=s[0],c=s[1],u=(0,r.useState)([!0,!0]),f=(0,re.Z)(u,2),p=f[0],h=f[1],m=(0,r.useState)([0,0]),g=(0,re.Z)(m,2),v=g[0],y=g[1],M=(0,r.useState)(!0),w=(0,re.Z)(M,2),x=w[0],k=w[1],A=K.instance(Fe),Z=K.instance($e),j=K.instance(Je),D=new URL(window.location.href).searchParams.get("uuid")||"";return(0,r.useEffect)((function(){j.fetchImportInfo(D).then(function(){var e=(0,l.Z)(d().mark((function e(t){var n,r,i,s,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t.url).then((function(e){return e.blob()}));case 2:return n=e.sent,e.next=5,he().loadAsync(n);case 5:return r=e.sent,e.next=8,j.parseBackup(r);case 8:return i=e.sent,s=i.script,a(s),e.next=13,Promise.all(s.map(function(){var e=(0,l.Z)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Qe(t.code,(null===(n=t.options)||void 0===n?void 0:n.meta.file_url)||"",(null===(r=t.options)||void 0===r?void 0:r.meta.sc_uuid)||void 0);case 3:t.script=e.sent,e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(0),t.error=e.t0.toString(),e.abrupt("return",Promise.resolve(t));case 10:return t.options?t.script.status=t.options.settings.enabled?De:Ee:t.options={options:{},meta:{name:t.script.name,uuid:t.script.uuid,sc_uuid:t.script.uuid,file_url:t.script.downloadUrl||"",modified:t.script.createtime,subscribe_url:t.script.subscribeUrl},settings:{enabled:!(t.script.metadata.background||t.script.metadata.crontab),position:0}},t.install=!0,e.abrupt("return",Promise.resolve(t));case 13:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}()));case 13:o=e.sent,a(o),h([!0,!0]),k(!1);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){ae.Z.error("获取导入信息失败: ".concat(e))}))}),[]),r.createElement("div",null,r.createElement(ie.Z,{bordered:!1,title:"数据导入"},r.createElement(se.Z,{direction:"vertical",style:{width:"100%"}},r.createElement(se.Z,null,r.createElement(oe.Z,{type:"primary",loading:x,onClick:(0,l.Z)(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),t=n.map(function(){var e=(0,l.Z)(d().mark((function e(t){var n,r,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!0,!t.install||t.error){e.next=7;break}return e.next=4,A.upsert(t.script);case 4:r=e.sent,a=t.storage.data,Object.keys(a).forEach((function(e){Z.setValue(r.id,e,a[e])}));case 7:return y((function(e){return[e[0]+1,e[1]]})),e.abrupt("return",Promise.resolve(n));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=4,Promise.all(t);case 4:k(!1),ae.Z.success("导入成功");case 6:case"end":return e.stop()}}),e)})))},"导入"),r.createElement(oe.Z,{type:"primary",status:"danger",loading:x,onClick:function(){return window.close()}},"关闭")),r.createElement(ce.Z.Text,null,"请选择你要导入的脚本:"," ",r.createElement(ue.Z,{checked:p[0],onChange:function(){a((function(e){return h([!p[0],p[1]]),e.map((function(e){return e.install=!p[0],e}))}))}},"全选"),r.createElement(le.Z,{type:"vertical"}),"脚本导入进度: ",v[0],"/",n.length),r.createElement(ce.Z.Text,null,"请选择你要导入的订阅:"," ",r.createElement(ue.Z,{checked:p[1],onChange:function(){c((function(e){return h([p[0],!p[1]]),e.map((function(e){return e.install=!p[1],e}))}))}},"全选"),r.createElement(le.Z,{type:"vertical"}),"订阅导入进度: ",v[1],"/",o.length),r.createElement(fe.Z,{className:"import-list",loading:x,bordered:!1,dataSource:n,render:function(e,t){var n,i,s,o,c,u,l,f,p,d;return r.createElement("div",{className:"flex flex-row justify-between p-2",key:"e_".concat(t),style:{background:e.error?"rgb(var(--red-1))":e.install?"rgb(var(--arcoblue-1))":"",borderBottom:"1px solid rgb(var(--gray-3))",cursor:"pointer"},onClick:function(){a((function(e){return e[t].install=!e[t].install,(0,b.Z)(e)}))}},r.createElement(se.Z,{direction:"vertical",size:1,style:{overflow:"hidden"}},r.createElement(ce.Z.Title,{heading:6,style:{color:"rgb(var(--blue-5))"}},(null===(n=e.script)||void 0===n?void 0:n.name)||e.error||"unknown"),r.createElement("span",{className:"text-sm color-gray-5"},"作者:"," ",(null===(i=e.script)||void 0===i?void 0:i.metadata.author)&&(null===(s=e.script)||void 0===s?void 0:s.metadata.author[0])),r.createElement("span",{className:"text-sm color-gray-5"},"描述:"," ",(null===(o=e.script)||void 0===o?void 0:o.metadata.description)&&(null===(c=e.script)||void 0===c?void 0:c.metadata.description[0])),r.createElement("span",{className:"text-sm color-gray-5"},"来源: ",(null===(u=e.options)||void 0===u?void 0:u.meta.file_url)||"本地创建"),r.createElement("span",{className:"text-sm color-gray-5"},"操作:"," ",e.install&&(null!==(l=e.script)&&void 0!==l&&l.oldScript?"更新":"新增")||(e.error?"错误: ".concat(null===(f=e.options)||void 0===f?void 0:f.meta.name," - ").concat(null===(p=e.options)||void 0===p?void 0:p.meta.uuid):"不做操作"))),r.createElement("div",{className:"flex flex-col justify-between",style:{minWidth:"80px",textAlign:"center"}},r.createElement("span",{className:"text-sm color-gray-5"},"开启脚本"),r.createElement("div",{className:"text-center"},r.createElement(pe.Z,{size:"small",checked:(null===(d=e.script)||void 0===d?void 0:d.status)===De,onChange:function(e){a((function(n){return n[t].script.status=e?De:Ee,(0,b.Z)(n)}))}}))))}}))))};var tt=n(45409),nt=n(67710),rt=n(82695),at=n(66807),it=n(63086),st=n(72297),ot=n(31944),ct=n(77217),ut=n(15959),lt=n(15386),ft=n(11910),pt=n(1290),dt=n(21279),ht=n(52438),mt={};mt.styleTagTransform=J(),mt.setAttributes=Q(),mt.insert=Y().bind(null,"head"),mt.domAPI=R(),mt.insertStyleElement=V();L()(ht.Z,mt);ht.Z&&ht.Z.locals&&ht.Z.locals;function gt(e){if("auto"===e){var t=window.matchMedia("(prefers-color-scheme: dark)"),n=function(e){e?(document.body.setAttribute("arco-theme","dark"),pt.j6.setTheme("vs-dark")):(document.body.removeAttribute("arco-theme"),pt.j6.setTheme("vs"))};t.addEventListener("change",(function(e){n(e.matches)})),n(t.matches)}else document.body.setAttribute("arco-theme",e),pt.j6.setTheme("dark"===e?"vs-dark":"vs")}const vt=function(e){var t=e.children,n=e.className,a=e.pageName,i=(0,r.useState)(localStorage.lightMode||"auto"),s=(0,re.Z)(i,2),o=s[0],c=s[1],u=(0,r.useRef)(null),f=(0,r.useState)(!1),p=(0,re.Z)(f,2),h=p[0],m=p[1];return gt(o),r.createElement(tt.Z,null,r.createElement(tt.Z.Header,{style:{height:"50px",borderBottom:"1px solid var(--color-neutral-3)"},className:"flex items-center justify-between p-x-4"},r.createElement(nt.Z,{title:"链接导入",visible:h,onOk:(0,l.Z)(d().mark((function e(){var t;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=K.instance(Fe),e.prev=1,e.next=4,t.importByUrl(u.current.dom.value);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),ae.Z.error("链接导入失败: ".concat(e.t0));case 9:m(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])}))),onCancel:function(){m(!1)}},r.createElement(rt.Z,{ref:u,defaultValue:""})),r.createElement("div",{className:"flex row items-center"},r.createElement("img",{style:{height:"40px"},src:"/assets/logo.png",alt:"ScriptCat"}),r.createElement(ce.Z.Title,{heading:4,className:"!m-0"},"ScriptCat")),r.createElement(se.Z,{size:"small",className:"action-tools"},"options"===a&&r.createElement(at.Z,{droplist:r.createElement(it.Z,{style:{maxHeight:"100%",width:"calc(100% + 10px)"}},r.createElement(it.Z.Item,{key:"/script/editor"},r.createElement("a",{href:"#/script/editor"},r.createElement(dt.Mdh,null)," 添加普通脚本")),r.createElement(it.Z.Item,{key:"background"},r.createElement("a",{href:"#/script/editor?template=background"},r.createElement(dt.NJc,null)," 添加后台脚本")),r.createElement(it.Z.Item,{key:"crontab"},r.createElement("a",{href:"#/script/editor?template=crontab"},r.createElement(dt.Phe,null)," 添加定时脚本")),r.createElement(it.Z.Item,{key:"link",onClick:function(){m(!0)}},r.createElement(st.Z,null)," 链接导入")),position:"bl"},r.createElement(oe.Z,{type:"text",size:"small",style:{color:"var(--color-text-1)"},className:"!text-size-sm"},r.createElement(dt.QEj,null)," 新建脚本 ",r.createElement(ot.Z,null))),"options"===a&&r.createElement(at.Z,{droplist:r.createElement(it.Z,{style:{maxHeight:"100%",width:"calc(100% + 10px)"}},r.createElement(it.Z.Item,{key:"scriptcat/docs/use/"},r.createElement("a",{href:"https://docs.scriptcat.org/docs/use/",target:"_blank",rel:"noreferrer"},r.createElement(dt.Mdh,null)," 使用指南")),r.createElement(it.Z.Item,{key:"scriptcat/docs/dev/"},r.createElement("a",{href:"https://docs.scriptcat.org/docs/dev/",target:"_blank",rel:"noreferrer"},r.createElement(dt.Mdh,null)," API文档")),r.createElement(it.Z.Item,{key:"scriptcat/docs/learn/"},r.createElement("a",{href:"https://learn.scriptcat.org/docs/%E7%AE%80%E4%BB%8B/",target:"_blank",rel:"noreferrer"},r.createElement(dt.Mdh,null)," 开发指南")),r.createElement(it.Z.Item,{key:"scriptcat/userscript"},r.createElement("a",{href:"https://scriptcat.org/search",target:"_blank",rel:"noreferrer"},r.createElement(st.Z,null)," 脚本站")),r.createElement(it.Z.Item,{key:"tampermonkey/bbs"},r.createElement("a",{href:"https://bbs.tampermonkey.net.cn/",target:"_blank",rel:"noreferrer"},r.createElement(st.Z,null)," 社区论坛")),r.createElement(it.Z.Item,{key:"GitHub"},r.createElement("a",{href:"https://github.com/scriptscat/scriptcat",target:"_blank",rel:"noreferrer"},r.createElement(ct.Z,null)," GitHub"))),position:"bl"},r.createElement(oe.Z,{type:"text",size:"small",style:{color:"var(--color-text-1)"},className:"!text-size-sm"},r.createElement(dt.DNM,null)," 外部链接 ",r.createElement(ot.Z,null))),r.createElement(at.Z,{droplist:r.createElement(it.Z,{onClickMenuItem:function(e){gt(e),c(e),localStorage.lightMode=e},selectedKeys:[o]},r.createElement(it.Z.Item,{key:"light"},r.createElement(ut.Z,null)," Light"),r.createElement(it.Z.Item,{key:"dark"},r.createElement(lt.Z,null)," Dark"),r.createElement(it.Z.Item,{key:"auto"},r.createElement(ft.Z,null)," 跟随系统")),position:"bl"},r.createElement(oe.Z,{type:"text",size:"small",icon:r.createElement(r.Fragment,null,"auto"===o&&r.createElement(ft.Z,null),"light"===o&&r.createElement(ut.Z,null),"dark"===o&&r.createElement(lt.Z,null)),style:{color:"var(--color-text-1)"},className:"!text-size-lg"})))),r.createElement(tt.Z,{className:"absolute top-50px bottom-0 w-full ".concat(n),style:{background:"var(--color-fill-2)"}},t))};O.version(1).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,createtime,updatetime,checktime"}),O.version(2).stores({logger:"++id,level,origin,createtime",permission:"++id,[scriptId+permission+permissionValue],createtime,updatetime"}),O.version(3).stores({logger:"++id,level,title,origin,createtime"}),O.version(4).stores({value:"++id,scriptId,namespace,key,createtime"}),O.version(5).stores({logger:"++id,level,origin,createtime,title,[origin+title],[level+origin+title]"}),O.version(6).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,runStatus,createtime,updatetime,checktime"}),O.version(7).stores({resource:"++id,&url,content,type,createtime,updatetime",resourceLink:"++id,url,scriptId,createtime"}),O.version(8).stores({logger:"++id,level,origin,createtime"}),O.version(9).stores({logger:"++id,level,scriptId,origin,createtime"}),O.version(10).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,sort,status,runStatus,createtime,updatetime,checktime"}).upgrade((function(e){return e.table("scripts").toCollection().modify((function(e){e.sort=0}))})),O.version(11).stores({export:"++id,&uuid,scriptId"}),O.version(12).stores({value:"++id,scriptId,storageName,key,createtime"}).upgrade((function(e){e.table("value").toCollection().modify((function(e){e.namespace&&(e.storageName=e.namespace,delete e.namespace)}))})),O.version(13).stores({subscribe:"++id,&url,createtime,updatetime,checktime",scripts:"++id,&uuid,name,namespace,author,origin_domain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",sync:"++id,&key,[user+device+type],createtime"}),O.version(14).stores({value:"++id,[scriptId+key],[storageName+key]"}),O.version(15).stores({permission:"++id,scriptId,[scriptId+permission+permissionValue],createtime,updatetime"}),O.version(16).stores({scripts:"++id,&uuid,name,namespace,author,originDomain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",logger:"++id,level,createtime"}).upgrade(function(){var e=(0,l.Z)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.table("export").clear();case 2:return e.abrupt("return",t.table("scripts").toCollection().modify((function(e){e.origin_domain&&(e.originDomain=e.origin_domain),e.checkupdate_url&&(e.checkUpdateUrl=e.checkupdate_url),e.download_url&&(e.downloadUrl=e.download_url)})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),O.version(17).stores({export:"++id,&scriptId"}),new Z({debug:!1,writer:new ne(new te),labels:{env:"background"}}).logger().debug("import start");var yt=new z("confirm");K.registerInstance(z,yt).alias([I,D]),a.createRoot(document.getElementById("root")).render(r.createElement("div",null,r.createElement(vt,{className:"!flex-col !p-[10px] box-border h-auto overflow-auto",pageName:"import"},r.createElement(et,null))))},27595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8081),a=n.n(r),i=n(23645),s=n.n(i)()(a());s.push([e.id,'*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}.visible{visibility:visible;}.absolute{position:absolute;}.relative{position:relative;}.bottom-0{bottom:0;}.top-50px{top:50px;}.\\!m-0{margin:0 !important;}.box-border{box-sizing:border-box;}.block{display:block;}.hidden{display:none;}.\\!h-6{height:1.5rem !important;}.h-6{height:1.5rem;}.h-auto{height:auto;}.h-full{height:100%;}.max-w-\\[240px\\]{max-width:240px;}.w-full{width:100%;}.\\!flex,.flex\\!{display:flex !important;}.flex{display:flex;}.flex-1,[flex~="\\31 "]{flex:1 1 0%;}.flex-grow{flex-grow:1;}.\\!flex-row{flex-direction:row !important;}.flex-row{flex-direction:row;}.\\!flex-col{flex-direction:column !important;}.flex-col{flex-direction:column;}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}.items-center{align-items:center;}.justify-end{justify-content:flex-end;}.justify-between{justify-content:space-between;}.gap-10{grid-gap:2.5rem;gap:2.5rem;}.overflow-auto{overflow:auto;}.break-all{word-break:break-all;}.border{border-width:1px;}.\\!p-\\[10px\\]{padding:10px !important;}.p-2{padding:0.5rem;}.p-8px{padding:8px;}.\\!px-4{padding-left:1rem !important;padding-right:1rem !important;}.p-x-4{padding-left:1rem;padding-right:1rem;}.text-center{text-align:center;}.text-left{text-align:left;}.text-end{text-align:end;}.text-\\[12px\\]{font-size:12px;}.text-1{font-size:0.25rem;}.text-2xl{font-size:1.5rem;line-height:2rem;}.text-base{font-size:1rem;line-height:1.5rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.text-xl{font-size:1.25rem;line-height:1.75rem;}.\\!text-size-lg{font-size:1.125rem !important;}.\\!text-size-sm{font-size:0.875rem !important;}.text-size-lg{font-size:1.125rem;}.font-500,.font-medium{font-weight:500;}.color-gray-5{--un-text-opacity:1;color:rgba(107,114,128,var(--un-text-opacity));}[color~="blue"]{--un-text-opacity:1;color:rgba(96,165,250,var(--un-text-opacity));}[color~="cyan"]{--un-text-opacity:1;color:rgba(34,211,238,var(--un-text-opacity));}[color~="green"]{--un-text-opacity:1;color:rgba(74,222,128,var(--un-text-opacity));}[color~="orange"]{--un-text-opacity:1;color:rgba(251,146,60,var(--un-text-opacity));}[color~="purple"]{--un-text-opacity:1;color:rgba(192,132,252,var(--un-text-opacity));}[color~="red"]{--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4;}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}',""]);const o=s},52438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8081),a=n.n(r),i=n(23645),s=n.n(i)()(a());s.push([e.id,".arco-dropdown-menu-selected {\n background-color: var(--color-fill-2) !important;\n}\n\n.action-tools .arco-dropdown-popup-visible .arco-icon-down {\n transform: rotate(180deg);\n}\n\n.action-tools > .arco-btn {\n padding: 0 8px;\n}\n",""]);const o=s},74317:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(8081),a=n.n(r),i=n(23645),s=n.n(i)()(a());s.push([e.id,".import-list .arco-typography {\n margin: 0;\n}\n",""]);const o=s},94748:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},6161:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},51096:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},42480:()=>{}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=t,r.amdO={},e=[],r.O=(t,n,a,i)=>{if(!n){var s=1/0;for(l=0;l=i)&&Object.keys(r.O).every((e=>r.O[e](n[c])))?n.splice(c--,1):(o=!1,i0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,a,i]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.e=()=>Promise.resolve(),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=6,(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&!e;)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{r.b=document.baseURI||self.location.href;var e={6:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var a,i,[s,o,c]=n,u=0;if(s.some((t=>0!==e[t]))){for(a in o)r.o(o,a)&&(r.m[a]=o[a]);if(c)var l=c(r)}for(t&&t(n);ur(75710)));a=r.O(a)})(); \ No newline at end of file diff --git a/Scriptcat/src/inject.js b/Scriptcat/src/inject.js new file mode 100755 index 0000000..cb7e4af --- /dev/null +++ b/Scriptcat/src/inject.js @@ -0,0 +1,2 @@ +/*! For license information please see inject.js.LICENSE.txt */ +(()=>{var e={1976:function(e,t,n){var r,i,o;i=[n(8565)],r=function(e,t){var r={},i=t&&t.spawn;const o=n(5096)(e),s=n(5238)(o,i);return e.DateTime.prototype.getWeekDay=function(){return 7===this.weekday?0:this.weekday},r.job=(e,t,n,r,i,o,a,u,c)=>new s(e,t,n,r,i,o,a,u,c),r.time=(e,t)=>new o(e,t),r.sendAt=e=>r.time(e).sendAt(),r.timeout=e=>r.time(e).getTimeout(),r.CronJob=s,r.CronTime=o,r},void 0===(o=r.apply(t,i))||(e.exports=o)},5238:e=>{e.exports=function(e,t){function n(e){var n,r;switch(typeof e){case"string":return n=(r=e.split(" ")).shift(),t.bind(void 0,n,r);case"object":if(n=e&&e.command){r=e.args;var i=e.options;return t.bind(void 0,n,r,i)}}return e}function r(t,r,a,u,c,l,h,f,d){for(var p=t,m=0,y=0;y=0;e--)this._callbacks[e].call(this.context,this.onComplete)};r.prototype.fireOnTick=o,r.prototype.nextDates=function(e){return this.cronTime.sendAt(e)};var s=function(){if(!this.running){var e,t=2147483647,n=this,r=this.cronTime.getTimeout(),i=0;this.cronTime.realDate&&(this.runOnce=!0),r>=0?(this.running=!0,r>t&&(i=r-t,r=t),o(r)):this.stop()}function o(t){e=Date.now(),n._timeout=setTimeout(s,t),n.unrefTimeout&&"function"==typeof n._timeout.unref&&n._timeout.unref()}function s(){var s=e+r-Date.now();if(s>0){var a=n.cronTime.getTimeout();a>s&&(a=s),i+=a}n.lastExecution=new Date,i?(i>t?(i-=t,r=t):(r=i,i=0),o(r)):(n.running=!1,n.runOnce||n.start(),n.fireOnTick())}};return r.prototype.start=s,r.prototype.lastDate=function(){return this.lastExecution},r.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this.running=!1,"function"==typeof this.onComplete&&this.onComplete()},r}},5096:e=>{const t=[[0,59],[0,59],[0,23],[1,31],[0,11],[0,6]],n=[31,29,31,30,31,30,31,31,30,31,30,31],r=["0","*","*","*","*","*"],i={jan:0,feb:1,mar:2,apr:3,may:4,jun:5,jul:6,aug:7,sep:8,oct:9,nov:10,dec:11,sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6},o=["second","minute","hour","dayOfMonth","month","dayOfWeek"],s=o.length,a={"@yearly":"0 0 0 1 0 *","@monthly":"0 0 0 1 * *","@weekly":"0 0 0 * * 0","@daily":"0 0 0 * * *","@hourly":"0 0 * * * *","@minutely":"0 * * * * *","@secondly":"* * * * * *","@weekdays":"0 0 0 * * 1-5","@weekends":"0 0 0 * * 0,6"},u=/\*/g,c=/^(\d+)(?:-(\d+))?(?:\/(\d+))?$/g;e.exports=function(e){function l(t,n,r){if(this.source=t,n){if(e.DateTime.fromObject({},{zone:n}).invalid)throw new Error("Invalid timezone.");this.zone=n}void 0!==r&&(this.utcOffset=r);var i=this;o.map((e=>{i[e]={}})),this.source instanceof Date||this.source instanceof e.DateTime?(this.source instanceof Date&&(this.source=e.DateTime.fromJSDate(this.source)),this.realDate=!0):(this._parse(this.source),this._verifyParse())}return l.prototype={_verifyParse:function(){for(var e=Object.keys(this.month),t=Object.keys(this.dayOfMonth),r=!1,i=NaN,o=0;oc){delete this.dayOfMonth[h];var f=Number(h)%c;this.dayOfMonth[f]=!0}}},sendAt:function(t){var n=this.realDate?this.source:e.DateTime.local();if(this.zone&&(n=n.setZone(this.zone)),void 0!==this.utcOffset){let e=this.utcOffset>=60||this.utcOffset<=-60?this.utcOffset/60:this.utcOffset;e=parseInt(e);let t="UTC";if(e<0?t+=e:e>0&&(t+=`+${e}`),(n=n.setZone(t)).invalid)throw new Error("ERROR: You specified an invalid UTC offset.")}if(this.realDate){if(e.DateTime.local()>n)throw new Error("WARNING: Date in past. Will never be fired.");return n}if(isNaN(t)||t<0)return this._getNextDateFrom(n);for(var r=[];t>0;t--)n=this._getNextDateFrom(n),r.push(n);return r},getTimeout:function(){return Math.max(-1,this.sendAt()-e.DateTime.local())},toString:function(){return this.toJSON().join(" ")},toJSON:function(){var e=this;return o.map((function(t){return e._wcOrAll(t)}))},getNextDateFrom:function(e,t){return this._getNextDateFrom(e,t)},_getNextDateFrom:function(t,n){t instanceof Date&&(t=e.DateTime.fromJSDate(t));var r=t,i=t.toMillis();if(n&&(r=r.setZone(n)),this.realDate||r.millisecond>0&&(r=r.set({millisecond:0,second:r.second+1})),r.invalid)throw new Error("ERROR: You specified an invalid date.");for(var o=Date.now()+5e3;;){var s=r-t;if(Date.now()>o)throw new Error(`Something went wrong. It took over five seconds to find the next execution time for the cron job.\n\t\t\t\t\t\t\tPlease refer to the canonical issue (https://github.com/kelektiv/node-cron/issues/467) and provide the following string if you would like to help debug:\n\t\t\t\t\t\t\tTime Zone: ${n||'""'} - Cron String: ${this} - UTC offset: ${r.offset}\n\t\t\t\t\t\t\t- current Date: ${e.DateTime.local().toString()}`);if(r.month-1 in this.month||12===Object.keys(this.month).length){if(r.day in this.dayOfMonth||31===Object.keys(this.dayOfMonth).length||r.getWeekDay()in this.dayOfWeek&&7!==Object.keys(this.dayOfWeek).length){if(r.getWeekDay()in this.dayOfWeek||7===Object.keys(this.dayOfWeek).length||r.day in this.dayOfMonth&&31!==Object.keys(this.dayOfMonth).length)if(r.hour in this.hour||24===Object.keys(this.hour).length)if(r.minute in this.minute||60===Object.keys(this.minute).length)if(r.second in this.second||60===Object.keys(this.second).length){if(r.toMillis()!==i)break;{const e=r.second+1,t=r.minute+(60===e),n=r.hour+(60===t?1:0);if(r=r.set({second:e}),this._forwardDSTJump(n,t,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}}else{const e=59===r.second&&s>6e4?0:r.second+1,t=r.minute+(60===e),n=r.hour+(60===t?1:0);if(r=r.set({second:e}),this._forwardDSTJump(n,t,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}else{const e=59===r.minute&&s>36e5?0:r.minute+1,t=r.hour+(60===e?1:0);if(r=(r=r.set({minute:e})).set({second:0}),this._forwardDSTJump(t,e,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}else{const e=23===r.hour&&s>864e5?0:r.hour+1,t=r.minute;if(r=(r=r.set({hour:e})).set({minute:0,second:0}),this._forwardDSTJump(e,t,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}else if(r=(r=r.plus({days:1})).set({hour:0,minute:0,second:0}),this._forwardDSTJump(0,0,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}else if(r=(r=r.plus({days:1})).set({hour:0,minute:0,second:0}),this._forwardDSTJump(0,0,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}else if(r=(r=r.plus({months:1})).set({day:1,hour:0,minute:0,second:0}),this._forwardDSTJump(0,0,r)){const[e,t]=this._findPreviousDSTJump(r);if(r=t,e)break}}return r},_findPreviousDSTJump:function(e){let t,n,r,i,o=e,s=0;do{if(++s>1440)throw new Error(`ERROR: This DST checking related function assumes the input DateTime (${e.toISO()}) is within 24 hours of a DST jump.`);t=o.minute-1,n=o.hour,t<0&&(t+=60,n=(n+24-1)%24),o=o.minus({minute:1}),r=o.minute,i=o.hour}while(t===r&&n===i);const a=o.plus({minute:1}).set({seconds:0,millisecond:0}),u=a.minus({second:1});return e.month in this.month&&e.day in this.dayOfMonth&&e.getWeekDay()in this.dayOfWeek?[this._checkTimeInSkippedRange(u,a),a]:[!1,a]},_checkTimeInSkippedRange:function(e,t){const n=(e.minute+1)%60,r=(e.hour+(0===n))%24,i=t.hour-r+1,o=0===n&&0===t.minute;return 2===i&&o?r in this.hour:1===i?r in this.hour&&this._checkTimeInSkippedRangeSingleHour(n,t.minute):this._checkTimeInSkippedRangeMultiHour(r,n,t.hour,t.minute)},_checkTimeInSkippedRangeSingleHour:function(e,t){for(let n=e;n=n)throw new Error(`ERROR: This DST checking related function assumes the forward jump starting hour (${e}) is less than the end hour (${n})`);const i=Array.from({length:60-t},((e,n)=>t+n)),o=Array.from({length:r},((e,t)=>t)),s=Array.from({length:60},((e,t)=>t));for(let t=e;t<=n;++t){if(!(t in this.hour))continue;const r=(a=t)===e?i:a===n?o:s;for(const e of r)if(e in this.minute)return!0}var a;return n in this.hour&&r in this.minute&&0 in this.second},_forwardDSTJump:function(e,t,n){const r=n.hour,i=n.minute;return e%24{if(e in i)return i[e];throw new Error(`Unknown alias: ${e}`)}))).trim().split(/\s+/);if(n.lengths)throw new Error("Too many fields");for(var u=n.length,c=0;c{var t=e.indexOf("*");if(-1!==t&&0!==t)throw new Error(`Field (${e}) has an invalid wildcard expression`)}));for(var a=(e=e.replace(u,`${o}-${s}`)).split(","),l=0;l{a=parseInt(a,10),u=parseInt(u,10)||void 0;const l=!isNaN(parseInt(c,10));if("0"===c)throw new Error(`Field (${t}) has a step of zero`);if(c=parseInt(c,10)||1,u&&a>u)throw new Error(`Field (${t}) has an invalid range`);if(as||!u&&a>s)throw new Error(`Field value (${e}) is out of range`);a=Math.min(Math.max(o,~~Math.abs(a)),s),u=u?Math.min(s,~~Math.abs(u)):l?s:a,r=a;do{i[r]=!0,r+=c}while(r<=u)}))}}},l}},452:function(e,t,n){var r;e.exports=(r=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var m=e[n],y=e[m],g=e[y],v=257*e[p]^16843008*p;s[n]=v<<24|v>>>8,a[n]=v<<16|v>>>16,u[n]=v<<8|v>>>24,c[n]=v,v=16843009*g^65537*y^257*m^16843008*n,l[p]=v<<24|v>>>8,h[p]=v<<16|v>>>16,f[p]=v<<8|v>>>24,d[p]=v,n?(n=m^e[e[e[g^m]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s6&&s%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[s/n|0]<<24),o[s]=o[s-n]^c);for(var a=this._invKeySchedule=[],u=0;u>>24]]^h[i[c>>>16&255]]^f[i[c>>>8&255]]^d[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,u,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,h,f,d,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,s,a){for(var u=this._nRounds,c=e[t]^n[0],l=e[t+1]^n[1],h=e[t+2]^n[2],f=e[t+3]^n[3],d=4,p=1;p>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&f]^n[d++],y=r[l>>>24]^i[h>>>16&255]^o[f>>>8&255]^s[255&c]^n[d++],g=r[h>>>24]^i[f>>>16&255]^o[c>>>8&255]^s[255&l]^n[d++],v=r[f>>>24]^i[c>>>16&255]^o[l>>>8&255]^s[255&h]^n[d++];c=m,l=y,h=g,f=v}m=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^n[d++],y=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&c])^n[d++],g=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^n[d++],v=(a[f>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[d++],e[t]=m,e[t+1]=y,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(m)}(),r.AES)},5109:function(e,t,n){var r,i,o,s,a,u,c,l,h,f,d,p,m,y,g,v,w,b,_;e.exports=(r=n(8249),n(888),void(r.lib.Cipher||(i=r,o=i.lib,s=o.Base,a=o.WordArray,u=o.BufferedBlockAlgorithm,c=i.enc,c.Utf8,l=c.Base64,h=i.algo.EvpKDF,f=o.Cipher=u.extend({cfg:s.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:w}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),o.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),d=i.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=d.CBC=function(){var e=p.extend();function t(e,t,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o>>2];e.sigBytes-=t}},o.BlockCipher=f.extend({cfg:f.cfg.extend({mode:m,padding:y}),reset:function(){var e;f.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),g=o.CipherParams=s.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),v=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},w=o.SerializableCipher=s.extend({cfg:s.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),s=i.cfg;return g.create({ciphertext:o,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(i.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var i=h.create({keySize:t+n}).compute(e,r),o=a.create(i.words.slice(t),4*n);return i.sigBytes=4*t,g.create({key:i,iv:o,salt:r})}},_=o.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=w.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,w.decrypt.call(this,e,t,i.key,r)}}))))},8249:function(e,t,n){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(2480)}catch(e){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},a=s.lib={},u=a.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=a.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},f=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},d=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*u,o);if(u){for(var h=0;h>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a>>6*(3-a)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i>>6-s%4*2;r[i>>>2]|=a<<24-i%4*8,i++}return o.create(r,i)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},3786:function(e,t,n){var r,i,o;e.exports=(r=n(8249),o=(i=r).lib.WordArray,i.enc.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,u=0;u<4&&s+.75*u>>6*(3-u)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t=!0){var n=e.length,r=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>6-s%4*2;r[i>>>2]|=a<<24-i%4*8,i++}return o.create(r,i)}(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},r.enc.Base64url)},298:function(e,t,n){var r;e.exports=(r=n(8249),function(){var e=r,t=e.lib.WordArray,n=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},888:function(e,t,n){var r,i,o,s,a,u,c,l;e.exports=(r=n(8249),n(2783),n(9824),o=(i=r).lib,s=o.Base,a=o.WordArray,u=i.algo,c=u.MD5,l=u.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),o=a.create(),s=o.words,u=r.keySize,c=r.iterations;s.lengthr&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,u=s.words,c=0;c>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},8214:function(e,t,n){var r;e.exports=(r=n(8249),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],m=e[t+4],y=e[t+5],g=e[t+6],v=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],E=e[t+13],O=e[t+14],S=e[t+15],T=o[0],M=o[1],A=o[2],I=o[3];T=c(T,M,A,I,s,7,a[0]),I=c(I,T,M,A,u,12,a[1]),A=c(A,I,T,M,d,17,a[2]),M=c(M,A,I,T,p,22,a[3]),T=c(T,M,A,I,m,7,a[4]),I=c(I,T,M,A,y,12,a[5]),A=c(A,I,T,M,g,17,a[6]),M=c(M,A,I,T,v,22,a[7]),T=c(T,M,A,I,w,7,a[8]),I=c(I,T,M,A,b,12,a[9]),A=c(A,I,T,M,_,17,a[10]),M=c(M,A,I,T,k,22,a[11]),T=c(T,M,A,I,x,7,a[12]),I=c(I,T,M,A,E,12,a[13]),A=c(A,I,T,M,O,17,a[14]),T=l(T,M=c(M,A,I,T,S,22,a[15]),A,I,u,5,a[16]),I=l(I,T,M,A,g,9,a[17]),A=l(A,I,T,M,k,14,a[18]),M=l(M,A,I,T,s,20,a[19]),T=l(T,M,A,I,y,5,a[20]),I=l(I,T,M,A,_,9,a[21]),A=l(A,I,T,M,S,14,a[22]),M=l(M,A,I,T,m,20,a[23]),T=l(T,M,A,I,b,5,a[24]),I=l(I,T,M,A,O,9,a[25]),A=l(A,I,T,M,p,14,a[26]),M=l(M,A,I,T,w,20,a[27]),T=l(T,M,A,I,E,5,a[28]),I=l(I,T,M,A,d,9,a[29]),A=l(A,I,T,M,v,14,a[30]),T=h(T,M=l(M,A,I,T,x,20,a[31]),A,I,y,4,a[32]),I=h(I,T,M,A,w,11,a[33]),A=h(A,I,T,M,k,16,a[34]),M=h(M,A,I,T,O,23,a[35]),T=h(T,M,A,I,u,4,a[36]),I=h(I,T,M,A,m,11,a[37]),A=h(A,I,T,M,v,16,a[38]),M=h(M,A,I,T,_,23,a[39]),T=h(T,M,A,I,E,4,a[40]),I=h(I,T,M,A,s,11,a[41]),A=h(A,I,T,M,p,16,a[42]),M=h(M,A,I,T,g,23,a[43]),T=h(T,M,A,I,b,4,a[44]),I=h(I,T,M,A,x,11,a[45]),A=h(A,I,T,M,S,16,a[46]),T=f(T,M=h(M,A,I,T,d,23,a[47]),A,I,s,6,a[48]),I=f(I,T,M,A,v,10,a[49]),A=f(A,I,T,M,O,15,a[50]),M=f(M,A,I,T,y,21,a[51]),T=f(T,M,A,I,x,6,a[52]),I=f(I,T,M,A,p,10,a[53]),A=f(A,I,T,M,_,15,a[54]),M=f(M,A,I,T,u,21,a[55]),T=f(T,M,A,I,w,6,a[56]),I=f(I,T,M,A,S,10,a[57]),A=f(A,I,T,M,g,15,a[58]),M=f(M,A,I,T,E,21,a[59]),T=f(T,M,A,I,m,6,a[60]),I=f(I,T,M,A,k,10,a[61]),A=f(A,I,T,M,d,15,a[62]),M=f(M,A,I,T,b,21,a[63]),o[0]=o[0]+T|0,o[1]=o[1]+M|0,o[2]=o[2]+A|0,o[3]=o[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,u=a.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,s){var a=e+(t&n|~t&r)+i+s;return(a<>>32-o)+t}function l(e,t,n,r,i,o,s){var a=e+(t&r|n&~r)+i+s;return(a<>>32-o)+t}function h(e,t,n,r,i,o,s){var a=e+(t^n^r)+i+s;return(a<>>32-o)+t}function f(e,t,n,r,i,o,s){var a=e+(n^(t|~r))+i+s;return(a<>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),r.MD5)},8568:function(e,t,n){var r;e.exports=(r=n(8249),n(5109),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var s=0;s>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var a=s.slice(0);r.encryptBlock(a,0);for(var u=0;u>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},2807:function(e,t,n){var r;e.exports=(r=n(8249),n(5109),r.pad.Iso10126={pad:function(e,t){var n=4*t,i=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},1077:function(e,t,n){var r;e.exports=(r=n(8249),n(5109),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},6991:function(e,t,n){var r;e.exports=(r=n(8249),n(5109),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},6475:function(e,t,n){var r;e.exports=(r=n(8249),n(5109),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},2112:function(e,t,n){var r,i,o,s,a,u,c,l,h;e.exports=(h=n(8249),n(2783),n(9824),o=(i=(r=h).lib).Base,s=i.WordArray,u=(a=r.algo).SHA1,c=a.HMAC,l=a.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=c.create(n.hasher,e),i=s.create(),o=s.create([1]),a=i.words,u=o.words,l=n.keySize,h=n.iterations;a.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=c>>>16|4294901760&l,f=l<<16|65535&c;for(r[0]^=c,r[1]^=h,r[2]^=l,r[3]^=f,r[4]^=c,r[5]^=h,r[6]^=l,r[7]^=f,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(a)}(),r.RabbitLegacy)},4454:function(e,t,n){var r;e.exports=(r=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=c>>>16|4294901760&l,f=l<<16|65535&c;for(i[0]^=c,i[1]^=h,i[2]^=l,i[3]^=f,i[4]^=c,i[5]^=h,i[6]^=l,i[7]^=f,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(a)}(),r.Rabbit)},1857:function(e,t,n){var r;e.exports=(r=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var s=i%n,a=t[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(s)}(),r.RC4)},706:function(e,t,n){var r;e.exports=(r=n(8249),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,s,d,b,_,k,x,E,O,S,T,M=this._hash.words,A=h.words,I=f.words,C=a.words,N=u.words,D=c.words,$=l.words;for(k=o=M[0],x=s=M[1],E=d=M[2],O=b=M[3],S=_=M[4],n=0;n<80;n+=1)T=o+e[t+C[n]]|0,T+=n<16?p(s,d,b)+A[0]:n<32?m(s,d,b)+A[1]:n<48?y(s,d,b)+A[2]:n<64?g(s,d,b)+A[3]:v(s,d,b)+A[4],T=(T=w(T|=0,D[n]))+_|0,o=_,_=b,b=w(d,10),d=s,s=T,T=k+e[t+N[n]]|0,T+=n<16?v(x,E,O)+I[0]:n<32?g(x,E,O)+I[1]:n<48?y(x,E,O)+I[2]:n<64?m(x,E,O)+I[3]:p(x,E,O)+I[4],T=(T=w(T|=0,$[n]))+S|0,k=S,S=O,O=w(E,10),E=x,x=T;T=M[1]+d+O|0,M[1]=M[2]+b+S|0,M[2]=M[3]+_+k|0,M[3]=M[4]+o+x|0,M[4]=M[0]+s+E|0,M[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function y(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function w(e,t){return e<>>32-t}t.RIPEMD160=o._createHelper(d),t.HmacRIPEMD160=o._createHmacHelper(d)}(Math),r.RIPEMD160)},2783:function(e,t,n){var r,i,o,s,a,u,c,l;e.exports=(i=(r=l=n(8249)).lib,o=i.WordArray,s=i.Hasher,a=r.algo,u=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],c=0;c<80;c++){if(c<16)u[c]=0|e[t+c];else{var l=u[c-3]^u[c-8]^u[c-14]^u[c-16];u[c]=l<<1|l>>>31}var h=(r<<5|r>>>27)+a+u[c];h+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,a=s,s=o,o=i<<30|i>>>2,i=r,r=h}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=s._createHelper(c),r.HmacSHA1=s._createHmacHelper(c),l.SHA1)},7792:function(e,t,n){var r,i,o,s,a,u;e.exports=(u=n(8249),n(2153),i=(r=u).lib.WordArray,o=r.algo,s=o.SHA256,a=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=s._createHelper(a),r.HmacSHA224=s._createHmacHelper(a),u.SHA224)},2153:function(e,t,n){var r;e.exports=(r=n(8249),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.algo,a=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(a[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],f=n[7],d=0;d<64;d++){if(d<16)c[d]=0|e[t+d];else{var p=c[d-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=c[d-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[d]=m+c[d-7]+g+c[d-16]}var v=r&i^r&o^i&o,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&l^~a&h)+u[d]+c[d];f=h,h=l,l=a,a=s+b|0,s=o,o=i,i=r,r=b+(w+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)},3327:function(e,t,n){var r;e.exports=(r=n(8249),n(4938),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,s=t.x64.Word,a=t.algo,u=[],c=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var a=0,h=0,f=0;f<7;f++){if(1&i){var d=(1<>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(M=n[i]).high^=s,M.low^=o}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var d=0,p=0,m=0;m<5;m++)d^=(M=n[f+5*m]).high,p^=M.low;var y=h[f];y.high=d,y.low=p}for(f=0;f<5;f++){var g=h[(f+4)%5],v=h[(f+1)%5],w=v.high,b=v.low;for(d=g.high^(w<<1|b>>>31),p=g.low^(b<<1|w>>>31),m=0;m<5;m++)(M=n[f+5*m]).high^=d,M.low^=p}for(var _=1;_<25;_++){var k=(M=n[_]).high,x=M.low,E=u[_];E<32?(d=k<>>32-E,p=x<>>32-E):(d=x<>>64-E,p=k<>>64-E);var O=h[c[_]];O.high=d,O.low=p}var S=h[0],T=n[0];for(S.high=T.high,S.low=T.low,f=0;f<5;f++)for(m=0;m<5;m++){var M=n[_=f+5*m],A=h[_],I=h[(f+1)%5+5*m],C=h[(f+2)%5+5*m];M.high=A.high^~I.high&C.high,M.low=A.low^~I.low&C.low}M=n[0];var N=l[a];M.high^=N.high,M.low^=N.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,u=a/8,c=[],l=0;l>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(d),c.push(f)}return new i.init(c,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(f),t.HmacSHA3=o._createHmacHelper(f)}(Math),r.SHA3)},7460:function(e,t,n){var r,i,o,s,a,u,c,l;e.exports=(l=n(8249),n(4938),n(34),i=(r=l).x64,o=i.Word,s=i.WordArray,a=r.algo,u=a.SHA512,c=a.SHA384=u.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=u._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=u._createHelper(c),r.HmacSHA384=u._createHmacHelper(c),l.SHA384)},34:function(e,t,n){var r;e.exports=(r=n(8249),n(4938),function(){var e=r,t=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,s=e.algo;function a(){return i.create.apply(i,arguments)}var u=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var l=s.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],l=n[5],h=n[6],f=n[7],d=r.high,p=r.low,m=i.high,y=i.low,g=o.high,v=o.low,w=s.high,b=s.low,_=a.high,k=a.low,x=l.high,E=l.low,O=h.high,S=h.low,T=f.high,M=f.low,A=d,I=p,C=m,N=y,D=g,$=v,R=w,j=b,L=_,P=k,B=x,F=E,z=O,V=S,U=T,G=M,K=0;K<80;K++){var H,q,W=c[K];if(K<16)q=W.high=0|e[t+2*K],H=W.low=0|e[t+2*K+1];else{var Z=c[K-15],Y=Z.high,J=Z.low,X=(Y>>>1|J<<31)^(Y>>>8|J<<24)^Y>>>7,Q=(J>>>1|Y<<31)^(J>>>8|Y<<24)^(J>>>7|Y<<25),ee=c[K-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[K-7],se=oe.high,ae=oe.low,ue=c[K-16],ce=ue.high,le=ue.low;q=(q=(q=X+se+((H=Q+ae)>>>0>>0?1:0))+re+((H+=ie)>>>0>>0?1:0))+ce+((H+=le)>>>0>>0?1:0),W.high=q,W.low=H}var he,fe=L&B^~L&z,de=P&F^~P&V,pe=A&C^A&D^C&D,me=I&N^I&$^N&$,ye=(A>>>28|I<<4)^(A<<30|I>>>2)^(A<<25|I>>>7),ge=(I>>>28|A<<4)^(I<<30|A>>>2)^(I<<25|A>>>7),ve=(L>>>14|P<<18)^(L>>>18|P<<14)^(L<<23|P>>>9),we=(P>>>14|L<<18)^(P>>>18|L<<14)^(P<<23|L>>>9),be=u[K],_e=be.high,ke=be.low,xe=U+ve+((he=G+we)>>>0>>0?1:0),Ee=ge+me;U=z,G=V,z=B,V=F,B=L,F=P,L=R+(xe=(xe=(xe=xe+fe+((he+=de)>>>0>>0?1:0))+_e+((he+=ke)>>>0>>0?1:0))+q+((he+=H)>>>0>>0?1:0))+((P=j+he|0)>>>0>>0?1:0)|0,R=D,j=$,D=C,$=N,C=A,N=I,A=xe+(ye+pe+(Ee>>>0>>0?1:0))+((I=he+Ee|0)>>>0>>0?1:0)|0}p=r.low=p+I,r.high=d+A+(p>>>0>>0?1:0),y=i.low=y+N,i.high=m+C+(y>>>0>>0?1:0),v=o.low=v+$,o.high=g+D+(v>>>0<$>>>0?1:0),b=s.low=b+j,s.high=w+R+(b>>>0>>0?1:0),k=a.low=k+P,a.high=_+L+(k>>>0

>>0?1:0),E=l.low=E+F,l.high=x+B+(E>>>0>>0?1:0),S=h.low=S+V,h.high=O+z+(S>>>0>>0?1:0),M=f.low=M+G,f.high=T+U+(M>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),r.SHA512)},4253:function(e,t,n){var r;e.exports=(r=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=r,t=e.lib,n=t.WordArray,i=t.BlockCipher,o=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],l=u[o];for(n=0;n<24;n++)c[n/6|0]|=t[(a[n]-1+l)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(a[n+24]-1+l)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,u=0;u<8;u++)a|=c[u][((s^i[u])&l[u])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=h.createEncryptor(n.create(t)),this._des2=h.createEncryptor(n.create(r)),this._des3=h.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),r.TripleDES)},4938:function(e,t,n){var r,i,o,s,a,u;e.exports=(r=n(8249),o=(i=r).lib,s=o.Base,a=o.WordArray,(u=i.x64={}).Word=s.extend({init:function(e,t){this.high=e,this.low=t}}),u.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var a=t.name;w[a]=t,i=a}return!r&&i&&(v=i),i||!r&&v},k=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},x=g;x.l=_,x.i=b,x.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=_(e.locale,null,!0),this.parse(e)}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return x},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)0,y<=m.r||!m.r){y<=1&&p>0&&(m=f[p-1]);var g=h[m.l];a&&(y=a(""+y)),c="string"==typeof g?g.replace("%d",y):g(y,r,m.l,l);break}}if(r)return c;var v=l?h.future:h.past;return"function"==typeof v?v(c):v.replace("%s",c)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var s=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(s(this),e)},r.fromNow=function(e){return this.from(s(this),e)}}}()},6486:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,c=128,l=1/0,h=9007199254740991,f=NaN,d=4294967295,p=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",_="[object GeneratorFunction]",k="[object Map]",x="[object Number]",E="[object Object]",O="[object Promise]",S="[object RegExp]",T="[object Set]",M="[object String]",A="[object Symbol]",I="[object WeakMap]",C="[object ArrayBuffer]",N="[object DataView]",D="[object Float32Array]",$="[object Float64Array]",R="[object Int8Array]",j="[object Int16Array]",L="[object Int32Array]",P="[object Uint8Array]",B="[object Uint8ClampedArray]",F="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,q=RegExp(K.source),W=RegExp(H.source),Z=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,be=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="["+_e+"]",Ae="["+Te+"]",Ie="["+ke+"]",Ce="\\d+",Ne="["+xe+"]",De="["+Ee+"]",$e="[^"+_e+Te+Ce+xe+Ee+Oe+"]",Re="\\ud83c[\\udffb-\\udfff]",je="[^"+_e+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Pe="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+Oe+"]",Fe="\\u200d",ze="(?:"+De+"|"+$e+")",Ve="(?:"+Be+"|"+$e+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Ie+"|"+Re+")?",He="["+Se+"]?",qe=He+Ke+"(?:"+Fe+"(?:"+[je,Le,Pe].join("|")+")"+He+Ke+")*",We="(?:"+[Ne,Le,Pe].join("|")+")"+qe,Ze="(?:"+[je+Ie+"?",Ie,Le,Pe,Me].join("|")+")",Ye=RegExp("['’]","g"),Je=RegExp(Ie,"g"),Xe=RegExp(Re+"(?="+Re+")|"+Ze+qe,"g"),Qe=RegExp([Be+"?"+De+"+"+Ue+"(?="+[Ae,Be,"$"].join("|")+")",Ve+"+"+Ge+"(?="+[Ae,Be+ze,"$"].join("|")+")",Be+"?"+ze+"+"+Ue,Be+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,We].join("|"),"g"),et=RegExp("["+Fe+_e+ke+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,it={};it[D]=it[$]=it[R]=it[j]=it[L]=it[P]=it[B]=it[F]=it[z]=!0,it[m]=it[y]=it[C]=it[g]=it[N]=it[v]=it[w]=it[b]=it[k]=it[x]=it[E]=it[S]=it[T]=it[M]=it[I]=!1;var ot={};ot[m]=ot[y]=ot[C]=ot[N]=ot[g]=ot[v]=ot[D]=ot[$]=ot[R]=ot[j]=ot[L]=ot[k]=ot[x]=ot[E]=ot[S]=ot[T]=ot[M]=ot[A]=ot[P]=ot[B]=ot[F]=ot[z]=!0,ot[w]=ot[b]=ot[I]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ht=ct||lt||Function("return this")(),ft=t&&!t.nodeType&&t,dt=ft&&e&&!e.nodeType&&e,pt=dt&&dt.exports===ft,mt=pt&&ct.process,yt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,wt=yt&&yt.isMap,bt=yt&&yt.isRegExp,_t=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function It(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Bt(t,e[n],0)>-1;);return n}var en=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tn=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ht:pn.defaults(ht.Object(),t,pn.pick(ht,nt))).Array,ie=t.Date,_e=t.Error,ke=t.Function,xe=t.Math,Ee=t.Object,Oe=t.RegExp,Se=t.String,Te=t.TypeError,Me=r.prototype,Ae=ke.prototype,Ie=Ee.prototype,Ce=t["__core-js_shared__"],Ne=Ae.toString,De=Ie.hasOwnProperty,$e=0,Re=(n=/[^.]+$/.exec(Ce&&Ce.keys&&Ce.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",je=Ie.toString,Le=Ne.call(Ee),Pe=ht._,Be=Oe("^"+Ne.call(De).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=pt?t.Buffer:i,ze=t.Symbol,Ve=t.Uint8Array,Ue=Fe?Fe.allocUnsafe:i,Ge=sn(Ee.getPrototypeOf,Ee),Ke=Ee.create,He=Ie.propertyIsEnumerable,qe=Me.splice,We=ze?ze.isConcatSpreadable:i,Ze=ze?ze.iterator:i,Xe=ze?ze.toStringTag:i,et=function(){try{var e=uo(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ct=ie&&ie.now!==ht.Date.now&&ie.now,lt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=xe.ceil,dt=xe.floor,mt=Ee.getOwnPropertySymbols,yt=Fe?Fe.isBuffer:i,jt=t.isFinite,Gt=Me.join,mn=sn(Ee.keys,Ee),yn=xe.max,gn=xe.min,vn=ie.now,wn=t.parseInt,bn=xe.random,_n=Me.reverse,kn=uo(t,"DataView"),xn=uo(t,"Map"),En=uo(t,"Promise"),On=uo(t,"Set"),Sn=uo(t,"WeakMap"),Tn=uo(Ee,"create"),Mn=Sn&&new Sn,An={},In=Lo(kn),Cn=Lo(xn),Nn=Lo(En),Dn=Lo(On),$n=Lo(Sn),Rn=ze?ze.prototype:i,jn=Rn?Rn.valueOf:i,Ln=Rn?Rn.toString:i;function Pn(e){if(ea(e)&&!Us(e)&&!(e instanceof Vn)){if(e instanceof zn)return e;if(De.call(e,"__wrapped__"))return Po(e)}return new zn(e)}var Bn=function(){function e(){}return function(t){if(!Qs(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Fn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,n,r,o,s){var a,u=1&t,c=2&t,l=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!Qs(e))return e;var h=Us(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&De.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Si(e,a)}else{var f=ho(e),d=f==b||f==_;if(qs(e))return bi(e,u);if(f==E||f==m||d&&!o){if(a=c||d?{}:po(e),!u)return c?function(e,t){return Ti(e,lo(e),t)}(e,function(e,t){return e&&Ti(t,Ca(t),e)}(a,e)):function(e,t){return Ti(e,co(e),t)}(e,nr(a,e))}else{if(!ot[f])return o?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case C:return _i(e);case g:case v:return new i(+e);case N:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case $:case R:case j:case L:case P:case B:case F:case z:return ki(e,n);case k:return new i;case x:case M:return new i(e);case S:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case A:return r=e,jn?Ee(jn.call(r)):{}}}(e,f,u)}}s||(s=new qn);var p=s.get(e);if(p)return p;s.set(e,a),oa(e)?e.forEach((function(r){a.add(sr(r,t,n,r,e,s))})):ta(e)&&e.forEach((function(r,i){a.set(i,sr(r,t,n,i,e,s))}));var y=h?i:(l?c?to:eo:c?Ca:Ia)(e);return Ot(y||e,(function(r,i){y&&(r=e[i=r]),Qn(a,i,sr(r,t,n,i,e,s))})),a}function ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ee(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Te(o);return Mo((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,o=At,s=!0,a=e.length,u=[],c=t.length;if(!a)return u;n&&(t=Ct(t,Zt(n))),r?(o=It,s=!1):t.length>=200&&(o=Jt,s=!1,t=new Hn(t));e:for(;++i-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(xn||Gn),string:new Un}},Kn.prototype.delete=function(e){var t=so(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return so(this,e).get(e)},Kn.prototype.has=function(e){return so(this,e).has(e)},Kn.prototype.set=function(e,t){var n=so(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(e){return this.__data__.set(e,s),this},Hn.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.clear=function(){this.__data__=new Gn,this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},qn.prototype.get=function(e){return this.__data__.get(e)},qn.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var lr=Ii(vr),hr=Ii(wr,!0);function fr(e,t){var n=!0;return lr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function dr(e,t,n){for(var r=-1,o=e.length;++r0&&n(a)?t>1?mr(a,t-1,n,r,i):Nt(i,a):r||(i[i.length]=a)}return i}var yr=Ci(),gr=Ci(!0);function vr(e,t){return e&&yr(e,t,Ia)}function wr(e,t){return e&&gr(e,t,Ia)}function br(e,t){return Mt(t,(function(t){return Ys(e[t])}))}function _r(e,t){for(var n=0,r=(t=yi(t,e)).length;null!=e&&nt}function Or(e,t){return null!=e&&De.call(e,t)}function Sr(e,t){return null!=e&&t in Ee(e)}function Tr(e,t,n){for(var o=n?It:At,s=e[0].length,a=e.length,u=a,c=r(a),l=1/0,h=[];u--;){var f=e[u];u&&t&&(f=Ct(f,Zt(t))),l=gn(f.length,l),c[u]=!n&&(t||s>=120&&f.length>=120)?new Hn(u&&f):i}f=e[0];var d=-1,p=c[0];e:for(;++d=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)a!==e&&qe.call(a,u,1),qe.call(e,u,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;yo(i)?qe.call(e,i,1):ui(e,i)}}return e}function Kr(e,t){return e+dt(bn()*(t-e+1))}function Hr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function qr(e,t){return Ao(Eo(e,t,nu),e+"")}function Wr(e){return Zn(Ba(e))}function Zr(e,t){var n=Ba(e);return No(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!Qs(e))return e;for(var o=-1,s=(t=yi(t,e)).length,a=s-1,u=e;null!=u&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i>>1,s=e[o];null!==s&&!aa(s)&&(n?s<=t:s=200){var c=t?null:Hi(e);if(c)return un(c);s=!1,i=Jt,u=new Hn}else u=t?[]:a;e:for(;++r=r?e:ei(e,t,n)}var wi=st||function(e){return ht.clearTimeout(e)};function bi(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function ki(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=aa(e),a=t!==i,u=null===t,c=t==t,l=aa(t);if(!u&&!l&&!s&&e>t||s&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!l&&e1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&go(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Ee(t);++r-1?o[s?t[a]:a]:i}}function ji(e){return Qi((function(t){var n=t.length,r=n,s=zn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Te(o);if(s&&!u&&"wrapper"==ro(a))var u=new zn([],!0)}for(r=u?r:n;++r1&&b.reverse(),d&&hu))return!1;var l=s.get(e),h=s.get(t);if(l&&h)return l==t&&h==e;var f=-1,d=!0,p=2&n?new Hn:i;for(s.set(e,t),s.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(p,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function Co(e){var t=0,n=0;return function(){var r=vn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function No(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,is(e,n)}));function hs(e){var t=Pn(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var ds=Qi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Vn&&yo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ps=Mi((function(e,t,n){De.call(e,n)?++e[n]:rr(e,n,1)})),ms=Ri(Vo),ys=Ri(Uo);function gs(e,t){return(Us(e)?Ot:lr)(e,oo(t,3))}function vs(e,t){return(Us(e)?St:hr)(e,oo(t,3))}var ws=Mi((function(e,t,n){De.call(e,n)?e[n].push(t):rr(e,n,[t])})),bs=qr((function(e,t,n){var i=-1,o="function"==typeof t,s=Ks(e)?r(e.length):[];return lr(e,(function(e){s[++i]=o?xt(t,e,n):Mr(e,t,n)})),s})),_s=Mi((function(e,t,n){rr(e,n,t)}));function ks(e,t){return(Us(e)?Ct:jr)(e,oo(t,3))}var xs=Mi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Es=qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&go(e,t[0],t[1])?t=[]:n>2&&go(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,mr(t,1),[])})),Os=ct||function(){return ht.Date.now()};function Ss(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Wi(e,c,i,i,i,i,t)}function Ts(e,t){var n;if("function"!=typeof t)throw new Te(o);return e=da(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ms=qr((function(e,t,n){var r=1;if(n.length){var i=an(n,io(Ms));r|=u}return Wi(e,r,t,n,i)})),As=qr((function(e,t,n){var r=3;if(n.length){var i=an(n,io(As));r|=u}return Wi(t,r,e,n,i)}));function Is(e,t,n){var r,s,a,u,c,l,h=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new Te(o);function m(t){var n=r,o=s;return r=s=i,h=t,u=e.apply(o,n)}function y(e){var n=e-l;return l===i||n>=t||n<0||d&&e-h>=a}function g(){var e=Os();if(y(e))return v(e);c=Mo(g,function(e){var n=t-(e-l);return d?gn(n,a-(e-h)):n}(e))}function v(e){return c=i,p&&r?m(e):(r=s=i,u)}function w(){var e=Os(),n=y(e);if(r=arguments,s=this,l=e,n){if(c===i)return function(e){return h=e,c=Mo(g,t),f?m(e):u}(l);if(d)return wi(c),c=Mo(g,t),m(l)}return c===i&&(c=Mo(g,t)),u}return t=ma(t)||0,Qs(n)&&(f=!!n.leading,a=(d="maxWait"in n)?yn(ma(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==i&&wi(c),h=0,r=l=s=c=i},w.flush=function(){return c===i?u:v(Os())},w}var Cs=qr((function(e,t){return ur(e,1,t)})),Ns=qr((function(e,t,n){return ur(e,ma(t)||0,n)}));function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ds.Cache||Kn),n}function $s(e){if("function"!=typeof e)throw new Te(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ds.Cache=Kn;var Rs=gi((function(e,t){var n=(t=1==t.length&&Us(t[0])?Ct(t[0],Zt(oo())):Ct(mr(t,1),Zt(oo()))).length;return qr((function(r){for(var i=-1,o=gn(r.length,n);++i=t})),Vs=Ar(function(){return arguments}())?Ar:function(e){return ea(e)&&De.call(e,"callee")&&!He.call(e,"callee")},Us=r.isArray,Gs=gt?Zt(gt):function(e){return ea(e)&&xr(e)==C};function Ks(e){return null!=e&&Xs(e.length)&&!Ys(e)}function Hs(e){return ea(e)&&Ks(e)}var qs=yt||mu,Ws=vt?Zt(vt):function(e){return ea(e)&&xr(e)==v};function Zs(e){if(!ea(e))return!1;var t=xr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ra(e)}function Ys(e){if(!Qs(e))return!1;var t=xr(e);return t==b||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==da(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Qs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ea(e){return null!=e&&"object"==typeof e}var ta=wt?Zt(wt):function(e){return ea(e)&&ho(e)==k};function na(e){return"number"==typeof e||ea(e)&&xr(e)==x}function ra(e){if(!ea(e)||xr(e)!=E)return!1;var t=Ge(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Le}var ia=bt?Zt(bt):function(e){return ea(e)&&xr(e)==S},oa=_t?Zt(_t):function(e){return ea(e)&&ho(e)==T};function sa(e){return"string"==typeof e||!Us(e)&&ea(e)&&xr(e)==M}function aa(e){return"symbol"==typeof e||ea(e)&&xr(e)==A}var ua=kt?Zt(kt):function(e){return ea(e)&&Xs(e.length)&&!!it[xr(e)]},ca=Ui(Rr),la=Ui((function(e,t){return e<=t}));function ha(e){if(!e)return[];if(Ks(e))return sa(e)?hn(e):Si(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=ho(e);return(t==k?on:t==T?un:Ba)(e)}function fa(e){return e?(e=ma(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function da(e){var t=fa(e),n=t%1;return t==t?n?t-n:t:0}function pa(e){return e?or(da(e),0,d):0}function ma(e){if("number"==typeof e)return e;if(aa(e))return f;if(Qs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wt(e);var n=pe.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):de.test(e)?f:+e}function ya(e){return Ti(e,Ca(e))}function ga(e){return null==e?"":si(e)}var va=Ai((function(e,t){if(_o(t)||Ks(t))Ti(t,Ia(t),e);else for(var n in t)De.call(t,n)&&Qn(e,n,t[n])})),wa=Ai((function(e,t){Ti(t,Ca(t),e)})),ba=Ai((function(e,t,n,r){Ti(t,Ca(t),e,r)})),_a=Ai((function(e,t,n,r){Ti(t,Ia(t),e,r)})),ka=Qi(ir),xa=qr((function(e,t){e=Ee(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&go(t[0],t[1],o)&&(r=1);++n1),t})),Ti(e,to(e),n),r&&(n=sr(n,7,Ji));for(var i=t.length;i--;)ui(n,t[i]);return n})),Ra=Qi((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Sa(e,n)}))}(e,t)}));function ja(e,t){if(null==e)return{};var n=Ct(to(e),(function(e){return[e]}));return t=oo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var La=qi(Ia),Pa=qi(Ca);function Ba(e){return null==e?[]:Yt(e,Ia(e))}var Fa=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?za(t):t)}));function za(e){return Za(ga(e).toLowerCase())}function Va(e){return(e=ga(e))&&e.replace(ve,en).replace(Je,"")}var Ua=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ga=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ka=Ni("toLowerCase"),Ha=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qa=Di((function(e,t,n){return e+(n?" ":"")+Za(t)})),Wa=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ni("toUpperCase");function Ya(e,t,n){return e=ga(e),(t=n?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ja=qr((function(e,t){try{return xt(e,i,t)}catch(e){return Zs(e)?e:new _e(e)}})),Xa=Qi((function(e,t){return Ot(t,(function(t){t=jo(t),rr(e,t,Ms(e[t],e))})),e}));function Qa(e){return function(){return e}}var eu=ji(),tu=ji(!0);function nu(e){return e}function ru(e){return Dr("function"==typeof e?e:sr(e,1))}var iu=qr((function(e,t){return function(n){return Mr(n,e,t)}})),ou=qr((function(e,t){return function(n){return Mr(e,n,t)}}));function su(e,t,n){var r=Ia(t),i=br(t,r);null!=n||Qs(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=br(t,Ia(t)));var o=!(Qs(n)&&"chain"in n&&!n.chain),s=Ys(e);return Ot(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Si(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function au(){}var uu=Fi(Ct),cu=Fi(Tt),lu=Fi(Rt);function hu(e){return vo(e)?Ut(jo(e)):function(e){return function(t){return _r(t,e)}}(e)}var fu=Vi(),du=Vi(!0);function pu(){return[]}function mu(){return!1}var yu,gu=Bi((function(e,t){return e+t}),0),vu=Ki("ceil"),wu=Bi((function(e,t){return e/t}),1),bu=Ki("floor"),_u=Bi((function(e,t){return e*t}),1),ku=Ki("round"),xu=Bi((function(e,t){return e-t}),0);return Pn.after=function(e,t){if("function"!=typeof t)throw new Te(o);return e=da(e),function(){if(--e<1)return t.apply(this,arguments)}},Pn.ary=Ss,Pn.assign=va,Pn.assignIn=wa,Pn.assignInWith=ba,Pn.assignWith=_a,Pn.at=ka,Pn.before=Ts,Pn.bind=Ms,Pn.bindAll=Xa,Pn.bindKey=As,Pn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Us(e)?e:[e]},Pn.chain=hs,Pn.chunk=function(e,t,n){t=(n?go(e,t,n):t===i)?1:yn(da(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,u=r(ft(o/t));so?0:o+n),(r=r===i||r>o?o:da(r))<0&&(r+=o),r=n>r?0:pa(r);n>>0)?(e=ga(e))&&("string"==typeof t||null!=t&&!ia(t))&&!(t=si(t))&&rn(e)?vi(hn(e),0,n):e.split(t,n):[]},Pn.spread=function(e,t){if("function"!=typeof e)throw new Te(o);return t=null==t?0:yn(da(t),0),qr((function(n){var r=n[t],i=vi(n,0,t);return r&&Nt(i,r),xt(e,this,i)}))},Pn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Pn.take=function(e,t,n){return e&&e.length?ei(e,0,(t=n||t===i?1:da(t))<0?0:t):[]},Pn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ei(e,(t=r-(t=n||t===i?1:da(t)))<0?0:t,r):[]},Pn.takeRightWhile=function(e,t){return e&&e.length?li(e,oo(t,3),!1,!0):[]},Pn.takeWhile=function(e,t){return e&&e.length?li(e,oo(t,3)):[]},Pn.tap=function(e,t){return t(e),e},Pn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Te(o);return Qs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Is(e,t,{leading:r,maxWait:t,trailing:i})},Pn.thru=fs,Pn.toArray=ha,Pn.toPairs=La,Pn.toPairsIn=Pa,Pn.toPath=function(e){return Us(e)?Ct(e,jo):aa(e)?[e]:Si(Ro(ga(e)))},Pn.toPlainObject=ya,Pn.transform=function(e,t,n){var r=Us(e),i=r||qs(e)||ua(e);if(t=oo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Qs(e)&&Ys(o)?Bn(Ge(e)):{}}return(i?Ot:vr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Pn.unary=function(e){return Ss(e,1)},Pn.union=es,Pn.unionBy=ts,Pn.unionWith=ns,Pn.uniq=function(e){return e&&e.length?ai(e):[]},Pn.uniqBy=function(e,t){return e&&e.length?ai(e,oo(t,2)):[]},Pn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ai(e,i,t):[]},Pn.unset=function(e,t){return null==e||ui(e,t)},Pn.unzip=rs,Pn.unzipWith=is,Pn.update=function(e,t,n){return null==e?e:ci(e,t,mi(n))},Pn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,mi(n),r)},Pn.values=Ba,Pn.valuesIn=function(e){return null==e?[]:Yt(e,Ca(e))},Pn.without=os,Pn.words=Ya,Pn.wrap=function(e,t){return js(mi(t),e)},Pn.xor=ss,Pn.xorBy=as,Pn.xorWith=us,Pn.zip=cs,Pn.zipObject=function(e,t){return di(e||[],t||[],Qn)},Pn.zipObjectDeep=function(e,t){return di(e||[],t||[],Yr)},Pn.zipWith=ls,Pn.entries=La,Pn.entriesIn=Pa,Pn.extend=wa,Pn.extendWith=ba,su(Pn,Pn),Pn.add=gu,Pn.attempt=Ja,Pn.camelCase=Fa,Pn.capitalize=za,Pn.ceil=vu,Pn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=ma(n))==n?n:0),t!==i&&(t=(t=ma(t))==t?t:0),or(ma(e),t,n)},Pn.clone=function(e){return sr(e,4)},Pn.cloneDeep=function(e){return sr(e,5)},Pn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Pn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Pn.conformsTo=function(e,t){return null==t||ar(e,t,Ia(t))},Pn.deburr=Va,Pn.defaultTo=function(e,t){return null==e||e!=e?t:e},Pn.divide=wu,Pn.endsWith=function(e,t,n){e=ga(e),t=si(t);var r=e.length,o=n=n===i?r:or(da(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Pn.eq=Bs,Pn.escape=function(e){return(e=ga(e))&&W.test(e)?e.replace(H,tn):e},Pn.escapeRegExp=function(e){return(e=ga(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Pn.every=function(e,t,n){var r=Us(e)?Tt:fr;return n&&go(e,t,n)&&(t=i),r(e,oo(t,3))},Pn.find=ms,Pn.findIndex=Vo,Pn.findKey=function(e,t){return Lt(e,oo(t,3),vr)},Pn.findLast=ys,Pn.findLastIndex=Uo,Pn.findLastKey=function(e,t){return Lt(e,oo(t,3),wr)},Pn.floor=bu,Pn.forEach=gs,Pn.forEachRight=vs,Pn.forIn=function(e,t){return null==e?e:yr(e,oo(t,3),Ca)},Pn.forInRight=function(e,t){return null==e?e:gr(e,oo(t,3),Ca)},Pn.forOwn=function(e,t){return e&&vr(e,oo(t,3))},Pn.forOwnRight=function(e,t){return e&&wr(e,oo(t,3))},Pn.get=Oa,Pn.gt=Fs,Pn.gte=zs,Pn.has=function(e,t){return null!=e&&fo(e,t,Or)},Pn.hasIn=Sa,Pn.head=Ko,Pn.identity=nu,Pn.includes=function(e,t,n,r){e=Ks(e)?e:Ba(e),n=n&&!r?da(n):0;var i=e.length;return n<0&&(n=yn(i+n,0)),sa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Bt(e,t,n)>-1},Pn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=yn(r+i,0)),Bt(e,t,i)},Pn.inRange=function(e,t,n){return t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n){return e>=gn(t,n)&&e=-9007199254740991&&e<=h},Pn.isSet=oa,Pn.isString=sa,Pn.isSymbol=aa,Pn.isTypedArray=ua,Pn.isUndefined=function(e){return e===i},Pn.isWeakMap=function(e){return ea(e)&&ho(e)==I},Pn.isWeakSet=function(e){return ea(e)&&"[object WeakSet]"==xr(e)},Pn.join=function(e,t){return null==e?"":Gt.call(e,t)},Pn.kebabCase=Ua,Pn.last=Zo,Pn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=da(n))<0?yn(r+o,0):gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Pt(e,zt,o,!0)},Pn.lowerCase=Ga,Pn.lowerFirst=Ka,Pn.lt=ca,Pn.lte=la,Pn.max=function(e){return e&&e.length?dr(e,nu,Er):i},Pn.maxBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Er):i},Pn.mean=function(e){return Vt(e,nu)},Pn.meanBy=function(e,t){return Vt(e,oo(t,2))},Pn.min=function(e){return e&&e.length?dr(e,nu,Rr):i},Pn.minBy=function(e,t){return e&&e.length?dr(e,oo(t,2),Rr):i},Pn.stubArray=pu,Pn.stubFalse=mu,Pn.stubObject=function(){return{}},Pn.stubString=function(){return""},Pn.stubTrue=function(){return!0},Pn.multiply=_u,Pn.nth=function(e,t){return e&&e.length?Fr(e,da(t)):i},Pn.noConflict=function(){return ht._===this&&(ht._=Pe),this},Pn.noop=au,Pn.now=Os,Pn.pad=function(e,t,n){e=ga(e);var r=(t=da(t))?ln(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return zi(dt(i),n)+e+zi(ft(i),n)},Pn.padEnd=function(e,t,n){e=ga(e);var r=(t=da(t))?ln(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=bn();return gn(e+o*(t-e+at("1e-"+((o+"").length-1))),t)}return Kr(e,t)},Pn.reduce=function(e,t,n){var r=Us(e)?Dt:Kt,i=arguments.length<3;return r(e,oo(t,4),n,i,lr)},Pn.reduceRight=function(e,t,n){var r=Us(e)?$t:Kt,i=arguments.length<3;return r(e,oo(t,4),n,i,hr)},Pn.repeat=function(e,t,n){return t=(n?go(e,t,n):t===i)?1:da(t),Hr(ga(e),t)},Pn.replace=function(){var e=arguments,t=ga(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pn.result=function(e,t,n){var r=-1,o=(t=yi(t,e)).length;for(o||(o=1,e=i);++rh)return[];var n=d,r=gn(e,d);t=oo(t),e-=d;for(var i=qt(r,t);++n=s)return e;var u=n-ln(r);if(u<1)return r;var c=a?vi(a,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(a&&(u+=c.length-u),ia(o)){if(e.slice(u).search(o)){var l,h=c;for(o.global||(o=Oe(o.source,ga(fe.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var f=l.index;c=c.slice(0,f===i?u:f)}}else if(e.indexOf(si(o),u)!=u){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+r},Pn.unescape=function(e){return(e=ga(e))&&q.test(e)?e.replace(K,dn):e},Pn.uniqueId=function(e){var t=++$e;return ga(e)+t},Pn.upperCase=Wa,Pn.upperFirst=Za,Pn.each=gs,Pn.eachRight=vs,Pn.first=Ko,su(Pn,(yu={},vr(Pn,(function(e,t){De.call(Pn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Pn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pn[e].placeholder=Pn})),Ot(["drop","take"],(function(e,t){Vn.prototype[e]=function(n){n=n===i?1:yn(da(n),0);var r=this.__filtered__&&!t?new Vn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(nu)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=qr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Mr(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter($s(oo(e)))},Vn.prototype.slice=function(e,t){e=da(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Vn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=da(t))<0?n.dropRight(-t):n.take(t-e)),n)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(d)},vr(Vn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pn[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Pn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof Vn,c=a[0],l=u||Us(t),h=function(e){var t=o.apply(Pn,Nt([e],a));return r&&f?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=s&&!f,m=u&&!d;if(!s&&l){t=m?t:new Vn(this);var y=e.apply(t,a);return y.__actions__.push({func:fs,args:[h],thisArg:i}),new zn(y,f)}return p&&m?e.apply(this,a):(y=this.thru(h),p?r?y.value()[0]:y.value():y)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Us(i)?i:[],e)}return this[n]((function(n){return t.apply(Us(n)?n:[],e)}))}})),vr(Vn.prototype,(function(e,t){var n=Pn[t];if(n){var r=n.name+"";De.call(An,r)||(An[r]=[]),An[r].push({name:t,func:n})}})),An[Li(i,2).name]=[{name:"wrapper",func:i}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Si(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Si(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Si(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Us(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Pn.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var r=Po(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Pn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:fs,args:[Qo],thisArg:i}),new zn(t,this.__chain__)}return this.thru(Qo)},Pn.prototype.toJSON=Pn.prototype.valueOf=Pn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},Pn.prototype.first=Pn.prototype.head,Ze&&(Pn.prototype[Ze]=function(){return this}),Pn}();ht._=pn,(r=function(){return pn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},9593:(e,t,n)=>{"use strict";const r=n(4411),i=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),p=()=>1,m=(e,t,n)=>{const r=e[f].get(t);if(r){const t=r.value;if(y(e,t)){if(v(e,r),!e[a])return}else n&&(e[d]&&(r.value.now=Date.now()),e[h].unshiftNode(r));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[u]&&n>e[u]},g=e=>{if(e[o]>e[i])for(let t=e[h].tail;e[o]>e[i]&&null!==t;){const n=t.prev;v(e,t),t=n}},v=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[f].delete(n.key),e[h].removeNode(t)}};class w{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const b=(e,t,n,r)=>{let i=n.value;y(e,i)&&(v(e,n),e[a]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||p;if(this[s]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[u]=e,g(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[s]&&(this[s]=e,this[o]=0,this[h].forEach((e=>{e.length=this[s](e.value,e.key),this[o]+=e.length}))),g(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let n=this[h].tail;null!==n;){const r=n.prev;b(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[h].head;null!==n;){const r=n.next;b(this,e,n,t),n=r}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach((e=>this[c](e.key,e.value))),this[f]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map((e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,t,n){if((n=n||this[u])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,a=this[s](t,e);if(this[f].has(e)){if(a>this[i])return v(this,this[f].get(e)),!1;const s=this[f].get(e).value;return this[c]&&(this[l]||this[c](e,s.value)),s.now=r,s.maxAge=n,s.value=t,this[o]+=a-s.length,s.length=a,this.get(e),g(this),!0}const d=new w(e,t,a,r,n);return d.length>this[i]?(this[c]&&this[c](e,t),!1):(this[o]+=d.length,this[h].unshift(d),this[f].set(e,this[h].head),g(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!y(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[h].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[f].forEach(((e,t)=>m(this,t,!1)))}}},8565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{}class r extends n{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class i extends n{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o extends n{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class s extends n{}class a extends n{constructor(e){super(`Invalid unit ${e}`)}}class u extends n{}class c extends n{constructor(){super("Zone is an abstract class")}}const l="numeric",h="short",f="long",d={year:l,month:l,day:l},p={year:l,month:h,day:l},m={year:l,month:h,day:l,weekday:h},y={year:l,month:f,day:l},g={year:l,month:f,day:l,weekday:f},v={hour:l,minute:l},w={hour:l,minute:l,second:l},b={hour:l,minute:l,second:l,timeZoneName:h},_={hour:l,minute:l,second:l,timeZoneName:f},k={hour:l,minute:l,hourCycle:"h23"},x={hour:l,minute:l,second:l,hourCycle:"h23"},E={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:h},O={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:f},S={year:l,month:l,day:l,hour:l,minute:l},T={year:l,month:l,day:l,hour:l,minute:l,second:l},M={year:l,month:h,day:l,hour:l,minute:l},A={year:l,month:h,day:l,hour:l,minute:l,second:l},I={year:l,month:h,day:l,weekday:h,hour:l,minute:l},C={year:l,month:f,day:l,hour:l,minute:l,timeZoneName:h},N={year:l,month:f,day:l,hour:l,minute:l,second:l,timeZoneName:h},D={year:l,month:f,day:l,weekday:f,hour:l,minute:l,timeZoneName:f},$={year:l,month:f,day:l,weekday:f,hour:l,minute:l,second:l,timeZoneName:f};class R{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(e,t){throw new c}formatOffset(e,t){throw new c}offset(e){throw new c}equals(e){throw new c}get isValid(){throw new c}}let j=null;class L extends R{static get instance(){return null===j&&(j=new L),j}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ae(e,t,n)}formatOffset(e,t){return De(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let P={};const B={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let F={};class z extends R{static create(e){return F[e]||(F[e]=new z(e)),F[e]}static resetCache(){F={},P={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ae(e,t,n,this.name)}formatOffset(e,t){return De(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,P[r]||(P[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),P[r]);var r;let[i,o,s,a,u,c,l]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e=0?f:1e3+f,(Se({year:i,month:o,day:s,hour:24===u?0:u,minute:c,second:l,millisecond:0})-h)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let V={},U={};function G(e,t={}){const n=JSON.stringify([e,t]);let r=U[n];return r||(r=new Intl.DateTimeFormat(e,t),U[n]=r),r}let K={},H={},q=null;function W(e,t,n,r,i){const o=e.listingMode(n);return"error"===o?null:"en"===o?r(t):i(t)}class Z{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:i,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=K[n];return r||(r=new Intl.NumberFormat(e,t),K[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ve(this.floor?Math.floor(e):ke(e,3),this.padTo)}}class Y{constructor(e,t,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&z.create(n).valid?(r=n,this.dt=e):(r="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=G(t,i)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class J{constructor(e,t,n){this.opts={style:"long",...n},!t&&pe()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let o=H[i];return o||(o=new Intl.RelativeTimeFormat(e,t),H[i]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),u=1===a,c=i[e],l=r?u?c[1]:c[2]||c[1]:u?i[e][0]:e;return s?`${a} ${l} ago`:`in ${a} ${l}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class X{static fromOpts(e){return X.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const i=e||le.defaultLocale,o=i||(r?"en-US":q||(q=(new Intl.DateTimeFormat).resolvedOptions().locale,q)),s=t||le.defaultNumberingSystem,a=n||le.defaultOutputCalendar;return new X(o,s,a,i)}static resetCache(){q=null,U={},K={},H={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return X.create(e,t,n)}constructor(e,t,n,r){const[i,o,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,r;try{t=G(e).resolvedOptions(),r=e}catch(i){const o=e.substring(0,n);t=G(o).resolvedOptions(),r=o}const{numberingSystem:i,calendar:o}=t;return[r,i,o]}}(e);this.locale=i,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?X.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return W(this,e,n,Pe,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=Yn.utc(2016,n,1);t.push(e(r))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[r][e]}))}weekdays(e,t=!1,n=!0){return W(this,e,n,Ve,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=Yn.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(e=!0){return W(this,void 0,e,(()=>Ue),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Yn.utc(2016,11,13,9),Yn.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return W(this,e,t,qe,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Yn.utc(-40,1,1),Yn.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new Z(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Y(e,this.intl,t)}relFormatter(e={}){return new J(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=V[n];return r||(r=new Intl.ListFormat(e,t),V[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Q=null;class ee extends R{static get utcInstance(){return null===Q&&(Q=new ee(0)),Q}static instance(e){return 0===e?ee.utcInstance:new ee(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ee(Ie(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${De(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${De(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return De(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class te extends R{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ne(e,t){if(he(e)||null===e)return t;if(e instanceof R)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?L.instance:"utc"===n||"gmt"===n?ee.utcInstance:ee.parseSpecifier(n)||z.create(e)}return fe(e)?ee.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new te(e)}let re,ie=()=>Date.now(),oe="system",se=null,ae=null,ue=null,ce=60;class le{static get now(){return ie}static set now(e){ie=e}static set defaultZone(e){oe=e}static get defaultZone(){return ne(oe,L.instance)}static get defaultLocale(){return se}static set defaultLocale(e){se=e}static get defaultNumberingSystem(){return ae}static set defaultNumberingSystem(e){ae=e}static get defaultOutputCalendar(){return ue}static set defaultOutputCalendar(e){ue=e}static get twoDigitCutoffYear(){return ce}static set twoDigitCutoffYear(e){ce=e%100}static get throwOnInvalid(){return re}static set throwOnInvalid(e){re=e}static resetCaches(){X.resetCache(),z.resetCache()}}function he(e){return void 0===e}function fe(e){return"number"==typeof e}function de(e){return"number"==typeof e&&e%1==0}function pe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function me(e,t,n){if(0!==e.length)return e.reduce(((e,r)=>{const i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function ye(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ge(e,t,n){return de(e)&&e>=t&&e<=n}function ve(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function we(e){return he(e)||null===e||""===e?void 0:parseInt(e,10)}function be(e){return he(e)||null===e||""===e?void 0:parseFloat(e)}function _e(e){if(!he(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ke(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function xe(e){return e%4==0&&(e%100!=0||e%400==0)}function Ee(e){return xe(e)?366:365}function Oe(e,t){const n=(r=t-1)-12*Math.floor(r/12)+1;var r;return 2===n?xe(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Se(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Te(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function Me(e){return e>99?e:e>le.twoDigitCutoffYear?1900+e:2e3+e}function Ae(e,t,n,r=null){const i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const s={timeZoneName:t,...o},a=new Intl.DateTimeFormat(n,s).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function Ie(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Ce(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function Ne(e,t){const n={};for(const r in e)if(ye(e,r)){const i=e[r];if(null==i)continue;n[t(r)]=Ce(i)}return n}function De(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${ve(n,2)}:${ve(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${ve(n,2)}${ve(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function $e(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,n)=>(t[n]=e[n],t)),{})}(e)}const Re=["January","February","March","April","May","June","July","August","September","October","November","December"],je=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Le=["J","F","M","A","M","J","J","A","S","O","N","D"];function Pe(e){switch(e){case"narrow":return[...Le];case"short":return[...je];case"long":return[...Re];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ze=["M","T","W","T","F","S","S"];function Ve(e){switch(e){case"narrow":return[...ze];case"short":return[...Fe];case"long":return[...Be];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ue=["AM","PM"],Ge=["Before Christ","Anno Domini"],Ke=["BC","AD"],He=["B","A"];function qe(e){switch(e){case"narrow":return[...He];case"short":return[...Ke];case"long":return[...Ge];default:return null}}function We(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Ze={D:d,DD:p,DDD:y,DDDD:g,t:v,tt:w,ttt:b,tttt:_,T:k,TT:x,TTT:E,TTTT:O,f:S,ff:M,fff:C,ffff:D,F:T,FF:A,FFF:N,FFFF:$};class Ye{static create(e,t={}){return new Ye(e,t)}static parseFormat(e){let t=null,n="",r=!1;const i=[];for(let o=0;o0&&i.push({literal:r||/^\s+$/.test(n),val:n}),t=null,n="",r=!r):r||s===t?n+=s:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=s,t=s)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Ze[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}formatInterval(e,t={}){return this.loc.dtFormatter(e.start,{...this.opts,...t}).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return ve(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",s=(t,r)=>n?function(e,t){return Pe(t)[e.month-1]}(e,t):i(r?{month:t}:{month:t,day:"numeric"},"month"),a=(t,r)=>n?function(e,t){return Ve(t)[e.weekday-1]}(e,t):i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),u=t=>{const n=Ye.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return qe(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return We(Ye.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return n?function(e){return Ue[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return a("short",!0);case"cccc":return a("long",!0);case"ccccc":return a("narrow",!0);case"EEE":return a("short",!1);case"EEEE":return a("long",!1);case"EEEEE":return a("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Ye.parseFormat(t),i=r.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return We(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...i.map(n).filter((e=>e)))))}}class Je{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Xe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Qe(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function et(...e){return t=>e.reduce((([e,n,r],i)=>{const[o,s,a]=i(t,r);return[{...e,...o},s||n,a]}),[{},null,1]).slice(0,2)}function tt(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function nt(...e){return(t,n)=>{const r={};let i;for(i=0;ivoid 0!==e&&(t||e&&l)?-e:e;return[{years:f(be(n)),months:f(be(r)),weeks:f(be(i)),days:f(be(o)),hours:f(be(s)),minutes:f(be(a)),seconds:f(be(u),"-0"===u),milliseconds:f(_e(c),h)}]}const vt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wt(e,t,n,r,i,o,s){const a={year:2===t.length?Me(we(t)):we(t),month:je.indexOf(n)+1,day:we(r),hour:we(i),minute:we(o)};return s&&(a.second=we(s)),e&&(a.weekday=e.length>3?Be.indexOf(e)+1:Fe.indexOf(e)+1),a}const bt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function _t(e){const[,t,n,r,i,o,s,a,u,c,l,h]=e,f=wt(t,i,r,n,o,s,a);let d;return d=u?vt[u]:c?0:Ie(l,h),[f,new ee(d)]}const kt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,xt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Et=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ot(e){const[,t,n,r,i,o,s,a]=e;return[wt(t,i,r,n,o,s,a),ee.utcInstance]}function St(e){const[,t,n,r,i,o,s,a]=e;return[wt(t,a,n,r,i,o,s),ee.utcInstance]}const Tt=Qe(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,st),Mt=Qe(/(\d{4})-?W(\d\d)(?:-?(\d))?/,st),At=Qe(/(\d{4})-?(\d{3})/,st),It=Qe(ot),Ct=et((function(e,t){return[{year:ht(e,t),month:ht(e,t+1,1),day:ht(e,t+2,1)},null,t+3]}),ft,dt,pt),Nt=et(at,ft,dt,pt),Dt=et(ut,ft,dt,pt),$t=et(ft,dt,pt),Rt=et(ft),jt=Qe(/(\d{4})-(\d\d)-(\d\d)/,lt),Lt=Qe(ct),Pt=et(ft,dt,pt),Bt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Ft={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Bt},zt={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Bt},Vt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Ut=Vt.slice(0).reverse();function Gt(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Ht(r)}function Kt(e,t,n,r,i){const o=e[i][n],s=t[n]/o,a=Math.sign(s)!==Math.sign(r[i])&&0!==r[i]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);r[i]+=a,t[n]-=a*o}class Ht{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?zt:Ft;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||X.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Ht.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Ht({values:Ne(e,Ht.normalizeUnit),loc:X.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(fe(e))return Ht.fromMillis(e);if(Ht.isDuration(e))return e;if("object"==typeof e)return Ht.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return tt(e,[yt,gt])}(e);return n?Ht.fromObject(n,t):Ht.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return tt(e,[mt,Rt])}(e);return n?Ht.fromObject(n,t):Ht.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");const n=e instanceof Je?e:new Je(e,t);if(le.throwOnInvalid)throw new o(n);return new Ht({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new a(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Ye.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Vt.map((t=>{const n=this.values[t];return he(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ke(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Ht.fromDurationLike(e),n={};for(const e of Vt)(ye(t.values,e)||ye(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Gt(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Ht.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ce(e(this.values[n],n));return Gt(this,{values:t},!0)}get(e){return this[Ht.normalizeUnit(e)]}set(e){return this.isValid?Gt(this,{values:{...this.values,...Ne(e,Ht.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Gt(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){Ut.reduce(((n,r)=>he(t[r])?n:(n&&Kt(e,t,n,t,r),r)),null)}(this.matrix,e),Gt(this,{values:e},!0)}rescale(){return this.isValid?Gt(this,{values:function(e){const t={};for(const[n,r]of Object.entries(e))0!==r&&(t[n]=r);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Ht.normalizeUnit(e)));const t={},n={},r=this.toObject();let i;for(const o of Vt)if(e.indexOf(o)>=0){i=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;fe(r[o])&&(e+=r[o]);const s=Math.trunc(e);t[o]=s,n[o]=(1e3*e-1e3*s)/1e3;for(const e in r)Vt.indexOf(e)>Vt.indexOf(o)&&Kt(this.matrix,r,e,t,o)}else fe(r[o])&&(n[o]=r[o]);for(const e in n)0!==n[e]&&(t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]);return Gt(this,{values:t},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Gt(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of Vt)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const qt="Invalid Interval";class Wt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");const n=e instanceof Je?e:new Je(e,t);if(le.throwOnInvalid)throw new i(n);return new Wt({invalid:n})}static fromDateTimes(e,t){const n=Jn(e),r=Jn(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?Wt.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Jn).filter((e=>this.contains(e))).sort(),n=[];let{s:r}=this,i=0;for(;r+this.e?this.e:e;n.push(Wt.fromDateTimes(r,o)),r=o,i+=1}return n}splitBy(e){const t=Ht.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,i=1;const o=[];for(;re*i)));n=+e>+this.e?this.e:e,o.push(Wt.fromDateTimes(r,n)),r=n,i+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:Wt.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Wt.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...i).sort(((e,t)=>e.time-t.time));for(const e of o)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&r.push(Wt.fromDateTimes(t,e.time)),t=null);return Wt.merge(r)}difference(...e){return Wt.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:qt}toLocaleString(e=d,t={}){return this.isValid?Ye.create(this.s.loc.clone(t),e).formatInterval(this):qt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:qt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:qt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:qt}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:qt}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Ht.invalid(this.invalidReason)}mapEndpoints(e){return Wt.fromDateTimes(e(this.s),e(this.e))}}class Zt{static hasDST(e=le.defaultZone){const t=Yn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return z.isValidZone(e)}static normalizeZone(e){return ne(e,le.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||X.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||X.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||X.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||X.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return X.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return X.create(t,null,"gregory").eras(e)}static features(){return{relative:pe()}}}function Yt(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Ht.fromMillis(r).as("days"))}const Jt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Xt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Qt=Jt.hanidec.replace(/[\[|\]]/g,"").split("");function en({numberingSystem:e},t=""){return new RegExp(`${Jt[e||"latn"]}${t}`)}function tn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const nn=`[ ${String.fromCharCode(160)}]`,rn=new RegExp(nn,"g");function on(e){return e.replace(/\./g,"\\.?").replace(rn,nn)}function sn(e){return e.replace(/\./g,"").replace(rn," ").toLowerCase()}function an(e,t){return null===e?null:{regex:RegExp(e.map(on).join("|")),deser:([n])=>e.findIndex((e=>sn(n)===sn(e)))+t}}function un(e,t){return{regex:e,deser:([,e,t])=>Ie(e,t),groups:t}}function cn(e){return{regex:e,deser:([e])=>e}}const ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let hn=null;function fn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=pn(Ye.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function dn(e,t,n){const r=fn(Ye.parseFormat(n),e),i=r.map((t=>function(e,t){const n=en(t),r=en(t,"{2}"),i=en(t,"{3}"),o=en(t,"{4}"),s=en(t,"{6}"),a=en(t,"{1,2}"),u=en(t,"{1,3}"),c=en(t,"{1,6}"),l=en(t,"{1,9}"),h=en(t,"{2,4}"),f=en(t,"{4,6}"),d=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return d(p);switch(p.val){case"G":return an(t.eras("short",!1),0);case"GG":return an(t.eras("long",!1),0);case"y":return tn(c);case"yy":case"kk":return tn(h,Me);case"yyyy":case"kkkk":return tn(o);case"yyyyy":return tn(f);case"yyyyyy":return tn(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return tn(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return tn(r);case"MMM":return an(t.months("short",!0,!1),1);case"MMMM":return an(t.months("long",!0,!1),1);case"LLL":return an(t.months("short",!1,!1),1);case"LLLL":return an(t.months("long",!1,!1),1);case"o":case"S":return tn(u);case"ooo":case"SSS":return tn(i);case"u":return cn(l);case"uu":return cn(a);case"uuu":case"E":case"c":return tn(n);case"a":return an(t.meridiems(),0);case"EEE":return an(t.weekdays("short",!1,!1),1);case"EEEE":return an(t.weekdays("long",!1,!1),1);case"ccc":return an(t.weekdays("short",!0,!1),1);case"cccc":return an(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return un(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return un(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return cn(/[a-z_+-/]{1,256}?/i);case" ":return cn(/[^\S\n\r]/);default:return d(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),o=i.find((e=>e.invalidReason));if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(i),o=RegExp(e,"i"),[a,u]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n)if(ye(n,i)){const o=n[i],s=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(r.slice(t,t+s))),t+=s}return[r,e]}return[r,{}]}(t,o,n),[c,l,h]=u?function(e){let t,n=null;return he(e.z)||(n=z.create(e.z)),he(e.Z)||(n||(n=new ee(e.Z)),t=e.Z),he(e.q)||(e.M=3*(e.q-1)+1),he(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),he(e.u)||(e.S=_e(e.u)),[Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t}),{}),n,t]}(u):[null,null,void 0];if(ye(u,"a")&&ye(u,"H"))throw new s("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:o,rawMatches:a,matches:u,result:c,zone:l,specificOffset:h}}}function pn(e,t){return e?Ye.create(t,e).formatDateTimeParts((hn||(hn=Yn.fromMillis(1555555555555)),hn)).map((t=>function(e,t){const{type:n,value:r}=e;if("literal"===n){const e=/^\s+$/.test(r);return{literal:!e,val:e?" ":r}}const i=t[n];let o=ln[n];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(t,e))):null}const mn=[0,31,59,90,120,151,181,212,243,273,304,334],yn=[0,31,60,91,121,152,182,213,244,274,305,335];function gn(e,t){return new Je("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function vn(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function wn(e,t,n){return n+(xe(e)?yn:mn)[t-1]}function bn(e,t){const n=xe(e)?yn:mn,r=n.findIndex((e=>eTe(t)?(s=t+1,a=1):s=t,{weekYear:s,weekNumber:a,weekday:o,...$e(e)}}function kn(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=vn(t,1,4),o=Ee(t);let s,a=7*n+r-i-3;a<1?(s=t-1,a+=Ee(s)):a>o?(s=t+1,a-=Ee(t)):s=t;const{month:u,day:c}=bn(s,a);return{year:s,month:u,day:c,...$e(e)}}function xn(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:wn(t,n,r),...$e(e)}}function En(e){const{year:t,ordinal:n}=e,{month:r,day:i}=bn(t,n);return{year:t,month:r,day:i,...$e(e)}}function On(e){const t=de(e.year),n=ge(e.month,1,12),r=ge(e.day,1,Oe(e.year,e.month));return t?n?!r&&gn("day",e.day):gn("month",e.month):gn("year",e.year)}function Sn(e){const{hour:t,minute:n,second:r,millisecond:i}=e,o=ge(t,0,23)||24===t&&0===n&&0===r&&0===i,s=ge(n,0,59),a=ge(r,0,59),u=ge(i,0,999);return o?s?a?!u&&gn("millisecond",i):gn("second",r):gn("minute",n):gn("hour",t)}const Tn="Invalid DateTime",Mn=864e13;function An(e){return new Je("unsupported zone",`the zone "${e.name}" is not supported`)}function In(e){return null===e.weekData&&(e.weekData=_n(e.c)),e.weekData}function Cn(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Yn({...n,...t,old:n})}function Nn(e,t,n){let r=e-60*t*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;const o=n.offset(r);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Dn(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function $n(e,t,n){return Nn(Se(e),t,n)}function Rn(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:r,month:i,day:Math.min(e.c.day,Oe(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},s=Ht.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Se(o);let[u,c]=Nn(a,n,e.zone);return 0!==s&&(u+=s,c=e.zone.offset(u)),{ts:u,o:c}}function jn(e,t,n,r,i,o){const{setZone:s,zone:a}=n;if(e&&0!==Object.keys(e).length||t){const r=t||a,i=Yn.fromObject(e,{...n,zone:r,specificOffset:o});return s?i:i.setZone(a)}return Yn.invalid(new Je("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Ln(e,t,n=!0){return e.isValid?Ye.create(X.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Pn(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=ve(e.c.year,n?6:4),t?(r+="-",r+=ve(e.c.month),r+="-",r+=ve(e.c.day)):(r+=ve(e.c.month),r+=ve(e.c.day)),r}function Bn(e,t,n,r,i,o){let s=ve(e.c.hour);return t?(s+=":",s+=ve(e.c.minute),0===e.c.second&&n||(s+=":")):s+=ve(e.c.minute),0===e.c.second&&n||(s+=ve(e.c.second),0===e.c.millisecond&&r||(s+=".",s+=ve(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!o?s+="Z":e.o<0?(s+="-",s+=ve(Math.trunc(-e.o/60)),s+=":",s+=ve(Math.trunc(-e.o%60))):(s+="+",s+=ve(Math.trunc(e.o/60)),s+=":",s+=ve(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}const Fn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},zn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Un=["year","month","day","hour","minute","second","millisecond"],Gn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Kn=["year","ordinal","hour","minute","second","millisecond"];function Hn(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new a(e);return t}function qn(e,t){const n=ne(t.zone,le.defaultZone),r=X.fromObject(t),i=le.now();let o,s;if(he(e.year))o=i;else{for(const t of Un)he(e[t])&&(e[t]=Fn[t]);const t=On(e)||Sn(e);if(t)return Yn.invalid(t);const r=n.offset(i);[o,s]=$n(e,r,n)}return new Yn({ts:o,zone:n,loc:r,o:s})}function Wn(e,t,n){const r=!!he(n.round)||n.round,i=(e,i)=>(e=ke(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)),o=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(o(n.unit),n.unit);for(const e of n.units){const t=o(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function Zn(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class Yn{constructor(e){const t=e.zone||le.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Je("invalid input"):null)||(t.isValid?null:An(t));this.ts=he(e.ts)?le.now():e.ts;let r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=Dn(this.ts,e),n=Number.isNaN(r.year)?new Je("invalid input"):null,r=n?null:r,i=n?null:e}this._zone=t,this.loc=e.loc||X.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new Yn({})}static local(){const[e,t]=Zn(arguments),[n,r,i,o,s,a,u]=t;return qn({year:n,month:r,day:i,hour:o,minute:s,second:a,millisecond:u},e)}static utc(){const[e,t]=Zn(arguments),[n,r,i,o,s,a,u]=t;return e.zone=ee.utcInstance,qn({year:n,month:r,day:i,hour:o,minute:s,second:a,millisecond:u},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return Yn.invalid("invalid input");const i=ne(t.zone,le.defaultZone);return i.isValid?new Yn({ts:n,zone:i,loc:X.fromObject(t)}):Yn.invalid(An(i))}static fromMillis(e,t={}){if(fe(e))return e<-Mn||e>Mn?Yn.invalid("Timestamp out of range"):new Yn({ts:e,zone:ne(t.zone,le.defaultZone),loc:X.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(fe(e))return new Yn({ts:1e3*e,zone:ne(t.zone,le.defaultZone),loc:X.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=ne(t.zone,le.defaultZone);if(!n.isValid)return Yn.invalid(An(n));const r=le.now(),i=he(t.specificOffset)?n.offset(r):t.specificOffset,o=Ne(e,Hn),a=!he(o.ordinal),u=!he(o.year),c=!he(o.month)||!he(o.day),l=u||c,h=o.weekYear||o.weekNumber,f=X.fromObject(t);if((l||a)&&h)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new s("Can't mix ordinal dates with month/day");const d=h||o.weekday&&!l;let p,m,y=Dn(r,i);d?(p=Gn,m=zn,y=_n(y)):a?(p=Kn,m=Vn,y=xn(y)):(p=Un,m=Fn);let g=!1;for(const e of p)he(o[e])?o[e]=g?m[e]:y[e]:g=!0;const v=d?function(e){const t=de(e.weekYear),n=ge(e.weekNumber,1,Te(e.weekYear)),r=ge(e.weekday,1,7);return t?n?!r&&gn("weekday",e.weekday):gn("week",e.week):gn("weekYear",e.weekYear)}(o):a?function(e){const t=de(e.year),n=ge(e.ordinal,1,Ee(e.year));return t?!n&&gn("ordinal",e.ordinal):gn("year",e.year)}(o):On(o),w=v||Sn(o);if(w)return Yn.invalid(w);const b=d?kn(o):a?En(o):o,[_,k]=$n(b,i,n),x=new Yn({ts:_,zone:n,o:k,loc:f});return o.weekday&&l&&e.weekday!==x.weekday?Yn.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${x.toISO()}`):x}static fromISO(e,t={}){const[n,r]=function(e){return tt(e,[Tt,Ct],[Mt,Nt],[At,Dt],[It,$t])}(e);return jn(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return tt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[bt,_t])}(e);return jn(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return tt(e,[kt,Ot],[xt,Ot],[Et,St])}(e);return jn(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(he(e)||he(t))throw new u("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=n,o=X.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[s,a,c,l]=function(e,t,n){const{result:r,zone:i,specificOffset:o,invalidReason:s}=dn(e,t,n);return[r,i,o,s]}(o,e,t);return l?Yn.invalid(l):jn(s,a,n,`format ${t}`,e,c)}static fromString(e,t,n={}){return Yn.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return tt(e,[jt,Ct],[Lt,Pt])}(e);return jn(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");const n=e instanceof Je?e:new Je(e,t);if(le.throwOnInvalid)throw new r(n);return new Yn({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=pn(e,X.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return fn(Ye.parseFormat(e),X.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?In(this).weekYear:NaN}get weekNumber(){return this.isValid?In(this).weekNumber:NaN}get weekday(){return this.isValid?In(this).weekday:NaN}get ordinal(){return this.isValid?xn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Zt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Zt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Zt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Zt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return xe(this.year)}get daysInMonth(){return Oe(this.year,this.month)}get daysInYear(){return this.isValid?Ee(this.year):NaN}get weeksInWeekYear(){return this.isValid?Te(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=Ye.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(ee.instance(e),t)}toLocal(){return this.setZone(le.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=ne(e,le.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=$n(n,t,e)}return Cn(this,{ts:r,zone:e})}return Yn.invalid(An(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Cn(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Ne(e,Hn),n=!he(t.weekYear)||!he(t.weekNumber)||!he(t.weekday),r=!he(t.ordinal),i=!he(t.year),o=!he(t.month)||!he(t.day),a=i||o,u=t.weekYear||t.weekNumber;if((a||r)&&u)throw new s("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&r)throw new s("Can't mix ordinal dates with month/day");let c;n?c=kn({..._n(this.c),...t}):he(t.ordinal)?(c={...this.toObject(),...t},he(t.day)&&(c.day=Math.min(Oe(c.year,c.month),c.day))):c=En({...xn(this.c),...t});const[l,h]=$n(c,this.o,this.zone);return Cn(this,{ts:l,o:h})}plus(e){return this.isValid?Cn(this,Rn(this,Ht.fromDurationLike(e))):this}minus(e){return this.isValid?Cn(this,Rn(this,Ht.fromDurationLike(e).negate())):this}startOf(e){if(!this.isValid)return this;const t={},n=Ht.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?Ye.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Tn}toLocaleString(e=d,t={}){return this.isValid?Ye.create(this.loc.clone(t),e).formatDateTime(this):Tn}toLocaleParts(e={}){return this.isValid?Ye.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const o="extended"===e;let s=Pn(this,o);return s+="T",s+=Bn(this,o,t,n,r,i),s}toISODate({format:e="extended"}={}){return this.isValid?Pn(this,"extended"===e):null}toISOWeekDate(){return Ln(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+Bn(this,"extended"===o,t,e,n,i):null}toRFC2822(){return Ln(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ln(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Pn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Ln(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Tn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Ht.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(a=t,Array.isArray(a)?a:[a]).map(Ht.normalizeUnit),o=e.valueOf()>this.valueOf(),s=function(e,t,n,r){let[i,o,s,a]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Yt(e,t);return(n-n%7)/7}],["days",Yt]],i={},o=e;let s,a;for(const[u,c]of r)n.indexOf(u)>=0&&(s=u,i[u]=c(e,t),a=o.plus(i),a>t?(i[u]--,e=o.plus(i)):e=a);return[e,i,a,s]}(e,t,n);const u=t-i,c=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===c.length&&(s0?Ht.fromMillis(u,r).shiftTo(...c).plus(l):l}(o?this:e,o?e:this,i,r);var a;return o?s.negate():s}diffNow(e="milliseconds",t={}){return this.diff(Yn.now(),e,t)}until(e){return this.isValid?Wt.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Yn.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(Yn.isDateTime))throw new u("max requires all arguments be DateTimes");return me(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n;return dn(X.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Yn.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return d}static get DATE_MED(){return p}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return y}static get DATE_HUGE(){return g}static get TIME_SIMPLE(){return v}static get TIME_WITH_SECONDS(){return w}static get TIME_WITH_SHORT_OFFSET(){return b}static get TIME_WITH_LONG_OFFSET(){return _}static get TIME_24_SIMPLE(){return k}static get TIME_24_WITH_SECONDS(){return x}static get TIME_24_WITH_SHORT_OFFSET(){return E}static get TIME_24_WITH_LONG_OFFSET(){return O}static get DATETIME_SHORT(){return S}static get DATETIME_SHORT_WITH_SECONDS(){return T}static get DATETIME_MED(){return M}static get DATETIME_MED_WITH_SECONDS(){return A}static get DATETIME_MED_WITH_WEEKDAY(){return I}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return N}static get DATETIME_HUGE(){return D}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function Jn(e){if(Yn.isDateTime(e))return e;if(e&&e.valueOf&&fe(e.valueOf()))return Yn.fromJSDate(e);if(e&&"object"==typeof e)return Yn.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=Yn,t.Duration=Ht,t.FixedOffsetZone=ee,t.IANAZone=z,t.Info=Zt,t.Interval=Wt,t.InvalidZone=te,t.Settings=le,t.SystemZone=L,t.VERSION="3.3.0",t.Zone=R},2257:(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new h(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new h(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=u(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=u(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||o&&s||a||c}}e.exports=i;const o=n(2893),{re:s,t:a}=n(5765),u=n(7539),c=n(4225),l=n(6376),h=n(6902)},6902:(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(o,T(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(c[l.COMPARATORTRIM],h),a("comparator trim",e);let u=(e=(e=(e=e.replace(c[l.TILDETRIM],f)).replace(c[l.CARETTRIM],d)).split(/\s+/).join(" ")).split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>S(e,this.options)));r&&(u=u.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(c[l.COMPARATORLOOSE]))))),a("range list",u);const m=new Map,y=u.map((e=>new s(e,this.options)));for(const e of y){if(p(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const v=[...m.values()];return i.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>y(n,t)&&e.set.some((e=>y(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,m=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},g=(e,t)=>(a("comp",e,t),e=_(e,t),a("caret",e),e=w(e,t),a("tildes",e),e=x(e,t),a("xrange",e),e=O(e,t),a("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{const n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},_=(e,t)=>e.trim().split(/\s+/).map((e=>k(e,t))).join(" "),k=(e,t)=>{a("caret",e,t);const n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let u;return a("caret",e,t,n,i,o,s),v(n)?u="":v(i)?u=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?u="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),u="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),u="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",u),u}))},x=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,((n,r,i,o,s,u)=>{a("xRange",e,n,r,i,o,s,u);const c=v(i),l=c||v(o),h=l||v(s),f=h;return"="===r&&f&&(r=""),u=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(l&&(o=0),s=0,">"===r?(r=">=",l?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),"<"===r&&(u="-0"),n=`${r+i}.${o}.${s}${u}`):l?n=`>=${i}.0.0${u} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},O=(e,t)=>(a("replaceStars",e,t),e.trim().replace(c[l.STAR],"")),S=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,r,i,o,s,a,u,c,l,h,f,d)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`} ${u=v(c)?"":v(l)?`<${+c+1}.0.0-0`:v(h)?`<${c}.${+l+1}.0-0`:f?`<=${c}.${l}.${h}-${f}`:e?`<${c}.${l}.${+h+1}-0`:`<=${u}`}`.trim(),M=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},6376:(e,t,n)=>{const r=n(4225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(3295),{re:s,t:a}=n(5765),u=n(2893),{compareIdentifiers:c}=n(6742);class l{constructor(e,t){if(t=u(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?s[a.LOOSE]:s[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},3507:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},7539:(e,t,n)=>{const r=n(8718),i=n(1194),o=n(1312),s=n(5903),a=n(1544),u=n(2056);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return s(e,n,c);case"<":return a(e,n,c);case"<=":return u(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},9038:(e,t,n)=>{const r=n(6376),i=n(3959),{re:o,t:s}=n(5765);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else n=e.match(o[s.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},8880:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},7880:(e,t,n)=>{const r=n(6269);e.exports=(e,t)=>r(e,t,!0)},6269:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},2378:(e,t,n)=>{const r=n(3959),i=n(8718);e.exports=(e,t)=>{if(i(e,t))return null;{const n=r(e),i=r(t),o=n.prerelease.length||i.prerelease.length,s=o?"pre":"",a=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==i[e])return s+e;return a}}},8718:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>0===r(e,t,n)},1312:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)>0},5903:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)>=0},253:(e,t,n)=>{const r=n(6376);e.exports=(e,t,n,i)=>{"string"==typeof n&&(i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i).version}catch(e){return null}}},1544:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)<0},2056:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(e,t,n)<=0},8679:(e,t,n)=>{const r=n(6376);e.exports=(e,t)=>new r(e,t).major},7789:(e,t,n)=>{const r=n(6376);e.exports=(e,t)=>new r(e,t).minor},1194:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>0!==r(e,t,n)},3959:(e,t,n)=>{const{MAX_LENGTH:r}=n(3295),{re:i,t:o}=n(5765),s=n(6376),a=n(2893);e.exports=(e,t)=>{if(t=a(t),e instanceof s)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new s(e,t)}catch(e){return null}}},2358:(e,t,n)=>{const r=n(6376);e.exports=(e,t)=>new r(e,t).patch},7559:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},9795:(e,t,n)=>{const r=n(6269);e.exports=(e,t,n)=>r(t,e,n)},3657:(e,t,n)=>{const r=n(8880);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},5712:(e,t,n)=>{const r=n(6902);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},1100:(e,t,n)=>{const r=n(8880);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},6397:(e,t,n)=>{const r=n(3959);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},1249:(e,t,n)=>{const r=n(5765),i=n(3295),o=n(6376),s=n(6742),a=n(3959),u=n(6397),c=n(3507),l=n(253),h=n(2378),f=n(8679),d=n(7789),p=n(2358),m=n(7559),y=n(6269),g=n(9795),v=n(7880),w=n(8880),b=n(1100),_=n(3657),k=n(1312),x=n(1544),E=n(8718),O=n(1194),S=n(5903),T=n(2056),M=n(7539),A=n(9038),I=n(2257),C=n(6902),N=n(5712),D=n(1042),$=n(5775),R=n(1657),j=n(5316),L=n(9042),P=n(6826),B=n(7606),F=n(32),z=n(2937),V=n(7908),U=n(799);e.exports={parse:a,valid:u,clean:c,inc:l,diff:h,major:f,minor:d,patch:p,prerelease:m,compare:y,rcompare:g,compareLoose:v,compareBuild:w,sort:b,rsort:_,gt:k,lt:x,eq:E,neq:O,gte:S,lte:T,cmp:M,coerce:A,Comparator:I,Range:C,satisfies:N,toComparators:D,maxSatisfying:$,minSatisfying:R,minVersion:j,validRange:L,outside:P,gtr:B,ltr:F,intersects:z,simplifyRange:V,subset:U,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},3295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},4225:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},6742:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:en(t,e)}},2893:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},5765:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=n(3295),i=n(4225),o=(t=e.exports={}).re=[],s=t.src=[],a=t.t={};let u=0;const c=(e,t,n)=>{const r=u++;i(e,r,t),a[e]=r,s[r]=t,o[r]=new RegExp(t,n?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})\\.(${s[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})\\.(${s[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[a.NUMERICIDENTIFIER]}|${s[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[a.NUMERICIDENTIFIERLOOSE]}|${s[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[a.PRERELEASEIDENTIFIER]}(?:\\.${s[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[a.BUILDIDENTIFIER]}(?:\\.${s[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[a.MAINVERSION]}${s[a.PRERELEASE]}?${s[a.BUILD]}?`),c("FULL",`^${s[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[a.MAINVERSIONLOOSE]}${s[a.PRERELEASELOOSE]}?${s[a.BUILD]}?`),c("LOOSE",`^${s[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${s[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${s[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:\\.(${s[a.XRANGEIDENTIFIER]})(?:${s[a.PRERELEASE]})?${s[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[a.XRANGEIDENTIFIERLOOSE]})(?:${s[a.PRERELEASELOOSE]})?${s[a.BUILD]}?)?)?`),c("XRANGE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[a.GTLT]}\\s*${s[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[a.LONETILDE]}${s[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[a.LONECARET]}${s[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[a.LONECARET]}${s[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[a.GTLT]}\\s*(${s[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[a.GTLT]}\\s*(${s[a.LOOSEPLAIN]}|${s[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[a.XRANGEPLAIN]})\\s+-\\s+(${s[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},7606:(e,t,n)=>{const r=n(6826);e.exports=(e,t,n)=>r(e,t,">",n)},2937:(e,t,n)=>{const r=n(6902);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},32:(e,t,n)=>{const r=n(6826);e.exports=(e,t,n)=>r(e,t,"<",n)},5775:(e,t,n)=>{const r=n(6376),i=n(6902);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==s.compare(e)||(o=e,s=new r(o,n)))})),o}},1657:(e,t,n)=>{const r=n(6376),i=n(6902);e.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==s.compare(e)||(o=e,s=new r(o,n)))})),o}},5316:(e,t,n)=>{const r=n(6376),i=n(6902),o=n(1312);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":s&&!o(t,s)||(s=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!s||n&&!o(n,s)||(n=s)}return n&&e.test(n)?n:null}},6826:(e,t,n)=>{const r=n(6376),i=n(2257),{ANY:o}=i,s=n(6902),a=n(5712),u=n(1312),c=n(1544),l=n(2056),h=n(5903);e.exports=(e,t,n,f)=>{let d,p,m,y,g;switch(e=new r(e,f),t=new s(t,f),n){case">":d=u,p=l,m=c,y=">",g=">=";break;case"<":d=c,p=h,m=u,y="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let n=0;n{e.semver===o&&(e=new i(">=0.0.0")),s=s||e,a=a||e,d(e.semver,s.semver,f)?s=e:m(e.semver,a.semver,f)&&(a=e)})),s.operator===y||s.operator===g)return!1;if((!a.operator||a.operator===y)&&p(e,a.semver))return!1;if(a.operator===g&&m(e,a.semver))return!1}return!0}},7908:(e,t,n)=>{const r=n(5712),i=n(6269);e.exports=(e,t,n)=>{const o=[];let s=null,a=null;const u=e.sort(((e,t)=>i(e,t,n)));for(const e of u)r(e,t,n)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return l.length{const r=n(6902),i=n(2257),{ANY:o}=i,s=n(5712),a=n(6269),u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=[new i(">=0.0.0")]}const r=new Set;let u,h,f,d,p,m,y;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,n):"<"===t.operator||"<="===t.operator?h=l(h,t,n):r.add(t.semver);if(r.size>1)return null;if(u&&h){if(f=a(u.semver,h.semver,n),f>0)return null;if(0===f&&(">="!==u.operator||"<="!==h.operator))return null}for(const e of r){if(u&&!s(e,String(u),n))return null;if(h&&!s(e,String(h),n))return null;for(const r of t)if(!s(e,String(r),n))return!1;return!0}let g=!(!h||n.includePrerelease||!h.semver.prerelease.length)&&h.semver,v=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===h.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(d=c(u,e,n),d===e&&d!==u)return!1}else if(">="===u.operator&&!s(u.semver,String(e),n))return!1;if(h)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),"<"===e.operator||"<="===e.operator){if(p=l(h,e,n),p===e&&p!==h)return!1}else if("<="===h.operator&&!s(h.semver,String(e),n))return!1;if(!e.operator&&(h||u)&&0!==f)return!1}return!(u&&m&&!h&&0!==f||h&&y&&!u&&0!==f||v||g)},c=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},1042:(e,t,n)=>{const r=n(6902);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},9042:(e,t,n)=>{const r=n(6902);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},9602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4411:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r{},7061:(e,t,n)=>{var r=n(8698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new S(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,s),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var d={};function p(){}function m(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(T([])));w&&w!==n&&o.call(w,a)&&(g=w);var b=y.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,s,a,u){var c=f(e[i],e,s);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&o.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(h).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,u)}))}u(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e(t,n)}function t(n,r,i){return t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(t,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(t,i));return r&&e(o,r.prototype),o},t.apply(null,arguments)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n1?n-1:0),i=1;i-1&&this.hookMap[e].splice(n,1)}}}]),e}();function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o2?n-2:0),i=2;i=p[this.core.level]&&this.core.writer.write(e,t,m(this.label,r)),this.core.debug){"object"===a(t)&&(t=JSON.stringify(t));var o="".concat(d()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(e,"] msg=").concat(t," label=").concat(JSON.stringify(m(this.label,r)));switch(e){case"error":console.error(o);break;case"warn":console.warn(o);break;default:console.info(o)}}g.hook.trigger("log",{level:e,message:t,label:r})}},{key:"with",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:0,n=(A[e[t+0]]+A[e[t+1]]+A[e[t+2]]+A[e[t+3]]+"-"+A[e[t+4]]+A[e[t+5]]+"-"+A[e[t+6]]+A[e[t+7]]+"-"+A[e[t+8]]+A[e[t+9]]+"-"+A[e[t+10]]+A[e[t+11]]+A[e[t+12]]+A[e[t+13]]+A[e[t+14]]+A[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&M.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},N=function(e,t,n){var r=(e=e||{}).random||(e.rng||T)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return C(r)};var D=function(){function e(t,n){var i=this;r(this,e),s(this,"disChannelHandlerArray",[]),"function"==typeof t?(this.setHandler(t),this.setCatch(n)):(this.manager=t,this.flag=n,this.setCatch((function(e){g.getInstance().logger(y.E(e)).error("channel error",{flag:i.flag})})),this.setHandler((function(){g.getInstance().logger().warn("channel handler is null")})))}return o(e,[{key:"channel",value:function(e,t){this.manager.nativeSend({action:e,data:t,stream:this.flag,channel:!0})}},{key:"send",value:function(e){this.manager.nativeSend({data:e,stream:this.flag,channel:!0})}},{key:"throw",value:function(e){this.manager.nativeSend({stream:this.flag,error:e,channel:!0}),this.manager.disChannel(this)}},{key:"syncSend",value:function(e,t){var n=this;return this.manager.nativeSend({action:e,data:t,stream:this.flag,channel:!1}),new Promise((function(e,t){n.handler=function(t){e(t)},n.catch=function(e){t(e)}}))}},{key:"setHandler",value:function(e){this.handler=function(t){if("dischannel"===t)return this.manager.disChannel(this),void this.disChannelHandlerArray.forEach((function(e){e("dischannel")}));e(t)}}},{key:"setCatch",value:function(e){this.catch=function(t){e(t),this.manager.disChannel(this),this.disChannelHandlerArray.forEach((function(e){e("dischannel")}))}}},{key:"setDisChannelHandler",value:function(e){this.disChannelHandlerArray.push(e)}},{key:"disChannel",value:function(){this.send("dischannel"),this.manager.disChannel(this)}}]),e}(),$=(Symbol("MessageBroadcast"),function(){function e(t){r(this,e),s(this,"channelMap",new Map),this.nativeSend=t}return o(e,[{key:"channel",value:function(e){e||(e=N());var t=new D(this,e);return this.channelMap.set(e,t),t}},{key:"getChannel",value:function(e){return this.channelMap.get(e)}},{key:"disChannel",value:function(e){this.channelMap.delete(e.flag)}},{key:"free",value:function(){this.channelMap.forEach((function(e){e.disChannelHandlerArray.forEach((function(e){e("free")}))})),this.channelMap.clear()}}]),e}()),R=function(){function e(){r(this,e),s(this,"handlerMap",new Map),s(this,"channelHandlerMap",new Map)}var t;return o(e,[{key:"handler",value:(t=k(O().mark((function e(t,n,r){var i,o,s,a,u,c;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.channel){e.next=4;break}return(i=n.getChannel(t.stream))?t.error?i.catch(t.error):i.handler(t.data):(o=this.channelHandlerMap.get(t.action))&&(i=n.channel(t.stream),o(i,t.action,t.data,r)),e.abrupt("return");case 4:if(!t.stream){e.next=7;break}return t.action?(s=this.handlerMap.get(t.action))&&((a=s(t.action,t.data,r))?a instanceof Promise?a.then((function(e){n.nativeSend({stream:t.stream,data:e})})).catch((function(e){n.nativeSend({error:e.message,stream:t.stream})})):n.nativeSend({stream:t.stream,data:a}):g.getLogger({component:"message"}).warn("handler return is null")):(u=n.getChannel(t.stream))&&(t.error?u.catch(t.error):u.handler(t.data)),e.abrupt("return");case 7:(c=this.handlerMap.get(t.action))&&c(t.action,t.data,r);case 9:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"setHandler",value:function(e,t){this.handlerMap.set(e,t)}},{key:"setHandlerWithChannel",value:function(e,t){this.channelHandlerMap.set(e,t)}}]),e}(),j=function(){function e(t){r(this,e),s(this,"channelMap",new Map),this.manager=t}return o(e,[{key:"syncSend",value:function(e,t){return this.manager.syncSend(e,t)}},{key:"send",value:function(e,t){return this.manager.send(e,t)}},{key:"nativeSend",value:function(e){return this.manager.nativeSend(e)}},{key:"channel",value:function(e){var t=this,n=this.manager.channel(e);return this.channelMap.set(n.flag,n),n.setHandler((function(){t.channelMap.delete(n.flag)})),n}},{key:"getChannel",value:function(e){return this.manager.getChannel(e)}},{key:"disChannel",value:function(e){return this.manager.disChannel(e)}},{key:"free",value:function(){return this.manager.free()}},{key:"cleanChannel",value:function(){this.channelMap.forEach((function(e){e.disChannel()})),this.channelMap.clear()}},{key:"sendCallback",value:function(e,t,n){this.manager.sendCallback(e,t,n)}},{key:"getAndDelRelatedTarget",value:function(e){return this.manager.getAndDelRelatedTarget(e)}}]),e}();var L=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&e(t,n)}(u,t);var n,i,s=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(n);if(i){var r=b(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,e)});function u(e,t){var n;return r(this,u),(n=s.call(this)).eventId=e,n.isContent=t,n.channelManager=new $((function(e){n.nativeSend(e)})),n.relatedTarget=new Map,document.addEventListener((t?"ct":"fd")+e,(function(e){if(e instanceof MouseEvent)n.relatedTarget.set(e.detail,e.relatedTarget);else{var t=e.detail;n.handler(t,n.channelManager,{targetTag:"content"})}})),u.instance||(u.instance=w(n)),n}return o(u,[{key:"getChannel",value:function(e){return this.channelManager.getChannel(e)}},{key:"channel",value:function(e){return this.channelManager.channel(e)}},{key:"disChannel",value:function(e){return this.channelManager.disChannel(e)}},{key:"free",value:function(){return this.channelManager.free()}},{key:"syncSend",value:function(e,t){return this.channelManager.channel().syncSend(e,t)}},{key:"sendCallback",value:function(e,t,n){var r=this.channelManager.channel();r.handler=n,this.nativeSend({action:e,data:t,stream:r.flag,channel:!1})}},{key:"getAndDelRelatedTarget",value:function(e){var t=this.relatedTarget.get(e);return this.relatedTarget.delete(e),t}},{key:"nativeSend",value:function(e){var t=e;if("undefined"!=typeof cloneInto)try{t=cloneInto(t,document.defaultView)}catch(e){console.log(e)}if(t.data&&"object"===a(t.data.relatedTarget)){var n=t.data.relatedTarget;delete t.data.relatedTarget,t.data.relatedTarget=Math.ceil(1e6*Math.random());var r=new MouseEvent((this.isContent?"fd":"ct")+this.eventId,{detail:t.data.relatedTarget,relatedTarget:n});document.dispatchEvent(r)}var i=new CustomEvent((this.isContent?"fd":"ct")+this.eventId,{detail:t});document.dispatchEvent(i)}},{key:"send",value:function(e,t){this.nativeSend({action:e,data:t})}}],[{key:"getInstance",value:function(){return this.instance}}]),u}(R),P=["greasyfork.org","scriptcat.org","tampermonkey.net.cn","openuserjs.org"];function B(e,t,n,r,i){var o={};return Object.keys(r).forEach((function(e){o[e]=r[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}const F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,z=Object.keys,V=Array.isArray;function U(e,t){return"object"!=typeof t||z(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||F.Promise||(F.Promise=Promise);const G=Object.getPrototypeOf,K={}.hasOwnProperty;function H(e,t){return K.call(e,t)}function q(e,t){"function"==typeof t&&(t=t(G(e))),("undefined"==typeof Reflect?z:Reflect.ownKeys)(t).forEach((n=>{Z(e,n,t[n])}))}const W=Object.defineProperty;function Z(e,t,n,r){W(e,t,U(n&&H(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Y(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Z(e.prototype,"constructor",e),{extend:q.bind(null,e.prototype)}}}}const J=Object.getOwnPropertyDescriptor;function X(e,t){let n;return J(e,t)||(n=G(e))&&X(n,t)}const Q=[].slice;function ee(e,t,n){return Q.call(e,t,n)}function te(e,t){return t(e)}function ne(e){if(!e)throw new Error("Assertion Failed")}function re(e){F.setImmediate?setImmediate(e):setTimeout(e,0)}function ie(e,t){return e.reduce(((e,n,r)=>{var i=t(n,r);return i&&(e[i[0]]=i[1]),e}),{})}function oe(e,t){if(H(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r["Int","Uint","Float"].map((t=>t+e+"Array")))))).filter((e=>F[e])),he=le.map((e=>F[e]));ie(le,(e=>[e,!0]));let fe=null;function de(e){fe="undefined"!=typeof WeakMap&&new WeakMap;const t=pe(e);return fe=null,t}function pe(e){if(!e||"object"!=typeof e)return e;let t=fe&&fe.get(e);if(t)return t;if(V(e)){t=[],fe&&fe.set(e,t);for(var n=0,r=e.length;n=0)t=e;else{const n=G(e);for(var i in t=n===Object.prototype?{}:Object.create(n),fe&&fe.set(e,t),e)H(e,i)&&(t[i]=pe(e[i]))}return t}const{toString:me}={};function ye(e){return me.call(e).slice(8,-1)}const ge="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",ve="symbol"==typeof ge?function(e){var t;return null!=e&&(t=e[ge])&&t.apply(e)}:function(){return null},we={};function be(e){var t,n,r,i;if(1===arguments.length){if(V(e))return e.slice();if(this===we&&"string"==typeof e)return[e];if(i=ve(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}const _e="undefined"!=typeof Symbol?e=>"AsyncFunction"===e[Symbol.toStringTag]:()=>!1;var ke="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function xe(e,t){ke=e,Ee=t}var Ee=()=>!0;const Oe=!new Error("").stack;function Se(){if(Oe)try{throw Se.arguments,new Error}catch(e){return e}return new Error}function Te(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(Ee).map((e=>"\n"+e)).join("")):""}var Me=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Ae=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Me),Ie={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Ce(e,t){this._e=Se(),this.name=e,this.message=t}function Ne(e,t){return e+". Errors: "+Object.keys(t).map((e=>t[e].toString())).filter(((e,t,n)=>n.indexOf(e)===t)).join("\n")}function De(e,t,n,r){this._e=Se(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=Ne(e,t)}function $e(e,t){this._e=Se(),this.name="BulkError",this.failures=Object.keys(t).map((e=>t[e])),this.failuresByPos=t,this.message=Ne(e,t)}Y(Ce).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Te(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Y(De).from(Ce),Y($e).from(Ce);var Re=Ae.reduce(((e,t)=>(e[t]=t+"Error",e)),{});const je=Ce;var Le=Ae.reduce(((e,t)=>{var n=t+"Error";function r(e,r){this._e=Se(),this.name=n,e?"string"==typeof e?(this.message=`${e}${r?"\n "+r:""}`,this.inner=r||null):"object"==typeof e&&(this.message=`${e.name} ${e.message}`,this.inner=e):(this.message=Ie[t]||n,this.inner=null)}return Y(r).from(je),e[t]=r,e}),{});Le.Syntax=SyntaxError,Le.Type=TypeError,Le.Range=RangeError;var Pe=Me.reduce(((e,t)=>(e[t+"Error"]=Le[t],e)),{}),Be=Ae.reduce(((e,t)=>(-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Le[t]),e)),{});function Fe(){}function ze(e){return e}function Ve(e,t){return null==e||e===ze?t:function(n){return t(e(n))}}function Ue(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Ge(e,t){return e===Fe?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Ue(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Ue(i,this.onerror):i),void 0!==o?o:n}}function Ke(e,t){return e===Fe?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Ue(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Ue(r,this.onerror):r)}}function He(e,t){return e===Fe?t:function(n){var r=e.apply(this,arguments);U(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Ue(i,this.onsuccess):i),o&&(this.onerror=this.onerror?Ue(o,this.onerror):o),void 0===r?void 0===s?void 0:s:U(r,s)}}function qe(e,t){return e===Fe?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function We(e,t){return e===Fe?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=new Array(i);i--;)o[i]=arguments[i];return n.then((function(){return t.apply(r,o)}))}return t.apply(this,arguments)}}Be.ModifyError=De,Be.DexieError=Ce,Be.BulkError=$e;var Ze={};const[Ye,Je,Xe]="undefined"==typeof Promise?[]:(()=>{let e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,G(e),e];const t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,G(t),e]})(),Qe=Je&&Je.then,et=Ye&&Ye.constructor,tt=!!Xe;var nt=!1,rt=Xe?()=>{Xe.then(St)}:F.setImmediate?setImmediate.bind(null,St):F.MutationObserver?()=>{var e=document.createElement("div");new MutationObserver((()=>{St(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:()=>{setTimeout(St,0)},it=function(e,t){dt.push([e,t]),st&&(rt(),st=!1)},ot=!0,st=!0,at=[],ut=[],ct=null,lt=ze,ht={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Yt,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((e=>{try{Yt(e[0],e[1])}catch(e){}}))}},ft=ht,dt=[],pt=0,mt=[];function yt(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Fe,this._lib=!1;var t=this._PSD=ft;if(ke&&(this._stackHolder=Se(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Ze)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&bt(this,this._value))}this._state=null,this._value=null,++t.ref,wt(this,e)}const gt={get:function(){var e=ft,t=jt;function n(n,r){var i=!e.global&&(e!==ft||t!==jt);const o=i&&!Ft();var s=new yt(((t,s)=>{kt(this,new vt(Wt(n,e,i,o),Wt(r,e,i,o),t,s,e))}));return ke&&Ot(s,this),s}return n.prototype=Ze,n},set:function(e){Z(this,"then",e&&e.prototype===Ze?gt:{get:function(){return e},set:gt.set})}};function vt(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function wt(e,t){try{t((t=>{if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&Tt();t&&"function"==typeof t.then?wt(e,((e,n)=>{t instanceof yt?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,_t(e)),n&&Mt()}}),bt.bind(null,e))}catch(t){bt(e,t)}}function bt(e,t){if(ut.push(t),null===e._state){var n=e._lib&&Tt();t=lt(t),e._state=!1,e._value=t,ke&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){}}((()=>{var n=X(t,"stack");t._promise=e,Z(t,"stack",{get:()=>nt?n&&(n.get?n.get.apply(t):n.value):e.stack})})),function(e){at.some((t=>t._value===e._value))||at.push(e)}(e),_t(e),n&&Mt()}}function _t(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n{0==--pt&&At()}),[]))}function kt(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++pt,it(xt,[n,e,t])}else e._listeners.push(t)}function xt(e,t,n){try{ct=t;var r,i=t._value;t._state?r=e(i):(ut.length&&(ut=[]),r=e(i),-1===ut.indexOf(i)&&function(e){for(var t=at.length;t;)if(at[--t]._value===e._value)return void at.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{ct=null,0==--pt&&At(),--n.psd.ref||n.psd.finalize()}}function Et(e,t,n){if(t.length===n)return t;var r="";if(!1===e._state){var i,o,s=e._value;null!=s?(i=s.name||"Error",o=s.message||s,r=Te(s,0)):(i=s,o=""),t.push(i+(o?": "+o:"")+r)}return ke&&((r=Te(e._stackHolder,2))&&-1===t.indexOf(r)&&t.push(r),e._prev&&Et(e._prev,t,n)),t}function Ot(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function St(){Tt()&&Mt()}function Tt(){var e=ot;return ot=!1,st=!1,e}function Mt(){var e,t,n;do{for(;dt.length>0;)for(e=dt,dt=[],n=e.length,t=0;t0);ot=!0,st=!0}function At(){var e=at;at=[],e.forEach((e=>{e._PSD.onunhandled.call(null,e._value,e)}));for(var t=mt.slice(0),n=t.length;n;)t[--n]()}function It(e){return new yt(Ze,!1,e)}function Ct(e,t){var n=ft;return function(){var r=Tt(),i=ft;try{return Gt(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{Gt(i,!1),r&&Mt()}}}q(yt.prototype,{then:gt,_then:function(e,t){kt(this,new vt(null,null,e,t,ft))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(e=>e instanceof t?n(e):It(e))):this.then(null,(e=>e&&e.name===t?n(e):It(e)))},finally:function(e){return this.then((t=>(e(),t)),(t=>(e(),It(t))))},stack:{get:function(){if(this._stack)return this._stack;try{nt=!0;var e=Et(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{nt=!1}}},timeout:function(e,t){return e<1/0?new yt(((n,r)=>{var i=setTimeout((()=>r(new Le.Timeout(t))),e);this.then(n,r).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Z(yt.prototype,Symbol.toStringTag,"Dexie.Promise"),ht.env=Kt(),q(yt,{all:function(){var e=be.apply(null,arguments).map(zt);return new yt((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(((i,o)=>yt.resolve(i).then((n=>{e[o]=n,--r||t(e)}),n)))}))},resolve:e=>{if(e instanceof yt)return e;if(e&&"function"==typeof e.then)return new yt(((t,n)=>{e.then(t,n)}));var t=new yt(Ze,!0,e);return Ot(t,ct),t},reject:It,race:function(){var e=be.apply(null,arguments).map(zt);return new yt(((t,n)=>{e.map((e=>yt.resolve(e).then(t,n)))}))},PSD:{get:()=>ft,set:e=>ft=e},totalEchoes:{get:()=>jt},newPSD:Pt,usePSD:Ht,scheduler:{get:()=>it,set:e=>{it=e}},rejectionMapper:{get:()=>lt,set:e=>{lt=e}},follow:(e,t)=>new yt(((n,r)=>Pt(((t,n)=>{var r=ft;r.unhandleds=[],r.onunhandled=n,r.finalize=Ue((function(){!function(e){mt.push((function t(){e(),mt.splice(mt.indexOf(t),1)})),++pt,it((()=>{0==--pt&&At()}),[])}((()=>{0===this.unhandleds.length?t():n(this.unhandleds[0])}))}),r.finalize),e()}),t,n,r)))}),et&&(et.allSettled&&Z(yt,"allSettled",(function(){const e=be.apply(null,arguments).map(zt);return new yt((t=>{0===e.length&&t([]);let n=e.length;const r=new Array(n);e.forEach(((e,i)=>yt.resolve(e).then((e=>r[i]={status:"fulfilled",value:e}),(e=>r[i]={status:"rejected",reason:e})).then((()=>--n||t(r)))))}))})),et.any&&"undefined"!=typeof AggregateError&&Z(yt,"any",(function(){const e=be.apply(null,arguments).map(zt);return new yt(((t,n)=>{0===e.length&&n(new AggregateError([]));let r=e.length;const i=new Array(r);e.forEach(((e,o)=>yt.resolve(e).then((e=>t(e)),(e=>{i[o]=e,--r||n(new AggregateError(i))}))))}))})));const Nt={awaits:0,echoes:0,id:0};var Dt=0,$t=[],Rt=0,jt=0,Lt=0;function Pt(e,t,n,r){var i=ft,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++Lt;var s=ht.env;o.env=tt?{Promise:yt,PromiseProp:{value:yt,configurable:!0,writable:!0},all:yt.all,race:yt.race,allSettled:yt.allSettled,any:yt.any,resolve:yt.resolve,reject:yt.reject,nthen:Zt(s.nthen,o),gthen:Zt(s.gthen,o)}:{},t&&U(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=Ht(o,e,n,r);return 0===o.ref&&o.finalize(),a}function Bt(){return Nt.id||(Nt.id=++Dt),++Nt.awaits,Nt.echoes+=100,Nt.id}function Ft(){return!!Nt.awaits&&(0==--Nt.awaits&&(Nt.id=0),Nt.echoes=100*Nt.awaits,!0)}function zt(e){return Nt.echoes&&e&&e.constructor===et?(Bt(),e.then((e=>(Ft(),e)),(e=>(Ft(),Jt(e))))):e}function Vt(e){++jt,Nt.echoes&&0!=--Nt.echoes||(Nt.echoes=Nt.id=0),$t.push(ft),Gt(e,!0)}function Ut(){var e=$t[$t.length-1];$t.pop(),Gt(e,!1)}function Gt(e,t){var n=ft;if((t?!Nt.echoes||Rt++&&e===ft:!Rt||--Rt&&e===ft)||qt(t?Vt.bind(null,e):Ut),e!==ft&&(ft=e,n===ht&&(ht.env=Kt()),tt)){var r=ht.env.Promise,i=e.env;Je.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(F,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function Kt(){var e=F.Promise;return tt?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(F,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Je.then,gthen:e.prototype.then}:{}}function Ht(e,t,n,r,i){var o=ft;try{return Gt(e,!0),t(n,r,i)}finally{Gt(o,!1)}}function qt(e){Qe.call(Ye,e)}function Wt(e,t,n,r){return"function"!=typeof e?e:function(){var i=ft;n&&Bt(),Gt(t,!0);try{return e.apply(this,arguments)}finally{Gt(i,!1),r&&qt(Ft)}}}function Zt(e,t){return function(n,r){return e.call(this,Wt(n,t),Wt(r,t))}}function Yt(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,i={promise:t,reason:e};if(F.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),U(r,i)):F.CustomEvent&&U(r=new CustomEvent("unhandledrejection",{detail:i}),i),r&&F.dispatchEvent&&(dispatchEvent(r),!F.PromiseRejectionEvent&&F.onunhandledrejection))try{F.onunhandledrejection(r)}catch(e){}ke&&r&&!r.defaultPrevented&&console.warn(`Unhandled rejection: ${e.stack||e}`)}catch(e){}}-1===(""+Qe).indexOf("[native code]")&&(Bt=Ft=Fe);var Jt=yt.reject;function Xt(e,t,n,r){if(e.idbdb&&(e._state.openComplete||ft.letThrough||e._vip)){var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Re.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>Xt(e,t,n,r)))):Jt(i)}return i._promise(t,((e,t)=>Pt((()=>(ft.trans=i,r(e,t,i)))))).then((e=>i._completion.then((()=>e))))}if(e._state.openComplete)return Jt(new Le.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Jt(new Le.DatabaseClosed);e.open().catch(Fe)}return e._state.dbReadyPromise.then((()=>Xt(e,t,n,r)))}const Qt=String.fromCharCode(65535),en="Invalid key provided. Keys must be of type string, number, Date or Array.",tn=[],nn="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),rn=nn,on=nn,sn=e=>!/(dexie\.js|dexie\.min\.js)/.test(e);function an(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}const un={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function cn(e){return"string"!=typeof e||/\./.test(e)?e=>e:t=>(void 0===t[e]&&e in t&&delete(t=de(t))[e],t)}class ln{_trans(e,t,n){const r=this._tx||ft.trans,i=this.name;function o(e,n,r){if(!r.schema[i])throw new Le.NotFound("Table "+i+" not part of transaction");return t(r.idbtrans,r)}const s=Tt();try{return r&&r.db===this.db?r===ft.trans?r._promise(e,o,n):Pt((()=>r._promise(e,o,n)),{trans:r,transless:ft.transless||ft}):Xt(this.db,e,[this.name],o)}finally{s&&Mt()}}get(e,t){return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(t=>this.core.get({trans:t,key:e}).then((e=>this.hook.reading.fire(e))))).then(t)}where(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(V(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const t=z(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);const n=this.schema.indexes.concat(this.schema.primKey).filter((e=>e.compound&&t.every((t=>e.keyPath.indexOf(t)>=0))&&e.keyPath.every((e=>t.indexOf(e)>=0))))[0];if(n&&this.db._maxKey!==Qt)return this.where(n.name).equals(n.keyPath.map((t=>e[t])));!n&&ke&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${t.join("+")}]`);const{idxByName:r}=this.schema,i=this.db._deps.indexedDB;function o(e,t){try{return 0===i.cmp(e,t)}catch(e){return!1}}const[s,a]=t.reduce((([t,n],i)=>{const s=r[i],a=e[i];return[t||s,t||!s?an(n,s&&s.multi?e=>{const t=oe(e,i);return V(t)&&t.some((e=>o(a,e)))}:e=>o(a,oe(e,i))):n]}),[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(a):n?this.filter(a):this.where(t).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,V(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const t=t=>{if(!t)return t;const n=Object.create(e.prototype);for(var r in t)if(H(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e}defineClass(){return this.mapToClass((function(e){U(this,e)}))}add(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=cn(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[i]}))).then((e=>e.numFailures?yt.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{se(e,r,t)}catch(e){}return t}))}update(e,t){if("object"!=typeof e||V(e))return this.where(":id").equals(e).modify(t);{const n=oe(e,this.schema.primKey.keyPath);if(void 0===n)return Jt(new Le.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?z(t).forEach((n=>{se(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)}}put(e,t){const{auto:n,keyPath:r}=this.schema.primKey;let i=e;return r&&n&&(i=cn(r)(e)),this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"put",values:[i],keys:null!=t?[t]:null}))).then((e=>e.numFailures?yt.reject(e.failures[0]):e.lastResult)).then((t=>{if(r)try{se(e,r,t)}catch(e){}return t}))}delete(e){return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:[e]}))).then((e=>e.numFailures?yt.reject(e.failures[0]):void 0))}clear(){return this._trans("readwrite",(e=>this.core.mutate({trans:e,type:"deleteRange",range:un}))).then((e=>e.numFailures?yt.reject(e.failures[0]):void 0))}bulkGet(e){return this._trans("readonly",(t=>this.core.getMany({keys:e,trans:t}).then((e=>e.map((e=>this.hook.reading.fire(e)))))))}bulkAdd(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Le.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Le.InvalidArgument("Arguments objects and keys must have the same length");const s=e.length;let a=o&&n?e.map(cn(o)):e;return this.core.mutate({trans:t,type:"add",keys:r,values:a,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new $e(`${this.name}.bulkAdd(): ${e} of ${s} operations failed`,r)}))}))}bulkPut(e,t,n){const r=Array.isArray(t)?t:void 0,i=(n=n||(r?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(t=>{const{auto:n,keyPath:o}=this.schema.primKey;if(o&&r)throw new Le.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==e.length)throw new Le.InvalidArgument("Arguments objects and keys must have the same length");const s=e.length;let a=o&&n?e.map(cn(o)):e;return this.core.mutate({trans:t,type:"put",keys:r,values:a,wantResults:i}).then((({numFailures:e,results:t,lastResult:n,failures:r})=>{if(0===e)return i?t:n;throw new $e(`${this.name}.bulkPut(): ${e} of ${s} operations failed`,r)}))}))}bulkDelete(e){const t=e.length;return this._trans("readwrite",(t=>this.core.mutate({trans:t,type:"delete",keys:e}))).then((({numFailures:e,lastResult:n,failures:r})=>{if(0===e)return n;throw new $e(`${this.name}.bulkDelete(): ${e} of ${t} operations failed`,r)}))}}function hn(e){var t={},n=function(n,r){if(r){for(var i=arguments.length,o=new Array(i-1);--i;)o[i-1]=arguments[i];return t[n].subscribe.apply(null,o),e}if("string"==typeof n)return t[n]};n.addEventType=o;for(var r=1,i=arguments.length;ran(r(),t()):t,e.justLimit=n&&!r}function yn(e,t){if(e.isPrimKey)return t.primaryKey;const n=t.getIndexByKeyPath(e.index);if(!n)throw new Le.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function gn(e,t,n){const r=yn(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function vn(e,t,n,r){const i=e.replayFilter?an(e.filter,e.replayFilter()):e.filter;if(e.or){const o={},s=(e,n,r)=>{if(!i||i(n,r,(e=>n.stop(e)),(e=>n.fail(e)))){var s=n.primaryKey,a=""+s;"[object ArrayBuffer]"===a&&(a=""+new Uint8Array(s)),H(o,a)||(o[a]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(s,n),wn(gn(e,r,n),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return wn(gn(e,r,n),an(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function wn(e,t,n,r){var i=Ct(r?(e,t,i)=>n(r(e),t,i):n);return e.then((e=>{if(e)return e.start((()=>{var n=()=>e.continue();t&&!t(e,(e=>n=e),(t=>{e.stop(t),n=Fe}),(t=>{e.fail(t),n=Fe}))||i(e.value,e,(e=>n=e)),n()}))}))}function bn(e,t){try{const n=_n(e),r=_n(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:evn(t,e,n,t.table.core)))}count(e){return this._read((e=>{const t=this._ctx,n=t.table.core;if(dn(t,!0))return n.count({trans:e,query:{index:yn(t,n.schema),range:t.range}}).then((e=>Math.min(e,t.limit)));var r=0;return vn(t,(()=>(++r,!1)),e,n).then((()=>r))})).then(e)}sortBy(e,t){const n=e.split(".").reverse(),r=n[0],i=n.length-1;function o(e,t){return t?o(e[n[t]],t-1):e[r]}var s="next"===this._ctx.dir?1:-1;function a(e,t){var n=o(e,i),r=o(t,i);return nr?s:0}return this.toArray((function(e){return e.sort(a)})).then(t)}toArray(e){return this._read((e=>{var t=this._ctx;if("next"===t.dir&&dn(t,!0)&&t.limit>0){const{valueMapper:n}=t,r=yn(t,t.table.core.schema);return t.table.core.query({trans:e,limit:t.limit,values:!0,query:{index:r,range:t.range}}).then((({result:e})=>n?e.map(n):e))}{const n=[];return vn(t,(e=>n.push(e)),e,t.table.core).then((()=>n))}}),e)}offset(e){var t=this._ctx;return e<=0||(t.offset+=e,dn(t)?mn(t,(()=>{var t=e;return(e,n)=>0===t||(1===t?(--t,!1):(n((()=>{e.advance(t),t=0})),!1))})):mn(t,(()=>{var t=e;return()=>--t<0}))),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),mn(this._ctx,(()=>{var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this}until(e,t){return pn(this._ctx,(function(n,r,i){return!e(n.value)||(r(i),t)})),this}first(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)}last(e){return this.reverse().first(e)}filter(e){var t,n;return pn(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=an(t.isMatch,n),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))}keys(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)}primaryKeys(e){var t=this._ctx;if("next"===t.dir&&dn(t,!0)&&t.limit>0)return this._read((e=>{var n=yn(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((({result:e})=>e)).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys((function(e){return e[0]})).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return pn(this._ctx,(function(e){var t=e.primaryKey.toString(),r=H(n,t);return n[t]=!0,!r})),this}modify(e){var t=this._ctx;return this._write((n=>{var r;if("function"==typeof e)r=e;else{var i=z(e),o=i.length;r=function(t){for(var n=!1,r=0;r{const{failures:n,numFailures:r}=t;h+=e-r;for(let e of z(n))l.push(n[e])};return this.clone().primaryKeys().then((i=>{const o=l=>{const h=Math.min(c,i.length-l);return s.getMany({trans:n,keys:i.slice(l,l+h),cache:"immutable"}).then((f=>{const p=[],m=[],y=a?[]:null,g=[];for(let e=0;e0&&s.mutate({trans:n,type:"add",values:p}).then((e=>{for(let t in e.failures)g.splice(parseInt(t),1);d(p.length,e)}))).then((()=>(m.length>0||v&&"object"==typeof e)&&s.mutate({trans:n,type:"put",keys:y,values:m,criteria:v,changeSpec:"function"!=typeof e&&e}).then((e=>d(m.length,e))))).then((()=>(g.length>0||v&&e===En)&&s.mutate({trans:n,type:"delete",keys:g,criteria:v}).then((e=>d(g.length,e))))).then((()=>i.length>l+h&&o(l+c)))}))};return o(0).then((()=>{if(l.length>0)throw new De("Error modifying one or more objects",l,h,f);return i.length}))}))}))}delete(){var e=this._ctx,t=e.range;return dn(e)&&(e.isPrimKey&&!on||3===t.type)?this._write((n=>{const{primaryKey:r}=e.table.core.schema,i=t;return e.table.core.count({trans:n,query:{index:r,range:i}}).then((t=>e.table.core.mutate({trans:n,type:"deleteRange",range:i}).then((({failures:e,lastResult:n,results:r,numFailures:i})=>{if(i)throw new De("Could not delete some values",Object.keys(e).map((t=>e[t])),t-i);return t-i}))))})):this.modify(En)}}const En=(e,t)=>t.value=null;function On(e,t){return et?-1:e===t?0:1}function Tn(e,t,n){var r=e instanceof Dn?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Mn(e){return new e.Collection(e,(()=>Nn(""))).limit(0)}function An(e,t,n,r,i,o){for(var s=Math.min(e.length,r.length),a=-1,u=0;u=0?e.substr(0,a)+t[a]+n.substr(a+1):null;i(e[u],c)<0&&(a=u)}return s"string"==typeof e)))return Tn(e,"String expected.");function f(e){i=function(e){return"next"===e?e=>e.toUpperCase():e=>e.toLowerCase()}(e),o=function(e){return"next"===e?e=>e.toLowerCase():e=>e.toUpperCase()}(e),s="next"===e?On:Sn;var t=n.map((function(e){return{lower:o(e),upper:i(e)}})).sort((function(e,t){return s(e.lower,t.lower)}));a=t.map((function(e){return e.upper})),u=t.map((function(e){return e.lower})),c=e,l="next"===e?"":r}f("next");var d=new e.Collection(e,(()=>Cn(a[0],u[h-1]+r)));d._ondirectionchange=function(e){f(e)};var p=0;return d._addAlgorithm((function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var f=o(i);if(t(f,u,p))return!0;for(var d=null,m=p;m0)&&(d=y)}return n(null!==d?function(){e.continue(d+l)}:r),!1})),d}function Cn(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Nn(e){return{type:1,lower:e,upper:e}}class Dn{get Collection(){return this._ctx.table.db.Collection}between(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Mn(this):new this.Collection(this,(()=>Cn(e,t,!n,!r)))}catch(e){return Tn(this,en)}}equals(e){return null==e?Tn(this,en):new this.Collection(this,(()=>Nn(e)))}above(e){return null==e?Tn(this,en):new this.Collection(this,(()=>Cn(e,void 0,!0)))}aboveOrEqual(e){return null==e?Tn(this,en):new this.Collection(this,(()=>Cn(e,void 0,!1)))}below(e){return null==e?Tn(this,en):new this.Collection(this,(()=>Cn(void 0,e,!1,!0)))}belowOrEqual(e){return null==e?Tn(this,en):new this.Collection(this,(()=>Cn(void 0,e)))}startsWith(e){return"string"!=typeof e?Tn(this,"String expected."):this.between(e,e+Qt,!0,!0)}startsWithIgnoreCase(e){return""===e?this.startsWith(e):In(this,((e,t)=>0===e.indexOf(t[0])),[e],Qt)}equalsIgnoreCase(e){return In(this,((e,t)=>e===t[0]),[e],"")}anyOfIgnoreCase(){var e=be.apply(we,arguments);return 0===e.length?Mn(this):In(this,((e,t)=>-1!==t.indexOf(e)),e,"")}startsWithAnyOfIgnoreCase(){var e=be.apply(we,arguments);return 0===e.length?Mn(this):In(this,((e,t)=>t.some((t=>0===e.indexOf(t)))),e,Qt)}anyOf(){const e=be.apply(we,arguments);let t=this._cmp;try{e.sort(t)}catch(e){return Tn(this,en)}if(0===e.length)return Mn(this);const n=new this.Collection(this,(()=>Cn(e[0],e[e.length-1])));n._ondirectionchange=n=>{t="next"===n?this._ascending:this._descending,e.sort(t)};let r=0;return n._addAlgorithm(((n,i,o)=>{const s=n.key;for(;t(s,e[r])>0;)if(++r,r===e.length)return i(o),!1;return 0===t(s,e[r])||(i((()=>{n.continue(e[r])})),!1)})),n}notEqual(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=be.apply(we,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return Tn(this,en)}const t=e.reduce(((e,t)=>e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,t){const n=this._cmp,r=this._ascending,i=this._descending,o=this._min,s=this._max;if(0===e.length)return Mn(this);if(!e.every((e=>void 0!==e[0]&&void 0!==e[1]&&r(e[0],e[1])<=0)))return Tn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Le.InvalidArgument);const a=!t||!1!==t.includeLowers,u=t&&!0===t.includeUppers;let c,l=r;function h(e,t){return l(e[0],t[0])}try{c=e.reduce((function(e,t){let r=0,i=e.length;for(;r0){i[0]=o(i[0],t[0]),i[1]=s(i[1],t[1]);break}}return r===i&&e.push(t),e}),[]),c.sort(h)}catch(e){return Tn(this,en)}let f=0;const d=u?e=>r(e,c[f][1])>0:e=>r(e,c[f][1])>=0,p=a?e=>i(e,c[f][0])>0:e=>i(e,c[f][0])>=0;let m=d;const y=new this.Collection(this,(()=>Cn(c[0][0],c[c.length-1][1],!a,!u)));return y._ondirectionchange=e=>{"next"===e?(m=d,l=r):(m=p,l=i),c.sort(h)},y._addAlgorithm(((e,t,n)=>{for(var i=e.key;m(i);)if(++f,f===c.length)return t(n),!1;return!!function(e){return!d(e)&&!p(e)}(i)||(0===this._cmp(i,c[f][1])||0===this._cmp(i,c[f][0])||t((()=>{l===r?e.continue(c[f][0]):e.continue(c[f][1])})),!1)})),y}startsWithAnyOf(){const e=be.apply(we,arguments);return e.every((e=>"string"==typeof e))?0===e.length?Mn(this):this.inAnyRange(e.map((e=>[e,e+Qt]))):Tn(this,"startsWithAnyOf() only works with strings")}}function $n(e){return Ct((function(t){return Rn(t),e(t.target.error),!1}))}function Rn(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}const jn=hn(null,"storagemutated");class Ln{_lock(){return ne(!ft.global),++this._reculock,1!==this._reculock||ft.global||(ft.lockOwnerFor=this),this}_unlock(){if(ne(!ft.global),0==--this._reculock)for(ft.global||(ft.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{Ht(e[1],e[0])}catch(e){}}return this}_locked(){return this._reculock&&ft.lockOwnerFor!==this}create(e){if(!this.mode)return this;const t=this.db.idbdb,n=this.db._state.dbOpenError;if(ne(!this.idbtrans),!e&&!t)switch(n&&n.name){case"DatabaseClosedError":throw new Le.DatabaseClosed(n);case"MissingAPIError":throw new Le.MissingAPI(n.message,n);default:throw new Le.OpenFailed(n)}if(!this.active)throw new Le.TransactionInactive;return ne(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):t.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Ct((t=>{Rn(t),this._reject(e.error)})),e.onabort=Ct((t=>{Rn(t),this.active&&this._reject(new Le.Abort(e.error)),this.active=!1,this.on("abort").fire(t)})),e.oncomplete=Ct((()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&jn.storagemutated.fire(e.mutatedParts)})),this}_promise(e,t,n){if("readwrite"===e&&"readwrite"!==this.mode)return Jt(new Le.ReadOnly("Transaction is readonly"));if(!this.active)return Jt(new Le.TransactionInactive);if(this._locked())return new yt(((r,i)=>{this._blockedFuncs.push([()=>{this._promise(e,t,n).then(r,i)},ft])}));if(n)return Pt((()=>{var e=new yt(((e,n)=>{this._lock();const r=t(e,n,this);r&&r.then&&r.then(e,n)}));return e.finally((()=>this._unlock())),e._lib=!0,e}));var r=new yt(((e,n)=>{var r=t(e,n,this);r&&r.then&&r.then(e,n)}));return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(e){var t=this._root();const n=yt.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((()=>n));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new yt(((e,r)=>{n.then((n=>t._waitingQueue.push(Ct(e.bind(null,n)))),(e=>t._waitingQueue.push(Ct(r.bind(null,e))))).finally((()=>{t._waitingFor===i&&(t._waitingFor=null)}))}))}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Le.Abort))}table(e){const t=this._memoizedTables||(this._memoizedTables={});if(H(t,e))return t[e];const n=this.schema[e];if(!n)throw new Le.NotFound("Table "+e+" not part of transaction");const r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r}}function Pn(e,t,n,r,i,o,s){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!s?"&":"")+(r?"*":"")+(i?"++":"")+Bn(t)}}function Bn(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function Fn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:ie(n,(e=>[e.name,e]))}}let zn=e=>{try{return e.only([[]]),zn=()=>[[]],[[]]}catch(e){return zn=()=>Qt,Qt}};function Vn(e){return null==e?()=>{}:"string"==typeof e?function(e){return 1===e.split(".").length?t=>t[e]:t=>oe(t,e)}(e):t=>oe(t,e)}function Un(e){return[].slice.call(e)}let Gn=0;function Kn(e){return null==e?":id":"string"==typeof e?e:`[${e.join("+")}]`}function Hn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:n,upper:r,lowerOpen:i,upperOpen:o}=e;return void 0===n?void 0===r?null:t.upperBound(r,!!o):void 0===r?t.lowerBound(n,!!i):t.bound(n,r,!!i,!!o)}const{schema:i,hasGetAll:o}=function(e,t){const n=Un(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((e=>t.objectStore(e))).map((e=>{const{keyPath:t,autoIncrement:n}=e,r=V(t),i=null==t,o={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:i,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:Vn(t)},indexes:Un(e.indexNames).map((t=>e.index(t))).map((e=>{const{name:t,unique:n,multiEntry:r,keyPath:i}=e,s={name:t,compound:V(i),keyPath:i,unique:n,multiEntry:r,extractKey:Vn(i)};return o[Kn(i)]=s,s})),getIndexByKeyPath:e=>o[Kn(e)]};return o[":id"]=s.primaryKey,null!=t&&(o[Kn(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),s=i.tables.map((e=>function(e){const t=e.name;return{name:t,schema:e,mutate:function({trans:e,type:n,keys:i,values:o,range:s}){return new Promise(((a,u)=>{a=Ct(a);const c=e.objectStore(t),l=null==c.keyPath,h="put"===n||"add"===n;if(!h&&"delete"!==n&&"deleteRange"!==n)throw new Error("Invalid operation type: "+n);const{length:f}=i||o||{length:1};if(i&&o&&i.length!==o.length)throw new Error("Given keys array must have same length as given values array.");if(0===f)return a({numFailures:0,failures:{},results:[],lastResult:void 0});let d;const p=[],m=[];let y=0;const g=e=>{++y,Rn(e)};if("deleteRange"===n){if(4===s.type)return a({numFailures:y,failures:m,results:[],lastResult:void 0});3===s.type?p.push(d=c.clear()):p.push(d=c.delete(r(s)))}else{const[e,t]=h?l?[o,i]:[o,null]:[i,null];if(h)for(let r=0;r{const t=e.target.result;p.forEach(((e,t)=>null!=e.error&&(m[t]=e.error))),a({numFailures:y,failures:m,results:"delete"===n?i:p.map((e=>e.result)),lastResult:t})};d.onerror=e=>{g(e),v(e)},d.onsuccess=v}))},getMany:({trans:e,keys:n})=>new Promise(((r,i)=>{r=Ct(r);const o=e.objectStore(t),s=n.length,a=new Array(s);let u,c=0,l=0;const h=e=>{const t=e.target;a[t._pos]=t.result,++l===c&&r(a)},f=$n(i);for(let e=0;enew Promise(((r,i)=>{r=Ct(r);const o=e.objectStore(t).get(n);o.onsuccess=e=>r(e.target.result),o.onerror=$n(i)})),query:function(e){return n=>new Promise(((i,o)=>{i=Ct(i);const{trans:s,values:a,limit:u,query:c}=n,l=u===1/0?void 0:u,{index:h,range:f}=c,d=s.objectStore(t),p=h.isPrimaryKey?d:d.index(h.name),m=r(f);if(0===u)return i({result:[]});if(e){const e=a?p.getAll(m,l):p.getAllKeys(m,l);e.onsuccess=e=>i({result:e.target.result}),e.onerror=$n(o)}else{let e=0;const t=a||!("openKeyCursor"in p)?p.openCursor(m):p.openKeyCursor(m),n=[];t.onsuccess=r=>{const o=t.result;return o?(n.push(a?o.value:o.primaryKey),++e===u?i({result:n}):void o.continue()):i({result:n})},t.onerror=$n(o)}}))}(o),openCursor:function({trans:e,values:n,query:i,reverse:o,unique:s}){return new Promise(((a,u)=>{a=Ct(a);const{index:c,range:l}=i,h=e.objectStore(t),f=c.isPrimaryKey?h:h.index(c.name),d=o?s?"prevunique":"prev":s?"nextunique":"next",p=n||!("openKeyCursor"in f)?f.openCursor(r(l),d):f.openKeyCursor(r(l),d);p.onerror=$n(u),p.onsuccess=Ct((t=>{const n=p.result;if(!n)return void a(null);n.___id=++Gn,n.done=!1;const r=n.continue.bind(n);let i=n.continuePrimaryKey;i&&(i=i.bind(n));const o=n.advance.bind(n),s=()=>{throw new Error("Cursor not stopped")};n.trans=e,n.stop=n.continue=n.continuePrimaryKey=n.advance=()=>{throw new Error("Cursor not started")},n.fail=Ct(u),n.next=function(){let e=1;return this.start((()=>e--?this.continue():this.stop())).then((()=>this))},n.start=e=>{const t=new Promise(((e,t)=>{e=Ct(e),p.onerror=$n(t),n.fail=t,n.stop=t=>{n.stop=n.continue=n.continuePrimaryKey=n.advance=s,e(t)}})),a=()=>{if(p.result)try{e()}catch(e){n.fail(e)}else n.done=!0,n.start=()=>{throw new Error("Cursor behind last entry")},n.stop()};return p.onsuccess=Ct((e=>{p.onsuccess=a,a()})),n.continue=r,n.continuePrimaryKey=i,n.advance=o,a(),t},a(n)}),u)}))},count({query:e,trans:n}){const{index:i,range:o}=e;return new Promise(((e,s)=>{const a=n.objectStore(t),u=i.isPrimaryKey?a:a.index(i.name),c=r(o),l=c?u.count(c):u.count();l.onsuccess=Ct((t=>e(t.target.result))),l.onerror=$n(s)}))}}}(e))),a={};return s.forEach((e=>a[e.name]=e)),{stack:"dbcore",transaction:e.transaction.bind(e),table(e){if(!a[e])throw new Error(`Table '${e}' not found`);return a[e]},MIN_KEY:-1/0,MAX_KEY:zn(t),schema:i}}function qn({_novip:e},t){const n=t.db,r=function(e,t,{IDBKeyRange:n,indexedDB:r},i){const o=function(e,t){return t.reduce(((e,{create:t})=>({...e,...t(e)})),e)}(Hn(t,n,i),e.dbcore);return{dbcore:o}}(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((t=>{const n=t.name;e.core.schema.tables.some((e=>e.name===n))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function Wn({_novip:e},t,n,r){n.forEach((n=>{const i=r[n];t.forEach((t=>{const r=X(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?Z(t,n,{get(){return this.table(n)},set(e){W(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,i))}))}))}function Zn({_novip:e},t){t.forEach((t=>{for(let n in t)t[n]instanceof e.Table&&delete t[n]}))}function Yn(e,t){return e._cfg.version-t._cfg.version}function Jn(e,t,n,r){const i=e._dbSchema,o=e._createTransaction("readwrite",e._storeNames,i);o.create(n),o._completion.catch(r);const s=o._reject.bind(o),a=ft.transless||ft;Pt((()=>{ft.trans=o,ft.transless=a,0===t?(z(i).forEach((e=>{Qn(n,e,i[e].primKey,i[e].indexes)})),qn(e,n),yt.follow((()=>e.on.populate.fire(o))).catch(s)):function({_novip:e},t,n,r){const i=[],o=e._versions;let s=e._dbSchema=tr(0,e.idbdb,r),a=!1;return o.filter((e=>e._cfg.version>=t)).forEach((o=>{i.push((()=>{const i=s,u=o._cfg.dbschema;nr(e,i,r),nr(e,u,r),s=e._dbSchema=u;const c=Xn(i,u);c.add.forEach((e=>{Qn(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((e=>{if(e.recreate)throw new Le.Upgrade("Not yet support for changing primary key");{const t=r.objectStore(e.name);e.add.forEach((e=>er(t,e))),e.change.forEach((e=>{t.deleteIndex(e.name),er(t,e)})),e.del.forEach((e=>t.deleteIndex(e)))}}));const l=o._cfg.contentUpgrade;if(l&&o._cfg.version>t){qn(e,r),n._memoizedTables={},a=!0;let t=ae(u);c.del.forEach((e=>{t[e]=i[e]})),Zn(e,[e.Transaction.prototype]),Wn(e,[e.Transaction.prototype],z(t),t),n.schema=t;const o=_e(l);let s;o&&Bt();const h=yt.follow((()=>{if(s=l(n),s&&o){var e=Ft.bind(null,null);s.then(e,e)}}));return s&&"function"==typeof s.then?yt.resolve(s):h.then((()=>s))}})),i.push((t=>{a&&rn||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((n=>null==e[n]&&t.db.deleteObjectStore(n)))}(o._cfg.dbschema,t),Zn(e,[e.Transaction.prototype]),Wn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema}))})),function e(){return i.length?yt.resolve(i.shift()(n.idbtrans)).then(e):yt.resolve()}().then((()=>{var e,t;t=r,z(e=s).forEach((n=>{t.db.objectStoreNames.contains(n)||Qn(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,o,n).catch(s)}))}function Xn(e,t){const n={del:[],add:[],change:[]};let r;for(r in e)t[r]||n.del.push(r);for(r in t){const i=e[r],o=t[r];if(i){const e={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(o.primKey.keyPath||"")||i.primKey.auto!==o.primKey.auto&&!nn)e.recreate=!0,n.change.push(e);else{const t=i.idxByName,r=o.idxByName;let s;for(s in t)r[s]||e.del.push(s);for(s in r){const n=t[s],i=r[s];n?n.src!==i.src&&e.change.push(i):e.add.push(i)}(e.del.length>0||e.add.length>0||e.change.length>0)&&n.change.push(e)}}else n.add.push([r,o])}return n}function Qn(e,t,n,r){const i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((e=>er(i,e))),i}function er(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tr(e,t,n){const r={};return ee(t.objectStoreNames,0).forEach((e=>{const t=n.objectStore(e);let i=t.keyPath;const o=Pn(Bn(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),s=[];for(let e=0;e{if(null!==e[n]){var r=e[n].split(",").map(((e,t)=>{const n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return Pn(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),V(r),0===t)})),i=r.shift();if(i.multi)throw new Le.Schema("Primary key cannot be multi-valued");r.forEach((e=>{if(e.auto)throw new Le.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Le.Schema("Index must have a name and cannot be an empty string")})),t[n]=Fn(n,i,r)}}))}stores(e){const t=this.db;this._cfg.storesSource=this._cfg.storesSource?U(this._cfg.storesSource,e):e;const n=t._versions,r={};let i={};return n.forEach((e=>{U(r,e._cfg.storesSource),i=e._cfg.dbschema={},e._parseStoresSpec(r,i)})),t._dbSchema=i,Zn(t,[t._allTables,t,t.Transaction.prototype]),Wn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],z(i),i),t._storeNames=z(i),this}upgrade(e){return this._cfg.contentUpgrade=We(this._cfg.contentUpgrade||Fe,e),this}}function ir(e,t){let n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Or("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function or(e){return e&&"function"==typeof e.databases}function sr(e){return Pt((function(){return ft.letThrough=!0,e()}))}function ar(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function ur(e){var t=t=>e.next(t),n=i(t),r=i((t=>e.throw(t)));function i(e){return t=>{var i=e(t),o=i.value;return i.done?o:o&&"function"==typeof o.then?o.then(n,r):V(o)?Promise.all(o).then(n,r):n(o)}}return i(t)()}function cr(e,t,n){var r=arguments.length;if(r<2)throw new Le.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,ce(i),n]}function lr(e,t,n,r,i){return yt.resolve().then((()=>{const o=ft.transless||ft,s=e._createTransaction(t,n,e._dbSchema,r),a={trans:s,transless:o};if(r)s.idbtrans=r.idbtrans;else try{s.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===Re.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((()=>lr(e,t,n,null,i)))):Jt(r)}const u=_e(i);let c;u&&Bt();const l=yt.follow((()=>{if(c=i.call(s,s),c)if(u){var e=Ft.bind(null,null);c.then(e,e)}else"function"==typeof c.next&&"function"==typeof c.throw&&(c=ur(c))}),a);return(c&&"function"==typeof c.then?yt.resolve(c).then((e=>s.active?e:Jt(new Le.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")))):l.then((()=>c))).then((e=>(r&&s._resolve(),s._completion.then((()=>e))))).catch((e=>(s._reject(e),Jt(e))))}))}function hr(e,t,n){const r=V(e)?e.slice():[e];for(let e=0;e0,l={...n,isVirtual:c,keyTail:t,keyLength:u,extractKey:Vn(e),unique:!c&&n.unique};return a.push(l),l.isPrimaryKey||o.push(l),u>1&&s(2===u?e[0]:e.slice(0,u-1),t+1,n),a.sort(((e,t)=>e.keyTail-t.keyTail)),l}const a=s(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[a];for(const e of r.indexes)s(e.keyPath,0,e);function u(t){const n=t.query.index;return n.isVirtual?{...t,query:{index:n,range:(r=t.query.range,i=n.keyTail,{type:1===r.type?2:r.type,lower:hr(r.lower,r.lowerOpen?e.MAX_KEY:e.MIN_KEY,i),lowerOpen:!0,upper:hr(r.upper,r.upperOpen?e.MIN_KEY:e.MAX_KEY,i),upperOpen:!0})}}:t;var r,i}const c={...n,schema:{...r,primaryKey:a,indexes:o,getIndexByKeyPath:function(e){const t=i[Kn(e)];return t&&t[0]}},count:e=>n.count(u(e)),query:e=>n.query(u(e)),openCursor(t){const{keyTail:r,isVirtual:i,keyLength:o}=t.query.index;return i?n.openCursor(u(t)).then((n=>n&&function(n){const i=Object.create(n,{continue:{value:function(i){null!=i?n.continue(hr(i,t.reverse?e.MAX_KEY:e.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,o).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value(t,i){n.continuePrimaryKey(hr(t,e.MAX_KEY,r),i)}},primaryKey:{get:()=>n.primaryKey},key:{get(){const e=n.key;return 1===o?e[0]:e.slice(0,o)}},value:{get:()=>n.value}});return i}(n))):n.openCursor(t)}};return c}}}};function dr(e,t,n,r){return n=n||{},r=r||"",z(e).forEach((i=>{if(H(t,i)){var o=e[i],s=t[i];if("object"==typeof o&&"object"==typeof s&&o&&s){const e=ye(o);e!==ye(s)?n[r+i]=t[i]:"Object"===e?dr(o,s,n,r+i+"."):o!==s&&(n[r+i]=t[i])}else o!==s&&(n[r+i]=t[i])}else n[r+i]=void 0})),z(t).forEach((i=>{H(e,i)||(n[r+i]=t[i])})),n}const pr={stack:"dbcore",name:"HooksMiddleware",level:2,create:e=>({...e,table(t){const n=e.table(t),{primaryKey:r}=n.schema,i={...n,mutate(e){const i=ft.trans,{deleting:o,creating:s,updating:a}=i.table(t).hook;switch(e.type){case"add":if(s.fire===Fe)break;return i._promise("readwrite",(()=>u(e)),!0);case"put":if(s.fire===Fe&&a.fire===Fe)break;return i._promise("readwrite",(()=>u(e)),!0);case"delete":if(o.fire===Fe)break;return i._promise("readwrite",(()=>u(e)),!0);case"deleteRange":if(o.fire===Fe)break;return i._promise("readwrite",(()=>function(e){return c(e.trans,e.range,1e4)}(e)),!0)}return n.mutate(e);function u(e){const t=ft.trans,i=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!i)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?{...e,keys:i}:{...e}).type&&(e.values=[...e.values]),e.keys&&(e.keys=[...e.keys]),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,i).then((u=>{const c=i.map(((n,i)=>{const c=u[i],l={onerror:null,onsuccess:null};if("delete"===e.type)o.fire.call(l,n,c,t);else if("add"===e.type||void 0===c){const o=s.fire.call(l,n,e.values[i],t);null==n&&null!=o&&(n=o,e.keys[i]=n,r.outbound||se(e.values[i],r.keyPath,n))}else{const r=dr(c,e.values[i]),o=a.fire.call(l,r,n,c,t);if(o){const t=e.values[i];Object.keys(o).forEach((e=>{H(t,e)?t[e]=o[e]:se(t,e,o[e])}))}}return l}));return n.mutate(e).then((({failures:t,results:n,numFailures:r,lastResult:o})=>{for(let r=0;r(c.forEach((t=>t.onerror&&t.onerror(e))),Promise.reject(e))))}))}function c(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((({result:n})=>u({type:"delete",keys:n,trans:e}).then((r=>r.numFailures>0?Promise.reject(r.failures[0]):n.length({table:t=>{const n=e.table(t);return{...n,getMany:e=>{if(!e.cache)return n.getMany(e);const t=mr(e.keys,e.trans._cache,"clone"===e.cache);return t?yt.resolve(t):n.getMany(e).then((t=>(e.trans._cache={keys:e.keys,values:"clone"===e.cache?de(t):t},t)))},mutate:e=>("add"!==e.type&&(e.trans._cache=null),n.mutate(e))}}})};function gr(e){return!("from"in e)}const vr=function(e,t){if(!this){const t=new vr;return e&&"d"in e&&U(t,e),t}U(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function wr(e,t,n){const r=bn(t,n);if(isNaN(r))return;if(r>0)throw RangeError();if(gr(e))return U(e,{from:t,to:n,d:1});const i=e.l,o=e.r;if(bn(n,e.from)<0)return i?wr(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},kr(e);if(bn(t,e.to)>0)return o?wr(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},kr(e);bn(t,e.from)<0&&(e.from=t,e.l=null,e.d=o?o.d+1:1),bn(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);const s=!e.r;i&&!e.l&&br(e,i),o&&s&&br(e,o)}function br(e,t){gr(t)||function e(t,{from:n,to:r,l:i,r:o}){wr(t,n,r),i&&e(t,i),o&&e(t,o)}(e,t)}function _r(e){let t=gr(e)?null:{s:0,n:e};return{next(e){const n=arguments.length>0;for(;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&bn(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||bn(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function kr(e){var t,n;const r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){const t="r"===i?"l":"r",n={...e},r=e[i];e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],e[t]=n,n.d=xr(n)}e.d=xr(e)}function xr({r:e,l:t}){return(e?t?Math.max(e.d,t.d):e.d:t?t.d:0)+1}q(vr.prototype,{add(e){return br(this,e),this},addKey(e){return wr(this,e,e),this},addKeys(e){return e.forEach((e=>wr(this,e,e))),this},[ge](){return _r(this)}});const Er={stack:"dbcore",level:0,create:e=>{const t=e.schema.name,n=new vr(e.MIN_KEY,e.MAX_KEY);return{...e,table:r=>{const i=e.table(r),{schema:o}=i,{primaryKey:s}=o,{extractKey:a,outbound:u}=s,c={...i,mutate:e=>{const s=e.trans,a=s.mutatedParts||(s.mutatedParts={}),u=e=>{const n=`idb://${t}/${r}/${e}`;return a[n]||(a[n]=new vr)},c=u(""),l=u(":dels"),{type:h}=e;let[f,d]="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[];const p=e.trans._cache;return i.mutate(e).then((e=>{if(V(f)){"delete"!==h&&(f=e.results),c.addKeys(f);const t=mr(f,p);t||"add"===h||l.addKeys(f),(t||d)&&function(e,t,n,r){t.indexes.forEach((function(t){const i=e(t.name||"");function o(e){return null!=e?t.extractKey(e):null}const s=e=>t.multiEntry&&V(e)?e.forEach((e=>i.addKey(e))):i.addKey(e);(n||r).forEach(((e,t)=>{const i=n&&o(n[t]),a=r&&o(r[t]);0!==bn(i,a)&&(null!=i&&s(i),null!=a&&s(a))}))}))}(u,o,t,d)}else if(f){const e={from:f.lower,to:f.upper};l.add(e),c.add(e)}else c.add(n),l.add(n),o.indexes.forEach((e=>u(e.name).add(n)));return e}))}},l=({query:{index:t,range:n}})=>{var r,i;return[t,new vr(null!==(r=n.lower)&&void 0!==r?r:e.MIN_KEY,null!==(i=n.upper)&&void 0!==i?i:e.MAX_KEY)]},h={get:e=>[s,new vr(e.key)],getMany:e=>[s,(new vr).addKeys(e.keys)],count:l,query:l,openCursor:l};return z(h).forEach((e=>{c[e]=function(o){const{subscr:s}=ft;if(s){const c=e=>{const n=`idb://${t}/${r}/${e}`;return s[n]||(s[n]=new vr)},l=c(""),f=c(":dels"),[d,p]=h[e](o);if(c(d.name||"").add(p),!d.isPrimaryKey){if("count"!==e){const t="query"===e&&u&&o.values&&i.query({...o,values:!1});return i[e].apply(this,arguments).then((n=>{if("query"===e){if(u&&o.values)return t.then((({result:e})=>(l.addKeys(e),n)));const e=o.values?n.result.map(a):n.result;o.values?l.addKeys(e):f.addKeys(e)}else if("openCursor"===e){const e=n,t=o.values;return e&&Object.create(e,{key:{get:()=>(f.addKey(e.primaryKey),e.key)},primaryKey:{get(){const t=e.primaryKey;return f.addKey(t),t}},value:{get:()=>(t&&l.addKey(e.primaryKey),e.value)}})}return n}))}f.add(n)}}return i[e].apply(this,arguments)}})),c}}}};class Or{constructor(e,t){this._middlewares={},this.verno=0;const n=Or.dependencies;this._options=t={addons:Or.addons,autoOpen:!0,indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange,...t},this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange};const{addons:r}=t;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Fe,dbReadyPromise:null,cancelOpen:Fe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var o;i.dbReadyPromise=new yt((e=>{i.dbReadyResolve=e})),i.openCanceller=new yt(((e,t)=>{i.cancelOpen=t})),this._state=i,this.name=e,this.on=hn(this,"populate","blocked","versionchange","close",{ready:[We,Fe]}),this.on.ready.subscribe=te(this.on.ready.subscribe,(e=>(t,n)=>{Or.vip((()=>{const r=this._state;if(r.openComplete)r.dbOpenError||yt.resolve().then(t),n&&e(t);else if(r.onReadyBeingFired)r.onReadyBeingFired.push(t),n&&e(t);else{e(t);const r=this;n||e((function e(){r.on.ready.unsubscribe(t),r.on.ready.unsubscribe(e)}))}}))})),this.Collection=(o=this,fn(xn.prototype,(function(e,t){this.db=o;let n=un,r=null;if(t)try{n=t()}catch(e){r=e}const i=e._ctx,s=i.table,a=s.hook.reading.fire;this._ctx={table:s,index:i.index,isPrimKey:!i.index||s.schema.primKey.keyPath&&i.index===s.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:i.or,valueMapper:a!==ze?a:null}}))),this.Table=function(e){return fn(ln.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:hn(null,{creating:[Ge,Fe],reading:[Ve,ze],updating:[He,Fe],deleting:[Ke,Fe]})}))}(this),this.Transaction=function(e){return fn(Ln.prototype,(function(t,n,r,i,o){this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=i,this.idbtrans=null,this.on=hn(this,"complete","error","abort"),this.parent=o||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new yt(((e,t)=>{this._resolve=e,this._reject=t})),this._completion.then((()=>{this.active=!1,this.on.complete.fire()}),(e=>{var t=this.active;return this.active=!1,this.on.error.fire(e),this.parent?this.parent._reject(e):t&&this.idbtrans&&this.idbtrans.abort(),Jt(e)}))}))}(this),this.Version=function(e){return fn(rr.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return fn(Dn.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};const i=e._deps.indexedDB;if(!i)throw new Le.MissingAPI;this._cmp=this._ascending=i.cmp.bind(i),this._descending=(e,t)=>i.cmp(t,e),this._max=(e,t)=>i.cmp(e,t)>0?e:t,this._min=(e,t)=>i.cmp(e,t)<0?e:t,this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(e=>{e.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()})),this.on("blocked",(e=>{!e.newVersion||e.newVersionnew this.Transaction(e,t,n,this._options.chromeTransactionDurability,r),this._fireOnBlocked=e=>{this.on("blocked").fire(e),tn.filter((e=>e.name===this.name&&e!==this&&!e._state.vcFired)).map((t=>t.on("versionchange").fire(e)))},this.use(fr),this.use(pr),this.use(Er),this.use(yr),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach((e=>e(this)))}version(e){if(isNaN(e)||e<.1)throw new Le.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Le.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const t=this._versions;var n=t.filter((t=>t._cfg.version===e))[0];return n||(n=new this.Version(e),t.push(n),t.sort(Yn),n.stores({}),this._state.autoSchema=!1,n)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ft.letThrough||this._vip)?e():new yt(((e,t)=>{if(this._state.openComplete)return t(new Le.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void t(new Le.DatabaseClosed);this.open().catch(Fe)}this._state.dbReadyPromise.then(e,t)})).then(e)}use({stack:e,create:t,level:n,name:r}){r&&this.unuse({stack:e,name:r});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:t,level:null==n?10:n,name:r}),i.sort(((e,t)=>e.level-t.level)),this}unuse({stack:e,name:t,create:n}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter((e=>n?e.create!==n:!!t&&e.name!==t))),this}open(){return function(e){const t=e._state,{indexedDB:n}=e._deps;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((()=>t.dbOpenError?Jt(t.dbOpenError):e));ke&&(t.openCanceller._stackHolder=Se()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;const r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Le.DatabaseClosed("db.open() was cancelled")}let o=t.dbReadyResolve,s=null,a=!1;return yt.race([r,("undefined"==typeof navigator?yt.resolve():ar()).then((()=>new yt(((r,o)=>{if(i(),!n)throw new Le.MissingAPI;const u=e.name,c=t.autoSchema?n.open(u):n.open(u,Math.round(10*e.verno));if(!c)throw new Le.MissingAPI;c.onerror=$n(o),c.onblocked=Ct(e._fireOnBlocked),c.onupgradeneeded=Ct((r=>{if(s=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=Rn,s.abort(),c.result.close();const e=n.deleteDatabase(u);e.onsuccess=e.onerror=Ct((()=>{o(new Le.NoSuchDatabase(`Database ${u} doesnt exist`))}))}else{s.onerror=$n(o);var i=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;a=i<1,e._novip.idbdb=c.result,Jn(e,i/10,s,o)}}),o),c.onsuccess=Ct((()=>{s=null;const n=e._novip.idbdb=c.result,i=ee(n.objectStoreNames);if(i.length>0)try{const r=n.transaction(1===(o=i).length?o[0]:o,"readonly");t.autoSchema?function({_novip:e},t,n){e.verno=t.version/10;const r=e._dbSchema=tr(0,t,n);e._storeNames=ee(t.objectStoreNames,0),Wn(e,[e._allTables],z(r),r)}(e,n,r):(nr(e,e._dbSchema,r),function(e,t){const n=Xn(tr(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((e=>e.add.length||e.change.length)))}(e,r)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),qn(e,r)}catch(e){}var o;tn.push(e),n.onversionchange=Ct((n=>{t.vcFired=!0,e.on("versionchange").fire(n)})),n.onclose=Ct((t=>{e.on("close").fire(t)})),a&&function({indexedDB:e,IDBKeyRange:t},n){!or(e)&&"__dbnames"!==n&&ir(e,t).put({name:n}).catch(Fe)}(e._deps,u),r()}),o)}))))]).then((()=>(i(),t.onReadyBeingFired=[],yt.resolve(sr((()=>e.on.ready.fire(e.vip)))).then((function n(){if(t.onReadyBeingFired.length>0){let r=t.onReadyBeingFired.reduce(We,Fe);return t.onReadyBeingFired=[],yt.resolve(sr((()=>r(e.vip)))).then(n)}}))))).finally((()=>{t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((()=>e)).catch((n=>{t.dbOpenError=n;try{s&&s.abort()}catch(e){}return r===t.openCanceller&&e._close(),Jt(n)})).finally((()=>{t.openComplete=!0,o()}))}(this)}_close(){const e=this._state,t=tn.indexOf(this);if(t>=0&&tn.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new yt((t=>{e.dbReadyResolve=t})),e.openCanceller=new yt(((t,n)=>{e.cancelOpen=n}))}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new Le.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,t=this._state;return new yt(((n,r)=>{const i=()=>{this.close();var e=this._deps.indexedDB.deleteDatabase(this.name);e.onsuccess=Ct((()=>{!function({indexedDB:e,IDBKeyRange:t},n){!or(e)&&"__dbnames"!==n&&ir(e,t).delete(n).catch(Fe)}(this._deps,this.name),n()})),e.onerror=$n(r),e.onblocked=this._fireOnBlocked};if(e)throw new Le.InvalidArgument("Arguments not allowed in db.delete()");t.isBeingOpened?t.dbReadyPromise.then(i):i()}))}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return z(this._allTables).map((e=>this._allTables[e]))}transaction(){const e=cr.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,t,n){let r=ft.trans;r&&r.db===this&&-1===e.indexOf("!")||(r=null);const i=-1!==e.indexOf("?");let o,s;e=e.replace("!","").replace("?","");try{if(s=t.map((e=>{var t=e instanceof this.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)o="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new Le.InvalidArgument("Invalid transaction mode: "+e);o="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===o){if(!i)throw new Le.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&s.forEach((e=>{if(r&&-1===r.storeNames.indexOf(e)){if(!i)throw new Le.SubTransaction("Table "+e+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(e){return r?r._promise(null,((t,n)=>{n(e)})):Jt(e)}const a=lr.bind(null,this,o,s,r,n);return r?r._promise(o,a,"lock"):ft.trans?Ht(ft.transless,(()=>this._whenReady(a))):this._whenReady(a)}table(e){if(!H(this._allTables,e))throw new Le.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const Sr="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable";class Tr{constructor(e){this._subscribe=e}subscribe(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})}[Sr](){return this}}function Mr(e,t){return z(t).forEach((n=>{br(e[n]||(e[n]=new vr),t[n])})),e}let Ar;try{Ar={indexedDB:F.indexedDB||F.mozIndexedDB||F.webkitIndexedDB||F.msIndexedDB,IDBKeyRange:F.IDBKeyRange||F.webkitIDBKeyRange}}catch(F){Ar={indexedDB:null,IDBKeyRange:null}}const Ir=Or;function Cr(e){let t=Nr;try{Nr=!0,jn.storagemutated.fire(e)}finally{Nr=t}}q(Ir,{...Be,delete:e=>new Ir(e,{addons:[]}).delete(),exists:e=>new Ir(e,{addons:[]}).open().then((e=>(e.close(),!0))).catch("NoSuchDatabaseError",(()=>!1)),getDatabaseNames(e){try{return function({indexedDB:e,IDBKeyRange:t}){return or(e)?Promise.resolve(e.databases()).then((e=>e.map((e=>e.name)).filter((e=>"__dbnames"!==e)))):ir(e,t).toCollection().primaryKeys()}(Ir.dependencies).then(e)}catch(e){return Jt(new Le.MissingAPI)}},defineClass:()=>function(e){U(this,e)},ignoreTransaction:e=>ft.trans?Ht(ft.transless,e):e(),vip:sr,async:function(e){return function(){try{var t=ur(e.apply(this,arguments));return t&&"function"==typeof t.then?t:yt.resolve(t)}catch(e){return Jt(e)}}},spawn:function(e,t,n){try{var r=ur(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:yt.resolve(r)}catch(e){return Jt(e)}},currentTransaction:{get:()=>ft.trans||null},waitFor:function(e,t){const n=yt.resolve("function"==typeof e?Ir.ignoreTransaction(e):e).timeout(t||6e4);return ft.trans?ft.trans.waitFor(n):n},Promise:yt,debug:{get:()=>ke,set:e=>{xe(e,"dexie"===e?()=>!0:sn)}},derive:Y,extend:U,props:q,override:te,Events:hn,on:jn,liveQuery:function(e){return new Tr((t=>{const n=_e(e);let r=!1,i={},o={};const s={get closed(){return r},unsubscribe:()=>{r=!0,jn.storagemutated.unsubscribe(l)}};t.start&&t.start(s);let a=!1,u=!1;function c(){return z(o).some((e=>i[e]&&function(e,t){const n=_r(t);let r=n.next();if(r.done)return!1;let i=r.value;const o=_r(e);let s=o.next(i.from),a=s.value;for(;!r.done&&!s.done;){if(bn(a.from,i.to)<=0&&bn(a.to,i.from)>=0)return!0;bn(i.from,a.from)<0?i=(r=n.next(a.from)).value:a=(s=o.next(i.from)).value}return!1}(i[e],o[e])))}const l=e=>{Mr(i,e),c()&&h()},h=()=>{if(a||r)return;i={};const f={},d=function(t){n&&Bt();const r=()=>Pt(e,{subscr:t,trans:null}),i=ft.trans?Ht(ft.transless,r):r();return n&&i.then(Ft,Ft),i}(f);u||(jn("storagemutated",l),u=!0),a=!0,Promise.resolve(d).then((e=>{a=!1,r||(c()?h():(i={},o=f,t.next&&t.next(e)))}),(e=>{a=!1,t.error&&t.error(e),s.unsubscribe()}))};return h(),s}))},extendObservabilitySet:Mr,getByKeyPath:oe,setByKeyPath:se,delByKeyPath:function(e,t){"string"==typeof t?se(e,t,void 0):"length"in t&&[].map.call(t,(function(t){se(e,t,void 0)}))},shallowClone:ae,deepClone:de,getObjectDiff:dr,cmp:bn,asap:re,minKey:-1/0,addons:[],connections:tn,errnames:Re,dependencies:Ar,semVer:"3.2.3",version:"3.2.3".split(".").map((e=>parseInt(e))).reduce(((e,t,n)=>e+t/Math.pow(10,2*n)))}),Ir.maxKey=zn(Ir.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(jn("storagemutated",(e=>{if(!Nr){let t;nn?(t=document.createEvent("CustomEvent"),t.initCustomEvent("x-storagemutated-1",!0,!0,e)):t=new CustomEvent("x-storagemutated-1",{detail:e}),Nr=!0,dispatchEvent(t),Nr=!1}})),addEventListener("x-storagemutated-1",(({detail:e})=>{Nr||Cr(e)})));let Nr=!1;if("undefined"!=typeof BroadcastChannel){const e=new BroadcastChannel("x-storagemutated-1");"function"==typeof e.unref&&e.unref(),jn("storagemutated",(t=>{Nr||e.postMessage(t)})),e.onmessage=e=>{e.data&&Cr(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){jn("storagemutated",(e=>{try{Nr||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach((t=>t.postMessage({type:"x-storagemutated-1",changedParts:e}))))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(e=>{if("x-storagemutated-1"===e.key){const t=JSON.parse(e.newValue);t&&Cr(t.changedParts)}}));const e=self.document&&navigator.serviceWorker;e&&e.addEventListener("message",(function({data:e}){e&&"x-storagemutated-1"===e.type&&Cr(e.changedParts)}))}yt.rejectionMapper=function(e,t){if(!e||e instanceof Ce||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Pe[e.name])return e;var n=new Pe[e.name](t||e.message,e);return"stack"in e&&Z(n,"stack",{get:function(){return this.inner.stack}}),n},xe(ke,sn),new Or("ScriptCat"),new Error("数据保存失败");const Dr=Symbol.for("yaml.alias"),$r=Symbol.for("yaml.document"),Rr=Symbol.for("yaml.map"),jr=Symbol.for("yaml.pair"),Lr=Symbol.for("yaml.scalar"),Pr=Symbol.for("yaml.seq"),Br=Symbol.for("yaml.node.type"),Fr=e=>!!e&&"object"==typeof e&&e[Br]===Dr,zr=e=>!!e&&"object"==typeof e&&e[Br]===$r,Vr=e=>!!e&&"object"==typeof e&&e[Br]===Rr,Ur=e=>!!e&&"object"==typeof e&&e[Br]===jr,Gr=e=>!!e&&"object"==typeof e&&e[Br]===Lr,Kr=e=>!!e&&"object"==typeof e&&e[Br]===Pr;function Hr(e){if(e&&"object"==typeof e)switch(e[Br]){case Rr:case Pr:return!0}return!1}function qr(e){if(e&&"object"==typeof e)switch(e[Br]){case Dr:case Rr:case Lr:case Pr:return!0}return!1}const Wr=e=>(Gr(e)||Hr(e))&&!!e.anchor;class Zr{constructor(e){Object.defineProperty(this,Br,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}}const Yr=Symbol("break visit"),Jr=Symbol("skip children"),Xr=Symbol("remove node");function Qr(e,t){const n=ri(t);zr(e)?ei(null,e.contents,n,Object.freeze([e]))===Xr&&(e.contents=null):ei(null,e,n,Object.freeze([]))}function ei(e,t,n,r){const i=ii(e,t,n,r);if(qr(i)||Ur(i))return oi(e,r,i),ei(e,i,n,r);if("symbol"!=typeof i)if(Hr(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,(e=>si[e]));class ui{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ui.defaultYaml,e),this.tags=Object.assign({},ui.defaultTags,t)}clone(){const e=new ui(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new ui(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ui.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ui.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:ui.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ui.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;const[e]=n;return"1.1"===e||"1.2"===e?(this.yaml.version=e,!0):(t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1)}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){const n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}const[,n,r]=e.match(/^(.*!)([^!]*)$/);r||t(`The ${e} tag has no suffix`);const i=this.tags[n];return i?i+decodeURIComponent(r):"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ai(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&qr(e.contents)){const t={};Qr(e.contents,((e,n)=>{qr(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[];for(const[i,o]of n)"!!"===i&&"tag:yaml.org,2002:"===o||e&&!r.some((e=>e.startsWith(o)))||t.push(`%TAG ${i} ${o}`);return t.join("\n")}}function ci(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const t=JSON.stringify(e);throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}ui.defaultYaml={explicit:!1,version:"1.2"},ui.defaultTags={"!!":"tag:yaml.org,2002:"};class li extends Zr{constructor(e){super(Dr),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Qr(e,{Node:(e,n)=>{if(n===this)return Qr.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r);if(!o){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(e)}const s=n.get(o);if(!s||void 0===s.res)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=hi(r,o,n)),s.count*s.aliasCount>i))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");return s.res}toString(e,t,n){const r=`*${this.source}`;if(e){if(ci(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}function hi(e,t,n){if(Fr(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(Hr(t)){let r=0;for(const i of t.items){const t=hi(e,i,n);t>r&&(r=t)}return r}if(Ur(t)){const r=hi(e,t.key,n),i=hi(e,t.value,n);return Math.max(r,i)}return 1}function fi(e,t,n){if(Array.isArray(e))return e.map(((e,t)=>fi(e,String(t),n)));if(e&&"function"==typeof e.toJSON){if(!n||!Wr(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}const di=e=>!e||"function"!=typeof e&&"object"!=typeof e;class pi extends Zr{constructor(e){super(Lr),this.value=e}toJSON(e,t){return t?.keep?this.value:fi(this.value,e,t)}toString(){return String(this.value)}}pi.BLOCK_FOLDED="BLOCK_FOLDED",pi.BLOCK_LITERAL="BLOCK_LITERAL",pi.PLAIN="PLAIN",pi.QUOTE_DOUBLE="QUOTE_DOUBLE",pi.QUOTE_SINGLE="QUOTE_SINGLE";const mi="tag:yaml.org,2002:";function yi(e,t,n){if(zr(e)&&(e=e.contents),qr(e))return e;if(Ur(e)){const t=n.schema[Rr].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:o,schema:s,sourceObjects:a}=n;let u;if(r&&e&&"object"==typeof e){if(u=a.get(e),u)return u.anchor||(u.anchor=i(e)),new li(u.anchor);u={anchor:null,node:null},a.set(e,u)}t?.startsWith("!!")&&(t=mi+t.slice(2));let c=function(e,t,n){if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>t.identify?.(e)&&!t.format))}(e,t,s.tags);if(!c){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){const t=new pi(e);return u&&(u.node=t),t}c=e instanceof Map?s[Rr]:Symbol.iterator in Object(e)?s[Pr]:s[Rr]}o&&(o(c),delete n.onTagObj);const l=c?.createNode?c.createNode(n.schema,e,n):new pi(e);return t&&(l.tag=t),u&&(u.node=l),l}function gi(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){const n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){const e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return yi(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}class vi extends Zr{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map((t=>qr(t)||Ur(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if((e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done)(e))this.add(t);else{const[n,...r]=e,i=this.get(n,!0);if(Hr(i))i.addIn(r,t);else{if(void 0!==i||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,gi(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e;if(0===n.length)return this.delete(t);const r=this.get(t,!0);if(Hr(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&Gr(i)?i.value:i:Hr(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every((t=>{if(!Ur(t))return!1;const n=t.value;return null==n||e&&Gr(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t);const r=this.get(t,!0);return!!Hr(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0);if(Hr(e))e.setIn(r,t);else{if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);this.set(n,gi(this.schema,r,t))}}}}vi.maxFlowStringSingleLineLength=60;const wi=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function bi(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const _i=(e,t,n)=>e.endsWith("\n")?bi(n,t):n.includes("\n")?"\n"+bi(n,t):(e.endsWith(" ")?"":" ")+n,ki="flow",xi="block",Ei="quoted";function Oi(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:o=20,onFold:s,onOverflow:a}={}){if(!i||i<0)return e;const u=Math.max(1+o,1+i-t.length);if(e.length<=u)return e;const c=[],l={};let h,f,d=i-t.length;"number"==typeof r&&(r>i-Math.max(2,o)?c.push(0):d=i-r);let p=!1,m=-1,y=-1,g=-1;n===xi&&(m=Si(e,m),-1!==m&&(d=m+u));for(let t;t=e[m+=1];){if(n===Ei&&"\\"===t){switch(y=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}g=m}if("\n"===t)n===xi&&(m=Si(e,m)),d=m+u,h=void 0;else{if(" "===t&&f&&" "!==f&&"\n"!==f&&"\t"!==f){const t=e[m+1];t&&" "!==t&&"\n"!==t&&"\t"!==t&&(h=m)}if(m>=d)if(h)c.push(h),d=h+u,h=void 0;else if(n===Ei){for(;" "===f||"\t"===f;)f=t,t=e[m+=1],p=!0;const n=m>g+1?m-2:y-1;if(l[n])return e;c.push(n),l[n]=!0,d=n+u,h=void 0}else p=!0}f=t}if(p&&a&&a(),0===c.length)return e;s&&s();let v=e.slice(0,c[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Mi=e=>/^(%|---|\.\.\.)/m.test(e);function Ai(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,o=t.indent||(Mi(e)?" ":"");let s="",a=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(s+=n.slice(a,e)+"\\ ",e+=1,a=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{s+=n.slice(a,e);const t=n.substr(e+2,4);switch(t){case"0000":s+="\\0";break;case"0007":s+="\\a";break;case"000b":s+="\\v";break;case"001b":s+="\\e";break;case"0085":s+="\\N";break;case"00a0":s+="\\_";break;case"2028":s+="\\L";break;case"2029":s+="\\P";break;default:"00"===t.substr(0,2)?s+="\\x"+t.substr(2):s+=n.substr(e,6)}e+=5,a=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(n=t+1,i-n<=r)return!1}return!0}(n,u,c.length));if(!n)return l?"|\n":">\n";let h,f;for(f=n.length;f>0;--f){const e=n[f-1];if("\n"!==e&&"\t"!==e&&" "!==e)break}let d=n.substring(f);const p=d.indexOf("\n");-1===p?h="-":n===d||p!==d.length-1?(h="+",o&&o()):h="",d&&(n=n.slice(0,-d.length),"\n"===d[d.length-1]&&(d=d.slice(0,-1)),d=d.replace(/\n+(?!\n|$)/g,`$&${c}`));let m,y=!1,g=-1;for(m=0;m")+(y?c?"2":"1":"")+h;return e&&(w+=" "+a(e.replace(/ ?[\r\n]+/g," ")),i&&i()),l?`${w}\n${c}${v}${n=n.replace(/\n+/g,`$&${c}`)}${d}`:`${w}\n${c}${Oi(`${v}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${d}`,c,xi,Ti(r,!0))}`}function Di(e,t,n,r){const{implicitKey:i,inFlow:o}=t,s="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)});let{type:a}=e;a!==pi.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(s.value)&&(a=pi.QUOTE_DOUBLE);const u=e=>{switch(e){case pi.BLOCK_FOLDED:case pi.BLOCK_LITERAL:return i||o?Ci(s.value,t):Ni(s,t,n,r);case pi.QUOTE_DOUBLE:return Ai(s.value,t);case pi.QUOTE_SINGLE:return Ii(s.value,t);case pi.PLAIN:return function(e,t,n,r){const{type:i,value:o}=e,{actualString:s,implicitKey:a,indent:u,indentStep:c,inFlow:l}=t;if(a&&/[\n[\]{},]/.test(o)||l&&/[[\]{},]/.test(o))return Ci(o,t);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return a||l||!o.includes("\n")?Ci(o,t):Ni(e,t,n,r);if(!a&&!l&&i!==pi.PLAIN&&o.includes("\n"))return Ni(e,t,n,r);if(Mi(o)){if(""===u)return t.forceBlockIndent=!0,Ni(e,t,n,r);if(a&&u===c)return Ci(o,t)}const h=o.replace(/\n+/g,`$&\n${u}`);if(s){const e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(h),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return Ci(o,t)}return a?h:Oi(h,u,ki,Ti(t,!1))}(s,t,n,r);default:return null}};let c=u(a);if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(c=u(r),null===c)throw new Error(`Unsupported default string type ${r}`)}return c}function $i(e,t,n,r){if(Ur(e))return e.toString(t,n,r);if(Fr(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const o=qr(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){if(t.tag){const n=e.filter((e=>e.tag===t.tag));if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let n,r;if(Gr(t)){r=t.value;const i=e.filter((e=>e.identify?.(r)));n=i.find((e=>e.format===t.format))??i.find((e=>!e.format))}else r=t,n=e.find((e=>e.nodeClass&&r instanceof e.nodeClass));if(!n)throw new Error(`Tag not resolved for ${r?.constructor?.name??typeof r} value`);return n}(t.doc.schema.tags,o));const s=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],o=(Gr(e)||Hr(e))&&e.anchor;o&&ci(o)&&(n.add(o),i.push(`&${o}`));const s=e.tag?e.tag:t.default?null:t.tag;return s&&i.push(r.directives.tagString(s)),i.join(" ")}(o,i,t);s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1);const a="function"==typeof i.stringify?i.stringify(o,t,n,r):Gr(o)?Di(o,t,n,r):o.toString(t,n,r);return s?Gr(o)||"{"===a[0]||"["===a[0]?`${s} ${a}`:`${s}\n${t.indent}${a}`:a}function Ri(e,t,{key:n,value:r}){if(e?.doc.schema.merge&&ji(n))if(r=Fr(r)?r.resolve(e.doc):r,Kr(r))for(const n of r.items)Li(e,t,n);else if(Array.isArray(r))for(const n of r)Li(e,t,n);else Li(e,t,r);else{const i=fi(n,"",e);if(t instanceof Map)t.set(i,fi(r,i,e));else if(t instanceof Set)t.add(i);else{const o=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(qr(e)&&n&&n.doc){const t=function(e,t){const n=Object.assign({blockQuote:!0,commentString:wi,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,{});let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}(n.doc);t.anchors=new Set;for(const e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;const o=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(o);e.length>40&&(e=e.substring(0,36)+'..."'),i=`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`,"debug"!==(r=n.doc.options.logLevel)&&"warn"!==r||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(i):console.warn(i)),n.mapKeyWarned=!0}return o}var r,i;return JSON.stringify(t)}(n,i,e),s=fi(r,o,e);o in t?Object.defineProperty(t,o,{value:s,writable:!0,enumerable:!0,configurable:!0}):t[o]=s}}return t}const ji=e=>"<<"===e||Gr(e)&&"<<"===e.value&&(!e.type||e.type===pi.PLAIN);function Li(e,t,n){const r=e&&Fr(n)?n.resolve(e.doc):n;if(!Vr(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function Pi(e,t,n){const r=yi(e,void 0,n),i=yi(t,void 0,n);return new Bi(r,i)}class Bi{constructor(e,t=null){Object.defineProperty(this,Br,{value:jr}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return qr(t)&&(t=t.clone(e)),qr(n)&&(n=n.clone(e)),new Bi(t,n)}toJSON(e,t){return Ri(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){const{allNullValues:o,doc:s,indent:a,indentStep:u,options:{commentString:c,indentSeq:l,simpleKeys:h}}=n;let f=qr(e)&&e.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Hr(e))throw new Error("With simple keys, collection cannot be used as a key value")}let d=!h&&(!e||f&&null==t&&!n.inFlow||Hr(e)||(Gr(e)?e.type===pi.BLOCK_FOLDED||e.type===pi.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(h||!o),indent:a+u});let p,m,y,g=!1,v=!1,w=$i(e,n,(()=>g=!0),(()=>v=!0));if(!d&&!n.inFlow&&w.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(o||null==t)return g&&r&&r(),""===w?"?":d?`? ${w}`:w}else if(o&&!h||null==t&&d)return w=`? ${w}`,f&&!g?w+=_i(w,n.indent,c(f)):v&&i&&i(),w;g&&(f=null),d?(f&&(w+=_i(w,n.indent,c(f))),w=`? ${w}\n${a}:`):(w=`${w}:`,f&&(w+=_i(w,n.indent,c(f)))),qr(t)?(p=!!t.spaceBefore,m=t.commentBefore,y=t.comment):(p=!1,m=null,y=null,t&&"object"==typeof t&&(t=s.createNode(t))),n.implicitKey=!1,d||f||!Gr(t)||(n.indentAtStart=w.length+1),v=!1,l||!(u.length>=2)||n.inFlow||d||!Kr(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let b=!1;const _=$i(t,n,(()=>b=!0),(()=>v=!0));let k=" ";if(f||p||m)k=p?"\n":"",m&&(k+=`\n${bi(c(m),n.indent)}`),""!==_||n.inFlow?k+=`\n${n.indent}`:"\n"===k&&(k="\n\n");else if(!d&&Hr(t)){const e=_[0],r=_.indexOf("\n"),i=-1!==r,o=n.inFlow??t.flow??0===t.items.length;if(i||!o){let t=!1;if(i&&("&"===e||"!"===e)){let n=_.indexOf(" ");"&"===e&&-1!==n&&ns=null),(()=>h=!0));s&&(a+=_i(a,o,c(s))),h&&s&&(h=!1),f.push(r+a)}let d;if(0===f.length)d=i.start+i.end;else{d=f[0];for(let e=1;eo=null));ef||s.includes("\n"))&&(h=!0),d.push(s),f=d.length}let p;const{start:m,end:y}=r;if(0===d.length)p=m+y;else if(h||(h=d.reduce(((e,t)=>e+t.length+2),2)>vi.maxFlowStringSingleLineLength),h){p=m;for(const e of d)p+=e?`\n${a}${s}${e}`:"\n";p+=`\n${s}${y}`}else p=`${m}${u}${d.join(" ")}${u}${y}`;return e&&(p+=_i(p,s,c(e)),o&&o()),p}function Ui({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const i=bi(t(r),e);n.push(i.trimStart())}}function Gi(e,t){const n=Gr(t)?t.value:t;for(const r of e)if(Ur(r)){if(r.key===t||r.key===n)return r;if(Gr(r.key)&&r.key.value===n)return r}}class Ki extends vi{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Rr,e),this.items=[]}add(e,t){let n;n=Ur(e)?e:e&&"object"==typeof e&&"key"in e?new Bi(e.key,e.value):new Bi(e,e?.value);const r=Gi(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw new Error(`Key ${n.key} already set`);Gr(r.value)&&di(n.value)?r.value.value=n.value:r.value=n.value}else if(i){const e=this.items.findIndex((e=>i(n,e)<0));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){const t=Gi(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){const n=Gi(this.items,e),r=n?.value;return(!t&&Gr(r)?r.value:r)??void 0}has(e){return!!Gi(this.items,e)}set(e,t){this.add(new Bi(e,t),!0)}toJSON(e,t,n){const r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(const e of this.items)Ri(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(const e of this.items)if(!Ur(e))throw new Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Fi(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Hi={collection:"map",createNode:function(e,t,n){const{keepUndefined:r,replacer:i}=n,o=new Ki(e),s=(e,s)=>{if("function"==typeof i)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==s||r)&&o.items.push(Pi(e,s,n))};if(t instanceof Map)for(const[e,n]of t)s(e,n);else if(t&&"object"==typeof t)for(const e of Object.keys(t))s(e,t[e]);return"function"==typeof e.sortMapEntries&&o.items.sort(e.sortMapEntries),o},default:!0,nodeClass:Ki,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(Vr(e)||t("Expected a mapping for this tag"),e)};class qi extends vi{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Pr,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Wi(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){const n=Wi(e);if("number"!=typeof n)return;const r=this.items[n];return!t&&Gr(r)?r.value:r}has(e){const t=Wi(e);return"number"==typeof t&&t=0?t:null}const Zi={collection:"seq",createNode:function(e,t,n){const{replacer:r}=n,i=new qi(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let o of t){if("function"==typeof r){const n=t instanceof Set?o:String(e++);o=r.call(t,n,o)}i.items.push(yi(o,void 0,n))}}return i},default:!0,nodeClass:qi,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(Kr(e)||t("Expected a sequence for this tag"),e)},Yi={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>Di(e,t=Object.assign({actualString:!0},t),n,r)},Ji={identify:e=>null==e,createNode:()=>new pi(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new pi(null),stringify:({source:e},t)=>"string"==typeof e&&Ji.test.test(e)?e:t.options.nullStr},Xi={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new pi("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&Xi.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function Qi({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);const i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let o=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(o)){let e=o.indexOf(".");e<0&&(e=o.length,o+=".");let n=t-(o.length-e-1);for(;n-- >0;)o+="0"}return o}const eo={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Qi(e)}},to=e=>"bigint"==typeof e||Number.isInteger(e),no=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function ro(e,t,n){const{value:r}=e;return to(r)&&r>=0?n+r.toString(t):Qi(e)}const io=[Hi,Zi,Yi,Ji,Xi,{identify:e=>to(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>no(e,2,8,n),stringify:e=>ro(e,8,"0o")},{identify:to,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>no(e,0,10,n),stringify:Qi},{identify:e=>to(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>no(e,2,16,n),stringify:e=>ro(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Qi},eo,{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new pi(parseFloat(e)),n=e.indexOf(".");return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:Qi}];function oo(e){return"bigint"==typeof e||Number.isInteger(e)}const so=({value:e})=>JSON.stringify(e),ao=[Hi,Zi].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:so},{identify:e=>null==e,createNode:()=>new pi(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:so},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:so},{identify:oo,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>oo(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:so}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),uo={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64");if("function"==typeof atob){const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");const e=r.items[0]||new Bi(new pi(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){const t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=Ur(r)?r:new Bi(r)}}else t("Expected a sequence for this tag");return e}function lo(e,t,n){const{replacer:r}=n,i=new qi(e);i.tag="tag:yaml.org,2002:pairs";let o=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let s,a;if("function"==typeof r&&(e=r.call(t,String(o++),e)),Array.isArray(e)){if(2!==e.length)throw new TypeError(`Expected [key, value] tuple: ${e}`);s=e[0],a=e[1]}else if(e&&e instanceof Object){const t=Object.keys(e);if(1!==t.length)throw new TypeError(`Expected { key: value } tuple: ${e}`);s=t[0],a=e[s]}else s=e;i.items.push(Pi(s,a,n))}return i}const ho={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:co,createNode:lo};class fo extends qi{constructor(){super(),this.add=Ki.prototype.add.bind(this),this.delete=Ki.prototype.delete.bind(this),this.get=Ki.prototype.get.bind(this),this.has=Ki.prototype.has.bind(this),this.set=Ki.prototype.set.bind(this),this.tag=fo.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t?.onCreate&&t.onCreate(n);for(const e of this.items){let r,i;if(Ur(e)?(r=fi(e.key,"",t),i=fi(e.value,r,t)):r=fi(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}}fo.tag="tag:yaml.org,2002:omap";const po={collection:"seq",identify:e=>e instanceof Map,nodeClass:fo,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=co(e,t),r=[];for(const{key:e}of n.items)Gr(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new fo,n)},createNode(e,t,n){const r=lo(e,t,n),i=new fo;return i.items=r.items,i}};function mo({value:e,source:t},n){return t&&(e?yo:go).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const yo={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new pi(!0),stringify:mo},go={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new pi(!1),stringify:mo},vo={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Qi},wo={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Qi(e)}},bo={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new pi(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){const r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:Qi},_o=e=>"bigint"==typeof e||Number.isInteger(e);function ko(e,t,n,{intAsBigInt:r}){const i=e[0];if("-"!==i&&"+"!==i||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}const t=BigInt(e);return"-"===i?BigInt(-1)*t:t}const o=parseInt(e,n);return"-"===i?-1*o:o}function xo(e,t,n){const{value:r}=e;if(_o(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return Qi(e)}const Eo={identify:_o,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ko(e,2,2,n),stringify:e=>xo(e,2,"0b")},Oo={identify:_o,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ko(e,1,8,n),stringify:e=>xo(e,8,"0")},So={identify:_o,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ko(e,0,10,n),stringify:Qi},To={identify:_o,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ko(e,2,16,n),stringify:e=>xo(e,16,"0x")};class Mo extends Ki{constructor(e){super(e),this.tag=Mo.tag}add(e){let t;t=Ur(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new Bi(e.key,null):new Bi(e,null),Gi(this.items,t.key)||this.items.push(t)}get(e,t){const n=Gi(this.items,e);return!t&&Ur(n)?Gr(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=Gi(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Bi(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}}Mo.tag="tag:yaml.org,2002:set";const Ao={collection:"map",identify:e=>e instanceof Set,nodeClass:Mo,default:!1,tag:"tag:yaml.org,2002:set",resolve(e,t){if(Vr(e)){if(e.hasAllNullValues(!0))return Object.assign(new Mo,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e},createNode(e,t,n){const{replacer:r}=n,i=new Mo(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(Pi(e,null,n));return i}};function Io(e,t){const n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),o=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*i(60)+i(t)),i(0));return"-"===n?i(-1)*o:o}function Co(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Qi(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),o=[t%i];return t<60?o.unshift(0):(t=(t-o[0])/i,o.unshift(t%i),t>=60&&(t=(t-o[0])/i,o.unshift(t))),r+o.map((e=>e<10?"0"+String(e):String(e))).join(":").replace(/000000\d*$/,"")}const No={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Io(e,n),stringify:Co},Do={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Io(e,!1),stringify:Co},$o={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match($o.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,o,s,a]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,o||0,s||0,a||0,u);const l=t[8];if(l&&"Z"!==l){let e=Io(l,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Ro=[Hi,Zi,Yi,Ji,yo,go,Eo,Oo,So,To,vo,wo,bo,uo,po,ho,Ao,No,Do,$o];new Map([["core",io],["failsafe",[Hi,Zi,Yi]],["json",ao],["yaml11",Ro],["yaml-1.1",Ro]]);class jo extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}const Lo=Symbol("break visit"),Po=Symbol("skip children"),Bo=Symbol("remove item");function Fo(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),zo(Object.freeze([]),e,t)}function zo(e,t,n){let r=n(t,e);if("symbol"==typeof r)return r;for(const i of["key","value"]){const o=t[i];if(o&&"items"in o){for(let t=0;t{let n=e;for(const[e,r]of t){const t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},Fo.parentCollection=(e,t)=>{const n=Fo.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")},"0123456789ABCDEFabcdef".split(""),"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),",[]{}".split("")," ,[]{}\n\r\t".split(""),n(1976),n(3852);var Vo,Uo,Go,Ko,Ho,qo,Wo,Zo,Yo,Jo,Xo,Qo,es,ts,ns,rs,is,os,ss,as,us,cs,ls,hs,fs,ds,ps,ms,ys,gs,vs,ws=n(4110),bs=n.n(ws);function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(n,r,i){var o=r;t.listener&&t.listener(),e.apis.set(o,{api:i.value,param:t});var s=o.replace("_",".");s!==o&&("GM.xmlhttpRequest"===s&&(s="GM.xmlHttpRequest"),e.apis.set(s,{api:i.value,param:t}))}}}]),e}();s(xs,"apis",new Map);var Es=(Vo=xs.API(),Uo=xs.API(),Go=xs.API({depend:["GM_setValue"]}),Ko=xs.API(),Ho=xs.API(),qo=xs.API(),Wo=xs.API(),Zo=xs.API(),Yo=xs.API(),Jo=xs.API({depend:["CAT_fetchBlob","CAT_createBlobUrl","CAT_fetchDocument"]}),Xo=xs.API(),Qo=xs.API(),es=xs.API(),ts=xs.API(),ns=xs.API({depend:["GM_closeInTab"]}),rs=xs.API(),is=xs.API(),os=xs.API(),ss=xs.API(),as=xs.API(),us=xs.API(),cs=xs.API(),ls=xs.API(),hs=xs.API(),fs=xs.API(),ds=xs.API(),ps=xs.API(),ms=xs.API(),ys=xs.API(),gs=xs.API({depend:["CAT_fetchBlob","CAT_createBlobUrl"]}),vs=function(){function e(){r(this,e),s(this,"valueChangeListener",new Map)}var t,n,i,u;return o(e,[{key:"sendMessage",value:function(e,t){return this.message.syncSend("gmApi",{api:e,scriptId:this.scriptRes.id,params:t,runFlag:this.runFlag})}},{key:"connect",value:function(e,t,n){var r=N(),i=this.message.channel(r);return i.setHandler(n),i.channel("gmApiChannel",{api:e,scriptId:this.scriptRes.id,params:t,runFlag:this.runFlag}),i}},{key:"valueUpdate",value:function(e){var t=this,n=this.scriptRes.metadata.storagename;(e.value.scriptId===this.scriptRes.id||n&&e.value.storageName&&n[0]===e.value.storageName)&&(void 0===e.value.value?delete this.scriptRes.value[e.value.key]:this.scriptRes.value[e.value.key]=e.value,this.valueChangeListener.forEach((function(n){n.name===e.value.key&&n.listener(e.value.key,e.oldValue,e.value.value,e.sender.runFlag!==t.runFlag,e.sender.tabId)})))}},{key:"GM_getValue",value:function(e,t){var n=this.scriptRes.value[e];return n?n.value:t}},{key:"GM_setValue",value:function(e,t){"object"===a(t)&&(t=JSON.parse(JSON.stringify(t)));var n=this.scriptRes.value[e];return n?n.value=t:n={id:0,scriptId:this.scriptRes.id,storageName:this.scriptRes.metadata.storagename&&this.scriptRes.metadata.storagename[0]||"",key:e,value:t,createtime:(new Date).getTime(),updatetime:0},void 0===t?delete this.scriptRes.value[e]:this.scriptRes.value[e]=n,this.sendMessage("GM_setValue",[e,t])}},{key:"GM_deleteValue",value:function(e){this.GM_setValue(e,void 0)}},{key:"GM_listValues",value:function(){return Object.keys(this.scriptRes.value)}},{key:"GM_addValueChangeListener",value:function(e,t){var n=1e7*Math.random();return this.valueChangeListener.set(n,{name:e,listener:t}),n}},{key:"GM_removeValueChangeListener",value:function(e){this.valueChangeListener.delete(e)}},{key:"CAT_fetchBlob",value:function(e){return this.message.syncSend("CAT_fetchBlob",e)}},{key:"CAT_fetchDocument",value:function(e){var t=this;return new Promise((function(n){var r;t.message.sendCallback("CAT_fetchDocument",e,(function(e){r=t.message.getAndDelRelatedTarget(e.relatedTarget),n(r)}))}))}},{key:"CAT_createBlobUrl",value:function(e){return this.message.syncSend("CAT_createBlobUrl",e)}},{key:"GM_xmlhttpRequest",value:function(e){var t,n=this,r=new URL(e.url,window.location.href);e.headers&&Object.keys(e.headers).forEach((function(t){"cookie"===t.toLowerCase()&&(e.cookie=e.headers[t],delete e.headers[t])}));var i={method:e.method,timeout:e.timeout,url:r.href,headers:e.headers,cookie:e.cookie,context:e.context,responseType:e.responseType,overrideMimeType:e.overrideMimeType,anonymous:e.anonymous,user:e.user,password:e.password,maxRedirects:e.maxRedirects};i.headers||(i.headers={}),e.nocache&&(i.headers["Cache-Control"]="no-cache");var o=function(){var r=k(O().mark((function r(){var o,s,a,u,c,l,h,f;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.data){r.next=20;break}if(!(e.data instanceof FormData)){r.next=12;break}return i.dataType="FormData",s=[],a={},e.data.forEach((function(e,t){a[t]=!0})),u=Object.keys(a).map((function(t){var n=e.data.getAll(t).map((function(e){return new Promise((function(n){var r;e instanceof File?(r=e,new Promise((function(e){var t=new FileReader;t.onloadend=function(){return e(t.result)},t.readAsDataURL(r)}))).then((function(r){s.push({key:t,type:"file",val:r||"",filename:e.name}),n()})):(s.push({key:t,type:"text",val:e}),n())}))}));return Promise.all(n)})),r.next=9,Promise.all(u);case 9:i.data=s,r.next=20;break;case 12:if(!(e.data instanceof Blob)){r.next=19;break}return i.dataType="Blob",r.next=16,n.CAT_createBlobUrl(e.data);case 16:i.data=r.sent,r.next=20;break;case 19:i.data=e.data;case 20:h=null===(o=e.responseType)||void 0===o?void 0:o.toLocaleLowerCase(),f=function(e){return"stream"===h&&(c=new ReadableStream({start:function(e){l=e}})),function(){var t=k(O().mark((function t(r){var i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.response){t.next=19;break}if("document"!==h){t.next=9;break}return t.next=4,n.CAT_fetchDocument(r.response);case 4:r.response=t.sent,r.responseXML=r.response,r.responseType="document",t.next=19;break;case 9:return t.next=11,n.CAT_fetchBlob(r.response);case 11:if(i=t.sent,"arraybuffer"!==h){t.next=18;break}return t.next=15,i.arrayBuffer();case 15:r.response=t.sent,t.next=19;break;case 18:r.response=i;case 19:"stream"===h&&(r.response=c),e(r);case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},"arraybuffer"!==h&&"blob"!==h&&"document"!==h&&"stream"!==h||(e.onload&&(e.onload=f(e.onload)),e.onreadystatechange&&(e.onreadystatechange=f(e.onreadystatechange)),e.onloadend&&(e.onloadend=f(e.onloadend)),"document"===h&&(i.responseType="blob"),"stream"===h&&e.onloadstart&&(e.onloadstart=f(e.onloadstart))),(t=n.connect("GM_xmlhttpRequest",[i],(function(t){var n,r=t.data||{};switch(t.event){case"onload":e.onload&&e.onload(r);break;case"onloadend":var i;e.onloadend&&e.onloadend(r),c&&(null===(i=l)||void 0===i||i.close());break;case"onloadstart":e.onloadstart&&e.onloadstart(r);break;case"onprogress":e.onprogress&&e.onprogress(r);break;case"onreadystatechange":e.onreadystatechange&&e.onreadystatechange(r);break;case"ontimeout":e.ontimeout&&e.ontimeout();break;case"onerror":e.onerror&&e.onerror("");break;case"onabort":e.onabort&&e.onabort();break;case"onstream":null===(n=l)||void 0===n||n.enqueue(new Uint8Array(t.data));break;default:g.getLogger().warn("GM_xmlhttpRequest resp is error",{resp:t})}}))).setCatch((function(t){e.onerror&&e.onerror(t)}));case 25:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();return o(),{abort:function(){t&&t.disChannel()}}}},{key:"GM_notification",value:(u=k(O().mark((function e(t,n,r,i){var o,s,a,u,c=arguments;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={},"string"!=typeof t){e.next=12;break}o.text=t,e.t0=c.length,e.next=4===e.t0?6:3===e.t0?7:2===e.t0?8:9;break;case 6:o.onclick=i;case 7:o.image=r;case 8:o.title=n;case 9:return e.abrupt("break",10);case 10:e.next=14;break;case 12:(o=t).ondone=o.ondone||n;case 14:o.onclick&&(s=o.onclick,delete o.onclick),o.ondone&&(a=o.ondone,delete o.ondone),o.oncreate&&(u=o.oncreate,delete o.oncreate),this.connect("GM_notification",[o],(function(e){switch(e.event){case"click":s&&s.apply({id:e.id},[e.id,e.index]);break;case"done":a&&a.apply({id:e.id},[e.user]);break;case"create":u&&u.apply({id:e.id},[e.id]);break;default:g.getLogger().warn("GM_notification resp is error",{resp:e})}}));case 18:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return u.apply(this,arguments)})},{key:"GM_closeNotification",value:function(e){this.sendMessage("GM_closeNotification",[e])}},{key:"GM_updateNotification",value:function(e,t){this.sendMessage("GM_updateNotification",[e,t])}},{key:"GM_log",value:function(e,t,n){return this.sendMessage("GM_log",[e,t,n])}},{key:"GM_openInTab",value:function(e,t){var n,r=this,i={};1===arguments.length?i.active=!0:"boolean"==typeof t?i.active=t:i=t;var o={close:function(){r.GM_closeInTab(n)}},s=this.connect("GM_openInTab",[e,i],(function(e){switch(e.event){case"oncreate":n=e.tabId;break;case"onclose":o.onclose&&o.onclose(),o.closed=!0,s.disChannel()}}));return o}},{key:"GM_closeInTab",value:function(e){return this.sendMessage("GM_closeInTab",[e])}},{key:"GM_getResourceText",value:function(e){if(this.scriptRes.resource){var t=this.scriptRes.resource[e];return t?t.content:void 0}}},{key:"GM_getResourceURL",value:function(e,t){if(this.scriptRes.resource){var n=this.scriptRes.resource[e];return n?t?URL.createObjectURL(function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),r=new ArrayBuffer(n.length),i=new Uint8Array(r),o=0;o + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ + +/** @preserve + (c) 2012 by Cédric Mesnil. All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ diff --git a/Scriptcat/src/install.html b/Scriptcat/src/install.html new file mode 100755 index 0000000..c55497c --- /dev/null +++ b/Scriptcat/src/install.html @@ -0,0 +1,24 @@ + + + + + + Install - ScriptCat + + +

+ + + diff --git a/Scriptcat/src/install.js b/Scriptcat/src/install.js new file mode 100755 index 0000000..02af50b --- /dev/null +++ b/Scriptcat/src/install.js @@ -0,0 +1 @@ +(()=>{var e,n={33645:(e,n,t)=>{"use strict";var r=t(67294),a=t(20745),o=t(15671),i=t(43144),s=t(4942),c=t(15861),u=t(64687),l=t.n(u);var d=t(71002);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}var p=function(){function e(){(0,o.Z)(this,e),(0,s.Z)(this,"hookMap",{})}return(0,i.Z)(e,[{key:"trigger",value:function(e){if(this.hookMap[e]){for(var n=[],t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&this.hookMap[e].splice(t,1)}}}]),e}(),g=t(1290),h=t(27885),m=function(){function e(){(0,o.Z)(this,e),this.map=new Map}var n;return(0,i.Z)(e,[{key:"get",value:function(e){return this.map.get(e)}},{key:"getOrSet",value:(n=(0,c.Z)(l().mark((function e(n,t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.get(n)){e.next=6;break}return e.next=4,t();case 4:r=e.sent,this.set(n,r);case 6:return e.abrupt("return",Promise.resolve(r));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"set",value:function(e,n){this.map.set(e,n)}},{key:"has",value:function(e){return this.map.has(e)}},{key:"del",value:function(e){this.map.delete(e)}}],[{key:"getInstance",value:function(){return e.instance}}]),e}();(0,s.Z)(m,"instance",new m);var y=new Worker("/src/linter.worker.js");var b=function(){function e(){(0,o.Z)(this,e)}return(0,i.Z)(e,null,[{key:"sendLinterMessage",value:function(e){y.postMessage(e)}}]),e}();(0,s.Z)(b,"hook",new p),y.onmessage=function(e){b.hook.trigger("message",e.data)};t(48945);var v=t(60136),M=t(27121),w=t(61120),k=t(43528),x=t(92826),A=t(42982),Z=t(27484),j=t.n(Z),E={debug:10,info:100,warn:1e3,error:1e4};function D(){for(var e={},n=arguments.length,t=new Array(n),r=0;r1?t-1:0),a=1;a2?t-2:0),a=2;a=E[this.core.level]&&this.core.writer.write(e,n,D(this.label,r)),this.core.debug){"object"===(0,d.Z)(n)&&(n=JSON.stringify(n));var o="".concat(j()(new Date).format("YYYY-MM-DD HH:mm:ss")," [").concat(e,"] msg=").concat(n," label=").concat(JSON.stringify(D(this.label,r)));switch(e){case"error":console.error(o);break;case"warn":console.warn(o);break;default:console.info(o)}}T.hook.trigger("log",{level:e,message:n,label:r})}},{key:"with",value:function(){for(var n=arguments.length,t=new Array(n),r=0;r1?n-1:0),r=1;r1?n-1:0),r=1;r1?n-1:0),r=1;r1?n-1:0),r=1;r0?e-1:(0===e&&kn(),e)}))}),1e3)}),[w]);var J=new URL(window.location.href).searchParams.get("uuid");return J?((0,r.useEffect)((function(){R.fetchScriptInfo(J).then(function(){var e=(0,c.Z)(l().mark((function e(n){var t,o,i,c,d,f;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return");case 2:if(!n.isSubscribe){e.next=11;break}return H(!0),e.next=6,en(n.code,n.url);case 6:o=e.sent,S(o.oldSubscribe),delete o.oldSubscribe,e.next=22;break;case 11:if(!n.isUpdate){e.next=17;break}return e.next=14,$e(n.code,n.url,n.uuid);case 14:o=e.sent,e.next=20;break;case 17:return e.next=19,$e(n.code,n.url);case 19:o=e.sent;case 20:S(o.oldScript),delete o.oldScript;case 22:if(P(o.status===me),"system"===n.source&&k(60),i=o.metadata){e.next=27;break}return e.abrupt("return");case 27:c=[],n.isSubscribe&&c.push({label:"该订阅将会安装下面的脚本",color:"#ff0000",value:i.scripturl}),i.match&&c.push({label:"脚本将在下面的网站中运行",value:i.match}),i.connect&&c.push({label:"脚本将获得以下地址的完整访问权限",color:"#F9925A",value:i.connect}),i.require&&c.push({label:"脚本引用了下列外部资源",value:i.require}),T(o),0!==o.id&&j(!0),a(c),u(i),g(n),d=[],f=!1,null===(t=s.grant)||void 0===t||t.forEach((function(e){"GM_cookie"===e&&(f=!0)})),f&&d.push(r.createElement(xe.Z.Text,{type:"error",key:"cookie"},"请注意,本脚本会申请cookie的操作权限,这是一个危险的权限,请确认脚本的安全性.")),i.crontab?(d.push(r.createElement(xe.Z.Text,{key:"crontab"},"这是一个定时脚本,开启将会在特点时间自动运行,也可以在面板中手动控制运行.")),d.push(r.createElement(xe.Z.Text,{key:"cronta-nexttime"},"crontab表达式: ",i.crontab[0]," 最近一次运行时间:"," ",Fe(i.crontab[0])))):i.background&&d.push(r.createElement(xe.Z.Text,{key:"background"},"这是一个后台脚本,开启将会在浏览器打开时自动运行一次,也可以在面板中手动控制运行.")),d.length&&b(r.createElement("div",null,d.map((function(e){return e})))),document.title="".concat(0===o.id?"安装":"更新","脚本 - ").concat(i.name," - ScriptCat");case 44:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[]),r.createElement("div",{className:"h-full"},r.createElement(Re.Z.Row,{gutter:8},r.createElement(Re.Z.Col,{flex:1,className:"flex-col p-8px"},r.createElement(Ae.Z,{direction:"vertical"},r.createElement("div",null,(null==I?void 0:I.metadata.icon)&&r.createElement(Ue.Z,{size:32,shape:"square",style:{marginRight:"8px"}},r.createElement("img",{src:I.metadata.icon[0],alt:null==I?void 0:I.name})),r.createElement(xe.Z.Text,{bold:!0,className:"text-size-lg"},s.name,r.createElement(Ge.Z,{content:Y?"这是一个订阅源,当你开启订阅后会自动安装订阅的脚本":"可以控制脚本开启状态,普通油猴脚本默认开启,后台脚本、定时脚本默认关闭"},r.createElement(Be.Z,{style:{marginLeft:"8px"},checked:_,onChange:function(e){T((function(n){return n?(n.status=e?le:de,P(e),n):n}))}})))),r.createElement("div",null,r.createElement(xe.Z.Text,{bold:!0},s.description)),r.createElement("div",null,r.createElement(xe.Z.Text,{bold:!0},"作者: ",s.author)),r.createElement("div",null,r.createElement(xe.Z.Text,{bold:!0,style:{overflowWrap:"break-word",wordBreak:"break-all",maxHeight:"70px",display:"block",overflowY:"auto"}},"来源: ",null==p?void 0:p.url)),r.createElement("div",{className:"text-end"},r.createElement(Ae.Z,null,r.createElement(Ee.Z,{type:"primary",size:"small",onClick:function(){I?Y?U.upsert(I).then((function(){we.Z.success("订阅成功"),F("订阅成功"),setTimeout((function(){kn()}),200)})).catch((function(e){we.Z.error("订阅失败: ".concat(e))})):R.upsert(I).then((function(){Z?(we.Z.success("更新成功"),F("更新成功")):(we.Z.success("安装成功"),F("安装成功")),setTimeout((function(){kn()}),200)})).catch((function(e){we.Z.error("安装失败: ".concat(e))})):we.Z.error("脚本信息加载失败!")}},W),r.createElement(Ee.Z,{type:"primary",status:"danger",size:"small",onClick:function(){-1===w?kn():k(-1)}},-1===w?"关闭":"停止(".concat(w,")")))))),r.createElement(Re.Z.Col,{flex:1,className:"p-8px"},r.createElement(Ae.Z,{direction:"vertical"},r.createElement("div",null,r.createElement(Ae.Z,null,O&&r.createElement(Ge.Z,{content:"当前版本为:v".concat(O.metadata.version[0])},r.createElement(Ye.Z,{bordered:!0},O.metadata.version[0])),s.version&&r.createElement(Ge.Z,{color:"red",content:"更新版本为:v".concat(s.version[0])},r.createElement(Ye.Z,{bordered:!0,color:"red"},s.version[0])),(s.background||s.crontab)&&r.createElement(Ge.Z,{color:"green",content:"这是一个后台脚本"},r.createElement(Ye.Z,{bordered:!0,color:"green"},"后台脚本")),s.crontab&&r.createElement(Ge.Z,{color:"green",content:"这是一个定时脚本"},r.createElement(Ye.Z,{bordered:!0,color:"green"},"定时脚本")),s.antifeature&&s.antifeature.map((function(e){var n=e.split(" ")[0];return wn[n]&&r.createElement(Ge.Z,{color:wn[n].color,content:wn[n].description},r.createElement(Ye.Z,{bordered:!0,color:wn[n].color},wn[n].title))})))),y&&y,r.createElement("div",null,r.createElement(xe.Z.Text,{type:"error"},"请从合法的来源安装脚本!!!未知的脚本可能会侵犯您的隐私或者做出恶意的操作!!!")))),r.createElement(Re.Z.Col,{span:24},r.createElement(Re.Z.Row,null,t.map((function(e){return r.createElement(Re.Z.Col,{key:e.label,span:8,style:{maxHeight:"200px",overflowY:"auto",overflowX:"auto",boxSizing:"border-box"},className:"p-8px"},r.createElement(xe.Z.Text,{bold:!0,color:e.color},e.label),e.value.map((function(n){return r.createElement("div",{key:n},r.createElement(xe.Z.Text,{style:{wordBreak:"unset",color:e.color}},n))})))}))))),r.createElement(Mn,{id:"show-code",code:(null==I?void 0:I.code)||void 0,diffCode:(null==O?void 0:O.code)||""}))):r.createElement("p",null,"错误的链接")}const An=function(){return r.createElement("div",{className:"h-full"},r.createElement(xn,null))};L.version(1).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,createtime,updatetime,checktime"}),L.version(2).stores({logger:"++id,level,origin,createtime",permission:"++id,[scriptId+permission+permissionValue],createtime,updatetime"}),L.version(3).stores({logger:"++id,level,title,origin,createtime"}),L.version(4).stores({value:"++id,scriptId,namespace,key,createtime"}),L.version(5).stores({logger:"++id,level,origin,createtime,title,[origin+title],[level+origin+title]"}),L.version(6).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,status,runStatus,createtime,updatetime,checktime"}),L.version(7).stores({resource:"++id,&url,content,type,createtime,updatetime",resourceLink:"++id,url,scriptId,createtime"}),L.version(8).stores({logger:"++id,level,origin,createtime"}),L.version(9).stores({logger:"++id,level,scriptId,origin,createtime"}),L.version(10).stores({scripts:"++id,&uuid,name,namespace,author,origin_domain,type,sort,status,runStatus,createtime,updatetime,checktime"}).upgrade((function(e){return e.table("scripts").toCollection().modify((function(e){e.sort=0}))})),L.version(11).stores({export:"++id,&uuid,scriptId"}),L.version(12).stores({value:"++id,scriptId,storageName,key,createtime"}).upgrade((function(e){e.table("value").toCollection().modify((function(e){e.namespace&&(e.storageName=e.namespace,delete e.namespace)}))})),L.version(13).stores({subscribe:"++id,&url,createtime,updatetime,checktime",scripts:"++id,&uuid,name,namespace,author,origin_domain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",sync:"++id,&key,[user+device+type],createtime"}),L.version(14).stores({value:"++id,[scriptId+key],[storageName+key]"}),L.version(15).stores({permission:"++id,scriptId,[scriptId+permission+permissionValue],createtime,updatetime"}),L.version(16).stores({scripts:"++id,&uuid,name,namespace,author,originDomain,subscribeUrl,type,sort,status,runStatus,createtime,updatetime,checktime",logger:"++id,level,createtime"}).upgrade(function(){var e=(0,c.Z)(l().mark((function e(n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.table("export").clear();case 2:return e.abrupt("return",n.table("scripts").toCollection().modify((function(e){e.origin_domain&&(e.originDomain=e.origin_domain),e.checkupdate_url&&(e.checkUpdateUrl=e.checkupdate_url),e.download_url&&(e.downloadUrl=e.download_url)})));case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),L.version(17).stores({export:"++id,&scriptId"}),function(){window.tsUrl="",fetch(chrome.runtime.getURL("/src/ts.worker.js.gz")).then((function(e){return e.blob()})).then(function(){var e=(0,c.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=h.ZP,e.next=3,n.arrayBuffer();case 3:e.t1=e.sent,t=e.t0.inflate.call(e.t0,e.t1),window.tsUrl=URL.createObjectURL(new Blob([t]));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),window.MonacoEnvironment={getWorkerUrl:function(e,n){return"typescript"===n||"javascript"===n?window.tsUrl:"/src/editor.worker.js"}},g.Mj.typescript.javascriptDefaults.addExtraLib('// @copyright https://github.com/silverwzw/Tampermonkey-Typescript-Declaration\n\ndeclare const unsafeWindow: Window;\n\ndeclare const GM_info: {\n version: string;\n scriptWillUpdate: boolean;\n scriptHandler: "ScriptCat";\n scriptUpdateURL?: string;\n scriptSource: string;\n scriptMetaStr?: string;\n isIncognito: boolean;\n downloadMode: "native" | "disabled" | "browser";\n script: {\n author?: string;\n description?: string;\n excludes: string[];\n homepage?: string;\n icon?: string;\n icon64?: string;\n includes?: string[];\n lastModified: number;\n matches: string[];\n name: string;\n namespace?: string;\n position: number;\n "run-at": string;\n resources: string[];\n unwrap: boolean;\n version: string;\n options: {\n awareOfChrome: boolean;\n run_at: string;\n noframes?: boolean;\n compat_arrayLeft: boolean;\n compat_foreach: boolean;\n compat_forvarin: boolean;\n compat_metadata: boolean;\n compat_uW_gmonkey: boolean;\n override: {\n orig_excludes: string[];\n orig_includes: string[];\n use_includes: string[];\n use_excludes: string[];\n [key: string]: any;\n };\n [key: string]: any;\n };\n [key: string]: any;\n };\n [key: string]: any;\n};\n\ndeclare function GM_addStyle(css: string): HTMLElement;\n\ndeclare function GM_deleteValue(name: string): void;\n\ndeclare function GM_listValues(): string[];\n\ndeclare function GM_addValueChangeListener(\n name: string,\n listener: GMTypes.ValueChangeListener\n): number;\n\ndeclare function GM_removeValueChangeListener(listenerId: number): void;\n\n// 可以使用Promise实际等待值的设置完成\ndeclare function GM_setValue(name: string, value: any): Promise;\n\ndeclare function GM_getValue(name: string, defaultValue?: any): any;\n\n// 支持level和label\ndeclare function GM_log(\n message: string,\n level?: GMTypes.LoggerLevel,\n labels?: GMTypes.LoggerLabel\n): any;\n\ndeclare function GM_getResourceText(name: string): string | undefined;\n\ndeclare function GM_getResourceURL(\n name: string,\n isBlobUrl?: boolean = false\n): string | undefined;\n\ndeclare function GM_registerMenuCommand(\n name: string,\n listener: () => void,\n accessKey?: string\n): number;\n\ndeclare function GM_unregisterMenuCommand(id: number): void;\n\ndeclare function GM_openInTab(\n url: string,\n options: GMTypes.OpenTabOptions\n): tab;\ndeclare function GM_openInTab(url: string, loadInBackground: boolean): tab;\ndeclare function GM_openInTab(url: string): tab;\n\ndeclare function GM_xmlhttpRequest(\n details: GMTypes.XHRDetails\n): GMTypes.AbortHandle;\n\ndeclare function GM_download(\n details: GMTypes.DownloadDetails\n): GMTypes.AbortHandle;\ndeclare function GM_download(\n url: string,\n filename: string\n): GMTypes.AbortHandle;\n\ndeclare function GM_getTab(callback: (obj: object) => any): void;\n\ndeclare function GM_saveTab(obj: object): Promise;\n\ndeclare function GM_getTabs(\n callback: (objs: { [key: number]: object }) => any\n): void;\n\ndeclare function GM_notification(\n details: GMTypes.NotificationDetails,\n ondone?: GMTypes.NotificationOnDone\n): void;\ndeclare function GM_notification(\n text: string,\n title: string,\n image: string,\n onclick?: GMTypes.NotificationOnClick\n): void;\n\ndeclare function GM_closeNotification(id: string): void;\n\ndeclare function GM_updateNotification(\n id: string,\n details: GMTypes.NotificationDetails\n): void;\n\ndeclare function GM_setClipboard(\n data: string,\n info?: string | { type?: string; minetype?: string }\n): void;\n\ndeclare function GM_addElement(tag: string, attribubutes: any);\ndeclare function GM_addElement(parentNode: Element, tag: string, attrs: any);\n\n// name和domain不能都为空\ndeclare function GM_cookie(\n action: GMTypes.CookieAction,\n details: GMTypes.CookieDetails,\n ondone: (cookie: GMTypes.Cookie[], error: any | undefined) => void\n): void;\n\n/**\n * 可以通过GM_addValueChangeListener获取tabid\n * 再通过tabid(前后端通信可能用到,ValueChangeListener会返回tabid),获取storeid,后台脚本用.\n * 请注意这是一个实验性质的API,后续可能会改变\n * @param tabid 页面的tabid\n * @param ondone 完成事件\n * @param callback.storeid 该页面的storeid,可以给GM_cookie使用\n * @param callback.error 错误信息\n * @deprecated 已废弃,请使用GM_cookie("store", tabid)替代\n */\ndeclare function GM_getCookieStore(\n tabid: number,\n ondone: (storeId: number | undefined, error: any | undefined) => void\n): void;\n\n/**\n * 设置浏览器代理\n * @deprecated 正式版中已废弃,后续可能会在beta版本中添加\n */\ndeclare function CAT_setProxy(rule: CATType.ProxyRule[] | string): void;\n\n/**\n * 清理所有代理规则\n * @deprecated 正式版中已废弃,后续可能会在beta版本中添加\n */\ndeclare function CAT_clearProxy(): void;\n\n/**\n * 输入x、y,模拟真实点击\n * @deprecated 正式版中已废弃,后续可能会在beta版本中添加\n */\ndeclare function CAT_click(x: number, y: number): void;\n\n/**\n * 打开脚本的用户配置页面\n */\ndeclare function CAT_userConfig(): void;\n\n/**\n * 操控脚本同步配置的文件储存源,将会在同步目录下创建一个app/uuid目录供此 API 使用\n * 上传时默认覆盖同名文件, 请注意这是一个试验性质的 API, 后续可能会改变\n * @param action 操作类型 list 列出指定目录所有文件, upload 上传文件, download 下载文件, delete 删除文件, 暂时不提供move/mkdir等操作\n * @param details\n */\ndeclare function CAT_fileStorage(\n action: "list",\n details: {\n // path?: string; // 暂时只允许操作根目录,所以屏蔽list的path\n onload?: (files: CATType.FileStorageFileInfo[]) => void;\n onerror?: (error: CATType.FileStorageError) => void;\n // public?: boolean;\n }\n): void;\ndeclare function CAT_fileStorage(\n action: "download",\n details: {\n file: CATType.FileStorageFileInfo; // 某些平台需要提供文件的hash值,所以需要传入文件信息\n onload: (data: Blob) => void;\n // onprogress?: (progress: number) => void;\n onerror?: (error: CATType.FileStorageError) => void;\n // public?: boolean;\n }\n): void;\ndeclare function CAT_fileStorage(\n action: "delete",\n details: {\n path: string;\n onload?: () => void;\n onerror?: (error: CATType.FileStorageError) => void;\n // public?: boolean;\n }\n): void;\ndeclare function CAT_fileStorage(\n action: "upload",\n details: {\n path: string;\n data: Blob;\n onload?: () => void;\n // onprogress?: (progress: number) => void;\n onerror?: (error: CATType.FileStorageError) => void;\n // public?: boolean;\n }\n): void;\n\ndeclare namespace CATType {\n interface ProxyRule {\n proxyServer: ProxyServer;\n matchUrl: string[];\n }\n\n type ProxyScheme = "http" | "https" | "quic" | "socks4" | "socks5";\n\n interface ProxyServer {\n scheme?: ProxyScheme;\n host: string;\n port?: number;\n }\n\n interface FileStorageError {\n // 错误码 -1 未知错误 1 用户未配置文件储存源 2 文件储存源配置错误 3 路径不存在\n // 4 上传失败 5 下载失败 6 删除失败 7 不允许的文件路径\n code: -1 | 1 | 2 | 3 | 4 | 5 | 6 | 7;\n error: string;\n }\n\n interface FileStorageFileInfo {\n // 文件名\n name: string;\n // 文件路径\n path: string;\n // 储存空间绝对路径\n absPath: string;\n // 文件大小\n size: number;\n // 文件摘要\n digest: string;\n // 文件创建时间\n createtime: number;\n // 文件修改时间\n updatetime: number;\n }\n}\n\ndeclare namespace GMTypes {\n /*\n * store为获取隐身窗口之类的cookie,这是一个实验性质的API,后续可能会改变\n */\n type CookieAction = "list" | "delete" | "set" | "store";\n\n type LoggerLevel = "debug" | "info" | "warn" | "error";\n\n type LoggerLabel = {\n [key: string]: string | boolean | number | undefined;\n };\n\n interface CookieDetails {\n url?: string;\n name?: string;\n value?: string;\n domain?: string;\n path?: string;\n secure?: boolean;\n session?: boolean;\n storeId?: string;\n httpOnly?: boolean;\n expirationDate?: number;\n // store用\n tabId?: number;\n }\n\n interface Cookie {\n domain: string;\n name: string;\n storeId: string;\n value: string;\n session: boolean;\n hostOnly: boolean;\n expirationDate?: number;\n path: string;\n httpOnly: boolean;\n secure: boolean;\n }\n\n // tabid是只有后台脚本监听才有的参数\n type ValueChangeListener = (\n name: string,\n oldValue: any,\n newValue: any,\n remote: boolean,\n tabid?: number\n ) => any;\n\n interface OpenTabOptions {\n active?: boolean;\n insert?: boolean;\n setParent?: boolean;\n useOpen?: boolean; // 这是一个实验性/不兼容其他管理器/不兼容Firefox的功能 \n }\n\n interface XHRResponse {\n finalUrl?: string;\n readyState?: 0 | 1 | 2 | 3 | 4;\n responseHeaders?: string;\n status?: number;\n statusText?: string;\n response?: string | Blob | ArrayBuffer | Document | ReadableStream | null;\n responseText?: string;\n responseXML?: Document | null;\n responseType?:\n | "text"\n | "arraybuffer"\n | "blob"\n | "json"\n | "document"\n | "stream";\n }\n\n interface XHRProgress extends XHRResponse {\n done: number;\n lengthComputable: boolean;\n loaded: number;\n position?: number;\n total: number;\n totalSize: number;\n }\n\n type Listener = (event: OBJ) => any;\n type ContextType = any;\n\n interface XHRDetails {\n method?: "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";\n url: string;\n headers?: { [key: string]: string };\n data?: string | FormData | Blob;\n cookie?: string;\n binary?: boolean;\n timeout?: number;\n context?: ContextType;\n responseType?:\n | "text"\n | "arraybuffer"\n | "blob"\n | "json"\n | "document"\n | "stream"; // stream 在当前版本是一个较为简陋的实现\n overrideMimeType?: string;\n anonymous?: boolean;\n fetch?: boolean;\n user?: string;\n password?: string;\n nocache?: boolean;\n maxRedirects?: number;\n\n onload?: Listener;\n onloadstart?: Listener;\n onloadend?: Listener;\n onprogress?: Listener;\n onreadystatechange?: Listener;\n ontimeout?: () => void;\n onabort?: () => void;\n onerror?: (err: string) => void;\n }\n\n interface AbortHandle {\n abort(): RETURN_TYPE;\n }\n\n interface DownloadError {\n error:\n | "not_enabled"\n | "not_whitelisted"\n | "not_permitted"\n | "not_supported"\n | "not_succeeded"\n | "unknown";\n details?: string;\n }\n\n interface DownloadDetails {\n method?: "GET" | "POST";\n url: string;\n name: string;\n headers?: { [key: string]: string };\n saveAs?: boolean;\n timeout?: number;\n cookie?: string;\n anonymous?: boolean;\n\n onerror?: Listener;\n ontimeout?: () => void;\n onload?: Listener;\n onprogress?: Listener;\n }\n\n interface NotificationThis extends NotificationDetails {\n id: string;\n }\n\n type NotificationOnClick = (\n this: NotificationThis,\n id: string,\n index?: number\n ) => any;\n type NotificationOnDone = (this: NotificationThis, user: boolean) => any;\n\n interface NotificationButton {\n title: string;\n iconUrl?: string;\n }\n\n interface NotificationDetails {\n text?: string;\n title?: string;\n image?: string;\n highlight?: boolean;\n silent?: boolean;\n timeout?: number;\n onclick?: NotificationOnClick;\n ondone?: NotificationOnDone;\n progress?: number;\n oncreate?: NotificationOnClick;\n buttons?: NotificationButton[];\n }\n\n interface Tab {\n close(): void;\n\n onclose?: () => void;\n closed?: boolean;\n name?: string;\n }\n}\n',"tampermonkey.d.ts");var e={name:"脚本名称",description:"脚本描述",namespace:"脚本命名空间",version:"脚本版本",author:"脚本作者",background:"后台脚本",crontab:"定时脚本 crontab 参考(不适用于云端脚本)\n * * * * * * 每秒运行一次\n * * * * * 每分钟运行一次\n 0 */6 * * * 每6小时的0分时执行一次\n 15 */6 * * * 每6小时的15分时执行一次\n * once * * * 每小时运行一次\n * * once * * 每天运行一次\n * 10 once * * 每天10点-10:59中运行一次,假设当10:04时运行了一次,10:05-10:59的后续的时间将不会再运行\n * 1,3,5 once * * 每天1点3点5点中运行一次,假设当1点时运行了一次,3,5点将不会再运行\n * */4 once * * 每天每隔4小时检测运行一次,假设当4点时运行了一次,8,12,16,20,24点等后续的时间将不会再运行\n * 10-23 once * * 每天10点-23:59中运行一次,假设当10:04时运行了一次,10:05-23:59的后续时间将不会再运行\n * once 13 * * 每个月的13号的每小时运行一次".replace(/\n/g,"
")};g.Mj.registerHoverProvider("javascript",{provideHover:function(n,t){return new Promise((function(r){var a=n.getLineContent(t.lineNumber),o=/^\/\/\s*@(\w+?)(\s+(.*?)|)$/.exec(a);o?r({contents:[{value:e[o[1]],supportHtml:!0}]}):/==UserScript==/.test(a)?r({contents:[{value:"一个用户脚本"}]}):r(null)}))}}),g.Mj.registerCodeActionProvider("javascript",{provideCodeActions:function(e,n,t){for(var r=[],a=m.getInstance().get("eslint-fix"),o=0;o{"use strict";t.d(n,{Z:()=>s});var r=t(8081),a=t.n(r),o=t(23645),i=t.n(o)()(a());i.push([e.id,'*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}.visible{visibility:visible;}.absolute{position:absolute;}.relative{position:relative;}.bottom-0{bottom:0;}.top-50px{top:50px;}.\\!m-0{margin:0 !important;}.box-border{box-sizing:border-box;}.block{display:block;}.hidden{display:none;}.\\!h-6{height:1.5rem !important;}.h-6{height:1.5rem;}.h-auto{height:auto;}.h-full{height:100%;}.max-w-\\[240px\\]{max-width:240px;}.w-full{width:100%;}.\\!flex,.flex\\!{display:flex !important;}.flex{display:flex;}.flex-1,[flex~="\\31 "]{flex:1 1 0%;}.flex-grow{flex-grow:1;}.\\!flex-row{flex-direction:row !important;}.flex-row{flex-direction:row;}.\\!flex-col{flex-direction:column !important;}.flex-col{flex-direction:column;}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}.items-center{align-items:center;}.justify-end{justify-content:flex-end;}.justify-between{justify-content:space-between;}.gap-10{grid-gap:2.5rem;gap:2.5rem;}.overflow-auto{overflow:auto;}.break-all{word-break:break-all;}.border{border-width:1px;}.\\!p-\\[10px\\]{padding:10px !important;}.p-2{padding:0.5rem;}.p-8px{padding:8px;}.\\!px-4{padding-left:1rem !important;padding-right:1rem !important;}.p-x-4{padding-left:1rem;padding-right:1rem;}.text-center{text-align:center;}.text-left{text-align:left;}.text-end{text-align:end;}.text-\\[12px\\]{font-size:12px;}.text-1{font-size:0.25rem;}.text-2xl{font-size:1.5rem;line-height:2rem;}.text-base{font-size:1rem;line-height:1.5rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.text-xl{font-size:1.25rem;line-height:1.75rem;}.\\!text-size-lg{font-size:1.125rem !important;}.\\!text-size-sm{font-size:0.875rem !important;}.text-size-lg{font-size:1.125rem;}.font-500,.font-medium{font-weight:500;}.color-gray-5{--un-text-opacity:1;color:rgba(107,114,128,var(--un-text-opacity));}[color~="blue"]{--un-text-opacity:1;color:rgba(96,165,250,var(--un-text-opacity));}[color~="cyan"]{--un-text-opacity:1;color:rgba(34,211,238,var(--un-text-opacity));}[color~="green"]{--un-text-opacity:1;color:rgba(74,222,128,var(--un-text-opacity));}[color~="orange"]{--un-text-opacity:1;color:rgba(251,146,60,var(--un-text-opacity));}[color~="purple"]{--un-text-opacity:1;color:rgba(192,132,252,var(--un-text-opacity));}[color~="red"]{--un-text-opacity:1;color:rgba(248,113,113,var(--un-text-opacity));}.tab{-moz-tab-size:4;-o-tab-size:4;tab-size:4;}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}',""]);const s=i},52438:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var r=t(8081),a=t.n(r),o=t(23645),i=t.n(o)()(a());i.push([e.id,".arco-dropdown-menu-selected {\n background-color: var(--color-fill-2) !important;\n}\n\n.action-tools .arco-dropdown-popup-visible .arco-icon-down {\n transform: rotate(180deg);\n}\n\n.action-tools > .arco-btn {\n padding: 0 8px;\n}\n",""]);const s=i},43914:(e,n,t)=>{var r={"./align-attributes.js":2672,"./better-use-match.js":82162,"./compat-grant.js":45644,"./compat-headers.js":73285,"./filename-user.js":18039,"./metadata-spacing.js":39877,"./no-invalid-grant.js":20070,"./no-invalid-headers.js":18754,"./no-invalid-metadata.js":91763,"./require-attribute-space-prefix.js":14350,"./require-description.js":70230,"./require-name.js":18295,"./require-version.js":43880,"./use-download-and-update-url.js":52215,"./use-homepage-and-url.js":11933};function a(e){var n=o(e);return t(n)}function o(e){if(!t.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=43914},94748:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII="},6161:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},51096:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg=="},42480:()=>{}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var o=t[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=n,r.amdO={},e=[],r.O=(n,t,a,o)=>{if(!t){var i=1/0;for(l=0;l=o)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(s=!1,o0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[t,a,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.e=()=>Promise.resolve(),r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=965,(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var n=r.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");if(t.length)for(var a=t.length-1;a>-1&&!e;)e=t[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{r.b=document.baseURI||self.location.href;var e={965:0};r.O.j=n=>0===e[n];var n=(n,t)=>{var a,o,[i,s,c]=t,u=0;if(i.some((n=>0!==e[n]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(c)var l=c(r)}for(n&&n(t);ur(33645)));a=r.O(a)})(); \ No newline at end of file diff --git a/Scriptcat/src/linter.worker.js b/Scriptcat/src/linter.worker.js new file mode 100755 index 0000000..c5ba458 --- /dev/null +++ b/Scriptcat/src/linter.worker.js @@ -0,0 +1,2 @@ +/*! For license information please see linter.worker.js.LICENSE.txt */ +(()=>{var e={80436:e=>{e.exports.compatMap={CAT_userConfig:[{type:"scriptcat",versionConstraint:">=0.11.0-beta"}],CAT_fileStorage:[{type:"scriptcat",versionConstraint:">=0.11.0"}],"GM.addElement":[{type:"tampermonkey",versionConstraint:">=4.11.6113"},{type:"violentmonkey",versionConstraint:">=2.13.0-beta.3"}],GM_addElement:[{type:"tampermonkey",versionConstraint:">=4.11.6113"},{type:"violentmonkey",versionConstraint:">=2.13.0-beta.3"}],"GM.addStyle":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"}],GM_addStyle:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.6.1.4 <4"}],"GM.addValueChangeListener":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_addValueChangeListener:[{type:"tampermonkey",versionConstraint:">=2.3.2607"},{type:"violentmonkey",versionConstraint:">=2.12.0"}],"GM.cookie":[{type:"tampermonkey",versionConstraint:">=4.8"}],GM_cookie:[{type:"tampermonkey",versionConstraint:">=4.8"}],"GM.deleteValue":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4.0"}],GM_deleteValue:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.8.20090123.1 <4"}],"GM.download":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_download:[{type:"tampermonkey",versionConstraint:">=3.8"},{type:"violentmonkey",versionConstraint:">=2.9.5"}],"GM.getResourceText":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_getResourceText:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.8.20080609.0 <4"}],"GM.getResourceURL":[{type:"violentmonkey",versionConstraint:">=2.12.0 <2.13.0.10"}],GM_getResourceURL:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.8.20080609.0 <4"}],"GM.getResourceUrl":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.13.0.10"},{type:"greasemonkey",versionConstraint:">=4.0"}],"GM.getTab":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_getTab:[{type:"tampermonkey",versionConstraint:">=4.0.10"}],"GM.getTabs":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_getTabs:[{type:"tampermonkey",versionConstraint:">=4.0.10"}],"GM.getValue":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4.0"}],GM_getValue:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.3-beta <4"}],"GM.info":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4"}],GM_info:[{type:"tampermonkey",versionConstraint:">=2.4.2718"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.16 <4"}],"GM.listValues":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4"}],GM_listValues:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.8.20090123.1 <4"}],"GM.log":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"greasemonkey",versionConstraint:">=4"}],GM_log:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.3-beta <4"}],"GM.notification":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4"}],GM_notification:[{type:"tampermonkey",versionConstraint:">=2.0.2344"},{type:"violentmonkey",versionConstraint:">=2.5.0"}],"GM.openInTab":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4"}],GM_openInTab:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.5-beta <4"}],"GM.registerMenuCommand":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4.11"}],GM_registerMenuCommand:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.2.5 <4"}],"GM.removeValueChangeListener":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_removeValueChangeListener:[{type:"tampermonkey",versionConstraint:">=2.3.2607"},{type:"violentmonkey",versionConstraint:">=2.12.0"}],"GM.saveTab":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_saveTab:[{type:"tampermonkey",versionConstraint:">=4.0.10"}],"GM.setClipboard":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4"}],GM_setClipboard:[{type:"tampermonkey",versionConstraint:">=2.6.2767"},{type:"violentmonkey",versionConstraint:">=2.5.0"},{type:"greasemonkey",versionConstraint:">=1.10 <4"}],"GM.setValue":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4"}],GM_setValue:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.3-beta <4"}],"GM.unregisterMenuCommand":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_unregisterMenuCommand:[{type:"tampermonkey",versionConstraint:">=3.6.3737"},{type:"violentmonkey",versionConstraint:">=2.9.4"}],"GM.webRequest":[{type:"tampermonkey",versionConstraint:">=4.5"}],GM_webRequest:[{type:"tampermonkey",versionConstraint:">=4.4"}],GM_xmlhttpRequest:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.2.5 <4"}],"GM.xmlHttpRequest":[{type:"tampermonkey",versionConstraint:">=4.5"},{type:"violentmonkey",versionConstraint:">=2.12.0"},{type:"greasemonkey",versionConstraint:">=4.0"}],none:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:"*"}],unsafeWindow:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.5-beta"}],"window.close":[{type:"tampermonkey",versionConstraint:">=3.12.58"},{type:"violentmonkey",versionConstraint:">=2.6.2"}],"window.focus":[{type:"tampermonkey",versionConstraint:">=3.12.58"},{type:"violentmonkey",versionConstraint:">=2.12.10"}],"window.onurlchange":[{type:"tampermonkey",versionConstraint:">=4.11"}]},e.exports.gmPolyfillOverride={GM_addStyle:"ignore",GM_registerMenuCommand:"ignore",GM_getResourceText:{deps:["GM.getResourceUrl","GM.log"]},"GM.log":"ignore","GM.info":{deps:["GM_info"]},"GM.addStyle":{deps:["GM_addStyle"]},"GM.deleteValue":{deps:["GM_deleteValue"]},"GM.getResourceUrl":{deps:["GM_getResourceURL"]},"GM.getValue":{deps:["GM_getValue"]},"GM.listValues":{deps:["GM_listValues"]},"GM.notification":{deps:["GM_notification"]},"GM.openInTab":{deps:["GM_openInTab"]},"GM.registerMenuCommand":{deps:["GM_registerMenuCommand"]},"GM.setClipboard":{deps:["GM_setClipboard"]},"GM.setValue":{deps:["GM_setValue"]},"GM.xmlHttpRequest":{deps:["GM_xmlhttpRequest"]},"GM.getResourceText":{deps:["GM_getResourceText"]}}},65014:e=>{e.exports={localized:{name:[{type:"tampermonkey",versionConstraint:">=3.9"},{type:"violentmonkey",versionConstraint:">=2.1.6.8"},{type:"greasemonkey",versionConstraint:">=2.2 <4 || >=4.11"}],description:[{type:"tampermonkey",versionConstraint:">=3.9"},{type:"violentmonkey",versionConstraint:">=2.1.6.8"},{type:"greasemonkey",versionConstraint:">=2.2 <4 || >=4.11"}],antifeature:[{type:"tampermonkey",versionConstraint:">=4.12"},{type:"violentmonkey",versionConstraint:">=2.12.10"}]},unlocalized:{include:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:"*"}],exclude:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:"*"}],"exclude-match":[{type:"violentmonkey",versionConstraint:">=2.6.2"}],version:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.0"}],"run-at":[{type:"tampermonkey",versionConstraint:">=1.1.2190"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.8"}],resource:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.8.20080609.0"}],require:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.8.20080609.0"}],match:[{type:"tampermonkey",versionConstraint:">=1.1.2190"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.8"}],"user-agent":[{type:"tampermonkey",versionConstraint:">=2.8.2894"}],unwrap:[{type:"greasemonkey",versionConstraint:"0.8.1 - 0.9.22"},{type:"tampermonkey",versionConstraint:">=4.14"},{type:"violentmonkey",versionConstraint:">=2.13.0.16"}],grant:[{type:"tampermonkey",versionConstraint:">=3.0.3389"},{type:"violentmonkey",versionConstraint:">=2.1.6.1"},{type:"greasemonkey",versionConstraint:">=1"}],noframes:[{type:"violentmonkey",versionConstraint:">=2.8.17"},{type:"greasemonkey",versionConstraint:">=2.3"},{type:"tampermonkey",versionConstraint:">=2.0.2355"}],connect:[{type:"tampermonkey",versionConstraint:">=4.0"},{type:"violentmonkey",versionConstraint:">=2.12.10"}],webRequest:[{type:"tampermonkey",versionConstraint:">=4.4"}],"inject-into":[{type:"violentmonkey",versionConstraint:">=2.10.0"}],domain:[],nocompat:[{type:"tampermonkey",versionConstraint:">=2.4.2683"}],namespace:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.2.5"}],sandbox:[{type:"tampermonkey",versionConstraint:">=4.18"}]},nonFunctional:{name:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:"*"}],description:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:"*"}],author:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"}],antifeature:[{type:"tampermonkey",versionConstraint:">=4.12"},{type:"violentmonkey",versionConstraint:">=2.12.10"}],copyright:[{type:"tampermonkey",versionConstraint:"*"},{type:"violentmonkey",versionConstraint:"*"}],license:[{type:"tampermonkey",versionConstraint:"*"}],icon:[{type:"tampermonkey",versionConstraint:">=2.0.2359"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.0"}],defaulticon:[{type:"tampermonkey",versionConstraint:">=2.0.2359"}],icon64:[{type:"tampermonkey",versionConstraint:">=2.0.2359"}],iconURL:[{type:"tampermonkey",versionConstraint:">=2.0.2359"}],icon64URL:[{type:"tampermonkey",versionConstraint:">=2.0.2359"}],homepage:[{type:"tampermonkey",versionConstraint:">=2.0.2395"},{type:"violentmonkey",versionConstraint:"*"}],homepageURL:[{type:"tampermonkey",versionConstraint:">=2.0.2395"},{type:"violentmonkey",versionConstraint:">=2.1.5"}],website:[{type:"tampermonkey",versionConstraint:">=2.0.2395"},{type:"violentmonkey",versionConstraint:">=2.13.1.2"}],source:[{type:"tampermonkey",versionConstraint:">=2.0.2395"},{type:"violentmonkey",versionConstraint:">=2.13.1.2"}],downloadURL:[{type:"tampermonkey",versionConstraint:">=2.5.64"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.14"}],updateURL:[{type:"tampermonkey",versionConstraint:">=2.5.64"},{type:"violentmonkey",versionConstraint:"*"},{type:"greasemonkey",versionConstraint:">=0.9.12"}],installURL:[{type:"greasemonkey",versionConstraint:">=0.9.2"}],supportURL:[{type:"tampermonkey",versionConstraint:">=3.8"},{type:"violentmonkey",versionConstraint:">=2.1.6.2"}],collaborator:[],unstableMinify:[],"oujs:author":[],"oujs:collaborator":[],"uso:script":[],"uso:version":[],"uso:timestamp":[],"uso:hash":[],"uso:rating":[],"uso:installs":[],"uso:reviews":[],"uso:discussions":[],"uso:fans":[],"uso:unlisted":[],contributor:[],contributors:[],major:[],minor:[],build:[],contributionURL:[],contributionAmount:[],incompatible:[],compatible:[{type:"violentmonkey",versionConstraint:">=2.12.10"}],history:[],developer:[],background:[],crontab:[],cloudCat:[],cloudServer:[],exportValue:[],exportCookie:[],scriptUrl:[]}}},85966:e=>{"use strict";const t={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},r={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...t},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...t},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};e.exports=r},58027:(e,t,r)=>{"use strict";const n=r(36638),s=function(e,t){const r={};for(const[n,s]of Object.entries(e))Object.hasOwnProperty.call(t,n)||(r[n]=s);return r}(n.es2015,n.es5),a={Atomics:!1,SharedArrayBuffer:!1},o={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1};e.exports=new Map(Object.entries({builtin:{globals:n.es5},es6:{globals:s,parserOptions:{ecmaVersion:6}},es2015:{globals:s,parserOptions:{ecmaVersion:6}},es2017:{globals:{...s,...a},parserOptions:{ecmaVersion:8}},es2020:{globals:{...s,...a,...o},parserOptions:{ecmaVersion:11}},es2021:{globals:{...s,...a,...o,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},parserOptions:{ecmaVersion:12}},browser:{globals:n.browser},node:{globals:n.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:n["shared-node-browser"]},worker:{globals:n.worker},serviceworker:{globals:n.serviceworker},commonjs:{globals:n.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:n.amd},mocha:{globals:n.mocha},jasmine:{globals:n.jasmine},jest:{globals:n.jest},phantomjs:{globals:n.phantomjs},jquery:{globals:n.jquery},qunit:{globals:n.qunit},prototypejs:{globals:n.prototypejs},shelljs:{globals:n.shelljs},meteor:{globals:n.meteor},mongo:{globals:n.mongo},protractor:{globals:n.protractor},applescript:{globals:n.applescript},nashorn:{globals:n.nashorn},atomtest:{globals:n.atomtest},embertest:{globals:n.embertest},webextensions:{globals:n.webextensions},greasemonkey:{globals:n.greasemonkey}}))},30108:(e,t,r)=>{"use strict";const n=r(65096),s=r(27171);e.exports=(e={})=>{const t=new n({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...e});return t.addMetaSchema(s),t._opts.defaultMeta=s.id,t}},94921:e=>{"use strict";const t=["off","warn","error"],r=t.reduce(((e,t,r)=>(e[t]=r,e)),{}),n=[0,1,2,"off","warn","error"];e.exports={getRuleSeverity(e){const t=Array.isArray(e)?e[0]:e;return 0===t||1===t||2===t?t:"string"==typeof t&&r[t.toLowerCase()]||0},normalizeToStrings(e){e.rules&&Object.keys(e.rules).forEach((r=>{const n=e.rules[r];"number"==typeof n?e.rules[r]=t[n]||t[0]:Array.isArray(n)&&"number"==typeof n[0]&&(n[0]=t[n[0]]||t[0])}))},isErrorSeverity:t=>2===e.exports.getRuleSeverity(t),isValidSeverity(e){let t=Array.isArray(e)?e[0]:e;return"string"==typeof t&&(t=t.toLowerCase()),-1!==n.indexOf(t)},isEverySeverityValid(e){return Object.keys(e).every((t=>this.isValidSeverity(e[t])))},normalizeConfigGlobal(e){switch(e){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${e}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}}},23603:(e,t,r)=>{"use strict";const n=r(89539),s=r(85966),a=r(58027),o=r(94921),{emitDeprecationWarning:i}=r(89120),l=r(30108)(),c=new WeakMap,u=Function.prototype;let p;const f={error:2,warn:1,off:0},d=new WeakSet;e.exports=class{constructor({builtInRules:e=new Map}={}){this.builtInRules=e}getRuleOptionsSchema(e){if(!e)return null;const t=e.schema||e.meta&&e.meta.schema;return Array.isArray(t)?t.length?{type:"array",items:t,minItems:0,maxItems:t.length}:{type:"array",minItems:0,maxItems:0}:t||null}validateRuleSeverity(e){const t=Array.isArray(e)?e[0]:e,r="string"==typeof t?f[t.toLowerCase()]:t;if(0===r||1===r||2===r)return r;throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${n.inspect(t).replace(/'/gu,'"').replace(/\n/gu,"")}').\n`)}validateRuleSchema(e,t){if(!c.has(e)){const t=this.getRuleOptionsSchema(e);t&&c.set(e,l.compile(t))}const r=c.get(e);if(r&&(r(t),r.errors))throw new Error(r.errors.map((e=>`\tValue ${JSON.stringify(e.data)} ${e.message}.\n`)).join(""))}validateRuleOptions(e,t,r,n=null){try{0!==this.validateRuleSeverity(r)&&this.validateRuleSchema(e,Array.isArray(r)?r.slice(1):[])}catch(e){const r=`Configuration for rule "${t}" is invalid:\n${e.message}`;throw"string"==typeof n?new Error(`${n}:\n\t${r}`):new Error(r)}}validateEnvironment(e,t,r=u){e&&Object.keys(e).forEach((e=>{if(!r(e)&&!a.get(e))throw new Error(`${t}:\n\tEnvironment key "${e}" is unknown\n`)}))}validateRules(e,t,r=u){e&&Object.keys(e).forEach((n=>{const s=r(n)||this.builtInRules.get(n)||null;this.validateRuleOptions(s,n,e[n],t)}))}validateGlobals(e,t=null){e&&Object.entries(e).forEach((([e,r])=>{try{o.normalizeConfigGlobal(r)}catch(r){throw new Error(`ESLint configuration of global '${e}' in ${t} is invalid:\n${r.message}`)}}))}validateProcessor(e,t,r){if(e&&!r(e))throw new Error(`ESLint configuration of processor in '${t}' is invalid: '${e}' was not found.`)}formatErrors(e){return e.map((e=>"additionalProperties"===e.keyword?`Unexpected top-level property "${e.dataPath.length?`${e.dataPath.slice(1)}.${e.params.additionalProperty}`:e.params.additionalProperty}"`:"type"===e.keyword?`Property "${e.dataPath.slice(1)}" is the wrong type (expected ${Array.isArray(e.schema)?e.schema.join("/"):e.schema} but got \`${JSON.stringify(e.data)}\`)`:`"${"."===e.dataPath[0]?e.dataPath.slice(1):e.dataPath}" ${e.message}. Value: ${JSON.stringify(e.data)}`)).map((e=>`\t- ${e}.\n`)).join("")}validateConfigSchema(e,t=null){if(p=p||l.compile(s),!p(e))throw new Error(`ESLint configuration in ${t} is invalid:\n${this.formatErrors(p.errors)}`);Object.hasOwnProperty.call(e,"ecmaFeatures")&&i(t,"ESLINT_LEGACY_ECMAFEATURES")}validate(e,t,r,n){this.validateConfigSchema(e,t),this.validateRules(e.rules,t,r),this.validateEnvironment(e.env,t,n),this.validateGlobals(e.globals,t);for(const s of e.overrides||[])this.validateRules(s.rules,t,r),this.validateEnvironment(s.env,t,n),this.validateGlobals(e.globals,t)}validateConfigArray(e){const t=Map.prototype.get.bind(e.pluginEnvironments),r=Map.prototype.get.bind(e.pluginProcessors),n=Map.prototype.get.bind(e.pluginRules);for(const s of e)d.has(s)||(d.add(s),this.validateEnvironment(s.env,s.name,t),this.validateGlobals(s.globals,s.name),this.validateProcessor(s.processor,s.name,r),this.validateRules(s.rules,s.name,n))}}},89120:(e,t,r)=>{"use strict";var n=r(34155);const s=r(26470),a={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},o=new Set;e.exports={emitDeprecationWarning:function(e,t){const r=JSON.stringify({source:e,errorCode:t});if(o.has(r))return;o.add(r);const i=s.relative(n.cwd(),e),l=a[t];n.emitWarning(`${l} (found in "${i}")`,"DeprecationWarning",t)}}},36638:(e,t,r)=>{"use strict";e.exports=r(67580)},55977:(e,t,r)=>{"use strict";const n=r(73325),s=/^[\da-fA-F]+$/,a=/^\d+$/,o=new WeakMap;function i(e){e=e.Parser.acorn||e;let t=o.get(e);if(!t){const r=e.tokTypes,n=e.TokContext,s=e.TokenType,a=new n("...",!0,!0),c={tc_oTag:a,tc_cTag:i,tc_expr:l},u={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};u.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===r.slash||t===i?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:c,tokTypes:u},o.set(e,t)}return t}function l(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?l(e.object)+"."+l(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){return function(e,t){const o=t.acorn||r(1234),c=i(o),u=o.tokTypes,p=c.tokTypes,f=o.tokContexts,d=c.tokContexts.tc_oTag,h=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,g=o.isNewLine,y=o.isIdentifierStart,x=o.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let r=this.input.charCodeAt(this.pos);switch(r){case 60:case 123:return this.pos===this.start?60===r&&this.exprAllowed?(++this.pos,this.finishToken(p.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.pos),this.finishToken(p.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===r?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:g(r)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,r=this.input.charCodeAt(this.pos);return++this.pos,13===r&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",r=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.pos),t+=this.jsx_readEntity(),r=this.pos):g(n)?(t+=this.input.slice(r,this.pos),t+=this.jsx_readNewLine(!1),r=this.pos):++this.pos}return t+=this.input.slice(r,this.pos++),this.finishToken(u.string,t)}jsx_readEntity(){let e,t="",r=0,o=this.input[this.pos];"&"!==o&&this.raise(this.pos,"Entity must start with an ampersand");let i=++this.pos;for(;this.pos")}let o=s.name?"Element":"Fragment";return r["opening"+o]=s,r["closing"+o]=a,r.children=n,this.type===u.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===p.jsxText?this.jsx_parseText():this.type===p.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===d||t===h){if(y(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(p.jsxTagEnd);if((34===e||39===e)&&t==d)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(p.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==u.braceL){var t=this.curContext();t==d?this.context.push(f.b_expr):t==m?this.context.push(f.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==u.slash||e!==p.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return i(r(1234)).tokTypes},configurable:!0,enumerable:!0})},73325:e=>{e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},1234:function(e,t){!function(e){"use strict";var t={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"},r="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",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},s=/^in(stanceof)?$/,a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",i=new RegExp("["+a+"]"),l=new RegExp("["+a+o+"]");a=o=null;var c=[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,157,310,10,21,11,7,153,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,107,20,28,22,13,52,76,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,85,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,230,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,35,56,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,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,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,8952,286,50,2,18,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,2357,44,11,6,17,0,370,43,1301,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,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],u=[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,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,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,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,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,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function p(e,t){for(var r=65536,n=0;ne)return!1;if((r+=t[n+1])>=e)return!0}}function f(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):!1!==t&&p(e,c)))}function d(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&(p(e,c)||p(e,u)))))}var h=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 m(e,t){return new h(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},y={startsExpr:!0},x={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,x[e]=new h(e,t)}var E={num:new h("num",y),regexp:new h("regexp",y),string:new h("string",y),name:new h("name",y),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",g),semi:new h(";",g),colon:new h(":",g),dot:new h("."),question:new h("?",g),questionDot:new h("?."),arrow:new h("=>",g),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",g),backQuote:new h("`",y),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:m("||",1),logicalAND:m("&&",2),bitwiseOR:m("|",3),bitwiseXOR:m("^",4),bitwiseAND:m("&",5),equality:m("==/!=/===/!==",6),relational:m("/<=/>=",7),bitShift:m("<>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new h("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",g),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",g),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",g),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",y),_if:b("if"),_return:b("return",g),_switch:b("switch"),_throw:b("throw",g),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",y),_super:b("super",y),_class:b("class",y),_extends:b("extends",g),_export:b("export"),_import:b("import",y),_null:b("null",y),_true:b("true",y),_false:b("false",y),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},v=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(v.source,"g");function C(e,t){return 10===e||13===e||!t&&(8232===e||8233===e)}var A=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,k=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,w=Object.prototype,D=w.hasOwnProperty,F=w.toString;function T(e,t){return D.call(e,t)}var P=Array.isArray||function(e){return"[object Array]"===F.call(e)};function I(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var _=function(e,t){this.line=e,this.column=t};_.prototype.offset=function(e){return new _(this.line,this.column+e)};var B=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function O(e,t){for(var r=1,n=0;;){S.lastIndex=n;var s=S.exec(e);if(!(s&&s.index=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),P(t.onToken)){var n=t.onToken;t.onToken=function(e){return n.push(e)}}return P(t.onComment)&&(t.onComment=function(e,t){return function(r,n,s,a,o,i){var l={type:r?"Block":"Line",value:n,start:s,end:a};e.locations&&(l.loc=new B(this,o,i)),e.ranges&&(l.range=[s,a]),t.push(l)}}(t,t.onComment)),t}var j=2,N=1|j;function M(e,t){return j|(e?4:0)|(t?8:0)}var V=function(e,r,s){this.options=e=R(e),this.sourceFile=e.sourceFile,this.keywords=I(n[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var a="";if(!0!==e.allowReserved){for(var o=e.ecmaVersion;!(a=t[o]);o--);"module"===e.sourceType&&(a+=" await")}this.reservedWords=I(a);var i=(a?a+" ":"")+t.strict;this.reservedWordsStrict=I(i),this.reservedWordsStrictBind=I(i+" "+t.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf("\n",s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(v).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=E.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.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},$={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};V.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},$.inFunction.get=function(){return(this.currentVarScope().flags&j)>0},$.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},$.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},$.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},$.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},V.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&j)>0},V.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}e+=t[0].length,k.lastIndex=e,e+=k.exec(this.input)[0].length,";"===this.input[e]&&e++}},U.eat=function(e){return this.type===e&&(this.next(),!0)},U.isContextual=function(e){return this.type===E.name&&this.value===e&&!this.containsEsc},U.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},U.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},U.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||v.test(this.input.slice(this.lastTokEnd,this.start))},U.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},U.semicolon=function(){this.eat(E.semi)||this.insertSemicolon()||this.unexpected()},U.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},U.expect=function(e){this.eat(e)||this.unexpected()},U.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},U.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},U.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},U.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case E._class:return e&&this.unexpected(),this.parseClass(a,!0);case E._if:return this.parseIfStatement(a);case E._return:return this.parseReturnStatement(a);case E._switch:return this.parseSwitchStatement(a);case E._throw:return this.parseThrowStatement(a);case E._try:return this.parseTryStatement(a);case E._const:case E._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(a,n);case E._while:return this.parseWhileStatement(a);case E._with:return this.parseWithStatement(a);case E.braceL:return this.parseBlock(!0,a);case E.semi:return this.parseEmptyStatement(a);case E._export:case E._import:if(this.options.ecmaVersion>10&&s===E._import){k.lastIndex=this.pos;var o=k.exec(this.input),i=this.pos+o[0].length,l=this.input.charCodeAt(i);if(40===l||46===l)return this.parseExpressionStatement(a,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'")),s===E._import?this.parseImport(a):this.parseExport(a,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var c=this.value,u=this.parseExpression();return s===E.name&&"Identifier"===u.type&&this.eat(E.colon)?this.parseLabeledStatement(a,c,u,e):this.parseExpressionStatement(a,u)}},W.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(E.semi)||this.insertSemicolon()?e.label=null:this.type!==E.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(E.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},W.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(z),this.enterScope(0),this.expect(E.parenL),this.type===E.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===E._var||this.type===E._const||r){var n=this.startNode(),s=r?"let":this.value;return this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length?(this.options.ecmaVersion>=9&&(this.type===E._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var a=new G,o=this.parseExpression(!0,a);return this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===E._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(o,!1,a),this.checkLVal(o),this.parseForIn(e,o)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,o))},W.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,K|(r?0:X),!1,t)},W.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(E._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(E.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},W.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(E.braceL),this.labels.push(H),this.enterScope(0);for(var r=!1;this.type!==E.braceR;)if(this.type===E._case||this.type===E._default){var n=this.type===E._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(E.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(),v.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 J=[];W.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===E._catch){var t=this.startNode();if(this.next(),this.eat(E.parenL)){t.param=this.parseBindingAtom();var r="Identifier"===t.param.type;this.enterScope(r?32:0),this.checkLVal(t.param,r?4:2),this.expect(E.parenR)}else 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(E._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){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},W.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(z),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,r,n){for(var s=0,a=this.labels;s=0;i--){var l=this.labels[i];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},W.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},W.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(E.braceL),e&&this.enterScope(0);this.type!==E.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},W.parseFor=function(e,t){return e.init=t,this.expect(E.semi),e.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),e.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},W.parseForIn=function(e,t){var r=this.type===E._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)?this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===t.type&&this.raise(t.start,"Invalid left-hand side in for-loop"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},W.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(E.eq)?n.init=this.parseMaybeAssign(t):"const"!==r||this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===n.id.type||t&&(this.type===E._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(E.comma))break}return e},W.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,"var"===t?1:2,!1)};var K=1,X=2;W.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===E.star&&t&X&&this.unexpected(),e.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&K&&(e.id=4&t&&this.type!==E.name?null:this.parseIdent(),!e.id||t&X||this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(M(e.async,e.generator)),t&K||(e.id=this.type===E.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&K?"FunctionDeclaration":"FunctionExpression")},W.parseFunctionParams=function(e){this.expect(E.parenL),e.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},W.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),s=!1;for(n.body=[],this.expect(E.braceL);this.type!==E.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(n.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind&&(s&&this.raise(a.start,"Duplicate constructor in the same class"),s=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},W.parseClassElement=function(e){var t=this;if(this.eat(E.semi))return null;var r=this.startNode(),n=function(e,n){void 0===n&&(n=!1);var s=t.start,a=t.startLoc;return!(!t.eatContextual(e)||(t.type===E.parenL||n&&t.canInsertSemicolon())&&(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(s,a),r.key.name=e,t.finishNode(r.key,"Identifier"),1))};r.kind="method",r.static=n("static");var s=this.eat(E.star),a=!1;s||(this.options.ecmaVersion>=8&&n("async",!0)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(E.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var o=r.key,i=!1;return r.computed||r.static||!("Identifier"===o.type&&"constructor"===o.name||"Literal"===o.type&&"constructor"===o.value)?r.static&&"Identifier"===o.type&&"prototype"===o.name&&this.raise(o.start,"Classes may not have a static property named prototype"):("method"!==r.kind&&this.raise(o.start,"Constructor can't have get/set modifier"),s&&this.raise(o.start,"Constructor can't be a generator"),a&&this.raise(o.start,"Constructor can't be an async method"),r.kind="constructor",i=e),this.parseClassMethod(r,s,a,i),"get"===r.kind&&0!==r.value.params.length&&this.raiseRecoverable(r.value.start,"getter should have no params"),"set"===r.kind&&1!==r.value.params.length&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),"set"===r.kind&&"RestElement"===r.value.params[0].type&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},W.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")},W.parseClassId=function(e,t){this.type===E.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},W.parseClassSuper=function(e){e.superClass=this.eat(E._extends)?this.parseExprSubscripts():null},W.parseExport=function(e,t){if(this.next(),this.eat(E.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(E._default)){var r;if(this.checkExport(t,"default",this.lastTokStart),this.type===E._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,4|K,!1,r)}else if(this.type===E._class){var s=this.startNode();e.declaration=this.parseClass(s,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a=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"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,s=e.properties;n=8&&!a&&"async"===o.name&&!this.canInsertSemicolon()&&this.eat(E._function))return this.parseFunction(this.startNodeAt(n,s),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(n,s),[o],!1);if(this.options.ecmaVersion>=8&&"async"===o.name&&this.type===E.name&&!a)return o=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(E.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,s),[o],!0)}return o;case E.regexp:var i=this.value;return(t=this.parseLiteral(i.value)).regex={pattern:i.pattern,flags:i.flags},t;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return(t=this.startNode()).value=this.type===E._null?null:this.type===E._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case E.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case E.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(E.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case E.braceL:return this.parseObj(!1,e);case E._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();case E._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Y.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case E.parenL:return this.parseDynamicImport(e);case E.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Y.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(E.parenR)){var t=this.start;this.eat(E.comma)&&this.eat(E.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Y.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.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},Y.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")},Y.parseParenExpression=function(){this.expect(E.parenL);var e=this.parseExpression();return this.expect(E.parenR),e},Y.parseParenAndDistinguishExpression=function(e){var t,r=this.start,n=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,i=this.startLoc,l=[],c=!0,u=!1,p=new G,f=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;){if(c?c=!1:this.expect(E.comma),s&&this.afterTrailingComma(E.parenR,!0)){u=!0;break}if(this.type===E.ellipsis){a=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var h=this.start,m=this.startLoc;if(this.expect(E.parenR),e&&!this.canInsertSemicolon()&&this.eat(E.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=d,this.parseParenArrowList(r,n,l);l.length&&!u||this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(p,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,l.length>1?((t=this.startNodeAt(o,i)).expressions=l,this.finishNodeAt(t,"SequenceExpression",h,m)):t=l[0]}else t=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,n);return g.expression=t,this.finishNode(g,"ParenthesizedExpression")}return t},Y.parseParenItem=function(e){return e},Y.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)};var Z=[];Y.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(E.dot)){e.meta=t;var r=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'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(e.start,"'new.target' can only be used in functions"),this.finishNode(e,"MetaProperty")}var n=this.start,s=this.startLoc,a=this.type===E._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,s,!0),a&&"ImportExpression"===e.callee.type&&this.raise(n,"Cannot use new with import()"),this.eat(E.parenL)?e.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Z,this.finishNode(e,"NewExpression")},Y.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===E.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===E.backQuote,this.finishNode(r,"TemplateElement")},Y.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===E.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(E.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(E.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},Y.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!v.test(this.input.slice(this.lastTokEnd,this.start))},Y.parseObj=function(e,t){var r=this.startNode(),n=!0,s={};for(r.properties=[],this.next();!this.eat(E.braceR);){if(n)n=!1;else if(this.expect(E.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(E.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),r.properties.push(a)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},Y.parseProperty=function(e,t){var r,n,s,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===E.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===E.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===E.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(r=this.eat(E.star)));var i=this.containsEsc;return this.parsePropertyName(o),!e&&!i&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(o)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(o,t)):n=!1,this.parsePropertyValue(o,e,r,n,s,a,t,i),this.finishNode(o,"Property")},Y.parsePropertyValue=function(e,t,r,n,s,a,o,i){if((r||n)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===E.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(t||i||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===E.comma||this.type===E.braceR||this.type===E.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,e.key):this.type===E.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected();else{(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var l="get"===e.kind?0:1;if(e.value.params.length!==l){var c=e.value.start;"get"===e.kind?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"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")}},Y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(E.bracketR),e.key;e.computed=!1}return e.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Y.parseMethod=function(e,t,r){var n=this.startNode(),s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|M(t,n.generator)|(r?128:0)),this.expect(E.parenL),n.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(n,"FunctionExpression")},Y.parseArrowExpression=function(e,t,r){var n=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|M(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},Y.parseFunctionBody=function(e,t,r){var n=t&&this.type!==E.braceL,s=this.strict,a=!1;if(n)e.body=this.parseMaybeAssign(),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 i=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=i}this.exitScope()},Y.isSimpleParamList=function(e){for(var t=0,r=e;t-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();n=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var i=this.scopeStack[o];if(i.lexical.indexOf(e)>-1&&!(32&i.flags&&i.lexical[0]===e)||!this.treatFunctionsAsVarInScope(i)&&i.functions.indexOf(e)>-1){n=!0;break}if(i.var.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e],i.flags&N)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},te.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&N)return t}},te.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&N&&!(16&t.flags))return t}};var ne=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new B(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},se=V.prototype;function ae(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}se.startNode=function(){return new ne(this,this.start,this.startLoc)},se.startNodeAt=function(e,t){return new ne(this,e,t)},se.finishNode=function(e,t){return ae.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},se.finishNodeAt=function(e,t,r,n){return ae.call(this,e,t,r,n)};var oe=function(e,t,r,n,s){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!s},ie={b_stat:new oe("{",!1),b_expr:new oe("{",!0),b_tmpl:new oe("${",!1),p_stat:new oe("(",!1),p_expr:new oe("(",!0),q_tmpl:new oe("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new oe("function",!1),f_expr:new oe("function",!0),f_expr_gen:new oe("function",!0,!1,null,!0),f_gen:new oe("function",!1,!1,null,!0)},le=V.prototype;le.initialContext=function(){return[ie.b_stat]},le.braceIsBlock=function(e){var t=this.curContext();return t===ie.f_expr||t===ie.f_stat||(e!==E.colon||t!==ie.b_stat&&t!==ie.b_expr?e===E._return||e===E.name&&this.exprAllowed?v.test(this.input.slice(this.lastTokEnd,this.start)):e===E._else||e===E.semi||e===E.eof||e===E.parenR||e===E.arrow||(e===E.braceL?t===ie.b_stat:e!==E._var&&e!==E._const&&e!==E.name&&!this.exprAllowed):!t.isExpr)},le.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},le.updateContext=function(e){var t,r=this.type;r.keyword&&e===E.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},E.parenR.updateContext=E.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===ie.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},E.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ie.b_stat:ie.b_expr),this.exprAllowed=!0},E.dollarBraceL.updateContext=function(){this.context.push(ie.b_tmpl),this.exprAllowed=!0},E.parenL.updateContext=function(e){var t=e===E._if||e===E._for||e===E._with||e===E._while;this.context.push(t?ie.p_stat:ie.p_expr),this.exprAllowed=!0},E.incDec.updateContext=function(){},E._function.updateContext=E._class.updateContext=function(e){!e.beforeExpr||e===E.semi||e===E._else||e===E._return&&v.test(this.input.slice(this.lastTokEnd,this.start))||(e===E.colon||e===E.braceL)&&this.curContext()===ie.b_stat?this.context.push(ie.f_stat):this.context.push(ie.f_expr),this.exprAllowed=!1},E.backQuote.updateContext=function(){this.curContext()===ie.q_tmpl?this.context.pop():this.context.push(ie.q_tmpl),this.exprAllowed=!1},E.star.updateContext=function(e){if(e===E._function){var t=this.context.length-1;this.context[t]===ie.f_expr?this.context[t]=ie.f_expr_gen:this.context[t]=ie.f_gen}this.exprAllowed=!0},E.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==E.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var ce="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",ue=ce+" Extended_Pictographic",pe={9:ce,10:ue,11:ue},fe="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",de="Adlam Adlm Ahom 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 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",he=de+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",me={9:de,10:he,11:he+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},ge={};function ye(e){var t=ge[e]={binary:I(pe[e]+" "+fe),nonBinary:{General_Category:I(fe),Script:I(me[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}ye(9),ye(10),ye(11);var xe=V.prototype,be=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=ge[e.options.ecmaVersion>=11?11:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!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 Ee(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function ve(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Se(e){return e>=65&&e<=90||e>=97&&e<=122}function Ce(e){return Se(e)||95===e}function Ae(e){return Ce(e)||ke(e)}function ke(e){return e>=48&&e<=57}function we(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function De(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Fe(e){return e>=48&&e<=55}be.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},be.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},be.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var s=r.charCodeAt(e);if(!t&&!this.switchU||s<=55295||s>=57344||e+1>=n)return s;var a=r.charCodeAt(e+1);return a>=56320&&a<=57343?(s<<10)+a-56613888:s},be.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var s,a=r.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=n||(s=r.charCodeAt(e+1))<56320||s>57343?e+1:e+2},be.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},be.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},be.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},be.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},xe.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n-1&&this.raise(e.start,"Duplicate regular expression flag")}},xe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},xe.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,r=e.backReferenceNames;t=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},xe.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},xe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},xe.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return-1!==s&&s=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},xe.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)},xe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},xe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!ve(t)&&(e.lastIntValue=t,e.advance(),!0)},xe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!ve(r);)e.advance();return e.pos!==t},xe.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))},xe.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")}},xe.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},xe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Ee(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Ee(e.lastIntValue);return!0}return!1},xe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return f(e,!0)||36===e||95===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},xe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},xe.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)},xe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},xe.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},xe.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)},xe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},xe.regexp_eatZero=function(e){return 48===e.current()&&!ke(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},xe.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)},xe.regexp_eatControlLetter=function(e){var t=e.current();return!!Se(t)&&(e.lastIntValue=t%32,e.advance(),!0)},xe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r,n=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(s&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(i>=56320&&i<=57343)return e.lastIntValue=1024*(a-55296)+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((r=e.lastIntValue)>=0&&r<=1114111))return!0;s&&e.raise("Invalid unicode escape"),e.pos=n}return!1},xe.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))},xe.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},xe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},xe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s),!0}return!1},xe.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){T(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},xe.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},xe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Ce(t=e.current());)e.lastStringValue+=Ee(t),e.advance();return""!==e.lastStringValue},xe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ae(t=e.current());)e.lastStringValue+=Ee(t),e.advance();return""!==e.lastStringValue},xe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},xe.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},xe.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;!e.switchU||-1!==t&&-1!==r||e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},xe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||Fe(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},xe.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)},xe.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ke(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},xe.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},xe.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;ke(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},xe.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;we(r=e.current());)e.lastIntValue=16*e.lastIntValue+De(r),e.advance();return e.pos!==t},xe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},xe.regexp_eatOctalDigit=function(e){var t=e.current();return Fe(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},xe.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n>10),56320+(1023&e)))}Pe.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 Te(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Pe.getToken=function(){return this.next(),new Te(this)},"undefined"!=typeof Symbol&&(Pe[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===E.eof,value:t}}}}),Pe.curContext=function(){return this.context[this.context.length-1]},Pe.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(E.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Pe.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Pe.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.pos+1)-56613888},Pe.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),r=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(S.lastIndex=r;(e=S.exec(this.input))&&e.index8&&e<14||e>=5760&&A.test(String.fromCharCode(e))))break e;++this.pos}}},Pe.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Pe.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(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},Pe.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},Pe.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?E.star:E.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=E.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(E.assign,r+1):this.finishOp(n,r)},Pe.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(E.assign,3):this.finishOp(124===e?E.logicalOR:E.logicalAND,2):61===t?this.finishOp(E.assign,2):this.finishOp(124===e?E.bitwiseOR:E.bitwiseAND,1)},Pe.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},Pe.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&&!v.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(E.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},Pe.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r)?this.finishOp(E.assign,r+1):this.finishOp(E.bitShift,r)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(E.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Pe.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(E.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(61===e?E.eq:E.prefix,1)},Pe.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(E.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(E.assign,3):this.finishOp(E.coalesce,2)}return this.finishOp(E.question,1)},Pe.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.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(E.prefix,1)}this.raise(this.pos,"Unexpected character '"+_e(e)+"'")},Pe.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Pe.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(v.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var s=this.input.slice(r,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var i=this.regexpState||(this.regexpState=new be(this));i.reset(r,s,o),this.validateRegExpFlags(i),this.validateRegExpPattern(i);var l=null;try{l=new RegExp(s,o)}catch(e){}return this.finishToken(E.regexp,{pattern:s,flags:o,value:l})},Pe.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,s=r&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,i=0,l=0,c=null==t?1/0:t;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;i=u,o=o*e+p}}return n&&95===i&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},Pe.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=Ie(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,r)},Pe.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===n){var s=Ie(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,s)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),46!==n||r||(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),69!==n&&101!==n||r||(43!==(n=this.input.charCodeAt(++this.pos))&&45!==n||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),r?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(E.num,o)},Pe.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},Pe.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(C(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(E.string,t)};var Be={};Pe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Be)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Pe.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Be;this.raise(e,t)},Pe.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==E.template&&this.type!==E.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(E.template,e)):36===r?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(C(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Pe.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(n=n.slice(0,-1),s=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),"0"===n&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return C(t)?"":String.fromCharCode(t)}},Pe.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},Pe.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos{"use strict";var n=r(25108),s=r(47153),a=r(83610),o=r(47531),i=r(74022),l=r(35035),c=r(1516),u=r(47753),p=r(3978),f=r(42889);e.exports=x,x.prototype.validate=function(e,t){var r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw new Error('no schema with key or ref "'+e+'"')}else{var n=this._addSchema(e);r=n.validate||this._compile(n)}var s=r(t);return!0!==r.$async&&(this.errors=r.errors),s},x.prototype.compile=function(e,t){var r=this._addSchema(e,void 0,t);return r.validate||this._compile(r)},x.prototype.addSchema=function(e,t,r,n){if(Array.isArray(e)){for(var s=0;s{"use strict";var t=e.exports=function(){this._cache={}};t.prototype.put=function(e,t){this._cache[e]=t},t.prototype.get=function(e){return this._cache[e]},t.prototype.del=function(e){delete this._cache[e]},t.prototype.clear=function(){this._cache={}}},42931:(e,t,r)=>{"use strict";var n=r(87802).MissingRef;e.exports=function e(t,r,s){var a=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof r&&(s=r,r=void 0);var o=i(t).then((function(){var e=a._addSchema(t,void 0,r);return e.validate||l(e)}));return s&&o.then((function(e){s(null,e)}),s),o;function i(t){var r=t.$schema;return r&&!a.getSchema(r)?e.call(a,{$ref:r},!0):Promise.resolve()}function l(e){try{return a._compile(e)}catch(t){if(t instanceof n)return function(t){var n=t.missingSchema;if(c(n))throw new Error("Schema "+n+" is loaded but "+t.missingRef+" cannot be resolved");var s=a._loadingSchemas[n];return s||(s=a._loadingSchemas[n]=a._opts.loadSchema(n)).then(o,o),s.then((function(e){if(!c(n))return i(e).then((function(){c(n)||a.addSchema(e,n,void 0,r)}))})).then((function(){return l(e)}));function o(){delete a._loadingSchemas[n]}function c(e){return a._refs[e]||a._schemas[e]}}(t);throw t}}}},87802:(e,t,r)=>{"use strict";var n=r(83610);function s(e,t,r){this.message=r||s.message(e,t),this.missingRef=n.url(e,t),this.missingSchema=n.normalizeId(n.fullPath(this.missingRef))}function a(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}e.exports={Validation:a((function(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0})),MissingRef:a(s)},s.message=function(e,t){return"can't resolve reference "+t+" from id "+e}},1516:(e,t,r)=>{"use strict";var n=r(42889),s=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,a=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,i=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,p=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,f=/^(?:\/(?:[^~/]|~0|~1)*)*$/,d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function m(e){return e="full"==e?"full":"fast",n.copy(m[e])}function g(e){var t=e.match(s);if(!t)return!1;var r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(2==n&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(r)?29:a[n])}function y(e,t){var r=e.match(o);if(!r)return!1;var n=r[1],s=r[2],a=r[3],i=r[5];return(n<=23&&s<=59&&a<=59||23==n&&59==s&&60==a)&&(!t||i)}e.exports=m,m.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:v,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":h},m.full={date:g,time:y,"date-time":function(e){var t=e.split(x);return 2==t.length&&g(t[0])&&y(t[1],!0)},uri:function(e){return b.test(e)&&l.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":c,url:u,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:v,uuid:p,"json-pointer":f,"json-pointer-uri-fragment":d,"relative-json-pointer":h};var x=/t|\s/i,b=/\/|:/,E=/[^\\]\\Z/;function v(e){if(E.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}},47153:(e,t,r)=>{"use strict";var n=r(83610),s=r(42889),a=r(87802),o=r(35035),i=r(19508),l=s.ucs2length,c=r(64063),u=a.Validation;function p(e,t,r){var n=d.call(this,e,t,r);return n>=0?{index:n,compiling:!0}:(n=this._compilations.length,this._compilations[n]={schema:e,root:t,baseId:r},{index:n,compiling:!1})}function f(e,t,r){var n=d.call(this,e,t,r);n>=0&&this._compilations.splice(n,1)}function d(e,t,r){for(var n=0;n{"use strict";var n=r(60540),s=r(64063),a=r(42889),o=r(74022),i=r(49461);function l(e,t,r){var n=this._refs[r];if("string"==typeof n){if(!this._refs[n])return l.call(this,e,t,n);n=this._refs[n]}if((n=n||this._schemas[r])instanceof o)return h(n.schema,this._opts.inlineRefs)?n.schema:n.validate||this._compile(n);var s,a,i,u=c.call(this,t,r);return u&&(s=u.schema,t=u.root,i=u.baseId),s instanceof o?a=s.validate||e.call(this,s.schema,t,void 0,i):void 0!==s&&(a=h(s,this._opts.inlineRefs)?s:e.call(this,s,t,void 0,i)),a}function c(e,t){var r=n.parse(t),s=x(r),a=y(this._getId(e.schema));if(0===Object.keys(e.schema).length||s!==a){var i=E(s),l=this._refs[i];if("string"==typeof l)return u.call(this,e,l,r);if(l instanceof o)l.validate||this._compile(l),e=l;else{if(!((l=this._schemas[i])instanceof o))return;if(l.validate||this._compile(l),i==E(t))return{schema:l,root:e,baseId:a};e=l}if(!e.schema)return;a=y(this._getId(e.schema))}return f.call(this,r,a,e.schema,e)}function u(e,t,r){var n=c.call(this,e,t);if(n){var s=n.schema,a=n.baseId;e=n.root;var o=this._getId(s);return o&&(a=v(a,o)),f.call(this,r,a,s,e)}}e.exports=l,l.normalizeId=E,l.fullPath=y,l.url=v,l.ids=function(e){var t=E(this._getId(e)),r={"":t},o={"":y(t,!1)},l={},c=this;return i(e,{allKeys:!0},(function(e,t,i,u,p,f,d){if(""!==t){var h=c._getId(e),m=r[u],g=o[u]+"/"+p;if(void 0!==d&&(g+="/"+("number"==typeof d?d:a.escapeFragment(d))),"string"==typeof h){h=m=E(m?n.resolve(m,h):h);var y=c._refs[h];if("string"==typeof y&&(y=c._refs[y]),y&&y.schema){if(!s(e,y.schema))throw new Error('id "'+h+'" resolves to more than one schema')}else if(h!=E(g))if("#"==h[0]){if(l[h]&&!s(e,l[h]))throw new Error('id "'+h+'" resolves to more than one schema');l[h]=e}else c._refs[h]=g}r[t]=m,o[t]=g}})),l},l.inlineRef=h,l.schema=c;var p=a.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function f(e,t,r,n){if(e.fragment=e.fragment||"","/"==e.fragment.slice(0,1)){for(var s=e.fragment.split("/"),o=1;o{"use strict";var n=r(66674),s=r(42889).toHash;e.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"];return e.all=s(t),e.types=s(["number","integer","string","array","object","boolean","null"]),e.forEach((function(r){r.rules=r.rules.map((function(r){var s;if("object"==typeof r){var a=Object.keys(r)[0];s=r[a],r=a,s.forEach((function(r){t.push(r),e.all[r]=!0}))}return t.push(r),e.all[r]={keyword:r,code:n[r],implements:s}})),e.all.$comment={keyword:"$comment",code:n.$comment},r.type&&(e.types[r.type]=r)})),e.keywords=s(t.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),e.custom={},e}},74022:(e,t,r)=>{"use strict";var n=r(42889);e.exports=function(e){n.copy(e,this)}},4442:e=>{"use strict";e.exports=function(e){for(var t,r=0,n=e.length,s=0;s=55296&&t<=56319&&s{"use strict";function n(e,t,r,n){var s=n?" !== ":" === ",a=n?" || ":" && ",o=n?"!":"",i=n?"":"!";switch(e){case"null":return t+s+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+a+"typeof "+t+s+'"object"'+a+i+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+s+'"number"'+a+i+"("+t+" % 1)"+a+t+s+t+(r?a+o+"isFinite("+t+")":"")+")";case"number":return"(typeof "+t+s+'"'+e+'"'+(r?a+o+"isFinite("+t+")":"")+")";default:return"typeof "+t+s+'"'+e+'"'}}e.exports={copy:function(e,t){for(var r in t=t||{},e)t[r]=e[r];return t},checkDataType:n,checkDataTypes:function(e,t,r){if(1===e.length)return n(e[0],t,r,!0);var s="",o=a(e);for(var i in o.array&&o.object&&(s=o.null?"(":"(!"+t+" || ",s+="typeof "+t+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)s+=(s?" && ":"")+n(i,t,r,!0);return s},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var r=[],n=0;n=t)throw new Error("Cannot access property/index "+n+" levels up, current level is "+t);return r[t-n]}if(n>t)throw new Error("Cannot access data "+n+" levels up, current level is "+t);if(a="data"+(t-n||""),!s)return a}for(var i=a,c=s.split("/"),u=0;u{"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var n=0;n{"use strict";var n=r(6680);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:n.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:n.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},18210:e=>{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&i&&i.$data;f?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i;var d="maximum"==t,h=d?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],g=e.opts.$data&&m&&m.$data,y=d?"<":">",x=d?">":"<",b=void 0;if(!f&&"number"!=typeof i&&void 0!==i)throw new Error(t+" must be number");if(!g&&void 0!==m&&"number"!=typeof m&&"boolean"!=typeof m)throw new Error(h+" must be number or boolean");if(g){var E,v=e.util.getData(m.$data,o,e.dataPathArr),S="exclusive"+a,C="exclType"+a,A="exclIsNumber"+a,k="' + "+(D="op"+a)+" + '";s+=" var schemaExcl"+a+" = "+v+"; ",s+=" var "+S+"; var "+C+" = typeof "+(v="schemaExcl"+a)+"; if ("+C+" != 'boolean' && "+C+" != 'undefined' && "+C+" != 'number') { ",b=h,(E=E||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ",!1!==e.opts.messages&&(s+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(s+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var w=s;s=E.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+w+"]); ":s+=" validate.errors = ["+w+"]; return false; ":s+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } else if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" "+C+" == 'number' ? ( ("+S+" = "+n+" === undefined || "+v+" "+y+"= "+n+") ? "+p+" "+x+"= "+v+" : "+p+" "+x+" "+n+" ) : ( ("+S+" = "+v+" === true) ? "+p+" "+x+"= "+n+" : "+p+" "+x+" "+n+" ) || "+p+" !== "+p+") { var op"+a+" = "+S+" ? '"+y+"' : '"+y+"='; ",void 0===i&&(b=h,c=e.errSchemaPath+"/"+h,n=v,f=g)}else if(k=y,(A="number"==typeof m)&&f){var D="'"+k+"'";s+=" if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" ( "+n+" === undefined || "+m+" "+y+"= "+n+" ? "+p+" "+x+"= "+m+" : "+p+" "+x+" "+n+" ) || "+p+" !== "+p+") { "}else A&&void 0===i?(S=!0,b=h,c=e.errSchemaPath+"/"+h,n=m,x+="="):(A&&(n=Math[d?"min":"max"](m,i)),m===(!A||n)?(S=!0,b=h,c=e.errSchemaPath+"/"+h,x+="="):(S=!1,k+="=")),D="'"+k+"'",s+=" if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" "+p+" "+x+" "+n+" || "+p+" !== "+p+") { ";return b=b||t,(E=E||[]).push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+D+", limit: "+n+", exclusive: "+S+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be "+k+" ",s+=f?"' + "+n:n+"'"),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+i,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ",w=s,s=E.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+w+"]); ":s+=" validate.errors = ["+w+"]; return false; ":s+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { "),s}},33038:e=>{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&i&&i.$data;if(f?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i,!f&&"number"!=typeof i)throw new Error(t+" must be number");s+="if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" "+p+".length "+("maxItems"==t?">":"<")+" "+n+") { ";var d=t,h=h||[];h.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxItems"==t?"more":"fewer",s+=" than ",s+=f?"' + "+n+" + '":""+i,s+=" items' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+i,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var m=s;return s=h.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},80425:e=>{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&i&&i.$data;if(f?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i,!f&&"number"!=typeof i)throw new Error(t+" must be number");var d="maxLength"==t?">":"<";s+="if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===e.opts.unicode?s+=" "+p+".length ":s+=" ucs2length("+p+") ",s+=" "+d+" "+n+") { ";var h=t,m=m||[];m.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT be ",s+="maxLength"==t?"longer":"shorter",s+=" than ",s+=f?"' + "+n+" + '":""+i,s+=" characters' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+i,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var g=s;return s=m.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+g+"]); ":s+=" validate.errors = ["+g+"]; return false; ":s+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},78204:e=>{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&i&&i.$data;if(f?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i,!f&&"number"!=typeof i)throw new Error(t+" must be number");s+="if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),s+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+n+") { ";var d=t,h=h||[];h.push(s),s="",!1!==e.createErrors?(s+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have ",s+="maxProperties"==t?"more":"fewer",s+=" than ",s+=f?"' + "+n+" + '":""+i,s+=" properties' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+i,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var m=s;return s=h.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+m+"]); ":s+=" validate.errors = ["+m+"]; return false; ":s+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},42988:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.schema[t],a=e.schemaPath+e.util.getProperty(t),o=e.errSchemaPath+"/"+t,i=!e.opts.allErrors,l=e.util.copy(e),c="";l.level++;var u="valid"+l.level,p=l.baseId,f=!0,d=s;if(d)for(var h,m=-1,g=d.length-1;m0||!1===h:e.util.schemaHasRules(h,e.RULES.all))&&(f=!1,l.schema=h,l.schemaPath=a+"["+m+"]",l.errSchemaPath=o+"/"+m,n+=" "+e.validate(l)+" ",l.baseId=p,i&&(n+=" if ("+u+") { ",c+="}"));return i&&(n+=f?" if (true) { ":" "+c.slice(0,-1)+" "),n}},39996:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f="errs__"+s,d=e.util.copy(e),h="";d.level++;var m="valid"+d.level,g=o.every((function(t){return e.opts.strictKeywords?"object"==typeof t&&Object.keys(t).length>0||!1===t:e.util.schemaHasRules(t,e.RULES.all)}));if(g){var y=d.baseId;n+=" var "+f+" = errors; var "+p+" = false; ";var x=e.compositeRule;e.compositeRule=d.compositeRule=!0;var b=o;if(b)for(var E,v=-1,S=b.length-1;v{"use strict";e.exports=function(e,t,r){var n=" ",s=e.schema[t],a=e.errSchemaPath+"/"+t,o=(e.opts.allErrors,e.util.toQuotedString(s));return!0===e.opts.$comment?n+=" console.log("+o+");":"function"==typeof e.opts.$comment&&(n+=" self._opts.$comment("+o+", "+e.util.toQuotedString(a)+", validate.root.schema);"),n}},25306:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f=e.opts.$data&&o&&o.$data;f&&(n+=" var schema"+s+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; "),f||(n+=" var schema"+s+" = validate.schema"+i+";"),n+="var "+p+" = equal("+u+", schema"+s+"); if (!"+p+") { ";var d=d||[];d.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValue: schema"+s+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var h=n;return n=d.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+h+"]); ":n+=" validate.errors = ["+h+"]; return false; ":n+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},2840:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f="errs__"+s,d=e.util.copy(e);d.level++;var h="valid"+d.level,m="i"+s,g=d.dataLevel=e.dataLevel+1,y="data"+g,x=e.baseId,b=e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all);if(n+="var "+f+" = errors;var "+p+";",b){var E=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=i,d.errSchemaPath=l,n+=" var "+h+" = false; for (var "+m+" = 0; "+m+" < "+u+".length; "+m+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers,!0);var v=u+"["+m+"]";d.dataPathArr[g]=m;var S=e.validate(d);d.baseId=x,e.util.varOccurences(S,y)<2?n+=" "+e.util.varReplace(S,y,v)+" ":n+=" var "+y+" = "+v+"; "+S+" ",n+=" if ("+h+") break; } ",e.compositeRule=d.compositeRule=E,n+=" if (!"+h+") {"}else n+=" if ("+u+".length == 0) {";var C=C||[];C.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var A=n;return n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",b&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}},14165:e=>{"use strict";e.exports=function(e,t,r){var n,s,a=" ",o=e.level,i=e.dataLevel,l=e.schema[t],c=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,p=!e.opts.allErrors,f="data"+(i||""),d="valid"+o,h="errs__"+o,m=e.opts.$data&&l&&l.$data;m?(a+=" var schema"+o+" = "+e.util.getData(l.$data,i,e.dataPathArr)+"; ",s="schema"+o):s=l;var g,y,x,b,E,v=this,S="definition"+o,C=v.definition,A="";if(m&&C.$data){E="keywordValidate"+o;var k=C.validateSchema;a+=" var "+S+" = RULES.custom['"+t+"'].definition; var "+E+" = "+S+".validate;"}else{if(!(b=e.useCustomRule(v,l,e.schema,e)))return;s="validate.schema"+c,E=b.code,g=C.compile,y=C.inline,x=C.macro}var w=E+".errors",D="i"+o,F="ruleErr"+o,T=C.async;if(T&&!e.async)throw new Error("async keyword in sync schema");if(y||x||(a+=w+" = null;"),a+="var "+h+" = errors;var "+d+";",m&&C.$data&&(A+="}",a+=" if ("+s+" === undefined) { "+d+" = true; } else { ",k&&(A+="}",a+=" "+d+" = "+S+".validateSchema("+s+"); if ("+d+") { ")),y)C.statements?a+=" "+b.validate+" ":a+=" "+d+" = "+b.validate+"; ";else if(x){var P=e.util.copy(e);A="",P.level++;var I="valid"+P.level;P.schema=b.validate,P.schemaPath="";var _=e.compositeRule;e.compositeRule=P.compositeRule=!0;var B=e.validate(P).replace(/validate\.schema/g,E);e.compositeRule=P.compositeRule=_,a+=" "+B}else{(j=j||[]).push(a),a="",a+=" "+E+".call( ",e.opts.passContext?a+="this":a+="self",g||!1===C.schema?a+=" , "+f+" ":a+=" , "+s+" , "+f+" , validate.schema"+e.schemaPath+" ",a+=" , (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);var O=i?"data"+(i-1||""):"parentData",L=i?e.dataPathArr[i]:"parentDataProperty",R=a+=" , "+O+" , "+L+" , rootData ) ";a=j.pop(),!1===C.errors?(a+=" "+d+" = ",T&&(a+="await "),a+=R+"; "):a+=T?" var "+(w="customErrors"+o)+" = null; try { "+d+" = await "+R+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+w+" = e.errors; else throw e; } ":" "+w+" = null; "+d+" = "+R+"; "}if(C.modifying&&(a+=" if ("+O+") "+f+" = "+O+"["+L+"];"),a+=""+A,C.valid)p&&(a+=" if (true) { ");else{var j;a+=" if ( ",void 0===C.valid?(a+=" !",a+=x?""+I:""+d):a+=" "+!C.valid+" ",a+=") { ",n=v.keyword,(j=j||[]).push(a),a="",(j=j||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",!1!==e.opts.messages&&(a+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "),e.opts.verbose&&(a+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),a+=" } "):a+=" {} ";var N=a;a=j.pop(),!e.compositeRule&&p?e.async?a+=" throw new ValidationError(["+N+"]); ":a+=" validate.errors = ["+N+"]; return false; ":a+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var M=a;a=j.pop(),y?C.errors?"full"!=C.errors&&(a+=" for (var "+D+"="+h+"; "+D+"{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="errs__"+s,f=e.util.copy(e),d="";f.level++;var h="valid"+f.level,m={},g={},y=e.opts.ownProperties;for(v in o)if("__proto__"!=v){var x=o[v],b=Array.isArray(x)?g:m;b[v]=x}n+="var "+p+" = errors;";var E=e.errorPath;for(var v in n+="var missing"+s+";",g)if((b=g[v]).length){if(n+=" if ( "+u+e.util.getProperty(v)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(v)+"') "),c){n+=" && ( ";var S=b;if(S)for(var C=-1,A=S.length-1;C0||!1===x:e.util.schemaHasRules(x,e.RULES.all))&&(n+=" "+h+" = true; if ( "+u+e.util.getProperty(v)+" !== undefined ",y&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(v)+"') "),n+=") { ",f.schema=x,f.schemaPath=i+e.util.getProperty(v),f.errSchemaPath=l+"/"+e.util.escapeFragment(v),n+=" "+e.validate(f)+" ",f.baseId=L,n+=" } ",c&&(n+=" if ("+h+") { ",d+="}"));return c&&(n+=" "+d+" if ("+p+" == errors) {"),n}},31740:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f=e.opts.$data&&o&&o.$data;f&&(n+=" var schema"+s+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ");var d="i"+s,h="schema"+s;f||(n+=" var "+h+" = validate.schema"+i+";"),n+="var "+p+";",f&&(n+=" if (schema"+s+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+s+")) "+p+" = false; else {"),n+=p+" = false;for (var "+d+"=0; "+d+"<"+h+".length; "+d+"++) if (equal("+u+", "+h+"["+d+"])) { "+p+" = true; break; }",f&&(n+=" } "),n+=" if (!"+p+") { ";var m=m||[];m.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { allowedValues: schema"+s+" } ",!1!==e.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}},39014:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||"");if(!1===e.opts.format)return c&&(n+=" if (true) { "),n;var p,f=e.opts.$data&&o&&o.$data;f?(n+=" var schema"+s+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ",p="schema"+s):p=o;var d=e.opts.unknownFormats,h=Array.isArray(d);if(f)n+=" var "+(m="format"+s)+" = formats["+p+"]; var "+(g="isObject"+s)+" = typeof "+m+" == 'object' && !("+m+" instanceof RegExp) && "+m+".validate; var "+(y="formatType"+s)+" = "+g+" && "+m+".type || 'string'; if ("+g+") { ",e.async&&(n+=" var async"+s+" = "+m+".async; "),n+=" "+m+" = "+m+".validate; } if ( ",f&&(n+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),n+=" (","ignore"!=d&&(n+=" ("+p+" && !"+m+" ",h&&(n+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),n+=") || "),n+=" ("+m+" && "+y+" == '"+r+"' && !(typeof "+m+" == 'function' ? ",e.async?n+=" (async"+s+" ? await "+m+"("+u+") : "+m+"("+u+")) ":n+=" "+m+"("+u+") ",n+=" : "+m+".test("+u+"))))) {";else{var m;if(!(m=e.formats[o])){if("ignore"==d)return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(h&&d.indexOf(o)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g,y=(g="object"==typeof m&&!(m instanceof RegExp)&&m.validate)&&m.type||"string";if(g){var x=!0===m.async;m=m.validate}if(y!=r)return c&&(n+=" if (true) { "),n;if(x){if(!e.async)throw new Error("async format in sync schema");n+=" if (!(await "+(b="formats"+e.util.getProperty(o)+".validate")+"("+u+"))) { "}else{n+=" if (! ";var b="formats"+e.util.getProperty(o);g&&(b+=".validate"),n+="function"==typeof m?" "+b+"("+u+") ":" "+b+".test("+u+") ",n+=") { "}}var E=E||[];E.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { format: ",n+=f?""+p:""+e.util.toQuotedString(o),n+=" } ",!1!==e.opts.messages&&(n+=" , message: 'should match format \"",n+=f?"' + "+p+" + '":""+e.util.escapeQuotes(o),n+="\"' "),e.opts.verbose&&(n+=" , schema: ",n+=f?"validate.schema"+i:""+e.util.toQuotedString(o),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var v=n;return n=E.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}},17231:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f="errs__"+s,d=e.util.copy(e);d.level++;var h="valid"+d.level,m=e.schema.then,g=e.schema.else,y=void 0!==m&&(e.opts.strictKeywords?"object"==typeof m&&Object.keys(m).length>0||!1===m:e.util.schemaHasRules(m,e.RULES.all)),x=void 0!==g&&(e.opts.strictKeywords?"object"==typeof g&&Object.keys(g).length>0||!1===g:e.util.schemaHasRules(g,e.RULES.all)),b=d.baseId;if(y||x){var E;d.createErrors=!1,d.schema=o,d.schemaPath=i,d.errSchemaPath=l,n+=" var "+f+" = errors; var "+p+" = true; ";var v=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=b,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=v,y?(n+=" if ("+h+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=b,n+=" "+p+" = "+h+"; ",y&&x?n+=" var "+(E="ifClause"+s)+" = 'then'; ":E="'then'",n+=" } ",x&&(n+=" else { ")):n+=" if (!"+h+") { ",x&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=b,n+=" "+p+" = "+h+"; ",y&&x?n+=" var "+(E="ifClause"+s)+" = 'else'; ":E="'else'",n+=" } "),n+=" if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { failingKeyword: "+E+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match \"' + "+E+" + '\" schema' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}},66674:(e,t,r)=>{"use strict";e.exports={$ref:r(62392),allOf:r(42988),anyOf:r(39996),$comment:r(57812),const:r(25306),contains:r(2840),dependencies:r(66659),enum:r(31740),format:r(39014),if:r(17231),items:r(37482),maximum:r(18210),minimum:r(18210),maxItems:r(33038),minItems:r(33038),maxLength:r(80425),minLength:r(80425),maxProperties:r(78204),minProperties:r(78204),multipleOf:r(43673),not:r(28528),oneOf:r(59709),pattern:r(49614),properties:r(81175),propertyNames:r(58441),required:r(71287),uniqueItems:r(3603),validate:r(19508)}},37482:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f="errs__"+s,d=e.util.copy(e),h="";d.level++;var m="valid"+d.level,g="i"+s,y=d.dataLevel=e.dataLevel+1,x="data"+y,b=e.baseId;if(n+="var "+f+" = errors;var "+p+";",Array.isArray(o)){var E=e.schema.additionalItems;if(!1===E){n+=" "+p+" = "+u+".length <= "+o.length+"; ";var v=l;l=e.errSchemaPath+"/additionalItems",n+=" if (!"+p+") { ";var S=S||[];S.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+o.length+" } ",!1!==e.opts.messages&&(n+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var C=n;n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",l=v,c&&(h+="}",n+=" else { ")}var A=o;if(A)for(var k,w=-1,D=A.length-1;w0||!1===k:e.util.schemaHasRules(k,e.RULES.all)){n+=" "+m+" = true; if ("+u+".length > "+w+") { ";var F=u+"["+w+"]";d.schema=k,d.schemaPath=i+"["+w+"]",d.errSchemaPath=l+"/"+w,d.errorPath=e.util.getPathExpr(e.errorPath,w,e.opts.jsonPointers,!0),d.dataPathArr[y]=w;var T=e.validate(d);d.baseId=b,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,F)+" ":n+=" var "+x+" = "+F+"; "+T+" ",n+=" } ",c&&(n+=" if ("+m+") { ",h+="}")}"object"==typeof E&&(e.opts.strictKeywords?"object"==typeof E&&Object.keys(E).length>0||!1===E:e.util.schemaHasRules(E,e.RULES.all))&&(d.schema=E,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+m+" = true; if ("+u+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+u+".length; "+g+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0),F=u+"["+g+"]",d.dataPathArr[y]=g,T=e.validate(d),d.baseId=b,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,F)+" ":n+=" var "+x+" = "+F+"; "+T+" ",c&&(n+=" if (!"+m+") break; "),n+=" } } ",c&&(n+=" if ("+m+") { ",h+="}"))}else(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all))&&(d.schema=o,d.schemaPath=i,d.errSchemaPath=l,n+=" for (var "+g+" = 0; "+g+" < "+u+".length; "+g+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0),F=u+"["+g+"]",d.dataPathArr[y]=g,T=e.validate(d),d.baseId=b,e.util.varOccurences(T,x)<2?n+=" "+e.util.varReplace(T,x,F)+" ":n+=" var "+x+" = "+F+"; "+T+" ",c&&(n+=" if (!"+m+") break; "),n+=" }");return c&&(n+=" "+h+" if ("+f+" == errors) {"),n}},43673:e=>{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&i&&i.$data;if(f?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i,!f&&"number"!=typeof i)throw new Error(t+" must be number");s+="var division"+a+";if (",f&&(s+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),s+=" (division"+a+" = "+p+" / "+n+", ",e.opts.multipleOfPrecision?s+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":s+=" division"+a+" !== parseInt(division"+a+") ",s+=" ) ",f&&(s+=" ) "),s+=" ) { ";var d=d||[];d.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+n+" } ",!1!==e.opts.messages&&(s+=" , message: 'should be multiple of ",s+=f?"' + "+n:n+"'"),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+i,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var h=s;return s=d.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+h+"]); ":s+=" validate.errors = ["+h+"]; return false; ":s+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},28528:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="errs__"+s,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=i,f.errSchemaPath=l,n+=" var "+p+" = errors; ";var h,m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.opts.allErrors&&(h=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,h&&(f.opts.allErrors=h),e.compositeRule=f.compositeRule=m,n+=" if ("+d+") { ";var g=g||[];g.push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",!1!==e.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}},59709:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f="errs__"+s,d=e.util.copy(e),h="";d.level++;var m="valid"+d.level,g=d.baseId,y="prevValid"+s,x="passingSchemas"+s;n+="var "+f+" = errors , "+y+" = false , "+p+" = false , "+x+" = null; ";var b=e.compositeRule;e.compositeRule=d.compositeRule=!0;var E=o;if(E)for(var v,S=-1,C=E.length-1;S0||!1===v:e.util.schemaHasRules(v,e.RULES.all))?(d.schema=v,d.schemaPath=i+"["+S+"]",d.errSchemaPath=l+"/"+S,n+=" "+e.validate(d)+" ",d.baseId=g):n+=" var "+m+" = true; ",S&&(n+=" if ("+m+" && "+y+") { "+p+" = false; "+x+" = ["+x+", "+S+"]; } else { ",h+="}"),n+=" if ("+m+") { "+p+" = "+y+" = true; "+x+" = "+S+"; }";return e.compositeRule=d.compositeRule=b,n+=h+"if (!"+p+") { var err = ",!1!==e.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { passingSchemas: "+x+" } ",!1!==e.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}},49614:e=>{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f=e.opts.$data&&i&&i.$data;f?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i,s+="if ( ",f&&(s+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),s+=" !"+(f?"(new RegExp("+n+"))":e.usePattern(i))+".test("+p+") ) { ";var d=d||[];d.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { pattern: ",s+=f?""+n:""+e.util.toQuotedString(i),s+=" } ",!1!==e.opts.messages&&(s+=" , message: 'should match pattern \"",s+=f?"' + "+n+" + '":""+e.util.escapeQuotes(i),s+="\"' "),e.opts.verbose&&(s+=" , schema: ",s+=f?"validate.schema"+l:""+e.util.toQuotedString(i),s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var h=s;return s=d.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+h+"]); ":s+=" validate.errors = ["+h+"]; return false; ":s+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+="} ",u&&(s+=" else { "),s}},81175:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="errs__"+s,f=e.util.copy(e),d="";f.level++;var h="valid"+f.level,m="key"+s,g="idx"+s,y=f.dataLevel=e.dataLevel+1,x="data"+y,b="dataProperties"+s,E=Object.keys(o||{}).filter(B),v=e.schema.patternProperties||{},S=Object.keys(v).filter(B),C=e.schema.additionalProperties,A=E.length||S.length,k=!1===C,w="object"==typeof C&&Object.keys(C).length,D=e.opts.removeAdditional,F=k||w||D,T=e.opts.ownProperties,P=e.baseId,I=e.schema.required;if(I&&(!e.opts.$data||!I.$data)&&I.length8)n+=" || validate.schema"+i+".hasOwnProperty("+m+") ";else{var O=E;if(O)for(var L=-1,R=O.length-1;L0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all)){var Z=e.util.getProperty(K),ee=(W=u+Z,H&&void 0!==Y.default);if(f.schema=Y,f.schemaPath=i+Z,f.errSchemaPath=l+"/"+e.util.escapeFragment(K),f.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers),f.dataPathArr[y]=e.util.toQuotedString(K),z=e.validate(f),f.baseId=P,e.util.varOccurences(z,x)<2){z=e.util.varReplace(z,x,W);var te=W}else te=x,n+=" var "+x+" = "+W+"; ";if(ee)n+=" "+z+" ";else{if(_&&_[K]){n+=" if ( "+te+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+h+" = false; ",V=e.errorPath,U=l;var re,ne=e.util.escapeQuotes(K);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(V,K,e.opts.jsonPointers)),l=e.errSchemaPath+"/required",(re=re||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+ne+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ne+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ",q=n,n=re.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+q+"]); ":n+=" validate.errors = ["+q+"]; return false; ":n+=" var err = "+q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=U,e.errorPath=V,n+=" } else { "}else c?(n+=" if ( "+te+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(K)+"') "),n+=") { "+h+" = true; } else { "):(n+=" if ("+te+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", '"+e.util.escapeQuotes(K)+"') "),n+=" ) { ");n+=" "+z+" } "}}c&&(n+=" if ("+h+") { ",d+="}")}}if(S.length){var se=S;if(se)for(var ae,oe=-1,ie=se.length-1;oe0||!1===Y:e.util.schemaHasRules(Y,e.RULES.all))&&(f.schema=Y,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ae),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ae),n+=T?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+g+"=0; "+g+"<"+b+".length; "+g+"++) { var "+m+" = "+b+"["+g+"]; ":" for (var "+m+" in "+u+") { ",n+=" if ("+e.usePattern(ae)+".test("+m+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,m,e.opts.jsonPointers),W=u+"["+m+"]",f.dataPathArr[y]=m,z=e.validate(f),f.baseId=P,e.util.varOccurences(z,x)<2?n+=" "+e.util.varReplace(z,x,W)+" ":n+=" var "+x+" = "+W+"; "+z+" ",c&&(n+=" if (!"+h+") break; "),n+=" } ",c&&(n+=" else "+h+" = true; "),n+=" } ",c&&(n+=" if ("+h+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+p+" == errors) {"),n}},58441:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="errs__"+s,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(n+="var "+p+" = errors;",e.opts.strictKeywords?"object"==typeof o&&Object.keys(o).length>0||!1===o:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o,f.schemaPath=i,f.errSchemaPath=l;var h="key"+s,m="idx"+s,g="i"+s,y="' + "+h+" + '",x="data"+(f.dataLevel=e.dataLevel+1),b="dataProperties"+s,E=e.opts.ownProperties,v=e.baseId;E&&(n+=" var "+b+" = undefined; "),n+=E?" "+b+" = "+b+" || Object.keys("+u+"); for (var "+m+"=0; "+m+"<"+b+".length; "+m+"++) { var "+h+" = "+b+"["+m+"]; ":" for (var "+h+" in "+u+") { ",n+=" var startErrs"+s+" = errors; ";var S=h,C=e.compositeRule;e.compositeRule=f.compositeRule=!0;var A=e.validate(f);f.baseId=v,e.util.varOccurences(A,x)<2?n+=" "+e.util.varReplace(A,x,S)+" ":n+=" var "+x+" = "+S+"; "+A+" ",e.compositeRule=f.compositeRule=C,n+=" if (!"+d+") { for (var "+g+"=startErrs"+s+"; "+g+"{"use strict";e.exports=function(e,t,r){var n,s,a=" ",o=e.level,i=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(i||""),f="valid"+o;if("#"==l||"#/"==l)e.isRoot?(n=e.async,s="validate"):(n=!0===e.root.schema.$async,s="root.refVal[0]");else{var d=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===d){var h=e.MissingRefError.message(e.baseId,l);if("fail"==e.opts.missingRefs){e.logger.error(h),(x=x||[]).push(a),a="",!1!==e.createErrors?(a+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",!1!==e.opts.messages&&(a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(a+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),a+=" } "):a+=" {} ";var m=a;a=x.pop(),!e.compositeRule&&u?e.async?a+=" throw new ValidationError(["+m+"]); ":a+=" validate.errors = ["+m+"]; return false; ":a+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(a+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs)throw new e.MissingRefError(e.baseId,l,h);e.logger.warn(h),u&&(a+=" if (true) { ")}}else if(d.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=d.schema,g.schemaPath="",g.errSchemaPath=l,a+=" "+e.validate(g).replace(/validate\.schema/g,d.code)+" ",u&&(a+=" if ("+y+") { ")}else n=!0===d.$async||e.async&&!1!==d.$async,s=d.code}if(s){var x;(x=x||[]).push(a),a="",e.opts.passContext?a+=" "+s+".call(this, ":a+=" "+s+"( ",a+=" "+p+", (dataPath || '')",'""'!=e.errorPath&&(a+=" + "+e.errorPath);var b=a+=" , "+(i?"data"+(i-1||""):"parentData")+" , "+(i?e.dataPathArr[i]:"parentDataProperty")+", rootData) ";if(a=x.pop(),n){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(a+=" var "+f+"; "),a+=" try { await "+b+"; ",u&&(a+=" "+f+" = true; "),a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(a+=" "+f+" = false; "),a+=" } ",u&&(a+=" if ("+f+") { ")}else a+=" if (!"+b+") { if (vErrors === null) vErrors = "+s+".errors; else vErrors = vErrors.concat("+s+".errors); errors = vErrors.length; } ",u&&(a+=" else { ")}return a}},71287:e=>{"use strict";e.exports=function(e,t,r){var n=" ",s=e.level,a=e.dataLevel,o=e.schema[t],i=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,u="data"+(a||""),p="valid"+s,f=e.opts.$data&&o&&o.$data;f&&(n+=" var schema"+s+" = "+e.util.getData(o.$data,a,e.dataPathArr)+"; ");var d="schema"+s;if(!f)if(o.length0||!1===b:e.util.schemaHasRules(b,e.RULES.all))||(h[h.length]=g)}}else h=o;if(f||h.length){var E=e.errorPath,v=f||h.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(c)if(n+=" var missing"+s+"; ",v){f||(n+=" var "+d+" = validate.schema"+i+"; ");var C="' + "+(T="schema"+s+"["+(D="i"+s)+"]")+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(E,T,e.opts.jsonPointers)),n+=" var "+p+" = true; ",f&&(n+=" if (schema"+s+" === undefined) "+p+" = true; else if (!Array.isArray(schema"+s+")) "+p+" = false; else {"),n+=" for (var "+D+" = 0; "+D+" < "+d+".length; "+D+"++) { "+p+" = "+u+"["+d+"["+D+"]] !== undefined ",S&&(n+=" && Object.prototype.hasOwnProperty.call("+u+", "+d+"["+D+"]) "),n+="; if (!"+p+") break; } ",f&&(n+=" } "),n+=" if (!"+p+") { ",(k=k||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { missingProperty: '"+C+"' } ",!1!==e.opts.messages&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+C+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+i+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var A=n;n=k.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var k,w=h;if(w)for(var D=-1,F=w.length-1;D{"use strict";e.exports=function(e,t,r){var n,s=" ",a=e.level,o=e.dataLevel,i=e.schema[t],l=e.schemaPath+e.util.getProperty(t),c=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(o||""),f="valid"+a,d=e.opts.$data&&i&&i.$data;if(d?(s+=" var schema"+a+" = "+e.util.getData(i.$data,o,e.dataPathArr)+"; ",n="schema"+a):n=i,(i||d)&&!1!==e.opts.uniqueItems){d&&(s+=" var "+f+"; if ("+n+" === false || "+n+" === undefined) "+f+" = true; else if (typeof "+n+" != 'boolean') "+f+" = false; else { "),s+=" var i = "+p+".length , "+f+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,m=Array.isArray(h);if(!h||"object"==h||"array"==h||m&&(h.indexOf("object")>=0||h.indexOf("array")>=0))s+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+f+" = false; break outer; } } } ";else{s+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var g="checkDataType"+(m?"s":"");s+=" if ("+e.util[g](h,"item",e.opts.strictNumbers,!0)+") continue; ",m&&(s+=" if (typeof item == 'string') item = '\"' + item; "),s+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}s+=" } ",d&&(s+=" } "),s+=" if (!"+f+") { ";var y=y||[];y.push(s),s="",!1!==e.createErrors?(s+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ",!1!==e.opts.messages&&(s+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(s+=" , schema: ",s+=d?"validate.schema"+l:""+i,s+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),s+=" } "):s+=" {} ";var x=s;s=y.pop(),!e.compositeRule&&u?e.async?s+=" throw new ValidationError(["+x+"]); ":s+=" validate.errors = ["+x+"]; return false; ":s+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s+=" } ",u&&(s+=" else { ")}else u&&(s+=" if (true) { ");return s}},19508:e=>{"use strict";e.exports=function(e,t,r){var n="",s=!0===e.schema.$async,a=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var i=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(i){var l="unknown keyword: "+i;if("log"!==e.opts.strictKeywords)throw new Error(l);e.logger.warn(l)}}if(e.isTop&&(n+=" var validate = ",s&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" /*# sourceURL="+o+" */ ")),"boolean"==typeof e.schema||!a&&!e.schema.$ref){t="false schema";var c=e.level,u=e.dataLevel,p=e.schema[t],f=e.schemaPath+e.util.getProperty(t),d=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,m="data"+(u||""),g="valid"+c;if(!1===e.schema){e.isTop?h=!0:n+=" var "+g+" = false; ",(W=W||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ";var y=n;n=W.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n+=s?" return data; ":" validate.errors = null; return true; ":n+=" var "+g+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var x=e.isTop;if(c=e.level=0,u=e.dataLevel=0,m="data",e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var b="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(b);e.logger.warn(b)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{if(c=e.level,m="data"+((u=e.dataLevel)||""),o&&(e.baseId=e.resolve.url(e.baseId,o)),s&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}g="valid"+c,h=!e.opts.allErrors;var E="",v="",S=e.schema.type,C=Array.isArray(S);if(S&&e.opts.nullable&&!0===e.schema.nullable&&(C?-1==S.indexOf("null")&&(S=S.concat("null")):"null"!=S&&(S=[S,"null"],C=!0)),C&&1==S.length&&(S=S[0],C=!1),e.schema.$ref&&a){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(a=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),S){if(e.opts.coerceTypes)var A=e.util.coerceToTypes(e.opts.coerceTypes,S);var k=e.RULES.types[S];if(A||C||!0===k||k&&!Q(k)){f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type";var w=C?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[w](S,m,e.opts.strictNumbers,!0)+") { ",A){var D="dataType"+c,F="coerced"+c;n+=" var "+D+" = typeof "+m+"; var "+F+" = undefined; ","array"==e.opts.coerceTypes&&(n+=" if ("+D+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+D+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+F+" = "+m+"; } "),n+=" if ("+F+" !== undefined) ; ";var T=A;if(T)for(var P,I=-1,_=T.length-1;I<_;)"string"==(P=T[I+=1])?n+=" else if ("+D+" == 'number' || "+D+" == 'boolean') "+F+" = '' + "+m+"; else if ("+m+" === null) "+F+" = ''; ":"number"==P||"integer"==P?(n+=" else if ("+D+" == 'boolean' || "+m+" === null || ("+D+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==P&&(n+=" && !("+m+" % 1)"),n+=")) "+F+" = +"+m+"; "):"boolean"==P?n+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+F+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+F+" = true; ":"null"==P?n+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+F+" = null; ":"array"==e.opts.coerceTypes&&"array"==P&&(n+=" else if ("+D+" == 'string' || "+D+" == 'number' || "+D+" == 'boolean' || "+m+" == null) "+F+" = ["+m+"]; ");n+=" else { ",(W=W||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",n+=C?""+S.join(","):""+S,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=C?""+S.join(","):""+S,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",y=n,n=W.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+F+" !== undefined) { ";var B=u?"data"+(u-1||""):"parentData";n+=" "+m+" = "+F+"; ",u||(n+="if ("+B+" !== undefined)"),n+=" "+B+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+F+"; } "}else(W=W||[]).push(n),n="",!1!==e.createErrors?(n+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",n+=C?""+S.join(","):""+S,n+="' } ",!1!==e.opts.messages&&(n+=" , message: 'should be ",n+=C?""+S.join(","):""+S,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),n+=" } "):n+=" {} ",y=n,n=W.pop(),!e.compositeRule&&h?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";n+=" } "}}if(e.schema.$ref&&!a)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",h&&(n+=" } if (errors === ",n+=x?"0":"errs_"+c,n+=") { ",v+="}");else{var O=e.RULES;if(O)for(var L=-1,R=O.length-1;L{"use strict";var n=/^[a-z_$][a-z0-9_$-]*$/i,s=r(14165),a=r(61128);e.exports={add:function(e,t){var r=this.RULES;if(r.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!n.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(t){this.validateKeyword(t,!0);var a=t.type;if(Array.isArray(a))for(var o=0;o{"use strict";var n=r(34155),s=r(25108);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o,i,l=r(62136).codes,c=l.ERR_AMBIGUOUS_ARGUMENT,u=l.ERR_INVALID_ARG_TYPE,p=l.ERR_INVALID_ARG_VALUE,f=l.ERR_INVALID_RETURN_VALUE,d=l.ERR_MISSING_ARGS,h=r(25961),m=r(89539).inspect,g=r(89539).types,y=g.isPromise,x=g.isRegExp,b=Object.assign?Object.assign:r(8091).assign,E=Object.is?Object.is:r(20609);function v(){var e=r(19158);o=e.isDeepEqual,i=e.isDeepStrictEqual}new Map;var S=!1,C=e.exports=D,A={};function k(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function w(e,t,r,n){if(!r){var s=!1;if(0===t)s=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var a=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw a.generatedMessage=s,a}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),s=1;s1?r-1:0),s=1;s1?r-1:0),s=1;s1?r-1:0),s=1;s{"use strict";var n=r(34155);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;re.length)&&(r=e.length),e.substring(r-t.length,r)===t}var g="",y="",x="",b="",E={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function v(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function S(e){return d(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var C=function(e){function t(e){var r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==f(e)||null===e)throw new h("options","Object",e);var s=e.message,a=e.operator,l=e.stackStartFn,c=e.actual,u=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=s)r=o(this,p(t).call(this,String(s)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(g="",y="",b="",x=""):(g="",y="",b="",x="")),"object"===f(c)&&null!==c&&"object"===f(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=v(c),u=v(u)),"deepStrictEqual"===a||"strictEqual"===a)r=o(this,p(t).call(this,function(e,t,r){var s="",a="",o=0,i="",l=!1,c=S(e),u=c.split("\n"),p=S(t).split("\n"),d=0,h="";if("strictEqual"===r&&"object"===f(e)&&"object"===f(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===p.length&&u[0]!==p[0]){var v=u[0].length+p[0].length;if(v<=10){if(!("object"===f(e)&&null!==e||"object"===f(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(p[0],"\n")}else if("strictEqualObject"!==r&&v<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;u[0][d]===p[0][d];)d++;d>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",d),"^"),d=0)}}for(var C=u[u.length-1],A=p[p.length-1];C===A&&(d++<2?i="\n ".concat(C).concat(i):s=C,u.pop(),p.pop(),0!==u.length&&0!==p.length);)C=u[u.length-1],A=p[p.length-1];var k=Math.max(u.length,p.length);if(0===k){var w=c.split("\n");if(w.length>30)for(w[26]="".concat(g,"...").concat(b);w.length>27;)w.pop();return"".concat(E.notIdentical,"\n\n").concat(w.join("\n"),"\n")}d>3&&(i="\n".concat(g,"...").concat(b).concat(i),l=!0),""!==s&&(i="\n ".concat(s).concat(i),s="");var D=0,F=E[r]+"\n".concat(y,"+ actual").concat(b," ").concat(x,"- expected").concat(b),T=" ".concat(g,"...").concat(b," Lines skipped");for(d=0;d1&&d>2&&(P>4?(a+="\n".concat(g,"...").concat(b),l=!0):P>3&&(a+="\n ".concat(p[d-2]),D++),a+="\n ".concat(p[d-1]),D++),o=d,s+="\n".concat(x,"-").concat(b," ").concat(p[d]),D++;else if(p.length1&&d>2&&(P>4?(a+="\n".concat(g,"...").concat(b),l=!0):P>3&&(a+="\n ".concat(u[d-2]),D++),a+="\n ".concat(u[d-1]),D++),o=d,a+="\n".concat(y,"+").concat(b," ").concat(u[d]),D++;else{var I=p[d],_=u[d],B=_!==I&&(!m(_,",")||_.slice(0,-1)!==I);B&&m(I,",")&&I.slice(0,-1)===_&&(B=!1,_+=","),B?(P>1&&d>2&&(P>4?(a+="\n".concat(g,"...").concat(b),l=!0):P>3&&(a+="\n ".concat(u[d-2]),D++),a+="\n ".concat(u[d-1]),D++),o=d,a+="\n".concat(y,"+").concat(b," ").concat(_),s+="\n".concat(x,"-").concat(b," ").concat(I),D+=2):(a+=s,s="",1!==P&&0!==d||(a+="\n ".concat(_),D++))}if(D>20&&d30)for(A[26]="".concat(g,"...").concat(b);A.length>27;)A.pop();r=1===A.length?o(this,p(t).call(this,"".concat(C," ").concat(A[0]))):o(this,p(t).call(this,"".concat(C,"\n\n").concat(A.join("\n"),"\n")))}else{var k=S(c),w="",D=E[a];"notDeepEqual"===a||"notEqual"===a?(k="".concat(E[a],"\n\n").concat(k)).length>1024&&(k="".concat(k.slice(0,1021),"...")):(w="".concat(S(u)),k.length>512&&(k="".concat(k.slice(0,509),"...")),w.length>512&&(w="".concat(w.slice(0,509),"...")),"deepEqual"===a||"equal"===a?k="".concat(D,"\n\n").concat(k,"\n\nshould equal\n\n"):w=" ".concat(a," ").concat(w)),r=o(this,p(t).call(this,"".concat(k).concat(w)))}return Error.stackTraceLimit=d,r.generatedMessage=!s,Object.defineProperty(i(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=c,r.expected=u,r.operator=a,Error.captureStackTrace&&Error.captureStackTrace(i(r),l),r.stack,r.name="AssertionError",o(r)}var r,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,e),r=t,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d.custom,value:function(e,t){return d(this,function(e){for(var t=1;t{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var o,i,l={};function c(e,t,r){r||(r=Error);var o=function(r){function o(r,a,i){var l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),l=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,s(o).call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,a,i))),l.code=e,l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(o,r),o}(r);l[e]=o}function u(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",(function(e,t,s){var a,i,l,c,p;if(void 0===o&&(o=r(69282)),o("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(i="not ",t.substr(0,4)===i)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(u(t,"type"));else{var f=("number"!=typeof p&&(p=0),p+1>(c=e).length||-1===c.indexOf(".",p)?"argument":"property");l='The "'.concat(e,'" ').concat(f," ").concat(a," ").concat(u(t,"type"))}return l+". Received type ".concat(n(s))}),TypeError),c("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===i&&(i=r(89539));var s=i.inspect(t);return s.length>128&&(s="".concat(s.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(s)}),TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var s;return s=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(s,".")}),TypeError),c("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n0,"At least one arg needs to be specified");var s="The ",a=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),a){case 1:s+="".concat(t[0]," argument");break;case 2:s+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:s+=t.slice(0,a-1).join(", "),s+=", and ".concat(t[a-1]," arguments")}return"".concat(s," must be specified")}),TypeError),e.exports.codes=l},19158:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,s=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(s)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var a=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},i=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},l=Object.is?Object.is:r(20609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:r(20360);function p(e){return e.call.bind(e)}var f=p(Object.prototype.hasOwnProperty),d=p(Object.prototype.propertyIsEnumerable),h=p(Object.prototype.toString),m=r(89539).types,g=m.isAnyArrayBuffer,y=m.isArrayBufferView,x=m.isDate,b=m.isMap,E=m.isRegExp,v=m.isSet,S=m.isNativeError,C=m.isBoxedPrimitive,A=m.isNumberObject,k=m.isStringObject,w=m.isBooleanObject,D=m.isBigIntObject,F=m.isSymbolObject,T=m.isFloat32Array,P=m.isFloat64Array;function I(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function _(e){return Object.keys(e).filter(I).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function B(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,s=0,a=Math.min(r,n);s{"use strict";var n=r(40210),s=r(55559),a=s(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?s(r):r}},55559:(e,t,r)=>{"use strict";var n=r(58612),s=r(40210),a=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),i=s("%Reflect.apply%",!0)||n.call(o,a),l=s("%Object.getOwnPropertyDescriptor%",!0),c=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=i(n,o,arguments);return l&&c&&l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}),t};var p=function(){return i(n,a,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},25108:(e,t,r)=>{var n=r(89539),s=r(69282);function a(){return(new Date).getTime()}var o,i=Array.prototype.slice,l={};o=void 0!==r.g&&r.g.console?r.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=a()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var r=a()-t;o.log(e+": "+r+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=n.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(n.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=i.call(arguments,1);s.ok(!1,n.format.apply(null,t))}},"assert"]],u=0;u{var n=r(25108),s=r(34155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==s&&"env"in s&&(e=s.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=n.debug||n.log||(()=>{}),e.exports=r(82447)(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},82447:(e,t,r)=>{var n=r(25108);e.exports=function(e){function t(e){let r,n,a,o=null;function i(...e){if(!i.enabled)return;const n=i,s=Number(new Date),a=s-(r||s);n.diff=a,n.prev=r,n.curr=s,r=s,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,s)=>{if("%%"===r)return"%";o++;const a=t.formatters[s];if("function"==typeof a){const t=e[o];r=a.call(n,t),e.splice(o,1),o--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=s,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==t.namespaces&&(n=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(i),i}function s(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"use strict";var n=r(82215),s="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,i=Object.defineProperty,l=r(31044)(),c=i&&l,u=function(e,t,r,n){var s;(!(t in e)||"function"==typeof(s=n)&&"[object Function]"===a.call(s)&&n())&&(c?i(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},p=function(e,t){var r=arguments.length>2?arguments[2]:{},a=n(t);s&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var i=0;i{!function(){"use strict";var e,n,s,a,o,i;function l(e,t,r){return e.slice(t,r)}function c(e){return"param"===e||"argument"===e||"arg"===e}function u(e){return"return"===e||"returns"===e}function p(e){return"property"===e||"prop"===e}function f(e){return c(e)||p(e)||"alias"===e||"this"===e||"mixes"===e||"requires"===e}function d(e){return p(e)||c(e)}function h(e){return c(e)||u(e)||"define"===e||"enum"===e||"implements"===e||"this"===e||"type"===e||"typedef"===e||p(e)}a=r(649),e=r(32518),n=r(41408),i=Object.prototype.hasOwnProperty,o=function(e,t){return i.call(e,t)};var m="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",g="("+m+"*(?:\\*"+m+"?)?)(.+|[\r\n\u2028\u2029])";function y(e){return e.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(g,"g"),"$2").replace(/\s*$/,"")}!function(t){var r,s,i,m,x,b,E,v,S;function C(){var e=x.charCodeAt(s);return s+=1,!a.code.isLineTerminator(e)||13===e&&10===x.charCodeAt(s)||(i+=1),String.fromCharCode(e)}function A(t,r,o){for(var i,l,c,u,p=!1;s=e)return null;if(91===x.charCodeAt(s)){if(!t)return null;n=!0,i=C()}if(i+=k(e),r)for(58!==x.charCodeAt(s)||"module"!==i&&"external"!==i&&"event"!==i||(i+=C(),i+=k(e)),91===x.charCodeAt(s)&&93===x.charCodeAt(s+1)&&(i+=C(),i+=C());46===x.charCodeAt(s)||47===x.charCodeAt(s)||35===x.charCodeAt(s)||45===x.charCodeAt(s)||126===x.charCodeAt(s);)i+=C(),i+=k(e);if(n){if(w(e),61===x.charCodeAt(s)){var l;i+=C(),w(e);for(var c=1;s=e||93!==x.charCodeAt(s))return null;i+=C()}return i}function F(e){return x===b?e:function(e,t){for(var r,n=e.replace(/^\/\*\*?/,""),s=0,a=new RegExp(g,"g");r=a.exec(n);)if(s+=r[1].length,r.index+r[0].length>t+s)return t+s+e.length-n.length;return e.replace(/\*\/$/,"").replace(/\s*$/,"").length}(b,e)}function T(e,t){this._options=e,this._title=t.toLowerCase(),this._tag={title:t,description:null},this._options.lineNumbers&&(this._tag.lineNumber=i),this._first=s-t.length-1,this._last=0,this._extra={}}function P(e){var t,r;if(!function(){for(;s=m||(n.assert(64===x.charCodeAt(s)),0))}())return null;for(r=(t=new T(e,function(){var e,t="";for(C();s=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57);)t+=C();return t}())).parse();s1&&(this._tag.default=e.slice(1).join("=")),this._tag.name=e[0],this._tag.type&&"OptionalType"!==this._tag.type.type&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!f(this._title))return!0;if(c(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},T.prototype.parseDescription=function(){var e=l(x,s,this._last).trim();return e&&(/^-\s+/.test(e)&&(e=e.substring(2)),this._tag.description=e),!0},T.prototype.parseCaption=function(){var e=l(x,s,this._last).trim(),t=e.indexOf(""),r=e.indexOf("");return t>=0&&r>=0?(this._tag.caption=e.substring(t+9,r).trim(),this._tag.description=e.substring(r+10).trim()):this._tag.description=e,!0},T.prototype.parseKind=function(){var e,t;return t={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},e=l(x,s,this._last).trim(),this._tag.kind=e,!(!o(t,e)&&!this.addError("Invalid kind name '%0'",e))},T.prototype.parseAccess=function(){var e;return e=l(x,s,this._last).trim(),this._tag.access=e,!("private"!==e&&"protected"!==e&&"public"!==e&&!this.addError("Invalid access name '%0'",e))},T.prototype.parseThis=function(){var e=l(x,s,this._last).trim();return e&&"{"===e.charAt(0)?this.parseType()&&"NameExpression"===this._tag.type.type||"UnionType"===this._tag.type.type?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this"):this.parseNamePath()},T.prototype.parseVariation=function(){var e,t;return t=l(x,s,this._last).trim(),e=parseFloat(t,10),this._tag.variation=e,!(isNaN(e)&&!this.addError("Invalid variation '%0'",t))},T.prototype.ensureEnd=function(){var e=l(x,s,this._last).trim();return!(e&&!this.addError("Unknown content '%0'",e))},T.prototype.epilogue=function(){var e;return e=this._tag.description,!(d(this._title)&&!this._tag.type&&e&&"["===e.charAt(0)&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!v&&!this.addError("Missing or invalid tag name")))},r={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},T.prototype.parse=function(){var e,t,n;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=function(){var e,t,r=s;for(t=!1;r{!function(){"use strict";var e,n,s,a,o,i,l,c,u,p,f,d;function h(e){return-1==="><(){}[],:*|?!=".indexOf(String.fromCharCode(e))&&!u.code.isWhiteSpace(e)&&!u.code.isLineTerminator(e)}function m(e,t,r,n){this._previous=e,this._index=t,this._token=r,this._value=n}function g(e,t){return d&&(e.range=[t[0]+f,t[1]+f]),e}function y(){var e=s.charAt(o);return o+=1,e}function x(e){var t,r,n,i=0;for(r="u"===e?4:2,t=0;t=a)return l=n.EOF;switch(e=s.charCodeAt(o)){case 39:case 34:return l=function(){var e,t,r,i,l,f="";for(e=s.charAt(o),++o;o=0&&o=a)return n.ILLEGAL;if(60===s.charCodeAt(o+1))break}c+=y()}return n.NAME}())}}function v(e,t){p.assert(l===e,t||"consumed token not matched"),E()}function S(e,t){l!==e&&p.throwError(t||"unexpected token"),E()}function C(){var t,r,s=i;return r=c,t=l===n.NAME||l===n.STRING?(E(),r):l===n.NUMBER?(v(n.NUMBER),String(r)):void p.throwError("unexpected token"),l===n.COLON?(v(n.COLON),g({type:e.FieldType,key:t,value:D()},[s,i])):g({type:e.FieldType,key:t,value:null},[s,i])}function A(){var t,r,s,a,u=o-c.length;return a=o-(s=c).length,S(n.NAME),l!==n.COLON||"module"!==s&&"external"!==s&&"event"!==s||(v(n.COLON),s+=":"+c,S(n.NAME)),t=g({type:e.NameExpression,name:s},[a,i]),l===n.DOT_LT||l===n.LT?(E(),r=function(){var e=[];for(e.push(F());l===n.COMMA;)v(n.COMMA),e.push(F());return e}(),S(n.GT),g({type:e.TypeApplication,expression:t,applications:r},[u,i])):t}function k(){for(var t,r,s,a=[],c=!1,u=!1,f=o-3;l!==n.RPAREN;)l===n.REST&&(v(n.REST),u=!0),r=i,(t=D()).type===e.NameExpression&&l===n.COLON&&(s=i-t.name.length,v(n.COLON),t=g({type:e.ParameterType,name:t.name,expression:D()},[s,i])),l===n.EQUAL?(v(n.EQUAL),t=g({type:e.OptionalType,expression:t},[r,i]),c=!0):c&&p.throwError("unexpected token"),u&&(t=g({type:e.RestType,expression:t},[f,i])),a.push(t),l!==n.RPAREN&&S(n.COMMA);return a}function w(){var t,r;switch(l){case n.STAR:return v(n.STAR),g({type:e.AllLiteral},[i-1,i]);case n.LPAREN:return function(){var t,r=o-1;if(v(n.LPAREN,"UnionType should start with ("),t=[],l!==n.RPAREN)for(;t.push(D()),l!==n.RPAREN;)S(n.PIPE);return v(n.RPAREN,"UnionType should end with )"),g({type:e.UnionType,elements:t},[r,i])}();case n.LBRACK:return function(){var t,r,s=o-1;for(v(n.LBRACK,"ArrayType should start with ["),t=[];l!==n.RBRACK;){if(l===n.REST){r=o-3,v(n.REST),t.push(g({type:e.RestType,expression:D()},[r,i]));break}t.push(D()),l!==n.RBRACK&&S(n.COMMA)}return S(n.RBRACK),g({type:e.ArrayType,elements:t},[s,i])}();case n.LBRACE:return function(){var t,r,s=o-1;if(v(n.LBRACE,"RecordType should start with {"),t=[],l===n.COMMA)v(n.COMMA);else for(;l!==n.RBRACE;)t.push(C()),l!==n.RBRACE&&S(n.COMMA);return r=o,S(n.RBRACE),g({type:e.RecordType,fields:t},[s,r])}();case n.NAME:if(r=o-c.length,"null"===c)return v(n.NAME),g({type:e.NullLiteral},[r,i]);if("undefined"===c)return v(n.NAME),g({type:e.UndefinedLiteral},[r,i]);if("true"===c||"false"===c)return v(n.NAME),g({type:e.BooleanLiteralType,value:"true"===c},[r,i]);if(t=m.save(),"function"===c)try{return function(){var t,r,s,a,u,f=o-c.length;return p.assert(l===n.NAME&&"function"===c,"FunctionType should start with 'function'"),v(n.NAME),S(n.LPAREN),t=!1,s=[],r=null,l!==n.RPAREN&&(l!==n.NAME||"this"!==c&&"new"!==c?s=k():(t="new"===c,v(n.NAME),S(n.COLON),r=A(),l===n.COMMA&&(v(n.COMMA),s=k()))),S(n.RPAREN),a=null,l===n.COLON&&(v(n.COLON,"ResultType should start with :"),a=l===n.NAME&&"void"===c?(v(n.NAME),{type:e.VoidLiteral}):D()),u=g({type:e.FunctionType,params:s,result:a},[f,i]),r&&(u.this=r,t&&(u.new=!0)),u}()}catch(e){t.restore()}return A();case n.STRING:return E(),g({type:e.StringLiteralType,value:c},[i-c.length-2,i]);case n.NUMBER:return E(),g({type:e.NumericLiteralType,value:c},[i-String(c).length,i]);default:p.throwError("unexpected token")}}function D(){var t,r;return l===n.QUESTION?(r=o-1,v(n.QUESTION),l===n.COMMA||l===n.EQUAL||l===n.RBRACE||l===n.RPAREN||l===n.PIPE||l===n.EOF||l===n.RBRACK||l===n.GT?g({type:e.NullableLiteral},[r,i]):g({type:e.NullableType,expression:w(),prefix:!0},[r,i])):l===n.BANG?(r=o-1,v(n.BANG),g({type:e.NonNullableType,expression:w(),prefix:!0},[r,i])):(r=i,t=w(),l===n.BANG?(v(n.BANG),g({type:e.NonNullableType,expression:t,prefix:!1},[r,i])):l===n.QUESTION?(v(n.QUESTION),g({type:e.NullableType,expression:t,prefix:!1},[r,i])):l===n.LBRACK?(v(n.LBRACK),S(n.RBRACK,"expected an array-style type declaration ("+c+"[])"),g({type:e.TypeApplication,expression:g({type:e.NameExpression,name:"Array"},[r,i]),applications:[t]},[r,i])):t)}function F(){var t,r;if(t=D(),l!==n.PIPE)return t;for(r=[t],v(n.PIPE);r.push(D()),l===n.PIPE;)v(n.PIPE);return g({type:e.UnionType,elements:r},[0,o])}function T(t,r,n){var s,a,o;switch(t.type){case e.NullableLiteral:s="?";break;case e.AllLiteral:s="*";break;case e.NullLiteral:s="null";break;case e.UndefinedLiteral:s="undefined";break;case e.VoidLiteral:s="void";break;case e.UnionType:for(s=n?"":"(",a=0,o=t.elements.length;a{!function(){"use strict";var e,n;function s(e){this.name="DoctrineError",this.message=e}e=r(82954).i8,t.VERSION=e,s.prototype=((n=function(){}).prototype=Error.prototype,new n),s.prototype.constructor=s,t.DoctrineError=s,t.throwError=function(e){throw new s(e)},t.assert=r(69282)}()},8091:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},2672:e=>{e.exports={meta:{type:"suggestion",docs:{description:"aligns attributes in the metadata",category:"Stylistic Issues"},schema:[{type:"integer",minimum:1,default:2}],messages:{spaceMetadata:"The metadata is not spaced"},fixable:"code"},create:e=>{const t=e.options[0]||2,r=e.getSourceCode(),n=r.getAllComments();let s=!1,a=!1,o=[],i={},l={};for(const e of n.filter((e=>"Line"===e.type))){if(a)continue;const t=e.value.trim();if(s&&"==/UserScript=="===t)l=e.loc.end,a=!0;else if(s||"==UserScript=="!==t){if(s&&t.startsWith("@")){const[,r]=/^\S*(\s*)/.exec(t.slice(1));if(0===r.length)continue;o.push({key:t.slice(1).split(/\s/)[0],space:r.length,line:e.loc.start.line,comment:e})}}else i=e.loc.start,s=!0}if(0===Object.keys(l).length&&(l=r.getLocFromIndex(r.getText().length)),0===o.length)return{};const c=Math.max(...o.map((({key:e})=>e.length)))+t;return(o.map((({space:e})=>e)).sort()[0]e.length+t)).some((e=>e!==c)))&&e.report({loc:{start:i,end:l},messageId:"spaceMetadata",fix:function(e){const t=[];for(const n of o)if(n.key.length+n.space!==c){const s=/^(.*?@\S*)/.exec(r.getLines()[n.line-1])[1].length;t.push(e.replaceTextRange([r.getIndexFromLoc({line:n.line,column:s}),r.getIndexFromLoc({line:n.line,column:s+n.space})]," ".repeat(c-n.key.length)))}return t}}),{}}}},82162:(e,t,r)=>{const n=r(32598);e.exports=n({name:"include",required:!1,validator:({attrVal:e,context:t})=>{t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"betterUseMatch"})},messages:{betterUseMatch:"Using @include is potentially unsafe and may be obsolete in Manifest v3 in early 2023. Please switch to @match."}})},45644:(e,t,r)=>{const n=r(32598),{compatMap:s,gmPolyfillOverride:a}=r(80436),{intersects:o}=r(81249),i=r(28759);e.exports=n({name:"grant",required:!1,validator:({attrVal:e,context:t})=>{if(!t.settings.userscriptVersions)return;const r=e.val,n=t.options[0]&&t.options[0].requireAllCompatible,l=t.settings.userscriptGrantCompatabilityOverrides||{},c=t.options[0]&&t.options[0].gmPolyfill,u=c&&a[r]?a[r]:s[r];if("ignore"===l[r])return;const p=[];(l[r]||u)&&function e(r){let n=l[r]||(c&&a[r]?a[r]:s[r]);if("ignore"!==n){if(n.deps){for(const t of n.deps)e(t);if(!n.versions)return;n=n.versions}if(!Array.isArray(n)){if(!n.versions)return;n=n.versions}for(const e in t.settings.userscriptVersions){const l=n.find((t=>t.type===e)),u=s[r]&&s[r].find((t=>t.type===e));p.push(!!l&&o(i(t.settings.userscriptVersions[e]),i(l.versionConstraint),!0)||!!(c&&a[r]&&u)&&o(i(t.settings.userscriptVersions[e]),i(u.versionConstraint),!0))}}}(r),n&&!p.every((e=>!0===e))?t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"allNotSupportingCompatGrant",data:{requestedGrant:r}}):(!n&&p.every((e=>!1===e))||!u&&!l[r])&&t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"noSupportingCompatGrant",data:{requestedGrant:r}})},messages:{noSupportingCompatGrant:"None of your target versions support '{{ requestedGrant }}'",allNotSupportingCompatGrant:"All of your target versions don't support '{{ requestedGrant }}'"},schema:[{type:"object",properties:{requireAllCompatible:{type:"boolean",default:!1},gmPolyfill:{type:"boolean",default:!1}},default:{}}]})},73285:(e,t,r)=>{const n=r(32598),s=r(65014),{intersects:a}=r(81249),o=r(28759);e.exports=n({name:"headers",required:!1,validator:({attrVal:e,context:t})=>{if(!t.settings.userscriptVersions)return;const r=e.key,n=t.options[0]&&t.options[0].requireAllCompatible,i=[];if(r.includes(":")&&Object.keys(s.localized).includes(r.split(":")[0]))for(const e in t.settings.userscriptVersions){const n=s.localized[r.split(":")[0]].find((t=>t.type===e));i.push(!!n&&a(o(t.settings.userscriptVersions[e]),o(n.versionConstraint)))}else if(s.unlocalized[r])for(const e in t.settings.userscriptVersions){const n=s.unlocalized[r].find((t=>t.type===e));i.push(!!n&&a(o(t.settings.userscriptVersions[e]),o(n.versionConstraint),!0))}else if(s.nonFunctional[r])return;n&&!i.every((e=>!0===e))?t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"allNotSupportingCompatHeader",data:{headerName:r}}):(!n&&i.every((e=>!1===e))||!Object.keys({...s.nonFunctional,...s.unlocalized}).includes(r)&&!Object.keys(s.localized).some((e=>r.startsWith(`${e}:`))))&&t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"noSupportingCompatHeader",data:{headerName:r}})},messages:{noSupportingCompatHeader:"None of your target versions support '{{ headerName }}'",allNotSupportingCompatHeader:"All of your target versions don't support '{{ headerName }}'"},regexMatch:/./,schema:[{type:"object",properties:{requireAllCompatible:{type:"boolean",default:!1}},default:{}}]})},18039:e=>{e.exports={meta:{type:"suggestion",docs:{description:"ensure userscripts end with .user.js",category:"Best Practices"},schema:[{enum:["always","never"]}],messages:{filenameExtension:"Rename '{{ oldFilename }}' to '{{ newFilename }}'"}},create:e=>{const t=e.getFilename();return""===t||""===t?{}:{Program(){(!t.endsWith(".user.js")&&(!e.options[0]||"always"===e.options[0])||t.endsWith(".user.js")&&"never"===e.options[0])&&e.report({loc:{column:0,line:1},messageId:"filenameExtension",data:{newFilename:t.replace("always"===e.options[0]?/.js$/:/.user.js$/,"always"===e.options[0]?".user.js":".js"),oldFilename:t}})}}}}},39877:(e,t,r)=>{const n=r(32829);e.exports={meta:{type:"suggestion",docs:{description:"ensure there is a newline between the metadata and the code",category:"Best Practices"},fixable:"whitespace"},create:e=>{const t=e.getSourceCode(),r=n(t);if(-1===r.enteredMetadata||!r.end)return{};const s=r.lines[r.lines.length-1].lineLoc;return t.lines.length===s.end.line||t.lines[s.end.line].trim().length>0&&e.report({message:"There should be a newline between the metadata and the code",loc:s,fix:function(e){const r=[t.getIndexFromLoc(s.start),t.getIndexFromLoc(s.end)];return e.insertTextAfterRange(r,"\n")}}),{}}}},20070:(e,t,r)=>{const n=r(32598),{compatMap:s}=r(80436);e.exports=n({name:"grant",required:!1,validator:({attrVal:e,context:t})=>{const r=e.val;Object.keys(s).includes(r)||t.report({loc:{start:{line:e.loc.start.line,column:0},end:e.loc.end},messageId:"grantHasInvalidArgument",data:{argument:r}})},messages:{grantHasInvalidArgument:"'{{ argument }}' is not a valid @grant argument"}})},18754:(e,t,r)=>{const n=r(32598),s=r(65014),a=new Set([...Object.keys(s.nonFunctional),...Object.keys(s.unlocalized)]),o=Object.keys(s.localized).map((e=>new RegExp(`^${e}(:\\S+)?$`)));e.exports=n({name:"headers",validator:({attrVal:e,context:t})=>{const r=t.options[0]&&t.options[0].allowed?new Set(t.options[0].allowed):new Set;for(const n of e)a.has(n.key)||r.has(n.key)||o.some((e=>e.test(n.key)))||t.report({loc:{start:{line:n.loc.start.line,column:0},end:n.loc.end},messageId:"invalidHeader",data:{header:`@${n.key}`}})},messages:{invalidHeader:"'{{ header }}' is not a valid userscript header"},regexMatch:/./,runOnce:!0,schema:[{type:"object",properties:{allowed:{type:"array",default:[]}},additionalProperties:!1,default:{}}]})},91763:(e,t,r)=>{const n=r(32829);e.exports={meta:{type:"suggestion",docs:{description:"ensure userscripts have valid metadata",category:"Possible Errors"},messages:{metadataRequired:"Add metadata to the userscript",moveMetadataToTop:"Move the metadata to the top of the file",noClosingMetadata:"Closing metadata comment not found",noCodeBetween:"Code found between in metadata",attributeNotStartsWithAtTheRate:"Attributes should begin with @"},schema:[{type:"object",properties:{top:{enum:["required","optional"],default:"required"}},additionalProperties:!1}]},create:e=>{const t=e.getSourceCode(),r=t.getAllComments(),s=n(t);for(const t of s.lines.filter((e=>e.codeBetween)))e.report({loc:t,messageId:"noCodeBetween"});for(const t of s.lines.filter((e=>e.invalid)))e.report({loc:t,messageId:"attributeNotStartsWithAtTheRate"});return-1===s.enteredMetadata||s.end||e.report({loc:r.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc,messageId:"noClosingMetadata"}),{Program(t){-1===s.enteredMetadata?e.report({node:t,messageId:"metadataRequired"}):e.options[0]&&e.options[0].top&&"required"!==e.options[0].top||0===s.enteredMetadata&&1===r[0].loc.start.line||e.report({loc:r.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc,messageId:"moveMetadataToTop"})}}}}},14350:(e,t,r)=>{const n=r(32829);e.exports={meta:{type:"suggestion",docs:{description:"ensure atributes are prefixed by a space",category:"Possible Errors"},messages:{attributeNotPrefixedBySpace:"Attributes should be prefixed by a space"},schema:[]},create:e=>{const t=e.getSourceCode(),r=n(t);for(const t of r.lines)if(t.metadataInfo){const r=t.value.trim();r.startsWith("//")&&r.slice(2).trim().startsWith("@")&&(!r.startsWith("// ")||r.startsWith("// "))&&e.report({loc:t.lineLoc,messageId:"attributeNotPrefixedBySpace"})}return{}}}},70230:(e,t,r)=>{const n=r(32598);e.exports=n({name:"description",required:!0,validator:({attrVal:e,context:t})=>{let r=[];for(let n of e)r.includes(n.key)?t.report({loc:n.loc,messageId:"multipleDescriptions"}):r.push(n.key)},messages:{multipleDescriptions:"Include only one description for each language"},regexMatch:/^description(:\S+)?$/,runOnce:!0})},18295:(e,t,r)=>{const n=r(32598),s=/^name(:\S+)?$/;e.exports=n({name:"name",required:!0,validator:({attrVal:e,context:t,metadata:r})=>{let n=[];for(let r of e)n.includes(r.key)?t.report({loc:r.loc,messageId:"multipleNames"}):n.push(r.key);const a=Object.values(r);if(a.some(((e,t)=>0!==t&&s.test(e[0]?e[0].key:e.key)&&!s.test(a[t-1][0]?a[t-1][0].key:a[t-1].key)))){const r=t.getSourceCode(),n=r.getAllComments(),s=n.find((e=>"==/UserScript=="===e.value.trim()&&"Line"===e.type));t.report({loc:{start:n.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc.start,end:s?s.loc.end:{line:r.lines.length,column:0}},messageId:"nameAtBeginning",fix:function(r){let n=[];for(let s of e){Array.isArray(s)||(s=[s]);for(let e of s)n.push(r.removeRange(e.comment.range.map(((r,n)=>0===n?r-t.getSourceCode().lines[e.loc.start.line-1].split("//")[0].length-1:r))))}return n.push(r.insertTextAfterRange(t.getSourceCode().getAllComments().find((e=>"==UserScript=="===e.value.trim())).range,e.sort(((e,t)=>"name"===e.key?-1:"name"===t.key?1:0)).map((e=>`\n${t.getSourceCode().lines[e.loc.start.line-1].split("//")[0]}//${e.comment.value}`)).join(""))),n}})}},messages:{multipleNames:"Include only one name for each language",nameAtBeginning:"The names should be at the beginning of the metadata"},fixable:!0,regexMatch:s,runOnce:!0})},43880:(e,t,r)=>{const n=r(32598),s=/^([\dA-Za-z–-]+)(\.[\dA-Za-z–-]+)*(\+([\dA-Za-z]+)(\.[\dA-Za-z]+)*)?\s*$/;e.exports=n({name:"version",required:!0,validator:({attrVal:e,index:t,context:r})=>{t>0&&r.report({loc:e.loc,messageId:"multipleVersions"}),s.test(e.val)||r.report({loc:{start:{line:e.loc.start.line,column:/^(\s*\/\/\s*)/.exec(r.getSourceCode().lines[e.comment.loc.start.line])[1].length-1},end:e.loc.end},messageId:"invalidVersion"})},messages:{multipleVersions:"Include only one version",invalidVersion:"Invalid version"}})},52215:(e,t,r)=>{const n=r(32598),s=["downloadURL","updateURL"];e.exports=n({name:s,validator:({attrVal:e,metadata:t,context:r,keyName:n})=>{const a=s.find((e=>e!==n));t[a]||r.report({loc:e.loc,messageId:"missingAttribute",data:{attribute:a},fix:function(t){return t.insertTextAfterRange(e.comment.range,`\n${r.getSourceCode().lines[e.comment.loc.start.line-1].replace(/^(\s*\/\/\s*@)\S*/,"$1"+a)}`)}})},messages:{missingAttribute:"Didn't find attribute '{{ attribute }}' in the metadata"},fixable:!0})},11933:(e,t,r)=>{const n=r(32598),s=["homepage","homepageURL"];e.exports=n({name:s,validator:({attrVal:e,metadata:t,context:r,keyName:n})=>{const a=s.find((e=>e!==n));t[a]||r.report({loc:e.loc,messageId:"missingAttribute",data:{attribute:a},fix:function(t){return t.insertTextAfterRange(e.comment.range,`\n${r.getSourceCode().lines[e.comment.loc.start.line-1].replace(/^(\s*\/\/\s*@)\S*/,"$1"+a)}`)}})},messages:{missingAttribute:"Didn't find attribute '{{ attribute }}' in the metadata"},fixable:!0})},43914:(e,t,r)=>{var n={"./align-attributes.js":2672,"./better-use-match.js":82162,"./compat-grant.js":45644,"./compat-headers.js":73285,"./filename-user.js":18039,"./metadata-spacing.js":39877,"./no-invalid-grant.js":20070,"./no-invalid-headers.js":18754,"./no-invalid-metadata.js":91763,"./require-attribute-space-prefix.js":14350,"./require-description.js":70230,"./require-name.js":18295,"./require-version.js":43880,"./use-download-and-update-url.js":52215,"./use-homepage-and-url.js":11933};function s(e){var t=a(e);return r(t)}function a(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=a,e.exports=s,s.id=43914},28759:e=>{e.exports=function(e){return e.replace(/1(\.\d+){3}/,"1").replace(/(\d+\.\d+\.\d+)\.(\d+)/,"$1-beta.$2")}},32598:(e,t,r)=>{const n=r(32829);e.exports=function({name:e,required:t=!1,validator:r=!1,messages:s={},fixable:a=!1,regexMatch:o=new RegExp("^("+("string"==typeof e?e:e.join("|"))+")$"),runOnce:i=!1,schema:l}){return"string"==typeof e&&(e=[e]),{meta:{type:"suggestion",docs:{description:`${t?"require "+(r?"and validate ":""):"validate "}${e.join(" and ")} in the metadata for userscripts`,category:"Best Practices"},schema:t?[{enum:["required","optional"],default:"required"}]:l||void 0,messages:{missingAttribute:`Didn't find attribute '${e}' in the metadata`,...s},fixable:a?"code":void 0},create:e=>{const s=e.getSourceCode(),a=s.getAllComments(),l=n(s);let c={};for(const e of l.lines.filter((e=>e.metadataInfo))){const t=e.value.trim().slice(2),r=e.value.length-t.length-2,n={start:{line:e.lineLoc.start.line,column:e.lineLoc.start.column+r},end:e.lineLoc.end},a={val:e.metadataValue.value,loc:n,comment:{value:t,range:[s.getIndexFromLoc(e.lineLoc.start)+r,s.getIndexFromLoc(e.lineLoc.end)],loc:n,type:"Line"},key:e.metadataValue.key};c[e.metadataValue.key]?(Array.isArray(c[e.metadataValue.key])||(c[e.metadataValue.key]=[c[e.metadataValue.key]]),c[e.metadataValue.key].push(a)):c[e.metadataValue.key]=a}const u=Object.keys(c);if(!t||-1===l.enteredMetadata||e.options[0]&&"required"!==e.options[0]||u.some((e=>o.test(e)))){if(r&&u.some((e=>o.test(e))))if(i){const t=[];for(const e in u)o.test(u[e])&&t.push(+e);const n=t.map((e=>c[u[e]])).reduce(((e,t)=>Array.isArray(t)?[...e,...t]:[...e,t]),[]);r({attrVal:n,index:[...n.keys()],indexMatch:t.reduce(((e,t)=>Array.isArray(c[u[t]])?[...e,...c[u[t]].map((()=>u))]:[...e,t]),[]),metadata:c,context:e,keyName:t.map((e=>u[e]))})}else for(const t in u)if(o.test(u[t]))if(Array.isArray(c[u[t]]))for(const[n,s]of c[u[t]].entries())r({attrVal:s,index:n,indexMatch:t,metadata:c,context:e,keyName:u[t]});else r({attrVal:c[u[t]],index:0,indexMatch:t,metadata:c,context:e,keyName:u[t]})}else e.report({loc:a.find((e=>"==UserScript=="===e.value.trim()&&"Line"===e.type)).loc,messageId:"missingAttribute"});return{}}}}},32829:e=>{e.exports=function(e){const t={codeBetween:!1,end:!1,start:!1,invalid:!1,metadataInfo:!1};let r={end:!1,enteredMetadata:-1,lines:[]},n=!1,s=!1;for(const[a,o]of e.lines.entries()){if(s)continue;const e={start:{line:a+1,column:0},end:{line:a+1,column:o.length}},i=o.trim(),l=i.startsWith("//");if(n&&!l&&""!==i)r.lines.push({value:o,lineLoc:e,...t,codeBetween:!0});else if(n&&l&&"==/UserScript=="===i.slice(2).trim())r.end=!0,s=!0,r.lines.push({value:o,lineLoc:e,...t,end:!0});else if(!n&&l&&"==UserScript=="===i.slice(2).trim())r.enteredMetadata=a,n=!0,r.lines.push({value:o,lineLoc:e,...t,start:!0});else if(n&&l&&""!==i.slice(2).trim())if(i.slice(2).trim().startsWith("@")){const n=i.slice(2).trim().slice(1);r.lines.push({value:o,lineLoc:e,...t,metadataInfo:!0,metadataValue:{key:n.split(/[\t ]/)[0],value:n.replace(/^.*?[\t ]/,"").trim()}})}else r.lines.push({value:o,lineLoc:e,...t,invalid:!0})}return r}},11300:(e,t,r)=>{"use strict";const n=r(1509);class s{constructor(e,t,r,n,s,a){this.type=e,this.name=t,this.node=r,this.parent=n,this.index=s,this.kind=a}}e.exports={ParameterDefinition:class extends s{constructor(e,t,r,s){super(n.Parameter,e,t,null,r,null),this.rest=s}},Definition:s}},25048:(e,t,r)=>{"use strict";const n=r(69282),s=r(64140),a=r(1625),o=r(16469),i=r(1509),l=r(65099).Scope,c=r(83196).i8;function u(e,t){function r(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof Array)&&!(e instanceof RegExp)}for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];r(s)?r(e[n])?u(e[n],s):e[n]=u({},s):e[n]=s}return e}e.exports={version:c,Reference:o,Variable:i,Scope:l,ScopeManager:s,analyze:function(e,t){const r=u({optimistic:!1,directive:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"},t),o=new s(r);return new a(r,o).visit(e),n(null===o.__currentScope,"currentScope should be null."),o}}},78370:(e,t,r)=>{"use strict";const n=r(97901).Syntax,s=r(98192);class a extends s.Visitor{static isPattern(e){const t=e.type;return t===n.Identifier||t===n.ObjectPattern||t===n.ArrayPattern||t===n.SpreadElement||t===n.RestElement||t===n.AssignmentPattern}constructor(e,t,r){super(null,e),this.rootPattern=t,this.callback=r,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){const t=(r=this.restElements)[r.length-1]||null;var r;this.callback(e,{topLevel:e===this.rootPattern,rest:null!=t&&t.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let t=0,r=e.elements.length;t{this.rightHandNodes.push(e)})),this.visit(e.callee)}}e.exports=a},16469:e=>{"use strict";class t{constructor(e,t,r,n,s,a,o){this.identifier=e,this.from=t,this.tainted=!1,this.resolved=null,this.flag=r,this.isWrite()&&(this.writeExpr=n,this.partial=a,this.init=o),this.__maybeImplicitGlobal=s}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&t.WRITE)}isRead(){return!!(this.flag&t.READ)}isReadOnly(){return this.flag===t.READ}isWriteOnly(){return this.flag===t.WRITE}isReadWrite(){return this.flag===t.RW}}t.READ=1,t.WRITE=2,t.RW=3,e.exports=t},1625:(e,t,r)=>{"use strict";const n=r(97901).Syntax,s=r(98192),a=r(16469),o=r(1509),i=r(78370),l=r(11300),c=r(69282),u=l.ParameterDefinition,p=l.Definition;class f extends s.Visitor{constructor(e,t){super(null,t.options),this.declaration=e,this.referencer=t}visitImport(e,t){this.referencer.visitPattern(e,(e=>{this.referencer.currentScope().__define(e,new p(o.ImportBinding,e,t,this.declaration,null,null))}))}ImportNamespaceSpecifier(e){const t=e.local||e.id;t&&this.visitImport(t,e)}ImportDefaultSpecifier(e){const t=e.local||e.id;this.visitImport(t,e)}ImportSpecifier(e){const t=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(t,e)}}class d extends s.Visitor{constructor(e,t){super(null,e),this.options=e,this.scopeManager=t,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){const t=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,t}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,t,r,n){const s=this.currentScope();t.forEach((t=>{s.__referencing(e,a.WRITE,t.right,r,e!==t.left,n)}))}visitPattern(e,t,r){let n=t,s=r;"function"==typeof t&&(s=t,n={processRightHandNodes:!1}),function(e,t,r,n){const s=new i(e,t,n);s.visit(t),null!=r&&s.rightHandNodes.forEach(r.visit,r)}(this.options,e,n.processRightHandNodes?this:null,s)}visitFunction(e){let t,r;e.type===n.FunctionDeclaration&&this.currentScope().__define(e.id,new p(o.FunctionName,e.id,e,null,null,null)),e.type===n.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);const s=this;function a(r,n){s.currentScope().__define(r,new u(r,e,t,n.rest)),s.referencingDefaultValue(r,n.assignments,null,!0)}for(t=0,r=e.params.length;t{this.currentScope().__define(t,new u(t,e,e.params.length,!0))})),e.body&&(e.body.type===n.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===n.ClassDeclaration&&this.currentScope().__define(e.id,new p(o.ClassName,e.id,e,null,null,null)),this.visit(e.superClass),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new p(o.ClassName,e.id,e)),this.visit(e.body),this.close(e)}visitProperty(e){let t;e.computed&&this.visit(e.key);const r=e.type===n.MethodDefinition;r&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),r&&this.popInnerMethodDefinition(t)}visitForIn(e){e.left.type===n.VariableDeclaration&&"var"!==e.left.kind&&this.scopeManager.__nestForScope(e),e.left.type===n.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,(t=>{this.currentScope().__referencing(t,a.WRITE,e.right,null,!0,!0)}))):this.visitPattern(e.left,{processRightHandNodes:!0},((t,r)=>{let n=null;this.currentScope().isStrict||(n={pattern:t,node:e}),this.referencingDefaultValue(t,r.assignments,n,!1),this.currentScope().__referencing(t,a.WRITE,e.right,n,!0,!1)})),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,t,r,n){const s=r.declarations[n],o=s.init;this.visitPattern(s.id,{processRightHandNodes:!0},((i,l)=>{e.__define(i,new p(t,i,s,r,n,r.kind)),this.referencingDefaultValue(i,l.assignments,null,!0),o&&this.currentScope().__referencing(i,a.WRITE,o,null,!l.topLevel,!0)}))}AssignmentExpression(e){i.isPattern(e.left)?"="===e.operator?this.visitPattern(e.left,{processRightHandNodes:!0},((t,r)=>{let n=null;this.currentScope().isStrict||(n={pattern:t,node:e}),this.referencingDefaultValue(t,r.assignments,n,!1),this.currentScope().__referencing(t,a.WRITE,e.right,n,!r.topLevel,!1)})):this.currentScope().__referencing(e.left,a.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},((t,r)=>{this.currentScope().__define(t,new p(o.CatchClause,e.param,e,null,null,null)),this.referencingDefaultValue(t,r.assignments,null,!0)})),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.__isNodejsScope()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}UpdateExpression(e){i.isPattern(e.argument)?this.currentScope().__referencing(e.argument,a.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===n.VariableDeclaration&&"var"!==e.init.kind&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){this.scopeManager.__ignoreEval()||e.callee.type!==n.Identifier||"eval"!==e.callee.name||this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){const t="var"===e.kind?this.currentScope().variableScope:this.currentScope();for(let r=0,n=e.declarations.length;r{"use strict";const n=r(65099),s=r(69282),a=n.GlobalScope,o=n.CatchScope,i=n.WithScope,l=n.ModuleScope,c=n.ClassScope,u=n.SwitchScope,p=n.FunctionScope,f=n.ForScope,d=n.FunctionExpressionNameScope,h=n.BlockScope;e.exports=class{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__useDirective(){return this.__options.directive}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isNodejsScope(){return this.__options.nodejsScope}isModule(){return"module"===this.__options.sourceType}isImpliedStrict(){return this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,t){function r(e){return"function"!==e.type||!e.functionExpressionScope}const n=this.__get(e);if(!n||0===n.length)return null;if(1===n.length)return n[0];if(t)for(let e=n.length-1;e>=0;--e){const t=n[e];if(r(t))return t}else for(let e=0,t=n.length;e=6}}},65099:(e,t,r)=>{"use strict";const n=r(97901).Syntax,s=r(16469),a=r(1509),o=r(11300).Definition,i=r(69282);function l(e){return e.type===a.ClassName||e.type===a.Variable&&"var"!==e.parent.kind}class c{constructor(e,t,r,s,a){this.type=t,this.set=new Map,this.taints=new Map,this.dynamic="global"===this.type||"with"===this.type,this.block=s,this.through=[],this.variables=[],this.references=[],this.variableScope="global"===this.type||"function"===this.type||"module"===this.type?this:r.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=r,this.isStrict=function(e,t,r,s){let a;if(e.upper&&e.upper.isStrict)return!0;if(r)return!0;if("class"===e.type||"module"===e.type)return!0;if("block"===e.type||"switch"===e.type)return!1;if("function"===e.type){if(t.type===n.ArrowFunctionExpression&&t.body.type!==n.BlockStatement)return!1;if(a=t.type===n.Program?t:t.body,!a)return!1}else{if("global"!==e.type)return!1;a=t}if(s)for(let e=0,t=a.body.length;e0&&r.every(l)}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let t=this;do{t.through.push(e),t=t.upper}while(t)}__globalCloseRef(e){this.__shouldStaticallyCloseForGlobal(e)?this.__staticCloseRef(e):this.__dynamicCloseRef(e)}__close(e){let t;t=this.__shouldStaticallyClose(e)?this.__staticCloseRef:"global"!==this.type?this.__dynamicCloseRef:this.__globalCloseRef;for(let e=0,r=this.__left.length;ee.name.range[0]>=r)))}},ForScope:class extends c{constructor(e,t,r){super(e,"for",t,r,!1)}},ClassScope:class extends c{constructor(e,t,r){super(e,"class",t,r,!1)}}}},1509:e=>{"use strict";class t{constructor(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}}t.CatchClause="CatchClause",t.Parameter="Parameter",t.FunctionName="FunctionName",t.ClassName="ClassName",t.Variable="Variable",t.ImportBinding="ImportBinding",t.ImplicitGlobalVariable="ImplicitGlobalVariable",e.exports=t},97901:(e,t,r)=>{!function e(t){"use strict";var n,s,a,o,i,l;function c(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?c(r):r);return n}function u(e,t){this.parent=e,this.key=t}function p(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function f(){}function d(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function h(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function m(e,t){return(new f).traverse(e,t)}function g(e,t){var r;return r=function(t,r){var n,s,a,o;for(s=t.length,a=0;s;)t[o=a+(n=s>>>1)].range[0]>e.range[0]?s=n:(a=o+1,s-=n+1);return a}(t),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},s={Break:o={},Skip:i={},Remove:l={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var e,t,r,n,s;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r=0;)if(y=a[u=g[f]])if(Array.isArray(y)){for(m=y.length;(m-=1)>=0;)if(y[m]){if(h(l,g[f]))s=new p(y[m],[u,m],"Property",null);else{if(!d(y[m]))continue;s=new p(y[m],[u,m],null,null)}r.push(s)}}else d(y)&&r.push(new p(y,u,null,null))}}else if(s=n.pop(),c=this.__execute(t.leave,s),this.__state===o||c===o)return},f.prototype.replace=function(e,t){var r,n,s,a,c,f,m,g,y,x,b,E,v;function S(e){var t,n,s,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===a){if(s.ref.key=0;)if(x=s[v=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(h(a,y[m]))f=new p(x[g],[v,g],"Property",new u(x,g));else{if(!d(x[g]))continue;f=new p(x[g],[v,g],null,new u(x,g))}r.push(f)}}else d(x)&&r.push(new p(x,v,null,new u(s,v)))}}else if(f=n.pop(),void 0!==(c=this.__execute(t.leave,f))&&c!==o&&c!==i&&c!==l&&f.ref.replace(c),this.__state!==l&&c!==l||S(f),this.__state===o||c===o)return E.root;return E.root},t.version=r(86536).i8,t.Syntax=n,t.traverse=m,t.replace=function(e,t){return(new f).replace(e,t)},t.attachComments=function(e,t,r){var n,a,o,i,l=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(o=0,a=t.length;oe.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(i,1)):i+=1;return i===l.length?s.Break:l[i].extendedRange[0]>e.range[1]?s.Skip:void 0}}),i=0,m(e,{leave:function(e){for(var t;ie.range[1]?s.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=s,t.Controller=f,t.cloneEnvironment=function(){return e({})},t}(t)},30613:e=>{"use strict";function t(e,t){return e.line-t.line||e.column-t.column}function r(e){const r=[];let n=0,s=null;const a=new Map,o=new Set,i=new Set;for(const l of e.problems){for(;n"disable"===e.type&&!i.has(e))).map((t=>({ruleId:null,message:t.ruleId?`Unused eslint-disable directive (no problems were reported from '${t.ruleId}').`:"Unused eslint-disable directive (no problems were reported).",line:t.unprocessedDirective.line,column:t.unprocessedDirective.column,severity:"warn"===e.reportUnusedDisableDirectives?1:2,nodeType:null})))}}e.exports=({directives:e,problems:n,reportUnusedDisableDirectives:s="off"})=>{const a=e.filter((e=>"disable"===e.type||"enable"===e.type)).map((e=>Object.assign({},e,{unprocessedDirective:e}))).sort(t),o=function(e,t){const r=e.map((e=>{switch(e.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:e.line,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:"enable",line:e.line+1,column:0,ruleId:e.ruleId,unprocessedDirective:e}];case"disable-next-line":return[{type:"disable",line:e.line+1,column:1,ruleId:e.ruleId,unprocessedDirective:e},{type:"enable",line:e.line+2,column:0,ruleId:e.ruleId,unprocessedDirective:e}];default:throw new TypeError(`Unrecognized directive type '${e.type}'`)}}));return[].concat(...r)}(e).sort(t),i=r({problems:n,directives:a,reportUnusedDisableDirectives:s}),l=r({problems:i.problems,directives:o,reportUnusedDisableDirectives:s});return"off"!==s?l.problems.concat(i.unusedDisableDirectives).concat(l.unusedDisableDirectives).sort(t):l.problems}},66873:(e,t,r)=>{"use strict";const n=r(69282),{breakableTypePattern:s}=r(911),a=r(18451),o=r(85100),i=r(27847),l=r(63072);function c(e){return Boolean(e.test)}function u(e){return"&&"===e||"||"===e||"??"===e}function p(e){return"&&="===e||"||="===e||"??="===e}function f(e){return"LabeledStatement"===e.parent.type?e.parent.label.name:null}function d(e){const t=e.parent;switch(t.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return t.test===e;case"LogicalExpression":return u(t.operator);case"AssignmentExpression":return p(t.operator);default:return!1}}function h(e){if("Literal"===e.type)return Boolean(e.value)}function m(e,t){const r=e.codePath,n=a.getState(r),s=n.currentSegments,i=n.headSegments,c=Math.max(s.length,i.length);let u,p,f;for(u=0;u=1&&o.arguments[0]===t&&s.makeOptionalRight();break;case"MemberExpression":!0===o.optional&&o.property===t&&s.makeOptionalRight();break;case"LogicalExpression":o.right===t&&u(o.operator)&&s.makeLogicalRight();break;case"AssignmentExpression":o.right===t&&p(o.operator)&&s.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":o.consequent===t?s.makeIfConsequent():o.alternate===t&&s.makeIfAlternate();break;case"SwitchCase":o.consequent[0]===t&&s.makeSwitchCaseBody(!1,!o.test);break;case"TryStatement":o.handler===t?s.makeCatchBlock():o.finalizer===t&&s.makeFinallyBlock();break;case"WhileStatement":o.test===t?s.makeWhileTest(h(t)):(n(o.body===t),s.makeWhileBody());break;case"DoWhileStatement":o.body===t?s.makeDoWhileBody():(n(o.test===t),s.makeDoWhileTest(h(t)));break;case"ForStatement":o.test===t?s.makeForTest(h(t)):o.update===t?s.makeForUpdate():o.body===t&&s.makeForBody();break;case"ForInStatement":case"ForOfStatement":o.left===t?s.makeForInOfLeft():o.right===t?s.makeForInOfRight():(n(o.body===t),s.makeForInOfBody());break;case"AssignmentPattern":o.right===t&&(s.pushForkContext(),s.forkBypassPath(),s.forkPath())}}(this,e),function(e,t){let r=e.codePath,n=r&&a.getState(r);const o=t.parent;switch(t.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":r&&(m(e,t),l.dumpState(t,n,!1)),r=e.codePath=new a(e.idGenerator.next(),r,e.onLooped),n=a.getState(r),l.dump(`onCodePathStart ${r.id}`),e.emitter.emit("onCodePathStart",r,t);break;case"ChainExpression":n.pushChainContext();break;case"CallExpression":case"MemberExpression":!0===t.optional&&n.makeOptionalNode();break;case"LogicalExpression":u(t.operator)&&n.pushChoiceContext(t.operator,d(t));break;case"AssignmentExpression":p(t.operator)&&n.pushChoiceContext(t.operator.slice(0,-1),d(t));break;case"ConditionalExpression":case"IfStatement":n.pushChoiceContext("test",!1);break;case"SwitchStatement":n.pushSwitchContext(t.cases.some(c),f(t));break;case"TryStatement":n.pushTryContext(Boolean(t.finalizer));break;case"SwitchCase":o.discriminant!==t&&o.cases[0]!==t&&n.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.pushLoopContext(t.type,f(t));break;case"LabeledStatement":s.test(t.body.type)||n.pushBreakContext(!1,t.label.name)}m(e,t),l.dumpState(t,n,!1)}(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,function(e,t){const r=e.codePath,n=a.getState(r);let o=!1;switch(t.type){case"ChainExpression":n.popChainContext();break;case"IfStatement":case"ConditionalExpression":n.popChoiceContext();break;case"LogicalExpression":u(t.operator)&&n.popChoiceContext();break;case"AssignmentExpression":p(t.operator)&&n.popChoiceContext();break;case"SwitchStatement":n.popSwitchContext();break;case"SwitchCase":0===t.consequent.length&&n.makeSwitchCaseBody(!0,!t.test),n.forkContext.reachable&&(o=!0);break;case"TryStatement":n.popTryContext();break;case"BreakStatement":m(e,t),n.makeBreak(t.label&&t.label.name),o=!0;break;case"ContinueStatement":m(e,t),n.makeContinue(t.label&&t.label.name),o=!0;break;case"ReturnStatement":m(e,t),n.makeReturn(),o=!0;break;case"ThrowStatement":m(e,t),n.makeThrow(),o=!0;break;case"Identifier":(function(e){const t=e.parent;switch(t.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return t.id!==e;case"Property":case"MethodDefinition":return t.key!==e||t.computed||t.shorthand;case"AssignmentPattern":return t.key!==e;default:return!0}})(t)&&(n.makeFirstThrowablePathInTryBlock(),o=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":n.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.popLoopContext();break;case"AssignmentPattern":n.popForkContext();break;case"LabeledStatement":s.test(t.body.type)||n.popBreakContext()}o||m(e,t),l.dumpState(t,n,!0)}(this,e),this.original.leaveNode(e),function(e,t){switch(t.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":{let r=e.codePath;a.getState(r).makeFinal(),function(e,t){const r=a.getState(e.codePath),n=r.currentSegments;for(let r=0;r ${t.id}`),this.emitter.emit("onCodePathSegmentLoop",e,t,this.currentNode))}}},85100:(e,t,r)=>{"use strict";const n=r(63072);function s(e){return e.reachable}class a{constructor(e,t,r){this.id=e,this.nextSegments=[],this.prevSegments=t.filter(s),this.allNextSegments=[],this.allPrevSegments=t,this.reachable=r,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),n.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return-1!==this.internal.loopedPrevSegments.indexOf(e)}static newRoot(e){return new a(e,[],!0)}static newNext(e,t){return new a(e,a.flattenUnusedSegments(t),t.some(s))}static newUnreachable(e,t){const r=new a(e,a.flattenUnusedSegments(t),!1);return a.markUsed(r),r}static newDisconnected(e,t){return new a(e,[],t.some(s))}static markUsed(e){if(e.internal.used)return;let t;if(e.internal.used=!0,e.reachable)for(t=0;t{"use strict";const n=r(85100),s=r(14303);function a(e,t,r,n){for(let s=0;s=2&&n.markPrevSegmentAsLooped(o,r),e.notifyLooped(r,o)}}function u(e,t,r){t.processed||(t.trueForkContext.add(r),t.falseForkContext.add(r),t.qqForkContext.add(r)),!0!==e.test&&e.brokenForkContext.addAll(t.falseForkContext),e.endOfTestSegments=t.trueForkContext.makeNext(0,-1)}e.exports=class{constructor(e,t){this.idGenerator=e,this.notifyLooped=t,this.forkContext=s.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0];const r=this.finalSegments=[],n=this.returnedForkContext=[],o=this.thrownForkContext=[];n.add=a.bind(null,n,o,r),o.add=a.bind(null,o,n,r)}get headSegments(){return this.forkContext.head}get parentForkContext(){const e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=s.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){const e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,t){this.choiceContext={upper:this.choiceContext,kind:e,isForkingAsResult:t,trueForkContext:s.newEmpty(this.forkContext),falseForkContext:s.newEmpty(this.forkContext),qqForkContext:s.newEmpty(this.forkContext),processed:!1}}popChoiceContext(){const e=this.choiceContext;this.choiceContext=e.upper;const t=this.forkContext,r=t.head;switch(e.kind){case"&&":case"||":case"??":if(e.processed||(e.trueForkContext.add(r),e.falseForkContext.add(r),e.qqForkContext.add(r)),e.isForkingAsResult){const t=this.choiceContext;return t.trueForkContext.addAll(e.trueForkContext),t.falseForkContext.addAll(e.falseForkContext),t.qqForkContext.addAll(e.qqForkContext),t.processed=!0,e}break;case"test":e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(r)):(e.trueForkContext.clear(),e.trueForkContext.add(r));break;case"loop":return e;default:throw new Error("unreachable")}const n=e.trueForkContext;return n.addAll(e.falseForkContext),t.replaceHead(n.makeNext(0,-1)),e}makeLogicalRight(){const e=this.choiceContext,t=this.forkContext;if(e.processed){let r;switch(e.kind){case"&&":r=e.trueForkContext;break;case"||":r=e.falseForkContext;break;case"??":r=e.qqForkContext;break;default:throw new Error("unreachable")}t.replaceHead(r.makeNext(0,-1)),r.clear(),e.processed=!1}else{switch(e.kind){case"&&":e.falseForkContext.add(t.head);break;case"||":e.trueForkContext.add(t.head);break;case"??":e.trueForkContext.add(t.head),e.falseForkContext.add(t.head);break;default:throw new Error("unreachable")}t.replaceHead(t.makeNext(-1,-1))}}makeIfConsequent(){const e=this.choiceContext,t=this.forkContext;e.processed||(e.trueForkContext.add(t.head),e.falseForkContext.add(t.head),e.qqForkContext.add(t.head)),e.processed=!1,t.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){const e=this.choiceContext,t=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(t.head),e.processed=!0,t.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext={upper:this.chainContext,countChoiceContexts:0}}popChainContext(){const e=this.chainContext;this.chainContext=e.upper;for(let t=e.countChoiceContexts;t>0;--t)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.countChoiceContexts+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,t){this.switchContext={upper:this.switchContext,hasCase:e,defaultSegments:null,defaultBodySegments:null,foundDefault:!1,lastIsDefault:!1,countForks:0},this.pushBreakContext(!0,t)}popSwitchContext(){const e=this.switchContext;this.switchContext=e.upper;const t=this.forkContext,r=this.popBreakContext().brokenForkContext;if(0===e.countForks)return void(r.empty||(r.add(t.makeNext(-1,-1)),t.replaceHead(r.makeNext(0,-1))));const n=t.head;this.forkBypassPath();const s=t.head;r.add(n),e.lastIsDefault||(e.defaultBodySegments?(function(e,t){for(let r=0;r0&&e[0].reachable&&this.returnedForkContext.add(e)}}},18451:(e,t,r)=>{"use strict";const n=r(83562),s=r(27847);e.exports=class{constructor(e,t,r){this.id=e,this.upper=t,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new n(new s(`${e}_`),r)}),t&&t.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}get currentSegments(){return this.internal.currentSegments}traverseSegments(e,t){let r,n;"function"==typeof e?(n=e,r={}):(r=e||{},n=t);const s=r.first||this.internal.initialSegment,a=r.last;let o=null,i=0,l=0,c=null;const u=Object.create(null),p=[[s,0]];let f=null,d=!1;const h={skip(){p.length<=1?d=!0:f=p[p.length-2][0]},break(){d=!0}};function m(e){return u[e.id]||c.isLoopedPrevSegment(e)}for(;p.length>0;){if(o=p[p.length-1],c=o[0],i=o[1],0===i){if(u[c.id]){p.pop();continue}if(c!==s&&c.prevSegments.length>0&&!c.prevSegments.every(m)){p.pop();continue}if(f&&-1!==c.prevSegments.indexOf(f)&&(f=null),u[c.id]=!0,!f&&(n.call(this,c,h),c===a&&h.skip(),d))break}l=c.nextSegments.length-1,i{"use strict";const n=r(11227)("eslint:code-path");function s(e){return e.id+(e.reachable?"":"!")}function a(e,t){const r=t?`:${t}`:"";switch(e.type){case"Identifier":return`${e.type}${r} (${e.name})`;case"Literal":return`${e.type}${r} (${e.value})`;default:return`${e.type}${r}`}}e.exports={enabled:n.enabled,dump:n,dumpState:n.enabled?function(e,t,r){for(let n=0;n=0&&s.nodes[t]===a(e,"enter")?s.nodes[t]=a(e,void 0):s.nodes.push(a(e,"exit"))}else s.nodes.push(a(e,"enter"))}n([`${t.currentSegments.map(s).join(",")})`,`${e.type}${r?":exit":""}`].join(" "))}:n,dumpDot:n.enabled?function(e){let t='\ndigraph {\nnode[shape=box,style="rounded,filled",fillcolor=white];\ninitial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];\n';e.returnedSegments.length>0&&(t+='final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];\n'),e.thrownSegments.length>0&&(t+='thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize];\n');const r=Object.create(null),s=this.makeDotArrows(e,r);for(const e in r){const n=r[e];t+=`${e}[`,n.reachable?t+='label="':t+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<>\\n',n.internal.nodes.length>0?t+=n.internal.nodes.join("\\n"):t+="????",t+='"];\n'}t+=`${s}\n`,t+="}",n("DOT",t)}:n,makeDotArrows(e,t){const r=[[e.initialSegment,0]],n=t||Object.create(null);let s=e.initialSegment.id,a=`initial->${e.initialSegment.id}`;for(;r.length>0;){const e=r.pop(),t=e[0],o=e[1];if(n[t.id]&&0===o)continue;n[t.id]=t;const i=t.allNextSegments[o];i&&(s===t.id?a+=`->${i.id}`:a+=`;\n${t.id}->${i.id}`,s=i.id,r.unshift([t,1+o]),r.push([i,0]))}return e.returnedSegments.forEach((e=>{s===e.id?a+="->final":a+=`;\n${e.id}->final`,s=null})),e.thrownSegments.forEach((e=>{s===e.id?a+="->thrown":a+=`;\n${e.id}->thrown`,s=null})),`${a};`}}},14303:(e,t,r)=>{"use strict";const n=r(69282),s=r(85100);function a(e){return e.reachable}function o(e,t,r,n){const s=e.segmentsList,a=t>=0?t:s.length+t,o=r>=0?r:s.length+r,i=[];for(let t=0;te.count;){const t=[];for(let n=0,a=r.length/2|0;n0&&e.some(a)}makeNext(e,t){return o(this,e,t,s.newNext)}makeUnreachable(e,t){return o(this,e,t,s.newUnreachable)}makeDisconnected(e,t){return o(this,e,t,s.newDisconnected)}add(e){n(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(i(this,e))}replaceHead(e){n(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,i(this,e))}addAll(e){n(e.count===this.count);const t=e.segmentsList;for(let e=0;e{"use strict";e.exports=class{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}},7555:(e,t,r)=>{"use strict";const n=r(4727),s=r(94921),a=r(11227)("eslint:config-comment-parser");e.exports=class{parseStringConfig(e,t){a("Parsing String config");const r={};return e.replace(/\s*([:,])\s*/gu,"$1").split(/\s|,+/u).forEach((e=>{if(!e)return;const[n,s=null]=e.split(":");r[n]={value:s,comment:t}})),r}parseJsonConfig(e,t){a("Parsing JSON config");let r={};try{if(r=n.parse("Object",e)||{},s.isEverySeverityValid(r))return{success:!0,config:r}}catch{a("Levn parsing failed; falling back to manual parsing.")}r={};const o=e.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{r=JSON.parse(`{${o}}`)}catch(e){return a("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${o}': ${e.message}`,line:t.start.line,column:t.start.column+1}}}return{success:!0,config:r}}parseListConfig(e){a("Parsing list config");const t={};return e.replace(/\s*,\s*/gu,",").split(/,+/u).forEach((e=>{const r=e.trim();r&&(t[r]=!0)})),t}}},25811:e=>{"use strict";e.exports=(e,t)=>t?e.replace(/\{\{([^{}]+?)\}\}/gu,((e,r)=>{const n=r.trim();return n in t?t[n]:e})):e},78500:(e,t,r)=>{"use strict";var n=r(34155);const s=r(26470),a=r(25048),o=r(29736),i=r(40577),l=r(72378),c=r(58027),u=r(11810),p=r(911),f=r(94921),d=r(23603),h=r(86151),{SourceCode:m}=r(99233),g=r(66873),y=r(30613),x=r(7555),b=r(15559),E=r(56357),v=r(93645),S=r(96331),C=r(10173),A=r(7638),k=r(94378),w=r(11227)("eslint:linter"),D=new x,F={start:{line:1,column:0},end:{line:1,column:1}},T=Symbol.for("eslint.RuleTester.parser");function P(e){return Object.prototype.hasOwnProperty.call(k.rules,e)?`Rule '${e}' was removed and replaced by: ${k.rules[e].join(", ")}`:`Definition for rule '${e}' was not found.`}function I(e){const{ruleId:t=null,loc:r=F,message:n=P(e.ruleId),severity:s=2}=e;return{ruleId:t,message:n,line:r.start.line,column:r.start.column+1,endLine:r.end.line,endColumn:r.end.column+1,severity:s,nodeType:null}}function _(e){return e.split(/\s-{2,}\s/u)[0].trim()}const B=/\/\*\s*eslint-env\s(.+?)\*\//gsu;function O(e){const t=e.split(s.sep),r=t.lastIndexOf("");return-1===r?e:t.slice(r).join(s.sep)}function L(e,t,r){const n=t.ecmaFeatures||{},s=t.ecmaVersion||5;return a.analyze(e,{ignoreEval:!0,nodejsScope:n.globalReturn,impliedStrict:n.impliedStrict,ecmaVersion:s,sourceType:t.sourceType||"script",childVisitorKeys:r||o.KEYS,fallback:h.getKeys})}function R(e,t){const r="Program"!==t.type;for(let n=t;n;n=n.parent){const t=e.acquire(n,r);if(t)return"function-expression-name"===t.type?t.childScopes[0]:t}return e.scopes[0]}const j={getSource:"getText",getSourceLines:"getLines",getAllComments:"getAllComments",getNodeByRangeIndex:"getNodeByRangeIndex",getComments:"getComments",getCommentsBefore:"getCommentsBefore",getCommentsAfter:"getCommentsAfter",getCommentsInside:"getCommentsInside",getJSDocComment:"getJSDocComment",getFirstToken:"getFirstToken",getFirstTokens:"getFirstTokens",getLastToken:"getLastToken",getLastTokens:"getLastTokens",getTokenAfter:"getTokenAfter",getTokenBefore:"getTokenBefore",getTokenByRangeStart:"getTokenByRangeStart",getTokens:"getTokens",getTokensAfter:"getTokensAfter",getTokensBefore:"getTokensBefore",getTokensBetween:"getTokensBetween"},N=Object.freeze(Object.keys(j).reduce(((e,t)=>Object.assign(e,{[t](...e){return this.getSourceCode()[j[t]](...e)}})),{}));function M(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginRules.get(t)||e.ruleMap.get(t)}function V(e){return e||("object"==typeof n?n.cwd():void 0)}const $=new WeakMap;e.exports={Linter:class{constructor({cwd:e}={}){$.set(this,{cwd:V(e),lastConfigArray:null,lastSourceCode:null,parserMap:new Map([["espree",i]]),ruleMap:new v}),this.version=u.version}static get version(){return u.version}_verifyWithoutProcessors(e,t,r){const n=$.get(this),s=t||{},u=function(e,t){const r=!0===t.noInlineConfig,n=!1===e.allowInlineConfig,s=t.configNameOfNoInlineConfig?` (${t.configNameOfNoInlineConfig})`:"";let a=e.reportUnusedDisableDirectives;return"boolean"==typeof a&&(a=a?"error":"off"),"string"!=typeof a&&(a=t.reportUnusedDisableDirectives?"warn":"off"),{filename:O(e.filename||""),allowInlineConfig:!n,warnInlineConfig:r&&!n?`your config${s}`:null,reportUnusedDisableDirectives:a,disableFixes:Boolean(e.disableFixes)}}(r,s);let x;"string"==typeof e?(n.lastSourceCode=null,x=e):(n.lastSourceCode=e,x=e.text);let C="espree",k=i;if("object"==typeof s.parser&&null!==s.parser)C=s.parser.filePath,k=s.parser.definition;else if("string"==typeof s.parser){if(!n.parserMap.has(s.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${s.parser}' was not found.`,line:0,column:0}];C=s.parser,k=n.parserMap.get(s.parser)}const F=u.allowInlineConfig&&!u.warnInlineConfig?function(e){let t,r;for(B.lastIndex=0;null!==(t=B.exec(e));)r=Object.assign(r||{},D.parseListConfig(_(t[1])));return r}(x):{},P=Object.assign({builtin:!0},s.env,F),j=Object.keys(P).filter((e=>P[e])).map((e=>function(e,t){return e.lastConfigArray&&e.lastConfigArray.pluginEnvironments.get(t)||c.get(t)||null}(n,e))).filter((e=>e)),V=function(e,t,r){const n=r.filter((e=>e.parserOptions)).reduce(((e,t)=>l(e,t.parserOptions)),{}),s=l(n,t||{});return"module"===s.sourceType&&(s.ecmaFeatures=Object.assign({},s.ecmaFeatures,{globalReturn:!1})),s.ecmaVersion=function(e,t){return(e[T]||e)===i&&"latest"===t?i.latestEcmaVersion:t>=2015?t-2009:t}(e,s.ecmaVersion),s}(k,s.parserOptions||{},j),U=(q=s.globals||{},G=j,Object.assign({},...G.filter((e=>e.globals)).map((e=>e.globals)),q));var q,G;const W=s.settings||{};if(n.lastSourceCode)n.lastSourceCode.scopeManager||(n.lastSourceCode=new m({text:n.lastSourceCode.text,ast:n.lastSourceCode.ast,parserServices:n.lastSourceCode.parserServices,visitorKeys:n.lastSourceCode.visitorKeys,scopeManager:L(n.lastSourceCode.ast,V)}));else{const e=function(e,t,r,n){const s=function(e){return 65279===e.charCodeAt(0)?e.slice(1):e}(e).replace(p.shebangPattern,((e,t)=>`//${t}`)),a=Object.assign({},r,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:n});try{const r="function"==typeof t.parseForESLint?t.parseForESLint(s,a):{ast:t.parse(s,a)},n=r.ast,i=r.services||{},l=r.visitorKeys||o.KEYS,c=r.scopeManager||L(n,a,l);return{success:!0,sourceCode:new m({text:e,ast:n,parserServices:i,scopeManager:c,visitorKeys:l})}}catch(e){const t=`Parsing error: ${e.message.replace(/^line \d+:/iu,"").trim()}`;return w("%s\n%s",t,e.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:t,line:e.lineNumber,column:e.column}}}}(x,k,V,u.filename);if(!e.success)return[e.error];n.lastSourceCode=e.sourceCode}const z=n.lastSourceCode,H=u.allowInlineConfig?function(e,t,r,n){const s={},a=Object.create(null),o={},i=[],l=[],c=new d({builtInRules:v});return t.comments.filter((e=>"Shebang"!==e.type)).forEach((e=>{const t=_(e.value),u=/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u.exec(t);if(!u)return;const p=u[1],d=/^eslint-disable-(next-)?line$/u.test(p);if("Line"===e.type&&!d)return;if(n){const t="Block"===e.type?`/*${p}*/`:`//${p}`;return void i.push(I({ruleId:null,message:`'${t}' has no effect because you have 'noInlineConfig' setting in ${n}.`,loc:e.loc,severity:1}))}if(d&&e.loc.start.line!==e.loc.end.line){const t=`${p} comment should not span multiple lines.`;return void i.push(I({ruleId:null,message:t,loc:e.loc}))}const h=t.slice(u.index+p.length);switch(p){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const t={type:p.slice(7),loc:e.loc,value:h,ruleMapper:r},{directives:n,directiveProblems:s}=function(e){const{type:t,loc:r,value:n,ruleMapper:s}=e,a=Object.keys(D.parseListConfig(n)),o=a.length?a:[null],i={directives:[],directiveProblems:[]};for(const e of o)null===e||null!==s(e)?i.directives.push({type:t,line:r.start.line,column:r.start.column+1,ruleId:e}):i.directiveProblems.push(I({ruleId:e,loc:r}));return i}(t);l.push(...n),i.push(...s);break}case"exported":Object.assign(o,D.parseStringConfig(h,e));break;case"globals":case"global":for(const[t,{value:r}]of Object.entries(D.parseStringConfig(h,e))){let n;try{n=f.normalizeConfigGlobal(r)}catch(t){i.push(I({ruleId:null,loc:e.loc,message:t.message}));continue}a[t]?(a[t].comments.push(e),a[t].value=n):a[t]={comments:[e],value:n}}break;case"eslint":{const t=D.parseJsonConfig(h,e.loc);t.success?Object.keys(t.config).forEach((n=>{const a=r(n),o=t.config[n];if(null!==a){try{c.validateRuleOptions(a,n,o)}catch(t){return void i.push(I({ruleId:n,message:t.message,loc:e.loc}))}s[n]=o}else i.push(I({ruleId:n,loc:e.loc}))})):i.push(t.error);break}}})),{configuredRules:s,enabledGlobals:a,exportedVariables:o,problems:i,disableDirectives:l}}(u.filename,z.ast,(e=>M(n,e)),u.warnInlineConfig):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};!function(e,t,{exportedVariables:r,enabledGlobals:n}){for(const r of new Set([...Object.keys(t),...Object.keys(n)])){const s=void 0===t[r]?void 0:f.normalizeConfigGlobal(t[r]),o=n[r]&&n[r].value||s,i=n[r]&&n[r].comments;if("off"===o)continue;let l=e.set.get(r);l||(l=new a.Variable(r,e),e.variables.push(l),e.set.set(r,l)),l.eslintImplicitGlobalSetting=s,l.eslintExplicitGlobal=void 0!==i,l.eslintExplicitGlobalComments=i,l.writeable="writable"===o}Object.keys(r).forEach((t=>{const r=e.set.get(t);r&&(r.eslintUsed=!0)})),e.through=e.through.filter((t=>{const r=t.identifier.name,n=e.set.get(r);return!n||(t.resolved=n,n.references.push(t),!1)}))}(z.scopeManager.scopes[0],U,{exportedVariables:H.exportedVariables,enabledGlobals:H.enabledGlobals});const J=Object.assign({},s.rules,H.configuredRules);let K;try{K=function(e,t,r,n,s,a,o,i,l,c){const u=S(),p=[];let d=e.ast;h.traverse(e.ast,{enter(e,t){e.parent=t,p.push({isEntering:!0,node:e})},leave(e){p.push({isEntering:!1,node:e})},visitorKeys:e.visitorKeys});const m=Object.freeze(Object.assign(Object.create(N),{getAncestors:()=>function(e){const t=[];for(let r=e.parent;r;r=r.parent)t.push(r);return t.reverse()}(d),getDeclaredVariables:e.scopeManager.getDeclaredVariables.bind(e.scopeManager),getCwd:()=>l,getFilename:()=>o,getPhysicalFilename:()=>c||o,getScope:()=>R(e.scopeManager,d),getSourceCode:()=>e,markVariableAsUsed:t=>function(e,t,r,n){const s=r.ecmaFeatures&&r.ecmaFeatures.globalReturn||"module"===r.sourceType,a=R(e,t);for(let e="global"===a.type&&s?a.childScopes[0]:a;e;e=e.upper){const t=e.variables.find((e=>e.name===n));if(t)return t.eslintUsed=!0,!0}return!1}(e.scopeManager,d,n,t),parserOptions:n,parserPath:s,parserServices:e.parserServices,settings:a})),y=[];Object.keys(t).forEach((n=>{const s=f.getRuleSeverity(t[n]);if(0===s)return;const a=r(n);if(null===a)return void y.push(I({ruleId:n}));const o=a.meta&&a.meta.messages;let l=null;const c=Object.freeze(Object.assign(Object.create(m),{id:n,options:(p=t[n],Array.isArray(p)?p.slice(1):[]),report(...t){null===l&&(l=E({ruleId:n,severity:s,sourceCode:e,messageIds:o,disableFixes:i}));const r=l(...t);if(r.fix&&a.meta&&!a.meta.fixable)throw new Error("Fixable rules should export a `meta.fixable` property.");y.push(r)}}));var p;const d=function(e,t){try{return e.create(t)}catch(e){throw e.message=`Error while loading rule '${t.id}': ${e.message}`,e}}(a,c);Object.keys(d).forEach((e=>{u.on(e,A.enabled?A.time(n,d[e]):d[e])}))}));const x="Program"===p[0].node.type?new g(new b(u,{visitorKeys:e.visitorKeys,fallback:h.getKeys})):new b(u,{visitorKeys:e.visitorKeys,fallback:h.getKeys});return p.forEach((e=>{d=e.node;try{e.isEntering?x.enterNode(d):x.leaveNode(d)}catch(e){throw e.currentNode=d,e}})),y}(z,J,(e=>M(n,e)),V,C,W,u.filename,u.disableFixes,n.cwd,r.physicalFilename)}catch(e){if(e.message+=`\nOccurred while linting ${u.filename}`,w("An error occurred while traversing"),w("Filename:",u.filename),e.currentNode){const{line:t}=e.currentNode.loc.start;w("Line:",t),e.message+=`:${t}`}throw w("Parser Options:",V),w("Parser Path:",C),w("Settings:",W),e}return y({directives:H.disableDirectives,problems:K.concat(H.problems).sort(((e,t)=>e.line-t.line||e.column-t.column)),reportUnusedDisableDirectives:u.reportUnusedDisableDirectives})}verify(e,t,r){w("Verify");const n="string"==typeof r?{filename:r}:r||{};return t&&"function"==typeof t.extractConfig?this._verifyWithConfigArray(e,t,n):n.preprocess||n.postprocess?this._verifyWithProcessor(e,t,n):this._verifyWithoutProcessors(e,t,n)}_verifyWithConfigArray(e,t,r){w("With ConfigArray: %s",r.filename),$.get(this).lastConfigArray=t;const n=t.extractConfig(r.filename),s=n.processor&&t.pluginProcessors.get(n.processor);if(s){w("Apply the processor: %o",n.processor);const{preprocess:a,postprocess:o,supportsAutofix:i}=s,l=r.disableFixes||!i;return this._verifyWithProcessor(e,n,{...r,disableFixes:l,postprocess:o,preprocess:a},t)}return this._verifyWithoutProcessors(e,n,r)}_verifyWithProcessor(e,t,r,n){const a=r.filename||"",o=O(a),i=r.physicalFilename||o,l=function(e){if("object"==typeof e){const{hasBOM:t,text:r}=e;return(t?"\ufeff":"")+r}return String(e)}(e),c=r.preprocess||(e=>[e]),u=r.postprocess||(e=>[].concat(...e)),p=r.filterCodeBlock||(e=>e.endsWith(".js")),f=s.extname(a);return u(c(l,o).map(((e,o)=>{if(w("A code block was found: %o",e.filename||"(unnamed)"),"string"==typeof e)return this._verifyWithoutProcessors(e,t,r);const c=e.text,u=s.join(a,`${o}_${e.filename}`);return p(u,c)?!n||l===c&&s.extname(u)===f?this._verifyWithoutProcessors(c,t,{...r,filename:u,physicalFilename:i}):(w("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(c,n,{...r,filename:u,physicalFilename:i})):(w("This code block was skipped."),[])})),o)}getSourceCode(){return $.get(this).lastSourceCode}defineRule(e,t){$.get(this).ruleMap.define(e,t)}defineRules(e){Object.getOwnPropertyNames(e).forEach((t=>{this.defineRule(t,e[t])}))}getRules(){const{lastConfigArray:e,ruleMap:t}=$.get(this);return new Map(function*(){yield*t,e&&(yield*e.pluginRules)}())}defineParser(e,t){$.get(this).parserMap.set(e,t)}verifyAndFix(e,t,r){let n,s=[],a=!1,o=0,i=e;const l=r&&r.filename||`${e.slice(0,10)}...`,c=!r||void 0===r.fix||r.fix;do{if(o++,w(`Linting code for ${l} (pass ${o})`),s=this.verify(i,t,r),w(`Generating fixed text for ${l} (pass ${o})`),n=C.applyFixes(i,s,c),1===s.length&&s[0].fatal)break;a=a||n.fixed,i=n.output}while(n.fixed&&o<10);return n.fixed&&(n.messages=this.verify(i,t,r)),n.fixed=a,n.output=i,n}},getLinterInternalSlots:e=>$.get(e)}},15559:(e,t,r)=>{"use strict";const n=r(36896);function s(e){switch(e.type){case"identifier":return[e.value];case"matches":{const t=e.selectors.map(s);return t.every(Boolean)?function(...e){return[...new Set([].concat(...e))]}(...t):null}case"compound":{const t=e.selectors.map(s).filter((e=>e));return t.length?function(...e){if(0===e.length)return[];let t=[...new Set(e[0])];for(const r of e.slice(1))t=t.filter((e=>r.includes(e)));return t}(...t):null}case"child":case"descendant":case"sibling":case"adjacent":return s(e.right);default:return null}}function a(e){switch(e.type){case"child":case"descendant":case"sibling":case"adjacent":return a(e.left)+a(e.right);case"compound":case"not":case"matches":return e.selectors.reduce(((e,t)=>e+a(t)),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function o(e){switch(e.type){case"child":case"descendant":case"sibling":case"adjacent":return o(e.left)+o(e.right);case"compound":case"not":case"matches":return e.selectors.reduce(((e,t)=>e+o(t)),0);case"identifier":return 1;default:return 0}}function i(e,t){return e.attributeCount-t.attributeCount||e.identifierCount-t.identifierCount||(e.rawSelector<=t.rawSelector?-1:1)}const l=new Map;e.exports=class{constructor(e,t){this.emitter=e,this.esqueryOptions=t,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.eventNames().forEach((e=>{const t=function(e){if(l.has(e))return l.get(e);const t=function(e){try{return n.parse(e.replace(/:exit$/u,""))}catch(t){if(t.location&&t.location.start&&"number"==typeof t.location.start.offset)throw new SyntaxError(`Syntax error in selector "${e}" at position ${t.location.start.offset}: ${t.message}`);throw t}}(e),r={rawSelector:e,isExit:e.endsWith(":exit"),parsedSelector:t,listenerTypes:s(t),attributeCount:a(t),identifierCount:o(t)};return l.set(e,r),r}(e);if(t.listenerTypes){const e=t.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;t.listenerTypes.forEach((r=>{e.has(r)||e.set(r,[]),e.get(r).push(t)}))}else(t.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(t)})),this.anyTypeEnterSelectors.sort(i),this.anyTypeExitSelectors.sort(i),this.enterSelectorsByNodeType.forEach((e=>e.sort(i))),this.exitSelectorsByNodeType.forEach((e=>e.sort(i)))}applySelector(e,t){n.matches(e,t.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(t.rawSelector,e)}applySelectors(e,t){const r=(t?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e.type)||[],n=t?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let s=0,a=0;for(;s=r.length||a{"use strict";const n=r(69282),s=r(72062),a=r(25811);function o(e){return e.loc?e.loc.start?e.loc:{start:e.loc,end:null}:e.node.loc}function i(e){e&&n(e.range&&"number"==typeof e.range[0]&&"number"==typeof e.range[1],`Fix has invalid range: ${JSON.stringify(e,null,2)}`)}function l(e,t){return e.range[0]-t.range[0]||e.range[1]-t.range[1]}function c(e,t){if("function"!=typeof e.fix)return null;const r=e.fix(s);return r&&Symbol.iterator in r?function(e,t){for(const t of e)i(t);if(0===e.length)return null;if(1===e.length)return e[0];e.sort(l);const r=t.text,s=e[0].range[0],a=e[e.length-1].range[1];let o="",c=Number.MIN_SAFE_INTEGER;for(const t of e)n(t.range[0]>=c,"Fix objects must not be overlapped in a report."),t.range[0]>=0&&(o+=r.slice(Math.max(0,s,c),t.range[0])),o+=t.text,c=t.range[1];return o+=r.slice(Math.max(0,s,c),a),{range:[s,a],text:o}}(Array.from(r),t):(i(r),r)}function u(e,t,r){return e.suggest&&Array.isArray(e.suggest)?e.suggest.map((e=>{const n=e.desc||r[e.messageId];return{...e,desc:a(n,e.data),fix:c(e,t)}})).filter((({fix:e})=>e)):[]}e.exports=function(e){return(...t)=>{const r=function(...e){return 1===e.length?Object.assign({},e[0]):"string"==typeof e[1]?{node:e[0],message:e[1],data:e[2],fix:e[3]}:{node:e[0],loc:e[1],message:e[2],data:e[3],fix:e[4]}}(...t),s=e.messageIds;let i;if(function(e){e.node?n("object"==typeof e.node,"Node must be an object"):n(e.loc,"Node must be provided when reporting error if location is not provided")}(r),r.messageId){if(!s)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");const e=r.messageId;if(r.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!s||!Object.prototype.hasOwnProperty.call(s,e))throw new TypeError(`context.report() called with a messageId of '${e}' which is not present in the 'messages' config: ${JSON.stringify(s,null,2)}`);i=s[e]}else{if(!r.message)throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");i=r.message}return function(e,t){e&&Array.isArray(e)&&e.forEach((e=>{if(e.messageId){const{messageId:r}=e;if(!t)throw new TypeError(`context.report() called with a suggest option with a messageId '${r}', but no messages were present in the rule metadata.`);if(!t[r])throw new TypeError(`context.report() called with a suggest option with a messageId '${r}' which is not present in the 'messages' config: ${JSON.stringify(t,null,2)}`);if(e.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!e.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if("function"!=typeof e.fix)throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${e}`)}))}(r.suggest,s),function(e){const t={ruleId:e.ruleId,severity:e.severity,message:e.message,line:e.loc.start.line,column:e.loc.start.column+1,nodeType:e.node&&e.node.type||null};return e.messageId&&(t.messageId=e.messageId),e.loc.end&&(t.endLine=e.loc.end.line,t.endColumn=e.loc.end.column+1),e.fix&&(t.fix=e.fix),e.suggestions&&e.suggestions.length>0&&(t.suggestions=e.suggestions),t}({ruleId:e.ruleId,severity:e.severity,node:r.node,message:a(i,r.data),messageId:r.messageId,loc:o(r),fix:e.disableFixes?null:c(r,e.sourceCode),suggestions:e.disableFixes?[]:u(r,e.sourceCode,s)})}}},72062:e=>{"use strict";function t(e,t){return{range:[e,e],text:t}}const r=Object.freeze({insertTextAfter(e,t){return this.insertTextAfterRange(e.range,t)},insertTextAfterRange:(e,r)=>t(e[1],r),insertTextBefore(e,t){return this.insertTextBeforeRange(e.range,t)},insertTextBeforeRange:(e,r)=>t(e[0],r),replaceText(e,t){return this.replaceTextRange(e.range,t)},replaceTextRange:(e,t)=>({range:e,text:t}),remove(e){return this.removeRange(e.range)},removeRange:e=>({range:e,text:""})});e.exports=r},93645:(e,t,r)=>{"use strict";const n=r(29514);class s{constructor(){this._rules=Object.create(null)}define(e,t){var r;this._rules[e]="function"==typeof(r=t)?Object.assign({create:r},r):r}get(e){return"string"==typeof this._rules[e]&&this.define(e,r(84294)(this._rules[e])),this._rules[e]?this._rules[e]:n.has(e)?n.get(e):null}*[Symbol.iterator](){yield*n;for(const e of Object.keys(this._rules))yield[e,this.get(e)]}}e.exports=s},96331:e=>{"use strict";e.exports=()=>{const e=Object.create(null);return Object.freeze({on(t,r){t in e?e[t].push(r):e[t]=[r]},emit(t,...r){t in e&&e[t].forEach((e=>e(...r)))},eventNames:()=>Object.keys(e)})}},10173:(e,t,r)=>{"use strict";const n=r(11227)("eslint:source-code-fixer");function s(e,t){return e.fix.range[0]-t.fix.range[0]||e.fix.range[1]-t.fix.range[1]}function a(e,t){return e.line-t.line||e.column-t.column}function o(){Object.freeze(this)}o.applyFixes=function(e,t,r){if(n("Applying fixes"),!1===r)return n("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:t,output:e};const o=[],i=[],l=e.startsWith("\ufeff")?"\ufeff":"",c=l?e.slice(1):e;let u=Number.NEGATIVE_INFINITY,p=l;function f(e){const t=e.fix,r=t.range[0],n=t.range[1];return u>=r||r>n?(o.push(e),!1):((r<0&&n>=0||0===r&&t.text.startsWith("\ufeff"))&&(p=""),p+=c.slice(Math.max(0,u),Math.max(0,r)),p+=t.text,u=n,!0)}if(t.forEach((e=>{Object.prototype.hasOwnProperty.call(e,"fix")?i.push(e):o.push(e)})),i.length){n("Found fixes to apply");let e=!1;for(const t of i.sort(s))"function"!=typeof r||r(t)?(f(t),e=!0):o.push(t);return p+=c.slice(Math.max(0,u)),{fixed:e,messages:o.sort(a),output:p}}return n("No fixes to apply"),{fixed:!1,messages:t,output:l+c}},e.exports=o},7638:(e,t,r)=>{"use strict";var n=r(34155),s=r(25108);function a(e,t,r){return new Array(t-e.length+1).join(r||" ")+e}const o=!!n.env.TIMING,i=["Rule","Time (ms)","Relative"],l=[function(e,t,r){return e+new Array(t-e.length+1).join(r||" ")},a,a];function c(){if("string"!=typeof n.env.TIMING)return 10;if("all"===n.env.TIMING.toLowerCase())return Number.POSITIVE_INFINITY;const e=Number.parseInt(n.env.TIMING,10);return e>10?e:10}e.exports=function(){const e=Object.create(null);return o&&n.on("exit",(()=>{!function(e){let t=0;const r=Object.keys(e).map((r=>{const n=e[r];return t+=n,[r,n]})).sort(((e,t)=>t[1]-e[1])).slice(0,c());r.forEach((e=>{e.push(`${(100*e[1]/t).toFixed(1)}%`),e[1]=e[1].toFixed(3)})),r.unshift(i);const n=[];r.forEach((e=>{const t=e.length;for(let r=0;rn[r])&&(n[r]=t)}}));const a=r.map((e=>e.map(((e,t)=>l[t](e,n[t]))).join(" | ")));a.splice(1,0,n.map(((e,t)=>{const r=0!==t&&t!==n.length-1?2:1;return l[t](":",e+r,"-")})).join("|")),s.log(a.join("\n"))}(e)})),{time:function(t,r){return void 0===e[t]&&(e[t]=0),function(...s){let a=n.hrtime();r(...s),a=n.hrtime(a),e[t]+=1e3*a[0]+a[1]/1e6}},enabled:o,getListSize:c}}()},84294:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=84294,e.exports=t},85716:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return"get"===e.kind||"set"===e.kind}function a(e,t,r,s){const a=e.parent;return"CallExpression"===a.type&&n.isSpecificMemberAccess(a.callee,r,s)&&a.arguments[t]===e}e.exports={meta:{type:"suggestion",docs:{description:"enforce getter and setter pairs in objects and classes",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean",default:!1},setWithoutGet:{type:"boolean",default:!0},enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}."}},create(e){const t=e.options[0]||{},r=!0===t.getWithoutSet,o=!1!==t.setWithoutGet,i=!1!==t.enforceForClassMembers,l=e.getSourceCode();function c(t,r){"Property"===t.type?e.report({node:t,messageId:`${r}InObjectLiteral`,loc:n.getFunctionHeadLoc(t.value,l),data:{name:n.getFunctionNameWithKind(t.value)}}):"MethodDefinition"===t.type?e.report({node:t,messageId:`${r}InClass`,loc:n.getFunctionHeadLoc(t.value,l),data:{name:n.getFunctionNameWithKind(t.value)}}):e.report({node:t,messageId:`${r}InPropertyDescriptor`})}function u(e,t){for(const r of e)c(r,t)}function p(e){const t=n.getStaticPropertyName(e);return{key:null!==t?t:l.getTokens(e.key),getters:"get"===e.kind?[e]:[],setters:"set"===e.kind?[e]:[]}}function f(e,t){const r=e.find((e=>{return r=e.key,n=t.key,"string"==typeof r&&"string"==typeof n?r===n:!(!Array.isArray(r)||!Array.isArray(n))&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r"Property"===e.type)))}(e),function(e){if(a(e,2,"Object","defineProperty")||a(e,2,"Reflect","defineProperty"))return!0;const t=e.parent.parent;return"ObjectExpression"===t.type&&(a(t,1,"Object","create")||a(t,1,"Object","defineProperties"))}(e)&&function(e){const t=e.properties.filter((e=>"Property"===e.type&&"init"===e.kind&&!e.computed)).map((({key:e})=>e.name)),n=t.includes("get"),s=t.includes("set");o&&s&&!n&&c(e,"missingGetter"),r&&n&&!s&&c(e,"missingSetter")}(e)},i&&(h.ClassBody=function(e){const t=e.body.filter((e=>"MethodDefinition"===e.type));d(t.filter((e=>e.static))),d(t.filter((e=>!e.static)))})),h}}},82825:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce linebreaks after opening and before closing array brackets",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){const t=e.getSourceCode();function r(r){const s=r.elements,a=function(e){const t=function(e){let t=!1,r=!1,n=0;return e?"consistent"===e?(t=!0,n=Number.POSITIVE_INFINITY):"always"===e||0===e.minItems?n=0:"never"===e?n=Number.POSITIVE_INFINITY:(r=Boolean(e.multiline),n=e.minItems||Number.POSITIVE_INFINITY):(t=!1,r=!0,n=Number.POSITIVE_INFINITY),{consistent:t,multiline:r,minItems:n}}(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0])[r.type],o=t.getFirstToken(r),i=t.getLastToken(r),l=t.getTokenAfter(o,{includeComments:!0}),c=t.getTokenBefore(i,{includeComments:!0}),u=t.getTokenAfter(o),p=t.getTokenBefore(i);s.length>=a.minItems||a.multiline&&s.length>0&&l.loc.start.line!==c.loc.end.line||0===s.length&&"Block"===l.type&&l.loc.start.line!==c.loc.end.line&&l===c||a.consistent&&o.loc.end.line!==u.loc.start.line?(n.isTokenOnSameLine(o,u)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingOpeningLinebreak",fix:e=>e.insertTextAfter(r,"\n")})}(r,o),n.isTokenOnSameLine(p,i)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingClosingLinebreak",fix:e=>e.insertTextBefore(r,"\n")})}(r,i)):(n.isTokenOnSameLine(o,u)||function(r,s){e.report({node:r,loc:s.loc,messageId:"unexpectedOpeningLinebreak",fix(e){const r=t.getTokenAfter(s,{includeComments:!0});return n.isCommentToken(r)?null:e.removeRange([s.range[1],r.range[0]])}})}(r,o),n.isTokenOnSameLine(p,i)||function(r,s){e.report({node:r,loc:s.loc,messageId:"unexpectedClosingLinebreak",fix(e){const r=t.getTokenBefore(s,{includeComments:!0});return n.isCommentToken(r)?null:e.removeRange([r.range[1],s.range[0]])}})}(r,i))}return{ArrayPattern:r,ArrayExpression:r}}}},73481:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside array brackets",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e){const t="always"===e.options[0],r=e.getSourceCode();function s(r){return!!e.options[1]&&e.options[1][r]===!t}const a={spaced:t,singleElementException:s("singleValue"),objectsInArraysException:s("objectsInArrays"),arraysInArraysException:s("arraysInArrays")};function o(e){return e&&("ObjectExpression"===e.type||"ObjectPattern"===e.type)}function i(e){return e&&("ArrayExpression"===e.type||"ArrayPattern"===e.type)}function l(t){if(a.spaced&&0===t.elements.length)return;const s=r.getFirstToken(t),l=r.getFirstToken(t,1),c=t.typeAnnotation?r.getTokenBefore(t.typeAnnotation):r.getLastToken(t),u=r.getTokenBefore(c),p=t.elements[0],f=t.elements[t.elements.length-1],d=a.objectsInArraysException&&o(p)||a.arraysInArraysException&&i(p)||a.singleElementException&&1===t.elements.length?!a.spaced:a.spaced,h=a.objectsInArraysException&&o(f)||a.arraysInArraysException&&i(f)||a.singleElementException&&1===t.elements.length?!a.spaced:a.spaced;n.isTokenOnSameLine(s,l)&&(d&&!r.isSpaceBetweenTokens(s,l)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")})}(t,s),!d&&r.isSpaceBetweenTokens(s,l)&&function(t,n){const s=r.getTokenAfter(n);e.report({node:t,loc:{start:n.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:n.value},fix:e=>e.removeRange([n.range[1],s.range[0]])})}(t,s)),s!==u&&n.isTokenOnSameLine(u,c)&&(h&&!r.isSpaceBetweenTokens(u,c)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceBefore",data:{tokenValue:r.value},fix:e=>e.insertTextBefore(r," ")})}(t,c),!h&&r.isSpaceBetweenTokens(u,c)&&function(t,n){const s=r.getTokenBefore(n);e.report({node:t,loc:{start:s.loc.end,end:n.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:n.value},fix:e=>e.removeRange([s.range[1],n.range[0]])})}(t,c))}return{ArrayPattern:l,ArrayExpression:l}}}},31373:(e,t,r)=>{"use strict";const n=r(48411),s=/^(?:Arrow)?FunctionExpression$/u,a=/^(?:every|filter|find(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort)$/u;function o(e){return e.reachable}function i(e){return n.isSpecificMemberAccess(e,null,a)}function l(e){return["from","of","isArray"].includes(e)?"Array.".concat(e):"Array.prototype.".concat(e)}e.exports={meta:{type:"problem",docs:{description:"enforce `return` statements in callbacks of array methods",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/array-callback-return"},schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}."}},create(e){const t=e.options[0]||{allowImplicit:!1,checkForEach:!1},r=e.getSourceCode();let a={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function c(s){if(!a.shouldCheck)return;let i=null;if("forEach"===a.arrayMethodName?t.checkForEach&&"ArrowFunctionExpression"===s.type&&s.expression&&(i="expectedNoReturnValue"):"BlockStatement"===s.body.type&&a.codePath.currentSegments.some(o)&&(i=a.hasReturn?"expectedAtEnd":"expectedInside"),i){const t=n.getFunctionNameWithKind(s);e.report({node:s,loc:n.getFunctionHeadLoc(s,r),messageId:i,data:{name:t,arrayMethodName:l(a.arrayMethodName)}})}}return{onCodePathStart(e,t){let r=null;s.test(t.type)&&(r=function(e){let t=e;for(;t;){const e=t.parent;switch(e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":t=e;break;case"ReturnStatement":{const r=n.getUpperFunction(e);if(null===r||!n.isCallee(r))return null;t=r.parent;break}case"CallExpression":return n.isArrayFromMethod(e.callee)&&e.arguments.length>=2&&e.arguments[1]===t?"from":i(e.callee)&&e.arguments.length>=1&&e.arguments[0]===t?n.getStaticPropertyName(e.callee):null;default:return null}}return null}(t)),a={arrayMethodName:r,upper:a,codePath:e,hasReturn:!1,shouldCheck:r&&!t.async&&!t.generator,node:t}},onCodePathEnd(){a=a.upper},ReturnStatement(r){if(!a.shouldCheck)return;a.hasReturn=!0;let s=null;"forEach"===a.arrayMethodName?t.checkForEach&&r.argument&&(s="expectedNoReturnValue"):t.allowImplicit||r.argument||(s="expectedReturnValue"),s&&e.report({node:r,messageId:s,data:{name:n.getFunctionNameWithKind(a.node),arrayMethodName:l(a.arrayMethodName)}})},"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}}},68109:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce line breaks after each array element",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){const t=e.getSourceCode();function r(e){let t,r=!1,n=!1;const s=e||"always";return s&&"always"!==s&&0!==s.minItems?"never"===s?t=Number.POSITIVE_INFINITY:"consistent"===s?(r=!0,t=Number.POSITIVE_INFINITY):(n=Boolean(s.multiline),t=s.minItems||Number.POSITIVE_INFINITY):t=0,{consistent:r,multiline:n,minItems:t}}function s(s){const a=s.elements,o=function(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,n;return e.ArrayExpression&&(t=r(e.ArrayExpression)),e.ArrayPattern&&(n=r(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:n}}const t=r(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0]),i=o[s.type];if(!i)return;let l=!1;i.multiline&&(l=a.filter((e=>null!==e)).some((e=>e.loc.start.line!==e.loc.end.line)));const c=s.elements.map(((e,r)=>{const s=a[r-1];if(0===r||null===e||null===s)return!1;const o=t.getFirstTokenBetween(s,e,n.isCommaToken),i=t.getTokenBefore(o),l=t.getTokenAfter(o);return!n.isTokenOnSameLine(i,l)})).filter((e=>!0===e)).length,u=a.length>=i.minItems||i.multiline&&l||i.consistent&&c>0&&c{const o=a[s-1];if(0===s||null===r||null===o)return;const i=t.getFirstTokenBetween(o,r,n.isCommaToken),l=t.getTokenBefore(i),c=t.getTokenAfter(i);u?n.isTokenOnSameLine(l,c)&&function(r){const n=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:n.loc.end,end:r.loc.start},messageId:"missingLineBreak",fix:e=>e.replaceTextRange([n.range[1],r.range[0]],"\n")})}(c):n.isTokenOnSameLine(l,c)||function(r){const s=t.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:s.loc.end,end:r.loc.start},messageId:"unexpectedLineBreak",fix(e){if(n.isCommentToken(s))return null;if(!n.isTokenOnSameLine(s,r))return e.replaceTextRange([s.range[1],r.range[0]]," ");const a=t.getTokenBefore(s,{includeComments:!0});return n.isCommentToken(a)?null:e.replaceTextRange([a.range[1],s.range[0]],"")}})}(c)}))}return{ArrayPattern:s,ArrayExpression:s}}}},94071:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require braces around arrow function bodies",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(e){const t=e.options,r="always"===t[0],s=!t[0]||"as-needed"===t[0],a="never"===t[0],o=t[1]&&t[1].requireReturnForObjectLiteral,i=e.getSourceCode();let l=null;function c(e){return!(!e||!e.parent)&&("ForStatement"===e.parent.type&&e.parent.init===e||c(e.parent))}function u(t){const u=t.body;if("BlockStatement"===u.type){const r=u.body;if(1!==r.length&&!a)return;if(s&&o&&"ReturnStatement"===r[0].type&&r[0].argument&&"ObjectExpression"===r[0].argument.type)return;if(a||s&&"ReturnStatement"===r[0].type){let s;s=0===r.length?"unexpectedEmptyBlock":r.length>1?"unexpectedOtherBlock":null===r[0].argument?"unexpectedSingleBlock":n.isOpeningBraceToken(i.getFirstToken(r[0],{skip:1}))?"unexpectedObjectBlock":"unexpectedSingleBlock",e.report({node:t,loc:u.loc,messageId:s,fix(e){const s=[];if(1!==r.length||"ReturnStatement"!==r[0].type||!r[0].argument||(a=i.getTokenAfter(u))&&"Punctuator"===a.type&&/^[([/`+-]/u.test(a.value))return s;var a;const o=i.getFirstToken(u),p=i.getLastToken(u),f=i.getFirstToken(r[0],1),d=i.getLastToken(r[0]);return i.commentsExistBetween(o,f)||i.commentsExistBetween(d,p)?s.push(e.remove(o),e.remove(p),e.remove(i.getTokenAfter(o))):s.push(e.removeRange([o.range[0],f.range[0]]),e.removeRange([d.range[1],p.range[1]])),(n.isOpeningBraceToken(f)||"SequenceExpression"===r[0].argument.type||l.hasInOperator&&c(t))&&(n.isParenthesised(i,r[0].argument)||s.push(e.insertTextBefore(f,"("),e.insertTextAfter(d,")"))),n.isSemicolonToken(d)&&s.push(e.remove(d)),s}})}}else(r||s&&o&&"ObjectExpression"===u.type)&&e.report({node:t,loc:u.loc,messageId:"expectedBlock",fix(e){const r=[],s=i.getTokenBefore(u,n.isArrowToken),[a,o]=i.getTokensAfter(s,{count:2}),l=i.getLastToken(t);let c=null;if(n.isOpeningParenToken(a)&&n.isOpeningBraceToken(o)){const e=i.getNodeByRangeIndex(o.range[0]);"ObjectExpression"===e.type&&(c=e)}if(c){const t=a,s=o;n.isTokenOnSameLine(t,s)?r.push(e.replaceText(t,"{return ")):r.push(e.replaceText(t,"{"),e.insertTextBefore(s,"return ")),r.push(e.remove(function(e){let t=e;for(;!n.isParenthesised(i,t);)t=t.parent;return i.getTokenAfter(t)}(c))),r.push(e.insertTextAfter(l,"}"))}else r.push(e.insertTextBefore(a,"{return ")),r.push(e.insertTextAfter(l,"}"));return r}})}return{"BinaryExpression[operator='in']"(){let e=l;for(;e;)e.hasInOperator=!0,e=e.upper},ArrowFunctionExpression(){l={upper:l,hasInOperator:!1}},"ArrowFunctionExpression:exit"(e){u(e),l=l.upper}}}}},66660:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require parentheses around arrow function arguments",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(e){const t="as-needed"===e.options[0],r=t&&e.options[1]&&!0===e.options[1].requireForBlockBody,s=e.getSourceCode();function a(e){return s.getTokenAfter(e.params[0],n.isClosingParenToken)}return{"ArrowFunctionExpression[params.length=1]"(o){const i=!t||r&&function(e){return"BlockStatement"===e.body.type}(o),l=function(e){const t=s.getTokenBefore(e.params[0]);return t&&n.isOpeningParenToken(t)&&e.range[0]<=t.range[0]?t:null}(o),c=null!==l,[u]=o.params;i&&!c&&e.report({node:o,messageId:r?"expectedParensBlock":"expectedParens",loc:u.loc,*fix(e){yield e.insertTextBefore(u,"("),yield e.insertTextAfter(u,")")}}),i||!c||"Identifier"!==u.type||u.typeAnnotation||o.returnType||function(e,t){return s.commentsExistBetween(t,a(e))}(o,l)||function(e,t){const r=e.async?1:0;return s.getFirstToken(e,{skip:r})!==t}(o,l)||e.report({node:o,messageId:r?"unexpectedParensInline":"unexpectedParens",loc:u.loc,*fix(e){const t=s.getTokenBefore(l),r=a(o);t&&t.range[1]===l.range[0]&&!n.canTokensBeAdjacent(t,s.getFirstToken(u))&&(yield e.insertTextBefore(l," ")),yield e.removeRange([l.range[0],u.range[0]]),yield e.removeRange([u.range[1],r.range[1]])}})}}}}},77987:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after the arrow in arrow functions",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e){const t=Object.assign({},e.options[0]);t.before=!1!==t.before,t.after=!1!==t.after;const r=e.getSourceCode();return{ArrowFunctionExpression:function(s){const a=function(e){const t=r.getTokenBefore(e.body,n.isArrowToken);return{before:r.getTokenBefore(t),arrow:t,after:r.getTokenAfter(t)}}(s),o=function(e){return{before:e.arrow.range[0]-e.before.range[1],after:e.after.range[0]-e.arrow.range[1]}}(a);t.before?0===o.before&&e.report({node:a.before,messageId:"expectedBefore",fix:e=>e.insertTextBefore(a.arrow," ")}):o.before>0&&e.report({node:a.before,messageId:"unexpectedBefore",fix:e=>e.removeRange([a.before.range[1],a.arrow.range[0]])}),t.after?0===o.after&&e.report({node:a.after,messageId:"expectedAfter",fix:e=>e.insertTextAfter(a.arrow," ")}):o.after>0&&e.report({node:a.after,messageId:"unexpectedAfter",fix:e=>e.removeRange([a.arrow.range[1],a.after.range[0]])})}}}}},12993:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce the use of variables within the scope they are defined",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' used outside of binding context."}},create(e){let t=[];function r(e){t.push(e.range)}function n(){t.pop()}function s(t){const r=t.identifier;e.report({node:r,messageId:"outOfScope",data:{name:r.name}})}return{Program(e){t=[e.range]},BlockStatement:r,"BlockStatement:exit":n,ForStatement:r,"ForStatement:exit":n,ForInStatement:r,"ForInStatement:exit":n,ForOfStatement:r,"ForOfStatement:exit":n,SwitchStatement:r,"SwitchStatement:exit":n,CatchClause:r,"CatchClause:exit":n,VariableDeclaration:function(r){if("var"!==r.kind)return;const n=t[t.length-1];function a(e){const t=e.identifier.range;return t[0]n[1]}const o=e.getDeclaredVariables(r);for(let e=0;e{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"disallow or enforce spaces inside of blocks after opening block and before closing block",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){const t="never"!==e.options[0],r=t?"missing":"extra",s=e.getSourceCode();function a(e,r){return!n.isTokenOnSameLine(e,r)||s.isSpaceBetweenTokens(e,r)===t}function o(n){const o=function(e){return"SwitchStatement"===e.type?e.cases.length>0?s.getTokenBefore(e.cases[0]):s.getLastToken(e,1):s.getFirstToken(e)}(n),i=s.getLastToken(n),l=s.getTokenAfter(o,{includeComments:!0}),c=s.getTokenBefore(i,{includeComments:!0});if("Punctuator"===o.type&&"{"===o.value&&"Punctuator"===i.type&&"}"===i.value&&l!==i&&(t||"Line"!==l.type)){if(!a(o,l)){let s=o.loc;"extra"===r&&(s={start:o.loc.end,end:l.loc.start}),e.report({node:n,loc:s,messageId:r,data:{location:"after",token:o.value},fix:e=>t?e.insertTextBefore(l," "):e.removeRange([o.range[1],l.range[0]])})}if(!a(c,i)){let s=i.loc;"extra"===r&&(s={start:c.loc.end,end:i.loc.start}),e.report({node:n,loc:s,messageId:r,data:{location:"before",token:i.value},fix:e=>t?e.insertTextAfter(c," "):e.removeRange([c.range[1],i.range[0]])})}}}return{BlockStatement:o,SwitchStatement:o}}}},12955:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent brace style for blocks",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e){const t=e.options[0]||"1tbs",r=e.options[1]||{},s=e.getSourceCode();function a(e,t){const r=[e.range[1],t.range[0]];return s.text.slice(r[0],r[1]).trim()?null:e=>e.replaceTextRange(r," ")}function o(o,i){const l=s.getTokenBefore(o),c=s.getTokenAfter(o),u=s.getTokenBefore(i),p=r.allowSingleLine&&n.isTokenOnSameLine(o,i);"allman"===t||n.isTokenOnSameLine(l,o)||e.report({node:o,messageId:"nextLineOpen",fix:a(l,o)}),"allman"===t&&n.isTokenOnSameLine(l,o)&&!p&&e.report({node:o,messageId:"sameLineOpen",fix:e=>e.insertTextBefore(o,"\n")}),n.isTokenOnSameLine(o,c)&&c!==i&&!p&&e.report({node:o,messageId:"blockSameLine",fix:e=>e.insertTextAfter(o,"\n")}),u!==o&&!p&&n.isTokenOnSameLine(u,i)&&e.report({node:i,messageId:"singleLineClose",fix:e=>e.insertTextBefore(i,"\n")})}function i(r){const o=s.getTokenAfter(r);"1tbs"!==t||n.isTokenOnSameLine(r,o)||e.report({node:r,messageId:"nextLineClose",fix:a(r,o)}),"1tbs"!==t&&n.isTokenOnSameLine(r,o)&&e.report({node:r,messageId:"sameLineClose",fix:e=>e.insertTextAfter(r,"\n")})}return{BlockStatement(e){n.STATEMENT_LIST_PARENTS.has(e.parent.type)||o(s.getFirstToken(e),s.getLastToken(e))},ClassBody(e){o(s.getFirstToken(e),s.getLastToken(e))},SwitchStatement(e){const t=s.getLastToken(e);o(s.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){"BlockStatement"===e.consequent.type&&e.alternate&&i(s.getLastToken(e.consequent))},TryStatement(e){i(s.getLastToken(e.block)),e.handler&&e.finalizer&&i(s.getLastToken(e.handler.body))}}}}},93954:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `return` statements after callbacks",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(e){const t=e.options[0]||["callback","cb","next"],r=e.getSourceCode();function n(e,t){return e.parent?-1===t.indexOf(e.parent.type)?n(e.parent,t):e.parent:null}function s(e){if("Identifier"===e.type)return!0;if("MemberExpression"===e.type){if("Identifier"===e.object.type)return!0;if("MemberExpression"===e.object.type)return s(e.object)}return!1}function a(e){return s(e.callee)&&t.indexOf(r.getText(e.callee))>-1}function o(e,t){return!(!t||"ExpressionStatement"!==t.type||t.expression!==e&&("BinaryExpression"!==t.expression.type&&"LogicalExpression"!==t.expression.type||t.expression.right!==e))}return{CallExpression(t){if(!a(t))return;const r=n(t,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if("ReturnStatement"!==r.type&&"ArrowFunctionExpression"!==r.type){if("BlockStatement"===r.type){const e=r.body[r.body.length-1];if(o(t,e)){const e=r.parent.type;if("FunctionExpression"===e||"FunctionDeclaration"===e||"ArrowFunctionExpression"===e)return}if("ReturnStatement"===e.type&&o(t,r.body[r.body.length-2]))return}n(t,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&e.report({node:t,messageId:"missingReturn"})}}}}}},27291:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce camelcase naming convention",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImports:{type:"boolean",default:!1},ignoreGlobals:{type:"boolean",default:!1},properties:{enum:["always","never"]},allow:{type:"array",items:[{type:"string"}],minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case."}},create(e){const t=e.options[0]||{};let r=t.properties||"";const n=t.ignoreDestructuring,s=t.ignoreImports,a=t.ignoreGlobals,o=t.allow||[];let i;"always"!==r&&"never"!==r&&(r="always");const l=[],c=new Set(["CallExpression","NewExpression"]);function u(t){l.includes(t)||(l.push(t),e.report({node:t,messageId:"notCamelCase",data:{name:t.name}}))}return{Program(){i=e.getScope()},Identifier(e){const t=e.name,l=function(e){return e.includes("_")&&e!==e.toUpperCase()}(t.replace(/^_+|_+$/gu,"")),p="MemberExpression"===e.parent.type?e.parent.parent:e.parent;if(!function(e){return o.some((t=>e===t||e.match(new RegExp(t,"u"))))}(t)&&(!a||!function(e){const t=i.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e)||function(e){const t=e.parent;return"Property"===t.type&&"ObjectExpression"===t.parent.type&&!t.computed&&t.key===e}(e)))if("MemberExpression"===e.parent.type){if("never"===r)return;("Identifier"===e.parent.object.type&&e.parent.object.name===e.name&&l||"AssignmentExpression"===p.type&&l&&("MemberExpression"!==p.right.type||"MemberExpression"===p.left.type&&p.left.property.name===e.name)||function(e){if("MemberExpression"===e.parent.type&&e.parent.property===e&&!e.parent.computed){const t=e.parent.parent;return"Property"===t.type&&t.value===e.parent&&"ObjectPattern"===t.parent.type||"ArrayPattern"===t.type||"RestElement"===t.type||"AssignmentPattern"===t.type&&t.left===e.parent}return!1}(e)&&l)&&u(e)}else if("Property"===e.parent.type||"AssignmentPattern"===e.parent.type){if(e.parent.parent&&"ObjectPattern"===e.parent.parent.type){e.parent.shorthand&&e.parent.value.left&&l&&u(e);const t=e.parent.key.name===e.parent.value.name;if(l&&e.parent.computed&&u(e),e.parent.key===e&&e.parent.value!==e)return;!e.parent.value.name||!l||t&&n||u(e)}if("never"===r||n&&function(e){let t=e;for(;t;){const e=t.parent;if(e&&"Property"===e.type&&e.computed&&e.key===t)return!1;if("ObjectPattern"===t.type)return!0;t=e}return!1}(e))return;l&&!c.has(p.type)&&e.parent.right!==e&&u(e)}else if(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"].includes(e.parent.type)){if("ImportSpecifier"===e.parent.type&&s)return;e.parent.local&&e.parent.local.name===e.name&&l&&u(e)}else l&&!c.has(p.type)&&u(e)}}}}},88810:(e,t,r)=>{"use strict";const n=r(51387),s=r(48411).COMMENTS_IGNORE_PATTERN,a=/\s/gu,o=/^\s*[^:/?#\s]+:\/\/[^?#]/u,i={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},l={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function c(e,t){return Object.assign({},l,e[t]||e)}e.exports={meta:{type:"suggestion",docs:{description:"enforce or disallow capitalization of the first letter of a comment",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[i,{type:"object",properties:{line:i,block:i},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(e){const t=e.options[0]||"always",r=function(e={}){return{Line:c(e,"line"),Block:c(e,"block")}}(e.options[1]),i=e.getSourceCode();function l(l){const c=r[l.type];if(!function(e,r){if(s.test(e.value))return!0;const l=e.value.replace(/\*/gu,"");if(r.ignorePatternRegExp&&r.ignorePatternRegExp.test(l))return!0;if(r.ignoreInlineComments&&function(e){const t=i.getTokenBefore(e,{includeComments:!0}),r=i.getTokenAfter(e,{includeComments:!0});return Boolean(t&&r&&e.loc.start.line===t.loc.end.line&&e.loc.end.line===r.loc.start.line)}(e))return!0;if(r.ignoreConsecutiveComments&&function(e){const t=i.getTokenBefore(e,{includeComments:!0});return Boolean(t&&-1!==["Block","Line"].indexOf(t.type))}(e))return!0;if(o.test(l))return!0;const c=l.replace(a,"");if(0===c.length)return!0;const u=c[0];if(!n.test(u))return!0;const p=u!==u.toLocaleLowerCase(),f=u!==u.toLocaleUpperCase();return!("always"===t&&f||"never"===t&&p)}(l,c)){const r="always"===t?"unexpectedLowercaseComment":"unexpectedUppercaseComment";e.report({node:null,loc:l.loc,messageId:r,fix(e){const r=l.value.match(n);return e.replaceTextRange([l.range[0]+r.index+2,l.range[0]+r.index+3],"always"===t?r[0].toLocaleUpperCase():r[0].toLocaleLowerCase())}})}}return function(e){Object.keys(e).forEach((t=>{const r=e[t].ignorePattern;if(r){const n=RegExp(`^\\s*(?:${r})`,"u");e[t].ignorePatternRegExp=n}}))}(r),{Program(){i.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(l)}}}}},21314:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"enforce that class methods utilize `this`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(e){const t=Object.assign({},e.options[0]),r=new Set(t.exceptMethods||[]),s=[];function a(){s.push(!1)}function o(t){const a=s.pop();(function(e){return function(e){return!e.static&&"constructor"!==e.kind&&"MethodDefinition"===e.type}(e)&&(e.computed||!r.has(e.key.name))})(t.parent)&&!a&&e.report({node:t,messageId:"missingThis",data:{name:n.getFunctionNameWithKind(t)}})}function i(){s.length&&(s[s.length-1]=!0)}return{FunctionDeclaration:a,"FunctionDeclaration:exit":o,FunctionExpression:a,"FunctionExpression:exit":o,ThisExpression:i,Super:i}}}},38260:(e,t,r)=>{"use strict";const n=r(48411),s=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});e.exports={meta:{type:"layout",docs:{description:"require or disallow trailing commas",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}]},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(e){const t=(r=e.options[0],a=e.parserOptions.ecmaVersion,"string"==typeof r?{arrays:r,objects:r,imports:r,exports:r,functions:!a||a<8?"ignore":r}:"object"==typeof r&&null!==r?{arrays:r.arrays||s.arrays,objects:r.objects||s.objects,imports:r.imports||s.imports,exports:r.exports||s.exports,functions:r.functions||s.functions}:s);var r,a;const o=e.getSourceCode();function i(e){function t(e){return e[e.length-1]}switch(e.type){case"ObjectExpression":case"ObjectPattern":return t(e.properties);case"ArrayExpression":case"ArrayPattern":return t(e.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return t(e.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return t(e.params);case"CallExpression":case"NewExpression":return t(e.arguments);default:return null}}function l(e,t){switch(e.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return o.getLastToken(e,1);default:{const e=o.getTokenAfter(t);return n.isCommaToken(e)?e:o.getLastToken(t)}}}function c(e){const t=i(e);if(!t)return!1;const r=l(e,t);return o.getTokenAfter(r).loc.end.line!==r.loc.end.line}function u(t){const r=i(t);if(!r||"ImportDeclaration"===t.type&&"ImportSpecifier"!==r.type)return;const s=l(t,r);n.isCommaToken(s)&&e.report({node:r,loc:s.loc,messageId:"unexpected",fix:e=>e.remove(s)})}function p(t){const r=i(t);if(!r||"ImportDeclaration"===t.type&&"ImportSpecifier"!==r.type)return;if(!function(e){return!("RestElement"===e.type||"RestProperty"===e.type||"ExperimentalRestProperty"===e.type)}(r))return void u(t);const s=l(t,r);","!==s.value&&e.report({node:r,loc:{start:s.loc.end,end:n.getNextLocation(o,s.loc.end)},messageId:"missing",fix:e=>e.insertTextAfter(s,",")})}const f={always:p,"always-multiline":function(e){c(e)?p(e):u(e)},"only-multiline":function(e){c(e)||u(e)},never:u,ignore:()=>{}};return{ObjectExpression:f[t.objects],ObjectPattern:f[t.objects],ArrayExpression:f[t.arrays],ArrayPattern:f[t.arrays],ImportDeclaration:f[t.imports],ExportNamedDeclaration:f[t.exports],FunctionDeclaration:f[t.functions],FunctionExpression:f[t.functions],ArrowFunctionExpression:f[t.functions],CallExpression:f[t.functions],NewExpression:f[t.functions]}}}},31582:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after commas",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(e){const t=e.getSourceCode(),r=t.tokensAndComments,s={before:!!e.options[0]&&e.options[0].before,after:!e.options[0]||e.options[0].after},a=[];function o(t,r,n){e.report({node:t,fix(e){if(s[r])return"before"===r?e.insertTextBefore(t," "):e.insertTextAfter(t," ");let a,o;return"before"===r?(a=n.range[1],o=t.range[0]):(a=t.range[1],o=n.range[0]),e.replaceTextRange([a,o],"")},messageId:s[r]?"missing":"unexpected",data:{loc:r}})}function i(e){let r=t.getFirstToken(e);e.elements.forEach((e=>{let s;null===e?(s=t.getTokenAfter(r),n.isCommaToken(s)&&a.push(s)):s=t.getTokenAfter(e),r=s}))}return{"Program:exit"(){r.forEach(((e,i)=>{if(!n.isCommaToken(e))return;if(e&&"JSXText"===e.type)return;const l=r[i-1],c=r[i+1];var u,p;p=e,(u={comma:e,left:n.isCommaToken(l)||a.includes(e)?null:l,right:n.isCommaToken(c)?null:c}).left&&n.isTokenOnSameLine(u.left,u.comma)&&s.before!==t.isSpaceBetweenTokens(u.left,u.comma)&&o(p,"before",u.left),u.right&&n.isClosingParenToken(u.right)||u.right&&!s.after&&"Line"===u.right.type||u.right&&n.isTokenOnSameLine(u.comma,u.right)&&s.after!==t.isSpaceBetweenTokens(u.comma,u.right)&&o(p,"after",u.right)}))},ArrayExpression:i,ArrayPattern:i}}}},30249:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent comma style",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e){const t=e.options[0]||"last",r=e.getSourceCode(),s={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(2===e.options.length&&Object.prototype.hasOwnProperty.call(e.options[1],"exceptions")){const t=Object.keys(e.options[1].exceptions);for(let r=0;r1||a){let t=r.getFirstToken(e);if(s.forEach((e=>{const s=e?r.getTokenBefore(e):t,a=e?r.getFirstToken(e):r.getTokenAfter(s),i=e||a;if(n.isCommaToken(s)&&o(t,s,a,i),e){const s=r.getTokenAfter(e,n.isNotClosingParenToken);t=s?r.getTokenBefore(s):r.ast.tokens[r.ast.tokens.length-1]}else t=a})),a){const t=r.getLastToken(e),s=r.getTokenBefore(t);n.isCommaToken(s)&&o(r.getTokenBefore(s),s,t,t)}}}const l={};return s.VariableDeclaration||(l.VariableDeclaration=function(e){i(e,"declarations")}),s.ObjectExpression||(l.ObjectExpression=function(e){i(e,"properties")}),s.ObjectPattern||(l.ObjectPattern=function(e){i(e,"properties")}),s.ArrayExpression||(l.ArrayExpression=function(e){i(e,"elements")}),s.ArrayPattern||(l.ArrayPattern=function(e){i(e,"elements")}),s.FunctionDeclaration||(l.FunctionDeclaration=function(e){i(e,"params")}),s.FunctionExpression||(l.FunctionExpression=function(e){i(e,"params")}),s.ArrowFunctionExpression||(l.ArrowFunctionExpression=function(e){i(e,"params")}),s.CallExpression||(l.CallExpression=function(e){i(e,"arguments")}),s.ImportDeclaration||(l.ImportDeclaration=function(e){i(e,"specifiers")}),s.NewExpression||(l.NewExpression=function(e){i(e,"arguments")}),l}}},9704:(e,t,r)=>{"use strict";const n=r(48411),{upperCaseFirst:s}=r(98151);e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum cyclomatic complexity allowed in a program",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=20;"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"maximum")||Object.prototype.hasOwnProperty.call(t,"max"))?r=t.maximum||t.max:"number"==typeof t&&(r=t);const a=[];function o(){a.push(1)}function i(t){const o=s(n.getFunctionNameWithKind(t)),i=a.pop();i>r&&e.report({node:t,messageId:"complex",data:{name:o,complexity:i,max:r}})}function l(){a.length&&a[a.length-1]++}return{FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,CatchClause:l,ConditionalExpression:l,LogicalExpression:l,ForStatement:l,ForInStatement:l,ForOfStatement:l,IfStatement:l,SwitchCase:function(e){e.test&&l()},WhileStatement:l,DoWhileStatement:l,AssignmentExpression(e){n.isLogicalAssignmentOperator(e.operator)&&l()}}}}},94659:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside computed property brackets",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0],s=!e.options[1]||e.options[1].enforceForClassMembers;function a(s){return function(a){if(!a.computed)return;const o=a[s],i=t.getTokenBefore(o,n.isOpeningBracketToken),l=t.getTokenAfter(i,{includeComments:!0}),c=t.getTokenAfter(o,n.isClosingBracketToken),u=t.getTokenBefore(c,{includeComments:!0});n.isTokenOnSameLine(i,l)&&(r?!t.isSpaceBetweenTokens(i,l)&&n.isTokenOnSameLine(i,l)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceAfter",data:{tokenValue:r.value},fix:e=>e.insertTextAfter(r," ")})}(a,i):t.isSpaceBetweenTokens(i,l)&&function(t,r,n){e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:r.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}(a,i,l)),n.isTokenOnSameLine(u,c)&&(r?!t.isSpaceBetweenTokens(u,c)&&n.isTokenOnSameLine(u,c)&&function(t,r){e.report({node:t,loc:r.loc,messageId:"missingSpaceBefore",data:{tokenValue:r.value},fix:e=>e.insertTextBefore(r," ")})}(a,c):t.isSpaceBetweenTokens(u,c)&&function(t,r,n){e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:r.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}(a,c,u))}}const o={Property:a("key"),MemberExpression:a("property")};return s&&(o.MethodDefinition=a("key")),o}}},81730:(e,t,r)=>{"use strict";const n=r(48411),{upperCaseFirst:s}=r(98151);function a(e){return!e.reachable}e.exports={meta:{type:"suggestion",docs:{description:"require `return` statements to either always or never specify values",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(e){const t=!0===(e.options[0]||{}).treatUndefinedAsUnspecified;let r=null;function o(t){let s,o;!r.hasReturnValue||r.codePath.currentSegments.every(a)||n.isES5Constructor(t)||function(e){return"FunctionExpression"===e.type&&e.parent&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(t)||("Program"===t.type?(s={line:1,column:0},o="program"):s="ArrowFunctionExpression"===t.type?e.getSourceCode().getTokenBefore(t.body,n.isArrowToken).loc:"MethodDefinition"===t.parent.type||"Property"===t.parent.type&&t.parent.method?t.parent.key.loc:(t.id||e.getSourceCode().getFirstToken(t)).loc,o||(o=n.getFunctionNameWithKind(t)),e.report({node:t,loc:s,messageId:"missingReturn",data:{name:o}}))}return{onCodePathStart(e,t){r={upper:r,codePath:e,hasReturn:!1,hasReturnValue:!1,messageId:"",node:t}},onCodePathEnd(){r=r.upper},ReturnStatement(a){const o=a.argument;let i=Boolean(o);t&&i&&(i=!n.isSpecificId(o,"undefined")&&"void"!==o.operator),r.hasReturn?r.hasReturnValue!==i&&e.report({node:a,messageId:r.messageId,data:r.data}):(r.hasReturn=!0,r.hasReturnValue=i,r.messageId=i?"missingReturnValue":"unexpectedReturnValue",r.data={name:"Program"===r.node.type?"Program":s(n.getFunctionNameWithKind(r.node))})},"Program:exit":o,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o}}}},40125:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce consistent naming when capturing the current execution context",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(e){let t=[];function r(t,r){e.report({node:t,messageId:"aliasNotAssignedToThis",data:{name:r}})}function n(n,s,a){const o="ThisExpression"===a.type;-1!==t.indexOf(s)?(!o||n.operator&&"="!==n.operator)&&r(n,s):o&&e.report({node:n,messageId:"unexpectedAlias",data:{name:s}})}function s(){const n=e.getScope();t.forEach((e=>{!function(e,t){const n=t.set.get(e);n&&(n.defs.some((e=>"VariableDeclarator"===e.node.type&&null!==e.node.init))||n.references.some((e=>{const r=e.writeExpr;return e.from===t&&r&&"ThisExpression"===r.type&&"="===r.parent.operator}))||n.defs.map((e=>e.node)).forEach((t=>{r(t,e)})))}(e,n)}))}return 0===e.options.length?t.push("that"):t=e.options,{"Program:exit":s,"FunctionExpression:exit":s,"FunctionDeclaration:exit":s,VariableDeclarator(e){const t=e.id,r="ArrayPattern"===t.type||"ObjectPattern"===t.type;null===e.init||r||n(e,t.name,e.init)},AssignmentExpression(e){"Identifier"===e.left.type&&n(e,e.left.name,e.right)}}}}},93854:e=>{"use strict";function t(e){return e.reachable}function r(e){if(!e)return!1;switch(e.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return"undefined"!==e.name;case"AssignmentExpression":return["=","&&="].includes(e.operator)?r(e.right):!!["||=","??="].includes(e.operator)&&(r(e.left)||r(e.right));case"LogicalExpression":return"&&"===e.operator?r(e.right):r(e.left)||r(e.right);case"ConditionalExpression":return r(e.alternate)||r(e.consequent);case"SequenceExpression":return r(e.expressions[e.expressions.length-1]);default:return!1}}e.exports={meta:{type:"problem",docs:{description:"require `super()` calls in constructors",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor.",unexpected:"Unexpected 'super()'."}},create(e){let n=null,s=Object.create(null);function a(e){return e.reachable&&s[e.id].calledInSomePaths}function o(e){return!(1!==e.nextSegments.length||!e.nextSegments[0].isLoopedPrevSegment(e))||e.reachable&&s[e.id].calledInEveryPaths}return{onCodePathStart(e,t){if(function(e){return"FunctionExpression"===e.type&&"MethodDefinition"===e.parent.type&&"constructor"===e.parent.kind}(t)){const s=t.parent.parent.parent.superClass;n={upper:n,isConstructor:!0,hasExtends:Boolean(s),superIsConstructor:r(s),codePath:e}}else n={upper:n,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:e}},onCodePathEnd(t,r){const s=n.hasExtends;if(n=n.upper,!s)return;const i=t.returnedSegments,l=i.every(o),c=i.some(a);l||e.report({messageId:c?"missingSome":"missingAll",node:r.parent})},onCodePathSegmentStart(e){if(!(n&&n.isConstructor&&n.hasExtends))return;const t=s[e.id]={calledInSomePaths:!1,calledInEveryPaths:!1,validNodes:[]},r=e.prevSegments;r.length>0&&(t.calledInSomePaths=r.some(a),t.calledInEveryPaths=r.every(o))},onCodePathSegmentLoop(t,r){if(!(n&&n.isConstructor&&n.hasExtends))return;const i=r.prevSegments.length>=2;n.codePath.traverseSegments({first:r,last:t},(t=>{const r=s[t.id],n=t.prevSegments;if(r.calledInSomePaths=n.some(a),r.calledInEveryPaths=n.every(o),r.calledInSomePaths||i){const t=r.validNodes;r.validNodes=[];for(let r=0;r{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"enforce consistent brace style for all control statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(e){const t="multi"===e.options[0],r="multi-line"===e.options[0],s="multi-or-nest"===e.options[0],a="consistent"===e.options[1],o=e.getSourceCode();function i(e){if("EmptyStatement"===e.type)return!0;const t=o.getFirstToken(e),r=o.getLastToken(e),s=n.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===s.loc.end.line}function l(e){switch(e.type){case"IfStatement":return!e.alternate||l(e.alternate);case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return l(e.body);default:return!1}}function c(e){const t=e.body[0];return function(e){return"VariableDeclaration"===e.type?"const"===e.kind||"let"===e.kind:"FunctionDeclaration"===e.type||"ClassDeclaration"===e.type}(t)||l(t)&&function(e){const t=o.getTokenAfter(e);return Boolean(t)&&"else"===(r=t).value&&"Keyword"===r.type;var r}(e)}function u(a,l,u,p){const f="BlockStatement"===l.type;let d=null;if(f&&(1!==l.body.length||c(l)))d=!0;else if(t)d=!1;else if(r)(function(e){const t=o.getTokenBefore(e),r=o.getLastToken(e),s=n.isSemicolonToken(r)?o.getTokenBefore(r):r;return t.loc.start.line===s.loc.end.line})(l)||(d=!0);else if(s)if(f){const e=l.body[0],t=o.getCommentsBefore(e);d=!i(e)||t.length>0}else d=!i(l);else d=!0;return{actual:f,expected:d,check(){null!==this.expected&&this.expected!==this.actual&&(this.expected?e.report({node:a,loc:l.loc,messageId:p&&p.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:u},fix:e=>e.replaceText(l,`{${o.getText(l)}}`)}):e.report({node:a,loc:l.loc,messageId:p&&p.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:u},fix(e){const t="DoWhileStatement"===a.type&&o.getTokenBefore(l).range[1]===l.range[0]&&!n.canTokensBeAdjacent("do",o.getFirstToken(l,{skip:1})),r=o.getFirstToken(l),s=o.getLastToken(l),i=o.getTokenBefore(s);if(function(e){const t=o.getTokenBefore(e),r=o.getTokenAfter(e),s=o.getNodeByRangeIndex(t.range[0]);return!(n.isSemicolonToken(t)||!r||"BlockStatement"===s.type&&"FunctionExpression"!==s.parent.type&&"ArrowFunctionExpression"!==s.parent.type||t.loc.end.line!==r.loc.start.line&&!/^[([/`+-]/u.test(r.value)&&("Punctuator"!==t.type||"++"!==t.value&&"--"!==t.value))}(s))return null;const c=o.getText().slice(r.range[1],i.range[0])+o.getText(i)+o.getText().slice(i.range[1],s.range[0]);return e.replaceText(l,(t?" ":"")+c)}}))}}}return{IfStatement(e){const t=e.parent;"IfStatement"===t.type&&t.alternate===e||function(e){const t=[];for(let r=e;r;r=r.alternate)if(t.push(u(r,r.consequent,"if",{condition:!0})),r.alternate&&"IfStatement"!==r.alternate.type){t.push(u(r,r.alternate,"else"));break}if(a){const e=t.some((e=>null!==e.expected?e.expected:e.actual));t.forEach((t=>{t.expected=e}))}return t}(e).forEach((e=>{e.check()}))},WhileStatement(e){u(e,e.body,"while",{condition:!0}).check()},DoWhileStatement(e){u(e,e.body,"do").check()},ForStatement(e){u(e,e.body,"for",{condition:!0}).check()},ForInStatement(e){u(e,e.body,"for-in").check()},ForOfStatement(e){u(e,e.body,"for-of").check()}}}}},65052:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce default clauses in switch statements to be last",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create:e=>({SwitchStatement(t){const r=t.cases,n=r.findIndex((e=>null===e.test));if(-1!==n&&n!==r.length-1){const t=r[n];e.report({node:t,messageId:"notLast"})}}})}},1250:e=>{"use strict";const t=/^no default$/iu;e.exports={meta:{type:"suggestion",docs:{description:"require `default` cases in `switch` statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){const r=e.options[0]||{},n=r.commentPattern?new RegExp(r.commentPattern,"u"):t,s=e.getSourceCode();function a(e){return e[e.length-1]}return{SwitchStatement(t){if(t.cases.length&&!t.cases.some((e=>null===e.test))){let r;const o=a(t.cases),i=s.getCommentsAfter(o);i.length&&(r=a(i)),r&&n.test(r.value.trim())||e.report({node:t,messageId:"missingDefaultCase"})}}}}}},41968:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce default parameters to be last",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function t(t){let r=!1;for(let n=t.params.length-1;n>=0;n-=1){const s=t.params[n];"AssignmentPattern"===s.type||"RestElement"===s.type?r&&"AssignmentPattern"===s.type&&e.report({node:s,messageId:"shouldBeLast"}):r=!0}}return{FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t}}}},28805:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent newlines before and after dots",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e){const t=e.options[0],r="object"===t||!t,s=e.getSourceCode();return{MemberExpression:function(t){t.computed||function(t){const a=t.property,o=s.getTokenBefore(a);if(r){const r=s.getTokenBefore(o);n.isTokenOnSameLine(r,o)||e.report({node:t,loc:o.loc,messageId:"expectedDotAfterObject",*fix(e){o.value.startsWith(".")&&n.isDecimalIntegerNumericToken(r)?yield e.insertTextAfter(r,` ${o.value}`):yield e.insertTextAfter(r,o.value),yield e.remove(o)}})}else n.isTokenOnSameLine(o,a)||e.report({node:t,loc:o.loc,messageId:"expectedDotBeforeProperty",*fix(e){yield e.remove(o),yield e.insertTextBefore(a,o.value)}})}(t)}}}}},15896:(e,t,r)=>{"use strict";const n=r(48411),s=r(21416),a=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,o=new Set(["string","boolean"]);e.exports={meta:{type:"suggestion",docs:{description:"enforce dot notation whenever possible",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean",default:!0},allowPattern:{type:"string",default:""}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(e){const t=e.options[0]||{},r=void 0===t.allowKeywords||t.allowKeywords,i=e.getSourceCode();let l;function c(t,o){if(a.test(o)&&(r||-1===s.indexOf(String(o)))&&(!l||!l.test(o))){const r="Literal"===t.property.type?JSON.stringify(o):`\`${o}\``;e.report({node:t.property,messageId:"useDot",data:{key:r},*fix(e){const r=i.getTokenAfter(t.object,n.isOpeningBracketToken),s=i.getLastToken(t),a=i.getTokenAfter(t);i.commentsExistBetween(r,s)||(t.optional||(yield e.insertTextBefore(r,n.isDecimalInteger(t.object)?" .":".")),yield e.replaceTextRange([r.range[0],s.range[1]],o),a&&s.range[1]===a.range[0]&&!n.canTokensBeAdjacent(String(o),a)&&(yield e.insertTextAfter(t," ")))}})}}return t.allowPattern&&(l=new RegExp(t.allowPattern,"u")),{MemberExpression(t){t.computed&&"Literal"===t.property.type&&(o.has(typeof t.property.value)||n.isNullLiteral(t.property))&&c(t,t.property.value),t.computed&&"TemplateLiteral"===t.property.type&&0===t.property.expressions.length&&c(t,t.property.quasis[0].value.cooked),r||t.computed||-1===s.indexOf(String(t.property.name))||e.report({node:t.property,messageId:"useBrackets",data:{key:t.property.name},*fix(e){const r=i.getTokenBefore(t.property);("Identifier"!==t.object.type||"let"!==t.object.name||t.optional)&&(i.commentsExistBetween(r,t.property)||(t.optional||(yield e.remove(r)),yield e.replaceText(t.property,`["${t.property.name}"]`)))}})}}}}},12606:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require or disallow newline at the end of files",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create:e=>({Program:function(t){const r=e.getSourceCode(),n=r.getText(),s={column:r.lines[r.lines.length-1].length,line:r.lines.length},a=n.endsWith("\n");if(!n.length)return;let o=e.options[0]||"always",i=!1;"unix"===o&&(o="always"),"windows"===o&&(o="always",i=!0),"always"!==o||a?"never"===o&&a&&e.report({node:t,loc:s,messageId:"unexpected",fix(e){const t=/(?:\r?\n)+$/u.exec(r.text).index,n=r.text.length;return e.replaceTextRange([t,n],"")}}):e.report({node:t,loc:s,messageId:"missing",fix:e=>e.insertTextAfterRange([0,n.length],i?"\r\n":"\n")})}})}},95493:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require the use of `===` and `!==`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'."}},create(e){const t=e.options[0]||"always",r=e.options[1]||{},s=e.getSourceCode(),a="always"===t?r.null||"always":"ignore",o="always"===a,i="never"===a;function l(e){return"UnaryExpression"===e.type&&"typeof"===e.operator}function c(e){return l(e.left)||l(e.right)}function u(e){return"Literal"===e.left.type&&"Literal"===e.right.type&&typeof e.left.value==typeof e.right.value}function p(t,r){const n=s.getFirstTokenBetween(t.left,t.right,(e=>e.value===t.operator));e.report({node:t,loc:n.loc,messageId:"unexpected",data:{expectedOperator:r,actualOperator:t.operator},fix:e=>c(t)||u(t)?e.replaceText(n,r):null})}return{BinaryExpression(e){const r=function(e){return n.isNullLiteral(e.right)||n.isNullLiteral(e.left)}(e);"=="===e.operator||"!="===e.operator?"smart"===t&&(c(e)||u(e)||r)||!o&&r||p(e,`${e.operator}=`):i&&r&&p(e,e.operator.slice(0,-1))}}}}},41417:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:'enforce "for" loop update clause moving the counter in the right direction.',category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){function t(t){e.report({node:t,messageId:"incorrectDirection"})}function r(e,t){if("UnaryExpression"===e.right.type){if("-"===e.right.operator)return-t}else if("Identifier"===e.right.type)return 0;return t}return{ForStatement(e){if(e.test&&"BinaryExpression"===e.test.type&&"Identifier"===e.test.left.type&&e.update){const n=e.test.left.name,s=e.test.operator,a=e.update;let o;if("<"===s||"<="===s)o=-1;else{if(">"!==s&&">="!==s)return;o=1}"UpdateExpression"===a.type?function(e,t){if("Identifier"===e.argument.type&&e.argument.name===t){if("++"===e.operator)return 1;if("--"===e.operator)return-1}return 0}(a,n)===o&&t(e):"AssignmentExpression"===a.type&&function(e,t){if(e.left.name===t){if("+="===e.operator)return r(e,1);if("-="===e.operator)return r(e,-1)}return 0}(a,n)===o&&t(e)}}}}}},38256:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow spacing between function identifiers and their invocations",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e){const t="always"!==e.options[0],r=!t&&e.options[1]&&e.options[1].allowNewlines,s=e.getSourceCode(),a=s.getText();function o(o,i,l){const c=a.slice(i.range[1],l.range[0]).replace(/\/\*.*?\*\//gu,""),u=/\s/u.test(c),p=u&&n.LINEBREAK_MATCHER.test(c);t&&u?e.report({node:o,loc:{start:i.loc.end,end:{line:l.loc.start.line,column:l.loc.start.column-1}},messageId:"unexpectedWhitespace",fix:e=>s.commentsExistBetween(i,l)?null:o.optional?e.replaceTextRange([i.range[1],l.range[0]],"?."):p?null:e.removeRange([i.range[1],l.range[0]])}):t||u?t||r||!p||e.report({node:o,loc:{start:i.loc.end,end:l.loc.start},messageId:"unexpectedNewline",fix(e){if(!o.optional)return null;if(s.commentsExistBetween(i,l))return null;const t=[i.range[1],l.range[0]],r=s.getTokenAfter(i);return r.range[0]===i.range[1]?e.replaceTextRange(t,"?. "):r.range[1]===l.range[0]?e.replaceTextRange(t," ?."):e.replaceTextRange(t," ?. ")}}):e.report({node:o,loc:{start:{line:i.loc.end.line,column:i.loc.end.column-1},end:l.loc.start},messageId:"missing",fix:e=>o.optional?null:e.insertTextBefore(l," ")})}return{"CallExpression, NewExpression"(e){const t=s.getLastToken(e),r=s.getLastToken(e.callee),a=s.getFirstTokenBetween(r,t,n.isOpeningParenToken),i=a&&s.getTokenBefore(a,n.isNotQuestionDotToken);a&&a.range[1]{"use strict";const n=r(48411),s=r(649);function a(e,t){return t>=6?s.keyword.isIdentifierES6(e):s.keyword.isIdentifierES5(e)}const o={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};e.exports={meta:{type:"suggestion",docs:{description:"require function names to match the name of the variable or property to which they are assigned",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[{enum:["always","never"]},o]},{type:"array",additionalItems:!1,items:[o]}]},messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(e){const t=("object"==typeof e.options[0]?e.options[0]:e.options[1])||{},r="string"==typeof e.options[0]?e.options[0]:"always",s=t.considerPropertyDescriptor,o=t.includeCommonJSModuleExports,i=e.parserOptions&&e.parserOptions.ecmaVersion?e.parserOptions.ecmaVersion:5;function l(e,t,r){return!!r&&"CallExpression"===r.type&&n.isSpecificMemberAccess(r.callee,e,t)}function c(e,t){return"always"===r&&e!==t||"never"===r&&e===t}function u(t,n,s,a){let o;o="always"===r&&a?"matchProperty":"always"===r?"matchVariable":a?"notMatchProperty":"notMatchVariable",e.report({node:t,messageId:o,data:{name:n,funcName:s}})}function p(e){return"Literal"===e.type&&"string"==typeof e.value}return{VariableDeclarator(e){e.init&&"FunctionExpression"===e.init.type&&"Identifier"===e.id.type&&e.init.id&&c(e.id.name,e.init.id.name)&&u(e,e.id.name,e.init.id.name,!1)},AssignmentExpression(e){if("FunctionExpression"!==e.right.type||e.left.computed&&"Literal"!==e.left.property.type||!o&&function(e){if("MemberExpression"===e.type&&"Identifier"===e.object.type&&"module"===e.object.name){if("Identifier"===e.property.type&&"exports"===e.property.name)return!0;if("Literal"===e.property.type&&"exports"===e.property.value)return!0}return!1}(e.left)||"Identifier"!==e.left.type&&"MemberExpression"!==e.left.type)return;const t="MemberExpression"===e.left.type,r=t?n.getStaticPropertyName(e.left):e.left.name;e.right.id&&a(r)&&c(r,e.right.id.name)&&u(e,r,e.right.id.name,t)},Property(e){if("FunctionExpression"===e.value.type&&e.value.id&&(!e.computed||p(e.key)))if("Identifier"!==e.key.type)p(e.key)&&a(e.key.value,i)&&c(e.key.value,e.value.id.name)&&u(e,e.key.value,e.value.id.name,!0);else{const t=e.value.id.name;let r=e.key.name;if(s&&"value"===r)if(l("Object","defineProperty",e.parent.parent)||l("Reflect","defineProperty",e.parent.parent)){const r=e.parent.parent.arguments[1];p(r)&&c(r.value,t)&&u(e,r.value,t,!0)}else l("Object","defineProperties",e.parent.parent.parent.parent)||l("Object","create",e.parent.parent.parent.parent)?(r=e.parent.parent.key.name,!e.parent.parent.computed&&c(r,t)&&u(e,r,t,!0)):c(r,t)&&u(e,r,t,!0);else c(r,t)&&u(e,r,t,!0)}}}}}},471:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require or disallow named `function` expressions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(e){const t=e.getSourceCode();function r(e){const t=e.parent;return"MethodDefinition"===t.type||"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}function s(r){e.report({node:r,messageId:"unnamed",loc:n.getFunctionHeadLoc(r,t),data:{name:n.getFunctionNameWithKind(r)}})}function a(a){const o=e.getDeclaredVariables(a)[0];if((i=o)&&"FunctionName"===i.defs[0].type&&o.references.length>0)return;var i;const l=Boolean(a.id&&a.id.name),c=function(t){return t.generator&&e.options.length>1&&e.options[1].generators?e.options[1].generators:e.options[0]||"always"}(a);"never"===c?l&&"FunctionDeclaration"!==a.type&&function(r){e.report({node:r,messageId:"named",loc:n.getFunctionHeadLoc(r,t),data:{name:n.getFunctionNameWithKind(r)}})}(a):"as-needed"===c?l||function(e){const t=e.parent;return r(e)||"VariableDeclarator"===t.type&&"Identifier"===t.id.type&&t.init===e||"Property"===t.type&&t.value===e||"AssignmentExpression"===t.type&&"Identifier"===t.left.type&&t.right===e||"AssignmentPattern"===t.type&&"Identifier"===t.left.type&&t.right===e}(a)||s(a):l||r(a)||s(a)}return{"FunctionExpression:exit":a,"ExportDefaultDeclaration > FunctionDeclaration":a}}}},32581:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce the consistent use of either `function` declarations or expressions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].allowArrowFunctions,n="declaration"===t,s=[],a={FunctionDeclaration(t){s.push(!1),n||"ExportDefaultDeclaration"===t.parent.type||e.report({node:t,messageId:"expression"})},"FunctionDeclaration:exit"(){s.pop()},FunctionExpression(t){s.push(!1),n&&"VariableDeclarator"===t.parent.type&&e.report({node:t.parent,messageId:"declaration"})},"FunctionExpression:exit"(){s.pop()},ThisExpression(){s.length>0&&(s[s.length-1]=!0)}};return r||(a.ArrowFunctionExpression=function(){s.push(!1)},a["ArrowFunctionExpression:exit"]=function(t){const r=s.pop();n&&!r&&"VariableDeclarator"===t.parent.type&&e.report({node:t.parent,messageId:"declaration"})}),a}}},5976:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"enforce line breaks between arguments of a function call",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(e){const t=e.getSourceCode(),r={messageId:"unexpectedLineBreak",check:(e,t)=>e.loc.end.line!==t.loc.start.line,createFix:(e,t)=>r=>r.replaceTextRange([t.range[1],e.range[0]]," ")},n={messageId:"missingLineBreak",check:(e,t)=>e.loc.end.line===t.loc.start.line,createFix:(e,t)=>r=>r.replaceTextRange([t.range[1],e.range[0]],"\n")};function s(r,n){for(let s=1;s{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent line breaks inside function parentheses",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"multiline",s="multiline"===r,a="multiline-arguments"===r,o="consistent"===r;let i;function l(e,t){return a&&1===e.length?t:s||a?e.some(((t,r)=>r!==e.length-1&&t.loc.end.line!==e[r+1].loc.start.line)):o?t:e.length>=i}return i="object"==typeof r?r.minItems:"always"===r?0:"never"===r?1/0:null,{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](r){const s=function(e){switch(e.type){case"NewExpression":if(!(e.arguments.length||n.isOpeningParenToken(t.getLastToken(e,{skip:1}))&&n.isClosingParenToken(t.getLastToken(e))))return null;case"CallExpression":return{leftParen:t.getTokenAfter(e.callee,n.isOpeningParenToken),rightParen:t.getLastToken(e)};case"FunctionDeclaration":case"FunctionExpression":{const r=t.getFirstToken(e,n.isOpeningParenToken);return{leftParen:r,rightParen:e.params.length?t.getTokenAfter(e.params[e.params.length-1],n.isClosingParenToken):t.getTokenAfter(r)}}case"ArrowFunctionExpression":{const r=t.getFirstToken(e,{skip:e.async?1:0});return n.isOpeningParenToken(r)?{leftParen:r,rightParen:t.getTokenBefore(e.body,n.isClosingParenToken)}:null}case"ImportExpression":return{leftParen:t.getFirstToken(e,1),rightParen:t.getLastToken(e)};default:throw new TypeError(`unexpected node with type ${e.type}`)}}(r);let o;o="ImportExpression"===r.type?[r.source]:n.isFunction(r)?r.params:r.arguments,s&&(function(r,s){const a=r.leftParen,o=r.rightParen,i=t.getTokenAfter(a),c=t.getTokenBefore(o),u=!n.isTokenOnSameLine(a,i),p=!n.isTokenOnSameLine(c,o),f=l(s,u);u&&!f?e.report({node:a,messageId:"unexpectedAfter",fix:e=>t.getText().slice(a.range[1],i.range[0]).trim()?null:e.removeRange([a.range[1],i.range[0]])}):!u&&f&&e.report({node:a,messageId:"expectedAfter",fix:e=>e.insertTextAfter(a,"\n")}),p&&!f?e.report({node:o,messageId:"unexpectedBefore",fix:e=>t.getText().slice(c.range[1],o.range[0]).trim()?null:e.removeRange([c.range[1],o.range[0]])}):!p&&f&&e.report({node:o,messageId:"expectedBefore",fix:e=>e.insertTextBefore(o,"\n")})}(s,o),a&&function(r,s){const a=r.leftParen,o=t.getTokenAfter(a),i=l(s,!n.isTokenOnSameLine(a,o));for(let t=0;t<=s.length-2;t++){const r=s[t],n=s[t+1];r.loc.end.line===n.loc.start.line&&i&&e.report({node:r,messageId:"expectedBetween",fix:e=>e.insertTextBefore(n,"\n")})}}(s,o))}}}}},82683:e=>{"use strict";const t={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing around `*` operators in generator functions",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:t,anonymous:t,method:t},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const t={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function r(e,r){return e?"string"==typeof e?t[e]:Object.assign({},r,e):r}const n=function(e){const n=r(e,t.before);return{named:r(e.named,n),anonymous:r(e.anonymous,n),method:r(e.method,n)}}(e.options[0]||{}),s=e.getSourceCode();function a(e){return"*"===e.value&&"Punctuator"===e.type}function o(t,r,s,a){if(!!(a.range[0]-s.range[1])!==n[t][r]){const i="*"===s.value,l=n[t][r],c=i?s:a,u=`${l?"missing":"unexpected"}${o=r,o[0].toUpperCase()+o.slice(1)}`;e.report({node:c,messageId:u,fix:e=>l?i?e.insertTextAfter(c," "):e.insertTextBefore(c," "):e.removeRange([s.range[1],a.range[0]])})}var o}function i(e){if(!e.generator)return;const t=function(e){return s.getFirstToken(e.parent.method||"MethodDefinition"===e.parent.type?e.parent:e,a)}(e),r=s.getTokenBefore(t),n=s.getTokenAfter(t);let i="named";"MethodDefinition"===e.parent.type||"Property"===e.parent.type&&e.parent.method?i="method":e.id||(i="anonymous"),"method"===i&&t===s.getFirstToken(e.parent)||o(i,"before",r,t),o(i,"after",t,n)}return{FunctionDeclaration:i,FunctionExpression:i}}}},73861:(e,t,r)=>{"use strict";const n=r(48411),s=/^(?:Arrow)?FunctionExpression$/u;function a(e){return e.reachable}e.exports={meta:{type:"problem",docs:{description:"enforce `return` statements in getters",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(e){const t=e.options[0]||{allowImplicit:!1},r=e.getSourceCode();let o={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function i(t){o.shouldCheck&&o.codePath.currentSegments.some(a)&&e.report({node:t,loc:n.getFunctionHeadLoc(t,r),messageId:o.hasReturn?"expectedAlways":"expected",data:{name:n.getFunctionNameWithKind(o.node)}})}function l(e){const t=e.parent;if(s.test(e.type)&&"BlockStatement"===e.body.type){if("get"===t.kind)return!0;if("Property"===t.type&&"get"===n.getStaticPropertyName(t)&&"ObjectExpression"===t.parent.type){if("CallExpression"===t.parent.parent.type&&"defineProperty"===n.getStaticPropertyName(t.parent.parent.callee))return!0;if("Property"===t.parent.parent.type&&"ObjectExpression"===t.parent.parent.parent.type&&"CallExpression"===t.parent.parent.parent.parent.type&&"defineProperties"===n.getStaticPropertyName(t.parent.parent.parent.parent.callee))return!0}}return!1}return{onCodePathStart(e,t){o={upper:o,codePath:e,hasReturn:!1,shouldCheck:l(t),node:t}},onCodePathEnd(){o=o.upper},ReturnStatement(r){o.shouldCheck&&(o.hasReturn=!0,t.allowImplicit||r.argument||e.report({node:r,messageId:"expected",data:{name:n.getFunctionNameWithKind(o.node)}}))},"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}}},72135:e=>{"use strict";const t=["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"];e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require `require()` calls to be placed at top-level module scope",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create:e=>({CallExpression(r){const n=e.getScope();"require"!==r.callee.name||function(e,t){const r=function(e,t){const r=e.references.filter((e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]));return 1===r.length?r[0]:null}(e,t);return r&&r.resolved&&r.resolved.defs.length>0}(n,r.callee)||e.getAncestors().every((e=>t.indexOf(e.type)>-1))||e.report({node:r,messageId:"unexpected"})}})}},80286:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return"get"===e.kind||"set"===e.kind}e.exports={meta:{type:"suggestion",docs:{description:"require grouped accessor pairs in object literals and classes",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(e){const t=e.options[0]||"anyOrder",r=e.getSourceCode();function a(t,s,a){e.report({node:a,messageId:t,loc:n.getFunctionHeadLoc(a.value,r),data:{formerName:n.getFunctionNameWithKind(s.value),latterName:n.getFunctionNameWithKind(a.value)}})}function o(e){const t=n.getStaticPropertyName(e);return{key:null!==t?t:r.getTokens(e.key),getters:"get"===e.kind?[e]:[],setters:"set"===e.kind?[e]:[]}}function i(e,t){const r=e.find((e=>{return r=e.key,n=t.key,"string"==typeof r&&"string"==typeof n?r===n:!(!Array.isArray(r)||!Array.isArray(n))&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r1?a("notGrouped",c,u):("getBeforeSet"===t&&i>l||"setBeforeGet"===t&&i"Property"===e.type))},ClassBody(e){l(e.body,(e=>"MethodDefinition"===e.type&&!e.static)),l(e.body,(e=>"MethodDefinition"===e.type&&e.static))}}}}},66764:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require `for-in` loops to include an `if` statement",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create:e=>({ForInStatement(t){const r=t.body;if("EmptyStatement"!==r.type&&"IfStatement"!==r.type&&!("BlockStatement"===r.type&&0===r.body.length||"BlockStatement"===r.type&&1===r.body.length&&"IfStatement"===r.body[0].type)){if("BlockStatement"===r.type&&r.body.length>=1&&"IfStatement"===r.body[0].type){const e=r.body[0];if("ContinueStatement"===e.consequent.type)return;if("BlockStatement"===e.consequent.type&&1===e.consequent.body.length&&"ContinueStatement"===e.consequent.body[0].type)return}e.report({node:t,messageId:"wrap"})}}})}},87417:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"require error handling in callbacks",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(e){const t=e.options[0]||"err";function r(r){const n=e.getScope().variables.filter((e=>e.defs[0]&&"Parameter"===e.defs[0].type))[0];var s;n&&(s=n.name,"^"===t[0]?new RegExp(t,"u").test(s):s===t)&&0===n.references.length&&e.report({node:r,messageId:"expected"})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression:r}}}},36401:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"disallow specified identifiers",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(e){const t=new Set(e.options),r=new Set;let n;return{Program(){n=e.getScope()},Identifier(s){var a;a=s.name,t.has(a)&&function(e){const t=e.parent;return"MemberExpression"!==t.type||t.property!==e||t.computed?!("CallExpression"===t.type||"NewExpression"===t.type||function(e){const t=e.parent;return"ImportSpecifier"===t.type&&t.imported!==t.local&&t.imported===e||"ExportSpecifier"===t.type&&t.parent.source&&t.local!==t.exported&&t.local===e}(e)||function(e){const t=e.parent;return!t.computed&&"Property"===t.type&&"ObjectPattern"===t.parent.type&&t.value!==e&&t.key===e}(e)||function(e){const t=n.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e)&&!function(e){const t=e.parent;return"Property"===t.type&&"ObjectExpression"===t.parent.type&&t.shorthand}(e)):function(e){const t=e.parent;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"RestElement"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"AssignmentPattern"===t.type&&t.left===e}(t)}(s)&&function(t){r.has(t)||(e.report({node:t,messageId:"restricted",data:{name:t.name}}),r.add(t))}(s)}}}}},14295:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow specified identifiers",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(e){const t=new Set(e.options),r=new Set;let n;return{Program(){n=e.getScope()},Identifier(s){var a;a=s.name,t.has(a)&&function(e){const t=e.parent;return"MemberExpression"!==t.type||t.property!==e||t.computed?!("CallExpression"===t.type||"NewExpression"===t.type||function(e){const t=e.parent;return"ImportSpecifier"===t.type&&t.imported!==t.local&&t.imported===e||"ExportSpecifier"===t.type&&t.parent.source&&t.local!==t.exported&&t.local===e}(e)||function(e){const t=e.parent;return!t.computed&&"Property"===t.type&&"ObjectPattern"===t.parent.type&&t.value!==e&&t.key===e}(e)||function(e){const t=n.set.get(e.name);return t&&0===t.defs.length&&t.references.some((t=>t.identifier===e))}(e)&&!function(e){const t=e.parent;return"Property"===t.type&&"ObjectExpression"===t.parent.type&&t.shorthand}(e)):function(e){const t=e.parent;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"RestElement"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"AssignmentPattern"===t.type&&t.left===e}(t)}(s)&&function(t){r.has(t)||(e.report({node:t,messageId:"restricted",data:{name:t.name}}),r.add(t))}(s)}}}}},17408:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce minimum and maximum identifier lengths",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer",default:2},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}})."}},create(e){const t=e.options[0]||{},r=void 0!==t.min?t.min:2,n=void 0!==t.max?t.max:1/0,s="never"!==t.properties,a=new Set(t.exceptions),o=(t.exceptionPatterns||[]).map((e=>new RegExp(e,"u"))),i=new Set,l={MemberExpression:s&&function(e){return!e.computed&&(e.parent.left===e&&"AssignmentExpression"===e.parent.type||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.parent.left===e.parent.parent)},AssignmentPattern:(e,t)=>e.left===t,VariableDeclarator:(e,t)=>e.id===t,Property:(e,t)=>"ObjectPattern"===e.parent.type?e.value!==e.key&&e.value===t||e.value===e.key&&e.key===t&&s:s&&!e.computed&&e.key===t,ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{Identifier(t){const s=t.name,c=t.parent,u=s.lengthn;if(!u&&!p||a.has(s)||function(e){return o.some((t=>t.test(e)))}(s))return;const f=l[c.type];!f||i.has(t)||!0!==f&&!f(c,t)||(i.add(t),e.report({node:t,messageId:u?"tooShort":"tooLong",data:{name:s,min:r,max:n}}))}}}}},32667:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require identifiers to match a specified regular expression",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean",default:!1},onlyDeclarations:{type:"boolean",default:!1},ignoreDestructuring:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'."}},create(e){const t=e.options[0]||"^.+$",r=new RegExp(t,"u"),n=e.options[1]||{},s=!!n.properties,a=!!n.onlyDeclarations,o=!!n.ignoreDestructuring,i=new Map,l=new Set(["CallExpression","NewExpression"]),c=new Set(["FunctionDeclaration","VariableDeclarator"]),u=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function p(e){return!r.test(e)}function f(e,t){return(!a||c.has(e.type))&&!l.has(e.type)&&p(t)}function d(r){i.has(r)||(e.report({node:r,messageId:"notMatch",data:{name:r.name,pattern:t}}),i.set(r,!0))}return{Identifier(e){const t=e.name,r=e.parent,n="MemberExpression"===r.type?r.parent:r;if("MemberExpression"===r.type){if(!s)return;"Identifier"===r.object.type&&r.object.name===t||"AssignmentExpression"===n.type&&"MemberExpression"===n.left.type&&n.left.property.name===e.name?p(t)&&d(e):"AssignmentExpression"===n.type&&"MemberExpression"!==n.right.type&&p(t)&&d(e)}else if("Property"===r.type||"AssignmentPattern"===r.type){if(r.parent&&"ObjectPattern"===r.parent.type){r.shorthand&&r.value.left&&p(t)&&d(e);const n=r.key.name===r.value.name;if(!n&&r.key===e)return;!r.value.name||!p(t)||n&&o||d(e)}if(!s||o&&function(e){let{parent:t}=e;for(;t;){if("ObjectPattern"===t.type)return!0;t=t.parent}return!1}(e))return;r.right!==e&&f(n,t)&&d(e)}else u.has(r.type)?r.local&&r.local.name===e.name&&p(t)&&d(e):f(n,t)&&d(e)}}}}},88092:(e,t,r)=>{"use strict";const{isCommentToken:n,isNotOpeningParenToken:s}=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce the location of arrow function bodies",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"beside";return{ArrowFunctionExpression:a=>function(a){if("BlockStatement"===a.body.type)return;const o=t.getTokenBefore(a.body,s),i=t.getTokenAfter(o);o.loc.end.line===i.loc.start.line&&"below"===r?e.report({node:i,messageId:"expected",fix:e=>e.insertTextBefore(i,"\n")}):o.loc.end.line!==i.loc.start.line&&"beside"===r&&e.report({node:i,messageId:"unexpected",fix:e=>t.getFirstTokenBetween(o,i,{includeComments:!0,filter:n})?null:e.replaceTextRange([o.range[1],i.range[0]]," ")})}(a)}}}},9163:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent indentation",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/indent-legacy"},deprecated:!0,replacedBy:["indent"],fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){const t=null;let r="space",s=4;const a={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:t,body:1},FunctionExpression:{parameters:t,body:1},CallExpression:{arguments:t},ArrayExpression:1,ObjectExpression:1},o=e.getSourceCode();if(e.options.length&&("tab"===e.options[0]?(s=1,r="tab"):"number"==typeof e.options[0]&&(s=e.options[0],r="space"),e.options[1])){const t=e.options[1];a.SwitchCase=t.SwitchCase||0;const r=t.VariableDeclarator;"number"==typeof r?a.VariableDeclarator={var:r,let:r,const:r}:"object"==typeof r&&Object.assign(a.VariableDeclarator,r),"number"==typeof t.outerIIFEBody&&(a.outerIIFEBody=t.outerIIFEBody),"number"==typeof t.MemberExpression&&(a.MemberExpression=t.MemberExpression),"object"==typeof t.FunctionDeclaration&&Object.assign(a.FunctionDeclaration,t.FunctionDeclaration),"object"==typeof t.FunctionExpression&&Object.assign(a.FunctionExpression,t.FunctionExpression),"object"==typeof t.CallExpression&&Object.assign(a.CallExpression,t.CallExpression),"number"!=typeof t.ArrayExpression&&"string"!=typeof t.ArrayExpression||(a.ArrayExpression=t.ArrayExpression),"number"!=typeof t.ObjectExpression&&"string"!=typeof t.ObjectExpression||(a.ObjectExpression=t.ObjectExpression)}const i={};function l(e,t,n){const s="space"+(1===t?"":"s"),a="tab"+(1===n?"":"s");let o;return o=t>0&&n>0?`${t} ${s} and ${n} ${a}`:t>0?"space"===r?t:`${t} ${s}`:n>0?"tab"===r?n:`${n} ${a}`:"0",{expected:`${e} ${r}${1===e?"":"s"}`,actual:o}}function c(t,n,s,a,o,i){if(s&&a)return;const c=("space"===r?" ":"\t").repeat(n),u=i?[t.range[1]-t.loc.end.column,t.range[1]-t.loc.end.column+s+a]:[t.range[0]-t.loc.start.column,t.range[0]-t.loc.start.column+s+a];e.report({node:t,loc:o,messageId:"expected",data:l(n,s,a),fix:e=>e.replaceTextRange(u,c)})}function u(e,t){const n=t?o.getLastToken(e):o.getFirstToken(e),s=o.getText(n,n.loc.start.column).split(""),a=s.slice(0,s.findIndex((e=>" "!==e&&"\t"!==e))),i=a.filter((e=>" "===e)).length,l=a.filter((e=>"\t"===e)).length;return{space:i,tab:l,goodChar:"space"===r?i:l,badChar:"space"===r?l:i}}function p(e,t){const r=!0===t?o.getLastToken(e,1):o.getTokenBefore(e);return(!0===t?e.loc.end.line:e.loc.start.line)!==(r?r.loc.end.line:-1)}function f(e,t){const r=u(e,!1);"ArrayExpression"===e.type||"ObjectExpression"===e.type||r.goodChar===t&&0===r.badChar||!p(e)||c(e,t,r.space,r.tab),"IfStatement"===e.type&&e.alternate&&(f(o.getTokenBefore(e.alternate),t),p(e.alternate)||f(e.alternate,t)),"TryStatement"===e.type&&e.handler&&f(o.getFirstToken(e.handler),t),"TryStatement"===e.type&&e.finalizer&&f(o.getTokenBefore(e.finalizer),t),"DoWhileStatement"===e.type&&f(o.getTokenAfter(e.body),t)}function d(e,t){e.forEach((e=>f(e,t)))}function h(e,t){const r=o.getLastToken(e),n=u(r,!0);n.goodChar===t&&0===n.badChar||!p(e,!0)||c(e,t,n.space,n.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}function m(e,t,r){let n=e.parent;const s=new Set(r||["Program"]);for(;n.type!==t&&!s.has(n.type)&&"Program"!==n.type;)n=n.parent;return n.type===t?n:null}function g(e){return m(e,"VariableDeclarator")}function y(e,t){return t&&t.parent.loc.start.line===e.loc.start.line&&t.parent.declarations.length>1}function x(e){const t=o.getLastToken(e);return e.loc.start.line===t.loc.end.line}function b(e){if(x(e))return;let t,r,n="ArrayExpression"===e.type?e.elements:e.properties;n=n.filter((e=>null!==e));const o=g(e);if(p(e)){const r=e.parent;if(t=u(r).goodChar,!(o&&o.loc.start.line===e.loc.start.line||"VariableDeclarator"===r.type&&o!==o.parent.declarations[0]))if("VariableDeclarator"===r.type&&o.loc.start.line===r.loc.start.line)t+=s*a.VariableDeclarator[o.parent.kind];else if("ObjectExpression"===r.type||"ArrayExpression"===r.type){const n="ObjectExpression"===e.parent.type?e.parent.properties:e.parent.elements;n[0]&&n[0].loc.start.line===r.loc.start.line&&n[0].loc.end.line!==r.loc.start.line||("number"==typeof a[r.type]?t+=a[r.type]*s:t=n[0].loc.start.column)}else"CallExpression"===r.type||"NewExpression"===r.type?"number"==typeof a.CallExpression.arguments?t+=a.CallExpression.arguments*s:"first"===a.CallExpression.arguments?-1!==r.arguments.indexOf(e)&&(t=r.arguments[0].loc.start.column):t+=s:"LogicalExpression"!==r.type&&"ArrowFunctionExpression"!==r.type||(t+=s);!function(e,t){const r=u(e,!1);r.goodChar===t&&0===r.badChar||!p(e)||c(e,t,r.space,r.tab,{line:e.loc.start.line,column:e.loc.start.column})}(e,t)}else t=u(e).goodChar;r="first"===a[e.type]?n.length?n[0].loc.start.column:0:t+s*a[e.type],y(e,o)&&(r+=s*a.VariableDeclarator[o.parent.kind]),d(n,r),n.length>0&&n[n.length-1].loc.end.line===e.loc.end.line||h(e,t+(y(e,o)?a.VariableDeclarator[o.parent.kind]*s:0))}function E(e){if(x(e))return;if(e.parent&&("FunctionExpression"===e.parent.type||"FunctionDeclaration"===e.parent.type||"ArrowFunctionExpression"===e.parent.type))return void function(e){const t=e.parent;let r;if(r=!t.parent||"Property"!==t.parent.type&&"ArrayExpression"!==t.parent.type?u(t).goodChar:u(t,!1).goodChar,"CallExpression"===t.parent.type){const n=t.parent;"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type?n&&n.loc.start.line=2&&t.arguments[1]===e&&t.arguments[0].loc.end.line>t.arguments[0].loc.start.line}(t)&&n.callee.loc.start.line===n.callee.loc.end.line&&!p(t)&&(r=u(n).goodChar)}let n=s;null!==a.outerIIFEBody&&function(e){const t=e.parent;let r=t.parent;if("CallExpression"!==t.type||t.callee!==e)return!1;for(;"UnaryExpression"===r.type&&("!"===r.operator||"~"===r.operator||"+"===r.operator||"-"===r.operator)||"AssignmentExpression"===r.type||"LogicalExpression"===r.type||"SequenceExpression"===r.type||"VariableDeclarator"===r.type;)r=r.parent;return("ExpressionStatement"===r.type||"VariableDeclaration"===r.type)&&r.parent&&"Program"===r.parent.type}(t)?n=a.outerIIFEBody*s:"FunctionExpression"===t.type?n=a.FunctionExpression.body*s:"FunctionDeclaration"===t.type&&(n=a.FunctionDeclaration.body*s),r+=n;const o=g(e);o&&y(e,o)&&(r+=s*a.VariableDeclarator[o.parent.kind]),e.body.length>0&&d(e.body,r),h(e,r-n)}(e);let t,r=[];t=e.parent&&-1!==["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"].indexOf(e.parent.type)&&function(e){return"BlockStatement"===e.type||"ClassBody"===e.type||e.body&&"BlockStatement"===e.body.type||e.consequent&&"BlockStatement"===e.consequent.type}(e)?u(e.parent).goodChar:e.parent&&"CatchClause"===e.parent.type?u(e.parent.parent).goodChar:u(e).goodChar,r="IfStatement"===e.type&&"BlockStatement"!==e.consequent.type?[e.consequent]:Array.isArray(e.body)?e.body:[e.body],r.length>0&&d(r,t+s),"BlockStatement"===e.type&&h(e,t)}function v(e){"BlockStatement"!==e.body.type&&E(e)}function S(e,t){const r="SwitchStatement"===e.type?e:e.parent,n=void 0===t?u(r).goodChar:t;let o;return i[r.loc.start.line]?i[r.loc.start.line]:(o=r.cases.length>0&&0===a.SwitchCase?n:n+s*a.SwitchCase,i[r.loc.start.line]=o,o)}return{Program(e){e.body.length>0&&d(e.body,u(e).goodChar)},ClassBody:E,BlockStatement:E,WhileStatement:v,ForStatement:v,ForInStatement:v,ForOfStatement:v,DoWhileStatement:v,IfStatement(e){"BlockStatement"!==e.consequent.type&&e.consequent.loc.start.line>e.loc.start.line&&E(e)},VariableDeclaration(e){e.declarations[e.declarations.length-1].loc.start.line>e.declarations[0].loc.start.line&&function(e){const t=function(e){return e.declarations.reduce(((t,r)=>{const n=t[t.length-1];return(r.loc.start.line!==e.loc.start.line&&!n||n&&n.loc.start.line!==r.loc.start.line)&&t.push(r),t}),[])}(e),r=u(e).goodChar,n=t[t.length-1],i=r+s*a.VariableDeclarator[e.kind];if(d(t,i),o.getLastToken(e).loc.end.line<=n.loc.end.line)return;const l=o.getTokenBefore(n);","===l.value?h(e,u(l).goodChar):h(e,i-s)}(e)},ObjectExpression(e){b(e)},ArrayExpression(e){b(e)},MemberExpression(e){if(void 0===a.MemberExpression)return;if(x(e))return;if(m(e,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"]))return;if(m(e,"AssignmentExpression",["FunctionExpression"]))return;const t=u(e).goodChar+s*a.MemberExpression,r=[e.property],n=o.getTokenBefore(e.property);"Punctuator"===n.type&&"."===n.value&&r.push(n),d(r,t)},SwitchStatement(e){const t=u(e).goodChar,r=S(e,t);d(e.cases,r),h(e,t)},SwitchCase(e){if(x(e))return;const t=S(e);d(e.consequent,t+s)},FunctionDeclaration(e){x(e)||("first"===a.FunctionDeclaration.parameters&&e.params.length?d(e.params.slice(1),e.params[0].loc.start.column):null!==a.FunctionDeclaration.parameters&&d(e.params,u(e).goodChar+s*a.FunctionDeclaration.parameters))},FunctionExpression(e){x(e)||("first"===a.FunctionExpression.parameters&&e.params.length?d(e.params.slice(1),e.params[0].loc.start.column):null!==a.FunctionExpression.parameters&&d(e.params,u(e).goodChar+s*a.FunctionExpression.parameters))},ReturnStatement(e){if(x(e))return;const t=u(e).goodChar;!function(e){const t=o.getText(e).replace(o.getText(e.argument),"");return/^return\s*?\(\s*?\);*?/u.test(t)}(e)?f(e,t):function(e,t){const r=o.getLastToken(e,n.isClosingParenToken);if(o.getText(r,r.loc.start.column).slice(0,-1).trim())return;const s=u(r,!0);s.goodChar!==t&&c(e,t,s.space,s.tab,{line:r.loc.start.line,column:r.loc.start.column},!0)}(e,t)},CallExpression(e){x(e)||("first"===a.CallExpression.arguments&&e.arguments.length?d(e.arguments.slice(1),e.arguments[0].loc.start.column):null!==a.CallExpression.arguments&&d(e.arguments,u(e).goodChar+s*a.CallExpression.arguments))}}}}},74555:(e,t,r)=>{"use strict";const n=r(44977),s=r(48411),a=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","Program","Property","RestElement","ReturnStatement","SequenceExpression","SpreadElement","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]);class o{constructor(){this._rbTree=n()}insert(e,t){const r=this._rbTree.find(e);r.valid?this._rbTree=r.update(t):this._rbTree=this._rbTree.insert(e,t)}findLe(e){const t=this._rbTree.le(e);return t&&{key:t.key,value:t.value}}deleteRange(e,t){if(e===t)return;const r=this._rbTree.ge(e);for(;r.valid&&r.key(t.has(r.loc.start.line)||t.set(r.loc.start.line,r),!t.has(r.loc.end.line)&&e.text.slice(r.range[1]-r.loc.end.column,r.range[1]).trim()&&t.set(r.loc.end.line,r),t)),new Map)}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}}class l{constructor(e,t,r){this._tokenInfo=e,this._indentSize=t,this._indentType=r,this._tree=new o,this._tree.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(e){return this._tree.findLe(e.range[0]).value}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,r){return this.setDesiredOffsets(e.range,t,r)}setDesiredOffsets(e,t,r,n){const s={offset:r,from:t,force:n},a=this._tree.findLe(e[1]).value,o=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],i=o&&this._getOffsetDescriptor(t);this._tree.deleteRange(e[0]+1,e[1]),this._tree.insert(e[0],s),o&&(this._tree.insert(t.range[0],i),this._tree.insert(t.range[1],s)),this._tree.insert(e[1],a)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){const t=this._lockedFirstTokens.get(e);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(t))+this._indentType.repeat(t.loc.start.column-this._tokenInfo.getFirstTokenOfLine(t).loc.start.column))}else{const t=this._getOffsetDescriptor(e),r=!t.from||t.from.loc.start.line!==e.loc.start.line||/^\s*?\n/u.test(e.value)||t.force?t.offset*this._indentSize:0;this._desiredIndentCache.set(e,(t.from?this.getDesiredIndent(t.from):"")+this._indentType.repeat(r))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}}const c={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};e.exports={meta:{type:"layout",docs:{description:"enforce consistent indentation",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[c,{type:"object",properties:{var:c,let:c,const:c},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:c,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:c,body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:c},additionalProperties:!1},ArrayExpression:c,ObjectExpression:c,ImportDeclaration:c,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(e){let t="space",r=4;const n={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};e.options.length&&("tab"===e.options[0]?(r=1,t="tab"):(r=e.options[0],t="space"),e.options[1]&&(Object.assign(n,e.options[1]),"number"!=typeof n.VariableDeclarator&&"first"!==n.VariableDeclarator||(n.VariableDeclarator={var:n.VariableDeclarator,let:n.VariableDeclarator,const:n.VariableDeclarator})));const o=e.getSourceCode(),c=new i(o),u=new l(c,r,"space"===t?" ":"\t"),p=new WeakSet;function f(e,r,n){let s;return s=r>0?"space"===t?r:`${r} ${"space"+(1===r?"":"s")}`:n>0?"tab"===t?n:`${n} ${"tab"+(1===n?"":"s")}`:"0",{expected:`${e} ${t}${1===e?"":"s"}`,actual:s}}function d(e,t){const r=c.getTokenIndent(e);return r===t||r.includes(" ")&&r.includes("\t")}function h(e,t,r,n){function a(e){let r=o.getTokenBefore(e);for(;s.isOpeningParenToken(r)&&r!==t;)r=o.getTokenBefore(r);return o.getTokenAfter(r)}u.setDesiredOffsets([t.range[1],r.range[0]],t,"number"==typeof n?n:1),u.setDesiredOffset(r,t,0),"first"===n&&e.length&&!e[0]||e.forEach(((r,i)=>{if(r&&("off"===n&&u.ignoreToken(a(r)),0!==i))if("first"===n&&c.isFirstTokenOfLine(a(r)))u.matchOffsetOf(a(e[0]),a(r));else{const n=e[i-1],l=n&&a(n),c=n&&o.getLastToken(n);n&&c.loc.end.line-function(e){const t=e.match(/\s*$/u)[0].match(s.createGlobalLinebreakMatcher());return null===t?0:t.length}(c.value)>t.loc.end.line&&u.setDesiredOffsets([n.range[1],r.range[1]],l,0)}}))}function m(e){if("BlockStatement"!==e.type){const t=o.getTokenBefore(e,s.isNotOpeningParenToken);let r=o.getFirstToken(e),n=o.getLastToken(e);for(;s.isOpeningParenToken(o.getTokenBefore(r))&&s.isClosingParenToken(o.getTokenAfter(n));)r=o.getTokenBefore(r),n=o.getTokenAfter(n);u.setDesiredOffsets([r.range[0],n.range[1]],t,1);const a=o.getLastToken(e);"EmptyStatement"!==e.type&&s.isSemicolonToken(a)&&u.setDesiredOffset(a,t,0)}}function g(e){let t;t=e.arguments.length?o.getFirstTokenBetween(e.callee,e.arguments[0],s.isOpeningParenToken):o.getLastToken(e,1);const r=o.getLastToken(e);if(p.add(t),p.add(r),e.optional){const r=o.getTokenAfter(e.callee,s.isQuestionDotToken),n=o.getTokensBetween(e.callee,r,{filter:s.isClosingParenToken}).length,a=n?o.getTokenBefore(e.callee,{skip:n-1}):o.getFirstToken(e.callee),i=o.getTokenBefore(r),l=i.loc.end.line===t.loc.start.line?i:a;u.setDesiredOffset(r,l,1)}const a="TaggedTemplateExpression"===e.callee.type?o.getFirstToken(e.callee.quasi):t,i=o.getTokenBefore(a);u.setDesiredOffset(t,i,0),h(e.arguments,t,r,n.CallExpression.arguments)}function y(e){const t=new Set(o.getTokens(e,{includeComments:!0}));t.forEach((e=>{if(!t.has(u.getFirstDependency(e))){const t=c.getFirstTokenOfLine(e);e===t?u.ignoreToken(e):u.setDesiredOffset(e,t,0)}}))}function x(e,t){const r=e.loc.end.line,n=t.loc.start.line;if(r===n||r===n-1)return!1;for(let e=r+1;ee))||t,s.isClosingBracketToken);h(e.elements,t,r,n.ArrayExpression)},"ObjectExpression, ObjectPattern"(e){const t=o.getFirstToken(e),r=o.getTokenAfter(e.properties.length?e.properties[e.properties.length-1]:t,s.isClosingBraceToken);h(e.properties,t,r,n.ObjectExpression)},ArrowFunctionExpression(e){const t=o.getFirstToken(e,{skip:e.async?1:0});if(s.isOpeningParenToken(t)){const r=t,a=o.getTokenBefore(e.body,s.isClosingParenToken);p.add(r),p.add(a),h(e.params,r,a,n.FunctionExpression.parameters)}m(e.body)},AssignmentExpression(e){const t=o.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator));u.setDesiredOffsets([t.range[0],e.range[1]],o.getLastToken(e.left),1),u.ignoreToken(t),u.ignoreToken(o.getTokenAfter(t))},"BinaryExpression, LogicalExpression"(e){const t=o.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),r=o.getTokenAfter(t);u.ignoreToken(t),u.ignoreToken(r),u.setDesiredOffset(r,t,0)},"BlockStatement, ClassBody"(e){let t;t=e.parent&&function(e){if(!e.parent||"CallExpression"!==e.parent.type||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;"UnaryExpression"===t.type&&["!","~","+","-"].indexOf(t.operator)>-1||"AssignmentExpression"===t.type||"LogicalExpression"===t.type||"SequenceExpression"===t.type||"VariableDeclarator"===t.type;)t=t.parent;return("ExpressionStatement"===t.type||"VariableDeclaration"===t.type)&&"Program"===t.parent.type}(e.parent)?n.outerIIFEBody:!e.parent||"FunctionExpression"!==e.parent.type&&"ArrowFunctionExpression"!==e.parent.type?e.parent&&"FunctionDeclaration"===e.parent.type?n.FunctionDeclaration.body:1:n.FunctionExpression.body,s.STATEMENT_LIST_PARENTS.has(e.parent.type)||u.setDesiredOffset(o.getFirstToken(e),o.getFirstToken(e.parent),0),h(e.body,o.getFirstToken(e),o.getLastToken(e),t)},CallExpression:g,"ClassDeclaration[superClass], ClassExpression[superClass]"(e){const t=o.getFirstToken(e),r=o.getTokenBefore(e.superClass,s.isNotOpeningParenToken);u.setDesiredOffsets([r.range[0],e.body.range[0]],t,1)},ConditionalExpression(e){const t=o.getFirstToken(e);if(!n.flatTernaryExpressions||!s.isTokenOnSameLine(e.test,e.consequent)||function(e,t){let r=t;for(;r.parent&&!r.parent.type.endsWith("Statement")&&!r.parent.type.endsWith("Declaration");)r=r.parent;return r=r.parent,!r||r.loc.start.line===e.loc.start.line}(t,e)){const r=o.getFirstTokenBetween(e.test,e.consequent,(e=>"Punctuator"===e.type&&"?"===e.value)),s=o.getFirstTokenBetween(e.consequent,e.alternate,(e=>"Punctuator"===e.type&&":"===e.value)),a=o.getTokenAfter(r),i=o.getTokenBefore(s),l=o.getTokenAfter(s);u.setDesiredOffset(r,t,1),u.setDesiredOffset(s,t,1),u.setDesiredOffset(a,t,"Punctuator"===a.type&&n.offsetTernaryExpressions?2:1),i.loc.end.line===l.loc.start.line?u.setDesiredOffset(l,a,0):u.setDesiredOffset(l,t,"Punctuator"===l.type&&n.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement":e=>m(e.body),ExportNamedDeclaration(e){if(null===e.declaration){const t=o.getLastToken(e,s.isClosingBraceToken);h(e.specifiers,o.getFirstToken(e,{skip:1}),t,1),e.source&&u.setDesiredOffsets([t.range[1],e.range[1]],o.getFirstToken(e),1)}},ForStatement(e){const t=o.getFirstToken(e,1);e.init&&u.setDesiredOffsets(e.init.range,t,1),e.test&&u.setDesiredOffsets(e.test.range,t,1),e.update&&u.setDesiredOffsets(e.update.range,t,1),m(e.body)},"FunctionDeclaration, FunctionExpression"(e){const t=o.getTokenBefore(e.body),r=o.getTokenBefore(e.params.length?e.params[0]:t);p.add(r),p.add(t),h(e.params,r,t,n[e.type].parameters)},IfStatement(e){m(e.consequent),e.alternate&&"IfStatement"!==e.alternate.type&&m(e.alternate)},ImportDeclaration(e){if(e.specifiers.some((e=>"ImportSpecifier"===e.type))){const t=o.getFirstToken(e,s.isOpeningBraceToken),r=o.getLastToken(e,s.isClosingBraceToken);h(e.specifiers.filter((e=>"ImportSpecifier"===e.type)),t,r,n.ImportDeclaration)}const t=o.getLastToken(e,(e=>"Identifier"===e.type&&"from"===e.value)),r=o.getLastToken(e,(e=>"String"===e.type)),a=o.getLastToken(e,(e=>"Punctuator"===e.type&&";"===e.value));if(t){const n=a&&a.range[1]===r.range[1]?e.range[1]:r.range[1];u.setDesiredOffsets([t.range[0],n],o.getFirstToken(e),1)}},ImportExpression(e){const t=o.getFirstToken(e,1),r=o.getLastToken(e);p.add(t),p.add(r),u.setDesiredOffset(t,o.getTokenBefore(t),0),h([e.source],t,r,n.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(e){const t="MetaProperty"===e.type?e.meta:e.object,r=o.getFirstTokenBetween(t,e.property,s.isNotClosingParenToken),a=o.getTokenAfter(r),i=o.getTokensBetween(t,e.property,{filter:s.isClosingParenToken}).length,l=i?o.getTokenBefore(t,{skip:i-1}):o.getFirstToken(t),c=o.getTokenBefore(r),p=e.computed?r:a;e.computed&&(u.setDesiredOffset(o.getLastToken(e),r,0),u.setDesiredOffsets(e.property.range,r,1));const f=c.loc.end.line===p.loc.start.line?c:l;"number"==typeof n.MemberExpression?(u.setDesiredOffset(r,f,n.MemberExpression),u.setDesiredOffset(a,e.computed?r:f,n.MemberExpression)):(u.ignoreToken(r),u.ignoreToken(a),u.setDesiredOffset(r,f,0),u.setDesiredOffset(a,r,0))},NewExpression(e){(e.arguments.length>0||s.isClosingParenToken(o.getLastToken(e))&&s.isOpeningParenToken(o.getLastToken(e,1)))&&g(e)},Property(e){if(!e.shorthand&&!e.method&&"init"===e.kind){const t=o.getFirstTokenBetween(e.key,e.value,s.isColonToken);u.ignoreToken(o.getTokenAfter(t))}},SwitchStatement(e){const t=o.getTokenAfter(e.discriminant,s.isOpeningBraceToken),r=o.getLastToken(e);u.setDesiredOffsets([t.range[1],r.range[0]],t,n.SwitchCase),e.cases.length&&o.getTokensBetween(e.cases[e.cases.length-1],r,{includeComments:!0,filter:s.isCommentToken}).forEach((e=>u.ignoreToken(e)))},SwitchCase(e){if(1!==e.consequent.length||"BlockStatement"!==e.consequent[0].type){const t=o.getFirstToken(e),r=o.getTokenAfter(e);u.setDesiredOffsets([t.range[1],r.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach(((t,r)=>{const n=e.quasis[r],s=e.quasis[r+1],a=n.loc.start.line===n.loc.end.line?o.getFirstToken(n):null;u.setDesiredOffsets([n.range[1],s.range[0]],a,1),u.setDesiredOffset(o.getFirstToken(s),a,0)}))},VariableDeclaration(e){let t=Object.prototype.hasOwnProperty.call(n.VariableDeclarator,e.kind)?n.VariableDeclarator[e.kind]:1;const r=o.getFirstToken(e),a=o.getLastToken(e);if("first"===n.VariableDeclarator[e.kind]){if(e.declarations.length>1)return void h(e.declarations,r,a,"first");t=1}e.declarations[e.declarations.length-1].loc.start.line>e.loc.start.line?u.setDesiredOffsets(e.range,r,t,!0):u.setDesiredOffsets(e.range,r,t),s.isSemicolonToken(a)&&u.ignoreToken(a)},VariableDeclarator(e){if(e.init){const t=o.getTokenBefore(e.init,s.isNotOpeningParenToken),r=o.getTokenAfter(t);u.ignoreToken(t),u.ignoreToken(r),u.setDesiredOffsets([r.range[0],e.range[1]],t,1),u.setDesiredOffset(t,o.getLastToken(e.id),0)}},"JSXAttribute[value]"(e){const t=o.getFirstTokenBetween(e.name,e.value,(e=>"Punctuator"===e.type&&"="===e.value));u.setDesiredOffsets([t.range[0],e.value.range[1]],o.getFirstToken(e.name),1)},JSXElement(e){e.closingElement&&h(e.children,o.getFirstToken(e.openingElement),o.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){const t=o.getFirstToken(e);let r;e.selfClosing?(r=o.getLastToken(e,{skip:1}),u.setDesiredOffset(o.getLastToken(e),r,0)):r=o.getLastToken(e),u.setDesiredOffsets(e.name.range,o.getFirstToken(e)),h(e.attributes,t,r,1)},JSXClosingElement(e){const t=o.getFirstToken(e);u.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){const t=o.getFirstToken(e.openingFragment),r=o.getFirstToken(e.closingFragment);h(e.children,t,r,1)},JSXOpeningFragment(e){const t=o.getFirstToken(e),r=o.getLastToken(e);u.setDesiredOffsets(e.range,t,1),u.matchOffsetOf(t,r)},JSXClosingFragment(e){const t=o.getFirstToken(e),r=o.getLastToken(e,{skip:1}),n=o.getLastToken(e),a=s.isTokenOnSameLine(r,n)?r:n;u.setDesiredOffsets(e.range,t,1),u.matchOffsetOf(t,a)},JSXExpressionContainer(e){const t=o.getFirstToken(e),r=o.getLastToken(e);u.setDesiredOffsets([t.range[1],r.range[0]],t,1)},JSXSpreadAttribute(e){const t=o.getFirstToken(e),r=o.getLastToken(e);u.setDesiredOffsets([t.range[1],r.range[0]],t,1)},"*"(e){const t=o.getFirstToken(e);t&&!b.has(t)&&u.setDesiredOffsets(e.range,t,0)}},v=[],S={};for(const[e,t]of Object.entries(E))S[e]=e=>v.push({listener:t,node:e});const C=new Set;function A(e){C.add(e),b.add(o.getFirstToken(e))}const k=n.ignoredNodes.reduce(((e,t)=>Object.assign(e,{[t]:A})),{});return Object.assign(S,k,{"*:exit"(e){a.has(e.type)||A(e)},"Program:exit"(){n.ignoreComments&&o.getAllComments().forEach((e=>u.ignoreToken(e))),v.filter((e=>!C.has(e.node))).forEach((e=>e.listener(e.node))),C.forEach(y),function(e){const t=[],r=[];e.forEach((e=>{s.isOpeningParenToken(e)?t.push(e):s.isClosingParenToken(e)&&r.unshift({left:t.pop(),right:e})})),r.forEach((e=>{const t=e.left,r=e.right;if(!p.has(t)&&!p.has(r)){const e=new Set(o.getTokensBetween(t,r));e.forEach((r=>{e.has(u.getFirstDependency(r))||u.setDesiredOffset(r,t,1)}))}u.setDesiredOffset(r,t,0)}))}(o.ast.tokens);const t=o.ast.comments.reduce(((e,t)=>{const r=o.getTokenBefore(t,{includeComments:!0});return e.set(t,e.has(r)?e.get(r):r)}),new WeakMap);o.lines.forEach(((r,n)=>{const a=n+1;if(!c.firstTokensByLineNumber.has(a))return;const i=c.firstTokensByLineNumber.get(a);if(i.loc.start.line===a){if(s.isCommentToken(i)){const e=t.get(i),r=e?o.getTokenAfter(e):o.ast.tokens[0],n=e&&!x(e,i),a=r&&!x(i,r);if(r&&s.isSemicolonToken(r)&&!s.isTokenOnSameLine(i,r)&&u.setDesiredOffset(i,r,0),n&&d(i,u.getDesiredIndent(e))||a&&d(i,u.getDesiredIndent(r)))return}d(i,u.getDesiredIndent(i))||function(t,r){const n=Array.from(c.getTokenIndent(t)),s=n.filter((e=>" "===e)).length,a=n.filter((e=>"\t"===e)).length;e.report({node:t,messageId:"wrongIndentation",data:f(r.length,s,a),loc:{start:{line:t.loc.start.line,column:0},end:{line:t.loc.start.line,column:t.loc.start.column}},fix(e){const n=[t.range[0]-t.loc.start.column,t.range[0]],s=r;return e.replaceTextRange(n,s)}})}(i,u.getDesiredIndent(i))}}))}})}}},29514:(e,t,r)=>{"use strict";const{LazyLoadingRuleMap:n}=r(76588);e.exports=new n(Object.entries({"accessor-pairs":()=>r(85716),"array-bracket-newline":()=>r(82825),"array-bracket-spacing":()=>r(73481),"array-callback-return":()=>r(31373),"array-element-newline":()=>r(68109),"arrow-body-style":()=>r(94071),"arrow-parens":()=>r(66660),"arrow-spacing":()=>r(77987),"block-scoped-var":()=>r(12993),"block-spacing":()=>r(27215),"brace-style":()=>r(12955),"callback-return":()=>r(93954),camelcase:()=>r(27291),"capitalized-comments":()=>r(88810),"class-methods-use-this":()=>r(21314),"comma-dangle":()=>r(38260),"comma-spacing":()=>r(31582),"comma-style":()=>r(30249),complexity:()=>r(9704),"computed-property-spacing":()=>r(94659),"consistent-return":()=>r(81730),"consistent-this":()=>r(40125),"constructor-super":()=>r(93854),curly:()=>r(29031),"default-case":()=>r(1250),"default-case-last":()=>r(65052),"default-param-last":()=>r(41968),"dot-location":()=>r(28805),"dot-notation":()=>r(15896),"eol-last":()=>r(12606),eqeqeq:()=>r(95493),"for-direction":()=>r(41417),"func-call-spacing":()=>r(38256),"func-name-matching":()=>r(73705),"func-names":()=>r(471),"func-style":()=>r(32581),"function-call-argument-newline":()=>r(5976),"function-paren-newline":()=>r(57994),"generator-star-spacing":()=>r(82683),"getter-return":()=>r(73861),"global-require":()=>r(72135),"grouped-accessor-pairs":()=>r(80286),"guard-for-in":()=>r(66764),"handle-callback-err":()=>r(87417),"id-blacklist":()=>r(36401),"id-denylist":()=>r(14295),"id-length":()=>r(17408),"id-match":()=>r(32667),"implicit-arrow-linebreak":()=>r(88092),indent:()=>r(74555),"indent-legacy":()=>r(9163),"init-declarations":()=>r(85767),"jsx-quotes":()=>r(42731),"key-spacing":()=>r(86300),"keyword-spacing":()=>r(76498),"line-comment-position":()=>r(64979),"linebreak-style":()=>r(20225),"lines-around-comment":()=>r(53388),"lines-around-directive":()=>r(53643),"lines-between-class-members":()=>r(24411),"max-classes-per-file":()=>r(55330),"max-depth":()=>r(88868),"max-len":()=>r(70232),"max-lines":()=>r(96250),"max-lines-per-function":()=>r(68560),"max-nested-callbacks":()=>r(70359),"max-params":()=>r(506),"max-statements":()=>r(53093),"max-statements-per-line":()=>r(11212),"multiline-comment-style":()=>r(57146),"multiline-ternary":()=>r(8139),"new-cap":()=>r(35155),"new-parens":()=>r(77449),"newline-after-var":()=>r(54441),"newline-before-return":()=>r(33035),"newline-per-chained-call":()=>r(76167),"no-alert":()=>r(91239),"no-array-constructor":()=>r(97400),"no-async-promise-executor":()=>r(71365),"no-await-in-loop":()=>r(16217),"no-bitwise":()=>r(42937),"no-buffer-constructor":()=>r(11265),"no-caller":()=>r(23692),"no-case-declarations":()=>r(72605),"no-catch-shadow":()=>r(69506),"no-class-assign":()=>r(94988),"no-compare-neg-zero":()=>r(94530),"no-cond-assign":()=>r(21146),"no-confusing-arrow":()=>r(73885),"no-console":()=>r(54574),"no-const-assign":()=>r(81118),"no-constant-condition":()=>r(2664),"no-constructor-return":()=>r(14593),"no-continue":()=>r(46950),"no-control-regex":()=>r(40245),"no-debugger":()=>r(40766),"no-delete-var":()=>r(96619),"no-div-regex":()=>r(75619),"no-dupe-args":()=>r(76344),"no-dupe-class-members":()=>r(3088),"no-dupe-else-if":()=>r(54645),"no-dupe-keys":()=>r(71719),"no-duplicate-case":()=>r(50600),"no-duplicate-imports":()=>r(38373),"no-else-return":()=>r(36232),"no-empty":()=>r(76479),"no-empty-character-class":()=>r(93583),"no-empty-function":()=>r(3026),"no-empty-pattern":()=>r(45213),"no-eq-null":()=>r(76802),"no-eval":()=>r(39400),"no-ex-assign":()=>r(69611),"no-extend-native":()=>r(68883),"no-extra-bind":()=>r(58682),"no-extra-boolean-cast":()=>r(73364),"no-extra-label":()=>r(5026),"no-extra-parens":()=>r(26105),"no-extra-semi":()=>r(59951),"no-fallthrough":()=>r(13409),"no-floating-decimal":()=>r(45554),"no-func-assign":()=>r(83607),"no-global-assign":()=>r(43400),"no-implicit-coercion":()=>r(71114),"no-implicit-globals":()=>r(78939),"no-implied-eval":()=>r(88997),"no-import-assign":()=>r(34916),"no-inline-comments":()=>r(66296),"no-inner-declarations":()=>r(11245),"no-invalid-regexp":()=>r(30545),"no-invalid-this":()=>r(42678),"no-irregular-whitespace":()=>r(94162),"no-iterator":()=>r(42648),"no-label-var":()=>r(287),"no-labels":()=>r(23354),"no-lone-blocks":()=>r(3653),"no-lonely-if":()=>r(63202),"no-loop-func":()=>r(811),"no-loss-of-precision":()=>r(38123),"no-magic-numbers":()=>r(78603),"no-misleading-character-class":()=>r(13232),"no-mixed-operators":()=>r(69928),"no-mixed-requires":()=>r(74331),"no-mixed-spaces-and-tabs":()=>r(11110),"no-multi-assign":()=>r(58526),"no-multi-spaces":()=>r(12222),"no-multi-str":()=>r(83037),"no-multiple-empty-lines":()=>r(41095),"no-native-reassign":()=>r(61673),"no-negated-condition":()=>r(14733),"no-negated-in-lhs":()=>r(85320),"no-nested-ternary":()=>r(66538),"no-new":()=>r(92753),"no-new-func":()=>r(41536),"no-new-object":()=>r(37570),"no-new-require":()=>r(23610),"no-new-symbol":()=>r(22877),"no-new-wrappers":()=>r(17450),"no-nonoctal-decimal-escape":()=>r(85224),"no-obj-calls":()=>r(11877),"no-octal":()=>r(56981),"no-octal-escape":()=>r(87944),"no-param-reassign":()=>r(95776),"no-path-concat":()=>r(55919),"no-plusplus":()=>r(7191),"no-process-env":()=>r(92128),"no-process-exit":()=>r(94317),"no-promise-executor-return":()=>r(53549),"no-proto":()=>r(12910),"no-prototype-builtins":()=>r(21795),"no-redeclare":()=>r(41459),"no-regex-spaces":()=>r(88576),"no-restricted-exports":()=>r(21515),"no-restricted-globals":()=>r(89503),"no-restricted-imports":()=>r(34454),"no-restricted-modules":()=>r(27060),"no-restricted-properties":()=>r(8400),"no-restricted-syntax":()=>r(9052),"no-return-assign":()=>r(4268),"no-return-await":()=>r(28603),"no-script-url":()=>r(72372),"no-self-assign":()=>r(37366),"no-self-compare":()=>r(86472),"no-sequences":()=>r(97783),"no-setter-return":()=>r(3880),"no-shadow":()=>r(64201),"no-shadow-restricted-names":()=>r(26763),"no-spaced-func":()=>r(13810),"no-sparse-arrays":()=>r(11430),"no-sync":()=>r(19271),"no-tabs":()=>r(77169),"no-template-curly-in-string":()=>r(21126),"no-ternary":()=>r(42803),"no-this-before-super":()=>r(86100),"no-throw-literal":()=>r(57548),"no-trailing-spaces":()=>r(70397),"no-undef":()=>r(49299),"no-undef-init":()=>r(14488),"no-undefined":()=>r(39282),"no-underscore-dangle":()=>r(10022),"no-unexpected-multiline":()=>r(58989),"no-unmodified-loop-condition":()=>r(32948),"no-unneeded-ternary":()=>r(26042),"no-unreachable":()=>r(9530),"no-unreachable-loop":()=>r(88231),"no-unsafe-finally":()=>r(12700),"no-unsafe-negation":()=>r(17562),"no-unsafe-optional-chaining":()=>r(37386),"no-unused-expressions":()=>r(25091),"no-unused-labels":()=>r(17349),"no-unused-vars":()=>r(51729),"no-use-before-define":()=>r(49017),"no-useless-backreference":()=>r(38947),"no-useless-call":()=>r(45403),"no-useless-catch":()=>r(37842),"no-useless-computed-key":()=>r(56965),"no-useless-concat":()=>r(612),"no-useless-constructor":()=>r(28830),"no-useless-escape":()=>r(89881),"no-useless-rename":()=>r(38765),"no-useless-return":()=>r(32802),"no-var":()=>r(3597),"no-void":()=>r(9873),"no-warning-comments":()=>r(59393),"no-whitespace-before-property":()=>r(36691),"no-with":()=>r(6819),"nonblock-statement-body-position":()=>r(44909),"object-curly-newline":()=>r(53578),"object-curly-spacing":()=>r(51789),"object-property-newline":()=>r(49518),"object-shorthand":()=>r(74891),"one-var":()=>r(89234),"one-var-declaration-per-line":()=>r(65196),"operator-assignment":()=>r(74964),"operator-linebreak":()=>r(44460),"padded-blocks":()=>r(84637),"padding-line-between-statements":()=>r(2993),"prefer-arrow-callback":()=>r(11142),"prefer-const":()=>r(45904),"prefer-destructuring":()=>r(72477),"prefer-exponentiation-operator":()=>r(67859),"prefer-named-capture-group":()=>r(79494),"prefer-numeric-literals":()=>r(75747),"prefer-object-spread":()=>r(98073),"prefer-promise-reject-errors":()=>r(95799),"prefer-reflect":()=>r(81774),"prefer-regex-literals":()=>r(68880),"prefer-rest-params":()=>r(8222),"prefer-spread":()=>r(42383),"prefer-template":()=>r(25577),"quote-props":()=>r(75228),quotes:()=>r(67384),radix:()=>r(35114),"require-atomic-updates":()=>r(41566),"require-await":()=>r(51950),"require-jsdoc":()=>r(12938),"require-unicode-regexp":()=>r(83808),"require-yield":()=>r(15605),"rest-spread-spacing":()=>r(95179),semi:()=>r(79143),"semi-spacing":()=>r(27792),"semi-style":()=>r(25164),"sort-imports":()=>r(55300),"sort-keys":()=>r(22524),"sort-vars":()=>r(40517),"space-before-blocks":()=>r(34239),"space-before-function-paren":()=>r(71482),"space-in-parens":()=>r(9817),"space-infix-ops":()=>r(7249),"space-unary-ops":()=>r(60440),"spaced-comment":()=>r(43321),strict:()=>r(7634),"switch-colon-spacing":()=>r(1214),"symbol-description":()=>r(56734),"template-curly-spacing":()=>r(38250),"template-tag-spacing":()=>r(52599),"unicode-bom":()=>r(38318),"use-isnan":()=>r(97156),"valid-jsdoc":()=>r(36871),"valid-typeof":()=>r(91910),"vars-on-top":()=>r(32420),"wrap-iife":()=>r(6779),"wrap-regex":()=>r(81865),"yield-star-spacing":()=>r(13353),yoda:()=>r(46373)}))},85767:e=>{"use strict";function t(e){return"ForInStatement"===e.type||"ForOfStatement"===e.type||"ForStatement"===e.type}function r(e){const r=e.parent,n=r.parent;return t(n)?"ForStatement"===n.type?n.init===r:n.left===r:Boolean(e.init)}e.exports={meta:{type:"suggestion",docs:{description:"require or disallow initialization in variable declarations",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(e){const n="always",s=e.options[0]||n,a=e.options[1]||{};return{"VariableDeclaration:exit"(o){const i=o.kind,l=o.declarations;for(let c=0;c{"use strict";const n=r(48411),s={"prefer-double":{quote:'"',description:"singlequote",convert:e=>e.replace(/'/gu,'"')},"prefer-single":{quote:"'",description:"doublequote",convert:e=>e.replace(/"/gu,"'")}};e.exports={meta:{type:"layout",docs:{description:"enforce the consistent use of either double or single quotes in JSX attributes",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(e){const t=e.options[0]||"prefer-double",r=s[t];return{JSXAttribute(t){const s=t.value;s&&n.isStringLiteral(s)&&!function(e){return-1!==e.value.indexOf(r.quote)||n.isSurroundedBy(e.raw,r.quote)}(s)&&e.report({node:s,messageId:"unexpected",data:{description:r.description},fix:e=>e.replaceText(s,r.convert(s.raw))})}}}}},86300:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return e[e.length-1]}function a(e){return e.loc.end.line===e.loc.start.line}function o(e,t){return e.mode=t.mode||"strict",void 0!==t.beforeColon?e.beforeColon=+t.beforeColon:e.beforeColon=0,void 0!==t.afterColon?e.afterColon=+t.afterColon:e.afterColon=1,void 0!==t.align&&("object"==typeof t.align?e.align=t.align:e.align={on:t.align,mode:e.mode,beforeColon:e.beforeColon,afterColon:e.afterColon}),e}e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing between keys and values in object literal properties",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(e){const t=(c={},"object"==typeof(u=e.options[0]||{}).align?(c.align=o({},u.align),c.align.on=u.align.on||"colon",c.align.mode=u.align.mode||"strict",c.multiLine=o({},u.multiLine||u),c.singleLine=o({},u.singleLine||u)):(c.multiLine=o({},u.multiLine||u),c.singleLine=o({},u.singleLine||u),c.multiLine.align&&(c.align={on:c.multiLine.align.on,mode:c.multiLine.align.mode||c.multiLine.mode,beforeColon:c.multiLine.align.beforeColon,afterColon:c.multiLine.align.afterColon})),c),r=t.multiLine,i=t.singleLine,l=t.align||null;var c,u;const p=e.getSourceCode();function f(e){return!(e.method||e.shorthand||"init"!==e.kind||"Property"!==e.type)}function d(e){const t=e.key;return e.computed?p.getText().slice(t.range[0],t.range[1]):n.getStaticPropertyName(e)}function h(t,r,s,a,o){const i=s.length-a,l=(y=t.key,p.getTokenAfter(y,n.isColonToken)),c=p.getTokenBefore(l,{includeComments:!0}),u=p.getTokenAfter(l,{includeComments:!0}),f="key"===r,h=i>0,m=Math.abs(i),g=Array(m+1).join(" ");var y;const x=f?c.loc.end:l.loc.start,b=f?l.loc.start:u.loc.start,E=f?c.loc:u.loc,v=h?{start:x,end:b}:E;if((i&&"strict"===o||i<0&&"minimum"===o||i>0&&!a&&"minimum"===o)&&(!a||(S=s,!n.LINEBREAK_MATCHER.test(S)))){let n;if(h){let e;e=f?[c.range[1],c.range[1]+m]:[u.range[0]-m,u.range[0]],n=function(t){return t.removeRange(e)}}else n=f?function(e){return e.insertTextAfter(c,g)}:function(e){return e.insertTextBefore(u,g)};let s="";s=h?"key"===r?"extraKey":"extraValue":"key"===r?"missingKey":"missingValue",e.report({node:t[r],loc:v,messageId:s,data:{computed:t.computed?"computed ":"",key:d(t)},fix:n})}var S}function m(e){const t=p.getFirstToken(e);return function(e){const t=p.getTokenAfter(e,n.isColonToken);return p.getTokenBefore(t)}(e.key).range[1]-t.range[0]}function g(e){const t=/(\s*):(\s*)/u.exec(p.getText().slice(e.key.range[1],e.value.range[0]));return t?{beforeColon:t[1],afterColon:t[2]}:null}function y(e,t){const r=g(e);r&&(h(e,"key",r.beforeColon,t.beforeColon,t.mode),h(e,"value",r.afterColon,t.afterColon,t.mode))}function x(e,t){const r=e.length;for(let n=0;n{const r=s(e),n=s(r);return!n||function(e,t){const r=e.loc.start.line,n=t.loc.start.line;if(n-r<=1)return!0;const a=p.getCommentsBefore(t);if(a.length&&a[0].loc.start.line-r<=1&&n-s(a).loc.end.line<=1){for(let e=1;e1)return!1;return!0}return!1}(n,t)?r.push(t):e.push([t]),e}),[[]])})(e).forEach((e=>{const t=e.filter(f);t.length>0&&function(e){const[t]=e,r=s(e);return t.loc.start.line===r.loc.end.line}(t)?x(t,r):function(e){const t=e.length,n=e.map(m),s=l.on;let a,o,i,c=Math.max(...n);l&&t>1?(a=l.beforeColon,o=l.afterColon,i=l.mode):(a=r.beforeColon,o=r.afterColon,i=l.mode),c+="colon"===s?a:o;for(let r=0;r{"use strict";const n=r(48411),s=r(21416),a=/^[)\]}>]$/u,o=/^(?:[([{<~!]|\+\+?|--?)$/u,i=/^[)\]}>*]$/u,l=/^[{*]$/u,c=/\$\{$/u,u=/^\}/u,p=/^(?:JSXElement|RegularExpression|String|Template)$/u,f=s.concat(["as","async","await","from","get","let","of","set","yield"]);function d(e){return"Template"===e.type&&c.test(e.value)}function h(e){return"Template"===e.type&&u.test(e.value)}!function(){f.sort();for(let e=1;e(e[t]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},e)),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(e){const t=e.getSourceCode();function r(r,s){const a=t.getTokenBefore(r);a&&(p.test(a.type)||s.test(a.value))&&!d(a)&&n.isTokenOnSameLine(a,r)&&!t.isSpaceBetweenTokens(a,r)&&e.report({loc:r.loc,messageId:"expectedBefore",data:r,fix:e=>e.insertTextBefore(r," ")})}function s(r,s){const a=t.getTokenBefore(r);a&&(p.test(a.type)||s.test(a.value))&&!d(a)&&n.isTokenOnSameLine(a,r)&&t.isSpaceBetweenTokens(a,r)&&e.report({loc:{start:a.loc.end,end:r.loc.start},messageId:"unexpectedBefore",data:r,fix:e=>e.removeRange([a.range[1],r.range[0]])})}function c(r,s){const a=t.getTokenAfter(r);a&&(p.test(a.type)||s.test(a.value))&&!h(a)&&n.isTokenOnSameLine(r,a)&&!t.isSpaceBetweenTokens(r,a)&&e.report({loc:r.loc,messageId:"expectedAfter",data:r,fix:e=>e.insertTextAfter(r," ")})}function u(r,s){const a=t.getTokenAfter(r);a&&(p.test(a.type)||s.test(a.value))&&!h(a)&&n.isTokenOnSameLine(r,a)&&t.isSpaceBetweenTokens(r,a)&&e.report({loc:{start:r.loc.end,end:a.loc.start},messageId:"unexpectedAfter",data:r,fix:e=>e.removeRange([r.range[1],a.range[0]])})}const m=function(e={}){const t=!1!==e.before,n=!1!==e.after,a={before:t?r:s,after:n?c:u},o=e&&e.overrides||{},i=Object.create(null);for(let e=0;e{switch(e.value){case"get":case"set":case"async":return!0;default:return!1}}));if(!r)throw new Error("Failed to find token get, set, or async beside method name");x(r)}}return{DebuggerStatement:b,WithStatement:b,BreakStatement:b,ContinueStatement:b,ReturnStatement:b,ThrowStatement:b,TryStatement:function(e){b(e),b(e.handler),v(e.finalizer)},IfStatement:function(e){b(e),v(e.alternate)},SwitchStatement:b,SwitchCase:b,DoWhileStatement:function(e){b(e),v(e.test)},ForInStatement:function(e){b(e),v(e.right)},ForOfStatement:function(e){e.await?(g(t.getFirstToken(e,0)),y(t.getFirstToken(e,1))):b(e),x(t.getTokenBefore(e.right,n.isNotOpeningParenToken))},ForStatement:b,WhileStatement:b,ClassDeclaration:C,ExportNamedDeclaration:A,ExportDefaultDeclaration:A,ExportAllDeclaration:A,FunctionDeclaration:S,ImportDeclaration:A,VariableDeclaration:b,ArrowFunctionExpression:S,AwaitExpression:function(e){g(t.getFirstToken(e))},ClassExpression:C,FunctionExpression:S,NewExpression:E,Super:E,ThisExpression:E,UnaryExpression:E,YieldExpression:E,ImportNamespaceSpecifier:function(e){g(t.getFirstToken(e,1),i)},MethodDefinition:k,Property:k}}}},64979:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce position of line comments",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(e){const t=e.options[0];let r,s,a=!0;t&&"string"!=typeof t?(r=!t.position||"above"===t.position,s=t.ignorePattern,a=Object.prototype.hasOwnProperty.call(t,"applyDefaultIgnorePatterns")?t.applyDefaultIgnorePatterns:!1!==t.applyDefaultPatterns):r=!t||"above"===t;const o=n.COMMENTS_IGNORE_PATTERN,i=/^\s*falls?\s?through/u,l=new RegExp(s,"u"),c=e.getSourceCode();return{Program(){c.getAllComments().filter((e=>"Line"===e.type)).forEach((t=>{if(a&&(o.test(t.value)||i.test(t.value)))return;if(s&&l.test(t.value))return;const n=c.getTokenBefore(t,{includeComments:!0}),u=n&&n.loc.end.line===t.loc.start.line;r?u&&e.report({node:t,messageId:"above"}):u||e.report({node:t,messageId:"beside"})}))}}}}},20225:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent linebreak style",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(e){const t=e.getSourceCode();function r(e,t){return function(r){return r.replaceTextRange(e,t)}}return{Program:function(s){const a="unix"===(e.options[0]||"unix"),o=a?"\n":"\r\n",i=t.getText(),l=n.createGlobalLinebreakMatcher();let c,u=0;for(;null!==(c=l.exec(i));){if(u++,c[0]===o)continue;const n=c.index,i=[n,n+c[0].length];e.report({node:s,loc:{start:{line:u,column:t.lines[u-1].length},end:{line:u+1,column:0}},messageId:a?"expectedLF":"expectedCRLF",fix:r(i,o)})}}}}}},53388:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require empty lines around comments",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(e){const t=Object.assign({},e.options[0]),r=t.ignorePattern,s=n.COMMENTS_IGNORE_PATTERN,a=new RegExp(r,"u"),o=!1!==t.applyDefaultIgnorePatterns;t.beforeBlockComment=void 0===t.beforeBlockComment||t.beforeBlockComment;const i=e.getSourceCode(),l=i.lines,c=l.length+1,u=i.getAllComments(),p=function(e){const t=[];return e.forEach((e=>{const r=e.loc.start.line,n=e.loc.end.line;t.push(r,n)})),t}(u),f=function(e){return e.map(((e,t)=>({code:e.trim(),num:t+1}))).filter((e=>!e.code)).map((e=>e.num))}(l),d=p.concat(f);function h(e,t){return e.type===t||e.body&&e.body.type===t||e.consequent&&e.consequent.type===t}function m(e){return i.getNodeByRangeIndex(e.range[0])}function g(e,t){const r=m(e);return r&&h(r,t)&&e.loc.start.line-r.loc.start.line==1}function y(e,t){const r=m(e);return r&&h(r,t)&&r.loc.end.line-e.loc.end.line==1}function x(e){return g(e,"ClassBody")}function b(e){return y(e,"ClassBody")}function E(l,u){if(o&&s.test(l.value))return;if(r&&a.test(l.value))return;let p=u.after,f=u.before;const h=l.loc.start.line-1,m=l.loc.end.line+1,E=function(e){let t=e;do{t=i.getTokenBefore(t,{includeComments:!0})}while(t&&n.isCommentToken(t));if(t&&n.isTokenOnSameLine(t,e))return!0;t=e;do{t=i.getTokenAfter(t,{includeComments:!0})}while(t&&n.isCommentToken(t));return!(!t||!n.isTokenOnSameLine(e,t))}(l),v=t.allowBlockStart&&function(e){return g(e,"ClassBody")||g(e,"BlockStatement")||g(e,"SwitchCase")}(l)&&!(!1===t.allowClassStart&&x(l)),S=t.allowBlockEnd&&function(e){return y(e,"ClassBody")||y(e,"BlockStatement")||y(e,"SwitchCase")||y(e,"SwitchStatement")}(l)&&!(!1===t.allowClassEnd&&b(l)),C=t.allowClassStart&&x(l),A=t.allowClassEnd&&b(l),k=t.allowObjectStart&&function(e){return g(e,"ObjectExpression")||g(e,"ObjectPattern")}(l),w=t.allowObjectEnd&&function(e){return y(e,"ObjectExpression")||y(e,"ObjectPattern")}(l),D=t.allowArrayStart&&function(e){return g(e,"ArrayExpression")||g(e,"ArrayPattern")}(l),F=t.allowArrayEnd&&function(e){return y(e,"ArrayExpression")||y(e,"ArrayPattern")}(l),T=v||C||k||D,P=S||A||w||F;if(h<1&&(f=!1),m>=c&&(p=!1),E)return;const I=i.getTokenBefore(l,{includeComments:!0}),_=i.getTokenAfter(l,{includeComments:!0});if(!T&&f&&!d.includes(h)&&(!n.isCommentToken(I)||!n.isTokenOnSameLine(I,l))){const t=l.range[0]-l.loc.start.column,r=[t,t];e.report({node:l,messageId:"before",fix:e=>e.insertTextBeforeRange(r,"\n")})}P||!p||d.includes(m)||n.isCommentToken(_)&&n.isTokenOnSameLine(l,_)||e.report({node:l,messageId:"after",fix:e=>e.insertTextAfter(l,"\n")})}return{Program(){u.forEach((e=>{"Line"===e.type?(t.beforeLineComment||t.afterLineComment)&&E(e,{after:t.afterLineComment,before:t.beforeLineComment}):"Block"===e.type&&(t.beforeBlockComment||t.afterBlockComment)&&E(e,{after:t.afterBlockComment,before:t.beforeBlockComment})}))}}}}},53643:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow newlines around directives",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode(),r=e.options[0]||"always",s="string"==typeof r?r:r.before,a="string"==typeof r?r:r.after;function o(e){const r=t.getTokenBefore(e,{includeComments:!0}),n=r?r.loc.end.line:0;return e.loc.start.line-n>=2}function i(e){const r=t.getLastToken(e),s=t.getTokenBefore(r);return n.isSemicolonToken(r)&&r.loc.start.line>s.loc.end.line?s:r}function l(e){const r=i(e);return t.getTokenAfter(r,{includeComments:!0}).loc.start.line-r.loc.end.line>=2}function c(t,r,n){e.report({node:t,messageId:n?"expected":"unexpected",data:{value:t.expression.value,location:r},fix(e){const s=i(t);return n?"before"===r?e.insertTextBefore(t,"\n"):e.insertTextAfter(s,"\n"):e.removeRange("before"===r?[t.range[0]-1,t.range[0]]:[s.range[1],s.range[1]+1])}})}function u(e){const r=n.getDirectivePrologue(e);if(!r.length)return;const i=r[0],u=t.getCommentsBefore(i);u.length?("always"!==s||o(i)||c(i,"before",!0),"never"===s&&o(i)&&c(i,"before",!1)):"Program"===e.type&&"never"===s&&!u.length&&o(i)&&c(i,"before",!1);const p=r[r.length-1],f="Program"===e.type?e.body:e.body.body;(p!==f[f.length-1]||p.trailingComments)&&("always"!==a||l(p)||c(p,"after",!0),"never"===a&&l(p)&&c(p,"after",!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}}},24411:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow an empty line between class members",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/lines-between-class-members"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(e){const t=[];t[0]=e.options[0]||"always",t[1]=e.options[1]||{exceptAfterSingleLine:!1};const r=e.getSourceCode();function s(e,t,n){const a=r.getTokenAfter(e,{includeComments:!0});return a!==t&&a.loc.start.line-e.loc.end.line<=n?s(a,t,n):e}function a(e,t,n){const s=r.getTokenBefore(e,{includeComments:!0});return s!==t&&e.loc.start.line-s.loc.end.line<=n?a(s,t,n):e}return{ClassBody(o){const i=o.body;for(let o=0;o1,y=(l=h,c=m,0!==r.getTokensBetween(l,c,{includeComments:!0}).length),x=s(p,f,0);("always"===t[0]&&!d&&!g||"never"===t[0]&&g)&&e.report({node:i[o+1],messageId:g?"never":"always",fix:e=>y?null:g?e.replaceTextRange([h.range[1],m.range[0]],"\n"):e.insertTextAfter(x,"\n")})}var l,c}}}}},55330:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of classes per file",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/max-classes-per-file"},schema:[{type:"integer",minimum:1}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(e){const t=e.options[0]||1;let r=0;return{Program(){r=0},"Program:exit"(n){r>t&&e.report({node:n,messageId:"maximumExceeded",data:{classCount:r,max:t}})},"ClassDeclaration, ClassExpression"(){r++}}}}},88868:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that blocks can be nested",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(e){const t=[],r=e.options[0];let n=4;function s(){t.push(0)}function a(){t.pop()}function o(r){const s=++t[t.length-1];s>n&&e.report({node:r,messageId:"tooDeeply",data:{depth:s,maxDepth:n}})}function i(){t[t.length-1]--}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(n=r.maximum||r.max),"number"==typeof r&&(n=r),{Program:s,FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s,IfStatement(e){"IfStatement"!==e.parent.type&&o(e)},SwitchStatement:o,TryStatement:o,DoWhileStatement:o,WhileStatement:o,WithStatement:o,ForStatement:o,ForInStatement:o,ForOfStatement:o,"IfStatement:exit":i,"SwitchStatement:exit":i,"TryStatement:exit":i,"DoWhileStatement:exit":i,"WhileStatement:exit":i,"WithStatement:exit":i,"ForStatement:exit":i,"ForInStatement:exit":i,"ForOfStatement:exit":i,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,"Program:exit":a}}}},70232:e=>{"use strict";const t={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},r={anyOf:[t,{type:"integer",minimum:0}]};e.exports={meta:{type:"layout",docs:{description:"enforce a maximum line length",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-len"},schema:[r,r,t],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(e){const t=/[^:/?#]:\/\/[^?#]/u,r=e.getSourceCode(),n=Object.assign({},e.options[e.options.length-1]);"number"==typeof e.options[0]&&(n.code=e.options[0]),"number"==typeof e.options[1]&&(n.tabWidth=e.options[1]);const s="number"==typeof n.code?n.code:80,a="number"==typeof n.tabWidth?n.tabWidth:4,o=!!n.ignoreComments,i=!!n.ignoreStrings,l=!!n.ignoreTemplateLiterals,c=!!n.ignoreRegExpLiterals,u=!!n.ignoreTrailingComments||!!n.ignoreComments,p=!!n.ignoreUrls,f=n.comments;let d=n.ignorePattern||null;function h(e,t,r){return r&&r.loc.start.line===t&&t<=r.loc.end.line&&(r.loc.end.line>t||r.loc.end.column===e.length)}function m(e,t){return e.slice(0,t.loc.start.column).replace(/\s+$/u,"")}function g(e,t){for(let a=t.loc.start.line;a<=t.loc.end.line;++a)r=e,n=a,s=t,Array.isArray(r[n])||(r[n]=[]),r[n].push(s);var r,n,s;return e}return d&&(d=new RegExp(d,"u")),{Program:function(n){const y=r.lines,x=o||f||u?function(){const e=[];return r.getAllComments().forEach((t=>{const n=r.getNodeByRangeIndex(t.range[0]);!function(e){if(!e||!e.parent||"JSXEmptyExpression"!==e.type||"JSXExpressionContainer"!==e.parent.type)return!1;const t=e.parent;return t.loc.start.line===t.loc.end.line}(n)?e.push(t):e[e.length-1]!==n.parent&&e.push(n.parent)})),e}():[];let b=0;const E=r.ast.tokens.filter((e=>"String"===e.type||"JSXText"===e.type&&"JSXAttribute"===r.getNodeByRangeIndex(e.range[0]-1).type)).reduce(g,{}),v=r.ast.tokens.filter((e=>"Template"===e.type)).reduce(g,{}),S=r.ast.tokens.filter((e=>"RegularExpression"===e.type)).reduce(g,{});y.forEach(((r,g)=>{const y=g+1;let C,A=!1;if(bt||s.line===t&&s.column===e.length)}(r,y,e))A=!0,C=r;else if(u&&h(r,y,e)){C=m(r,e);let t=b;for(;h(C,y,x[--t]);)C=m(C,x[t])}else C=r}else C=r;if(d&&d.test(C)||p&&t.test(C)||i&&E[y]||l&&v[y]||c&&S[y])return;const k=function(e,t){let r=0;return e.replace(/\t/gu,((e,n)=>{r+=t-(t?(n+r)%t:0)-1})),Array.from(e).length+r}(C,a),w=A&&f;if(A&&o)return;const D={start:{line:y,column:0},end:{line:y,column:C.length}};w?k>f&&e.report({node:n,loc:D,messageId:"maxComment",data:{lineLength:k,maxCommentLength:f}}):k>s&&e.report({node:n,loc:D,messageId:"max",data:{lineLength:k,maxLength:s}})}))}}}}},68560:(e,t,r)=>{"use strict";const n=r(48411),{upperCaseFirst:s}=r(98151);e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines of code in a function",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-lines-per-function"},schema:[{oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]}],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(e){const t=e.getSourceCode(),r=t.lines,a=e.options[0];let o=50,i=!1,l=!1,c=!1;"object"==typeof a?(o="number"==typeof a.max?a.max:50,i=!!a.skipComments,l=!!a.skipBlankLines,c=!!a.IIFEs):"number"==typeof a&&(o=a);const u=function(e){const t=new Map;return e.forEach((e=>{for(let r=e.loc.start.line;r<=e.loc.end.line;r++)t.set(r,e)})),t}(t.getAllComments());function p(e,t,r){const n=r.loc.start,s=r.loc.end,a=n.line===t&&!e.slice(0,n.column).trim(),o=s.line===t&&!e.slice(s.column).trim();return r&&(n.linet||o)}function f(t){const a=function(e){return!!e.parent&&e===e.parent.value&&("MethodDefinition"===e.parent.type||"Property"===e.parent.type&&(!0===e.parent.method||"get"===e.parent.kind||"set"===e.parent.kind))}(t)?t.parent:t;if(!c&&function(e){return("FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type)&&e.parent&&"CallExpression"===e.parent.type&&e.parent.callee===e}(a))return;let f=0;for(let e=a.loc.start.line-1;eo){const r=s(n.getFunctionNameWithKind(t));e.report({node:a,messageId:"exceed",data:{name:r,lineCount:f,maxLines:o}})}}return{FunctionDeclaration:f,FunctionExpression:f,ArrowFunctionExpression:f}}}},96250:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of lines per file",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=300;"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"max")?r=t.max:"number"==typeof t&&(r=t);const s=t&&t.skipComments,a=t&&t.skipBlankLines,o=e.getSourceCode();function i(e){return e&&("Block"===e.type||"Line"===e.type)}return{"Program:exit"(){let t=o.lines.map(((e,t)=>({lineNumber:t+1,text:e})));if(t.length>1&&""===t[t.length-1].text&&t.pop(),a&&(t=t.filter((e=>""!==e.text.trim()))),s){const e=function(e,t){const r=e.map((e=>function(e){let t,r=e.loc.start.line,s=e.loc.end.line;t=e;do{t=o.getTokenBefore(t,{includeComments:!0})}while(i(t));t&&n.isTokenOnSameLine(t,e)&&(r+=1),t=e;do{t=o.getTokenAfter(t,{includeComments:!0})}while(i(t));return t&&n.isTokenOnSameLine(e,t)&&(s-=1),r<=s?function(e,t){return[...Array(t-e).keys()].map((t=>t+e))}(r,s+1):[]}(e)));return[].concat(...r)}(o.getAllComments());t=t.filter((t=>!e.includes(t.lineNumber)))}if(t.length>r){const n={start:{line:t[r].lineNumber,column:0},end:{line:o.lines.length,column:o.lines[o.lines.length-1].length}};e.report({loc:n,messageId:"exceed",data:{max:r,actual:t.length}})}}}}}},70359:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum depth that callbacks can be nested",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(e){const t=e.options[0];let r=10;"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"maximum")||Object.prototype.hasOwnProperty.call(t,"max"))?r=t.maximum||t.max:"number"==typeof t&&(r=t);const n=[];function s(t){if("CallExpression"===t.parent.type&&n.push(t),n.length>r){const s={num:n.length,max:r};e.report({node:t,messageId:"exceed",data:s})}}function a(){n.pop()}return{ArrowFunctionExpression:s,"ArrowFunctionExpression:exit":a,FunctionExpression:s,"FunctionExpression:exit":a}}}},506:(e,t,r)=>{"use strict";const n=r(48411),{upperCaseFirst:s}=r(98151);e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of parameters in function definitions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(e){const t=e.getSourceCode(),r=e.options[0];let a=3;function o(r){r.params.length>a&&e.report({loc:n.getFunctionHeadLoc(r,t),node:r,messageId:"exceed",data:{name:s(n.getFunctionNameWithKind(r)),count:r.params.length,max:a}})}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))&&(a=r.maximum||r.max),"number"==typeof r&&(a=r),{FunctionDeclaration:o,ArrowFunctionExpression:o,FunctionExpression:o}}}},11212:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce a maximum number of statements allowed per line",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},s=void 0!==r.max?r.max:1;let a,o=0,i=0;const l=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function c(){a&&e.report({node:a,messageId:"exceed",data:{numberOfStatementsOnThisLine:i,maxStatementsPerLine:s,statements:1===i?"statement":"statements"}}),a=null}function u(e){const t=e.loc.start.line;l.test(e.parent.type)&&e.parent.alternate!==e||(t===o?i+=1:(c(),i=1,o=t),i===s+1&&(a=a||e))}function p(e){const r=function(e){return t.getLastToken(e,n.isNotSemicolonToken)}(e).loc.end.line;r!==o&&(c(),i=1,o=r)}return{BreakStatement:u,ClassDeclaration:u,ContinueStatement:u,DebuggerStatement:u,DoWhileStatement:u,ExpressionStatement:u,ForInStatement:u,ForOfStatement:u,ForStatement:u,FunctionDeclaration:u,IfStatement:u,ImportDeclaration:u,LabeledStatement:u,ReturnStatement:u,SwitchStatement:u,ThrowStatement:u,TryStatement:u,VariableDeclaration:u,WhileStatement:u,WithStatement:u,ExportNamedDeclaration:u,ExportDefaultDeclaration:u,ExportAllDeclaration:u,"BreakStatement:exit":p,"ClassDeclaration:exit":p,"ContinueStatement:exit":p,"DebuggerStatement:exit":p,"DoWhileStatement:exit":p,"ExpressionStatement:exit":p,"ForInStatement:exit":p,"ForOfStatement:exit":p,"ForStatement:exit":p,"FunctionDeclaration:exit":p,"IfStatement:exit":p,"ImportDeclaration:exit":p,"LabeledStatement:exit":p,"ReturnStatement:exit":p,"SwitchStatement:exit":p,"ThrowStatement:exit":p,"TryStatement:exit":p,"VariableDeclaration:exit":p,"WhileStatement:exit":p,"WithStatement:exit":p,"ExportNamedDeclaration:exit":p,"ExportDefaultDeclaration:exit":p,"ExportAllDeclaration:exit":p,"Program:exit":c}}}},53093:(e,t,r)=>{"use strict";const n=r(48411),{upperCaseFirst:s}=r(98151);e.exports={meta:{type:"suggestion",docs:{description:"enforce a maximum number of statements allowed in function blocks",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(e){const t=[],r=e.options[0],a=e.options[1]&&e.options[1].ignoreTopLevelFunctions||!1,o=[];let i=10;function l(t,r,a){if(r>a){const o=s(n.getFunctionNameWithKind(t));e.report({node:t,messageId:"exceed",data:{name:o,count:r,max:a}})}}function c(){t.push(0)}function u(e){const r=t.pop();a&&0===t.length?o.push({node:e,count:r}):l(e,r,i)}return"object"==typeof r&&(Object.prototype.hasOwnProperty.call(r,"maximum")||Object.prototype.hasOwnProperty.call(r,"max"))?i=r.maximum||r.max:"number"==typeof r&&(i=r),{FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c,BlockStatement:function(e){t[t.length-1]+=e.body.length},"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u,"Program:exit"(){1!==o.length&&o.forEach((e=>{const t=e.count;l(e.node,t,i)}))}}}}},57146:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"enforce a particular style for multiline comments",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/multiline-comment-style"},fixable:"whitespace",schema:[{enum:["starred-block","separate-lines","bare-block"]}],messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"starred-block";function s([e]){if("Block"!==e.type)return!1;const t=e.value.split(n.LINEBREAK_MATCHER);return t.length>0&&t.every(((e,r)=>(0===r||r===t.length-1?/^\s*$/u:/^\s*\*/u).test(e)))}function a([e]){if("Block"!==e.type)return!1;const t=e.value.split(n.LINEBREAK_MATCHER);return/^\*\s*$/u.test(t[0])&&t.slice(1,-1).every((e=>/^\s* /u.test(e)))&&/^\s*$/u.test(t[t.length-1])}function o(e){const[r]=e;return"Line"===r.type?function(e){const t=e.map((({value:e})=>e)).filter((e=>e.trim().length)).every((e=>e.startsWith(" ")));return e.map((({value:e})=>t?e.replace(/^ /u,""):e))}(e):s(e)?function(e){const t=e.value.split(n.LINEBREAK_MATCHER).filter(((e,t,r)=>!(0===t||t===r.length-1))).map((e=>e.replace(/^\s*$/u,""))),r=t.map((e=>e.replace(/\s*\*/u,""))).filter((e=>e.trim().length)).every((e=>e.startsWith(" ")));return t.map((e=>e.replace(r?/\s*\* ?/u:/\s*\*/u,"")))}(r):function(e){const r=e.value.split(n.LINEBREAK_MATCHER).map((e=>e.replace(/^\s*$/u,""))),s=`${t.text.slice(e.range[0]-e.loc.start.column,e.range[0])} `;let a="";for(const[e,t]of r.entries()){if(!t.trim().length||0===e)continue;const[,r]=t.match(/^(\s*\*?\s*)/u);if(r.lengtha.length&&(a=e)}}return r.map((e=>{const t=e.match(/^(\s*\*?\s*)(.*)/u),[,r,n]=t;return r.length>s.length?`${r.slice(s.length-(a.length+r.length))}${n}`:r.lengthe.includes("*/"))))if(r.length>1)e.report({loc:{start:s.loc.start,end:r[r.length-1].loc.end},messageId:"expectedBlock",fix(e){const t=[s.range[0],r[r.length-1].range[1]];return a.some((e=>e.startsWith("/")))?null:e.replaceTextRange(t,function(e,t){const r=i(e);return`/*\n${t.map((e=>`${r} * ${e}`)).join("\n")}\n${r} */`}(s,a))}});else{const r=s.value.split(n.LINEBREAK_MATCHER),a=`${i(s)} *`;if(!/^\*?\s*$/u.test(r[0])){const t=s.value.startsWith("*")?s.range[0]+1:s.range[0];e.report({loc:{start:s.loc.start,end:{line:s.loc.start.line,column:s.loc.start.column+2}},messageId:"startNewline",fix:e=>e.insertTextAfterRange([t,t+2],`\n${a}`)})}/^\s*$/u.test(r[r.length-1])||e.report({loc:{start:{line:s.loc.end.line,column:s.loc.end.column-2},end:s.loc.end},messageId:"endNewline",fix:e=>e.replaceTextRange([s.range[1]-2,s.range[1]],`\n${a}/`)});for(let n=s.loc.start.line+1;n<=s.loc.end.line;n++){const o=t.lines[n-1],i=/^\s*\*/u.test(o)?"alignment":"missingStar";o.startsWith(a)||e.report({loc:{start:{line:n,column:0},end:{line:n,column:o.length}},messageId:i,fix(e){const l=t.getIndexFromLoc({line:n,column:0});if("alignment"===i){const[,t=""]=o.match(/^(\s*\*)/u)||[],r=l+t.length;return e.replaceTextRange([l,r],a)}const[,c=""]=o.match(/^(\s*)/u)||[],u=l+c.length;let p;for(const[e,n]of r.entries()){if(!/\S+/u.test(n))continue;const r=t.lines[s.loc.start.line-1+e],[,a="",i=""]=r.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];p=`${c.slice(a.length)}${i}`,/^\s*\//u.test(o)&&0===p.length&&(p+=" ");break}return e.replaceTextRange([l,u],`${a}${p}`)}})}}},"separate-lines"(r){const[n]=r;if("Block"!==n.type||a(r))return;const s=o(r),l=t.getTokenAfter(n,{includeComments:!0});l&&n.loc.end.line===l.loc.start.line||e.report({loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+2}},messageId:"expectedLines",fix:e=>e.replaceText(n,function(e,t){return t.map((e=>`// ${e}`)).join(`\n${i(e)}`)}(n,s))})},"bare-block"(t){if(a(t))return;const[r]=t,n=o(t);"Line"===r.type&&n.length>1&&!n.some((e=>e.includes("*/")))&&e.report({loc:{start:r.loc.start,end:t[t.length-1].loc.end},messageId:"expectedBlock",fix:e=>e.replaceTextRange([r.range[0],t[t.length-1].range[1]],l(r,n))}),s(t)&&e.report({loc:{start:r.loc.start,end:{line:r.loc.start.line,column:r.loc.start.column+2}},messageId:"expectedBareBlock",fix:e=>e.replaceText(r,l(r,n))})}};return{Program:()=>t.getAllComments().filter((e=>"Shebang"!==e.type)).filter((e=>!n.COMMENTS_IGNORE_PATTERN.test(e.value))).filter((e=>{const r=t.getTokenBefore(e,{includeComments:!0});return!r||r.loc.end.line{const a=t.getTokenBefore(r,{includeComments:!0});return"Line"===r.type&&n&&"Line"===s[n-1].type&&a&&a.loc.end.line===r.loc.start.line-1&&a===s[n-1]?e[e.length-1].push(r):e.push([r]),e}),[]).filter((e=>!(1===e.length&&e[0].loc.start.line===e[0].loc.end.line))).forEach(c[r])}}}},8139:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce newlines between operands of ternary expressions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(e){const t=e.getSourceCode(),r=e.options[0],s="never"!==r,a="always-multiline"===r;return{ConditionalExpression(r){const o=t.getTokenAfter(r.test,n.isNotClosingParenToken),i=t.getTokenAfter(r.consequent,n.isNotClosingParenToken),l=t.getFirstToken(r),c=t.getTokenBefore(o),u=t.getTokenAfter(o),p=t.getTokenBefore(i),f=t.getTokenAfter(i),d=n.isTokenOnSameLine(c,u),h=n.isTokenOnSameLine(p,f),m=!!t.getCommentsInside(r).length;if(s){if(a&&r.loc.start.line===r.loc.end.line)return;d&&e.report({node:r.test,loc:{start:l.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:e=>m?null:e.replaceTextRange([c.range[1],o.range[0]],"\n")}),h&&e.report({node:r.consequent,loc:{start:u.loc.start,end:p.loc.end},messageId:"expectedConsAlt",fix:e=>m?null:e.replaceTextRange([p.range[1],i.range[0]],"\n")})}else d||e.report({node:r.test,loc:{start:l.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix:e=>{if(m)return null;const t=[],r=n.isTokenOnSameLine(c,o),s=n.isTokenOnSameLine(o,u);return r||t.push(e.removeRange([c.range[1],o.range[0]])),s||t.push(e.removeRange([o.range[1],u.range[0]])),t}}),h||e.report({node:r.consequent,loc:{start:u.loc.start,end:p.loc.end},messageId:"unexpectedConsAlt",fix:e=>{if(m)return null;const t=[],r=n.isTokenOnSameLine(p,i),s=n.isTokenOnSameLine(i,f);return r||t.push(e.removeRange([p.range[1],i.range[0]])),s||t.push(e.removeRange([i.range[1],f.range[0]])),t}})}}}}},35155:(e,t,r)=>{"use strict";const n=r(48411),s=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function a(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)&&!Array.isArray(e[t]))throw new TypeError(`${t}, if provided, must be an Array`);return e[t]||r}function o(e,t){return e[t]=!0,e}e.exports={meta:{type:"suggestion",docs:{description:"require constructor names to begin with a capital letter",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean",default:!0},capIsNew:{type:"boolean",default:!0},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(e){const t=Object.assign({},e.options[0]);t.newIsCap=!1!==t.newIsCap,t.capIsNew=!1!==t.capIsNew;const r=!1===t.properties,i=a(t,"newIsCapExceptions",[]).reduce(o,{}),l=t.newIsCapExceptionPattern?new RegExp(t.newIsCapExceptionPattern,"u"):null,c=function(e){let t=a(e,"capIsNewExceptions",s);return t!==s&&(t=t.concat(s)),t.reduce(o,{})}(t),u=t.capIsNewExceptionPattern?new RegExp(t.capIsNewExceptionPattern,"u"):null,p={},f=e.getSourceCode();function d(e){return"Identifier"===e.callee.type?e.callee.name:n.getStaticPropertyName(e.callee)||""}function h(e){const t=e.charAt(0),r=t.toLowerCase();return r===t.toUpperCase()?"non-alpha":t===r?"lower":"upper"}function m(e,t,s,a){const o=f.getText(t.callee);if(e[s]||e[o])return!0;if(a&&a.test(o))return!0;const i=n.skipChainExpression(t.callee);return"UTC"===s&&"MemberExpression"===i.type?"Identifier"===i.object.type&&"Date"===i.object.name:r&&"MemberExpression"===i.type}function g(t,r){let s=n.skipChainExpression(t.callee);"MemberExpression"===s.type&&(s=s.property),e.report({node:t,loc:s.loc,messageId:r})}return t.newIsCap&&(p.NewExpression=function(e){const t=d(e);t&&("lower"!==h(t)||m(i,e,t,l)||g(e,"lower"))}),t.capIsNew&&(p.CallExpression=function(e){const t=d(e);t&&("upper"!==h(t)||m(c,e,t,u)||g(e,"upper"))}),p}}},77449:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce or disallow parentheses when invoking a constructor with no arguments",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/new-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1}]},messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){const t="never"!==e.options[0],r=e.getSourceCode();return{NewExpression(s){if(0!==s.arguments.length)return;const a=r.getLastToken(s),o=a&&n.isClosingParenToken(a)&&n.isOpeningParenToken(r.getTokenBefore(a))&&s.callee.range[1]e.insertTextAfter(s,"()")}):o&&e.report({node:s,messageId:"unnecessary",fix:e=>[e.remove(r.getTokenBefore(a)),e.remove(a),e.insertTextBefore(s,"("),e.insertTextAfter(s,")")]})}}}}},54441:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow an empty line after variable declarations",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode(),r="never"===e.options[0]?"never":"always",s=t.getAllComments().reduce(((e,t)=>(e[t.loc.start.line]=t.loc.end.line,e)),{});function a(e){const t=s[e];return s[t+1]?a(t+1):t}return{VariableDeclaration:function(o){const i=function(e){const r=t.getLastToken(e);if("Punctuator"===r.type&&";"===r.value){const e=t.getTokenBefore(r);if(e.loc.end.line!==r.loc.start.line)return e}return r}(o),l=i===t.getLastToken(o)?t.getTokenAfter(o):t.getLastToken(o),c=i.loc.end.line+1;if(!l)return;if("ForStatement"===(u=o.parent.type)||"ForInStatement"===u||"ForOfStatement"===u)return;var u,p;if("ExportNamedDeclaration"===(p=o.parent.type)||"ExportSpecifier"===p||"ExportDefaultDeclaration"===p||"ExportAllDeclaration"===p)return;if("Keyword"===l.type&&function(e){return"var"===e||"let"===e||"const"===e}(l.value))return;if(function(e){const r=t.getTokenAfter(e);return!r||"Punctuator"===r.type&&"}"===r.value}(o))return;const f=l.loc.start.line>c,d=void 0!==s[c];var h;"never"===r&&f&&!d&&e.report({node:o,messageId:"unexpected",data:{identifier:o.name},fix(e){const r=t.getText().slice(i.range[1],l.range[0]).split(n.LINEBREAK_MATCHER);return e.replaceTextRange([i.range[1],l.range[0]],`${r.slice(0,-1).join("")}\n${r[r.length-1]}`)}}),"always"!==r||f&&(!d||(h=c,l.loc.start.line>a(h)+1))||e.report({node:o,messageId:"expected",data:{identifier:o.name},fix:e=>(f?a(c):i.loc.end.line)===l.loc.start.line?e.insertTextBefore(l,"\n\n"):e.insertTextBeforeRange([l.range[0]-l.loc.start.column,l.range[1]],"\n")})}}}}},33035:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require an empty line before `return` statements",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(e){const t=e.getSourceCode();return{ReturnStatement(r){(function(e){const r=e.parent.type;return e.parent.body?Array.isArray(e.parent.body)?e.parent.body[0]===e:e.parent.body===e:function(e,r){const n=t.getTokenBefore(e);return r.some((e=>n.value===e))}(e,"IfStatement"===r?["else",")"]:"DoWhileStatement"===r?["do"]:"SwitchCase"===r?[":"]:[")"])})(r)||function(e){const r=e.loc.start.line,n=function(e){const r=t.getTokenBefore(e);let n;return n=r?r.loc.end.line:0,n}(e),s=function(e,r){const n=t.getCommentsBefore(e);let s=0;return n.length?(n.forEach((t=>{s++,"Block"===t.type&&(s+=t.loc.end.line-t.loc.start.line),t.loc.start.line===r&&s--,t.loc.end.line===e.loc.start.line&&s--})),s):s}(e,n);return r-n-s>1}(r)||e.report({node:r,messageId:"expected",fix(e){if(function(e){const r=t.getCommentsBefore(e),n=r[r.length-1],s=t.getTokenBefore(e);return 0===r.length||n.loc.end.line===s.loc.end.line&&n.loc.end.line!==e.loc.start.line}(r)){const n=t.getTokenBefore(r),s=r.loc.start.line===n.loc.end.line?"\n\n":"\n";return e.insertTextBefore(r,s)}return null}})}}}}},76167:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require a newline after each call in a method chain",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(e){const t=(e.options[0]||{}).ignoreChainWithDepth||2,r=e.getSourceCode();function s(e){const t=function(e){return e.computed?e.optional?"?.[":"[":e.optional?"?.":"."}(e),s=r.getText(e.property).split(n.LINEBREAK_MATCHER),a=e.computed&&1===s.length?"]":"";return t+s[0]+a}return{"CallExpression:exit"(a){const o=n.skipChainExpression(a.callee);if("MemberExpression"!==o.type)return;let i=n.skipChainExpression(o.object),l=1;for(;i&&i.callee;)l+=1,i=n.skipChainExpression(n.skipChainExpression(i.callee).object);if(l>t&&n.isTokenOnSameLine(o.object,o.property)){const t=r.getTokenAfter(o.object,n.isNotClosingParenToken);e.report({node:o.property,loc:{start:t.loc.start,end:o.loc.end},messageId:"expected",data:{callee:s(o)},fix:e=>e.insertTextBefore(t,"\n")})}}}}}},91239:(e,t,r)=>{"use strict";const{getStaticPropertyName:n,getVariableByName:s,skipChainExpression:a}=r(48411);function o(e){return/^(alert|confirm|prompt)$/u.test(e)}function i(e,t){const r=function(e,t){const r=e.references.filter((e=>e.identifier.range[0]===t.range[0]&&e.identifier.range[1]===t.range[1]));return 1===r.length?r[0]:null}(e,t);return r&&r.resolved&&r.resolved.defs.length>0}e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `alert`, `confirm`, and `prompt`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create:e=>({CallExpression(t){const r=a(t.callee),l=e.getScope();if("Identifier"===r.type){const n=r.name;!i(l,r)&&o(r.name)&&e.report({node:t,messageId:"unexpected",data:{name:n}})}else if("MemberExpression"===r.type&&function(e,t){return"global"===e.type&&"ThisExpression"===t.type||!("Identifier"!==t.type||!("window"===t.name||"globalThis"===t.name&&s(e,"globalThis")))&&!i(e,t)}(l,r.object)){const s=n(r);o(s)&&e.report({node:t,messageId:"unexpected",data:{name:s}})}}})}},97400:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `Array` constructors",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-array-constructor"},schema:[],messages:{preferLiteral:"The array literal notation [] is preferable."}},create(e){function t(t){1!==t.arguments.length&&"Identifier"===t.callee.type&&"Array"===t.callee.name&&e.report({node:t,messageId:"preferLiteral"})}return{CallExpression:t,NewExpression:t}}}},71365:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow using an async function as a Promise executor",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create:e=>({"NewExpression[callee.name='Promise'][arguments.0.async=true]"(t){e.report({node:e.getSourceCode().getFirstToken(t.arguments[0],(e=>"async"===e.value)),messageId:"async"})}})}},16217:e=>{"use strict";function t(e){const t=e.type;return"FunctionDeclaration"===t||"FunctionExpression"===t||"ArrowFunctionExpression"===t||"ForOfStatement"===t&&!0===e.await}function r(e,t){switch(t.type){case"ForStatement":return e===t.test||e===t.update||e===t.body;case"ForOfStatement":case"ForInStatement":return e===t.body;case"WhileStatement":case"DoWhileStatement":return e===t.test||e===t.body;default:return!1}}e.exports={meta:{type:"problem",docs:{description:"disallow `await` inside of loops",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(e){function n(n){if("ForOfStatement"===n.type&&!n.await)return;let s=n,a=s.parent;for(;a&&!t(a);){if(r(s,a))return void e.report({node:n,messageId:"unexpectedAwait"});s=a,a=a.parent}}return{AwaitExpression:n,ForOfStatement:n}}}},42937:e=>{"use strict";const t=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];e.exports={meta:{type:"suggestion",docs:{description:"disallow bitwise operators",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:t},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const r=e.options[0]||{},n=r.allow||[],s=!0===r.int32Hint;function a(r){!function(e){return-1!==t.indexOf(e.operator)}(r)||function(e){return-1!==n.indexOf(e.operator)}(r)||function(e){return s&&"|"===e.operator&&e.right&&"Literal"===e.right.type&&0===e.right.value}(r)||function(t){e.report({node:t,messageId:"unexpected",data:{operator:t.operator}})}(r)}return{AssignmentExpression:a,BinaryExpression:a,UnaryExpression:a}}}},11265:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"disallow use of the `Buffer()` constructor",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create:e=>({"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(t){e.report({node:t,messageId:"deprecated",data:{expr:"CallExpression"===t.type?"Buffer()":"new Buffer()"}})}})}},23692:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `arguments.caller` or `arguments.callee`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create:e=>({MemberExpression(t){const r=t.object.name,n=t.property.name;"arguments"===r&&!t.computed&&n&&n.match(/^calle[er]$/u)&&e.report({node:t,messageId:"unexpected",data:{prop:n}})}})}},72605:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow lexical declarations in case clauses",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(e){function t(e){switch(e.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return"var"!==e.kind;default:return!1}}return{SwitchCase(r){for(let n=0;n{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow `catch` clause parameters from shadowing variables in the outer scope",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-catch-shadow"},replacedBy:["no-shadow"],deprecated:!0,schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create:e=>({"CatchClause[param!=null]"(t){let r=e.getScope();r.block===t&&(r=r.upper),function(e,t){return null!==n.getVariableByName(e,t)}(r,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}})}},94988:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow reassigning class members",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(e){function t(t){n.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"class",data:{name:t.identifier.name}})}))}function r(r){e.getDeclaredVariables(r).forEach(t)}return{ClassDeclaration:r,ClassExpression:r}}}},94530:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow comparing against -0",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(e){function t(e){return"UnaryExpression"===e.type&&"-"===e.operator&&"Literal"===e.argument.type&&0===e.argument.value}const r=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(n){r.has(n.operator)&&(t(n.left)||t(n.right))&&e.report({node:n,messageId:"unexpected",data:{operator:n.operator}})}}}}},21146:(e,t,r)=>{"use strict";const n=r(48411),s=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),a={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};e.exports={meta:{type:"problem",docs:{description:"disallow assignment operators in conditional expressions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(e){const t=e.options[0]||"except-parens",r=e.getSourceCode();function o(e){return e.parent&&s.has(e.parent.type)&&e===e.parent.test}function i(t){!t.test||"AssignmentExpression"!==t.test.type||("ForStatement"===t.type?n.isParenthesised(r,t.test):function(e){const t=r.getTokenBefore(e,1),s=r.getTokenAfter(e,1);return n.isParenthesised(r,e)&&t&&n.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&n.isClosingParenToken(s)&&s.range[0]>=e.range[1]}(t.test))||e.report({node:t.test,messageId:"missing"})}return"always"===t?{AssignmentExpression:function(t){const r=function(e){let t=e;do{if(o(t))return t.parent}while((t=t.parent)&&!n.isFunction(t));return null}(t);r&&e.report({node:t,messageId:"unexpected",data:{type:a[r.type]||r.type}})}}:{DoWhileStatement:i,ForStatement:i,IfStatement:i,WhileStatement:i,ConditionalExpression:i}}}},73885:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow arrow functions where they could be confused with comparisons",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(e){const t=e.options[0]||{},r=t.allowParens||void 0===t.allowParens,s=e.getSourceCode();return{ArrowFunctionExpression:function(t){const a=t.body;!function(e){return e&&"ConditionalExpression"===e.type}(a)||r&&n.isParenthesised(s,a)||e.report({node:t,messageId:"confusing",fix:e=>r&&e.replaceText(t.body,`(${s.getText(t.body)})`)})}}}}},54574:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `console`",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected console statement."}},create(e){const t=(e.options[0]||{}).allow||[];function r(e){const t=e.identifier;return t&&"console"===t.name}function s(e){const r=e.identifier,s=r.parent;return"MemberExpression"===s.type&&s.object===r&&!function(e){const r=n.getStaticPropertyName(e);return r&&-1!==t.indexOf(r)}(s)}function a(t){const r=t.identifier.parent;e.report({node:r,loc:r.loc,messageId:"unexpected"})}return{"Program:exit"(){const t=e.getScope(),o=n.getVariableByName(t,"console"),i=o&&o.defs.length>0,l=o?o.references:t.through.filter(r);i||l.filter(s).forEach(a)}}}}},81118:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow reassigning `const` variables",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){function t(t){n.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"const",data:{name:t.identifier.name}})}))}return{VariableDeclaration(r){"const"===r.kind&&e.getDeclaredVariables(r).forEach(t)}}}}},2664:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow constant expressions in conditions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){const t=!1!==(e.options[0]||{}).checkLoops,r=[];let n=new Set;function s(e){return null===e.value?"null"!==e.raw&&("object"==typeof e.regex||null):!!e.value}function a(e,t){switch(e.type){case"Literal":return"||"===t&&!0===s(e)||"&&"===t&&!1===s(e);case"UnaryExpression":return"&&"===t&&"void"===e.operator;case"LogicalExpression":return t===e.operator&&(a(e.left,t)||a(e.right,t));case"AssignmentExpression":return["||=","&&="].includes(e.operator)&&t===e.operator.slice(0,-1)&&a(e.right,t)}return!1}function o(e,t){if(!e)return!0;switch(e.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return t&&e.quasis.some((e=>e.value.cooked.length))||e.expressions.every((e=>o(e,t)));case"ArrayExpression":return"BinaryExpression"!==e.parent.type||"+"!==e.parent.operator||e.elements.every((e=>o(e,!1)));case"UnaryExpression":return!!("void"===e.operator||"typeof"===e.operator&&t)||("!"===e.operator?o(e.argument,!0):o(e.argument,!1));case"BinaryExpression":return o(e.left,!1)&&o(e.right,!1)&&"in"!==e.operator;case"LogicalExpression":{const r=o(e.left,t),n=o(e.right,t),s=r&&a(e.left,e.operator),i=t&&n&&a(e.right,e.operator);return r&&n||s||i}case"AssignmentExpression":return"="===e.operator?o(e.right,t):!(!["||=","&&="].includes(e.operator)||!t)&&a(e.right,e.operator.slice(0,-1));case"SequenceExpression":return o(e.expressions[e.expressions.length-1],t)}return!1}function i(t){n.has(t)&&(n.delete(t),e.report({node:t.test,messageId:"unexpected"}))}function l(t){t.test&&o(t.test,!0)&&e.report({node:t.test,messageId:"unexpected"})}function c(){r.push(n),n=new Set}function u(){n=r.pop()}function p(e){t&&function(e){e.test&&o(e.test,!0)&&n.add(e)}(e)}return{ConditionalExpression:l,IfStatement:l,WhileStatement:p,"WhileStatement:exit":i,DoWhileStatement:p,"DoWhileStatement:exit":i,ForStatement:p,"ForStatement > .test":e=>p(e.parent),"ForStatement:exit":i,FunctionDeclaration:c,"FunctionDeclaration:exit":u,FunctionExpression:c,"FunctionExpression:exit":u,YieldExpression:()=>n.clear()}}}},14593:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow returning value from constructor",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-constructor-return"},schema:{},fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(e){const t=[];return{onCodePathStart(e,r){t.push(r)},onCodePathEnd(){t.pop()},ReturnStatement(r){const n=t[t.length-1];n.parent&&("MethodDefinition"!==n.parent.type||"constructor"!==n.parent.kind||r.parent.parent!==n&&!r.argument||e.report({node:r,messageId:"unexpected"}))}}}}},46950:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `continue` statements",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create:e=>({ContinueStatement(t){e.report({node:t,messageId:"unexpected"})}})}},40245:(e,t,r)=>{"use strict";const n=r(35372).RegExpValidator,s=new class{constructor(){this._source="",this._controlChars=[],this._validator=new n(this)}onPatternEnter(){this._controlChars=[]}onCharacter(e,t,r){r>=0&&r<=31&&(this._source.codePointAt(e)===r||this._source.slice(e,t).startsWith("\\x")||this._source.slice(e,t).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${r.toString(16)}`.slice(-2)}`)}collectControlChars(e){try{this._source=e,this._validator.validatePattern(e)}catch{}return this._controlChars}};e.exports={meta:{type:"problem",docs:{description:"disallow control characters in regular expressions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create:e=>({Literal(t){const r=function(e){return e.regex?e.regex.pattern:"string"!=typeof e.value||"NewExpression"!==e.parent.type&&"CallExpression"!==e.parent.type||"Identifier"!==e.parent.callee.type||"RegExp"!==e.parent.callee.name||e.parent.arguments[0]!==e?null:e.value}(t);if(r){const n=s.collectControlChars(r);n.length>0&&e.report({node:t,messageId:"unexpected",data:{controlChars:n.join(", ")}})}}})}},40766:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow the use of `debugger`",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create:e=>({DebuggerStatement(t){e.report({node:t,messageId:"unexpected"})}})}},96619:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow deleting variables",category:"Variables",recommended:!0,url:"https://eslint.org/docs/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create:e=>({UnaryExpression(t){"delete"===t.operator&&"Identifier"===t.argument.type&&e.report({node:t,messageId:"unexpected"})}})}},75619:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow division operators explicitly at the beginning of regular expressions",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(e){const t=e.getSourceCode();return{Literal(r){const n=t.getFirstToken(r);"RegularExpression"===n.type&&"="===n.value[1]&&e.report({node:r,messageId:"unexpected",fix:e=>e.replaceTextRange([n.range[0]+1,n.range[0]+2],"[=]")})}}}}},76344:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow duplicate arguments in `function` definitions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(e){function t(e){return"Parameter"===e.type}function r(r){const n=e.getDeclaredVariables(r);for(let s=0;s=2&&e.report({node:r,messageId:"unexpected",data:{name:a.name}})}}return{FunctionDeclaration:r,FunctionExpression:r}}}},3088:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow duplicate class members",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let t=[];return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},MethodDefinition(r){const s=n.getStaticPropertyName(r);if(null===s||"constructor"===r.kind)return;const a=function(e,r){const n=t[t.length-1],s=`$${e}`;return n[s]||(n[s]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),n[s][r?"static":"nonStatic"]}(s,r.static);let o=!1;"get"===r.kind?(o=a.init||a.get,a.get=!0):"set"===r.kind?(o=a.init||a.set,a.set=!0):(o=a.init||a.get||a.set,a.init=!0),o&&e.report({node:r,messageId:"unexpected",data:{name:s}})}}}}},54645:(e,t,r)=>{"use strict";const n=r(48411);function s(e,t,r){return t.every((t=>r.some((r=>e(t,r)))))}function a(e,t){return"LogicalExpression"===t.type&&t.operator===e?[...a(e,t.left),...a(e,t.right)]:[t]}const o=a.bind(null,"||"),i=a.bind(null,"&&");e.exports={meta:{type:"problem",docs:{description:"disallow duplicate conditions in if-else-if chains",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(e){const t=e.getSourceCode(),r=s.bind(null,(function e(r,s){return r.type===s.type&&("LogicalExpression"!==r.type||"||"!==r.operator&&"&&"!==r.operator||r.operator!==s.operator?n.equalTokens(r,s,t):e(r.left,s.left)&&e(r.right,s.right)||e(r.left,s.right)&&e(r.right,s.left))}));return{IfStatement(t){const n=t.test;let s=t,a=("LogicalExpression"===n.type&&"&&"===n.operator?[n,...i(n)]:[n]).map((e=>o(e).map(i)));for(;s.parent&&"IfStatement"===s.parent.type&&s.parent.alternate===s;){s=s.parent;const t=o(s.test).map(i);if(a=a.map((e=>e.filter((e=>!t.some((t=>r(t,e))))))),a.some((e=>0===e.length))){e.report({node:n,messageId:"unexpected"});break}}}}}}},71719:(e,t,r)=>{"use strict";const n=r(48411),s=/^(?:init|get)$/u,a=/^(?:init|set)$/u;class o{constructor(e,t){this.upper=e,this.node=t,this.properties=new Map}getPropertyInfo(e){const t=n.getStaticPropertyName(e);return this.properties.has(t)||this.properties.set(t,{get:!1,set:!1}),this.properties.get(t)}isPropertyDefined(e){const t=this.getPropertyInfo(e);return s.test(e.kind)&&t.get||a.test(e.kind)&&t.set}defineProperty(e){const t=this.getPropertyInfo(e);s.test(e.kind)&&(t.get=!0),a.test(e.kind)&&(t.set=!0)}}e.exports={meta:{type:"problem",docs:{description:"disallow duplicate keys in object literals",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(e){let t=null;return{ObjectExpression(e){t=new o(t,e)},"ObjectExpression:exit"(){t=t.upper},Property(r){const s=n.getStaticPropertyName(r);"ObjectExpression"===r.parent.type&&null!==s&&(t.isPropertyDefined(r)&&e.report({node:t.node,loc:r.key.loc,messageId:"unexpected",data:{name:s}}),t.defineProperty(r))}}}}},50600:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow duplicate case labels",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){const t=e.getSourceCode();return{SwitchStatement(r){const s=[];for(const a of r.cases)if(a.test){const r=a.test;s.some((e=>{return a=r,(s=e).type===a.type&&n.equalTokens(s,a,t);var s,a}))?e.report({node:a,messageId:"unexpected"}):s.push(r)}}}}}},38373:e=>{"use strict";const t=["ImportSpecifier","ExportSpecifier"],r=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function n(e,n){return("named"===n?t:r).includes(e)}function s(e){if(e.specifiers&&e.specifiers.length>0){const t=e.specifiers,r=t.findIndex((({type:e})=>n(e,"named")||n(e,"namespace")));return t[r>-1?r:0].type}return"ExportAllDeclaration"===e.type?e.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function a(e,t){const r=s(e),a=s(t);return!("ExportAll"===r&&"ExportAll"!==a&&"SideEffectImport"!==a||"ExportAll"!==r&&"SideEffectImport"!==r&&"ExportAll"===a||n(r,"namespace")&&n(a,"named")||n(a,"namespace")&&n(r,"named"))}function o(e,t){let r=0;for(;re===t)).map((({node:e})=>e))}function l(e){return e&&e.source&&e.source.value?e.source.value.trim():""}function c(e,t,r,n){return function(s){const a=l(s);if(a){!function(e,t,r,n,s){const a=l(t);if(r.has(a)){const l=r.get(a),c=[],u=i(l,"import");let p;s&&(p=i(l,"export")),"import"===n?(o(t,u)&&c.push("import"),s&&o(t,p)&&c.push("importAs")):"export"===n&&(o(t,p)&&c.push("export"),o(t,u)&&c.push("exportAs")),c.forEach((r=>e.report({node:t,messageId:r,data:{module:a}})))}}(e,s,t,r,n);const c={node:s,declarationType:r};let u=[c];t.has(a)&&(u=[...t.get(a),c]),t.set(a,u)}}}e.exports={meta:{type:"problem",docs:{description:"disallow duplicate module imports",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(e){const t=(e.options[0]||{}).includeExports,r=new Map,n={ImportDeclaration:c(e,r,"import",t)};return t&&(n.ExportNamedDeclaration=c(e,r,"export",t),n.ExportAllDeclaration=c(e,r,"export",t)),n}}},36232:(e,t,r)=>{"use strict";const n=r(48411),s=r(67784);e.exports={meta:{type:"suggestion",docs:{description:"disallow `else` blocks after `return` statements in `if` statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(e){function t(t){const r=e.getScope();e.report({node:t,messageId:"unexpected",fix:n=>{if(!function(e,t){if("FunctionDeclaration"===e.type)return!1;if("BlockStatement"!==e.type)return!0;const r=t.childScopes.find((({block:t})=>t===e));return!r||function(e,t){if(0===e.length)return!0;const r=t.variableScope;if(t.variables.filter((({defs:e})=>e.length>0)).some((({name:t})=>e.includes(t))))return!1;if(t!==r&&"catch"===t.upper.type&&t.upper.variables.some((({name:t})=>e.includes(t))))return!1;if(t.variables.filter((({defs:e,references:t})=>0===e.length&&t.length>0)).some((({name:t})=>e.includes(t))))return!1;if(t.through.some((t=>e.includes(t.identifier.name))))return!1;if(t!==r){const n=t.block.range;if(r.variables.filter((({name:t})=>e.includes(t))).some((e=>e.defs.some((({node:{range:e}})=>n[0]<=e[0]&&e[1]<=n[1])))))return!1}return!0}(r.variables.map((({name:e})=>e)),t)}(t,r))return null;const a=e.getSourceCode(),o=a.getFirstToken(t),i=a.getTokenBefore(o),l=a.getText(t),c=a.getTokenBefore(i);let u,p;p="Punctuator"===o.type&&"{"===o.value?a.getTokenAfter(o):o;const f="BlockStatement"!==t.parent.consequent.type&&";"!==c.value,d=/^[([/+`-]/u.test(p.value);if(f&&d)return null;const h=a.getLastToken(t),m=a.getTokenBefore(h);if(";"!==m.value){const e=a.getTokenAfter(h),t=e&&/^[([/+`-]/u.test(e.value),r=e&&e.loc.start.line===m.loc.start.line;if(t||r&&"}"!==e.value)return null}return u="Punctuator"===o.type&&"{"===o.value?l.slice(1,-1):l,new s(n,a).retainEnclosingFunction(t).replaceTextRange([i.range[0],t.range[1]],u)}})}function r(e){return"ReturnStatement"===e.type}function a(e){if("BlockStatement"===e.type){const t=e.body,n=t[t.length-1];return n&&r(n)}return r(e)}function o(e){return r(e)||function(e){return"IfStatement"===e.type&&function(e){return e.alternate&&e.consequent}(e)&&a(e.alternate)&&a(e.consequent)}(e)}function i(e){return"BlockStatement"===e.type?e.body.some(o):o(e)}return{"IfStatement:exit":e.options[0]&&!1===e.options[0].allowElseIf?function(e){const r=e.parent;if(!n.STATEMENT_LIST_PARENTS.has(r.type))return;const s=e.alternate;s&&i(e.consequent)&&t(s)}:function(e){const r=e.parent;if(!n.STATEMENT_LIST_PARENTS.has(r.type))return;const s=[];let a;for(let t=e;"IfStatement"===t.type;t=t.alternate){if(!t.alternate)return;s.push(t.consequent),a=t.alternate}s.every(i)&&t(a)}}}}},93583:e=>{"use strict";const t=/^\/([^\\[]|\\.|\[([^\\\]]|\\.)+\])*\/[gimuys]*$/u;e.exports={meta:{type:"problem",docs:{description:"disallow empty character classes in regular expressions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(e){const r=e.getSourceCode();return{Literal(n){const s=r.getFirstToken(n);"RegularExpression"!==s.type||t.test(s.value)||e.report({node:n,messageId:"unexpected"})}}}}},3026:(e,t,r)=>{"use strict";const n=r(48411),s=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"]);e.exports={meta:{type:"suggestion",docs:{description:"disallow empty functions",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:s},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(e){const t=(e.options[0]||{}).allow||[],r=e.getSourceCode();function s(s){const a=function(e){const t=e.parent;let r="";if("ArrowFunctionExpression"===e.type)return"arrowFunctions";if("Property"===t.type){if("get"===t.kind)return"getters";if("set"===t.kind)return"setters";r=t.method?"methods":"functions"}else if("MethodDefinition"===t.type){if("get"===t.kind)return"getters";if("set"===t.kind)return"setters";if("constructor"===t.kind)return"constructors";r="methods"}else r="functions";let n="";if(e.generator)n="generator";else{if(!e.async)return r;n="async"}return n+r[0].toUpperCase()+r.slice(1)}(s),o=n.getFunctionNameWithKind(s),i=r.getTokens(s.body,{includeComments:!0,filter:n.isCommentToken});-1===t.indexOf(a)&&"BlockStatement"===s.body.type&&0===s.body.body.length&&0===i.length&&e.report({node:s,loc:s.body.loc,messageId:"unexpected",data:{name:o}})}return{ArrowFunctionExpression:s,FunctionDeclaration:s,FunctionExpression:s}}}},45213:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow empty destructuring patterns",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-empty-pattern"},schema:[],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create:e=>({ObjectPattern(t){0===t.properties.length&&e.report({node:t,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(t){0===t.elements.length&&e.report({node:t,messageId:"unexpected",data:{type:"array"}})}})}},76479:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow empty block statements",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement."}},create(e){const t=(e.options[0]||{}).allowEmptyCatch||!1,r=e.getSourceCode();return{BlockStatement(s){0===s.body.length&&(n.isFunction(s.parent)||t&&"CatchClause"===s.parent.type||r.getCommentsInside(s).length>0||e.report({node:s,messageId:"unexpected",data:{type:"block"}}))},SwitchStatement(t){void 0!==t.cases&&0!==t.cases.length||e.report({node:t,messageId:"unexpected",data:{type:"switch"}})}}}}},76802:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `null` comparisons without type-checking operators",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create:e=>({BinaryExpression(t){const r="=="===t.operator||"!="===t.operator;("Literal"===t.right.type&&"null"===t.right.raw&&r||"Literal"===t.left.type&&"null"===t.left.raw&&r)&&e.report({node:t,messageId:"unexpected"})}})}},39400:(e,t,r)=>{"use strict";const n=r(48411),s=Object.freeze(["global","window","globalThis"]);function a(e,t){return n.isSpecificMemberAccess(e,null,t)}e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `eval()`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(e){const t=Boolean(e.options[0]&&e.options[0].allowIndirect),r=e.getSourceCode();let o=null;function i(t){const r=e.getScope().isStrict;o={upper:o,node:t,strict:r,defaultThis:!1,initialized:r}}function l(){o=o.upper}function c(t){const r=t.parent,n="MemberExpression"===t.type?t.property:t,s="CallExpression"===r.type&&r.callee===t?r:t;e.report({node:s,loc:n.loc,messageId:"unexpected"})}return t?{"CallExpression:exit"(e){const t=e.callee;!e.optional&&n.isSpecificId(t,"eval")&&c(t)}}:{"CallExpression:exit"(e){const t=e.callee;n.isSpecificId(t,"eval")&&c(t)},Program(t){const r=e.getScope(),n=e.parserOptions.ecmaFeatures||{},s=r.isStrict||"module"===t.sourceType||n.globalReturn&&r.childScopes[0].isStrict;o={upper:null,node:t,strict:s,defaultThis:!0,initialized:!0}},"Program:exit"(){const t=e.getScope();l(),function(e){const t=n.getVariableByName(e,"eval");if(!t)return;const r=t.references;for(let e=0;e{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow reassigning exceptions in `catch` clauses",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){function t(t){n.getModifyingReferences(t.references).forEach((t=>{e.report({node:t.identifier,messageId:"unexpected"})}))}return{CatchClause(r){e.getDeclaredVariables(r).forEach(t)}}}}},68883:(e,t,r)=>{"use strict";const n=r(48411),s=r(29828);e.exports={meta:{type:"suggestion",docs:{description:"disallow extending native types",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(e){const t=e.options[0]||{},r=new Set(t.exceptions||[]),a=new Set(Object.keys(s.builtin).filter((e=>e[0].toUpperCase()===e[0])).filter((e=>!r.has(e))));function o(t,r){e.report({node:t,messageId:"unexpected",data:{builtin:r}})}function i(e){if(!function(e){return Boolean(e&&e.parent&&"MemberExpression"===e.parent.type&&e.parent.object===e&&"prototype"===n.getStaticPropertyName(e.parent))}(e))return;const t="ChainExpression"===e.parent.parent.type?e.parent.parent:e.parent;var r;"MemberExpression"===(r=t).parent.type&&r.parent.object===r&&"AssignmentExpression"===r.parent.parent.type&&r.parent.parent.left===r.parent?o(t.parent.parent,e.name):function(e){return"CallExpression"===e.parent.type&&e.parent.arguments[0]===e&&n.isSpecificMemberAccess(e.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}(t)&&o(t.parent,e.name)}return{"Program:exit"(){const t=e.getScope();a.forEach((e=>{const r=t.set.get(e);r&&r.references&&r.references.map((e=>e.identifier)).forEach(i)}))}}}}},58682:(e,t,r)=>{"use strict";const n=r(48411),s=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary calls to `.bind()`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(e){const t=e.getSourceCode();let r=null;function a(r){const a=r.parent,o="ChainExpression"===a.parent.type?a.parent.parent:a.parent;e.report({node:o,messageId:"unexpected",loc:a.property.loc,fix(e){if(!function(e){return s.has(e.type)}(o.arguments[0]))return null;const r=[[t.getTokenAfter(a.object,n.isNotClosingParenToken),t.getLastToken(a)],[t.getTokenAfter(a,n.isNotClosingParenToken),t.getLastToken(o)]],i=r[0][0],l=r[1][1];return t.commentsExistBetween(i,l)?null:r.map((([t,r])=>e.removeRange([t.range[0],r.range[1]])))}})}function o(e){if(!n.isSpecificMemberAccess(e.parent,null,"bind"))return!1;const t="ChainExpression"===e.parent.parent.type?e.parent.parent:e.parent;return"CallExpression"===t.parent.type&&t.parent.callee===t&&1===t.parent.arguments.length&&"SpreadElement"!==t.parent.arguments[0].type}function i(e){r={isBound:o(e),thisFound:!1,upper:r}}function l(e){r.isBound&&!r.thisFound&&a(e),r=r.upper}return{"ArrowFunctionExpression:exit":function(e){o(e)&&a(e)},FunctionDeclaration:i,"FunctionDeclaration:exit":l,FunctionExpression:i,"FunctionExpression:exit":l,ThisExpression:function(){r&&(r.thisFound=!0)}}}}},73364:(e,t,r)=>{"use strict";const n=r(48411),s=r(49303),a=n.getPrecedence;e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary boolean casts",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-extra-boolean-cast"},schema:[{type:"object",properties:{enforceForLogicalOperands:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(e){const t=e.getSourceCode(),r=["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"];function o(t){return"ChainExpression"===t.parent.type?o(t.parent):function(e){return function(e){return("CallExpression"===e.type||"NewExpression"===e.type)&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name}(e.parent)&&e===e.parent.arguments[0]||-1!==r.indexOf(e.parent.type)&&e===e.parent.test||"UnaryExpression"===e.parent.type&&"!"===e.parent.operator}(t)||function(t){return"LogicalExpression"===t.type&&("||"===t.operator||"&&"===t.operator)&&e.options.length&&!0===e.options[0].enforceForLogicalOperands}(t.parent)&&o(t.parent)}function i(e){return Boolean(t.getCommentsInside(e).length)}function l(e,r){if("ChainExpression"===e.parent.type)return l(e.parent,r);if(function(e){return s.isParenthesized(1,e,t)}(e))return!1;const o=e.parent;switch(o.type){case"CallExpression":case"NewExpression":return"SequenceExpression"===r.type;case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return a(r)<=a(o);case"UnaryExpression":return a(r){"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary labels",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(e){const t=e.getSourceCode();let r=null;function s(e){r={label:"LabeledStatement"===e.parent.type?e.parent.label:null,breakable:!0,upper:r}}function a(){r=r.upper}function o(n){if(!n.label)return;const s=n.label;for(let a=r;null!==a;a=a.upper)if(a.breakable||a.label&&a.label.name===s.name)return void(a.breakable&&a.label&&a.label.name===s.name&&e.report({node:s,messageId:"unexpected",data:s,fix(e){const r=t.getFirstToken(n);return t.commentsExistBetween(r,s)?null:e.removeRange([r.range[1],s.range[1]])}}))}return{WhileStatement:s,"WhileStatement:exit":a,DoWhileStatement:s,"DoWhileStatement:exit":a,ForStatement:s,"ForStatement:exit":a,ForInStatement:s,"ForInStatement:exit":a,ForOfStatement:s,"ForOfStatement:exit":a,SwitchStatement:s,"SwitchStatement:exit":a,LabeledStatement:function(e){n.isBreakableStatement(e.body)||(r={label:e.label,breakable:!1,upper:r})},"LabeledStatement:exit":function(e){n.isBreakableStatement(e.body)||(r=r.upper)},BreakStatement:o,ContinueStatement:o}}}},26105:(e,t,r)=>{"use strict";const{isParenthesized:n}=r(49303),s=r(48411);e.exports={meta:{type:"layout",docs:{description:"disallow unnecessary parentheses",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(e){const t=e.getSourceCode(),r=new WeakSet,a=s.getPrecedence,o="functions"!==e.options[0],i=o&&e.options[1]&&!1===e.options[1].conditionalAssign,l=o&&e.options[1]&&!1===e.options[1].nestedBinaryExpressions,c=o&&e.options[1]&&!1===e.options[1].returnAssign,u=o&&e.options[1]&&e.options[1].ignoreJSX,p=o&&e.options[1]&&!1===e.options[1].enforceForArrowConditionals,f=o&&e.options[1]&&!1===e.options[1].enforceForSequenceExpressions,d=o&&e.options[1]&&!1===e.options[1].enforceForNewInMemberExpressions,h=o&&e.options[1]&&!1===e.options[1].enforceForFunctionPrototypeMethods,m=a({type:"AssignmentExpression"}),g=a({type:"UpdateExpression"});let y;function x(e){const t=s.skipChainExpression(e);if("CallExpression"!==t.type)return!1;const r=s.skipChainExpression(t.callee);return"MemberExpression"===r.type&&"FunctionExpression"===r.object.type&&["call","apply"].includes(s.getStaticPropertyName(r))}function b(e){if("JSXElement"===e.type||"JSXFragment"===e.type){const t=e.loc.start.line===e.loc.end.line;switch(u){case"all":return!1;case"multi-line":return t;case"single-line":return!t}}return("SequenceExpression"!==e.type||!f)&&(!x(e)||!h)&&(o||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type)}function E(e){return n(1,e,t)}function v(e){return n(2,e,t)}function S(e){return b(e)&&E(e)}function C(e){return b(e)&&v(e)}function A(e,t){return!!(b(e)&&E(e)&&(a(e)>=t||v(e)))}function k(e){return i&&"AssignmentExpression"===e.test.type}function w(e){const r=t.getLastToken(e),n=t.getTokenBefore(r);return e.arguments.length>0||s.isOpeningParenToken(n)&&s.isClosingParenToken(r)&&e.callee.range[1]A(e,m))).forEach(_)}function R(e){const t=a(e),r=a(e.left),n=a(e.right),o="**"===e.operator,i=l&&("BinaryExpression"===e.left.type||"LogicalExpression"===e.left.type),c=l&&("BinaryExpression"===e.right.type||"LogicalExpression"===e.right.type);!i&&S(e.left)&&((["AwaitExpression","UnaryExpression"].includes(e.left.type)&&o||s.isMixedLogicalAndCoalesceExpressions(e.left,e)||!(r>t||r===t&&!o))&&!v(e.left)||_(e.left)),!c&&S(e.right)&&(!s.isMixedLogicalAndCoalesceExpressions(e.right,e)&&(n>t||n===t&&o)||v(e.right))&&_(e.right)}function j(e){e.superClass&&(a(e.superClass)>g?S(e.superClass):C(e.superClass))&&_(e.superClass)}function N(e){A(e.argument,m)&&_(e.argument)}function M(e){const n=E(e)?t.getTokenBefore(e):t.getFirstToken(e),a=t.getTokenAfter(n,s.isNotOpeningParenToken),o=a?t.getTokenAfter(a):null,i=a?t.getTokenAfter(a,s.isNotClosingParenToken):null;s.isOpeningParenToken(n)&&(s.isOpeningBraceToken(a)||"Keyword"===a.type&&("function"===a.value||"class"===a.value||"let"===a.value&&i&&(s.isOpeningBracketToken(i)||"Identifier"===i.type))||a&&"Identifier"===a.type&&"async"===a.value&&o&&"Keyword"===o.type&&"function"===o.value)&&r.add(a),("ExportDefaultDeclaration"===e.parent.type?A(e,m):S(e))&&_(e)}function V(e,t){switch(e.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return e.params.includes(t);case"CallExpression":case"NewExpression":return e.arguments.includes(t);case"MemberExpression":return e.computed&&e.property===t;case"ConditionalExpression":return e.consequent===t;default:return!1}}function $(e){return y.reports.some((t=>t.node===e))}function U(e){return"MemberExpression"===e.type&&("NewExpression"===e.parent.type&&e.parent.callee===e||e.parent.object===e&&U(e.parent))}return{ArrayExpression(e){e.elements.filter((e=>e&&A(e,m))).forEach(_)},ArrayPattern(e){e.elements.filter((e=>I(e)&&S(e))).forEach(_)},ArrowFunctionExpression(e){if(!(F(e)||"ConditionalExpression"===e.body.type&&p||"BlockStatement"===e.body.type)){const n=t.getFirstToken(e.body,s.isNotOpeningParenToken),a=t.getTokenBefore(n);s.isOpeningParenToken(a)&&s.isOpeningBraceToken(n)&&r.add(n),A(e.body,m)&&_(e.body)}},AssignmentExpression(e){I(e.left)&&S(e.left)&&_(e.left),!F(e)&&A(e.right,a(e))&&_(e.right)},BinaryExpression(e){y&&"in"===e.operator&&y.inExpressionNodes.push(e),R(e)},CallExpression:L,ClassBody(e){e.body.filter((e=>"MethodDefinition"===e.type&&e.computed&&e.key)).filter((e=>A(e.key,m))).forEach((e=>_(e.key)))},ConditionalExpression(e){F(e)||(!k(e)&&A(e.test,a({type:"LogicalExpression",operator:"||"}))&&_(e.test),A(e.consequent,m)&&_(e.consequent),A(e.alternate,m)&&_(e.alternate))},DoWhileStatement(e){S(e.test)&&!k(e)&&_(e.test)},ExportDefaultDeclaration:e=>M(e.declaration),ExpressionStatement:e=>M(e.expression),ForInStatement(e){if("VariableDeclaration"!==e.left.type){const n=t.getFirstToken(e.left,s.isNotOpeningParenToken);"let"===n.value&&s.isOpeningBracketToken(t.getTokenAfter(n,s.isNotClosingParenToken))&&r.add(n)}S(e.left)&&_(e.left),S(e.right)&&_(e.right)},ForOfStatement(e){if("VariableDeclaration"!==e.left.type){const n=t.getFirstToken(e.left,s.isNotOpeningParenToken);"let"===n.value&&r.add(n)}S(e.left)&&_(e.left),A(e.right,m)&&_(e.right)},ForStatement(e){if(e.test&&S(e.test)&&!k(e)&&_(e.test),e.update&&S(e.update)&&_(e.update),e.init){if("VariableDeclaration"!==e.init.type){const n=t.getFirstToken(e.init,s.isNotOpeningParenToken);"let"===n.value&&s.isOpeningBracketToken(t.getTokenAfter(n,s.isNotClosingParenToken))&&r.add(n)}y={upper:y,inExpressionNodes:[],reports:[]},S(e.init)&&_(e.init)}},"ForStatement > *.init:exit"(e){y.reports.length&&y.inExpressionNodes.forEach((t=>{const r=function(e,t){return function(e,t){const r=[e];let n=e;for(;n!==t;){if(n=n.parent,null===n)throw new Error("Nodes are not in the ancestor-descendant relationship.");r.push(n)}return r}(t,e).reverse()}(e,t);let n;for(let e=0;et.node!==e))}(n)})),function(){const{upper:e,inExpressionNodes:t,reports:r}=y;e?(e.inExpressionNodes.push(...t),e.reports.push(...r)):r.forEach((({finishReport:e})=>e())),y=e}()},IfStatement(e){S(e.test)&&!k(e)&&_(e.test)},ImportExpression(e){const{source:t}=e;"SequenceExpression"===t.type?C(t)&&_(t):S(t)&&_(t)},LogicalExpression:R,MemberExpression(e){const t=U(e)&&O(e)?C(e.object):S(e.object)&&!(x(e.parent)&&e.parent.callee===e&&h);t&&a(e.object)>=a(e)&&(e.computed||!(s.isDecimalInteger(e.object)||"Literal"===e.object.type&&e.object.regex))&&_(e.object),t&&"CallExpression"===e.object.type&&_(e.object),t&&!d&&"NewExpression"===e.object.type&&w(e.object)&&_(e.object),t&&e.optional&&"ChainExpression"===e.object.type&&_(e.object),e.computed&&S(e.property)&&_(e.property)},NewExpression:L,ObjectExpression(e){e.properties.filter((e=>e.value&&A(e.value,m))).forEach((e=>_(e.value)))},ObjectPattern(e){e.properties.filter((e=>{const t=e.value;return I(t)&&S(t)})).forEach((e=>_(e.value)))},Property(e){if(e.computed){const{key:t}=e;t&&A(t,m)&&_(t)}},RestElement(e){const t=e.argument;I(t)&&S(t)&&_(t)},ReturnStatement(e){const r=t.getFirstToken(e);F(e)||!e.argument||!T(r,e.argument)||"Literal"===e.argument.type&&e.argument.regex||_(e.argument)},SequenceExpression(e){const t=a(e);e.expressions.filter((e=>A(e,t))).forEach(_)},SwitchCase(e){e.test&&S(e.test)&&_(e.test)},SwitchStatement(e){S(e.discriminant)&&_(e.discriminant)},ThrowStatement(e){T(t.getFirstToken(e),e.argument)&&_(e.argument)},UnaryExpression:B,UpdateExpression(e){if(e.prefix)B(e);else{const{argument:r}=e,n=t.getLastToken(e);r.loc.end.line===n.loc.start.line?B(e):C(r)&&_(r)}},AwaitExpression:B,VariableDeclarator(e){!e.init||!A(e.init,m)||"Literal"===e.init.type&&e.init.regex||_(e.init)},WhileStatement(e){S(e.test)&&!k(e)&&_(e.test)},WithStatement(e){S(e.object)&&_(e.object)},YieldExpression(e){if(e.argument){const r=t.getFirstToken(e);(a(e.argument)>=a(e)&&T(r,e.argument)||C(e.argument))&&_(e.argument)}},ClassDeclaration:j,ClassExpression:j,SpreadElement:N,SpreadProperty:N,ExperimentalSpreadProperty:N,TemplateLiteral(e){e.expressions.filter((e=>e&&S(e))).forEach(_)},AssignmentPattern(e){const{left:t,right:r}=e;I(t)&&S(t)&&_(t),r&&A(r,m)&&_(r)}}}}},59951:(e,t,r)=>{"use strict";const n=r(67784),s=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary semicolons",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(e){const t=e.getSourceCode();function r(t){e.report({node:t,messageId:"unexpected",fix:r=>new n(r,e.getSourceCode()).retainSurroundingTokens(t).remove(t)})}function a(e){for(let n=e;"Punctuator"===n.type&&!s.isClosingBraceToken(n);n=t.getTokenAfter(n))s.isSemicolonToken(n)&&r(n)}return{EmptyStatement(e){const t=e.parent;-1===["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].indexOf(t.type)&&r(e)},ClassBody(e){a(t.getFirstToken(e,1))},MethodDefinition(e){a(t.getTokenAfter(e))}}}}},13409:e=>{"use strict";const t=/falls?\s?through/iu;function r(e){return e.reachable}e.exports={meta:{type:"problem",docs:{description:"disallow fallthrough of `case` statements",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""}},additionalProperties:!1}],messages:{case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(e){const n=e.options[0]||{};let s=null;const a=e.getSourceCode();let o=null,i=null;return i=n.commentPattern?new RegExp(n.commentPattern,"u"):t,{onCodePathStart(e){s=e},onCodePathEnd(){s=s.upper},SwitchCase(t){o&&!function(e,t,r,n){const s=r.getSourceCode();if(1===e.consequent.length&&"BlockStatement"===e.consequent[0].type){const t=s.getLastToken(e.consequent[0]),r=s.getCommentsBefore(t).pop();if(r&&n.test(r.value))return!0}const a=s.getCommentsBefore(t).pop();return Boolean(a&&n.test(a.value))}(o,t,e,i)&&e.report({messageId:t.test?"case":"default",node:t}),o=null},"SwitchCase:exit"(e){const t=a.getTokenAfter(e);s.currentSegments.some(r)&&(e.consequent.length>0||function(e,t){return t.loc.start.line>e.loc.end.line+1}(e,t))&&e.parent.cases[e.parent.cases.length-1]!==e&&(o=e)}}}}},45554:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow leading or trailing decimal points in numeric literals",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(e){const t=e.getSourceCode();return{Literal(r){"number"==typeof r.value&&(r.raw.startsWith(".")&&e.report({node:r,messageId:"leading",fix(e){const s=t.getTokenBefore(r),a=s&&s.range[1]===r.range[0]&&!n.canTokensBeAdjacent(s,`0${r.raw}`);return e.insertTextBefore(r,a?" 0":"0")}}),r.raw.indexOf(".")===r.raw.length-1&&e.report({node:r,messageId:"trailing",fix:e=>e.insertTextAfter(r,"0")}))}}}}},83607:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow reassigning `function` declarations",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){function t(t){var r;"FunctionName"===t.defs[0].type&&(r=t.references,n.getModifyingReferences(r).forEach((t=>{e.report({node:t.identifier,messageId:"isAFunction",data:{name:t.identifier.name}})})))}function r(r){e.getDeclaredVariables(r).forEach(t)}return{FunctionDeclaration:r,FunctionExpression:r}}}},43400:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow assignments to native objects or read-only global variables",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(e){const t=e.options[0],r=t&&t.exceptions||[];function n(t,r,n){const s=t.identifier;!1!==t.init||!t.isWrite()||0!==r&&n[r-1].identifier===s||e.report({node:s,messageId:"globalShouldNotBeModified",data:{name:s.name}})}function s(e){!1===e.writeable&&-1===r.indexOf(e.name)&&e.references.forEach(n)}return{Program(){e.getScope().variables.forEach(s)}}}}},71114:(e,t,r)=>{"use strict";const n=r(48411),s=/^(?:i|lastI)ndexOf$/u;function a(e){return"Literal"===e.type&&"number"==typeof e.value||"CallExpression"===e.type&&("Number"===e.callee.name||"parseInt"===e.callee.name||"parseFloat"===e.callee.name)}function o(e){return n.isStringLiteral(e)||"CallExpression"===e.type&&"Identifier"===e.callee.type&&"String"===e.callee.name}function i(e){return n.isStringLiteral(e)&&(""===e.value||"TemplateLiteral"===e.type&&1===e.quasis.length&&""===e.quasis[0].value.cooked)}function l(e){return i(e.left)?e.right:e.left}e.exports={meta:{type:"suggestion",docs:{description:"disallow shorthand type conversions",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean",default:!0},number:{type:"boolean",default:!0},string:{type:"boolean",default:!0},disallowTemplateShorthand:{type:"boolean",default:!1},allow:{type:"array",items:{enum:["~","!!","+","*"]},uniqueItems:!0}},additionalProperties:!1}],messages:{useRecommendation:"use `{{recommendation}}` instead."}},create(e){const t=function(e){return{boolean:!("boolean"in e)||e.boolean,number:!("number"in e)||e.number,string:!("string"in e)||e.string,disallowTemplateShorthand:"disallowTemplateShorthand"in e&&e.disallowTemplateShorthand,allow:e.allow||[]}}(e.options[0]||{}),r=e.getSourceCode();function c(t,s,a){e.report({node:t,messageId:"useRecommendation",data:{recommendation:s},fix(e){if(!a)return null;const o=r.getTokenBefore(t);return o&&o.range[1]===t.range[0]&&!n.canTokensBeAdjacent(o,s)?e.replaceText(t,` ${s}`):e.replaceText(t,s)}})}return{UnaryExpression(e){let o;if(o=t.allow.indexOf("!!")>=0,!o&&t.boolean&&function(e){return"!"===e.operator&&"UnaryExpression"===e.argument.type&&"!"===e.argument.operator}(e)&&c(e,`Boolean(${r.getText(e.argument.argument)})`,!0),o=t.allow.indexOf("~")>=0,!o&&t.boolean&&function(e){if("~"!==e.operator)return!1;const t=n.skipChainExpression(e.argument);return"CallExpression"===t.type&&n.isSpecificMemberAccess(t.callee,null,s)}(e)){const t="ChainExpression"===e.argument.type?">= 0":"!== -1";c(e,`${r.getText(e.argument)} ${t}`,!1)}o=t.allow.indexOf("+")>=0,o||!t.number||"+"!==e.operator||a(e.argument)||c(e,`Number(${r.getText(e.argument)})`,!0)},"BinaryExpression:exit"(e){let n;n=t.allow.indexOf("*")>=0;const s=!n&&t.number&&function(e){return"*"===e.operator&&("Literal"===e.left.type&&1===e.left.value||"Literal"===e.right.type&&1===e.right.value)}(e)&&function(e){const t=e.left,r=e.right;return"BinaryExpression"===r.type||a(r)?"BinaryExpression"===t.type||a(t)?null:t:r}(e);s&&c(e,`Number(${r.getText(s)})`,!0),n=t.allow.indexOf("+")>=0,!n&&t.string&&function(e){return"+"===e.operator&&(i(e.left)&&!o(e.right)||i(e.right)&&!o(e.left))}(e)&&c(e,`String(${r.getText(l(e))})`,!0)},AssignmentExpression(e){if(!(t.allow.indexOf("+")>=0)&&t.string&&function(e){return"+="===e.operator&&i(e.right)}(e)){const t=r.getText(l(e));c(e,`${t} = String(${t})`,!0)}},TemplateLiteral(e){t.disallowTemplateShorthand&&"TaggedTemplateExpression"!==e.parent.type&&1===e.expressions.length&&""===e.quasis[0].value.cooked&&""===e.quasis[1].value.cooked&&(o(e.expressions[0])||c(e,`String(${r.getText(e.expressions[0])})`,!0))}}}}},78939:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow declarations in the global scope",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(e){const t=e.options[0]&&!0===e.options[0].lexicalBindings;function r(t,r,n){e.report({node:t,messageId:r,data:{kind:n}})}return{Program(){const n=e.getScope();n.variables.forEach((e=>{const n=!1===e.writeable;!0===e.writeable||e.defs.forEach((e=>{const s=e.node;("FunctionName"===e.type||"Variable"===e.type&&"var"===e.parent.kind)&&(n?r(s,"redeclarationOfReadonlyGlobal"):r(s,"globalNonLexicalBinding","FunctionName"===e.type?"function":`'${e.parent.kind}'`)),t&&("ClassName"!==e.type&&("Variable"!==e.type||"let"!==e.parent.kind&&"const"!==e.parent.kind)||(n?r(s,"redeclarationOfReadonlyGlobal"):r(s,"globalLexicalBinding","ClassName"===e.type?"class":`'${e.parent.kind}'`)))}))})),n.implicit.variables.forEach((e=>{const t=n.set.get(e.name);let s;if(t){if(t.writeable)return;s="assignmentToReadonlyGlobal"}else s="globalVariableLeak";e.defs.forEach((e=>{r(e.node,s)}))}))}}}}},88997:(e,t,r)=>{"use strict";const n=r(48411),{getStaticValue:s}=r(49303);e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `eval()`-like methods",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(e){const t=Object.freeze(["global","window","globalThis"]),r=/^(?:set(?:Interval|Timeout)|execScript)$/u;function a(e){return"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type||"BinaryExpression"===e.type&&"+"===e.operator&&(a(e.left)||a(e.right))}function o(t){const[r]=t.arguments;if(r){const n=s(r,e.getScope());(n&&"string"==typeof n.value||a(r))&&e.report({node:t,messageId:"impliedEval"})}}function i(e){const{references:t,name:s}=e;t.forEach((e=>{let t=e.identifier.parent;for(;n.isSpecificMemberAccess(t,null,s);)t=t.parent;if(n.isSpecificMemberAccess(t,null,r)){const e="ChainExpression"===t.parent.type?t.parent:t,r=e.parent;"CallExpression"===r.type&&r.callee===e&&o(r)}}))}return{CallExpression(e){n.isSpecificId(e.callee,r)&&o(e)},"Program:exit"(){const r=e.getScope();t.map((e=>n.getVariableByName(r,e))).filter((e=>!!e&&0===e.defs.length)).forEach(i)}}}}},34916:(e,t,r)=>{"use strict";const{findVariable:n}=r(49303),s=r(48411),a=/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,o=/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u;function i(e,t){const{parent:r}=e;return"MemberExpression"===r.type&&r.object===e&&(function(e){const{parent:t}=e;return"AssignmentExpression"===t.type&&t.left===e||"ArrayPattern"===t.type||"Property"===t.type&&t.value===e&&"ObjectPattern"===t.parent.type||"RestElement"===t.type||"AssignmentPattern"===t.type&&t.left===e}(r)||function(e){const t="ChainExpression"===e.parent.type?e.parent:e,{parent:r}=t;return"UpdateExpression"===r.type&&r.argument===t||"UnaryExpression"===r.type&&"delete"===r.operator&&r.argument===t}(r)||function(e){const{parent:t}=e;return"ForInStatement"===t.type&&t.left===e||"ForOfStatement"===t.type&&t.left===e}(r))||function(e,t){const{parent:r}=e;if("CallExpression"!==r.type||r.arguments[0]!==e)return!1;const i=s.skipChainExpression(r.callee);if(!s.isSpecificMemberAccess(i,"Object",a)&&!s.isSpecificMemberAccess(i,"Reflect",o))return!1;const l=n(t,i.object);return null!==l&&"global"===l.scope.type}(e,t)}function l(e){let t=e.parent;for(;t&&"AssignmentExpression"!==t.type&&"UpdateExpression"!==t.type&&"UnaryExpression"!==t.type&&"CallExpression"!==t.type&&"ForInStatement"!==t.type&&"ForOfStatement"!==t.type;)t=t.parent;return t||e}e.exports={meta:{type:"problem",docs:{description:"disallow assigning to imported bindings",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create:e=>({ImportDeclaration(t){const r=e.getScope();for(const n of e.getDeclaredVariables(t)){const t=n.defs.some((e=>"ImportNamespaceSpecifier"===e.node.type));let s=null;for(const a of n.references){const n=a.identifier;n!==s&&(s=n,a.isWrite()?e.report({node:l(n),messageId:"readonly",data:{name:n.name}}):t&&i(n,r)&&e.report({node:l(n),messageId:"readonlyMember",data:{name:n.name}}))}}}})}},66296:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow inline comments after code",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){const t=e.getSourceCode(),r=e.options[0];let s;function a(r){const a=String(t.lines[r.loc.start.line-1]),o=String(t.lines[r.loc.end.line-1]),i=a.slice(0,r.loc.start.column).trim(),l=o.slice(r.loc.end.column).trim(),c=!i,u=!l;if(!(c&&u||s&&s.test(r.value))){if((c||"{"===i)&&(u||"}"===l)){const e=t.getNodeByRangeIndex(r.range[0]);if(e&&"JSXEmptyExpression"===e.type)return}n.isDirectiveComment(r)||e.report({node:r,messageId:"unexpectedInlineComment"})}}return r&&r.ignorePattern&&(s=new RegExp(r.ignorePattern,"u")),{Program(){t.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(a)}}}}},11245:(e,t,r)=>{"use strict";const n=r(48411),s=new Set(["Program","ExportNamedDeclaration","ExportDefaultDeclaration"]),a=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);e.exports={meta:{type:"problem",docs:{description:"disallow variable or `function` declarations in nested blocks",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-inner-declarations"},schema:[{enum:["functions","both"]}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(e){function t(t){const r=t.parent;if("BlockStatement"===r.type&&a.has(r.parent.type))return;if(s.has(r.type))return;const o=n.getUpperFunction(r);e.report({node:t,messageId:"moveDeclToRoot",data:{type:"FunctionDeclaration"===t.type?"function":"variable",body:null===o?"program":"function body"}})}return{FunctionDeclaration:t,VariableDeclaration(r){"both"===e.options[0]&&"var"===r.kind&&t(r)}}}}},30545:(e,t,r)=>{"use strict";const n=new(0,r(35372).RegExpValidator),s=/[gimuys]/gu,a=void 0;e.exports={meta:{type:"problem",docs:{description:"disallow invalid regular expression strings in `RegExp` constructors",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(e){const t=e.options[0];let r=null;if(t&&t.allowConstructorFlags){const e=t.allowConstructorFlags.join("").replace(s,"");e&&(r=new RegExp(`[${e}]`,"giu"))}function o(e){return e&&"Literal"===e.type&&"string"==typeof e.value}function i(e,t){try{return n.validatePattern(e,a,a,t),null}catch(e){return e.message}}return{"CallExpression, NewExpression"(t){if("Identifier"!==t.callee.type||"RegExp"!==t.callee.name||!o(t.arguments[0]))return;const s=t.arguments[0].value;let a=function(e){return e.arguments.length<2?"":o(e.arguments[1])?e.arguments[1].value:null}(t);a&&r&&(a=a.replace(r,""));const l=a&&function(e){try{return n.validateFlags(e),null}catch{return`Invalid flags supplied to RegExp constructor '${e}'`}}(a)||(null===a?i(s,!0)&&i(s,!1):i(s,a.includes("u")));l&&e.report({node:t,messageId:"regexMessage",data:{message:l}})}}}}},42678:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow `this` keywords outside of classes or class-like objects",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(e){const t=!1!==(e.options[0]||{}).capIsConstructor,r=[],s=e.getSourceCode();function a(t){r.push({init:!e.getScope().isStrict,node:t,valid:!0})}function o(){r.pop()}return r.getCurrent=function(){const e=this[this.length-1];return e.init||(e.init=!0,e.valid=!n.isDefaultThisBinding(e.node,s,{capIsConstructor:t})),e},{Program(t){const n=e.getScope(),s=e.parserOptions.ecmaFeatures||{};r.push({init:!0,node:t,valid:!(n.isStrict||"module"===t.sourceType||s.globalReturn&&n.childScopes[0].isStrict)})},"Program:exit"(){r.pop()},FunctionDeclaration:a,"FunctionDeclaration:exit":o,FunctionExpression:a,"FunctionExpression:exit":o,ThisExpression(t){const n=r.getCurrent();n&&!n.valid&&e.report({node:t,messageId:"unexpectedThis"})}}}}},94162:(e,t,r)=>{"use strict";const n=r(48411),s=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,a=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gmu,o=/[\u2028\u2029]/gmu,i=n.createGlobalLinebreakMatcher();e.exports={meta:{type:"problem",docs:{description:"disallow irregular whitespace",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean",default:!1},skipStrings:{type:"boolean",default:!0},skipTemplates:{type:"boolean",default:!1},skipRegExps:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(e){let t=[];const r=e.options[0]||{},n=!!r.skipComments,l=!1!==r.skipStrings,c=!!r.skipRegExps,u=!!r.skipTemplates,p=e.getSourceCode(),f=p.getAllComments();function d(e){const r=e.loc.start,n=e.loc.end;t=t.filter((({loc:{start:e}})=>e.line=n.column||e.line>n.line))}function h(e){const t=l&&"string"==typeof e.value,r=c&&Boolean(e.regex);(t||r)&&s.test(e.raw)&&d(e)}function m(e){s.test(e.value)&&d(e)}function g(){}const y={};return s.test(p.getText())?(y.Program=function(e){!function(e){p.lines.forEach(((r,n)=>{const s=n+1;let o;for(;null!==(o=a.exec(r));)t.push({node:e,messageId:"noIrregularWhitespace",loc:{start:{line:s,column:o.index},end:{line:s,column:o.index+o[0].length}}})}))}(e),function(e){const r=p.getText(),n=p.lines,s=r.match(i);let a,l=-1;for(;null!==(a=o.exec(r));){const r=s.indexOf(a[0],l+1)||0;t.push({node:e,messageId:"noIrregularWhitespace",loc:{start:{line:r+1,column:n[r].length},end:{line:r+2,column:0}}}),l=r}}(e)},y.Identifier=h,y.Literal=h,y.TemplateElement=u?function(e){"string"==typeof e.value.raw&&s.test(e.value.raw)&&d(e)}:g,y["Program:exit"]=function(){n&&f.forEach(m),t.forEach((t=>e.report(t)))}):y.Program=g,y}}},42648:(e,t,r)=>{"use strict";const{getStaticPropertyName:n}=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of the `__iterator__` property",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create:e=>({MemberExpression(t){"__iterator__"===n(t)&&e.report({node:t,messageId:"noIterator"})}})}},287:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow labels that share a name with a variable",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create:e=>({LabeledStatement(t){var r,s;r=e.getScope(),s=t.label.name,null!==n.getVariableByName(r,s)&&e.report({node:t,messageId:"identifierClashWithLabel"})}})}},23354:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow labeled statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean",default:!1},allowSwitch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(e){const t=e.options[0],r=t&&t.allowLoop,s=t&&t.allowSwitch;let a=null;function o(e){return n.isLoop(e)?"loop":"SwitchStatement"===e.type?"switch":"other"}function i(e){switch(e){case"loop":return r;case"switch":return s;default:return!1}}function l(e){let t=a;for(;t;){if(t.label===e)return t.kind;t=t.upper}return"other"}return{LabeledStatement(e){a={label:e.label.name,kind:o(e.body),upper:a}},"LabeledStatement:exit"(t){i(a.kind)||e.report({node:t,messageId:"unexpectedLabel"}),a=a.upper},BreakStatement(t){t.label&&!i(l(t.label.name))&&e.report({node:t,messageId:"unexpectedLabelInBreak"})},ContinueStatement(t){t.label&&!i(l(t.label.name))&&e.report({node:t,messageId:"unexpectedLabelInContinue"})}}}}},3653:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary nested blocks",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(e){const t=[];let r;function n(t){const r="BlockStatement"===t.parent.type?"redundantNestedBlock":"redundantBlock";e.report({node:t,messageId:r})}function s(e){return"BlockStatement"===e.parent.type||"Program"===e.parent.type||"SwitchCase"===e.parent.type&&!(e.parent.consequent[0]===e&&1===e.parent.consequent.length)}function a(){if(0===t.length)return;const r=e.getAncestors().pop();t[t.length-1]===r&&t.pop()}return r={BlockStatement(e){s(e)&&n(e)}},e.parserOptions.ecmaVersion>=6&&(r={BlockStatement(e){s(e)&&t.push(e)},"BlockStatement:exit"(e){t.length>0&&t[t.length-1]===e?(t.pop(),n(e)):"BlockStatement"===e.parent.type&&1===e.parent.body.length&&n(e)}},r.VariableDeclaration=function(e){"let"!==e.kind&&"const"!==e.kind||a()},r.FunctionDeclaration=function(){e.getScope().isStrict&&a()},r.ClassDeclaration=a),r}}},63202:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `if` statements as the only statement in `else` blocks",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(e){const t=e.getSourceCode();return{IfStatement(r){const n=e.getAncestors(),s=n.pop(),a=n.pop();s&&"BlockStatement"===s.type&&1===s.body.length&&a&&"IfStatement"===a.type&&s===a.alternate&&e.report({node:r,messageId:"unexpectedLonelyIf",fix(e){const n=t.getFirstToken(s),a=t.getLastToken(s),o=t.getTokenBefore(n),i=t.getTokenAfter(a),l=t.getLastToken(r.consequent),c=t.getText();return c.slice(n.range[1],r.range[0]).trim()||c.slice(r.range[1],a.range[0]).trim()||"BlockStatement"!==r.consequent.type&&";"!==l.value&&i&&(r.consequent.loc.end.line===i.loc.start.line||/^[([/+`-]/u.test(i.value)||"++"===l.value||"--"===l.value)?null:e.replaceTextRange([n.range[0],a.range[1]],(o.range[1]===n.range[0]?" ":"")+t.getText(r))}})}}}}},811:e=>{"use strict";function t(e){for(let t=e;t.parent;t=t.parent){const e=t.parent;switch(e.type){case"WhileStatement":case"DoWhileStatement":return e;case"ForStatement":if(e.init!==t)return e;break;case"ForInStatement":case"ForOfStatement":if(e.right!==t)return e;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null}}return null}e.exports={meta:{type:"suggestion",docs:{description:"disallow function declarations that contain unsafe references inside loop statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(e){function r(r){const n=t(r);if(!n)return;const s=e.getScope().through.filter((e=>!function(e,r){const n=r.resolved,s=n&&n.defs[0],a=s&&s.parent,o=a&&"VariableDeclaration"===a.type?a.kind:"";if("const"===o)return!0;if("let"===o&&a.range[0]>e.range[0]&&a.range[1]=n;)s=a,a=t(a);return s}(e,"let"===o?a:null).range[0];return Boolean(n)&&n.references.every((function(e){const t=e.identifier;return!e.isWrite()||n.scope.variableScope===e.from.variableScope&&t.range[0]e.identifier.name));s.length>0&&e.report({node:r,messageId:"unsafeRefs",data:{varNames:`'${s.join("', '")}'`}})}return{ArrowFunctionExpression:r,FunctionExpression:r,FunctionDeclaration:r}}}},38123:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow literal numbers that lose precision",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(e){function t(e){return e.raw.replace(/_/gu,"")}function r(e){return`${e.slice(0,1)}.${e.slice(1)}`}function n(e){return e.replace(/^0*/u,"")}function s(e){const t=e.replace("E","e").split("e"),s=t[0],a=e.includes(".")?function(e){const t=n(e);if(t.startsWith(".")){const e=t.split(".").pop(),s=n(e);return{magnitude:s.length-e.length-1,coefficient:r(s)}}return{magnitude:t.indexOf(".")-1,coefficient:r(t.replace(".",""))}}(s):function(e){const t=n(e).replace(/0*$/u,"");return{magnitude:e.startsWith("0")?e.length-2:e.length-1,coefficient:r(t)}}(s);return`${a.coefficient}e${t.length>1?parseInt(t[1],10)+a.magnitude:a.magnitude}`}return{Literal(r){r.value&&function(e){return"number"==typeof e.value}(r)&&function(e){return function(e){return["0x","0X","0b","0B","0o","0O"].every((t=>!e.raw.startsWith(t)))&&!/^0[0-7]+$/u.test(e.raw)}(e)?function(e){const r=s(t(e)),n=r.split("e")[0].replace(".","").length;return n>100||r!==s(e.value.toPrecision(n))}(e):function(e){const r=t(e).toUpperCase();let n=0;return n=r.startsWith("0B")?2:r.startsWith("0X")?16:8,!r.endsWith(e.value.toString(n).toUpperCase())}(e)}(r)&&e.report({messageId:"noLossOfPrecision",node:r})}}}}},78603:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return"string"==typeof e?BigInt(e.slice(0,-1)):e}e.exports={meta:{type:"suggestion",docs:{description:"disallow magic numbers",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(e){const t=e.options[0]||{},r=!!t.detectObjects,a=!!t.enforceConst,o=(t.ignore||[]).map(s),i=!!t.ignoreArrayIndexes,l=!!t.ignoreDefaultValues,c=r?[]:["ObjectExpression","Property","AssignmentExpression"];return{Literal(t){if(!n.isNumericLiteral(t))return;let r,s,u;"UnaryExpression"===t.parent.type&&"-"===t.parent.operator?(r=t.parent,s=-t.value,u=`-${t.raw}`):(r=t,s=t.value,u=t.raw);const p=r.parent;(function(e){return-1!==o.indexOf(e)})(s)||l&&function(e){const t=e.parent;return"AssignmentPattern"===t.type&&t.right===e}(r)||function(e){const t=e.parent;return"CallExpression"===t.type&&e===t.arguments[1]&&(n.isSpecificId(t.callee,"parseInt")||n.isSpecificMemberAccess(t.callee,"Number","parseInt"))}(r)||function(e){return 0===e.parent.type.indexOf("JSX")}(r)||i&&function(e,t){const r=e.parent;return"MemberExpression"===r.type&&r.property===e&&(Number.isInteger(t)||"bigint"==typeof t)&&t>=0&&t<4294967295}(r,s)||("VariableDeclarator"===p.type?a&&"const"!==p.parent.kind&&e.report({node:r,messageId:"useConst"}):(-1===c.indexOf(p.type)||"AssignmentExpression"===p.type&&"Identifier"===p.left.type)&&e.report({node:r,messageId:"noMagic",data:{raw:u}}))}}}}},13232:(e,t,r)=>{"use strict";const{CALL:n,CONSTRUCT:s,ReferenceTracker:a,getStringIfConstant:o}=r(49303),{RegExpParser:i,visitRegExpAST:l}=r(35372),{isCombiningCharacter:c,isEmojiModifier:u,isRegionalIndicatorSymbol:p,isSurrogatePair:f}=r(73732),d={surrogatePairWithoutUFlag:e=>e.some(((t,r)=>0!==r&&f(e[r-1],t))),combiningClass:e=>e.some(((t,r)=>0!==r&&c(t)&&!c(e[r-1]))),emojiModifier:e=>e.some(((t,r)=>0!==r&&u(t)&&!u(e[r-1]))),regionalIndicatorSymbol:e=>e.some(((t,r)=>0!==r&&p(t)&&p(e[r-1]))),zwj(e){const t=e.length-1;return e.some(((r,n)=>0!==n&&n!==t&&8205===r&&8205!==e[n-1]&&8205!==e[n+1]))}},h=Object.keys(d);e.exports={meta:{type:"problem",docs:{description:"disallow characters which are made with multiple code points in character class syntax",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-misleading-character-class"},schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class."}},create(e){const t=new i;function r(r,n,s){const a={surrogatePairWithoutUFlag:!1,combiningClass:!1,variationSelector:!1,emojiModifier:!1,regionalIndicatorSymbol:!1,zwj:!1};let o;try{o=t.parsePattern(n,0,n.length,s.includes("u"))}catch{return}l(o,{onCharacterClassEnter(e){for(const t of function*(e){let t=[];for(const r of e)switch(r.type){case"Character":t.push(r.value);break;case"CharacterClassRange":t.push(r.min.value),yield t,t=[r.max.value];break;case"CharacterSet":t.length>0&&(yield t,t=[])}t.length>0&&(yield t)}(e.elements))for(const e of h)a[e]=a[e]||d[e](t)}});for(const t of h)a[t]&&e.report({node:r,messageId:t})}return{"Literal[regex]"(e){r(e,e.regex.pattern,e.regex.flags)},Program(){const t=e.getScope(),i=new a(t);for(const{node:e}of i.iterateGlobalReferences({RegExp:{[n]:!0,[s]:!0}})){const[n,s]=e.arguments,a=o(n,t),i=o(s,t);"string"==typeof a&&r(e,a,i||"")}}}}}},69928:(e,t,r)=>{"use strict";const n=r(48411),s=["+","-","*","/","%","**"],a=["&","|","^","~","<<",">>",">>>"],o=["==","!=","===","!==",">",">=","<","<="],i=["&&","||"],l=["in","instanceof"],c=[].concat(s,a,o,i,l,["?:"],["??"]),u=[s,a,o,i,l],p=/^(?:Binary|Logical|Conditional)Expression$/u;function f(e){return"ConditionalExpression"===e.type?e.test:e.left}e.exports={meta:{type:"suggestion",docs:{description:"disallow mixed binary operators",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:c},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(e){const t=e.getSourceCode(),r=function(e={}){return{groups:e.groups&&e.groups.length>0?e.groups:u,allowSamePrecedence:!1!==e.allowSamePrecedence}}(e.options[0]);function s(e){return t.getTokenAfter(f(e),n.isNotClosingParenToken)}function a(a){p.test(a.parent.type)&&function(e){return e.operator!==e.parent.operator&&!n.isParenthesised(t,e)}(a)&&!function(e){const t=e,s=e.parent;return a=r.groups,o=t.operator,i="ConditionalExpression"===s.type?"?:":s.operator,!a.some((e=>-1!==e.indexOf(o)&&-1!==e.indexOf(i)))||r.allowSamePrecedence&&n.getPrecedence(t)===n.getPrecedence(s);var a,o,i}(a)&&function(t){const r=t.parent,n=f(r)===t?t:r,a=f(r)!==t?t:r,o={leftOperator:n.operator||"?:",rightOperator:a.operator||"?:"};e.report({node:n,loc:s(n).loc,messageId:"unexpectedMixedOperator",data:o}),e.report({node:a,loc:s(a).loc,messageId:"unexpectedMixedOperator",data:o})}(a)}return{BinaryExpression:a,LogicalExpression:a}}}},74331:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow `require` calls to be mixed with regular variable declarations",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(e){const t=e.options[0];let r=!1,n=!1;"object"==typeof t?(r=t.grouping,n=t.allowCall):r=!!t;const s=["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"],a="require",o="uninitialized",i="other",l="computed";function c(e){return e?"CallExpression"===e.type&&"Identifier"===e.callee.type&&"require"===e.callee.name?a:n&&"CallExpression"===e.type&&"CallExpression"===e.callee.type?c(e.callee):"MemberExpression"===e.type?c(e.object):i:o}function u(e){if("MemberExpression"===e.type)return u(e.object);if(0===e.arguments.length)return l;const t=e.arguments[0];return"Literal"!==t.type||"string"!=typeof t.value?l:-1!==s.indexOf(t.value)?"core":/^\.{0,2}\//u.test(t.value)?"file":"module"}function p(e){const t={};return e.forEach((e=>{c(e.init)===a&&(t[u(e.init)]=!0)})),Object.keys(t).length<=1}return{VariableDeclaration(t){!function(e){const t={};return e.forEach((e=>{const r=c(e.init);t[r]=!0})),!(!t[a]||!t[o]&&!t[i])}(t.declarations)?r&&!p(t.declarations)&&e.report({node:t,messageId:"noMixCoreModuleFileComputed"}):e.report({node:t,messageId:"noMixRequire"})}}}}},11110:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"disallow mixed spaces and tabs for indentation",category:"Stylistic Issues",recommended:!0,url:"https://eslint.org/docs/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(e){const t=e.getSourceCode();let r;switch(e.options[0]){case!0:case"smart-tabs":r=!0;break;default:r=!1}return{"Program:exit"(n){const s=t.lines,a=t.getAllComments(),o=new Set;a.forEach((e=>{for(let t=e.loc.start.line+1;t<=e.loc.end.line;t++)o.add(t)}));let i=/^(?=( +|\t+))\1(?:\t| )/u;r&&(i=/^(?=(\t*))\1(?=( +))\2\t/u),s.forEach(((r,s)=>{const a=i.exec(r);if(a){const r=s+1,i={start:{line:r,column:a[0].length-2},end:{line:r,column:a[0].length}};if(!o.has(r)){const r=t.getNodeByRangeIndex(t.getIndexFromLoc(i.start));r&&["Literal","TemplateElement"].includes(r.type)||e.report({node:n,loc:i,messageId:"mixedSpacesAndTabs"})}}}))}}}}},58526:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow use of chained assignment expressions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(e){const t=(e.options[0]||{ignoreNonDeclaration:!1}).ignoreNonDeclaration?["VariableDeclarator"]:["AssignmentExpression","VariableDeclarator"];return{AssignmentExpression(r){-1!==t.indexOf(r.parent.type)&&e.report({node:r,messageId:"unexpectedChain"})}}}}},12222:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"disallow multiple spaces",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},s=r.ignoreEOLComments,a=Object.assign({Property:!0},r.exceptions),o=Object.keys(a).filter((e=>a[e])).length>0;function i(e){const t=e.value.split("\n"),r=t[0],n=`${r.slice(0,12)}...`;return 1===t.length&&r.length<=12?r:n}return{Program(){t.tokensAndComments.forEach(((r,l,c)=>{if(l===c.length-1)return;const u=c[l+1];if(!t.text.slice(r.range[1],u.range[0]).includes(" ")||r.loc.end.linee.replaceTextRange([r.range[1],u.range[0]]," ")})}))}}}}},83037:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow multiline strings",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create:e=>({Literal(t){n.LINEBREAK_MATCHER.test(t.raw)&&!function(e){return 0===e.type.indexOf("JSX")}(t.parent)&&e.report({node:t,messageId:"multilineString"})}})}},41095:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"disallow multiple empty lines",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(e){let t=2,r=t,n=t;e.options.length&&(t=e.options[0].max,r=void 0!==e.options[0].maxEOF?e.options[0].maxEOF:t,n=void 0!==e.options[0].maxBOF?e.options[0].maxBOF:t);const s=e.getSourceCode(),a=""===s.lines[s.lines.length-1]?s.lines.slice(0,-1):s.lines,o=new Set;return{TemplateLiteral(e){e.quasis.forEach((e=>{for(let t=e.loc.start.line;ta.reduce(((e,t,r)=>((t.trim()||o.has(r+1))&&e.push(r+1),e)),[]).concat(a.length+1).reduce(((o,l)=>{let c,u;return 0===o?(c="blankBeginningOfFile",u=n):l===a.length+1?(c="blankEndOfFile",u=r):(c="consecutiveBlank",u=t),l-o-1>u&&e.report({node:i,loc:{start:{line:o+u+1,column:0},end:{line:l,column:0}},messageId:c,data:{max:u,pluralizedLines:1===u?"line":"lines"},fix(e){const t=s.getIndexFromLoc({line:o+1,column:0}),r=l-u,n=r<=a.length?s.getIndexFromLoc({line:r,column:0}):s.text.length;return e.removeRange([t,n])}}),l}),0)}}}},61673:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow assignments to native objects or read-only global variables",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-native-reassign"},deprecated:!0,replacedBy:["no-global-assign"],schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(e){const t=e.options[0],r=t&&t.exceptions||[];function n(t,r,n){const s=t.identifier;!1!==t.init||!t.isWrite()||0!==r&&n[r-1].identifier===s||e.report({node:s,messageId:"nativeReassign",data:s})}function s(e){!1===e.writeable&&-1===r.indexOf(e.name)&&e.references.forEach(n)}return{Program(){e.getScope().variables.forEach(s)}}}}},14733:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow negated conditions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(e){function t(e){return"UnaryExpression"===(t=e.test).type&&"!"===t.operator||function(e){return"BinaryExpression"===e.type&&("!="===e.operator||"!=="===e.operator)}(e.test);var t}return{IfStatement(r){(function(e){return e.alternate&&"IfStatement"!==e.alternate.type})(r)&&t(r)&&e.report({node:r,messageId:"unexpectedNegated"})},ConditionalExpression(r){t(r)&&e.report({node:r,messageId:"unexpectedNegated"})}}}}},85320:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow negating the left operand in `in` expressions",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create:e=>({BinaryExpression(t){"in"===t.operator&&"UnaryExpression"===t.left.type&&"!"===t.left.operator&&e.report({node:t,messageId:"negatedLHS"})}})}},66538:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow nested ternary expressions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create:e=>({ConditionalExpression(t){"ConditionalExpression"!==t.alternate.type&&"ConditionalExpression"!==t.consequent.type||e.report({node:t,messageId:"noNestedTernary"})}})}},41536:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `new` operators with the `Function` object",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create:e=>({"Program:exit"(){const t=e.getScope().set.get("Function");t&&0===t.defs.length&&t.references.forEach((t=>{const r=t.identifier,{parent:n}=r;!n||"NewExpression"!==n.type&&"CallExpression"!==n.type||r!==n.callee||e.report({node:n,messageId:"noFunctionConstructor"})}))}})}},37570:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow `Object` constructors",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-new-object"},schema:[],messages:{preferLiteral:"The object literal notation {} is preferrable."}},create:e=>({NewExpression(t){const r=n.getVariableByName(e.getScope(),t.callee.name);r&&r.identifiers.length>0||"Object"===t.callee.name&&e.report({node:t,messageId:"preferLiteral"})}})}},23610:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow `new` operators with calls to `require`",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create:e=>({NewExpression(t){"Identifier"===t.callee.type&&"require"===t.callee.name&&e.report({node:t,messageId:"noNewRequire"})}})}},22877:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow `new` operators with the `Symbol` object",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/no-new-symbol"},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create:e=>({"Program:exit"(){const t=e.getScope().set.get("Symbol");t&&0===t.defs.length&&t.references.forEach((t=>{const r=t.identifier,n=r.parent;n&&"NewExpression"===n.type&&n.callee===r&&e.report({node:r,messageId:"noNewSymbol"})}))}})}},17450:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `new` operators with the `String`, `Number`, and `Boolean` objects",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create:e=>({NewExpression(t){["String","Number","Boolean"].indexOf(t.callee.name)>-1&&e.report({node:t,messageId:"noConstructor",data:{fn:t.callee.name}})}})}},92753:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `new` operators outside of assignments or comparisons",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create:e=>({"ExpressionStatement > NewExpression"(t){e.report({node:t.parent,messageId:"noNewStatement"})}})}},85224:e=>{"use strict";const t=/\\[89]/u;function r(e){return`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`}e.exports={meta:{type:"suggestion",docs:{description:"disallow `\\8` and `\\9` escape sequences in string literals",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-nonoctal-decimal-escape",suggestion:!0},schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(e){const n=e.getSourceCode();function s(e,t,r){return{messageId:e,data:{original:n.getText().slice(...t),replacement:r},fix:e=>e.replaceTextRange(t,r)}}return{Literal(a){if("string"!=typeof a.value)return;if(!t.test(a.raw))return;const o=/(?:[^\\]|(?\\.))*?(?\\[89])/suy;let i;for(;i=o.exec(a.raw);){const{previousEscape:t,decimalEscape:o}=i.groups,l=a.range[0]+i.index+i[0].length,c=l-o.length,u=[c,l],p=[];"\\0"===t?p.push(s("refactor",[c-t.length,l],`${r("\0")}${o[1]}`),s("refactor",u,r(o[1]))):p.push(s("refactor",u,o[1])),p.push(s("escapeBackslash",u,`\\${o}`)),e.report({node:a,loc:{start:n.getLocFromIndex(c),end:n.getLocFromIndex(l)},messageId:"decimalEscape",data:{decimalEscape:o},suggest:p})}}}}}},11877:(e,t,r)=>{"use strict";const{CALL:n,CONSTRUCT:s,ReferenceTracker:a}=r(49303),o=r(48411).getStaticPropertyName,i=["Atomics","JSON","Math","Reflect"];function l(e){return"ChainExpression"===e.type?l(e.expression):"MemberExpression"===e.type?o(e):e.name}e.exports={meta:{type:"problem",docs:{description:"disallow calling global object properties as functions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create:e=>({Program(){const t=e.getScope(),r=new a(t),o={};for(const e of i)o[e]={[n]:!0,[s]:!0};for(const{node:t,path:n}of r.iterateGlobalReferences(o)){const r=l(t.callee),s=n[0],a=r===s?"unexpectedCall":"unexpectedRefCall";e.report({node:t,messageId:a,data:{name:r,ref:s}})}}})}},87944:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow octal escape sequences in string literals",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create:e=>({Literal(t){if("string"!=typeof t.value)return;const r=t.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);r&&e.report({node:t,messageId:"octalEscapeSequence",data:{sequence:r[1]}})}})}},56981:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow octal literals",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-octal"},schema:[],messages:{noOcatal:"Octal literals should not be used."}},create:e=>({Literal(t){"number"==typeof t.value&&/^0[0-9]/u.test(t.raw)&&e.report({node:t,messageId:"noOcatal"})}})}},95776:e=>{"use strict";const t=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;e.exports={meta:{type:"suggestion",docs:{description:"disallow reassigning `function` parameters",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(e){const r=e.options[0]&&e.options[0].props,n=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],s=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[];function a(a,o,i){const l=a.identifier;var c;!l||a.init||0!==o&&i[o-1].identifier===l||(a.isWrite()?e.report({node:l,messageId:"assignmentToFunctionParam",data:{name:l.name}}):r&&function(e){let r=e.identifier,n=r.parent;for(;n&&(!t.test(n.type)||"ForInStatement"===n.type||"ForOfStatement"===n.type);){switch(n.type){case"AssignmentExpression":case"ForInStatement":case"ForOfStatement":return n.left===r;case"UpdateExpression":return!0;case"UnaryExpression":if("delete"===n.operator)return!0;break;case"CallExpression":if(n.callee!==r)return!1;break;case"MemberExpression":if(n.property===r)return!1;break;case"Property":if(n.key===r)return!1;break;case"ConditionalExpression":if(n.test===r)return!1}r=n,n=r.parent}return!1}(a)&&(c=l.name,!n.includes(c)&&!s.some((e=>new RegExp(e,"u").test(c))))&&e.report({node:l,messageId:"assignmentToFunctionParamProp",data:{name:l.name}}))}function o(e){"Parameter"===e.defs[0].type&&e.references.forEach(a)}function i(t){e.getDeclaredVariables(t).forEach(o)}return{"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}}},55919:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow string concatenation with `__dirname` and `__filename`",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(e){const t=/^__(?:dir|file)name$/u;return{BinaryExpression(r){const n=r.left,s=r.right;"+"===r.operator&&("Identifier"===n.type&&t.test(n.name)||"Identifier"===s.type&&t.test(s.name))&&e.report({node:r,messageId:"usePathFunctions"})}}}}},7191:e=>{"use strict";function t(e){const r=e.parent;return"SequenceExpression"===r.type?t(r):function(e){const t=e.parent;return"ForStatement"===t.type&&t.update===e}(e)}e.exports={meta:{type:"suggestion",docs:{description:"disallow the unary operators `++` and `--`",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(e){const r=e.options[0];let n=!1;return"object"==typeof r&&(n=!0===r.allowForLoopAfterthoughts),{UpdateExpression(r){n&&t(r)||e.report({node:r,messageId:"unexpectedUnaryOp",data:{operator:r.operator}})}}}}},92128:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow the use of `process.env`",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create:e=>({MemberExpression(t){const r=t.object.name,n=t.property.name;"process"===r&&!t.computed&&n&&"env"===n&&e.report({node:t,messageId:"unexpectedProcessEnv"})}})}},94317:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow the use of `process.exit()`",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create:e=>({"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(t){e.report({node:t.parent,messageId:"noProcessExit"})}})}},53549:(e,t,r)=>{"use strict";const{findVariable:n}=r(49303),s=new Set(["ArrowFunctionExpression","FunctionExpression"]);function a(e,t){const r=e.parent;return"NewExpression"===r.type&&r.arguments[0]===e&&"Identifier"===r.callee.type&&"Promise"===r.callee.name&&function(e,t){const r=n(t,e);return null!==r&&"global"===r.scope.type&&0===r.defs.length}(r.callee,function(e){const t=e.upper;return"function-expression-name"===t.type?t.upper:t}(t))}e.exports={meta:{type:"problem",docs:{description:"disallow returning values from Promise executor functions",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-promise-executor-return"},schema:[],messages:{returnsValue:"Return values from promise executor functions cannot be read."}},create(e){let t=null;function r(t){e.report({node:t,messageId:"returnsValue"})}return{onCodePathStart(n,o){t={upper:t,shouldCheck:s.has(o.type)&&a(o,e.getScope())},t.shouldCheck&&"ArrowFunctionExpression"===o.type&&o.expression&&r(o.body)},onCodePathEnd(){t=t.upper},ReturnStatement(e){t.shouldCheck&&e.argument&&r(e)}}}}},12910:(e,t,r)=>{"use strict";const{getStaticPropertyName:n}=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of the `__proto__` property",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create:e=>({MemberExpression(t){"__proto__"===n(t)&&e.report({node:t,messageId:"unexpectedProto"})}})}},21795:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow calling some `Object.prototype` methods directly on objects",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-prototype-builtins"},schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object."}},create(e){const t=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"];return{CallExpression:function(r){const s=n.skipChainExpression(r.callee);if("MemberExpression"!==s.type)return;const a=n.getStaticPropertyName(s);null!==a&&t.indexOf(a)>-1&&e.report({messageId:"prototypeBuildIn",loc:s.property.loc,data:{prop:a},node:r})}}}}},41459:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow variable redeclaration",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!0}},additionalProperties:!1}]},create(e){const t=Boolean(0===e.options.length||e.options[0].builtinGlobals),r=e.getSourceCode();function*s(e){!t||"readonly"!==e.eslintImplicitGlobalSetting&&"writable"!==e.eslintImplicitGlobalSetting||(yield{type:"builtin"});for(const t of e.identifiers)yield{type:"syntax",node:t,loc:t.loc};if(e.eslintExplicitGlobalComments)for(const t of e.eslintExplicitGlobalComments)yield{type:"comment",node:t,loc:n.getNameLocationInGlobalDirectiveComment(r,t,e.name)}}function a(t){for(const r of t.variables){const[t,...n]=s(r);if(0===n.length)continue;const a="builtin"===t.type?"redeclaredAsBuiltin":"redeclaredBySyntax",o={id:r.name};for(const{type:r,node:s,loc:i}of n){const n=r===t.type?"redeclared":a;e.report({node:s,loc:i,messageId:n,data:o})}}}function o(t){const r=e.getScope();r.block===t&&a(r)}return{Program(){const t=e.getScope();a(t),"global"===t.type&&t.childScopes[0]&&t.block===t.childScopes[0].block&&a(t.childScopes[0])},FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o,BlockStatement:o,ForStatement:o,ForInStatement:o,ForOfStatement:o,SwitchStatement:o}}}},88576:(e,t,r)=>{"use strict";const n=r(48411),s=r(35372),a=new s.RegExpParser,o=/ {2}/u;function i(e){return e&&"Literal"===e.type&&"string"==typeof e.value}e.exports={meta:{type:"suggestion",docs:{description:"disallow multiple spaces in regular expressions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(e){function t(t,r,n,i,l){if(!o.test(n))return;const c=[];let u;try{u=a.parsePattern(r,0,r.length,l.includes("u"))}catch{return}s.visitRegExpAST(u,{onCharacterClassEnter(e){c.push(e)}});const p=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu;let f;for(;f=p.exec(r);){const{1:{length:s},index:a}=f;if(c.every((({start:e,end:t})=>ar!==n?null:e.replaceTextRange([i+a,i+a+s],` {${s}}`)})}}function r(r){const s=e.getScope(),a=n.getVariableByName(s,"RegExp"),o=a&&a.defs.length>0,l=r.arguments[0],c=r.arguments[1];"Identifier"===r.callee.type&&"RegExp"===r.callee.name&&i(l)&&!o&&t(r,l.value,l.raw.slice(1,-1),l.range[0]+1,i(c)?c.value:"")}return{Literal:function(e){if(e.regex){const r=e.regex.pattern,n=e.raw.slice(1,e.raw.lastIndexOf("/"));t(e,r,n,e.range[0]+1,e.regex.flags)}},CallExpression:r,NewExpression:r}}}},21515:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow specified names in exports",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-exports"},schema:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name."}},create(e){const t=new Set(e.options[0]&&e.options[0].restrictedNamedExports);function r(r){const n=r.name;t.has(n)&&e.report({node:r,messageId:"restrictedNamed",data:{name:n}})}return{ExportAllDeclaration(e){e.exported&&r(e.exported)},ExportNamedDeclaration(t){const n=t.declaration;n?"FunctionDeclaration"===n.type||"ClassDeclaration"===n.type?r(n.id):"VariableDeclaration"===n.type&&e.getDeclaredVariables(n).map((e=>e.defs.find((e=>e.parent===n)))).map((e=>e.name)).forEach(r):t.specifiers.map((e=>e.exported)).forEach(r)}}}}},89503:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow specified global variables",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-globals"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(e){if(0===e.options.length)return{};const t=e.options.reduce(((e,t)=>("string"==typeof t?e[t]=null:e[t.name]=t.message,e)),{});function r(r){const n=r.identifier.name,s=t[n],a=s?"customMessage":"defaultMessage";e.report({node:r.identifier,messageId:a,data:{name:n,customMessage:s}})}function n(e){return Object.prototype.hasOwnProperty.call(t,e)}return{Program(){const t=e.getScope();t.variables.forEach((e=>{!e.defs.length&&n(e.name)&&e.references.forEach(r)})),t.through.forEach((e=>{n(e.identifier.name)&&r(e)}))}}}}},34454:(e,t,r)=>{"use strict";const n=r(34458),s={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};e.exports={meta:{type:"suggestion",docs:{description:"disallow specified modules when loaded by `import`",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",everything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}"},schema:{anyOf:[s,{type:"array",items:[{type:"object",properties:{paths:s,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},message:{type:"string",minLength:1}},additionalProperties:!1,required:["group"]},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(e){const t=e.getSourceCode(),r=Array.isArray(e.options)?e.options:[],s="object"==typeof r[0]&&(Object.prototype.hasOwnProperty.call(r[0],"paths")||Object.prototype.hasOwnProperty.call(r[0],"patterns")),a=(s?r[0].paths:e.options)||[],o=a.reduce(((e,t)=>("string"==typeof t?e[t]={message:null}:e[t.name]={message:t.message,importNames:t.importNames},e)),{}),i=(s?r[0].patterns:[])||[],l=i.length>0&&"string"==typeof i[0]?[{matcher:n().add(i)}]:i.map((({group:e,message:t})=>({matcher:n().add(e),customMessage:t})));if(0===Object.keys(a).length&&0===l.length)return{};function c(r){const n=r.source.value.trim(),s=new Map;if("ExportAllDeclaration"===r.type){const e=t.getFirstToken(r,1);s.set("*",[{loc:e.loc}])}else if(r.specifiers)for(const e of r.specifiers){let t;const r={loc:e.loc};"ImportDefaultSpecifier"===e.type?t="default":"ImportNamespaceSpecifier"===e.type?t="*":e.imported?t=e.imported.name:e.local&&(t=e.local.name),t&&(s.has(t)?s.get(t).push(r):s.set(t,[r]))}!function(t,r,n){if(!Object.prototype.hasOwnProperty.call(o,t))return;const s=o[t].message,a=o[t].importNames;if(a){if(r.has("*")){const o=r.get("*")[0];e.report({node:n,messageId:s?"everythingWithCustomMessage":"everything",loc:o.loc,data:{importSource:t,importNames:a,customMessage:s}})}a.forEach((a=>{r.has(a)&&r.get(a).forEach((r=>{e.report({node:n,messageId:s?"importNameWithCustomMessage":"importName",loc:r.loc,data:{importSource:t,customMessage:s,importName:a}})}))}))}else e.report({node:n,messageId:s?"pathWithCustomMessage":"path",data:{importSource:t,customMessage:s}})}(n,s,r),l.forEach((t=>{(function(e,t){return t.matcher.ignores(e)})(n,t)&&function(t,r){const n=t.source.value.trim();e.report({node:t,messageId:r.customMessage?"patternWithCustomMessage":"patterns",data:{importSource:n,customMessage:r.customMessage}})}(r,t)}))}return{ImportDeclaration:c,ExportNamedDeclaration(e){e.source&&c(e)},ExportAllDeclaration:c}}}},27060:(e,t,r)=>{"use strict";const n=r(34458),s={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow specified modules when loaded by `require`",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-modules"},schema:{anyOf:[s,{type:"array",items:{type:"object",properties:{paths:s,patterns:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(e){const t=Array.isArray(e.options)?e.options:[],r="object"==typeof t[0]&&(Object.prototype.hasOwnProperty.call(t[0],"paths")||Object.prototype.hasOwnProperty.call(t[0],"patterns")),s=(r?t[0].paths:e.options)||[],a=(r?t[0].patterns:[])||[],o=s.reduce(((e,t)=>("string"==typeof t?e[t]=null:e[t.name]=t.message,e)),{});if(0===Object.keys(s).length&&0===a.length)return{};const i=n().add(a);return{CallExpression(t){if(function(e){return"Identifier"===e.callee.type&&"require"===e.callee.name}(t)&&t.arguments.length){const r=function(e){return function(e){return e&&"Literal"===e.type&&"string"==typeof e.value}(e)?e.value.trim():function(e){return e&&"TemplateLiteral"===e.type&&0===e.expressions.length}(e)?e.quasis[0].value.cooked.trim():null}(t.arguments[0]);r&&(function(e){return Object.prototype.hasOwnProperty.call(o,e)}(r)&&function(t,r){const n=o[r],s=n?"customMessage":"defaultMessage";e.report({node:t,messageId:s,data:{name:r,customMessage:n}})}(t,r),a.length>0&&i.ignores(r)&&e.report({node:t,messageId:"patternMessage",data:{name:r}}))}}}}}},8400:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow certain properties on certain objects",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-properties"},schema:{type:"array",items:{anyOf:[{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["object"]},{type:"object",properties:{object:{type:"string"},property:{type:"string"},message:{type:"string"}},additionalProperties:!1,required:["property"]}]},uniqueItems:!0},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{message}}"}},create(e){const t=e.options;if(0===t.length)return{};const r=new Map,s=new Map,a=new Map;function o(t,n,o){if(null===o)return;const i=r.get(n),l=i?i.get(o):s.get(n),c=a.get(o);if(l){const r=l.message?` ${l.message}`:"";e.report({node:t,messageId:"restrictedObjectProperty",data:{objectName:n,propertyName:o,message:r}})}else if(c){const r=c.message?` ${c.message}`:"";e.report({node:t,messageId:"restrictedProperty",data:{propertyName:o,message:r}})}}function i(e){if("Identifier"===e.right.type){const t=e.right.name;"ObjectPattern"===e.left.type&&e.left.properties.forEach((r=>{o(e.left,t,n.getStaticPropertyName(r))}))}}return t.forEach((e=>{const t=e.object,n=e.property;void 0===t?a.set(n,{message:e.message}):void 0===n?s.set(t,{message:e.message}):(r.has(t)||r.set(t,new Map),r.get(t).set(n,{message:e.message}))})),{MemberExpression(e){o(e,e.object&&e.object.name,n.getStaticPropertyName(e))},VariableDeclarator(e){if(e.init&&"Identifier"===e.init.type){const t=e.init.name;"ObjectPattern"===e.id.type&&e.id.properties.forEach((r=>{o(e.id,t,n.getStaticPropertyName(r))}))}},AssignmentExpression:i,AssignmentPattern:i}}}},9052:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow specified syntax",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},messages:{restrictedSyntax:"{{message}}"}},create:e=>e.options.reduce(((t,r)=>{const n="string"==typeof r,s=!n&&Boolean(r.message),a=n?r:r.selector,o=s?r.message:`Using '${a}' is not allowed.`;return Object.assign(t,{[a](t){e.report({node:t,messageId:"restrictedSyntax",data:{message:o}})}})}),{})}},4268:(e,t,r)=>{"use strict";const n=r(48411),s=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;e.exports={meta:{type:"suggestion",docs:{description:"disallow assignment operators in `return` statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(e){const t="except-parens"!==(e.options[0]||"except-parens"),r=e.getSourceCode();return{AssignmentExpression(a){if(!t&&n.isParenthesised(r,a))return;let o=a,i=o.parent;for(;i&&!s.test(i.type);)o=i,i=i.parent;i&&"ReturnStatement"===i.type?e.report({node:i,messageId:"returnAssignment"}):i&&"ArrowFunctionExpression"===i.type&&i.body===o&&e.report({node:i,messageId:"arrowAssignment"})}}}}},28603:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary `return await`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-return-await"},fixable:null,schema:[],messages:{redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(e){let t=e;for(;!n.isFunction(t)&&"Program"!==t.type;){if("TryStatement"===t.parent.type&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}function r(e){return"ArrowFunctionExpression"===e.parent.type||("ReturnStatement"===e.parent.type?!t(e.parent):"ConditionalExpression"!==e.parent.type||e!==e.parent.consequent&&e!==e.parent.alternate?("LogicalExpression"===e.parent.type&&e===e.parent.right||"SequenceExpression"===e.parent.type&&e===e.parent.expressions[e.parent.expressions.length-1])&&r(e.parent):r(e.parent))}return{AwaitExpression(n){r(n)&&!t(n)&&function(t){e.report({node:e.getSourceCode().getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait"})}(n)}}}}},72372:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow `javascript:` urls",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function t(t){const r=n.getStaticStringValue(t);"string"==typeof r&&0===r.toLowerCase().indexOf("javascript:")&&e.report({node:t,messageId:"unexpectedScriptURL"})}return{Literal(e){e.value&&"string"==typeof e.value&&t(e)},TemplateLiteral(e){e.parent&&"TaggedTemplateExpression"===e.parent.type||t(e)}}}}},37366:(e,t,r)=>{"use strict";const n=r(48411),s=/\s+/gu;function a(e,t,r,s){if(e&&t)if("Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name)s(t);else if("ArrayPattern"===e.type&&"ArrayExpression"===t.type){const n=Math.min(e.elements.length,t.elements.length);for(let o=0;o=1){let n=0;for(let e=t.properties.length-1;e>=0;--e){const r=t.properties[e].type;if("SpreadElement"===r||"ExperimentalSpreadProperty"===r){n=e+1;break}}for(let o=0;o","<",">=","<="]).has(r.operator)&&function(e,r){const n=t.getTokens(e),s=t.getTokens(r);return n.length===s.length&&n.every(((e,t)=>e.type===s[t].type&&e.value===s[t].value))}(r.left,r.right)&&e.report({node:r,messageId:"comparingToSelf"})}}}}},97783:(e,t,r)=>{"use strict";const n=r(48411),s={allowInParentheses:!0};e.exports={meta:{type:"suggestion",docs:{description:"disallow comma operators",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-sequences"},schema:[{properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(e){const t=Object.assign({},s,e.options[0]),r=e.getSourceCode(),a={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function o(e){return n.isParenthesised(r,e)}return{SequenceExpression(s){if("ForStatement"===s.parent.type&&(s===s.parent.init||s===s.parent.update))return;if(t.allowInParentheses)if(function(e){return e.parent&&a[e.parent.type]&&e===e.parent[a[e.parent.type]]}(s)){if(function(e){const t=r.getTokenBefore(e,1),s=r.getTokenAfter(e,1);return o(e)&&t&&s&&n.isOpeningParenToken(t)&&t.range[1]<=e.range[0]&&n.isClosingParenToken(s)&&s.range[0]>=e.range[1]}(s))return}else if(o(s))return;const i=r.getTokenAfter(s.expressions[0],n.isCommaToken);e.report({node:s,loc:i.loc,messageId:"unexpectedCommaExpression"})}}}}},3880:(e,t,r)=>{"use strict";const n=r(48411),{findVariable:s}=r(49303);function a(e,t,r,a,o){const i=e.parent;return"CallExpression"===i.type&&i.arguments[o]===e&&n.isSpecificMemberAccess(i.callee,r,a)&&function(e,t){const r=s(t,e);return null!==r&&"global"===r.scope.type&&0===r.defs.length}(n.skipChainExpression(i.callee).object,t)}function o(e,t){const r=e.parent;return"set"===r.kind&&r.value===e||!("Property"!==r.type||r.value!==e||"set"!==n.getStaticPropertyName(r)||"ObjectExpression"!==r.parent.type||!function(e,t){if(a(e,t,"Object","defineProperty",2)||a(e,t,"Reflect","defineProperty",2))return!0;const r=e.parent;if("Property"===r.type&&r.value===e){const e=r.parent;if("ObjectExpression"===e.type&&(a(e,t,"Object","create",1)||a(e,t,"Object","defineProperties",1)))return!0}return!1}(r.parent,t))}e.exports={meta:{type:"problem",docs:{description:"disallow returning values from setters",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(e){let t=null;function r(r){const n=function(e){const t=e.upper;return"function-expression-name"===t.type?t.upper:t}(e.getScope());t={upper:t,isSetter:o(r,n)}}function n(){t=t.upper}function s(t){e.report({node:t,messageId:"returnsValue"})}return{FunctionDeclaration:r,FunctionExpression:r,ArrowFunctionExpression(e){r(e),t.isSetter&&e.expression&&s(e.body)},"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n,ReturnStatement(e){t&&t.isSetter&&e.argument&&s(e)}}}}},26763:e=>{"use strict";function t(e){return"undefined"===e.name&&e.references.every((e=>!e.isWrite()))&&e.defs.every((e=>"VariableDeclarator"===e.node.type&&null===e.node.init))}e.exports={meta:{type:"suggestion",docs:{description:"disallow identifiers from shadowing restricted names",category:"Variables",recommended:!0,url:"https://eslint.org/docs/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){const r=new Set(["undefined","NaN","Infinity","arguments","eval"]);return{"VariableDeclaration, :function, CatchClause"(n){for(const s of e.getDeclaredVariables(n))s.defs.length>0&&r.has(s.name)&&!t(s)&&e.report({node:s.defs[0].name,messageId:"shadowingRestrictedName",data:{name:s.name}})}}}}},64201:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow variable declarations from shadowing variables declared in the outer scope",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean",default:!1},hoist:{enum:["all","functions","never"],default:"functions"},allow:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(e){const t={builtinGlobals:e.options[0]&&e.options[0].builtinGlobals,hoist:e.options[0]&&e.options[0].hoist||"functions",allow:e.options[0]&&e.options[0].allow||[]};function r(e){return-1!==t.allow.indexOf(e.name)}function s(e){const t=e.scope.block;return"ClassDeclaration"===t.type&&t.id===e.identifiers[0]}function a(e,t){const r=t.scope,n=t.defs[0],s=n&&n.parent&&n.parent.range,a=e.scope,o=e.defs[0],i=o&&o.name.range;return s&&i&&s[0]0||t.builtinGlobals&&"writeable"in f)&&!a(p,f)&&("all"===t.hoist||!l(p,f))){const t=i(f),r=t.global?"noShadowGlobal":"noShadow",n={name:p.name};t.global||(n.shadowedLine=t.line,n.shadowedColumn=t.column),e.report({node:p.identifiers[0],messageId:r,data:n})}}}return{"Program:exit"(){const t=e.getScope().childScopes.slice();for(;t.length;){const e=t.pop();t.push(...e.childScopes),c(e)}}}}}},13810:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"disallow spacing between function identifiers and their applications (deprecated)",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(e){const t=e.getSourceCode();function r(r){const n=t.getLastToken(r.callee);let s=n,a=t.getTokenAfter(n);for(;a&&a.range[1]e.removeRange([s.range[1],a.range[0]])})}return{CallExpression:r,NewExpression:r}}}},11430:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow sparse arrays",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create:e=>({ArrayExpression(t){t.elements.indexOf(null)>-1&&e.report({node:t,messageId:"unexpectedSparseArray"})}})}},19271:e=>{"use strict";e.exports={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"disallow synchronous methods",category:"Node.js and CommonJS",recommended:!1,url:"https://eslint.org/docs/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create:e=>({[e.options[0]&&e.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](t){e.report({node:t,messageId:"noSync",data:{propertyName:t.property.name}})}})}},77169:e=>{"use strict";const t=/\t+/gu,r=/\S/u;e.exports={meta:{type:"layout",docs:{description:"disallow all tabs",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(e){const n=e.getSourceCode(),s=e.options&&e.options[0]&&e.options[0].allowIndentationTabs;return{Program(a){n.getLines().forEach(((n,o)=>{let i;for(;null!==(i=t.exec(n));)s&&!r.test(n.slice(0,i.index))||e.report({node:a,loc:{start:{line:o+1,column:i.index},end:{line:o+1,column:i.index+i[0].length}},messageId:"unexpectedTab"})}))}}}}},21126:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow template literal placeholder syntax in regular strings",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(e){const t=/\$\{[^}]+\}/u;return{Literal(r){"string"==typeof r.value&&t.test(r.value)&&e.report({node:r,messageId:"unexpectedTemplateExpression"})}}}}},42803:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow ternary operators",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create:e=>({ConditionalExpression(t){e.report({node:t,messageId:"noTernaryOperator"})}})}},86100:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow `this`/`super` before calling `super()` in constructors",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(e){let t=null,r=Object.create(null);function s(e){return!e.reachable||r[e.id].superCalled}function a(){return Boolean(t&&t.isConstructor&&t.hasExtends)}function o(){return a()&&!t.codePath.currentSegments.every(s)}function i(e){const n=t.codePath.currentSegments;for(let t=0;t{const s=r[t.id];for(let t=0;t0&&e.prevSegments.every(s),invalidNodes:[]})},onCodePathSegmentLoop(e,n){a()&&t.codePath.traverseSegments({first:n,last:e},((e,t)=>{const n=r[e.id];n.superCalled?(n.invalidNodes=[],t.skip()):e.prevSegments.length>0&&e.prevSegments.every(s)&&(n.superCalled=!0,n.invalidNodes=[])}))},ThisExpression(e){o()&&i(e)},Super(e){!n.isCallee(e)&&o()&&i(e)},"CallExpression:exit"(e){"Super"===e.callee.type&&o()&&function(){const e=t.codePath.currentSegments;for(let t=0;t{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow throwing literals as exceptions",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create:e=>({ThrowStatement(t){n.couldBeError(t.argument)?"Identifier"===t.argument.type&&"undefined"===t.argument.name&&e.report({node:t,messageId:"undef"}):e.report({node:t,messageId:"object"})}})}},70397:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"disallow trailing whitespace at the end of lines",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(e){const t=e.getSourceCode(),r="[ \t  -​ ]",s=`^${r}*$`,a=`${r}+$`,o=e.options[0]||{},i=o.skipBlankLines||!1,l=o.ignoreComments||!1;function c(t,r,n){e.report({node:t,loc:r,messageId:"trailingSpace",fix:e=>e.removeRange(n)})}return{Program:function(e){const r=new RegExp(a,"u"),o=new RegExp(s,"u"),u=t.lines,p=t.getText().match(n.createGlobalLinebreakMatcher()),f=function(e){const t=new Set;return e.forEach((e=>{const r="Block"===e.type?e.loc.end.line-1:e.loc.end.line;for(let n=e.loc.start.line;n<=r;n++)t.add(n)})),t}(t.getAllComments());let d=0,h=[];for(let n=0,s=u.length;nx.parent.range[0]&&y{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow initializing variables to `undefined`",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(e){const t=e.getSourceCode();return{VariableDeclarator(r){const s=t.getText(r.id),a=r.init&&r.init.name,o=e.getScope(),i=n.getVariableByName(o,"undefined"),l=i&&i.defs.length>0,c=t.getLastToken(r);"undefined"!==a||"const"===r.parent.kind||l||e.report({node:r,messageId:"unnecessaryUndefinedInit",data:{name:s},fix:e=>"var"===r.parent.kind||"ArrayPattern"===r.id.type||"ObjectPattern"===r.id.type||t.commentsExistBetween(r.id,c)?null:e.removeRange([r.id.range[1],r.range[1]])})}}}}},49299:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"disallow the use of undeclared variables unless mentioned in `/*global */` comments",category:"Variables",recommended:!0,url:"https://eslint.org/docs/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(e){const t=e.options[0],r=t&&!0===t.typeof||!1;return{"Program:exit"(){e.getScope().through.forEach((t=>{const n=t.identifier;!r&&function(e){const t=e.parent;return"UnaryExpression"===t.type&&"typeof"===t.operator}(n)||e.report({node:n,messageId:"undef",data:n})}))}}}}},39282:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `undefined` as an identifier",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(e){function t(t){e.report({node:t,messageId:"unexpectedUndefined"})}function r(e){const r=e.set.get("undefined");if(!r)return;const n=r.references,s=r.defs;n.filter((e=>!e.init)).forEach((e=>t(e.identifier))),s.forEach((e=>t(e.name)))}return{"Program:exit"(){const t=[e.getScope()];for(;t.length;){const e=t.pop();t.push(...e.childScopes),r(e)}}}}}},10022:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow dangling underscores in identifiers",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean",default:!1},allowAfterSuper:{type:"boolean",default:!1},allowAfterThisConstructor:{type:"boolean",default:!1},enforceInMethodNames:{type:"boolean",default:!1},allowFunctionParams:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(e){const t=e.options[0]||{},r=t.allow?t.allow:[],n=void 0!==t.allowAfterThis&&t.allowAfterThis,s=void 0!==t.allowAfterSuper&&t.allowAfterSuper,a=void 0!==t.allowAfterThisConstructor&&t.allowAfterThisConstructor,o=void 0!==t.enforceInMethodNames&&t.enforceInMethodNames,i=void 0===t.allowFunctionParams||t.allowFunctionParams;function l(e){return r.some((t=>t===e))}function c(e){const t=e.length;return"_"!==e&&("_"===e[0]||"_"===e[t-1])}function u(t){if("FunctionDeclaration"===t.type&&t.id){const r=t.id.name;void 0!==r&&c(r)&&!l(r)&&e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})}!function(t){i||t.params.forEach((t=>{const{type:r}=t;let n;if(n="RestElement"===r?t.argument:"AssignmentPattern"===r?t.left:t,"Identifier"===n.type){const r=n.name;c(r)&&!l(r)&&e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})}}))}(t)}function p(t){const r=t.key.name,n="MethodDefinition"===t.type||"Property"===t.type&&t.method;void 0!==r&&o&&n&&c(r)&&!l(r)&&e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})}return{FunctionDeclaration:u,VariableDeclarator:function(t){const r=t.id.name;void 0===r||!c(r)||function(e){return"_"===e}(r)||l(r)||e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})},MemberExpression:function(t){const r=t.property.name,o="ThisExpression"===t.object.type,i="Super"===t.object.type,u=function(e){return"MemberExpression"===e.object.type&&"constructor"===e.object.property.name&&"ThisExpression"===e.object.object.type}(t);void 0===r||!c(r)||o&&n||i&&s||u&&a||function(e){return"__proto__"===e}(r)||l(r)||e.report({node:t,messageId:"unexpectedUnderscore",data:{identifier:r}})},MethodDefinition:p,Property:p,FunctionExpression:u,ArrowFunctionExpression:u}}}},58989:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow confusing multiline expressions",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(e){const t=/^[gimsuy]+$/u,r=e.getSourceCode();function s(t,s){const a=r.getTokenAfter(t,n.isNotClosingParenToken),o=r.getTokenBefore(a);a.loc.start.line!==o.loc.end.line&&e.report({node:t,loc:a.loc,messageId:s})}return{MemberExpression(e){e.computed&&!e.optional&&s(e.object,"property")},TaggedTemplateExpression(t){const{quasi:n}=t;r.getTokenBefore(n).loc.end.line!==n.loc.start.line&&e.report({node:t,loc:{start:n.loc.start,end:{line:n.loc.start.line,column:n.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(e){0===e.arguments.length||e.optional||s(e.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(e){const n=r.getTokenAfter(e,(e=>"/"===e.value)),a=r.getTokenAfter(n);"Identifier"===a.type&&t.test(a.value)&&n.range[1]===a.range[0]&&s(e.left,"division")}}}}},32948:(e,t,r)=>{"use strict";const n=r(86151),s=r(48411),a=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,o=/^(?:DoWhile|For|While)Statement$/u,i=/^(?:BinaryExpression|ConditionalExpression)$/u,l=/^(?:ArrowFunction|Class|Function)Expression$/u,c=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function u(e){if(e.init){const t=e.resolved&&e.resolved.defs[0];if(!t||"Variable"!==t.type||"var"!==t.parent.kind)return!1}return e.isWrite()}function p(e){return!e.modified}function f(e){return!(e.modified||e.group)}function d(e,t){const r=e.range,n=t.identifier.range;return r[0]<=n[0]&&n[1]<=r[1]}const h={WhileStatement:d,DoWhileStatement:d,ForStatement:(e,t)=>d(e,t)&&!(e.init&&d(e.init,t))};function m(e){let t=e.identifier;for(;t;){if("FunctionDeclaration"===t.type)return t.id?t:null;t=t.parent}return null}e.exports={meta:{type:"problem",docs:{description:"disallow unmodified loop conditions",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(e){const t=e.getSourceCode();let r=null;function d(t){const r=t.reference.identifier;e.report({node:r,messageId:"loopConditionNotModified",data:r})}function g(e){e.every(p)&&e.forEach(d)}function y(e){let r=!1;return n.traverse(e,{visitorKeys:t.visitorKeys,enter(e){c.test(e.type)?(r=!0,this.break()):l.test(e.type)&&this.skip()}}),r}function x(e){if(e.init)return null;let t=null,r=e.identifier,n=r.parent;for(;n;){if(a.test(n.type)){if(o.test(n.type)&&n.test===r)return{reference:e,group:t,isInLoop:h[n.type].bind(null,n),modified:!1};break}if(i.test(n.type)){if(y(n))break;t=n}r=n,n=n.parent}return null}function b(e){const t=e.references.map(x).filter(Boolean);if(0===t.length)return;!function(e){for(let t=0;t0&&function(e,t){for(let r=0;r{"use strict";const n=r(48411),s=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),a={"==":"!=","!=":"==","===":"!==","!==":"==="},o=n.getPrecedence({type:"LogicalExpression",operator:"||"});e.exports={meta:{type:"suggestion",docs:{description:"disallow ternary operators when simpler alternatives exist",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(e){const t=!1!==(e.options[0]||{}).defaultAssignment,r=e.getSourceCode();function i(e){return"Literal"===e.type&&"boolean"==typeof e.value}function l(e){if("BinaryExpression"===e.type&&Object.prototype.hasOwnProperty.call(a,e.operator)){const t=r.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),n=r.getText();return n.slice(e.range[0],t.range[0])+a[e.operator]+n.slice(t.range[1],e.range[1])}return n.getPrecedence(e)a.consequent.value===a.alternate.value?"Identifier"===a.test.type?e.replaceText(a,a.consequent.value.toString()):null:a.alternate.value?e.replaceText(a,l(a.test)):e.replaceText(a,function(e){return"BinaryExpression"===e.type&&s.has(e.operator)||"UnaryExpression"===e.type&&"!"===e.operator}(a.test)?n.getParenthesisedText(r,a.test):`!${l(a.test)}`)}):!t&&function(e){return"Identifier"===e.test.type&&"Identifier"===e.consequent.type&&e.test.name===e.consequent.name}(a)&&e.report({node:a,messageId:"unnecessaryConditionalAssignment",fix:e=>{const t=(n.getPrecedence(a.alternate){"use strict";const t=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];e.exports={meta:{type:"problem",docs:{description:"disallow loops with a body that allows only one iteration",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:t},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(e){const r=e.options[0]&&e.options[0].ignore||[],n=(o=r,t.filter((e=>!o.includes(e)))).join(","),s=new Map,a=new Set;var o;let i=null;return{onCodePathStart(e){i=e},onCodePathEnd(){i=i.upper},[n](e){i.currentSegments.some((e=>e.reachable))&&a.add(e)},onCodePathSegmentStart(e,t){if(function(e){const t=e.parent;if(t)switch(t.type){case"WhileStatement":return e===t.test;case"DoWhileStatement":return e===t.body;case"ForStatement":return e===(t.update||t.test||t.body);case"ForInStatement":case"ForOfStatement":return e===t.left}return!1}(t)){const r=t.parent;s.set(e,r)}},onCodePathSegmentLoop(e,t,r){const n=s.get(t);r!==n&&"ContinueStatement"!==r.type||a.delete(n)},"Program:exit"(){a.forEach((t=>e.report({node:t,messageId:"invalid"})))}}}}},9530:e=>{"use strict";function t(e){return Boolean(e.init)}function r(e){return!e.reachable}class n{constructor(e){this.sourceCode=e,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(e){return e.range[0]>=this.startNode.range[0]&&e.range[1]<=this.endNode.range[1]}isConsecutive(e){return this.contains(this.sourceCode.getTokenBefore(e))}merge(e){this.endNode=e}reset(e){this.startNode=this.endNode=e}}e.exports={meta:{type:"problem",docs:{description:"disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(e){let s=null;const a=new n(e.getSourceCode());function o(t){let n=null;if(t&&s.currentSegments.every(r)){if(a.isEmpty)return void a.reset(t);if(a.contains(t))return;if(a.isConsecutive(t))return void a.merge(t);n=t}a.isEmpty||e.report({messageId:"unreachableCode",loc:a.location,node:a.startNode}),a.reset(n)}return{onCodePathStart(e){s=e},onCodePathEnd(){s=s.upper},BlockStatement:o,BreakStatement:o,ClassDeclaration:o,ContinueStatement:o,DebuggerStatement:o,DoWhileStatement:o,ExpressionStatement:o,ForInStatement:o,ForOfStatement:o,ForStatement:o,IfStatement:o,ImportDeclaration:o,LabeledStatement:o,ReturnStatement:o,SwitchStatement:o,ThrowStatement:o,TryStatement:o,VariableDeclaration(e){("var"!==e.kind||e.declarations.some(t))&&o(e)},WhileStatement:o,WithStatement:o,ExportNamedDeclaration:o,ExportDefaultDeclaration:o,ExportAllDeclaration:o,"Program:exit"(){o()}}}}},12700:e=>{"use strict";const t=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,r=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;e.exports={meta:{type:"problem",docs:{description:"disallow control flow statements in `finally` blocks",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(e){function s(e){return"TryStatement"===e.parent.type&&e.parent.finalizer===e}function a(a){(function(e,a){let o,i=!1;o="BreakStatement"!==e.type||e.label?"ContinueStatement"===e.type?n:t:r;for(let t=e;t&&!o.test(t.type);t=t.parent)if(t.parent.label&&a&&t.parent.label.name===a.name&&(i=!0),s(t))return!a||!i;return!1})(a,a.label)&&e.report({messageId:"unsafeUsage",data:{nodeType:a.type},node:a,line:a.loc.line,column:a.loc.column})}return{ReturnStatement:a,ThrowStatement:a,BreakStatement:a,ContinueStatement:a}}}},17562:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow negating the left operand of relational operators",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/no-unsafe-negation",suggestion:!0},schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(e){const t=e.getSourceCode(),r=!0===(e.options[0]||{}).enforceForOrderingRelations;return{BinaryExpression(s){const a=s.operator,o=r&&("<"===(i=a)||">"===i||">="===i||"<="===i);var i;(function(e){return"in"===e||"instanceof"===e}(a)||o)&&function(e){return"UnaryExpression"===e.type&&"!"===e.operator}(s.left)&&!n.isParenthesised(t,s.left)&&e.report({node:s,loc:s.left.loc,messageId:"unexpected",data:{operator:a},suggest:[{messageId:"suggestNegatedExpression",data:{operator:a},fix(e){const r=[t.getFirstToken(s.left).range[1],s.range[1]],n=t.text.slice(r[0],r[1]);return e.replaceTextRange(r,`(${n})`)}},{messageId:"suggestParenthesisedNegation",fix:e=>e.replaceText(s.left,`(${t.getText(s.left)})`)}]})}}}}},37386:e=>{"use strict";const t=new Set(["+","-","/","*","%","**"]),r=new Set(["+=","-=","/=","*=","%=","**="]),n=new Set(["in","instanceof"]);function s(e){return"ObjectPattern"===e.type||"ArrayPattern"===e.type}e.exports={meta:{type:"problem",docs:{description:"disallow use of optional chaining in contexts where the `undefined` value is not allowed",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(e){const a=(e.options[0]||{}).disallowArithmeticOperators||!1;function o(t){e.report({messageId:"unsafeOptionalChain",node:t})}function i(t){e.report({messageId:"unsafeArithmetic",node:t})}function l(e,t){if(e)switch(e.type){case"LogicalExpression":"||"===e.operator||"??"===e.operator?l(e.right,t):"&&"===e.operator&&(l(e.left,t),l(e.right,t));break;case"SequenceExpression":l(e.expressions[e.expressions.length-1],t);break;case"ConditionalExpression":l(e.consequent,t),l(e.alternate,t);break;case"AwaitExpression":l(e.argument,t);break;case"ChainExpression":t(e)}}function c(e){l(e,o)}function u(e){l(e,i)}return{"AssignmentExpression, AssignmentPattern"(e){s(e.left)&&c(e.right)},"ClassDeclaration, ClassExpression"(e){c(e.superClass)},CallExpression(e){e.optional||c(e.callee)},NewExpression(e){c(e.callee)},VariableDeclarator(e){s(e.id)&&c(e.init)},MemberExpression(e){e.optional||c(e.object)},TaggedTemplateExpression(e){c(e.tag)},ForOfStatement(e){c(e.right)},SpreadElement(e){e.parent&&"ObjectExpression"!==e.parent.type&&c(e.argument)},BinaryExpression(e){n.has(e.operator)&&c(e.right),a&&t.has(e.operator)&&(u(e.right),u(e.left))},WithStatement(e){c(e.object)},UnaryExpression(e){a&&t.has(e.operator)&&u(e.argument)},AssignmentExpression(e){a&&r.has(e.operator)&&u(e.right)}}}}},25091:e=>{"use strict";function t(){return!0}function r(){return!1}e.exports={meta:{type:"suggestion",docs:{description:"disallow unused expressions",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean",default:!1},allowTernary:{type:"boolean",default:!1},allowTaggedTemplates:{type:"boolean",default:!1},enforceForJSX:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(e){const n=e.options[0]||{},s=n.allowShortCircuit||!1,a=n.allowTernary||!1,o=n.allowTaggedTemplates||!1,i=n.enforceForJSX||!1;function l(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value}const c=Object.assign(Object.create(null),{isDisallowed:e=>(c[e.type]||r)(e),ArrayExpression:t,ArrowFunctionExpression:t,BinaryExpression:t,ChainExpression:e=>c.isDisallowed(e.expression),ClassExpression:t,ConditionalExpression:e=>!a||c.isDisallowed(e.consequent)||c.isDisallowed(e.alternate),FunctionExpression:t,Identifier:t,JSXElement:()=>i,JSXFragment:()=>i,Literal:t,LogicalExpression:e=>!s||c.isDisallowed(e.right),MemberExpression:t,MetaProperty:t,ObjectExpression:t,SequenceExpression:t,TaggedTemplateExpression:()=>!o,TemplateLiteral:t,ThisExpression:t,UnaryExpression:e=>"void"!==e.operator&&"delete"!==e.operator});return{ExpressionStatement(t){c.isDisallowed(t.expression)&&!function(e,t){const r=t[t.length-1],n=t[t.length-2];return("Program"===r.type||"BlockStatement"===r.type&&/Function/u.test(n.type))&&function(e){return function(e,t){for(let r=0;r=0}(t,e.getAncestors())&&e.report({node:t,messageId:"unusedExpression"})}}}}},17349:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow unused labels",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(e){const t=e.getSourceCode();let r=null;function n(e){if(!e.label)return;const t=e.label.name;let n=r;for(;n;){if(n.label===t){n.used=!0;break}n=n.upper}}return{LabeledStatement:function(e){r={label:e.label.name,used:!1,upper:r}},"LabeledStatement:exit":function(n){r.used||e.report({node:n.label,messageId:"unused",data:n.label,fix:e=>t.getTokenAfter(n.label,{includeComments:!0})===t.getTokenBefore(n.body,{includeComments:!0})?e.removeRange([n.range[0],n.body.range[0]]):null}),r=r.upper},BreakStatement:n,ContinueStatement:n}}}},51729:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"problem",docs:{description:"disallow unused variables",category:"Variables",recommended:!0,url:"https://eslint.org/docs/rules/no-unused-vars"},schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}."}},create(e){const t=e.getSourceCode(),r=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,s={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"none"},a=e.options[0];function o(e){const t=e.defs&&e.defs[0]&&e.defs[0].type;let r,n;"CatchClause"===t&&s.caughtErrorsIgnorePattern?(r="args",n=s.caughtErrorsIgnorePattern.toString()):"Parameter"===t&&s.argsIgnorePattern?(r="args",n=s.argsIgnorePattern.toString()):"Parameter"!==t&&s.varsIgnorePattern&&(r="vars",n=s.varsIgnorePattern.toString());const a=r?`. Allowed unused ${r} must match ${n}`:"";return{varName:e.name,action:"defined",additional:a}}function i(e){const t=s.varsIgnorePattern?`. Allowed unused vars must match ${s.varsIgnorePattern.toString()}`:"";return{varName:e.name,action:"assigned a value",additional:t}}a&&("string"==typeof a?s.vars=a:(s.vars=a.vars||s.vars,s.args=a.args||s.args,s.ignoreRestSiblings=a.ignoreRestSiblings||s.ignoreRestSiblings,s.caughtErrors=a.caughtErrors||s.caughtErrors,a.varsIgnorePattern&&(s.varsIgnorePattern=new RegExp(a.varsIgnorePattern,"u")),a.argsIgnorePattern&&(s.argsIgnorePattern=new RegExp(a.argsIgnorePattern,"u")),a.caughtErrorsIgnorePattern&&(s.caughtErrorsIgnorePattern=new RegExp(a.caughtErrorsIgnorePattern,"u"))));const l=/(?:Statement|Declaration)$/u;function c(e){const t=e.defs[0];if(t){let e=t.node;if("VariableDeclarator"===e.type)e=e.parent;else if("Parameter"===t.type)return!1;return 0===e.parent.type.indexOf("Export")}return!1}function u(e){return"Property"===e.type&&"ObjectPattern"===e.parent.type&&r.test(e.parent.properties[e.parent.properties.length-1].type)}function p(e){if(s.ignoreRestSiblings){const t=e.defs.some((e=>u(e.name.parent))),r=e.references.some((e=>u(e.identifier.parent)));return t||r}return!1}function f(e,t){return e.range[0]>=t.range[0]&&e.range[1]<=t.range[1]}function d(e){const t=e.parent;return"ExpressionStatement"===t.type||"SequenceExpression"===t.type&&(!(t.expressions[t.expressions.length-1]===e)||d(t))}function h(e){const t=function(e){const t=[];return e.defs.forEach((e=>{const{type:r,node:n}=e;"FunctionName"===r&&t.push(n),"Variable"!==r||!n.init||"FunctionExpression"!==n.init.type&&"ArrowFunctionExpression"!==n.init.type||t.push(n.init)})),t}(e),r=t.length>0;let s=null;return e.references.some((e=>{if(function(e){let t=e.identifier.parent;return"VariableDeclarator"===t.type&&(t=t.parent.parent),"ForInStatement"===t.type&&(t="BlockStatement"===t.body.type?t.body.body[0]:t.body,!!t&&"ReturnStatement"===t.type)}(e))return!0;const a=function(e,t){const r=e.identifier,s=r.parent;return e.isRead()&&("AssignmentExpression"===s.type&&s.left===r&&d(s)||"UpdateExpression"===s.type&&d(s)||t&&f(r,t)&&!function(e,t){const r=n.getUpperFunction(e);return r&&f(r,t)&&function(e,t){let r=e,n=e.parent;for(;n&&f(n,t);){switch(n.type){case"SequenceExpression":if(n.expressions[n.expressions.length-1]!==r)return!1;break;case"CallExpression":case"NewExpression":return n.callee!==r;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(l.test(n.type))return!0}r=n,n=n.parent}return!1}(r,t)}(r,t))}(e,s);return s=function(e,t){const r=e.identifier,s=r.parent,a=s.parent,o=e.from.variableScope!==e.resolved.scope.variableScope||n.isInLoop(r);return t&&f(r,t)?t:"AssignmentExpression"!==s.type||"ExpressionStatement"!==a.type||r!==s.left||o?null:s.right}(e,s),function(e){return e.isRead()}(e)&&!a&&!(r&&function(e,t){let r=e.from;for(;r;){if(t.indexOf(r.block)>=0)return!0;r=r.upper}return!1}(e,t))}))}function m(t){const r=t.defs[0],n=e.getDeclaredVariables(r.node);return!n.slice(n.indexOf(t)+1).some((e=>e.references.length>0||e.eslintUsed))}function g(e,t){const r=e.variables,a=e.childScopes;let o,i;if("global"!==e.type||"all"===s.vars)for(o=0,i=r.length;o0){const t=l.references.filter((e=>e.isWrite()&&e.from.variableScope===l.scope.variableScope));let r;t.length>0&&(r=t[t.length-1]),e.report({node:r?r.identifier:l.identifiers[0],messageId:"unusedVar",data:l.references.some((e=>e.isWrite()))?i(l):o(l)})}else if(l.eslintExplicitGlobalComments){const s=l.eslintExplicitGlobalComments[0];e.report({node:r,loc:n.getNameLocationInGlobalDirectiveComment(t,s,l.name),messageId:"unusedVar",data:o(l)})}}}}}}},49017:e=>{"use strict";const t=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,r=/^For(?:In|Of)Statement$/u;function n(e,t){return e&&e.range[0]<=t&&t<=e.range[1]}e.exports={meta:{type:"problem",docs:{description:"disallow the use of variables before they are defined",category:"Variables",recommended:!1,url:"https://eslint.org/docs/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(e){const s=function(e){let t=!0,r=!0,n=!0;return"string"==typeof e?t="nofunc"!==e:"object"==typeof e&&null!==e&&(t=!1!==e.functions,r=!1!==e.classes,n=!1!==e.variables),{functions:t,classes:r,variables:n}}(e.options[0]);function a(o){o.references.forEach((a=>{const o=a.resolved;a.init||!o||0===o.identifiers.length||o.identifiers[0].range[1]{"use strict";const{CALL:n,CONSTRUCT:s,ReferenceTracker:a,getStringIfConstant:o}=r(49303),{RegExpParser:i,visitRegExpAST:l}=r(35372),c=new i;function u(e){const t=[];let r=e;do{t.push(r),r=r.parent}while(r);return t}function p(e){return"Assertion"===e.type&&("lookahead"===e.kind||"lookbehind"===e.kind)}function f(e){return p(e)&&e.negate}e.exports={meta:{type:"problem",docs:{description:"disallow useless backreferences in regular expressions",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}' which is in a negative lookaround."}},create(e){function t(t,r,n){let s;try{s=c.parsePattern(r,0,r.length,n.includes("u"))}catch{return}l(s,{onBackreferenceEnter(r){const n=r.resolved,s=u(r),a=u(n);let o=null;if(s.includes(n))o="nested";else{let e=s.length-1,t=a.length-1;do{e--,t--}while(s[e]===a[t]);const i=t+1,l=a.slice(0,i),c=a.slice(i).find(p),u=c&&"lookbehind"===c.kind;!u&&r.end<=n.start?o="forward":u&&n.end<=r.start?o="backward":"Alternative"===l[l.length-1].type?o="disjunctive":l.some(f)&&(o="intoNegativeLookaround")}o&&e.report({node:t,messageId:o,data:{bref:r.raw,group:n.raw}})}})}return{"Literal[regex]"(e){const{pattern:r,flags:n}=e.regex;t(e,r,n)},Program(){const r=e.getScope(),i=new a(r),l={RegExp:{[n]:!0,[s]:!0}};for(const{node:e}of i.iterateGlobalReferences(l)){const[n,s]=e.arguments,a=o(n,r),i=o(s,r);"string"==typeof a&&t(e,a,i||"")}}}}}},45403:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary calls to `.call()` and `.apply()`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(e){const t=e.getSourceCode();return{CallExpression(r){if(!function(e){const t=n.skipChainExpression(e.callee);return"MemberExpression"===t.type&&"Identifier"===t.property.type&&!1===t.computed&&("call"===t.property.name&&e.arguments.length>=1||"apply"===t.property.name&&2===e.arguments.length&&"ArrayExpression"===e.arguments[1].type)}(r))return;const s=n.skipChainExpression(r.callee),a=n.skipChainExpression(s.object);(function(e,t,r){return e?n.equalTokens(e,t,r):n.isNullOrUndefined(t)})("MemberExpression"===a.type?a.object:null,r.arguments[0],t)&&e.report({node:r,messageId:"unnecessaryCall",data:{name:s.property.name}})}}}}},37842:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary `catch` clauses",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create:e=>({CatchClause(t){t.param&&"Identifier"===t.param.type&&t.body.body.length&&"ThrowStatement"===t.body.body[0].type&&"Identifier"===t.body.body[0].argument.type&&t.body.body[0].argument.name===t.param.name&&(t.parent.finalizer?e.report({node:t,messageId:"unnecessaryCatchClause"}):e.report({node:t.parent,messageId:"unnecessaryCatch"}))}})}},56965:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary computed property keys in objects and classes",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(e){const t=e.getSourceCode();function r(r){if(!r.computed)return;const s=r.key,a=typeof s.value;let o;o="MethodDefinition"===r.type?r.static?"prototype":"constructor":"__proto__","Literal"!==s.type||"string"!==a&&"number"!==a||s.value===o||e.report({node:r,messageId:"unnecessarilyComputedProperty",data:{property:t.getText(s)},fix(e){const r=t.getTokenBefore(s,n.isOpeningBracketToken),a=t.getTokenAfter(s,n.isClosingBracketToken);if(t.commentsExistBetween(r,a))return null;const o=t.getTokenBefore(r),i=(o.range[1]!==r.range[0]||n.canTokensBeAdjacent(o,t.getFirstToken(s))?"":" ")+s.raw;return e.replaceTextRange([r.range[0],a.range[1]],i)}})}return{Property:r,MethodDefinition:e.options[0]&&e.options[0].enforceForClassMembers?r:function(){}}}}},612:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return"BinaryExpression"===e.type&&"+"===e.operator}function a(e){return"+"===e.value&&"Punctuator"===e.type}e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary concatenation of literals or template literals",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(e){const t=e.getSourceCode();return{BinaryExpression(r){if("+"!==r.operator)return;const o=function(e){let t=e.left;for(;s(t);)t=t.right;return t}(r),i=function(e){let t=e.right;for(;s(t);)t=t.left;return t}(r);if(n.isStringLiteral(o)&&n.isStringLiteral(i)&&n.isTokenOnSameLine(o,i)){const n=t.getFirstTokenBetween(o,i,a);e.report({node:r,loc:n.loc,messageId:"unexpectedConcat"})}}}}}},28830:e=>{"use strict";function t(e){return"Identifier"===e.type||"RestElement"===e.type}function r(e,t){return"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name}e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary constructors",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-constructor"},schema:[],messages:{noUselessConstructor:"Useless constructor."}},create:e=>({MethodDefinition:function(n){if("constructor"!==n.kind)return;if(!n.value.body)return;const s=n.value.body.body,a=n.value.params;(n.parent.parent.superClass?function(e,n){return function(e){return 1===e.length&&"ExpressionStatement"===e[0].type&&"CallExpression"===e[0].expression.type&&"Super"===e[0].expression.callee.type}(e)&&n.every(t)&&(1===(s=e[0].expression.arguments).length&&"SpreadElement"===s[0].type&&"Identifier"===s[0].argument.type&&"arguments"===s[0].argument.name||function(e,t){if(e.length!==t.length)return!1;for(let a=0;a{"use strict";const n=r(48411);function s(e,t){return new Set(function*(){yield*e,yield*t}())}const a=s(new Set("\\nrvtbfux"),n.LINEBREAKS),o=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),i=s(o,new Set("^/.$*+?[{}|()Bk"));e.exports={meta:{type:"suggestion",docs:{description:"disallow unnecessary escape characters",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-useless-escape",suggestion:!0},messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(e){const t=e.getSourceCode();function r(r,n,s){const a=r.range[0]+n,o=[a,a+1],i=t.getLocFromIndex(a);e.report({node:r,loc:{start:i,end:{line:i.line,column:i.column+1}},messageId:"unnecessaryEscape",data:{character:s},suggest:[{messageId:"removeEscape",fix:e=>e.removeRange(o)},{messageId:"escapeBackslash",fix:e=>e.insertTextBeforeRange(o,"\\")}]})}function n(e,t){const n="TemplateElement"===e.type,s=t[0][1];let o,i=!a.has(s);n?(o="`"===s,"$"===s?i="{"!==t.input[t.index+2]:"{"===s&&(i="$"!==t.input[t.index-1])):o=s===e.raw[0],i&&!o&&r(e,t.index,t[0].slice(1))}function s(e){const s="TemplateElement"===e.type;if(!(s&&e.parent&&e.parent.parent&&"TaggedTemplateExpression"===e.parent.parent.type&&e.parent===e.parent.parent.quasi))if("string"==typeof e.value||s){if("JSXAttribute"===e.parent.type||"JSXElement"===e.parent.type||"JSXFragment"===e.parent.type)return;const r=s?t.getText(e):e.raw,a=/\\[^\d]/gu;let o;for(;o=a.exec(r);)n(e,o)}else e.regex&&function(e){const t=[];return e.split("").reduce(((e,r,n)=>{if(!e.escapeNextChar){if("\\"===r)return Object.assign(e,{escapeNextChar:!0});if("["===r&&!e.inCharClass)return Object.assign(e,{inCharClass:!0,startingCharClass:!0});if("]"===r&&e.inCharClass)return t.length&&t[t.length-1].inCharClass&&(t[t.length-1].endsCharClass=!0),Object.assign(e,{inCharClass:!1,startingCharClass:!1})}return t.push({text:r,index:n,escaped:e.escapeNextChar,inCharClass:e.inCharClass,startsCharClass:e.startingCharClass,endsCharClass:!1}),Object.assign(e,{escapeNextChar:!1,startingCharClass:!1})}),{escapeNextChar:!1,inCharClass:!1,startingCharClass:!1}),t}(e.regex.pattern).filter((e=>!("-"===e.text&&e.inCharClass&&!e.startsCharClass&&!e.endsCharClass))).filter((e=>!("^"===e.text&&e.startsCharClass))).filter((e=>e.escaped)).filter((e=>!(e.inCharClass?o:i).has(e.text))).forEach((t=>r(e,t.index,t.text)))}return{Literal:s,TemplateElement:s}}}},38765:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow renaming import, export, and destructured assignments to the same name",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean",default:!1},ignoreImport:{type:"boolean",default:!1},ignoreExport:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},s=!0===r.ignoreDestructuring,a=!0===r.ignoreImport,o=!0===r.ignoreExport;function i(r,s,a){const o="Identifier"===s.type?s.name:s.value;return e.report({node:r,messageId:"unnecessarilyRenamed",data:{name:o,type:a},fix(e){const s="Property"===r.type?r.value:r.local;return t.getCommentsInside(r).length>t.getCommentsInside(s).length||"AssignmentPattern"===s.type&&n.isParenthesised(t,s.left)?null:e.replaceText(r,t.getText(s))}})}return{ObjectPattern:function(e){if(!s)for(const t of e.properties)"Property"!==t.type||t.shorthand||t.computed||("Identifier"===t.key.type&&t.key.name||"Literal"===t.key.type&&t.key.value)===("AssignmentPattern"===t.value.type?t.value.left.name:t.value.name)&&i(t,t.key,"Destructuring assignment")},ImportSpecifier:function(e){a||e.imported.name===e.local.name&&e.imported.range[0]!==e.local.range[0]&&i(e,e.imported,"Import")},ExportSpecifier:function(e){o||e.local.name===e.exported.name&&e.local.range[0]!==e.exported.range[0]&&i(e,e.local,"Export")}}}}},32802:(e,t,r)=>{"use strict";const n=r(48411),s=r(67784);function a(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}function o(e){return n.STATEMENT_LIST_PARENTS.has(e.parent.type)}e.exports={meta:{type:"suggestion",docs:{description:"disallow redundant return statements",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(e){const t=new WeakMap,r=new WeakSet,i=e.getSourceCode();let l=null;function c(e){const r=t.get(e);return!r||r.returned}function u(e,r,n){const s=n||new WeakSet;for(const n of r)n.reachable?e.push(...t.get(n).uselessReturns):s.has(n)||(s.add(n),u(e,n.allPrevSegments.filter(c),s));return e}function p(e){if(!e.reachable)return r.add(e),void e.allPrevSegments.filter(c).filter((e=>!r.has(e))).forEach(p);const n=t.get(e);for(const e of n.uselessReturns)a(l.uselessReturns,e);n.uselessReturns=[]}function f(){l.codePath.currentSegments.forEach(p)}return{onCodePathStart(e){l={upper:l,uselessReturns:[],codePath:e}},onCodePathEnd(){for(const t of l.uselessReturns)e.report({node:t,loc:t.loc,messageId:"unnecessaryReturn",fix:e=>o(t)&&!i.getCommentsInside(t).length?new s(e,i).retainEnclosingFunction(t).remove(t):null});l=l.upper},onCodePathSegmentStart(e){const r={uselessReturns:u([],e.allPrevSegments),returned:!1};t.set(e,r)},ReturnStatement(e){if(e.argument&&f(),!(e.argument||n.isInLoop(e)||function(e){for(let t=e;t&&t.parent&&!n.isFunction(t);t=t.parent)if("TryStatement"===t.parent.type&&t.parent.finalizer===t)return!0;return!1}(e))&&l.codePath.currentSegments.some((e=>e.reachable))){for(const r of l.codePath.currentSegments){const n=t.get(r);n&&(n.uselessReturns.push(e),n.returned=!0)}l.uselessReturns.push(e)}},ClassDeclaration:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,EmptyStatement:f,ExpressionStatement:f,ForInStatement:f,ForOfStatement:f,ForStatement:f,IfStatement:f,ImportDeclaration:f,LabeledStatement:f,SwitchStatement:f,ThrowStatement:f,TryStatement:f,VariableDeclaration:f,WhileStatement:f,WithStatement:f,ExportNamedDeclaration:f,ExportDefaultDeclaration:f,ExportAllDeclaration:f}}}},3597:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return Boolean(e.scope)&&"global"===e.scope.type}function a(e){let t=e;for(;"function"!==t.type&&"global"!==t.type;)t=t.upper;return t}function o(e){const t=a(e.scope);return e.references.some((e=>a(e.from)!==t))}function i(e){return("ForOfStatement"===e.parent.type||"ForInStatement"===e.parent.type)&&e===e.parent.left}const l=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function c(e){return e.defs.length>=2}function u(e){return"let"===e.name}e.exports={meta:{type:"suggestion",docs:{description:"require `let` or `const` instead of `var`",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(e){const t=e.getSourceCode();function r(t){return!!t.init&&e.getDeclaredVariables(t).some(function(e){const t=e.range[0],r=e.range[1];return e=>{const n=e.defs[0].name,s=n.range[0],a="AssignmentPattern"===n.parent.type?n.parent.right:null,o=a&&a.range[0],i=a&&a.range[1];return e.references.some((e=>{const n=e.identifier.range[0],l=e.identifier.range[1];return!e.init&&(n=o&&l<=i||n>=t&&l<=r)}))}}(t.init))}return{"VariableDeclaration:exit"(a){"var"===a.kind&&function(a){e.report({node:a,messageId:"unexpectedVar",fix(p){const f=t.getFirstToken(a,{filter:e=>"var"===e.value});return function(t){const a=e.getDeclaredVariables(t),p=function(e){for(let t=e;t;t=t.parent)if(l.test(t.type))return t;return null}(t);if("SwitchCase"===t.parent.type||t.declarations.some(r)||a.some(s)||a.some(c)||a.some(function(e){function t(t){const r=e.range,n=t.identifier.range;return n[0]r[1]}return function(e){return e.references.some(t)}}(p))||a.some(u))return!1;if(n.isInLoop(t)){if(a.some(o))return!1;if(!i(t)&&!function(e){return e.declarations.every((e=>null!==e.init))}(t))return!1}return!!(i(t)||"ForStatement"===t.parent.type&&t.parent.init===t||n.STATEMENT_LIST_PARENTS.has(t.parent.type))}(a)?p.replaceText(f,"let"):null}})}(a)}}}}},9873:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `void` operators",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(e){const t=e.options[0]&&e.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(r){t&&r.parent&&"ExpressionStatement"===r.parent.type||e.report({node:r,messageId:"noVoid"})}}}}},59393:(e,t,r)=>{"use strict";const n=r(63150),s=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow specified warning terms in comments",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},a=r.terms||["todo","fixme","xxx"],o=r.location||"start",i=/\bno-warning-comments\b/u,l=a.map((function(e){const t=n(e),r="\\b",s=`|${r}`;let a;const i=/\w$/u.test(e)?"\\b":"";return a="start"===o?"^\\s*":/^\w/u.test(e)?r:"","start"===o?new RegExp(a+t+i,"iu"):new RegExp(a+t+i+s+e+r,"iu")}));function c(t){const r=t.value;if(s.isDirectiveComment(t)&&i.test(r))return;const n=function(e){const t=[];return l.forEach(((r,n)=>{r.test(e)&&t.push(a[n])})),t}(r);n.forEach((n=>{let s="",a=!1;for(const e of r.trim().split(/\s+/u)){const t=s?`${s} ${e}`:e;if(!(t.length<=40)){a=!0;break}s=t}e.report({node:t,messageId:"unexpectedComment",data:{matchedTerm:n,comment:`${s}${a?"...":""}`}})}))}return{Program(){t.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(c)}}}}},36691:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"disallow whitespace before properties",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){const t=e.getSourceCode();return{MemberExpression(r){let s,a;n.isTokenOnSameLine(r.object,r.property)&&(r.computed?(s=t.getTokenBefore(r.property,n.isOpeningBracketToken),a=t.getTokenBefore(s,r.optional?1:0)):(s=t.getFirstToken(r.property),a=t.getTokenBefore(s,1)),t.isSpaceBetweenTokens(a,s)&&function(r,s,a){e.report({node:r,messageId:"unexpectedWhitespace",data:{propName:t.getText(r.property)},fix(e){let o="";return r.computed||r.optional||!n.isDecimalInteger(r.object)?t.commentsExistBetween(s,a)?null:(r.optional?o="?.":r.computed||(o="."),e.replaceTextRange([s.range[1],a.range[0]],o)):null}})}(r,a,s))}}}}},6819:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"disallow `with` statements",category:"Best Practices",recommended:!0,url:"https://eslint.org/docs/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create:e=>({WithStatement(t){e.report({node:t,messageId:"unexpectedWith"})}})}},44909:e=>{"use strict";const t={enum:["beside","below","any"]};e.exports={meta:{type:"layout",docs:{description:"enforce the location of single-line statements",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[t,{properties:{overrides:{properties:{if:t,else:t,while:t,do:t,for:t},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){const t=e.getSourceCode();function r(r,n){const s=function(t){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[t]||e.options[0]||"beside"}(n);if("BlockStatement"===r.type||"any"===s)return;const a=t.getTokenBefore(r);a.loc.end.line===r.loc.start.line&&"below"===s?e.report({node:r,messageId:"expectLinebreak",fix:e=>e.insertTextBefore(r,"\n")}):a.loc.end.line!==r.loc.start.line&&"beside"===s&&e.report({node:r,messageId:"expectNoLinebreak",fix:e=>t.getText().slice(a.range[1],r.range[0]).trim()?null:e.replaceTextRange([a.range[1],r.range[0]]," ")})}return{IfStatement(e){r(e.consequent,"if"),e.alternate&&"IfStatement"!==e.alternate.type&&r(e.alternate,"else")},WhileStatement:e=>r(e.body,"while"),DoWhileStatement:e=>r(e.body,"do"),ForStatement:e=>r(e.body,"for"),ForInStatement:e=>r(e.body,"for"),ForOfStatement:e=>r(e.body,"for")}}}},53578:(e,t,r)=>{"use strict";const n=r(48411),s={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function a(e){let t=!1,r=Number.POSITIVE_INFINITY,n=!1;return e?"always"===e?r=0:"never"===e?r=Number.POSITIVE_INFINITY:(t=Boolean(e.multiline),r=e.minProperties||Number.POSITIVE_INFINITY,n=Boolean(e.consistent)):n=!0,{multiline:t,minProperties:r,consistent:n}}function o(e){return"object"==typeof e&&null!==e}function i(e){return o(e)||"string"==typeof e}e.exports={meta:{type:"layout",docs:{description:"enforce consistent line breaks after opening and before closing braces",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[s,{type:"object",properties:{ObjectExpression:s,ObjectPattern:s,ImportDeclaration:s,ExportDeclaration:s},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(e){const t=e.getSourceCode(),r=function(e){if(o(e)&&Object.values(e).some(i))return{ObjectExpression:a(e.ObjectExpression),ObjectPattern:a(e.ObjectPattern),ImportDeclaration:a(e.ImportDeclaration),ExportNamedDeclaration:a(e.ExportDeclaration)};const t=a(e);return{ObjectExpression:t,ObjectPattern:t,ImportDeclaration:t,ExportNamedDeclaration:t}}(e.options[0]);function s(s){const a=r[s.type];if("ImportDeclaration"===s.type&&!s.specifiers.some((e=>"ImportSpecifier"===e.type))||"ExportNamedDeclaration"===s.type&&!s.specifiers.some((e=>"ExportSpecifier"===e.type)))return;const o=t.getFirstToken(s,(e=>"{"===e.value));let i;i=s.typeAnnotation?t.getTokenBefore(s.typeAnnotation):t.getLastToken(s,(e=>"}"===e.value));let l=t.getTokenAfter(o,{includeComments:!0}),c=t.getTokenBefore(i,{includeComments:!0});const u=function(e,t,r,n){let s;return s="ObjectExpression"===e.type||"ObjectPattern"===e.type?e.properties:e.specifiers.filter((e=>"ImportSpecifier"===e.type||"ExportSpecifier"===e.type)),s.length>=t.minProperties||t.multiline&&s.length>0&&r.loc.start.line!==n.loc.end.line}(s,a,l,c),p=n.isCommentToken(l),f=n.isCommentToken(c);if(l=t.getTokenAfter(o),c=t.getTokenBefore(i),u)n.isTokenOnSameLine(o,l)&&e.report({messageId:"expectedLinebreakAfterOpeningBrace",node:s,loc:o.loc,fix:e=>p?null:e.insertTextAfter(o,"\n")}),n.isTokenOnSameLine(c,i)&&e.report({messageId:"expectedLinebreakBeforeClosingBrace",node:s,loc:i.loc,fix:e=>f?null:e.insertTextBefore(i,"\n")});else{const t=a.consistent,r=!n.isTokenOnSameLine(o,l),u=!n.isTokenOnSameLine(c,i);(!t&&r||t&&r&&!u)&&e.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:s,loc:o.loc,fix:e=>p?null:e.removeRange([o.range[1],l.range[0]])}),(!t&&u||t&&!r&&u)&&e.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:s,loc:i.loc,fix:e=>f?null:e.removeRange([c.range[1],i.range[0]])})}}return{ObjectExpression:s,ObjectPattern:s,ImportDeclaration:s,ExportNamedDeclaration:s}}}},51789:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside braces",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(e){const t="always"===e.options[0],r=e.getSourceCode();function s(r){return!!e.options[1]&&e.options[1][r]===!t}const a={spaced:t,arraysInObjectsException:s("arraysInObjects"),objectsInObjectsException:s("objectsInObjects")};function o(t,s,o,i,l){if(n.isTokenOnSameLine(s,o)){const n=r.isSpaceBetweenTokens(s,o);a.spaced&&!n&&function(t,r){e.report({node:t,loc:r.loc,messageId:"requireSpaceAfter",data:{token:r.value},fix:e=>e.insertTextAfter(r," ")})}(t,s),!a.spaced&&n&&"Line"!==o.type&&function(t,r){const n=e.getSourceCode().getTokenAfter(r,{includeComments:!0});e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"unexpectedSpaceAfter",data:{token:r.value},fix:e=>e.removeRange([r.range[1],n.range[0]])})}(t,s)}if(n.isTokenOnSameLine(i,l)){const s=(a.arraysInObjectsException&&n.isClosingBracketToken(i)||a.objectsInObjectsException&&n.isClosingBraceToken(i))&&r.getNodeByRangeIndex(i.range[0]).type,o=a.arraysInObjectsException&&"ArrayExpression"===s||a.objectsInObjectsException&&("ObjectExpression"===s||"ObjectPattern"===s)?!a.spaced:a.spaced,c=r.isSpaceBetweenTokens(i,l);o&&!c&&function(t,r){e.report({node:t,loc:r.loc,messageId:"requireSpaceBefore",data:{token:r.value},fix:e=>e.insertTextBefore(r," ")})}(t,l),!o&&c&&function(t,r){const n=e.getSourceCode().getTokenBefore(r,{includeComments:!0});e.report({node:t,loc:{start:n.loc.end,end:r.loc.start},messageId:"unexpectedSpaceBefore",data:{token:r.value},fix:e=>e.removeRange([n.range[1],r.range[0]])})}(t,l)}}function i(e){if(0===e.properties.length)return;const t=r.getFirstToken(e),s=function(e){const t=e.properties[e.properties.length-1];return r.getTokenAfter(t,n.isClosingBraceToken)}(e);o(e,t,r.getTokenAfter(t,{includeComments:!0}),r.getTokenBefore(s,{includeComments:!0}),s)}return{ObjectPattern:i,ObjectExpression:i,ImportDeclaration:function(e){if(0===e.specifiers.length)return;let t=e.specifiers[0];const s=e.specifiers[e.specifiers.length-1];if("ImportSpecifier"!==s.type)return;"ImportSpecifier"!==t.type&&(t=e.specifiers[1]);const a=r.getTokenBefore(t),i=r.getTokenAfter(s,n.isNotCommaToken);o(e,a,r.getTokenAfter(a,{includeComments:!0}),r.getTokenBefore(i,{includeComments:!0}),i)},ExportNamedDeclaration:function(e){if(0===e.specifiers.length)return;const t=e.specifiers[0],s=e.specifiers[e.specifiers.length-1],a=r.getTokenBefore(t),i=r.getTokenAfter(s,n.isNotCommaToken);o(e,a,r.getTokenAfter(a,{includeComments:!0}),r.getTokenBefore(i,{includeComments:!0}),i)}}}}},49518:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"enforce placing object properties on separate lines",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(e){const t=e.options[0]&&(e.options[0].allowAllPropertiesOnSameLine||e.options[0].allowMultiplePropertiesPerLine),r=t?"propertiesOnNewlineAll":"propertiesOnNewline",n=e.getSourceCode();return{ObjectExpression(s){if(t&&s.properties.length>1){const e=n.getFirstToken(s.properties[0]),t=n.getLastToken(s.properties[s.properties.length-1]);if(e.loc.end.line===t.loc.start.line)return}for(let t=1;t{"use strict";const n="always",s=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require or disallow method and property shorthand syntax for object literals",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/object-shorthand"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","methods","properties","never","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","methods","properties"]},{type:"object",properties:{avoidQuotes:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always","methods"]},{type:"object",properties:{ignoreConstructors:{type:"boolean"},avoidQuotes:{type:"boolean"},avoidExplicitReturnArrows:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{expectedAllPropertiesShorthanded:"Expected shorthand for all properties.",expectedLiteralMethodLongform:"Expected longform method syntax for string literal keys.",expectedPropertyShorthand:"Expected property shorthand.",expectedPropertyLongform:"Expected longform property syntax.",expectedMethodShorthand:"Expected method shorthand.",expectedMethodLongform:"Expected longform method syntax.",unexpectedMix:"Unexpected mix of shorthand and non-shorthand properties."}},create(e){const t=e.options[0]||n,r="methods"===t||t===n,a="properties"===t||t===n,o="never"===t,i="consistent"===t,l="consistent-as-needed"===t,c=e.options[1]||{},u=c.ignoreConstructors,p=c.avoidQuotes,f=!!c.avoidExplicitReturnArrows,d=e.getSourceCode(),h=/[^_$0-9]/u;function m(e){return"set"!==e.kind&&"get"!==e.kind&&"SpreadElement"!==e.type&&"SpreadProperty"!==e.type&&"ExperimentalSpreadProperty"!==e.type}function g(e){return"Literal"===e.type&&"string"==typeof e.value}function y(e){return e.shorthand||e.method}function x(e){const t=e.value;return"FunctionExpression"===t.type?!t.id:"Identifier"===t.type&&s.getStaticPropertyName(e)===t.name}function b(t,r){const n=t.properties.filter(m);if(n.length>0){const s=n.filter(y);s.length!==n.length&&(s.length>0?e.report({node:t,messageId:"unexpectedMix"}):r&&n.every(x)&&e.report({node:t,messageId:"expectedAllPropertiesShorthanded"}))}}const E=[],v=new WeakSet,S=new WeakSet;function C(){E.unshift(new Set),e.getScope().variables.filter((e=>"arguments"===e.name)).forEach((e=>{e.references.map((e=>e.identifier)).forEach((e=>S.add(e)))}))}function A(){E.shift()}function k(){E[0].forEach((e=>v.add(e)))}return{Program:C,FunctionDeclaration:C,FunctionExpression:C,"Program:exit":A,"FunctionDeclaration:exit":A,"FunctionExpression:exit":A,ArrowFunctionExpression(e){E[0].add(e)},"ArrowFunctionExpression:exit"(e){E[0].delete(e)},ThisExpression:k,Super:k,MetaProperty(e){"new"===e.meta.name&&"target"===e.property.name&&k()},Identifier(e){S.has(e)&&k()},ObjectExpression(e){i?b(e,!1):l&&b(e,!0)},"Property:exit"(t){const n=t.method||t.shorthand;if("ObjectPattern"!==t.parent.type&&"get"!==t.kind&&"set"!==t.kind&&(!t.computed||"FunctionExpression"===t.value.type||"ArrowFunctionExpression"===t.value.type))if(n)if(t.method&&(o||p&&g(t.key))){const r=o?"expectedMethodLongform":"expectedLiteralMethodLongform";e.report({node:t,messageId:r,fix:e=>function(e,t){const r=t.computed?d.getTokens(t).find((e=>"["===e.value)):d.getFirstToken(t.key),n=t.computed?d.getTokensBetween(t.key,t.value).find((e=>"]"===e.value)):d.getLastToken(t.key),s=d.text.slice(r.range[0],n.range[1]);let a="function";return t.value.async&&(a=`async ${a}`),t.value.generator&&(a=`${a}*`),e.replaceTextRange([t.range[0],n.range[1]],`${s}: ${a}`)}(e,t)})}else o&&e.report({node:t,messageId:"expectedPropertyLongform",fix:e=>e.insertTextAfter(t.key,`: ${t.key.name}`)});else if(!r||t.value.id||"FunctionExpression"!==t.value.type&&"ArrowFunctionExpression"!==t.value.type){if("Identifier"===t.value.type&&t.key.name===t.value.name&&a)e.report({node:t,messageId:"expectedPropertyShorthand",fix:e=>e.replaceText(t,t.value.name)});else if("Identifier"===t.value.type&&"Literal"===t.key.type&&t.key.value===t.value.name&&a){if(p)return;e.report({node:t,messageId:"expectedPropertyShorthand",fix:e=>e.replaceText(t,t.value.name)})}}else{if(u&&"Identifier"===t.key.type&&function(e){const t=h.exec(e);if(!t)return!1;const r=e.charAt(t.index);return r===r.toUpperCase()}(t.key.name))return;if(p&&g(t.key))return;("FunctionExpression"===t.value.type||"ArrowFunctionExpression"===t.value.type&&"BlockStatement"===t.value.body.type&&f&&!v.has(t.value))&&e.report({node:t,messageId:"expectedMethodShorthand",fix:e=>function(e,t){const r=t.computed?d.getFirstToken(t,s.isOpeningBracketToken):d.getFirstToken(t.key),n=t.computed?d.getFirstTokenBetween(t.key,t.value,s.isClosingBracketToken):d.getLastToken(t.key),a=d.text.slice(r.range[0],n.range[1]);let o="";if(d.commentsExistBetween(n,t.value))return null;t.value.async&&(o+="async "),t.value.generator&&(o+="*");const i=[r.range[0],t.range[1]],l=o+a;if("FunctionExpression"===t.value.type){const r=d.getTokens(t.value).find((e=>"Keyword"===e.type&&"function"===e.value)),n=t.value.generator?d.getTokenAfter(r):r;return e.replaceTextRange(i,l+d.text.slice(n.range[1],t.value.range[1]))}const c=d.getTokenBefore(t.value.body,s.isArrowToken),u=d.text.slice(c.range[1],t.value.range[1]);let p,f=!1;if(p=0===t.value.params.length?d.getFirstToken(t.value,s.isOpeningParenToken):d.getTokenBefore(t.value.params[0]),1===t.value.params.length){const e=s.isOpeningParenToken(p),r=p.range[0]{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require or disallow newlines around variable declarations",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(e){const t="always"===e.options[0];return{VariableDeclaration:function(r){if("ForStatement"===(n=r.parent.type)||"ForInStatement"===n||"ForOfStatement"===n)return;var n;let s;r.declarations.forEach((n=>{s&&s.loc.end.line===n.loc.start.line&&(t||s.init||n.init)&&e.report({node:r,messageId:"expectVarOnNewline",loc:n.loc,fix:e=>e.insertTextBefore(n,"\n")}),s=n}))}}}}},89234:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"enforce variables to be declared either together or separately in functions",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(e){const t="always",r="never",s="consecutive",a=e.options[0]||t,o={};"string"==typeof a?(o.var={uninitialized:a,initialized:a},o.let={uninitialized:a,initialized:a},o.const={uninitialized:a,initialized:a}):"object"==typeof a&&(o.separateRequires=!!a.separateRequires,o.var={uninitialized:a.var,initialized:a.var},o.let={uninitialized:a.let,initialized:a.let},o.const={uninitialized:a.const,initialized:a.const},Object.prototype.hasOwnProperty.call(a,"uninitialized")&&(o.var.uninitialized=a.uninitialized,o.let.uninitialized=a.uninitialized,o.const.uninitialized=a.uninitialized),Object.prototype.hasOwnProperty.call(a,"initialized")&&(o.var.initialized=a.initialized,o.let.initialized=a.initialized,o.const.initialized=a.initialized));const i=e.getSourceCode(),l=[],c=[];function u(){c.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function p(){l.push({initialized:!1,uninitialized:!1}),u()}function f(){c.pop()}function d(){l.pop(),f()}function h(e){return e.init&&"CallExpression"===e.init.type&&"require"===e.init.callee.name}function m(e){const t={uninitialized:0,initialized:0};for(let r=0;re.range[0]===t.parent.range[0])),s=r[n-1];return e=>{const r=i.getTokenBefore(t),n=i.getTokenBefore(r),a=[];return s&&s.kind===i.getText(r)&&(";"===n.value?a.push(e.replaceText(n,",")):a.push(e.insertTextAfter(n,",")),a.push(e.replaceText(r,""))),a}}function y(e){const{parent:t}=e;return r="ExportNamedDeclaration"===t.type?t:e,n.STATEMENT_LIST_PARENTS.has(r.parent.type)?t=>e.declarations.map((r=>{const n=i.getTokenAfter(r);if(null===n)return null;const s=i.getTokenAfter(n,{includeComments:!0});if(","!==n.value)return null;const a="ExportNamedDeclaration"===e.parent.type?"export ":"";if(s.range[0]===n.range[1])return t.replaceText(n,`; ${a}${e.kind} `);if(s.loc.start.line>n.loc.end.line||"Line"===s.type||"Block"===s.type){let r=s;for(;"Line"===r.type||"Block"===r.type;)r=i.getTokenAfter(r,{includeComments:!0});return t.replaceTextRange([n.range[0],r.range[0]],`;${i.text.slice(n.range[1],r.range[0])}${a}${e.kind} `)}return t.replaceText(n,`; ${a}${e.kind}`)})).filter((e=>e)):null;var r}return{Program:p,FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p,BlockStatement:u,ForStatement:u,ForInStatement:u,ForOfStatement:u,SwitchStatement:u,VariableDeclaration:function(n){const a=n.parent,i=n.kind;if(!o[i])return;const u=n.declarations,p=m(u),f=u.some(h)&&!u.every(h);o[i].initialized===t&&o.separateRequires&&f&&e.report({node:n,messageId:"splitRequires"});const d=a.body&&a.body.length>0&&a.body.indexOf(n)||0;if(d>0){const t=a.body[d-1],r="VariableDeclaration"===t.type,l=u.concat(t.declarations||[]);if(r&&t.kind===i&&(!l.some(h)||l.every(h))){const r=m(t.declarations);o[i].initialized===s&&o[i].uninitialized===s?e.report({node:n,messageId:"combine",data:{type:i},fix:g(u)}):o[i].initialized===s&&p.initialized>0&&r.initialized>0?e.report({node:n,messageId:"combineInitialized",data:{type:i},fix:g(u)}):o[i].uninitialized===s&&p.uninitialized>0&&r.uninitialized>0&&e.report({node:n,messageId:"combineUninitialized",data:{type:i},fix:g(u)})}}if(!function(e,r){const n=m(r),s=o[e]||{},a=function(e){let t;return"var"===e?t=l[l.length-1]:"let"===e?t=c[c.length-1].let:"const"===e&&(t=c[c.length-1].const),t}(e),i=r.some(h);return!(s.uninitialized===t&&s.initialized===t&&(a.uninitialized||a.initialized)&&!i||n.uninitialized>0&&s.uninitialized===t&&a.uninitialized||n.initialized>0&&s.initialized===t&&a.initialized&&!i||a.required&&i||(function(e,r,n){for(let s=0;s0&&e.report({node:n,messageId:"combineInitialized",data:{type:i},fix:g(u)}),o[i].uninitialized===t&&p.uninitialized>0){if(n.parent.left===n&&("ForInStatement"===n.parent.type||"ForOfStatement"===n.parent.type))return;e.report({node:n,messageId:"combineUninitialized",data:{type:i},fix:g(u)})}"ForStatement"===a.type&&a.init===n||p.uninitialized+p.initialized>1&&(o[i].initialized===r&&o[i].uninitialized===r?e.report({node:n,messageId:"split",data:{type:i},fix:y(n)}):o[i].initialized===r&&p.initialized>0?e.report({node:n,messageId:"splitInitialized",data:{type:i},fix:y(n)}):o[i].uninitialized===r&&p.uninitialized>0&&e.report({node:n,messageId:"splitUninitialized",data:{type:i},fix:y(n)}))},"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":d,"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d}}}},74964:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return["*","&","^","|"].indexOf(e)>=0}function a(e){return"Identifier"===e.type||"MemberExpression"===e.type&&("Identifier"===e.object.type||"ThisExpression"===e.object.type)&&(!e.computed||"Literal"===e.property.type)}e.exports={meta:{type:"suggestion",docs:{description:"require or disallow assignment operator shorthand where possible",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}=).",unexpected:"Unexpected operator assignment ({{operator}}=) shorthand."}},create(e){const t=e.getSourceCode();function r(e){return t.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator))}return{AssignmentExpression:"never"!==e.options[0]?function(o){if("="!==o.operator||"BinaryExpression"!==o.right.type)return;const i=o.left,l=o.right,c=l.operator;(s(c)||function(e){return["+","-","/","%","<<",">>",">>>","**"].indexOf(e)>=0}(c))&&(n.isSameReference(i,l.left,!0)?e.report({node:o,messageId:"replaced",data:{operator:c},fix(e){if(a(i)&&a(l.left)){const n=r(o),s=r(l),a=t.getText().slice(o.range[0],n.range[0]),i=t.getText().slice(s.range[1],o.right.range[1]);return t.commentsExistBetween(n,s)?null:e.replaceText(o,`${a}${l.operator}=${i}`)}return null}}):n.isSameReference(i,l.right,!0)&&s(c)&&e.report({node:o,messageId:"replaced",data:{operator:c}}))}:function(s){"="===s.operator||n.isLogicalAssignmentOperator(s.operator)||e.report({node:s,messageId:"unexpected",data:{operator:s.operator},fix(e){if(a(s.left)){const a=t.getFirstToken(s),o=r(s),i=t.getText().slice(s.range[0],o.range[0]),l=s.operator.slice(0,-1);let c;if(t.commentsExistBetween(a,o))return null;if(n.getPrecedence(s.right)<=n.getPrecedence({type:"BinaryExpression",operator:l})&&!n.isParenthesised(t,s.right))c=`${t.text.slice(o.range[1],s.right.range[0])}(${t.getText(s.right)})`;else{const e=t.getTokenAfter(o,{includeComments:!0});let r="";o.range[1]!==e.range[0]||n.canTokensBeAdjacent({type:"Punctuator",value:l},e)||(r=" "),c=`${r}${t.text.slice(o.range[1],s.range[1])}`}return e.replaceText(s,`${i}= ${i}${l}${c}`)}return null}})}}}}},44460:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent linebreak style for operators",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(e){const t=!e.options[0],r=e.options[0]||"after",s=e.options[1]||{},a=s.overrides?Object.assign({},s.overrides):{};t&&!a["?"]&&(a["?"]="before"),t&&!a[":"]&&(a[":"]="before");const o=e.getSourceCode();function i(t,s){const i=o.getTokenAfter(s,n.isNotClosingParenToken),l=o.getTokenBefore(i),c=o.getTokenAfter(i),u=i.value,p=a[u],f=p||r,d=function(e,t){return r=>{const s=o.getTokenBefore(e),a=o.getTokenAfter(e),i=o.text.slice(s.range[1],e.range[0]),l=o.text.slice(e.range[1],a.range[0]);let c,u;if(!n.isTokenOnSameLine(s,e)!=!n.isTokenOnSameLine(e,a)&&"none"!==t){if(o.getTokenBefore(e,{includeComments:!0})!==s&&o.getTokenAfter(e,{includeComments:!0})!==a)return null;c=l,u=i}else{const e=n.createGlobalLinebreakMatcher();if(c="before"===t||i.trim()?i:i.replace(e,""),u="after"===t||l.trim()?l:l.replace(e,""),c===i&&u===l)return null}return""===u&&"Punctuator"===a.type&&"+-".includes(e.value)&&a.value===e.value&&(u+=" "),r.replaceTextRange([s.range[1],a.range[0]],c+e.value+u)}}(i,f);n.isTokenOnSameLine(l,i)&&n.isTokenOnSameLine(i,c)||("ignore"===p||n.isTokenOnSameLine(l,i)||n.isTokenOnSameLine(i,c)?"before"===f&&n.isTokenOnSameLine(l,i)?e.report({node:t,loc:i.loc,messageId:"operatorAtBeginning",data:{operator:u},fix:d}):"after"===f&&n.isTokenOnSameLine(i,c)?e.report({node:t,loc:i.loc,messageId:"operatorAtEnd",data:{operator:u},fix:d}):"none"===f&&e.report({node:t,loc:i.loc,messageId:"noLinebreak",data:{operator:u},fix:d}):e.report({node:t,loc:i.loc,messageId:"badLinebreak",data:{operator:u},fix:d}))}function l(e){i(e,e.left)}return{BinaryExpression:l,LogicalExpression:l,AssignmentExpression:l,VariableDeclarator(e){e.init&&i(e,e.id)},ConditionalExpression(e){i(e,e.test),i(e,e.consequent)}}}}},84637:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow padding within blocks",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(e){const t={},r=e.options[0]||"always",s=e.options[1]||{};if("string"==typeof r){const e="always"===r;t.blocks=e,t.switches=e,t.classes=e}else Object.prototype.hasOwnProperty.call(r,"blocks")&&(t.blocks="always"===r.blocks),Object.prototype.hasOwnProperty.call(r,"switches")&&(t.switches="always"===r.switches),Object.prototype.hasOwnProperty.call(r,"classes")&&(t.classes="always"===r.classes);Object.prototype.hasOwnProperty.call(s,"allowSingleLineBlocks")&&(t.allowSingleLineBlocks=!0===s.allowSingleLineBlocks);const a=e.getSourceCode();function o(e){return"Line"===e.type||"Block"===e.type}function i(e,t){return t.loc.start.line-e.loc.end.line>=2}function l(r){const s=function(e){return"SwitchStatement"===e.type?a.getTokenBefore(e.cases[0]):a.getFirstToken(e)}(r),l=function(e){let t,r=e;do{t=r,r=a.getTokenAfter(r,{includeComments:!0})}while(o(r)&&r.loc.start.line===t.loc.end.line);return r}(s),c=a.getTokenBefore(l,{includeComments:!0}),u=function(e){let t,r=e;do{t=r,r=a.getTokenBefore(r,{includeComments:!0})}while(o(r)&&r.loc.end.line===t.loc.start.line);return r}(a.getLastToken(r)),p=a.getTokenAfter(u,{includeComments:!0}),f=i(c,l),d=i(u,p);t.allowSingleLineBlocks&&n.isTokenOnSameLine(c,p)||(function(e){switch(e.type){case"BlockStatement":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw new Error("unreachable")}}(r)?(f||e.report({node:r,loc:{start:c.loc.start,end:l.loc.start},fix:e=>e.insertTextAfter(c,"\n"),messageId:"alwaysPadBlock"}),d||e.report({node:r,loc:{end:p.loc.start,start:u.loc.end},fix:e=>e.insertTextBefore(p,"\n"),messageId:"alwaysPadBlock"})):(f&&e.report({node:r,loc:{start:c.loc.start,end:l.loc.start},fix:e=>e.replaceTextRange([c.range[1],l.range[0]-l.loc.start.column],"\n"),messageId:"neverPadBlock"}),d&&e.report({node:r,loc:{end:p.loc.start,start:u.loc.end},messageId:"neverPadBlock",fix:e=>e.replaceTextRange([u.range[1],p.range[0]-p.loc.start.column],"\n")})))}const c={};return Object.prototype.hasOwnProperty.call(t,"switches")&&(c.SwitchStatement=function(e){0!==e.cases.length&&l(e)}),Object.prototype.hasOwnProperty.call(t,"blocks")&&(c.BlockStatement=function(e){0!==e.body.length&&l(e)}),Object.prototype.hasOwnProperty.call(t,"classes")&&(c.ClassBody=function(e){0!==e.body.length&&l(e)}),c}}},2993:(e,t,r)=>{"use strict";const n=r(48411),s=`[${Array.from(n.LINEBREAKS).join("")}]`,a=new RegExp(String.raw`^(\s*?${s})\s*${s}(\s*;?)$`,"u"),o=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,i=/^require\(/u;function l(e){return{test:(t,r)=>r.getFirstToken(t).value===e}}function c(e){return{test:(t,r)=>t.loc.start.line===t.loc.end.line&&r.getFirstToken(t).value===e}}function u(e){return{test:(t,r)=>t.loc.start.line!==t.loc.end.line&&r.getFirstToken(t).value===e}}function p(e){return{test:t=>t.type===e}}function f(e){if("ExpressionStatement"===e.type){let t=n.skipChainExpression(e.expression);return"UnaryExpression"===t.type&&(t=n.skipChainExpression(t.argument)),"CallExpression"===t.type&&n.isFunction(t.callee)}return!1}function d(e,t){if("DoWhileStatement"===t.type&&"BlockStatement"===t.body.type)return!0;if(f(t))return!0;const r=e.getLastToken(t,n.isNotSemicolonToken),s=r&&n.isClosingBraceToken(r)?e.getNodeByRangeIndex(r.range[0]):null;return Boolean(s)&&("BlockStatement"===s.type||"SwitchStatement"===s.type)}function h(e,t){return"ExpressionStatement"===e.type&&("Program"===e.parent.type||"BlockStatement"===e.parent.type&&n.isFunction(e.parent.parent))&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!n.isParenthesised(t,e.expression)}function m(e,t){if(h(e,t)){for(const r of e.parent.body){if(r===e)break;if(!h(r,t))return!1}return!0}return!1}function g(e,t){const r=e.getLastToken(t),s=e.getTokenBefore(r),a=e.getTokenAfter(r);return Boolean(s&&a&&s.range[0]>=t.range[0]&&n.isSemicolonToken(r)&&r.loc.start.line!==s.loc.end.line&&r.loc.end.line===a.loc.start.line)?s:r}function y(e,t,r){return t+r}const x={any:{verify:function(){}},never:{verify:function(e,t,r,n){0!==n.length&&e.report({node:r,messageId:"unexpectedBlankLine",fix(t){if(n.length>=2)return null;const r=n[0][0],s=n[0][1],o=r.range[1],i=s.range[0],l=e.getSourceCode().text.slice(o,i).replace(a,y);return t.replaceTextRange([o,i],l)}})}},always:{verify:function(e,t,r,s){s.length>0||e.report({node:r,messageId:"expectedBlankLine",fix(s){const a=e.getSourceCode();let o=g(a,t);const i=a.getFirstTokenBetween(o,r,{includeComments:!0,filter:e=>!n.isTokenOnSameLine(o,e)||(o=e,!1)})||r,l=n.isTokenOnSameLine(o,i)?"\n\n":"\n";return s.insertTextAfter(o,l)}})}}},b={"*":{test:()=>!0},"block-like":{test:(e,t)=>d(t,e)},"cjs-export":{test:(e,t)=>"ExpressionStatement"===e.type&&"AssignmentExpression"===e.expression.type&&o.test(t.getText(e.expression.left))},"cjs-import":{test:(e,t)=>"VariableDeclaration"===e.type&&e.declarations.length>0&&Boolean(e.declarations[0].init)&&i.test(t.getText(e.declarations[0].init))},directive:{test:m},expression:{test:(e,t)=>"ExpressionStatement"===e.type&&!m(e,t)},iife:{test:f},"multiline-block-like":{test:(e,t)=>e.loc.start.line!==e.loc.end.line&&d(t,e)},"multiline-expression":{test:(e,t)=>e.loc.start.line!==e.loc.end.line&&"ExpressionStatement"===e.type&&!m(e,t)},"multiline-const":u("const"),"multiline-let":u("let"),"multiline-var":u("var"),"singleline-const":c("const"),"singleline-let":c("let"),"singleline-var":c("var"),block:p("BlockStatement"),empty:p("EmptyStatement"),function:p("FunctionDeclaration"),break:l("break"),case:l("case"),class:l("class"),const:l("const"),continue:l("continue"),debugger:l("debugger"),default:l("default"),do:l("do"),export:l("export"),for:l("for"),if:l("if"),import:l("import"),let:l("let"),return:l("return"),switch:l("switch"),throw:l("throw"),try:l("try"),var:l("var"),while:l("while"),with:l("with")};e.exports={meta:{type:"layout",docs:{description:"require or disallow padding lines between statements",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(x)},statementType:{anyOf:[{enum:Object.keys(b)},{type:"array",items:{enum:Object.keys(b)},minItems:1,uniqueItems:!0,additionalItems:!1}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]},additionalItems:!1},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(e){const t=e.getSourceCode(),r=e.options||[];let s=null;function a(){s={upper:s,prevNode:null}}function o(){s=s.upper}function i(e,r){let n=e;for(;"LabeledStatement"===n.type;)n=n.body;return Array.isArray(r)?r.some(i.bind(null,n)):b[r].test(n,t)}function l(a){const o=a.parent.type;if(!n.STATEMENT_LIST_PARENTS.has(o)&&"SwitchStatement"!==o)return;const l=s.prevNode;if(l){const n=function(e,t){for(let n=r.length-1;n>=0;--n){const s=r[n];if(i(e,s.prev)&&i(t,s.next))return x[s.blankLine]}return x.any}(l,a),s=function(e,r){const n=[];let s=g(t,e);if(r.loc.start.line-s.loc.end.line>=2)do{const e=t.getTokenAfter(s,{includeComments:!0});e.loc.start.line-s.loc.end.line>=2&&n.push([s,e]),s=e}while(s.range[0]{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require using arrow functions for callbacks",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean",default:!1},allowUnboundThis:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(e){const t=e.options[0]||{},r=!1!==t.allowUnboundThis,s=t.allowNamedFunctions,a=e.getSourceCode();let o=[];function i(){o.push({this:!1,super:!1,meta:!1})}function l(){return o.pop()}return{Program(){o=[]},ThisExpression(){const e=o[o.length-1];e&&(e.this=!0)},Super(){const e=o[o.length-1];e&&(e.super=!0)},MetaProperty(e){const t=o[o.length-1];t&&function(e,t,r){return"new"===e.meta.name&&"target"===e.property.name}(e)&&(t.meta=!0)},FunctionDeclaration:i,"FunctionDeclaration:exit":l,FunctionExpression:i,"FunctionExpression:exit"(t){const o=l();if(s&&t.id&&t.id.name)return;if(t.generator)return;const i=e.getDeclaredVariables(t)[0];if(function(e){return e&&"FunctionName"===e.defs[0].type}(i)&&i.references.length>0)return;const c=function(e){const t=e.variables;for(let e=0;e0)return;const u=function(e){const t={isCallback:!1,isLexicalThis:!1};let r=e,s=e.parent,a=!1;for(;r;){switch(s.type){case"LogicalExpression":case"ChainExpression":case"ConditionalExpression":break;case"MemberExpression":if(s.object!==r||s.property.computed||"Identifier"!==s.property.type||"bind"!==s.property.name)return t;{const e="ChainExpression"===s.parent.type?s.parent:s;if(!n.isCallee(e))return t;a||(a=!0,t.isLexicalThis=1===e.parent.arguments.length&&"ThisExpression"===e.parent.arguments[0].type),s=e.parent}break;case"CallExpression":case"NewExpression":return s.callee!==r&&(t.isCallback=!0),t;default:return t}r=s,s=s.parent}throw new Error("unreachable")}(t);!u.isCallback||r&&o.this&&!u.isLexicalThis||o.super||o.meta||e.report({node:t,messageId:"preferArrowCallback",*fix(e){if(!u.isLexicalThis&&o.this||(r=t.params).every((e=>"Identifier"===e.type))&&r.length!==new Set(r.map((e=>e.name))).size)return;var r;if(u.isLexicalThis){const r=t.parent;if("MemberExpression"!==r.type)return;const s=r.parent,o=a.getTokenAfter(r.object,n.isNotClosingParenToken),i=a.getLastToken(s);if(n.isParenthesised(a,r))return;if(a.commentsExistBetween(o,i))return;yield e.removeRange([o.range[0],i.range[1]])}const s=a.getFirstToken(t,t.async?1:0),i=a.getTokenAfter(s,n.isOpeningParenToken);a.commentsExistBetween(s,i)?(yield e.remove(s),t.id&&(yield e.remove(t.id))):yield e.removeRange([s.range[0],i.range[0]]),yield e.insertTextBefore(t.body,"=> ");let l=u.isLexicalThis?t.parent.parent:t;"ChainExpression"===l.type&&(l=l.parent),"CallExpression"===l.parent.type||"ConditionalExpression"===l.parent.type||n.isParenthesised(a,l)||n.isParenthesised(a,t)||(yield e.insertTextBefore(l,"("),yield e.insertTextAfter(l,")"))}})}}}}},45904:(e,t,r)=>{"use strict";const n=r(67784),s=r(48411),a=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,o=/^(?:Program|BlockStatement|SwitchCase)$/u,i=/^(?:VariableDeclarator|AssignmentExpression)$/u;function l(e,t){if(t.through.find((t=>t.resolved&&t.resolved.name===e)))return!0;const r=s.getVariableByName(t,e);return null!==r&&r.defs.some((e=>"Parameter"===e.type))}function c(e){if(!e.isWrite())return null;let t=e.identifier.parent;for(;a.test(t.type);)t=t.parent;return i.test(t.type)?t:null}function u(e){switch(e.type){case"ObjectPattern":return e.properties.some((e=>!!e&&u(e.argument||e.value)));case"ArrayPattern":return e.elements.some((e=>!!e&&u(e)));case"AssignmentPattern":return u(e.left);case"MemberExpression":return!0}return!1}function p(e,t){if(e.eslintUsed&&"global"===e.scope.type)return null;let r=null,n=!1;const s=e.references;for(let a=0;ae.value)).map((e=>e.value.name)).some((t=>l(t,e.scope))),s=u(r)):"ArrayPattern"===r.type&&(n=r.elements.map((e=>e&&e.name)).some((t=>l(t,e.scope))),s=u(r)),n||s)return null}r=o}else if(o.isRead()&&null===r){if(t)return null;n=!0}}return null!==r&&r.from===e.scope&&function(e){let t=e.parent;for(;a.test(t.type);)t=t.parent;return"VariableDeclarator"===t.type||"AssignmentExpression"===t.type&&"ExpressionStatement"===t.parent.type&&o.test(t.parent.parent.type)}(r.identifier)?n?e.defs[0].name:r.identifier:null}function f(e,t,r){return!e||r(e)?null:e.type===t?e:f(e.parent,t,r)}e.exports={meta:{type:"suggestion",docs:{description:"require `const` declarations for variables that are never reassigned after declared",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-const"},fixable:"code",schema:[{type:"object",properties:{destructuring:{enum:["any","all"],default:"any"},ignoreReadBeforeAssign:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"'{{name}}' is never reassigned. Use 'const' instead."}},create(e){const t=e.options[0]||{},r=e.getSourceCode(),s="all"!==t.destructuring,a=!0===t.ignoreReadBeforeAssign,o=[];let i=0,l=null,u="";function d(t){const a=t.filter(Boolean);if(t.length&&(s||a.length===t.length)){const s=f(t[0],"VariableDeclaration",(e=>e.type.endsWith("Statement"))),o=null===s;if(!o&&s.declarations.length>0){const e=s.declarations[0];if(e.init){const t=e.init.parent;"VariableDeclarator"===t.type&&(t.id.name!==u&&(u=t.id.name,i=0),"ObjectPattern"===t.id.type&&t.init.name!==u&&(u=t.init.name,i=0),t.id!==l&&(l=t.id,i=0))}}let c=s&&("ForInStatement"===s.parent.type||"ForOfStatement"===s.parent.type||s.declarations.every((e=>e.init)))&&a.length===t.length;!o&&s.declarations&&1!==s.declarations.length&&s&&s.declarations&&s.declarations.length>=1&&(i+=a.length,c=c&&i===s.declarations.length),a.forEach((t=>{e.report({node:t,messageId:"useConst",data:t,fix:c?e=>{const t=r.getFirstToken(s,(e=>e.value===s.kind));return new n(e,r).retainRange(s.range).replaceTextRange(t.range,"const")}:null})}))}}return{"Program:exit"(){(function(e,t){const r=new Map;for(let n=0;n{"use strict";const n=r(48411),s=n.getPrecedence({type:"AssignmentExpression"});e.exports={meta:{type:"suggestion",docs:{description:"require destructuring from arrays and/or objects",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].enforceForRenamedProperties;let a={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};function o(e,t){return a&&a[e]&&a[e][t]}function i(t,r,n){e.report({node:t,messageId:"preferDestructuring",data:{type:r},fix:n})}function l(t,a,l){if("MemberExpression"!==a.type||"Super"===a.object.type)return;if(c=a,Number.isInteger(c.property.value))return void(o(l.type,"array")&&i(l,"array",null));var c;const u=function(e){return"VariableDeclarator"===e.type&&"Identifier"===e.id.type&&"MemberExpression"===e.init.type&&!e.init.computed&&"Identifier"===e.init.property.type&&e.id.name===e.init.property.name}(l)?t=>function(t,r){const a=r.init,o=e.getSourceCode();if(o.getCommentsInside(r).length>o.getCommentsInside(a.object).length)return null;let i=o.getText(a.object);return n.getPrecedence(a.object){"use strict";const n=r(48411),{CALL:s,ReferenceTracker:a}=r(49303),o=n.getPrecedence({type:"BinaryExpression",operator:"**"});function i(e,t){return t?`(${e})`:e}e.exports={meta:{type:"suggestion",docs:{description:"disallow the use of `Math.pow` in favor of the `**` operator",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(e){const t=e.getSourceCode();function r(r){e.report({node:r,messageId:"useExponentiation",fix(e){if(2!==r.arguments.length||r.arguments.some((e=>"SpreadElement"===e.type))||t.getCommentsInside(r).length>0)return null;const s=r.arguments[0],a=r.arguments[1],l=t.getText(s),c=t.getText(a),u=function(e){return n.getPrecedence(e)<=o||"AwaitExpression"===e.type||"UnaryExpression"===e.type}(s),p=function(e){return n.getPrecedence(e)=o&&!("BinaryExpression"===r.type&&"**"===r.operator&&r.right===e)&&!(("CallExpression"===r.type||"NewExpression"===r.type)&&r.arguments.includes(e))&&!("MemberExpression"===r.type&&r.computed&&r.property===e)&&!("ArrayExpression"===r.type))&&!n.isParenthesised(t,e)}(r,t);let d="",h="";if(!f){if(!u){const e=t.getFirstToken(s),a=t.getTokenBefore(r);a&&a.range[1]===r.range[0]&&!n.canTokensBeAdjacent(a,e)&&(d=" ")}if(!p){const e=t.getLastToken(a),s=t.getTokenAfter(r);s&&r.range[1]===s.range[0]&&!n.canTokensBeAdjacent(e,s)&&(h=" ")}}const m=i(l,u),g=i(c,p),y=i(`${m}**${g}`,f);return e.replaceText(r,`${d}${y}${h}`)}})}return{Program(){const t=e.getScope(),n=new a(t),o={Math:{pow:{[s]:!0}}};for(const{node:e}of n.iterateGlobalReferences(o))r(e)}}}}},79494:(e,t,r)=>{"use strict";const{CALL:n,CONSTRUCT:s,ReferenceTracker:a,getStringIfConstant:o}=r(49303),i=r(35372),l=new i.RegExpParser;e.exports={meta:{type:"suggestion",docs:{description:"enforce using named capture group in regular expression",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/prefer-named-capture-group"},schema:[],messages:{required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(e){function t(t,r,n){let s;try{s=l.parsePattern(t,0,t.length,n)}catch{return}i.visitRegExpAST(s,{onCapturingGroupEnter(t){t.name||e.report({node:r,messageId:"required",data:{group:t.raw}})}})}return{Literal(e){e.regex&&t(e.regex.pattern,e,e.regex.flags.includes("u"))},Program(){const r=e.getScope(),i=new a(r),l={RegExp:{[n]:!0,[s]:!0}};for(const{node:e}of i.iterateGlobalReferences(l)){const r=o(e.arguments[0]),n=o(e.arguments[1]);r&&t(r,e,n&&n.includes("u"))}}}}}},75747:(e,t,r)=>{"use strict";const n=r(48411),s=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);e.exports={meta:{type:"suggestion",docs:{description:"disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(e){const t=e.getSourceCode();return{"CallExpression[arguments.length=2]"(r){const[a,o]=r.arguments,i=n.getStaticStringValue(a),l=o.value;if(null!==i&&n.isStringLiteral(a)&&"Literal"===o.type&&"number"==typeof l&&s.has(l)&&(c=r.callee,n.isSpecificId(c,"parseInt")||n.isSpecificMemberAccess(c,"Number","parseInt"))){const{system:a,literalPrefix:o}=s.get(l);e.report({node:r,messageId:"useLiteral",data:{system:a,functionName:t.getText(r.callee)},fix(e){if(t.getCommentsInside(r).length)return null;const s=`${o}${i}`;if(+s!==parseInt(i,l))return null;const a=t.getTokenBefore(r),c=t.getTokenAfter(r);let u="",p="";return a&&a.range[1]===r.range[0]&&!n.canTokensBeAdjacent(a,s)&&(u=" "),c&&r.range[1]===c.range[0]&&!n.canTokensBeAdjacent(s,c)&&(p=" "),e.replaceText(r,`${u}${s}${p}`)}})}var c}}}}},98073:(e,t,r)=>{"use strict";const{CALL:n,ReferenceTracker:s}=r(49303),{isCommaToken:a,isOpeningParenToken:o,isClosingParenToken:i,isParenthesised:l}=r(48411),c=/\s/u;function u(e){return e.arguments.some((e=>"SpreadElement"===e.type))}function p(e){return"Property"===e.type&&("get"===e.kind||"set"===e.kind)}function f(e){return e.properties.some(p)}function d(e){return e.arguments.filter((e=>"ObjectExpression"===e.type)).some(f)}function h(e,t){switch(e.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!l(t,e);default:return!1}}function m(e,t,r){const n=[r.getFirstToken(e),r.getLastToken(e)];let s=r.getTokenBefore(e),a=r.getTokenAfter(e);for(;s&&a&&s.range[0]>t.range[0]&&o(s)&&i(a);)n.push(s,a),s=r.getTokenBefore(s),a=r.getTokenAfter(a);return n.sort(((e,t)=>e.range[0]-t.range[0]))}function g(e,t){const r=t.text;let n=e.range[0];{const r=t.getTokenBefore(e,{includeComments:!0});if(r&&"Line"===r.type)return n}for(;c.test(r[n-1]||"");)n-=1;return n}function y(e,t){const r=t.text;let n=e.range[1];for(;c.test(r[n]||"");)n+=1;return n}function x(e,t){return function*(r){const n=t.getTokenAfter(e.callee,o),s=t.getLastToken(e);yield r.removeRange([e.range[0],n.range[0]]),function(e,t){const r=e.parent;switch(r.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return r.left===e&&!l(t,e);default:return!l(t,e)}}(e,t)?(yield r.replaceText(n,"({"),yield r.replaceText(s,"})")):(yield r.replaceText(n,"{"),yield r.replaceText(s,"}"));for(const s of e.arguments){const e=m(s,n,t),o=e.shift(),i=e.pop();if("ObjectExpression"===s.type){const n=t.getLastToken(s,1),l=t.getTokenAfter(i);for(const t of e)yield r.remove(t);const c=[o.range[0],y(o,t)],u=[Math.max(g(i,t),c[1]),i.range[1]];yield r.removeRange(c),yield r.removeRange(u),(0===s.properties.length||a(n))&&a(l)&&(yield r.remove(l))}else h(s,t)?(yield r.insertTextBefore(o,"...("),yield r.insertTextAfter(i,")")):yield r.insertTextBefore(o,"...")}}}e.exports={meta:{type:"suggestion",docs:{description:"disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(e){const t=e.getSourceCode();return{Program(){const r=e.getScope(),a=new s(r),o={Object:{assign:{[n]:!0}}};for(const{node:r}of a.iterateGlobalReferences(o))if(r.arguments.length>=1&&"ObjectExpression"===r.arguments[0].type&&!u(r)&&!(r.arguments.length>1&&d(r))){const n=1===r.arguments.length?"useLiteralMessage":"useSpreadMessage",s=x(r,t);e.report({node:r,messageId:n,fix:s})}}}}}},95799:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require using Error objects as Promise rejection reasons",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(e){const t=e.options.length&&e.options[0].allowEmptyReject;function r(r){!r.arguments.length&&t||r.arguments.length&&n.couldBeError(r.arguments[0])&&("Identifier"!==r.arguments[0].type||"undefined"!==r.arguments[0].name)||e.report({node:r,messageId:"rejectAnError"})}return{CallExpression(e){(function(e){return n.isSpecificMemberAccess(e.callee,"Promise","reject")})(e)&&r(e)},"NewExpression:exit"(t){"Identifier"===t.callee.type&&"Promise"===t.callee.name&&t.arguments.length&&n.isFunction(t.arguments[0])&&t.arguments[0].params.length>1&&"Identifier"===t.arguments[0].params[1].type&&e.getDeclaredVariables(t.arguments[0]).find((e=>e.name===t.arguments[0].params[1].name)).references.filter((e=>e.isRead())).filter((e=>"CallExpression"===e.identifier.parent.type&&e.identifier===e.identifier.parent.callee)).forEach((e=>r(e.identifier.parent)))}}}}},81774:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require `Reflect` methods where applicable",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-reflect"},deprecated:!0,replacedBy:[],schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(e){const t={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},r={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},n=(e.options[0]||{}).exceptions||[];function s(t,r,n){e.report({node:t,messageId:"preferReflect",data:{existing:r,substitute:n}})}return{CallExpression(e){const a=(e.callee.property||{}).name,o="Reflect"===(e.callee.object||{}).name,i=Object.prototype.hasOwnProperty.call(r,a),l=-1!==n.indexOf(a);!i||o||l||s(e,t[a],r[a])},UnaryExpression(e){const t="delete"===e.operator,r="Identifier"===e.argument.type,a=-1!==n.indexOf("delete");!t||r||a||s(e,"the delete keyword","Reflect.deleteProperty")}}}}},68880:(e,t,r)=>{"use strict";const n=r(48411),{CALL:s,CONSTRUCT:a,ReferenceTracker:o,findVariable:i}=r(49303);function l(e){return"Literal"===e.type&&Object.prototype.hasOwnProperty.call(e,"regex")}function c(e){return"TemplateLiteral"===e.type&&0===e.expressions.length}e.exports={meta:{type:"suggestion",docs:{description:"disallow use of the `RegExp` constructor in favor of regular expression literals",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/prefer-regex-literals"},schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(e){const[{disallowRedundantWrapping:t=!1}={}]=e.options;function r(t){return function(e){return"Literal"===e.type&&"string"==typeof e.value}(t)||c(t)||function(t){return"TaggedTemplateExpression"===t.type&&n.isSpecificMemberAccess(t.tag,"String","raw")&&function(t){const r=e.getScope(),n=i(r,t);return null!==n&&"global"===n.scope.type&&0===n.defs.length}(n.skipChainExpression(t.tag).object)&&c(t.quasi)}(t)}function u(e){const t=e.arguments;return!(1!==t.length&&2!==t.length||!t.every(r))}function p(e){const t=e.arguments;return!(1!==t.length||!l(t[0]))||!(2!==t.length||!l(t[0])||!r(t[1]))}return{Program(){const r=e.getScope(),n=new o(r),i={RegExp:{[s]:!0,[a]:!0}};for(const{node:r}of n.iterateGlobalReferences(i))t&&p(r)?2===r.arguments.length?e.report({node:r,messageId:"unexpectedRedundantRegExpWithFlags"}):e.report({node:r,messageId:"unexpectedRedundantRegExp"}):u(r)&&e.report({node:r,messageId:"unexpectedRegExp"})}}}}},8222:e=>{"use strict";function t(e){const t=e.identifier,r=t.parent;return!("MemberExpression"===r.type&&r.object===t&&!r.computed)}e.exports={meta:{type:"suggestion",docs:{description:"require rest parameters instead of `arguments`",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(e){function r(t){e.report({node:t.identifier,loc:t.identifier.loc,messageId:"preferRestParams"})}function n(){const n=function(e){const t=e.variables;for(let e=0;e{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require spread operators instead of `.apply()`",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(e){const t=e.getSourceCode();return{CallExpression(r){if(!function(e){return n.isSpecificMemberAccess(e.callee,null,"apply")&&2===e.arguments.length&&"ArrayExpression"!==e.arguments[1].type&&"SpreadElement"!==e.arguments[1].type}(r))return;const s=n.skipChainExpression(n.skipChainExpression(r.callee).object);(function(e,t,r){return e?n.equalTokens(e,t,r):n.isNullOrUndefined(t)})("MemberExpression"===s.type?s.object:null,r.arguments[0],t)&&e.report({node:r,messageId:"preferSpread"})}}}}},25577:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return"BinaryExpression"===e.type&&"+"===e.operator}function a(e){let t=e;for(;s(t.parent);)t=t.parent;return t}function o(e){return s(e)?o(e.left)||o(e.right):"Literal"===e.type&&"string"==typeof e.value&&n.hasOctalOrNonOctalDecimalEscapeSequence(e.raw)}function i(e){return s(e)?i(e.right)||i(e.left):n.isStringLiteral(e)}function l(e){return s(e)?l(e.right)||l(e.left):!n.isStringLiteral(e)}function c(e){return"BinaryExpression"===e.type?c(e.left):"TemplateLiteral"===e.type?e.expressions.length&&e.quasis.length&&e.quasis[0].range[0]===e.quasis[0].range[1]:"Literal"!==e.type||"string"!=typeof e.value}e.exports={meta:{type:"suggestion",docs:{description:"require template literals instead of string concatenation",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(e){const t=e.getSourceCode();let r=Object.create(null);function u(e,r){const n=[e].concat(t.getTokensBetween(e,r)).concat(r),s=t.getText();return n.slice(0,-1).reduce(((e,t,r)=>e+s.slice(t.range[1],n[r+1].range[0])),"")}function p(e,r,n){if("Literal"===e.type&&"string"==typeof e.value)return`\`${e.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,(e=>e.lastIndexOf("\\")%2?`\\${e}`:e)).replace(new RegExp(`\\\\${e.raw[0]}`,"gu"),e.raw[0])}\``;if("TemplateLiteral"===e.type)return t.getText(e);if(s(e)&&i(e)&&l(e)){const s=t.getFirstTokenBetween(e.left,e.right,(e=>"+"===e.value)),o=u(e.left,s),i=u(s,e.right),l="BinaryExpression"===(a=e.left).type?c(a.right):"TemplateLiteral"===a.type?a.expressions.length&&a.quasis.length&&a.quasis[a.quasis.length-1].range[0]===a.quasis[a.quasis.length-1].range[1]:"Literal"!==a.type||"string"!=typeof a.value,f=c(e.right);return l?p(e.left,r,o+i).slice(0,-1)+p(e.right,null,n).slice(1):f?p(e.left,r,null).slice(0,-1)+p(e.right,o+i,n).slice(1):`${p(e.left,r,null)}${o}+${i}${p(e.right,n,null)}`}var a;return`\`\${${r||""}${t.getText(e)}${n||""}}\``}function f(e,t){const r=a(t.parent);return o(r)?null:e.replaceText(r,p(r,null,null))}function d(t){if(!n.isStringLiteral(t)||!s(t.parent))return;const o=a(t.parent);r[o.range[0]]||(r[o.range[0]]=!0,l(o)&&e.report({node:o,messageId:"unexpectedStringConcatenation",fix:e=>f(e,t)}))}return{Program(){r=Object.create(null)},Literal:d,TemplateLiteral:d}}}},75228:(e,t,r)=>{"use strict";const n=r(40577),s=r(48411),a=r(21416);e.exports={meta:{type:"suggestion",docs:{description:"require quotes around object literal property names",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(e){const t=e.options[0],r=e.options[1]&&e.options[1].keywords,o=!e.options[1]||!1!==e.options[1].unnecessary,i=e.options[1]&&e.options[1].numbers,l=e.getSourceCode();function c(e){return a.indexOf(e)>=0}function u(e,t,r){return 1===t.length&&0===t[0].start&&t[0].end===e.length&&(["Identifier","Keyword","Null","Boolean"].indexOf(t[0].type)>=0||"Numeric"===t[0].type&&!r&&String(+t[0].value)===t[0].value)}function p(e){return"Identifier"===e.type?e.name:e.value}function f(e){return"Literal"===e.type&&"string"==typeof e.value?l.getText(e):`"${"Identifier"===e.type?e.name:e.value}"`}function d(t,s){const a=[],o=[];let i=null,l=!1;t.properties.forEach((e=>{const t=e.key;if(t&&!e.method&&!e.computed&&!e.shorthand)if("Literal"===t.type&&"string"==typeof t.value){if(a.push(e),s){let e;try{e=n.tokenize(t.value)}catch{return void(l=!0)}l=l||!u(t.value,e)||r&&c(e[0].value)}}else r&&s&&"Identifier"===t.type&&c(t.name)?(o.push(e),l=!0,i=t.name):o.push(e)})),s&&a.length&&!l?a.forEach((t=>{e.report({node:t,messageId:"redundantQuoting",fix:e=>e.replaceText(t.key,p(t.key))})})):o.length&&i?o.forEach((t=>{e.report({node:t,messageId:"requireQuotesDueToReservedWord",data:{property:i},fix:e=>e.replaceText(t.key,f(t.key))})})):a.length&&o.length&&o.forEach((t=>{e.report({node:t,messageId:"inconsistentlyQuotedProperty",data:{key:t.key.name||t.key.value},fix:e=>e.replaceText(t.key,f(t.key))})}))}return{Property(a){"always"!==t&&t||function(t){const r=t.key;t.method||t.computed||t.shorthand||"Literal"===r.type&&"string"==typeof r.value||e.report({node:t,messageId:"unquotedPropertyFound",data:{property:r.name||r.value},fix:e=>e.replaceText(r,f(r))})}(a),"as-needed"===t&&function(t){const a=t.key;if(!(t.method||t.computed||t.shorthand))if("Literal"===a.type&&"string"==typeof a.value){let s;try{s=n.tokenize(a.value)}catch{return}if(1!==s.length)return;if(c(s[0].value)&&r)return;o&&u(a.value,s,i)&&e.report({node:t,messageId:"unnecessarilyQuotedProperty",data:{property:a.value},fix:e=>e.replaceText(a,p(a))})}else r&&"Identifier"===a.type&&c(a.name)?e.report({node:t,messageId:"unquotedReservedProperty",data:{property:a.name},fix:e=>e.replaceText(a,f(a))}):i&&"Literal"===a.type&&s.isNumericLiteral(a)&&e.report({node:t,messageId:"unquotedNumericProperty",data:{property:a.value},fix:e=>e.replaceText(a,f(a))})}(a)},ObjectExpression(e){"consistent"===t&&d(e,!1),"consistent-as-needed"===t&&d(e,!0)}}}}},67384:(e,t,r)=>{"use strict";const n=r(48411),s={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},a=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(n.LINEBREAKS).join("")}]`,"u");s.double.convert=s.single.convert=s.backtick.convert=function(e){const t=this.quote,r=e[0];return t===r?e:t+e.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,((e,n,s)=>n===r||"`"===r&&"${"===n?n:e===t||"`"===t&&"${"===e?`\\${e}`:s&&"`"===r?"\\n":e))+t},e.exports={meta:{type:"layout",docs:{description:"enforce the consistent use of either backticks, double, or single quotes",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(e){const t=e.options[0],r=s[t||"double"],o=e.options[1],i=o&&!0===o.allowTemplateLiterals,l=e.getSourceCode();let c=o&&!0===o.avoidEscape;function u(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value}function p(e){const t=e.parent.parent;if("Program"!==t.type&&("BlockStatement"!==t.type||!n.isFunction(t.parent)))return!1;for(let r=0;r=0),a||e.report({node:s,messageId:"wrongQuotes",data:{description:r.description},fix:e=>"backtick"===t&&n.hasOctalOrNonOctalDecimalEscapeSequence(o)?null:e.replaceText(s,r.convert(s.raw))})}},TemplateLiteral(n){i||"backtick"===t||function(e){return"TaggedTemplateExpression"===e.parent.type&&e===e.parent.quasi||e.expressions.length>0||!!(e.quasis.length>=1&&a.test(e.quasis[0].value.raw))}(n)||e.report({node:n,messageId:"wrongQuotes",data:{description:r.description},fix:e=>p(n)?null:e.replaceText(n,r.convert(l.getText(n)))})}}}}},35114:(e,t,r)=>{"use strict";const n=r(48411),s="always",a=new Set(Array.from({length:35},((e,t)=>t+2)));function o(e){return e.defs.length>=1}e.exports={meta:{type:"suggestion",docs:{description:"enforce the consistent use of the radix argument when using `parseInt()`",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/radix",suggestion:!0},schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",redundantRadix:"Redundant radix parameter.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(e){const t=e.options[0]||s;function r(r){const n=r.arguments;switch(n.length){case 0:e.report({node:r,messageId:"missingParameters"});break;case 1:t===s&&e.report({node:r,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(t){const n=e.getSourceCode().getTokens(r),s=n[n.length-1],a=n[n.length-2],o="Punctuator"===a.type&&","===a.value;return t.insertTextBefore(s,o?" 10,":", 10")}}]});break;default:"as-needed"===t&&"Literal"===(o=n[1]).type&&10===o.value?e.report({node:r,messageId:"redundantRadix"}):function(e){return!("Literal"===e.type&&!a.has(e.value)||"Identifier"===e.type&&"undefined"===e.name)}(n[1])||e.report({node:r,messageId:"invalidRadix"})}var o}return{"Program:exit"(){const t=e.getScope();let s;s=n.getVariableByName(t,"parseInt"),s&&!o(s)&&s.references.forEach((e=>{const t=e.identifier;n.isCallee(t)&&r(t.parent)})),s=n.getVariableByName(t,"Number"),s&&!o(s)&&s.references.forEach((e=>{const t=e.identifier.parent,s="ChainExpression"===t.parent.type?t.parent:t;(function(e){return"MemberExpression"===e.type&&!e.computed&&"Identifier"===e.property.type&&"parseInt"===e.property.name})(t)&&n.isCallee(s)&&r(s.parent)}))}}}}},41566:e=>{"use strict";function t(e,r=new Map){for(const t of e.references)null!==t.resolved&&r.set(t.identifier,t);for(const n of e.childScopes)"function"!==n.type&&t(n,r);return r}class r{constructor(){this.info=new WeakMap}initialize(e){const t=new Set,r=new Set;for(const n of e.prevSegments){const e=this.info.get(n);e&&(e.outdatedReadVariables.forEach(Set.prototype.add,t),e.freshReadVariables.forEach(Set.prototype.add,r))}this.info.set(e,{outdatedReadVariables:t,freshReadVariables:r})}markAsRead(e,t){for(const r of e){const e=this.info.get(r);e&&(e.freshReadVariables.add(t),e.outdatedReadVariables.delete(t))}}makeOutdated(e){for(const t of e){const e=this.info.get(t);e&&(e.freshReadVariables.forEach(Set.prototype.add,e.outdatedReadVariables),e.freshReadVariables.clear())}}isOutdated(e,t){for(const r of e){const e=this.info.get(r);if(e&&e.outdatedReadVariables.has(t))return!0}return!1}}e.exports={meta:{type:"problem",docs:{description:"disallow assignments that can lead to race conditions due to usage of `await` or `yield`",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/require-atomic-updates"},fixable:null,schema:[],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`."}},create(e){const n=e.getSourceCode(),s=new Map,a=new r;let o=null;return{onCodePathStart(r){const n=e.getScope(),s="function"===n.type&&(n.block.async||n.block.generator);o={upper:o,codePath:r,referenceMap:s?t(n):null}},onCodePathEnd(){o=o.upper},onCodePathSegmentStart(e){a.initialize(e)},Identifier(e){const{codePath:t,referenceMap:r}=o,n=r&&r.get(e);if(!n)return;const i=n.resolved,l=function(e){if(e.writeExpr)return e.writeExpr;let t=e.identifier;for(;t;){const e=t.parent.type;if("AssignmentExpression"===e&&t.parent.left===t)return t.parent.right;if("MemberExpression"!==e||t.parent.object!==t)break;t=t.parent}return null}(n),c="MemberExpression"===n.identifier.parent.type;if(!n.isRead()||l&&"="===l.parent.operator||a.markAsRead(t.currentSegments,i),l&&l.parent.right===l&&!function(e,t){if(!e)return!1;if(t&&e.defs.some((e=>"Parameter"===e.type)))return!1;const r=e.scope.variableScope;return e.references.every((e=>e.from.variableScope===r))}(i,c)){let e=s.get(l);e||(e=[],s.set(l,e)),e.push(n)}},":expression:exit"(t){const{codePath:r,referenceMap:i}=o;if(!i)return;"AwaitExpression"!==t.type&&"YieldExpression"!==t.type||a.makeOutdated(r.currentSegments);const l=s.get(t);if(l){s.delete(t);for(const s of l){const o=s.resolved;a.isOutdated(r.currentSegments,o)&&e.report({node:t.parent,messageId:"nonAtomicUpdate",data:{value:n.getText(t.parent.left)}})}}}}}}},51950:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"disallow async functions which have no `await` expression",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(e){const t=e.getSourceCode();let r=null;function s(){r={upper:r,hasAwait:!1}}function a(s){var a;s.generator||!s.async||r.hasAwait||n.isEmptyFunction(s)||e.report({node:s,loc:n.getFunctionHeadLoc(s,t),messageId:"missingAwait",data:{name:(a=n.getFunctionNameWithKind(s),a[0].toUpperCase()+a.slice(1))}}),r=r.upper}return{FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,AwaitExpression(){r&&(r.hasAwait=!0)},ForOfStatement(e){r&&e.await&&(r.hasAwait=!0)}}}}},12938:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require JSDoc comments",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/require-jsdoc"},schema:[{type:"object",properties:{require:{type:"object",properties:{ClassDeclaration:{type:"boolean",default:!1},MethodDefinition:{type:"boolean",default:!1},FunctionDeclaration:{type:"boolean",default:!0},ArrowFunctionExpression:{type:"boolean",default:!1},FunctionExpression:{type:"boolean",default:!1}},additionalProperties:!1,default:{}}},additionalProperties:!1}],deprecated:!0,replacedBy:[],messages:{missingJSDocComment:"Missing JSDoc comment."}},create(e){const t=e.getSourceCode(),r=Object.assign({FunctionDeclaration:!0,MethodDefinition:!1,ClassDeclaration:!1,ArrowFunctionExpression:!1,FunctionExpression:!1},e.options[0]&&e.options[0].require);function n(r){t.getJSDocComment(r)||function(t){e.report({node:t,messageId:"missingJSDocComment"})}(r)}return{FunctionDeclaration(e){r.FunctionDeclaration&&n(e)},FunctionExpression(e){(r.MethodDefinition&&"MethodDefinition"===e.parent.type||r.FunctionExpression&&("VariableDeclarator"===e.parent.type||"Property"===e.parent.type&&e===e.parent.value))&&n(e)},ClassDeclaration(e){r.ClassDeclaration&&n(e)},ArrowFunctionExpression(e){r.ArrowFunctionExpression&&"VariableDeclarator"===e.parent.type&&n(e)}}}}},83808:(e,t,r)=>{"use strict";const{CALL:n,CONSTRUCT:s,ReferenceTracker:a,getStringIfConstant:o}=r(49303);e.exports={meta:{type:"suggestion",docs:{description:"enforce the use of `u` flag on RegExp",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/require-unicode-regexp"},messages:{requireUFlag:"Use the 'u' flag."},schema:[]},create:e=>({"Literal[regex]"(t){(t.regex.flags||"").includes("u")||e.report({node:t,messageId:"requireUFlag"})},Program(){const t=e.getScope(),r=new a(t),i={RegExp:{[n]:!0,[s]:!0}};for(const{node:n}of r.iterateGlobalReferences(i)){const r=n.arguments[1],s=o(r,t);r&&("string"!=typeof s||s.includes("u"))||e.report({node:n,messageId:"requireUFlag"})}}})}},15605:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require generator functions to contain `yield`",category:"ECMAScript 6",recommended:!0,url:"https://eslint.org/docs/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(e){const t=[];function r(e){e.generator&&t.push(0)}function n(r){r.generator&&0===t.pop()&&r.body.body.length>0&&e.report({node:r,messageId:"missingYield"})}return{FunctionDeclaration:r,"FunctionDeclaration:exit":n,FunctionExpression:r,"FunctionExpression:exit":n,YieldExpression(){t.length>0&&(t[t.length-1]+=1)}}}}},95179:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"enforce spacing between rest and spread operators and their expressions",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0];function n(n){const s=t.getFirstToken(n),a=t.getTokenAfter(s),o=t.isSpaceBetweenTokens(s,a);let i;switch(n.type){case"SpreadElement":i="spread","ObjectExpression"===n.parent.type&&(i+=" property");break;case"RestElement":i="rest","ObjectPattern"===n.parent.type&&(i+=" property");break;case"ExperimentalSpreadProperty":i="spread property";break;case"ExperimentalRestProperty":i="rest property";break;default:return}r&&!o?e.report({node:n,loc:s.loc,messageId:"expectedWhitespace",data:{type:i},fix:e=>e.replaceTextRange([s.range[1],a.range[0]]," ")}):!r&&o&&e.report({node:n,loc:{start:s.loc.end,end:a.loc.start},messageId:"unexpectedWhitespace",data:{type:i},fix:e=>e.removeRange([s.range[1],a.range[0]])})}return{SpreadElement:n,RestElement:n,ExperimentalSpreadProperty:n,ExperimentalRestProperty:n}}}},27792:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before and after semicolons",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(e){const t=e.options[0],r=e.getSourceCode();let s=!1,a=!0;function o(t,o){if(n.isSemicolonToken(t)){if(function(e){const t=r.getTokenBefore(e);return t&&n.isTokenOnSameLine(t,e)&&r.isSpaceBetweenTokens(t,e)}(t)){if(!s){const n=r.getTokenBefore(t),s={start:n.loc.end,end:t.loc.start};e.report({node:o,loc:s,messageId:"unexpectedWhitespaceBefore",fix:e=>e.removeRange([n.range[1],t.range[0]])})}}else if(s){const r=t.loc;e.report({node:o,loc:r,messageId:"missingWhitespaceBefore",fix:e=>e.insertTextBefore(t," ")})}if(!function(e){const t=r.getTokenBefore(e);return!(t&&n.isTokenOnSameLine(e,t))}(t)&&!function(e){const t=r.getTokenAfter(e);return!(t&&n.isTokenOnSameLine(e,t))}(t)&&!function(e){const t=r.getTokenAfter(e);return t&&n.isClosingBraceToken(t)||n.isClosingParenToken(t)}(t))if(function(e){const t=r.getTokenAfter(e);return t&&n.isTokenOnSameLine(e,t)&&r.isSpaceBetweenTokens(e,t)}(t)){if(!a){const n=r.getTokenAfter(t),s={start:t.loc.end,end:n.loc.start};e.report({node:o,loc:s,messageId:"unexpectedWhitespaceAfter",fix:e=>e.removeRange([t.range[1],n.range[0]])})}}else if(a){const r=t.loc;e.report({node:o,loc:r,messageId:"missingWhitespaceAfter",fix:e=>e.insertTextAfter(t," ")})}}}function i(e){o(r.getLastToken(e),e)}return"object"==typeof t&&(s=t.before,a=t.after),{VariableDeclaration:i,ExpressionStatement:i,BreakStatement:i,ContinueStatement:i,DebuggerStatement:i,DoWhileStatement:i,ReturnStatement:i,ThrowStatement:i,ImportDeclaration:i,ExportNamedDeclaration:i,ExportAllDeclaration:i,ExportDefaultDeclaration:i,ForStatement(e){e.init&&o(r.getTokenAfter(e.init),e),e.test&&o(r.getTokenAfter(e.test),e)}}}}},25164:(e,t,r)=>{"use strict";const n=r(48411),s=`:matches(${["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration"].join(",")})`;e.exports={meta:{type:"layout",docs:{description:"enforce location of semicolons",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(e){const t=e.getSourceCode(),r=e.options[0]||"last";function a(r,s){const a=t.getTokenBefore(r),o=t.getTokenAfter(r),i=!a||n.isTokenOnSameLine(a,r),l=!o||n.isTokenOnSameLine(r,o);("last"===s&&!i||"first"===s&&!l)&&e.report({loc:r.loc,messageId:"expectedSemiColon",data:{pos:"last"===s?"the end of the previous line":"the beginning of the next line"},fix(e){if(a&&o&&t.commentsExistBetween(a,o))return null;const n=a?a.range[1]:r.range[0],i=o?o.range[0]:r.range[1],l="last"===s?";\n":"\n;";return e.replaceTextRange([n,i],l)}})}return{[s](e){if("first"===r&&function(e){const t=e.parent.type;if("IfStatement"===t&&e.parent.consequent===e&&e.parent.alternate)return!0;if("DoWhileStatement"===t)return!0;const r=function(e){const t=e.type;return"BlockStatement"===t||"Program"===t?e.body:"SwitchCase"===t?e.consequent:null}(e.parent);return null!==r&&r[r.length-1]===e}(e))return;const s=t.getLastToken(e);n.isSemicolonToken(s)&&a(s,r)},ForStatement(e){const r=e.init&&t.getTokenAfter(e.init,n.isSemicolonToken),s=e.test&&t.getTokenAfter(e.test,n.isSemicolonToken);r&&a(r,"last"),s&&a(s,"last")}}}}},79143:(e,t,r)=>{"use strict";const n=r(67784),s=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow semicolons instead of ASI",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(e){const t=/^[-[(/+`]/u,r=e.options[1],a="never"===e.options[0],o=Boolean(r&&r.omitLastInOneLineBlock),i=r&&r.beforeStatementContinuationChars||"any",l=e.getSourceCode();function c(t,r){const a=l.getLastToken(t);let o,i,c;r?(o="extraSemi",c=a.loc,i=function(e){return new n(e,l).retainSurroundingTokens(a).remove(a)}):(o="missingSemi",c={start:a.loc.end,end:s.getNextLocation(l,a.loc.end)},i=function(e){return e.insertTextAfter(a,";")}),e.report({node:t,loc:c,messageId:o,fix:i})}function u(e){return Boolean(e)&&t.test(e.value)&&"++"!==e.value&&"--"!==e.value}function p(e){return!!function(e){const t=l.getTokenAfter(e);return!t||s.isClosingBraceToken(t)||s.isSemicolonToken(t)}(l.getLastToken(e))||!function(e){const t=l.getLastToken(e,1),r=l.getTokenAfter(e);return!!r&&s.isTokenOnSameLine(t,r)}(e)&&("never"===i&&!function(e){const t=e.type;return"DoWhileStatement"!==t&&"BreakStatement"!==t&&"ContinueStatement"!==t&&"DebuggerStatement"!==t&&"ImportDeclaration"!==t&&"ExportAllDeclaration"!==t&&("ReturnStatement"===t?Boolean(e.argument):"ExportNamedDeclaration"===t?Boolean(e.declaration):!function(e){if(!s.isClosingBraceToken(e))return!1;const t=l.getNodeByRangeIndex(e.range[0]);return"BlockStatement"===t.type&&"ArrowFunctionExpression"===t.parent.type}(l.getLastToken(e,1)))}(e)||!u(l.getTokenAfter(e)))}function f(e){const t=s.isSemicolonToken(l.getLastToken(e));if(a)t&&p(e)?c(e,!0):!t&&"always"===i&&u(l.getTokenAfter(e))&&c(e);else{const r=o&&function(e){const t=e.parent,r=l.getTokenAfter(e);return!(!r||"}"!==r.value||!t||"BlockStatement"!==t.type||t.loc.start.line!==t.loc.end.line)}(e);t&&r?c(e,!0):t||r||c(e)}}return{VariableDeclaration:function(e){const t=e.parent;"ForStatement"===t.type&&t.init===e||/^For(?:In|Of)Statement/u.test(t.type)&&t.left===e||f(e)},ExpressionStatement:f,ReturnStatement:f,ThrowStatement:f,DoWhileStatement:f,DebuggerStatement:f,BreakStatement:f,ContinueStatement:f,ImportDeclaration:f,ExportAllDeclaration:f,ExportNamedDeclaration(e){e.declaration||f(e)},ExportDefaultDeclaration(e){/(?:Class|Function)Declaration/u.test(e.declaration.type)||f(e)}}}}},55300:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"enforce sorted import declarations within modules",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean",default:!1},ignoreMemberSort:{type:"boolean",default:!1},allowSeparatedGroups:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(e){const t=e.options[0]||{},r=t.ignoreCase||!1,n=t.ignoreDeclarationSort||!1,s=t.ignoreMemberSort||!1,a=t.memberSyntaxSortOrder||["none","all","multiple","single"],o=t.allowSeparatedGroups||!1,i=e.getSourceCode();let l=null;function c(e){return a.indexOf(function(e){return 0===e.specifiers.length?"none":"ImportNamespaceSpecifier"===e.specifiers[0].type?"all":1===e.specifiers.length?"single":"multiple"}(e))}function u(e){return e.specifiers[0]?e.specifiers[0].local.name:null}return{ImportDeclaration(t){if(!n){if(l&&o&&(p=l,f=t,Math.max(f.loc.start.line-p.loc.end.line-1,0)>0)&&(l=null),l){const n=c(t),s=c(l);let o=u(t),i=u(l);r&&(i=i&&i.toLowerCase(),o=o&&o.toLowerCase()),n!==s?n"ImportSpecifier"===e.type)),s=r?e=>e.local.name.toLowerCase():e=>e.local.name,a=n.map(s).findIndex(((e,t,r)=>r[t-1]>e));-1!==a&&e.report({node:n[a],messageId:"sortMembersAlphabetically",data:{memberName:n[a].local.name},fix:e=>n.some((e=>i.getCommentsBefore(e).length||i.getCommentsAfter(e).length))?null:e.replaceTextRange([n[0].range[0],n[n.length-1].range[1]],n.slice().sort(((e,t)=>s(e)>s(t)?1:-1)).reduce(((e,t,r)=>{const s=r===n.length-1?"":i.getText().slice(n[r].range[1],n[r+1].range[0]);return e+i.getText(t)+s}),""))})}}}}}},22524:(e,t,r)=>{"use strict";const n=r(48411),s=r(84347),a={asc:(e,t)=>e<=t,ascI:(e,t)=>e.toLowerCase()<=t.toLowerCase(),ascN:(e,t)=>s(e,t)<=0,ascIN:(e,t)=>s(e.toLowerCase(),t.toLowerCase())<=0,desc:(e,t)=>a.asc(t,e),descI:(e,t)=>a.ascI(t,e),descN:(e,t)=>a.ascN(t,e),descIN:(e,t)=>a.ascIN(t,e)};e.exports={meta:{type:"suggestion",docs:{description:"require object keys to be sorted",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean",default:!0},natural:{type:"boolean",default:!1},minKeys:{type:"integer",minimum:2,default:2}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(e){const t=e.options[0]||"asc",r=e.options[1],s=r&&!1===r.caseSensitive,o=r&&r.natural,i=r&&r.minKeys,l=a[t+(s?"I":"")+(o?"N":"")];let c=null;return{ObjectExpression(e){c={upper:c,prevName:null,numKeys:e.properties.length}},"ObjectExpression:exit"(){c=c.upper},SpreadElement(e){"ObjectExpression"===e.parent.type&&(c.prevName=null)},Property(r){if("ObjectPattern"===r.parent.type)return;const a=c.prevName,u=c.numKeys,p=function(e){const t=n.getStaticPropertyName(e);return null!==t?t:e.key.name||null}(r);null!==p&&(c.prevName=p),null===a||null===p||u{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require variables within the same declaration block to be sorted",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(e){const t=(e.options[0]||{}).ignoreCase||!1,r=e.getSourceCode();return{VariableDeclaration(n){const s=n.declarations.filter((e=>"Identifier"===e.id.type)),a=t?e=>e.id.name.toLowerCase():e=>e.id.name,o=s.some((e=>null!==e.init&&"Literal"!==e.init.type));let i=!1;s.slice(1).reduce(((t,n)=>{const l=a(t);return a(n)o||i?null:e.replaceTextRange([s[0].range[0],s[s.length-1].range[1]],s.slice().sort(((e,t)=>a(e)>a(t)?1:-1)).reduce(((e,t,n)=>{const a=n===s.length-1?"":r.getText().slice(s[n].range[1],s[n+1].range[0]);return e+r.getText(t)+a}),""))}),i=!0,t):n}),s[0])}}}}},34239:(e,t,r)=>{"use strict";const n=r(48411);function s(e){const t=e.parent;return"BlockStatement"===e.type&&n.isFunction(t)&&t.body===e}e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before blocks",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(e){const t=e.options[0],r=e.getSourceCode();let a=!0,o=!0,i=!0,l=!1,c=!1,u=!1;function p(t){const p=r.getTokenBefore(t);if(p&&!function(e,t){return n.isArrowToken(e)||n.isKeywordToken(e)&&!s(t)}(p,t)&&n.isTokenOnSameLine(p,t)){const n=r.isSpaceBetweenTokens(p,t);let f,d;s(t)?(f=a,d=l):"ClassBody"===t.type?(f=i,d=u):(f=o,d=c),f&&!n?e.report({node:t,messageId:"missingSpace",fix:e=>e.insertTextBefore(t," ")}):d&&n&&e.report({node:t,messageId:"unexpectedSpace",fix:e=>e.removeRange([p.range[1],t.range[0]])})}}return"object"==typeof t?(a="always"===t.functions,o="always"===t.keywords,i="always"===t.classes,l="never"===t.functions,c="never"===t.keywords,u="never"===t.classes):"never"===t&&(a=!1,o=!1,i=!1,l=!0,c=!0,u=!0),{BlockStatement:p,ClassBody:p,SwitchStatement:function(e){const t=e.cases;let n;n=t.length>0?r.getTokenBefore(t[0]):r.getLastToken(e,1),p(n)}}}}},71482:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before `function` definition opening parenthesis",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(e){const t=e.getSourceCode(),r="string"==typeof e.options[0]?e.options[0]:"always",s="object"==typeof e.options[0]?e.options[0]:{};function a(a){const o=function(e){if("ArrowFunctionExpression"===e.type){if(e.async&&n.isOpeningParenToken(t.getFirstToken(e,{skip:1})))return s.asyncArrow||r}else{if(function(e){if(e.id)return!0;const t=e.parent;return"MethodDefinition"===t.type||"Property"===t.type&&("get"===t.kind||"set"===t.kind||t.method)}(e))return s.named||r;if(!e.generator)return s.anonymous||r}return"ignore"}(a);if("ignore"===o)return;const i=t.getFirstToken(a,n.isOpeningParenToken),l=t.getTokenBefore(i),c=t.isSpaceBetweenTokens(l,i);c&&"never"===o?e.report({node:a,loc:{start:l.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix(e){const r=t.getCommentsBefore(i);return r.some((e=>"Line"===e.type))?null:e.replaceTextRange([l.range[1],i.range[0]],r.reduce(((e,r)=>e+t.getText(r)),""))}}):c||"always"!==o||e.report({node:a,loc:i.loc,messageId:"missingSpace",fix:e=>e.insertTextAfter(l," ")})}return{ArrowFunctionExpression:a,FunctionDeclaration:a,FunctionExpression:a}}}},9817:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing inside parentheses",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(e){const t="always"===e.options[0],r=e.options[1]&&e.options[1].exceptions||[],s={};let a;r.length&&(s.braceException=r.includes("{}"),s.bracketException=r.includes("[]"),s.parenException=r.includes("()"),s.empty=r.includes("empty"));const o=e.getSourceCode();function i(e){return a.openers.includes(e.value)}function l(e){return a.closers.includes(e.value)}return{Program:function(r){a=function(){const e=[],t=[];return s.braceException&&(e.push("{"),t.push("}")),s.bracketException&&(e.push("["),t.push("]")),s.parenException&&(e.push("("),t.push(")")),s.empty&&(e.push(")"),t.push("(")),{openers:e,closers:t}}();const c=o.tokensAndComments;c.forEach(((a,u)=>{const p=c[u-1],f=c[u+1];var d,h,m,g;(n.isOpeningParenToken(a)||n.isClosingParenToken(a))&&("("!==a.value||(d=a,h=f,o.isSpaceBetweenTokens(d,h)||!s.empty&&n.isClosingParenToken(h)||(t?i(h):!i(h)))||e.report({node:r,loc:a.loc,messageId:"missingOpeningSpace",fix:e=>e.insertTextAfter(a," ")}),"("===a.value&&function(e,r){return!!n.isTokenOnSameLine(e,r)&&"Line"!==r.type&&!!o.isSpaceBetweenTokens(e,r)&&(t?i(r):!i(r))}(a,f)&&e.report({node:r,loc:{start:a.loc.end,end:f.loc.start},messageId:"rejectedOpeningSpace",fix:e=>e.removeRange([a.range[1],f.range[0]])}),")"!==a.value||(m=p,g=a,o.isSpaceBetweenTokens(m,g)||!s.empty&&n.isOpeningParenToken(m)||(t?l(m):!l(m)))||e.report({node:r,loc:a.loc,messageId:"missingClosingSpace",fix:e=>e.insertTextBefore(a," ")}),")"===a.value&&function(e,r){return!!n.isTokenOnSameLine(e,r)&&!!o.isSpaceBetweenTokens(e,r)&&(t?l(e):!l(e))}(p,a)&&e.report({node:r,loc:{start:p.loc.end,end:a.loc.start},messageId:"rejectedClosingSpace",fix:e=>e.removeRange([p.range[1],a.range[0]])}))}))}}}}},7249:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require spacing around infix operators",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(e){const t=!!e.options[0]&&!0===e.options[0].int32Hint,r=e.getSourceCode();function n(e,t,n){const s=r.getFirstTokenBetween(e,t,(e=>e.value===n)),a=r.getTokenBefore(s),o=r.getTokenAfter(s);return r.isSpaceBetweenTokens(a,s)&&r.isSpaceBetweenTokens(s,o)?null:s}function s(t,n){e.report({node:t,loc:n.loc,messageId:"missingSpace",data:{operator:n.value},fix(e){const t=r.getTokenBefore(n),s=r.getTokenAfter(n);let a="";return n.range[0]-t.range[1]==0&&(a=" "),a+=n.value,s.range[0]-n.range[1]==0&&(a+=" "),e.replaceText(n,a)}})}function a(e){const a=n(e.left.typeAnnotation?e.left.typeAnnotation:e.left,e.right,e.operator||"=");a&&(t&&r.getText(e).endsWith("|0")||s(e,a))}return{AssignmentExpression:a,AssignmentPattern:a,BinaryExpression:a,LogicalExpression:a,ConditionalExpression:function(e){const t=n(e.test,e.consequent,"?"),r=n(e.consequent,e.alternate,":");t&&s(e,t),r&&s(e,r)},VariableDeclarator:function(e){const t=e.id.typeAnnotation?e.id.typeAnnotation:e.id,r=e.init;if(r){const a=n(t,r,"=");a&&s(e,a)}}}}}},60440:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce consistent spacing before or after unary operators",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(e){const t=e.options[0]||{words:!0,nonwords:!1},r=e.getSourceCode();function s(e){return t.overrides&&Object.prototype.hasOwnProperty.call(t.overrides,e)}function a(e){return t.overrides[e]}function o(t,r,n,s){n.range[0]===r.range[1]&&e.report({node:t,messageId:"wordOperator",data:{word:s},fix:e=>e.insertTextAfter(r," ")})}function i(t,r,s,a){n.canTokensBeAdjacent(r,s)&&s.range[0]>r.range[1]&&e.report({node:t,messageId:"unexpectedAfterWord",data:{word:a},fix:e=>e.removeRange([r.range[1],s.range[0]])})}function l(e,r,n,l){s(l)?a(l)?o(e,r,n,l):i(e,r,n,l):t.words?o(e,r,n,l):i(e,r,n,l)}function c(t,r,n){if(t.prefix){if(function(e){return e&&"UnaryExpression"===e.type&&"!"===e.argument.operator&&e.argument&&"UnaryExpression"===e.argument.type&&"!"===e.argument.operator}(t))return;r.range[1]===n.range[0]&&e.report({node:t,messageId:"operator",data:{operator:r.value},fix:e=>e.insertTextAfter(r," ")})}else r.range[1]===n.range[0]&&e.report({node:t,messageId:"beforeUnaryExpressions",data:{token:n.value},fix:e=>e.insertTextBefore(n," ")})}function u(t,r,s){t.prefix?s.range[0]>r.range[1]&&e.report({node:t,messageId:"unexpectedAfter",data:{operator:r.value},fix:e=>n.canTokensBeAdjacent(r,s)?e.removeRange([r.range[1],s.range[0]]):null}):s.range[0]>r.range[1]&&e.report({node:t,messageId:"unexpectedBefore",data:{operator:s.value},fix:e=>e.removeRange([r.range[1],s.range[0]])})}function p(e){const n="UpdateExpression"!==e.type||e.prefix?r.getFirstTokens(e,2):r.getLastTokens(e,2),o=n[0],i=n[1];if(("NewExpression"===e.type||e.prefix)&&"Keyword"===o.type)return void l(e,o,i,o.value);const p=e.prefix?n[0].value:n[1].value;s(p)?a(p)?c(e,o,i):u(e,o,i):t.nonwords?c(e,o,i):u(e,o,i)}return{UnaryExpression:p,UpdateExpression:p,NewExpression:p,YieldExpression:function(e){const t=r.getFirstTokens(e,3);e.argument&&!e.delegate&&l(e,t[0],t[1],"yield")},AwaitExpression:function(e){const t=r.getFirstTokens(e,3);l(e,t[0],t[1],"await")}}}}},43321:(e,t,r)=>{"use strict";const n=r(63150),s=r(48411);function a(e){return`(?:${n(e)})`}function o(e){return`${a(e)}+`}function i(e){let t="";return 0===e.length?t+="\\s":(t+="(?:\\s|",1===e.length?t+=o(e[0]):(t+="(?:",t+=e.map(o).join("|"),t+=")"),t+=`(?:$|[${Array.from(s.LINEBREAKS).join("")}]))`),t}function l(e,t){let r="^";return 1===e.length?r+=a(e[0]):(r+="(?:",r+=e.map(a).join("|"),r+=")"),r+="?",r+=i(t),new RegExp(r,"u")}function c(e){const t=`^(${e.map(a).join("|")})?[ \t]+`;return new RegExp(t,"u")}e.exports={meta:{type:"suggestion",docs:{description:"enforce consistent spacing after the `//` or `/*` in a comment",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(e){const t=e.getSourceCode(),r="never"!==e.options[0],n=e.options[1]||{},s=n.block&&n.block.balanced,o=["block","line"].reduce(((e,t)=>{const o=function(e){return-1===e.indexOf("*")?e.concat("*"):e}(n[t]&&n[t].markers||n.markers||[]),u=n[t]&&n[t].exceptions||n.exceptions||[];return e[t]={beginRegex:r?l(o,u):c(o),endRegex:s&&r?new RegExp(`${i(u)}$`,"u"):new RegExp("[ \t]+$","u"),hasExceptions:u.length>0,captureMarker:new RegExp(`^(${o.map(a).join("|")})`,"u"),markers:new Set(o)},e}),{});function u(t,n,s,a){const o="block"===t.type.toLowerCase()?"/*":"//";e.report({node:t,fix(e){const n=t.range[0];let a=n+2;return r?(s&&(a+=s[0].length),e.insertTextAfterRange([n,a]," ")):(a+=s[0].length,e.replaceTextRange([n,a],o+(s[1]?s[1]:"")))},messageId:n,data:{refChar:a}})}function p(t,n,s){e.report({node:t,fix(e){if(r)return e.insertTextAfterRange([t.range[0],t.range[1]-2]," ");const n=t.range[1]-2,a=n-s[0].length;return e.replaceTextRange([a,n],"")},messageId:n})}function f(e){const t=e.type.toLowerCase(),n=o[t],a="block"===t?"/*":"//";if(0===e.value.length||n.markers.has(e.value))return;const i=n.beginRegex.exec(e.value),l=n.endRegex.exec(e.value);if(r){if(!i){const t=n.captureMarker.exec(e.value),r=t?a+t[0]:a;n.hasExceptions?u(e,"expectedExceptionAfter",t,r):u(e,"expectedSpaceAfter",t,r)}s&&"block"===t&&!l&&p(e,"expectedSpaceBefore")}else i&&(i[1]?u(e,"unexpectedSpaceAfterMarker",i,i[1]):u(e,"unexpectedSpaceAfter",i,a)),s&&"block"===t&&l&&p(e,"unexpectedSpaceBefore",l)}return{Program(){t.getAllComments().filter((e=>"Shebang"!==e.type)).forEach(f)}}}}},7634:(e,t,r)=>{"use strict";const n=r(48411);function s(e){const t=[];for(let r=0;rt.remove(e)}function u(t,r,n,s,a){t.slice(r,n).forEach((t=>{e.report({node:t,messageId:s,fix:a?c(t):null})}))}function p(e,t,r){u(e,0,e.length,t,r)}function f(e,t,r){u(e,1,e.length,t,r)}function d(){r.pop()}function h(t){const u="BlockStatement"===t.body.type?s(t.body.body):[];"function"===i?function(t,s){const i=a.length>0,l=0===r.length&&0===a.length,u=r.length>0&&r[r.length-1],p=s.length>0;p?(o(t.params)?u?e.report({node:s[0],messageId:"unnecessary",fix:c(s[0])}):i&&e.report({node:s[0],messageId:"unnecessaryInClasses",fix:c(s[0])}):e.report({node:s[0],messageId:"nonSimpleParameterList"}),f(s,"multiple",!0)):l&&(o(t.params)?e.report({node:t,messageId:"function"}):e.report({node:t,messageId:"wrap",data:{name:n.getFunctionNameWithKind(t)}})),r.push(u||p)}(t,u):u.length>0&&(o(t.params)?p(u,i,l(i)):(e.report({node:u[0],messageId:"nonSimpleParameterList"}),f(u,"multiple",!0)))}t.impliedStrict?i="implied":"safe"===i&&(i=t.globalReturn?"global":"function");const m={Program(t){const r=s(t.body);"module"===t.sourceType&&(i="module"),"global"===i?(t.body.length>0&&0===r.length&&e.report({node:t,messageId:"global"}),f(r,"multiple",!0)):p(r,i,l(i))},FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h};return"function"===i&&Object.assign(m,{ClassBody(){a.push(!0)},"ClassBody:exit"(){a.pop()},"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d}),m}}},1214:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"enforce spacing around colons of switch statements",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(e){const t=e.getSourceCode(),r=e.options[0]||{},s=!0===r.before,a=!1!==r.after;function o(e,r,s){return n.isClosingBraceToken(r)||!n.isTokenOnSameLine(e,r)||t.isSpaceBetweenTokens(e,r)===s}function i(e,r,s,a){return function(e,r){return null!==t.getFirstTokenBetween(e,r,{includeComments:!0,filter:n.isCommentToken})}(r,s)?null:a?e.insertTextAfter(r," "):e.removeRange([r.range[1],s.range[0]])}return{SwitchCase(r){const l=function(e){return e.test?t.getTokenAfter(e.test,n.isColonToken):t.getFirstToken(e,1)}(r),c=t.getTokenBefore(l),u=t.getTokenAfter(l);o(c,l,s)||e.report({node:r,loc:l.loc,messageId:s?"expectedBefore":"unexpectedBefore",fix:e=>i(e,c,l,s)}),o(l,u,a)||e.report({node:r,loc:l.loc,messageId:a?"expectedAfter":"unexpectedAfter",fix:e=>i(e,l,u,a)})}}}}},56734:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"suggestion",docs:{description:"require symbol descriptions",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create:e=>({"Program:exit"(){const t=e.getScope(),r=n.getVariableByName(t,"Symbol");r&&0===r.defs.length&&r.references.forEach((t=>{const r=t.identifier;n.isCallee(r)&&function(t){0===t.arguments.length&&e.report({node:t,messageId:"expected"})}(r.parent)}))}})}},38250:(e,t,r)=>{"use strict";const n=r(48411);e.exports={meta:{type:"layout",docs:{description:"require or disallow spacing around embedded expressions of template strings",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(e){const t=e.getSourceCode(),r="always"===e.options[0];return{TemplateElement(s){const a=t.getFirstToken(s);!function(s){if(!s.value.startsWith("}"))return;const a=t.getTokenBefore(s,{includeComments:!0}),o=t.isSpaceBetween(a,s);n.isTokenOnSameLine(a,s)&&(r&&!o&&e.report({loc:{start:s.loc.start,end:{line:s.loc.start.line,column:s.loc.start.column+1}},messageId:"expectedBefore",fix:e=>e.insertTextBefore(s," ")}),!r&&o&&e.report({loc:{start:a.loc.end,end:s.loc.start},messageId:"unexpectedBefore",fix:e=>e.removeRange([a.range[1],s.range[0]])}))}(a),function(s){if(!s.value.endsWith("${"))return;const a=t.getTokenAfter(s,{includeComments:!0}),o=t.isSpaceBetween(s,a);n.isTokenOnSameLine(s,a)&&(r&&!o&&e.report({loc:{start:{line:s.loc.end.line,column:s.loc.end.column-2},end:s.loc.end},messageId:"expectedAfter",fix:e=>e.insertTextAfter(s," ")}),!r&&o&&e.report({loc:{start:s.loc.end,end:a.loc.start},messageId:"unexpectedAfter",fix:e=>e.removeRange([s.range[1],a.range[0]])}))}(a)}}}}},52599:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require or disallow spacing between template tags and their literals",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(e){const t="always"!==e.options[0],r=e.getSourceCode();return{TaggedTemplateExpression:function(n){const s=r.getTokenBefore(n.quasi),a=r.getFirstToken(n.quasi),o=r.isSpaceBetweenTokens(s,a);t&&o?e.report({node:n,loc:{start:s.loc.end,end:a.loc.start},messageId:"unexpected",fix(e){const t=r.getCommentsBefore(n.quasi);return t.some((e=>"Line"===e.type))?null:e.replaceTextRange([s.range[1],a.range[0]],t.reduce(((e,t)=>e+r.getText(t)),""))}}):t||o||e.report({node:n,loc:{start:n.loc.start,end:a.loc.start},messageId:"missing",fix:e=>e.insertTextAfter(s," ")})}}}}},38318:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require or disallow Unicode byte order mark (BOM)",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create:e=>({Program:function(t){const r=e.getSourceCode(),n={column:0,line:1},s=e.options[0]||"never";r.hasBOM||"always"!==s?r.hasBOM&&"never"===s&&e.report({node:t,loc:n,messageId:"unexpected",fix:e=>e.removeRange([-1,0])}):e.report({node:t,loc:n,messageId:"expected",fix:e=>e.insertTextBeforeRange([0,1],"\ufeff")})}})}},97156:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return Boolean(e)&&(n.isSpecificId(e,"NaN")||n.isSpecificMemberAccess(e,"Number","NaN"))}e.exports={meta:{type:"problem",docs:{description:"require calls to `isNaN()` when checking for `NaN`",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean",default:!0},enforceForIndexOf:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN."}},create(e){const t=!e.options[0]||e.options[0].enforceForSwitchCase,r=e.options[0]&&e.options[0].enforceForIndexOf,a={BinaryExpression:function(t){/^(?:[<>]|[!=]=)=?$/u.test(t.operator)&&(s(t.left)||s(t.right))&&e.report({node:t,messageId:"comparisonWithNaN"})}};return t&&(a.SwitchStatement=function(t){s(t.discriminant)&&e.report({node:t,messageId:"switchNaN"});for(const r of t.cases)s(r.test)&&e.report({node:r,messageId:"caseNaN"})}),r&&(a.CallExpression=function(t){const r=n.skipChainExpression(t.callee);if("MemberExpression"===r.type){const a=n.getStaticPropertyName(r);"indexOf"!==a&&"lastIndexOf"!==a||1!==t.arguments.length||!s(t.arguments[0])||e.report({node:t,messageId:"indexOfNaN",data:{methodName:a}})}}),a}}},48411:(e,t,r)=>{"use strict";const n=r(649),s=r(40577),a=r(63150),{breakableTypePattern:o,createGlobalLinebreakMatcher:i,lineBreakPattern:l,shebangPattern:c}=r(911),u=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,p=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,f=/Array$/u,d=/^(?:every|filter|find|findIndex|forEach|map|some)$/u,h=/^(?:bind|call|apply)$/u,m=/^[\s*]*@this/mu,g=new Set(["\r\n","\r","\n","\u2028","\u2029"]),y=new Set(["Program","BlockStatement","SwitchCase"]),x=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,b=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,E=new Set(["&&=","||=","??="]);function v(e,t,r){const n=e.identifier,s=0===t||r[t-1].identifier!==n;return n&&!1===e.init&&e.isWrite()&&s}function S(e){return e[0]!==e[0].toLocaleLowerCase()}function C(e){return e.id&&S(e.id.name)}function A(e){for(let t=e;t;t=t.parent)if(u.test(t.type))return t;return null}function k(e){return Boolean(e&&u.test(e.type))}function w(e){return Boolean(e&&p.test(e.type))}function D(e){return"Literal"===e.type&&null===e.value&&!e.regex&&!e.bigint}function F(e){return D(e)||"Identifier"===e.type&&"undefined"===e.name||"UnaryExpression"===e.type&&"void"===e.operator}function T(e){return"CallExpression"===e.parent.type&&e.parent.callee===e}function P(e){switch(e.type){case"Literal":if(null!==e.value)return String(e.value);if(D(e))return String(e.value);if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint;break;case"TemplateLiteral":if(0===e.expressions.length&&1===e.quasis.length)return e.quasis[0].value.cooked}return null}function I(e){let t;switch(e&&e.type){case"ChainExpression":return I(e.expression);case"Property":case"MethodDefinition":t=e.key;break;case"MemberExpression":t=e.property}return t?"Identifier"!==t.type||e.computed?P(t):t.name:null}function _(e){return e&&"ChainExpression"===e.type?e.expression:e}function B(e,t){return"string"==typeof t?e===t:t.test(e)}function O(e,t){return"Identifier"===e.type&&B(e.name,t)}function L(e,t,r){const n=_(e);if("MemberExpression"!==n.type)return!1;if(t&&!O(n.object,t))return!1;if(r){const e=I(n);if("string"!=typeof e||!B(e,r))return!1}return!0}function R(e,t){return e.regex||t.regex?Boolean(e.regex&&t.regex&&e.regex.pattern===t.regex.pattern&&e.regex.flags===t.regex.flags):e.bigint||t.bigint?e.bigint===t.bigint:e.value===t.value}function j(e){return L(e,"Reflect","apply")}function N(e){return L(e,f,"from")}function M(e){return L(e,null,d)}function V(e){return t=>!e(t)}function $(e){return"=>"===e.value&&"Punctuator"===e.type}function U(e){return","===e.value&&"Punctuator"===e.type}function q(e){return"."===e.value&&"Punctuator"===e.type}function G(e){return"?."===e.value&&"Punctuator"===e.type}function W(e){return";"===e.value&&"Punctuator"===e.type}function z(e){return":"===e.value&&"Punctuator"===e.type}function H(e){return"("===e.value&&"Punctuator"===e.type}function J(e){return")"===e.value&&"Punctuator"===e.type}function K(e){return"["===e.value&&"Punctuator"===e.type}function X(e){return"]"===e.value&&"Punctuator"===e.type}function Q(e){return"{"===e.value&&"Punctuator"===e.type}function Y(e){return"}"===e.value&&"Punctuator"===e.type}function Z(e,t){return e.id?t.getTokenAfter(e.id,H):t.getFirstToken(e,H)}function ee(e){return"LogicalExpression"===e.type&&("&&"===e.operator||"||"===e.operator)}function te(e){return"LogicalExpression"===e.type&&"??"===e.operator}e.exports={COMMENTS_IGNORE_PATTERN:/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,LINEBREAKS:g,LINEBREAK_MATCHER:l,SHEBANG_MATCHER:c,STATEMENT_LIST_PARENTS:y,isTokenOnSameLine:(e,t)=>e.loc.end.line===t.loc.start.line,isNullOrUndefined:F,isCallee:T,isES5Constructor:C,getUpperFunction:A,isFunction:k,isLoop:w,isInLoop:function(e){for(let t=e;t&&!k(t);t=t.parent)if(w(t))return!0;return!1},isArrayFromMethod:N,isParenthesised:function(e,t){const r=e.getTokenBefore(t),n=e.getTokenAfter(t);return Boolean(r&&n)&&"("===r.value&&r.range[1]<=t.range[0]&&")"===n.value&&n.range[0]>=t.range[1]},createGlobalLinebreakMatcher:i,equalTokens:function(e,t,r){const n=r.getTokens(e),s=r.getTokens(t);if(n.length!==s.length)return!1;for(let e=0;e"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type,isBreakableStatement:e=>o.test(e.type),getModifyingReferences:e=>e.filter(v),isSurroundedBy:(e,t)=>e[0]===t&&e[e.length-1]===t,isDirectiveComment(e){const t=e.value.trim();return"Line"===e.type&&0===t.indexOf("eslint-")||"Block"===e.type&&(0===t.indexOf("global ")||0===t.indexOf("eslint ")||0===t.indexOf("eslint-"))},getTrailingStatement:n.ast.trailingStatement,getVariableByName(e,t){let r=e;for(;r;){const e=r.set.get(t);if(e)return e;r=r.upper}return null},isDefaultThisBinding(e,t,{capIsConstructor:r=!0}={}){if(r&&C(e)||function(e,t){const r=t.getJSDocComment(e);return!(!r||!m.test(r.value))||t.getCommentsBefore(e).some((e=>m.test(e.value)))}(e,t))return!1;const n=null===e.id;let s=e;for(;s;){const e=s.parent;switch(e.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":s=e;break;case"ReturnStatement":{const t=A(e);if(null===t||!T(t))return!0;s=t.parent;break}case"ArrowFunctionExpression":if(s!==e.body||!T(e))return!0;s=e.parent;break;case"Property":case"MethodDefinition":return e.value!==s;case"AssignmentExpression":case"AssignmentPattern":return"MemberExpression"!==e.left.type&&!(r&&n&&"Identifier"===e.left.type&&S(e.left.name));case"VariableDeclarator":return!(r&&n&&e.init===s&&"Identifier"===e.id.type&&S(e.id.name));case"MemberExpression":if(e.object===s&&L(e,null,h)){const t="ChainExpression"===e.parent.type?e.parent:e;return!(T(t)&&t.parent.arguments.length>=1&&!F(t.parent.arguments[0]))}return!0;case"CallExpression":return j(e.callee)?3!==e.arguments.length||e.arguments[0]!==s||F(e.arguments[1]):N(e.callee)?3!==e.arguments.length||e.arguments[1]!==s||F(e.arguments[2]):!M(e.callee)||2!==e.arguments.length||e.arguments[0]!==s||F(e.arguments[1]);default:return!0}}return!0},getPrecedence(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(e.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return 20}},isEmptyBlock:e=>Boolean(e&&"BlockStatement"===e.type&&0===e.body.length),isEmptyFunction:t=>k(t)&&e.exports.isEmptyBlock(t.body),getDirectivePrologue(e){const t=[];if("Program"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type){const r="Program"===e.type?e.body:e.body.body;for(const e of r){if("ExpressionStatement"!==e.type||"Literal"!==e.expression.type)break;t.push(e)}}return t},isDecimalInteger:e=>"Literal"===e.type&&"number"==typeof e.value&&x.test(e.raw),isDecimalIntegerNumericToken:e=>"Numeric"===e.type&&x.test(e.value),getFunctionNameWithKind(e){const t=e.parent,r=[];if("MethodDefinition"===t.type&&t.static&&r.push("static"),e.async&&r.push("async"),e.generator&&r.push("generator"),"ArrowFunctionExpression"===e.type)r.push("arrow","function");else if("Property"===t.type||"MethodDefinition"===t.type){if("constructor"===t.kind)return"constructor";"get"===t.kind?r.push("getter"):"set"===t.kind?r.push("setter"):r.push("method")}else r.push("function");if(e.id)r.push(`'${e.id.name}'`);else{const e=I(t);null!==e&&r.push(`'${e}'`)}return r.join(" ")},getFunctionHeadLoc(e,t){const r=e.parent;let n=null,s=null;if("ArrowFunctionExpression"===e.type){const r=t.getTokenBefore(e.body,$);n=r.loc.start,s=r.loc.end}else"Property"===r.type||"MethodDefinition"===r.type?(n=r.loc.start,s=Z(e,t).loc.start):(n=e.loc.start,s=Z(e,t).loc.start);return{start:Object.assign({},n),end:Object.assign({},s)}},getNextLocation:(e,{line:t,column:r})=>r"Literal"===e.type&&("number"==typeof e.value||Boolean(e.bigint)),canTokensBeAdjacent(e,t){const r={ecmaVersion:s.latestEcmaVersion,comment:!0,range:!0};let n,a;if("string"==typeof e){let t;try{t=s.tokenize(e,r)}catch{return!1}const a=t.comments;if(n=t[t.length-1],a.length){const e=a[a.length-1];e.range[0]>n.range[0]&&(n=e)}}else n=e;if("Shebang"===n.type)return!1;if("string"==typeof t){let e;try{e=s.tokenize(t,r)}catch{return!1}const n=e.comments;if(a=e[0],n.length){const e=n[0];e.range[0]b.test(e),isLogicalExpression:ee,isCoalesceExpression:te,isMixedLogicalAndCoalesceExpressions:function(e,t){return ee(e)&&te(t)||te(e)&&ee(t)},isNullLiteral:D,getStaticStringValue:P,getStaticPropertyName:I,skipChainExpression:_,isSpecificId:O,isSpecificMemberAccess:L,equalLiteralValue:R,isSameReference:function e(t,r,n=!1){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r,n):"ChainExpression"===r.type&&e(t,r.expression,n);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":return t.name===r.name;case"Literal":return R(t,r);case"ChainExpression":return e(t.expression,r.expression,n);case"MemberExpression":if(!n){const s=I(t);if(null!==s)return e(t.object,r.object,n)&&s===I(r)}return t.computed===r.computed&&e(t.object,r.object,n)&&e(t.property,r.property,n);default:return!1}},isLogicalAssignmentOperator:function(e){return E.has(e)}}},67784:(e,t,r)=>{"use strict";const n=r(48411);e.exports=class{constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){const t=n.getUpperFunction(e);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){const t=this.sourceCode.getTokenBefore(e)||e,r=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([t.range[0],r.range[1]])}replaceTextRange(e,t){let r;return r=this.retainedRange?[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:e,this.fixer.replaceTextRange(r,this.sourceCode.text.slice(r[0],e[0])+t+this.sourceCode.text.slice(e[1],r[1]))}remove(e){return this.replaceTextRange(e.range,"")}}},21416:e=>{"use strict";e.exports=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]},76588:(e,t,r)=>{"use strict";const n=r(11227)("eslint:rules");class s extends Map{constructor(e){let t=e.length;super(n.enabled?e.map((([e,r])=>{let s=null;return[e,()=>(s||(n("Loading rule %o (remaining=%d)",e,--t),s=r()),s)]})):e),Object.defineProperty(s.prototype,"set",{configurable:!0,value:void 0})}get(e){const t=super.get(e);return t&&t()}*values(){for(const e of super.values())yield e()}*entries(){for(const[e,t]of super.entries())yield[e,t()]}forEach(e,t){for(const[r,n]of super.entries())e.call(t,n(),r,this)}}Object.defineProperties(s.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:s.prototype.entries}}),e.exports={LazyLoadingRuleMap:s}},51387:e=>{"use strict";e.exports=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/u},73732:(e,t,r)=>{"use strict";e.exports={isCombiningCharacter:r(29252),isEmojiModifier:r(98488),isRegionalIndicatorSymbol:r(88585),isSurrogatePair:r(56163)}},29252:e=>{"use strict";e.exports=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}},98488:e=>{"use strict";e.exports=function(e){return e>=127995&&e<=127999}},88585:e=>{"use strict";e.exports=function(e){return e>=127462&&e<=127487}},56163:e=>{"use strict";e.exports=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}},36871:(e,t,r)=>{"use strict";const n=r(5291);e.exports={meta:{type:"suggestion",docs:{description:"enforce valid JSDoc comments",category:"Possible Errors",recommended:!1,url:"https://eslint.org/docs/rules/valid-jsdoc"},schema:[{type:"object",properties:{prefer:{type:"object",additionalProperties:{type:"string"}},preferType:{type:"object",additionalProperties:{type:"string"}},requireReturn:{type:"boolean",default:!0},requireParamDescription:{type:"boolean",default:!0},requireReturnDescription:{type:"boolean",default:!0},matchDescription:{type:"string"},requireReturnType:{type:"boolean",default:!0},requireParamType:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unexpectedTag:"Unexpected @{{title}} tag; function has no return statement.",expected:"Expected JSDoc for '{{name}}' but found '{{jsdocName}}'.",use:"Use @{{name}} instead.",useType:"Use '{{expectedTypeName}}' instead of '{{currentTypeName}}'.",syntaxError:"JSDoc syntax error.",missingBrace:"JSDoc type missing brace.",missingParamDesc:"Missing JSDoc parameter description for '{{name}}'.",missingParamType:"Missing JSDoc parameter type for '{{name}}'.",missingReturnType:"Missing JSDoc return type.",missingReturnDesc:"Missing JSDoc return description.",missingReturn:"Missing JSDoc @{{returns}} for function.",missingParam:"Missing JSDoc for parameter '{{name}}'.",duplicateParam:"Duplicate JSDoc parameter '{{name}}'.",unsatisfiedDesc:"JSDoc description does not satisfy the regex pattern."},deprecated:!0,replacedBy:[]},create(e){const t=e.options[0]||{},r=t.prefer||{},s=e.getSourceCode(),a=!1!==t.requireReturn,o=!1!==t.requireParamDescription,i=!1!==t.requireReturnDescription,l=!1!==t.requireReturnType,c=!1!==t.requireParamType,u=t.preferType||{},p=0!==Object.keys(u).length,f=[];function d(e){return"ClassExpression"===e.type||"ClassDeclaration"===e.type}function h(e){f.push({returnPresent:"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type||d(e)||e.async})}function m(e){return null===e.type||"void"===e.type.name||"UndefinedLiteral"===e.type.type}function g(e){let t;return e.name?t=e:e.expression&&(t=e.expression),{currentType:t,expectedTypeName:t&&u[t.name]}}function y(e,t){return{start:s.getLocFromIndex(e.range[0]+2+t.range[0]),end:s.getLocFromIndex(e.range[0]+2+t.range[1])}}function x(t,r){if(!r||!function(e){return"UndefinedLiteral"!==e&&"NullLiteral"!==e&&"NullableLiteral"!==e&&"FunctionType"!==e&&"AllLiteral"!==e}(r.type))return;const n=[];let s=[];switch(r.type){case"TypeApplication":s="UnionType"===r.applications[0].type?r.applications[0].elements:r.applications,n.push(g(r));break;case"RecordType":s=r.fields;break;case"UnionType":case"ArrayType":s=r.elements;break;case"FieldType":r.value&&n.push(g(r.value));break;default:n.push(g(r))}s.forEach(x.bind(null,t)),n.forEach((r=>{r.expectedTypeName&&r.expectedTypeName!==r.currentType.name&&e.report({node:t,messageId:"useType",loc:y(t,r.currentType),data:{currentTypeName:r.currentType.name,expectedTypeName:r.expectedTypeName},fix:e=>e.replaceTextRange(r.currentType.range.map((e=>t.range[0]+2+e)),r.expectedTypeName)})}))}function b(u){const h=s.getJSDocComment(u),g=f.pop(),b=Object.create(null),E=[];let v,S=!1,C=!1,A=!1,k=!1,w=!1;if(h){let s;try{s=n.parse(h.value,{strict:!0,unwrap:!0,sloppy:!0,range:!0})}catch(t){return void(/braces/iu.test(t.message)?e.report({node:h,messageId:"missingBrace"}):e.report({node:h,messageId:"syntaxError"}))}s.tags.forEach((t=>{switch(t.title.toLowerCase()){case"param":case"arg":case"argument":E.push(t);break;case"return":case"returns":S=!0,v=t;break;case"constructor":case"class":C=!0;break;case"override":case"inheritdoc":k=!0;break;case"abstract":case"virtual":w=!0;break;case"interface":A=!0}if(Object.prototype.hasOwnProperty.call(r,t.title)&&t.title!==r[t.title]){const n=y(h,t);e.report({node:h,messageId:"use",loc:{start:n.start,end:{line:n.start.line,column:n.start.column+`@${t.title}`.length}},data:{name:r[t.title]},fix:e=>e.replaceTextRange([h.range[0]+t.range[0]+3,h.range[0]+t.range[0]+t.title.length+3],r[t.title])})}p&&t.type&&x(h,t.type)})),E.forEach((t=>{c&&!t.type&&e.report({node:h,messageId:"missingParamType",loc:y(h,t),data:{name:t.name}}),!t.description&&o&&e.report({node:h,messageId:"missingParamDesc",loc:y(h,t),data:{name:t.name}}),b[t.name]?e.report({node:h,messageId:"duplicateParam",loc:y(h,t),data:{name:t.name}}):-1===t.name.indexOf(".")&&(b[t.name]=t)})),S&&(a||g.returnPresent||null!==v.type&&m(v)||w?(l&&!v.type&&e.report({node:h,messageId:"missingReturnType"}),m(v)||v.description||!i||e.report({node:h,messageId:"missingReturnDesc"})):e.report({node:h,messageId:"unexpectedTag",loc:y(h,v),data:{title:v.title}})),k||S||C||A||"get"===u.parent.kind||"constructor"===u.parent.kind||"set"===u.parent.kind||d(u)||(a||g.returnPresent&&!u.async)&&e.report({node:h,messageId:"missingReturn",data:{returns:r.returns||"returns"}});const f=Object.keys(b);u.params&&u.params.forEach(((t,r)=>{const n="AssignmentPattern"===t.type?t.left:t;if("Identifier"===n.type){const t=n.name;f[r]&&t!==f[r]?e.report({node:h,messageId:"expected",loc:y(h,b[f[r]]),data:{name:t,jsdocName:f[r]}}):b[t]||k||e.report({node:h,messageId:"missingParam",data:{name:t}})}})),t.matchDescription&&(new RegExp(t.matchDescription,"u").test(s.description)||e.report({node:h,messageId:"unsatisfiedDesc"}))}}return{ArrowFunctionExpression:h,FunctionExpression:h,FunctionDeclaration:h,ClassExpression:h,ClassDeclaration:h,"ArrowFunctionExpression:exit":b,"FunctionExpression:exit":b,"FunctionDeclaration:exit":b,"ClassExpression:exit":b,"ClassDeclaration:exit":b,ReturnStatement:function(e){const t=f[f.length-1];t&&null!==e.argument&&(t.returnPresent=!0)}}}}},91910:e=>{"use strict";e.exports={meta:{type:"problem",docs:{description:"enforce comparing `typeof` expressions against valid strings",category:"Possible Errors",recommended:!0,url:"https://eslint.org/docs/rules/valid-typeof"},schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals."}},create(e){const t=["symbol","undefined","object","boolean","number","string","function","bigint"],r=["==","===","!=","!=="],n=e.options[0]&&e.options[0].requireStringLiterals;function s(e){return"UnaryExpression"===e.type&&"typeof"===e.operator}return{UnaryExpression(a){if(s(a)){const o=e.getAncestors().pop();if("BinaryExpression"===o.type&&-1!==r.indexOf(o.operator)){const r=o.left===a?o.right:o.left;if("Literal"===r.type||"TemplateLiteral"===r.type&&!r.expressions.length){const n="Literal"===r.type?r.value:r.quasis[0].value.cooked;-1===t.indexOf(n)&&e.report({node:r,messageId:"invalidValue"})}else n&&!s(r)&&e.report({node:r,messageId:"notString"})}}}}}}},32420:e=>{"use strict";e.exports={meta:{type:"suggestion",docs:{description:"require `var` declarations be placed at the top of their containing scope",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(e){function t(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value}function r(e){return"ImportDeclaration"===e.type||"ImportSpecifier"===e.type||"ImportDefaultSpecifier"===e.type||"ImportNamespaceSpecifier"===e.type}function n(e){return"VariableDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.declaration&&"VariableDeclaration"===e.declaration.type}function s(e,s){const a=s.length;let o=0;for(;o{"use strict";const n=r(48411),s=r(49303);e.exports={meta:{type:"layout",docs:{description:"require parentheses around immediate `function` invocations",category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(e){const t=e.options[0]||"outside",r=e.options[1]&&e.options[1].functionPrototypeMethods,a=e.getSourceCode();function o(e){return n.isParenthesised(a,e)}return{CallExpression(i){const l=function(e){const t=n.skipChainExpression(e.callee);return"FunctionExpression"===t.type?t:!r||"MemberExpression"!==t.type||"FunctionExpression"!==t.object.type||"call"!==n.getStaticPropertyName(t)&&"apply"!==n.getStaticPropertyName(t)?null:t.object}(i);if(!l)return;const c=o(i),u=o(l);c||u?"inside"!==t||u?"outside"!==t||c||e.report({node:i,messageId:"moveInvocation",fix(e){const t=a.getTokenAfter(l);return e.replaceTextRange([t.range[0],i.range[1]],`${a.getText().slice(t.range[1],i.range[1])})`)}}):e.report({node:i,messageId:"wrapExpression",fix(e){if(function(e){return s.isParenthesized(1,e,a)}(i)&&!function(e){const t="ChainExpression"===e.parent.type?e.parent:e;return"NewExpression"===t.parent.type&&t.parent.callee===t}(i)){const t=a.getTokenAfter(i);return e.replaceTextRange([l.range[1],t.range[1]],`)${a.getText().slice(l.range[1],t.range[0])}`)}return e.replaceText(l,`(${a.getText(l)})`)}}):e.report({node:i,messageId:"wrapInvocation",fix(e){const r="inside"===t?l:i;return e.replaceText(r,`(${a.getText(r)})`)}})}}}}},81865:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require parenthesis around regex literals",category:"Stylistic Issues",recommended:!1,url:"https://eslint.org/docs/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(e){const t=e.getSourceCode();return{Literal(r){if("RegularExpression"===t.getFirstToken(r).type){const n=t.getTokenBefore(r),s=t.getTokenAfter(r),a=e.getAncestors(),o=a[a.length-1];"MemberExpression"!==o.type||o.object!==r||n&&"("===n.value&&s&&")"===s.value||e.report({node:r,messageId:"requireParens",fix:e=>e.replaceText(r,`(${t.getText(r)})`)})}}}}}},13353:e=>{"use strict";e.exports={meta:{type:"layout",docs:{description:"require or disallow spacing around the `*` in `yield*` expressions",category:"ECMAScript 6",recommended:!1,url:"https://eslint.org/docs/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const t=e.getSourceCode(),r=(n=e.options[0])&&"string"!=typeof n?n:{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[n||"after"];var n;function s(n,s,a){if(t.isSpaceBetweenTokens(s,a)!==r[n]){const t="*"===s.value,o=r[n],i=t?s:a;let l="";l=o?"before"===n?"missingBefore":"missingAfter":"before"===n?"unexpectedBefore":"unexpectedAfter",e.report({node:i,messageId:l,fix:e=>o?t?e.insertTextAfter(i," "):e.insertTextBefore(i," "):e.removeRange([s.range[1],a.range[0]])})}}return{YieldExpression:function(e){if(!e.delegate)return;const r=t.getFirstTokens(e,3),n=r[0],a=r[1],o=r[2];s("before",n,a),s("after",a,o)}}}}},46373:(e,t,r)=>{"use strict";const n=r(48411);function s(e){return["<","<="].indexOf(e)>=0}function a(e){return"UnaryExpression"===e.type&&"-"===e.operator&&e.prefix&&n.isNumericLiteral(e.argument)}function o(e){return"TemplateLiteral"===e.type&&0===e.expressions.length}function i(e){return a(e)||o(e)}function l(e){return"Literal"===e.type?e:a(e)?{type:"Literal",value:-e.argument.value,raw:`-${e.argument.value}`}:o(e)?{type:"Literal",value:e.quasis[0].value.cooked,raw:e.quasis[0].value.raw}:null}e.exports={meta:{type:"suggestion",docs:{description:'require or disallow "Yoda" conditions',category:"Best Practices",recommended:!1,url:"https://eslint.org/docs/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean",default:!1},onlyEquality:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(e){const t="always"===e.options[0],r=e.options[1]&&e.options[1].exceptRange,a=e.options[1]&&e.options[1].onlyEquality,o=e.getSourceCode(),c={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};return{BinaryExpression(u){const p=t?u.left:u.right,f=t?u.right:u.left;var d;"Literal"!==f.type&&!i(f)||"Literal"===p.type||i(p)||(d=u.operator,!/^(==|===)$/u.test(d)&&a)||!function(e){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(e)}(u.operator)||r&&function(e){const t=e.left,r=e.right;return"LogicalExpression"===e.type&&"BinaryExpression"===t.type&&"BinaryExpression"===r.type&&s(t.operator)&&s(r.operator)&&(function(){if("&&"===e.operator&&n.isSameReference(t.right,r.left)){const e=l(t.left),n=l(r.right);if(null===e&&null===n)return!1;if(null===n||null===e)return!0;if(e.value<=n.value)return!0}return!1}()||function(){if("||"===e.operator&&n.isSameReference(t.left,r.right)){const e=l(t.right),n=l(r.left);if(null===e&&null===n)return!1;if(null===n||null===e)return!0;if(e.value<=n.value)return!0}return!1}())&&n.isParenthesised(o,e)}(e.getAncestors().pop())||e.report({node:u,messageId:"expected",data:{operator:u.operator,expectedSide:t?"left":"right"},fix:e=>e.replaceText(u,function(e){const t=o.getFirstTokenBetween(e.left,e.right,(t=>t.value===e.operator)),r=o.getTokenBefore(t),s=o.getTokenAfter(t),a=o.getText(),i=a.slice(e.range[0],r.range[1]),l=a.slice(r.range[1],t.range[0]),u=a.slice(t.range[1],s.range[0]),p=a.slice(s.range[0],e.range[1]),f=o.getTokenBefore(e),d=o.getTokenAfter(e);let h="",m="";return f&&f.range[1]===e.range[0]&&!n.canTokensBeAdjacent(f,s)&&(h=" "),d&&e.range[1]===d.range[0]&&!n.canTokensBeAdjacent(r,d)&&(m=" "),h+p+l+c[t.value]+u+i+m}(u))})}}}}},911:e=>{"use strict";const t=/\r\n|[\r\n\u2028\u2029]/u;e.exports={breakableTypePattern:/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,lineBreakPattern:t,createGlobalLinebreakMatcher:function(){return new RegExp(t.source,"gu")},shebangPattern:/^#!([^\r\n]+)/u}},98151:e=>{"use strict";e.exports={upperCaseFirst:function(e){return e.length<=1?e.toUpperCase():e[0].toUpperCase()+e.slice(1)}}},86151:(e,t,r)=>{"use strict";const n=r(29736),s=r(11227)("eslint:traverser");function a(){}class o{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(e,t){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=t.visitorKeys||n.KEYS,this._enter=t.enter||a,this._leave=t.leave||a,this._traverse(e,null)}_traverse(e,t){if(null!==(r=e)&&"object"==typeof r&&"string"==typeof r.type){var r;if(this._current=e,this._skipped=!1,this._enter(e,t),!this._skipped&&!this._broken){const t=function(e,t){let r=e[t.type];return r||(r=n.getKeys(t),s('Unknown node type "%s": Estimated visitor keys %j',t.type,r)),r}(this._visitorKeys,e);if(t.length>=1){this._parents.push(e);for(let r=0;r{"use strict";e.exports={SourceCode:r(300)}},300:(e,t,r)=>{"use strict";const{isCommentToken:n}=r(49303),s=r(96159),a=r(911),o=r(86151);function i(e,t,r,n){if(function(e,t){return e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]||t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]}(t,r))return!1;const[s,a]=t.range[1]<=r.range[0]?[t,r]:[r,t],o=e.getLastToken(s)||s,i=e.getFirstToken(a)||a;let l=o;for(;l!==i;){const t=e.getTokenAfter(l,{includeComments:!0});if(l.range[1]!==t.range[0]||n&&t!==i&&"JSXText"===t.type&&/\s/u.test(t.value))return!0;l=t}return!1}e.exports=class extends s{constructor(e,t){let r,n,s,i,l;"string"==typeof e?(r=e,n=t):"object"==typeof e&&null!==e&&(r=e.text,n=e.ast,s=e.parserServices,i=e.scopeManager,l=e.visitorKeys),function(e){if(!e.tokens)throw new Error("AST is missing the tokens array.");if(!e.comments)throw new Error("AST is missing the comments array.");if(!e.loc)throw new Error("AST is missing location information.");if(!e.range)throw new Error("AST is missing range information")}(n),super(n.tokens,n.comments),this.hasBOM=65279===r.charCodeAt(0),this.text=this.hasBOM?r.slice(1):r,this.ast=n,this.parserServices=s||{},this.scopeManager=i||null,this.visitorKeys=l||o.DEFAULT_VISITOR_KEYS;const c=this.text.match(a.shebangPattern);c&&n.comments.length&&n.comments[0].value===c[1]&&(n.comments[0].type="Shebang"),this.tokensAndComments=function(e,t){const r=[];let n=0,s=0;for(;n=t.length||ne.parent.end);)t.trailing.push(r),r=this.getTokenAfter(r,{includeComments:!0})}return this._commentCache.set(e,t),t}getJSDocComment(e){const t=e=>{const t=this.getTokenBefore(e,{includeComments:!0});return t&&n(t)&&"Block"===t.type&&"*"===t.value.charAt(0)&&e.loc.start.line-t.loc.end.line<=1?t:null};let r=e.parent;switch(e.type){case"ClassDeclaration":case"FunctionDeclaration":return t("ExportDefaultDeclaration"===(s=r).type||"ExportNamedDeclaration"===s.type||"ExportAllDeclaration"===s.type||"ExportSpecifier"===s.type?r:e);case"ClassExpression":return t(r.parent);case"ArrowFunctionExpression":case"FunctionExpression":if("CallExpression"!==r.type&&"NewExpression"!==r.type){for(;!this.getCommentsBefore(r).length&&!/Function/u.test(r.type)&&"MethodDefinition"!==r.type&&"Property"!==r.type&&(r=r.parent,r););if(r&&"FunctionDeclaration"!==r.type&&"Program"!==r.type)return t(r)}return t(e);default:return null}var s}getNodeByRangeIndex(e){let t=null;return o.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(r){r.range[0]<=e&&ethis.text.length)throw new RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines[this.lines.length-1].length};const t=e>=this.lineStartIndices[this.lineStartIndices.length-1]?this.lineStartIndices.length:this.lineStartIndices.findIndex((t=>ethis.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);const t=this.lineStartIndices[e.line-1],r=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],n=t+e.column;if(e.line===this.lineStartIndices.length&&n>r||e.line=r)throw new RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${r-t}).`);return n}}},61927:(e,t,r)=>{"use strict";const n=r(44717),s=r(59103);e.exports=class extends n{constructor(e,t,r,n,a){super(),this.tokens=e,this.comments=t,this.tokenIndex=s.getLastIndex(e,r,a),this.commentIndex=s.search(t,a)-1,this.border=n}moveNext(){const e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!t||e.range[1]>t.range[1])?(this.current=e,this.tokenIndex-=1):t?(this.current=t,this.commentIndex-=1):this.current=null,Boolean(this.current)&&(-1===this.border||this.current.range[0]>=this.border)}}},26981:(e,t,r)=>{"use strict";const n=r(44717),s=r(59103);e.exports=class extends n{constructor(e,t,r,n,a){super(),this.tokens=e,this.index=s.getLastIndex(e,r,a),this.indexEnd=s.getFirstIndex(e,r,n)}moveNext(){return this.index>=this.indexEnd&&(this.current=this.tokens[this.index],this.index-=1,!0)}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}}},44717:e=>{"use strict";e.exports=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){const e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}},76215:(e,t,r)=>{"use strict";const n=r(61927),s=r(26981),a=r(82610),o=r(59542),i=r(94898),l=r(57645),c=r(88934);class u{constructor(e,t){this.TokenCursor=e,this.TokenCommentCursor=t}createBaseCursor(e,t,r,n,s,a){return new(a?this.TokenCommentCursor:this.TokenCursor)(e,t,r,n,s)}createCursor(e,t,r,n,s,o,i,u,p){let f=this.createBaseCursor(e,t,r,n,s,o);return i&&(f=new a(f,i)),u>=1&&(f=new c(f,u)),p>=0&&(f=new l(f,p)),f}}t.forward=new u(i,o),t.backward=new u(s,n)},24019:(e,t,r)=>{"use strict";const n=r(44717);e.exports=class extends n{constructor(e){super(),this.cursor=e}moveNext(){const e=this.cursor.moveNext();return this.current=this.cursor.current,e}}},82610:(e,t,r)=>{"use strict";const n=r(24019);e.exports=class extends n{constructor(e,t){super(e),this.predicate=t}moveNext(){const e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}}},59542:(e,t,r)=>{"use strict";const n=r(44717),s=r(59103);e.exports=class extends n{constructor(e,t,r,n,a){super(),this.tokens=e,this.comments=t,this.tokenIndex=s.getFirstIndex(e,r,n),this.commentIndex=s.search(t,n),this.border=a}moveNext(){const e=this.tokenIndex{"use strict";const n=r(44717),s=r(59103);e.exports=class extends n{constructor(e,t,r,n,a){super(),this.tokens=e,this.index=s.getFirstIndex(e,r,n),this.indexEnd=s.getLastIndex(e,r,a)}moveNext(){return this.index<=this.indexEnd&&(this.current=this.tokens[this.index],this.index+=1,!0)}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}}},96159:(e,t,r)=>{"use strict";const n=r(69282),{isCommentToken:s}=r(49303),a=r(76215),o=r(94898),i=r(76597),l=r(59103),c=Symbol("tokens"),u=Symbol("comments"),p=Symbol("indexMap");function f(e,t,r,s,a,o,i){let l=!1,c=0,u=null;return"number"==typeof i?c=0|i:"function"==typeof i?u=i:i&&(l=!!i.includeComments,c=0|i.skip,u=i.filter||null),n(c>=0,"options.skip should be zero or a positive integer."),n(!u||"function"==typeof u,"options.filter should be a function."),e.createCursor(t,r,s,a,o,l,u,c,-1)}function d(e,t,r,s,a,o,i){let l=!1,c=0,u=!1,p=null;return"number"==typeof i?(c=0|i,u=!0):"function"==typeof i?p=i:i&&(l=!!i.includeComments,c=0|i.count,u="number"==typeof i.count,p=i.filter||null),n(c>=0,"options.count should be zero or a positive integer."),n(!p||"function"==typeof p,"options.filter should be a function."),e.createCursor(t,r,s,a,o,l,p,0,u?c:-1)}function h(e,t,r,n,s,l,c){return void 0===l&&void 0===c?new o(e,t,r,n,s):"number"==typeof l||void 0===l?new i(e,t,r,n,s,0|l,0|c):d(a.forward,e,t,r,n,s,l)}function m(e){const t=[];let r=e.getOneToken();for(;r&&s(r);)t.push(r),r=e.getOneToken();return t}e.exports=class{constructor(e,t){this[c]=e,this[u]=t,this[p]=function(e,t){const r=Object.create(null);let n=0,s=0,a=0,o=null;for(;n{"use strict";const n=r(24019);e.exports=class extends n{constructor(e,t){super(e),this.count=t}moveNext(){return this.count>0&&(this.count-=1,super.moveNext())}}},76597:(e,t,r)=>{"use strict";const n=r(94898);e.exports=class extends n{constructor(e,t,r,n,s,a,o){super(e,t,r,n,s),this.index=Math.max(0,this.index-a),this.indexEnd=Math.min(e.length-1,this.indexEnd+o)}}},88934:(e,t,r)=>{"use strict";const n=r(24019);e.exports=class extends n{constructor(e,t){super(e),this.count=t}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}}},59103:(e,t)=>{"use strict";t.search=function(e,t){const r=e.findIndex((e=>t<=e.range[0]));return-1===r?e.length:r},t.getFirstIndex=function(e,t,r){if(r in t)return t[r];if(r-1 in t){const n=t[r-1],s=n>=0&&n=r?n:n+1}return 0},t.getLastIndex=function(e,t,r){if(r in t)return t[r]-1;if(r-1 in t){const n=t[r-1],s=n>=0&&nr?n-1:n}return e.length-1}},49303:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,s=(n=r(66392))&&"object"==typeof n&&"default"in n?n.default:n;function a(e,t){const r=t.range[0];let n=e,s=!1;do{s=!1;for(const e of n.childScopes){const t=e.block.range;if(t[0]<=r&&r"===e.value&&"Punctuator"===e.type}function u(e){return","===e.value&&"Punctuator"===e.type}function p(e){return";"===e.value&&"Punctuator"===e.type}function f(e){return":"===e.value&&"Punctuator"===e.type}function d(e){return"("===e.value&&"Punctuator"===e.type}function h(e){return")"===e.value&&"Punctuator"===e.type}function m(e){return"["===e.value&&"Punctuator"===e.type}function g(e){return"]"===e.value&&"Punctuator"===e.type}function y(e){return"{"===e.value&&"Punctuator"===e.type}function x(e){return"}"===e.value&&"Punctuator"===e.type}function b(e){return"Line"===e.type||"Block"===e.type||"Shebang"===e.type}const E=l(c),v=l(u),S=l(p),C=l(f),A=l(d),k=l(h),w=l(m),D=l(g),F=l(y),T=l(x),P=l(b);function I(e,t){return e.id?t.getTokenAfter(e.id,d):t.getFirstToken(e,d)}function _(e,t){const r=e.parent;let n=null,s=null;if("ArrowFunctionExpression"===e.type){const r=t.getTokenBefore(e.body,c);n=r.loc.start,s=r.loc.end}else"Property"===r.type||"MethodDefinition"===r.type?(n=r.loc.start,s=I(e,t).loc.start):(n=e.loc.start,s=I(e,t).loc.start);return{start:Object.assign({},n),end:Object.assign({},s)}}const B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},O=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),L=new Set([Array.isArray,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,...Object.getOwnPropertyNames(Math).map((e=>Math[e])).filter((e=>"function"==typeof e)),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,String,String.fromCharCode,String.fromCodePoint,String.raw,Symbol,Symbol.for,Symbol.keyFor,unescape].filter((e=>"function"==typeof e))),R=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function j(e,t){const r=[];for(let n=0;n"="===e.operator?M(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;const r=M(e.left,t),n=M(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:Math.pow(r.value,n.value)};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){const r=e.callee,n=j(e.arguments,t);if(null!=n)if("MemberExpression"===r.type){const s=M(r.object,t);if(null!=s){if(null==s.value&&(s.optional||e.optional))return{value:void 0,optional:!0};const a=r.computed?M(r.property,t):{value:r.property.name};if(null!=a){const e=s.value,t=a.value;if(L.has(e[t]))return{value:e[t](...n)};if(R.has(e[t]))return{value:n[0]}}}}else{const s=M(r,t);if(null!=s){if(null==s.value&&e.optional)return{value:void 0,optional:!0};const t=s.value;if(L.has(t))return{value:t(...n)};if(R.has(t))return{value:n[0]}}}return null},ConditionalExpression(e,t){const r=M(e.test,t);return null!=r?r.value?M(e.consequent,t):M(e.alternate,t):null},ExpressionStatement:(e,t)=>M(e.expression,t),Identifier(e,t){if(null!=t){const r=o(t,e);if(null!=r&&0===r.defs.length&&O.has(r.name)&&r.name in B)return{value:B[r.name]};if(null!=r&&1===r.defs.length){const e=r.defs[0];if(e.parent&&"const"===e.parent.kind&&"Identifier"===e.node.id.type)return M(e.node.init,t)}}return null},Literal:e=>null==e.regex&&null==e.bigint||null!=e.value?{value:e.value}:null,LogicalExpression(e,t){const r=M(e.left,t);if(null!=r){if("||"===e.operator&&!0===Boolean(r.value)||"&&"===e.operator&&!1===Boolean(r.value)||"??"===e.operator&&null!=r.value)return r;const n=M(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){const r=M(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};const n=e.computed?M(e.property,t):{value:e.property.name};if(null!=n&&!function(e,t){const r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]}}return null},ChainExpression(e,t){const r=M(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){const r=M(e.callee,t),n=j(e.arguments,t);if(null!=r&&null!=n){const e=r.value;if(L.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){const r={};for(const n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;const e=n.computed?M(n.key,t):{value:n.key.name},s=M(n.value,t);if(null==e||null==s)return null;r[e.value]=s.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;{const e=M(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}}return{value:r}},SequenceExpression:(e,t)=>M(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){const r=M(e.tag,t),n=j(e.quasi.expressions,t);if(null!=r&&null!=n){const t=r.value,s=e.quasi.quasis.map((e=>e.value.cooked));if(s.raw=e.quasi.quasis.map((e=>e.value.raw)),t===String.raw)return{value:t(s,...n)}}return null},TemplateLiteral(e,t){const r=j(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),W=Object.freeze(new Set(["-","+","!","~"]));function z(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}const H=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){const{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){const{type:n}=e;for(const a of r[n]||s.getKeys(e)){const n=e[a];if(Array.isArray(n)){for(const e of n)if(z(e)&&this.$visit(e,t,r))return!0}else if(z(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!(!t.considerImplicitTypeConversion||!G.has(e.operator)||"Literal"===e.left.type&&"Literal"===e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.property.type)||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!(!t.considerImplicitTypeConversion||!e.computed||"Literal"===e.key.type)||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return"delete"===e.operator||!(!t.considerImplicitTypeConversion||!W.has(e.operator)||"Literal"===e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function J(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return H.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||s.KEYS)}function K(e,t){const r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":return 1===r.arguments.length&&r.arguments[0]===e?t.getTokenAfter(r.callee,d):null;case"DoWhileStatement":return r.test===e?t.getTokenAfter(r.body,d):null;case"IfStatement":case"WhileStatement":return r.test===e?t.getFirstToken(r,1):null;case"ImportExpression":return r.source===e?t.getFirstToken(r,1):null;case"SwitchStatement":return r.discriminant===e?t.getFirstToken(r,1):null;case"WithStatement":return r.object===e?t.getFirstToken(r,1):null;default:return null}}function X(e,t,r){let n,s,a,o,i;if("number"==typeof e){if(n=0|e,s=t,a=r,!(n>=1))throw new TypeError("'times' should be a positive integer.")}else n=1,s=e,a=t;if(null==s)return!1;o=i=s;do{o=a.getTokenBefore(o),i=a.getTokenAfter(i)}while(null!=o&&null!=i&&d(o)&&h(i)&&o!==K(s,a)&&--n>0);return 0===n}const Q=/\$(?:[$&`']|[1-9][0-9]?)/gu,Y=new WeakMap;function Z(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}class ee{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");Y.set(this,{pattern:new RegExp(e.source,e.flags),escaped:Boolean(t)})}*execAll(e){const{pattern:t,escaped:r}=Y.get(this);let n=null,s=0;for(t.lastIndex=0;null!=(n=t.exec(e));)!r&&Z(e,n.index)||(s=t.lastIndex,yield n,t.lastIndex=s)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){const n=[];let s=0;for(const a of e.execAll(t))n.push(t.slice(s,a.index)),n.push(String(r(...a,a.index,a.input))),s=a.index+a[0].length;return n.push(t.slice(s)),n.join("")}(this,String(e),t):function(e,t,r){const n=[];let s=0,a=null;function o(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{const t=e.slice(1);return t in a?a[t]:e}}}for(a of e.execAll(t))n.push(t.slice(s,a.index)),n.push(r.replace(Q,o)),s=a.index+a[0].length;return n.push(t.slice(s)),n.join("")}(this,String(e),String(t))}}const te=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,re=Function.call.bind(Object.hasOwnProperty),ne=Symbol("read"),se=Symbol("call"),ae=Symbol("construct"),oe=Symbol("esm"),ie={require:{[se]:!0}};function le(e){return null==e||0!==e.defs.length||e.references.some((e=>e.isWrite()))}function ce(e){const t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}class ue{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(const t of Object.keys(e)){const r=e[t],n=[t],s=this.globalScope.set.get(t);le(s)||(yield*this._iterateVariableReferences(s,n,r,!0))}for(const t of this.globalObjectNames){const r=[],n=this.globalScope.set.get(t);le(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(const{node:t}of this.iterateGlobalReferences(ie)){const r=$(t.arguments[0]);if(null==r||!re(e,r))continue;const n=e[r],s=[r];n[ne]&&(yield{node:t,path:s,type:ne,info:n[ne]}),yield*this._iteratePropertyReferences(t,s,n)}}*iterateEsmReferences(e){const t=this.globalScope.block;for(const r of t.body){if(!te.test(r.type)||null==r.source)continue;const t=r.source.value;if(!re(e,t))continue;const n=e[t],s=[t];if(n[ne]&&(yield{node:r,path:s,type:ne,info:n[ne]}),"ExportAllDeclaration"===r.type)for(const e of Object.keys(n)){const t=n[e];t[ne]&&(yield{node:r,path:s.concat(e),type:ne,info:t[ne]})}else for(const e of r.specifiers){const t=re(n,oe),r=this._iterateImportReferences(e,s,t?n:"legacy"===this.mode?Object.assign({default:n},n):{default:n});if(t)yield*r;else for(const e of r)e.path=e.path.filter(pe),(e.path.length>=2||e.type!==ne)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(const s of e.references){if(!s.isRead())continue;const e=s.identifier;n&&r[ne]&&(yield{node:e,path:t,type:ne,info:r[ne]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;ce(n);)n=n.parent;const s=n.parent;if("MemberExpression"!==s.type)"CallExpression"!==s.type?"NewExpression"!==s.type?"AssignmentExpression"!==s.type?"AssignmentPattern"!==s.type?"VariableDeclarator"===s.type&&s.init===n&&(yield*this._iterateLhsReferences(s.id,t,r)):s.right===n&&(yield*this._iterateLhsReferences(s.left,t,r)):s.right===n&&(yield*this._iterateLhsReferences(s.left,t,r),yield*this._iteratePropertyReferences(s,t,r)):s.callee===n&&r[ae]&&(yield{node:s,path:t,type:ae,info:r[ae]}):s.callee===n&&r[se]&&(yield{node:s,path:t,type:se,info:r[se]});else if(s.object===n){const e=U(s);if(null==e||!re(r,e))return;t=t.concat(e);const n=r[e];n[ne]&&(yield{node:s,path:t,type:ne,info:n[ne]}),yield*this._iteratePropertyReferences(s,t,n)}}*_iterateLhsReferences(e,t,r){if("Identifier"!==e.type)if("ObjectPattern"!==e.type)"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r));else for(const n of e.properties){const e=U(n);if(null==e||!re(r,e))continue;const s=t.concat(e),a=r[e];a[ne]&&(yield{node:n,path:s,type:ne,info:a[ne]}),yield*this._iterateLhsReferences(n.value,s,a)}else{const n=o(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1))}}*_iterateImportReferences(e,t,r){const n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){const s="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!re(r,s))return;t=t.concat(s);const a=r[s];return a[ne]&&(yield{node:e,path:t,type:ne,info:a[ne]}),void(yield*this._iterateVariableReferences(o(this.globalScope,e.local),t,a,!1))}if("ImportNamespaceSpecifier"!==n){if("ExportSpecifier"===n){const n=e.local.name;if(!re(r,n))return;t=t.concat(n);const s=r[n];s[ne]&&(yield{node:e,path:t,type:ne,info:s[ne]})}}else yield*this._iterateVariableReferences(o(this.globalScope,e.local),t,r,!1)}}function pe(e,t){return!(1===t&&"default"===e)}ue.READ=ne,ue.CALL=se,ue.CONSTRUCT=ae,ue.ESM=oe;var fe={CALL:se,CONSTRUCT:ae,ESM:oe,findVariable:o,getFunctionHeadLocation:_,getFunctionNameWithKind:q,getInnermostScope:a,getPropertyName:U,getStaticValue:V,getStringIfConstant:$,hasSideEffect:J,isArrowToken:c,isClosingBraceToken:x,isClosingBracketToken:g,isClosingParenToken:h,isColonToken:f,isCommaToken:u,isCommentToken:b,isNotArrowToken:E,isNotClosingBraceToken:T,isNotClosingBracketToken:D,isNotClosingParenToken:k,isNotColonToken:C,isNotCommaToken:v,isNotCommentToken:P,isNotOpeningBraceToken:F,isNotOpeningBracketToken:w,isNotOpeningParenToken:A,isNotSemicolonToken:S,isOpeningBraceToken:y,isOpeningBracketToken:m,isOpeningParenToken:d,isParenthesized:X,isSemicolonToken:p,PatternMatcher:ee,READ:ne,ReferenceTracker:ue};t.CALL=se,t.CONSTRUCT=ae,t.ESM=oe,t.PatternMatcher=ee,t.READ=ne,t.ReferenceTracker=ue,t.default=fe,t.findVariable=o,t.getFunctionHeadLocation=_,t.getFunctionNameWithKind=q,t.getInnermostScope=a,t.getPropertyName=U,t.getStaticValue=V,t.getStringIfConstant=$,t.hasSideEffect=J,t.isArrowToken=c,t.isClosingBraceToken=x,t.isClosingBracketToken=g,t.isClosingParenToken=h,t.isColonToken=f,t.isCommaToken=u,t.isCommentToken=b,t.isNotArrowToken=E,t.isNotClosingBraceToken=T,t.isNotClosingBracketToken=D,t.isNotClosingParenToken=k,t.isNotColonToken=C,t.isNotCommaToken=v,t.isNotCommentToken=P,t.isNotOpeningBraceToken=F,t.isNotOpeningBracketToken=w,t.isNotOpeningParenToken=A,t.isNotSemicolonToken=S,t.isOpeningBraceToken=y,t.isOpeningBracketToken=m,t.isOpeningParenToken=d,t.isParenthesized=X,t.isSemicolonToken=p},66392:(e,t,r)=>{"use strict";const n=r(19683),s=Object.freeze(Object.keys(n));for(const e of s)Object.freeze(n[e]);Object.freeze(n);const a=new Set(["parent","leadingComments","trailingComments"]);function o(e){return!a.has(e)&&"_"!==e[0]}e.exports=Object.freeze({KEYS:n,getKeys:e=>Object.keys(e).filter(o),unionWith(e){const t=Object.assign({},n);for(const r of Object.keys(e))if(t.hasOwnProperty(r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}})},29736:(e,t,r)=>{"use strict";const n=r(92083),s=Object.freeze(Object.keys(n));for(const e of s)Object.freeze(n[e]);Object.freeze(n);const a=new Set(["parent","leadingComments","trailingComments"]);function o(e){return!a.has(e)&&"_"!==e[0]}e.exports=Object.freeze({KEYS:n,getKeys:e=>Object.keys(e).filter(o),unionWith(e){const t=Object.assign({},n);for(const r of Object.keys(e))if(t.hasOwnProperty(r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}})},29828:(e,t,r)=>{"use strict";e.exports=r(92925)},34458:(e,t,r)=>{var n=r(34155);function s(e){return Array.isArray(e)?e:[e]}const a=/^\s+$/,o=/^\\!/,i=/^\\#/,l="undefined"!=typeof Symbol?Symbol.for("node-ignore"):"node-ignore",c=/([0-z])-([0-z])/g,u=[[/\\?\s+$/,e=>0===e.indexOf("\\")?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,e=>`\\${e}`],[/\[([^\]/]*)($|\])/g,(e,t,r)=>{return"]"===r?`[${n=t,n.replace(c,((e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:""))}]`:`\\${e}`;var n}],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]],p=[[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6`${t}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(e,t)=>(t?`${t}[^/]+`:"[^/]*")+"(?=$|\\/$)"],[/\\\\\\/g,()=>"\\"]],f=[...u,[/(?:[^*/])$/,e=>`${e}(?=$|\\/)`],...p],d=[...u,[/(?:[^*])$/,e=>`${e}(?=$|\\/$)`],...p],h=Object.create(null);class m{constructor({ignorecase:e=!0}={}){var t;this._rules=[],this._ignorecase=e,t=l,Object.defineProperty(this,t,{value:true}),this._initCache()}_initCache(){this._cache=Object.create(null)}add(e){return this._added=!1,"string"==typeof e&&(e=e.split(/\r?\n/g)),s(e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[l])return this._rules=this._rules.concat(e._rules),void(this._added=!0);if((e=>e&&"string"==typeof e&&!a.test(e)&&0!==e.indexOf("#"))(e)){const t=((e,t)=>{const r=e;let n=!1;0===e.indexOf("!")&&(n=!0,e=e.substr(1));const s=((e,t,r)=>{const n=h[e];if(n)return n;const s=(t?d:f).reduce(((t,r)=>t.replace(r[0],r[1].bind(e))),e);return h[e]=r?new RegExp(s,"i"):new RegExp(s)})(e=e.replace(o,"!").replace(i,"#"),n,t);return{origin:r,pattern:e,negative:n,regex:s}})(e,this._ignorecase);this._added=!0,this._rules.push(t)}}filter(e){return s(e).filter((e=>this._filter(e)))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_filter(e,t){return!!e&&(e in this._cache?this._cache[e]:(t||(t=e.split("/")),t.pop(),this._cache[e]=t.length?this._filter(t.join("/")+"/",t)&&this._test(e):this._test(e)))}_test(e){let t=0;return this._rules.forEach((r=>{t^r.negative||(t=r.negative^r.regex.test(e))})),!t}}if(void 0!==n&&(n.env&&n.env.IGNORE_TEST_WIN32||"win32"===n.platform)){const e=m.prototype._filter,t=e=>/^\\\\\?\\/.test(e)||/[^\x00-\x80]+/.test(e)?e:e.replace(/\\/g,"/");m.prototype._filter=function(r,n){return r=t(r),e.call(this,r,n)}}e.exports=e=>new m(e)},40577:(e,t,r)=>{"use strict";const n=r(1234),s=r(55977),a=r(26215),o=r(80993),{getLatestEcmaVersion:i,getSupportedEcmaVersions:l}=r(55616),c={_regular:null,_jsx:null,get regular(){return null===this._regular&&(this._regular=n.Parser.extend(o())),this._regular},get jsx(){return null===this._jsx&&(this._jsx=n.Parser.extend(s(),o())),this._jsx},get(e){return Boolean(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};t.version=r(82777).version,t.tokenize=function(e,t){const r=c.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new r(t,e).tokenize()},t.parse=function(e,t){return new(c.get(t))(t,e).parse()},t.Syntax=function(){let e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),a)Object.hasOwnProperty.call(a,e)&&(t[e]=a[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),t.VisitorKeys=r(26316).KEYS,t.latestEcmaVersion=i(),t.supportedEcmaVersions=l()},26215:e=>{"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},80993:(e,t,r)=>{"use strict";const n=r(11641),{normalizeOptions:s}=r(55616),a=Symbol("espree's internal state"),o=Symbol("espree's esprimaFinishNode");e.exports=()=>e=>{const t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,r){"object"==typeof e&&null!==e||(e={}),"string"==typeof r||r instanceof String||(r=String(r));const o=s(e),i=o.ecmaFeatures||{},l=!0===o.tokens?new n(t,r):null;super({ecmaVersion:o.ecmaVersion,sourceType:o.sourceType,ranges:o.ranges,locations:o.locations,allowReturnOutsideFunction:Boolean(i.globalReturn),onToken:e=>{l&&l.onToken(e,this[a]),e.type!==t.eof&&(this[a].lastToken=e)},onComment:(e,t,r,n,s,o)=>{if(this[a].comments){const i=function(e,t,r,n,s,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof r&&(o.start=r,o.end=n,o.range=[r,n]),"object"==typeof s&&(o.loc={start:s,end:a}),o}(e,t,r,n,s,o);this[a].comments.push(i)}}},r),this[a]={tokens:l?[]:null,comments:!0===o.comment?[]:null,impliedStrict:!0===i.impliedStrict&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null}}tokenize(){do{this.next()}while(this.type!==t.eof);this.next();const e=this[a],r=e.tokens;return e.comments&&(r.comments=e.comments),r}finishNode(...e){const t=super.finishNode(...e);return this[o](t)}finishNodeAt(...e){const t=super.finishNodeAt(...e);return this[o](t)}parse(){const e=this[a],t=super.parse();return t.sourceType=this.options.sourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.range&&(t.range[0]=t.body.length?t.body[0].range[0]:t.range[0],t.range[1]=e.lastToken?e.lastToken.range[1]:t.range[1]),t.loc&&(t.loc.start=t.body.length?t.body[0].loc.start:t.loc.start,t.loc.end=e.lastToken?e.lastToken.loc.end:t.loc.end),t}parseTopLevel(e){return this[a].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,r){const n=e.acorn.getLineInfo(this.input,t),s=new SyntaxError(r);throw s.index=t,s.lineNumber=n.line,s.column=n.column+1,s}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){const r=super.jsx_readString(e);return this.type===t.string&&(this[a].jsxAttrValueToken=!0),r}[o](e){if("TemplateElement"===e.type){const t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}}}},55616:e=>{"use strict";const t=[3,5,6,7,8,9,10,11,12];e.exports={normalizeOptions:function(e){const r=function(e=5){if("number"!=typeof e)throw new Error(`ecmaVersion must be a number. Received value of type ${typeof e} instead.`);let r=e;if(r>=2015&&(r-=2009),!t.includes(r))throw new Error("Invalid ecmaVersion.");return r}(e.ecmaVersion),n=function(e="script"){if("script"===e||"module"===e)return e;throw new Error("Invalid sourceType.")}(e.sourceType),s=!0===e.range,a=!0===e.loc;if("module"===n&&r<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:r,sourceType:n,ranges:s,locations:a})},getLatestEcmaVersion:function(){return t[t.length-1]},getSupportedEcmaVersions:function(){return[...t]}}},11641:e=>{"use strict";const t="Keyword",r="JSXText";function n(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}n.prototype={constructor:n,translate(e,n){const s=e.type,a=this._acornTokTypes;if(s===a.name)e.type="Identifier","static"===e.value&&(e.type=t),n.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=t);else if(s===a.semi||s===a.comma||s===a.parenL||s===a.parenR||s===a.braceL||s===a.braceR||s===a.dot||s===a.bracketL||s===a.colon||s===a.question||s===a.bracketR||s===a.ellipsis||s===a.arrow||s===a.jsxTagStart||s===a.incDec||s===a.starstar||s===a.jsxTagEnd||s===a.prefix||s===a.questionDot||s.binop&&!s.keyword||s.isAssign)e.type="Punctuator",e.value=this._code.slice(e.start,e.end);else if(s===a.jsxName)e.type="JSXIdentifier";else if("jsxText"===s.label||s===a.jsxAttrValueToken)e.type=r;else if(s.keyword)"true"===s.keyword||"false"===s.keyword?e.type="Boolean":"null"===s.keyword?e.type="Null":e.type=t;else if(s===a.num)e.type="Numeric",e.value=this._code.slice(e.start,e.end);else if(s===a.string)n.jsxAttrValueToken?(n.jsxAttrValueToken=!1,e.type=r):e.type="String",e.value=this._code.slice(e.start,e.end);else if(s===a.regexp){e.type="RegularExpression";const t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){const r=this,n=this._acornTokTypes,s=t.tokens,a=this._tokens;function o(){s.push(function(e,t){const r=e[0],n=e[e.length-1],s={type:"Template",value:t.slice(r.start,n.end)};return r.loc&&(s.loc={start:r.loc.start,end:n.loc.end}),r.range&&(s.start=r.range[0],s.end=n.range[1],s.range=[s.start,s.end]),s}(r._tokens,r._code)),r._tokens=[]}if(e.type!==n.eof){if(e.type===n.backQuote)return this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),a.push(e),void(a.length>1&&o());if(e.type===n.dollarBraceL)return a.push(e),void o();if(e.type===n.braceR)return this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),void(this._curlyBrace=e);if(e.type===n.template||e.type===n.invalidTemplate)return this._curlyBrace&&(a.push(this._curlyBrace),this._curlyBrace=null),void a.push(e);this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}else this._curlyBrace&&s.push(this.translate(this._curlyBrace,t))}},e.exports=n},26316:(e,t,r)=>{"use strict";const n=r(54471),s=Object.freeze(Object.keys(n));for(const e of s)Object.freeze(n[e]);Object.freeze(n);const a=new Set(["parent","leadingComments","trailingComments"]);function o(e){return!a.has(e)&&"_"!==e[0]}e.exports=Object.freeze({KEYS:n,getKeys:e=>Object.keys(e).filter(o),unionWith(e){const t=Object.assign({},n);for(const r of Object.keys(e))if(t.hasOwnProperty(r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}})},36896:function(e,t,r){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,s=!1,a=void 0;try{for(var o,i=e[Symbol.iterator]();!(n=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){s=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(s)throw a}}return r}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw o}}}}function i(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self&&self;var l=i((function(e,t){!function e(t){var r,n,s,a,o,i;function l(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?l(r):r);return n}function c(e,t){this.parent=e,this.key=t}function u(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(e,t){var r,n,s,a;for(n=e.length,s=0;n;)t(e[a=s+(r=n>>>1)])?n=r:(s=a+1,n-=r+1);return s}(t,(function(t){return t.range[0]>e.range[0]})),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:o={},Remove:i={}},c.prototype.replace=function(e){this.parent[this.key]=e},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,s;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r=0;)if(x=i[p=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]&&!h(n,x[g])){if(d(l,y[m]))s=new u(x[g],[p,g],"Property",null);else{if(!f(x[g]))continue;s=new u(x[g],[p,g],null,null)}r.push(s)}}else if(f(x)){if(h(n,x))continue;r.push(new u(x,p,null,null))}}}else if(s=n.pop(),c=this.__execute(t.leave,s),this.__state===a||c===a)return},p.prototype.replace=function(e,t){var r,n,s,l,p,h,m,g,y,x,b,E,v;function S(e){var t,n,s,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===a){if(s.ref.key=0;)if(x=s[v=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(d(l,y[m]))h=new u(x[g],[v,g],"Property",new c(x,g));else{if(!f(x[g]))continue;h=new u(x[g],[v,g],null,new c(x,g))}r.push(h)}}else f(x)&&r.push(new u(x,v,null,new c(s,v)))}}else if(h=n.pop(),void 0!==(p=this.__execute(t.leave,h))&&p!==a&&p!==o&&p!==i&&h.ref.replace(p),this.__state!==i&&p!==i||S(h),this.__state===a||p===a)return E.root;return E.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var s,a,o,i,c=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(o=0,a=t.length;oe.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),c.splice(i,1)):i+=1;return i===c.length?n.Break:c[i].extendedRange[0]>e.range[1]?n.Skip:void 0}}),i=0,m(e,{leave:function(e){for(var t;ie.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=s,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)})),c=i((function(e){e.exports&&(e.exports=function(){function e(t,r,n,s){this.message=t,this.expected=r,this.found=n,this.location=s,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+s(e.text)+'"'},class:function(e){var t,r="";for(t=0;t0){for(t=1,n=1;t<~+.]/,f=ge([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),d=me(">",!1),h=me("~",!1),m=me("+",!1),g=me(",",!1),y=me("!",!1),x=me("*",!1),b=me("#",!1),E=me("[",!1),v=me("]",!1),S=/^[>","<","!"],!1,!1),A=me("=",!1),k=function(e){return(e||"")+"="},w=/^[><]/,D=ge([">","<"],!1,!1),F=me(".",!1),T=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},P=me('"',!1),I=/^[^\\"]/,_=ge(["\\",'"'],!0,!1),B=me("\\",!1),O={type:"any"},L=function(e,t){return e+t},R=function(e){return{type:"literal",value:(t=e.join(""),t.replace(/\\(.)/g,(function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";default:return t}})))};var t},j=me("'",!1),N=/^[^\\']/,M=ge(["\\","'"],!0,!1),V=/^[0-9]/,$=ge([["0","9"]],!1,!1),U=me("type(",!1),q=/^[^ )]/,G=ge([" ",")"],!0,!1),W=me(")",!1),z=/^[imsu]/,H=ge(["i","m","s","u"],!1,!1),J=me("/",!1),K=/^[^\/]/,X=ge(["/"],!0,!1),Q=me(":not(",!1),Y=me(":matches(",!1),Z=me(":has(",!1),ee=me(":first-child",!1),te=me(":last-child",!1),re=me(":nth-child(",!1),ne=me(":nth-last-child(",!1),se=me(":",!1),ae=me("statement",!0),oe=me("expression",!0),ie=me("declaration",!0),le=me("function",!0),ce=me("pattern",!0),ue=0,pe=[{line:1,column:1}],fe=0,de=[],he={};if("startRule"in r){if(!(r.startRule in l))throw new Error("Can't start parsing from rule \""+r.startRule+'".');c=l[r.startRule]}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function ge(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function ye(e){var r,n=pe[e];if(n)return n;for(r=e-1;!pe[r];)r--;for(n={line:(n=pe[r]).line,column:n.column};rfe&&(fe=ue,de=[]),de.push(e))}function Ee(){var e,t,r,n,s=30*ue+0,a=he[s];return a?(ue=a.nextPos,a.result):(e=ue,(t=ve())!==i&&(r=Ae())!==i&&ve()!==i?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(ue=e,e=i),e===i&&(e=ue,(t=ve())!==i&&(t=void 0),e=t),he[s]={nextPos:ue,result:e},e)}function ve(){var e,r,n=30*ue+1,s=he[n];if(s)return ue=s.nextPos,s.result;for(e=[],32===t.charCodeAt(ue)?(r=" ",ue++):(r=i,be(u));r!==i;)e.push(r),32===t.charCodeAt(ue)?(r=" ",ue++):(r=i,be(u));return he[n]={nextPos:ue,result:e},e}function Se(){var e,r,n,s=30*ue+2,a=he[s];if(a)return ue=a.nextPos,a.result;if(r=[],p.test(t.charAt(ue))?(n=t.charAt(ue),ue++):(n=i,be(f)),n!==i)for(;n!==i;)r.push(n),p.test(t.charAt(ue))?(n=t.charAt(ue),ue++):(n=i,be(f));else r=i;return r!==i&&(r=r.join("")),e=r,he[s]={nextPos:ue,result:e},e}function Ce(){var e,r,n,s=30*ue+3,a=he[s];return a?(ue=a.nextPos,a.result):(e=ue,(r=ve())!==i?(62===t.charCodeAt(ue)?(n=">",ue++):(n=i,be(d)),n!==i&&ve()!==i?e=r="child":(ue=e,e=i)):(ue=e,e=i),e===i&&(e=ue,(r=ve())!==i?(126===t.charCodeAt(ue)?(n="~",ue++):(n=i,be(h)),n!==i&&ve()!==i?e=r="sibling":(ue=e,e=i)):(ue=e,e=i),e===i&&(e=ue,(r=ve())!==i?(43===t.charCodeAt(ue)?(n="+",ue++):(n=i,be(m)),n!==i&&ve()!==i?e=r="adjacent":(ue=e,e=i)):(ue=e,e=i),e===i&&(e=ue,32===t.charCodeAt(ue)?(r=" ",ue++):(r=i,be(u)),r!==i&&(n=ve())!==i?e=r="descendant":(ue=e,e=i)))),he[s]={nextPos:ue,result:e},e)}function Ae(){var e,r,n,s,a,o,l,c,u=30*ue+4,p=he[u];if(p)return ue=p.nextPos,p.result;if(e=ue,(r=ke())!==i){for(n=[],s=ue,(a=ve())!==i?(44===t.charCodeAt(ue)?(o=",",ue++):(o=i,be(g)),o!==i&&(l=ve())!==i&&(c=ke())!==i?s=a=[a,o,l,c]:(ue=s,s=i)):(ue=s,s=i);s!==i;)n.push(s),s=ue,(a=ve())!==i?(44===t.charCodeAt(ue)?(o=",",ue++):(o=i,be(g)),o!==i&&(l=ve())!==i&&(c=ke())!==i?s=a=[a,o,l,c]:(ue=s,s=i)):(ue=s,s=i);n!==i?e=r=[r].concat(n.map((function(e){return e[3]}))):(ue=e,e=i)}else ue=e,e=i;return he[u]={nextPos:ue,result:e},e}function ke(){var e,t,r,n,s,a,o,l=30*ue+5,c=he[l];if(c)return ue=c.nextPos,c.result;if(e=ue,(t=we())!==i){for(r=[],n=ue,(s=Ce())!==i&&(a=we())!==i?n=s=[s,a]:(ue=n,n=i);n!==i;)r.push(n),n=ue,(s=Ce())!==i&&(a=we())!==i?n=s=[s,a]:(ue=n,n=i);r!==i?(o=t,e=t=r.reduce((function(e,t){return{type:t[0],left:e,right:t[1]}}),o)):(ue=e,e=i)}else ue=e,e=i;return he[l]={nextPos:ue,result:e},e}function we(){var e,r,n,s,a,o,l,c=30*ue+6,u=he[c];if(u)return ue=u.nextPos,u.result;if(e=ue,33===t.charCodeAt(ue)?(r="!",ue++):(r=i,be(y)),r===i&&(r=null),r!==i){if(n=[],(s=De())!==i)for(;s!==i;)n.push(s),s=De();else n=i;n!==i?(a=r,l=1===(o=n).length?o[0]:{type:"compound",selectors:o},a&&(l.subject=!0),e=r=l):(ue=e,e=i)}else ue=e,e=i;return he[c]={nextPos:ue,result:e},e}function De(){var e,r=30*ue+7,n=he[r];return n?(ue=n.nextPos,n.result):((e=function(){var e,r,n=30*ue+8,s=he[n];return s?(ue=s.nextPos,s.result):(42===t.charCodeAt(ue)?(r="*",ue++):(r=i,be(x)),r!==i&&(r={type:"wildcard",value:r}),e=r,he[n]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n,s=30*ue+9,a=he[s];return a?(ue=a.nextPos,a.result):(e=ue,35===t.charCodeAt(ue)?(r="#",ue++):(r=i,be(b)),r===i&&(r=null),r!==i&&(n=Se())!==i?e=r={type:"identifier",value:n}:(ue=e,e=i),he[s]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n,s,a=30*ue+10,o=he[a];return o?(ue=o.nextPos,o.result):(e=ue,91===t.charCodeAt(ue)?(r="[",ue++):(r=i,be(E)),r!==i&&ve()!==i&&(n=function(){var e,r,n,s,a=30*ue+14,o=he[a];return o?(ue=o.nextPos,o.result):(e=ue,(r=Fe())!==i&&ve()!==i&&(n=function(){var e,r,n,s=30*ue+12,a=he[s];return a?(ue=a.nextPos,a.result):(e=ue,33===t.charCodeAt(ue)?(r="!",ue++):(r=i,be(y)),r===i&&(r=null),r!==i?(61===t.charCodeAt(ue)?(n="=",ue++):(n=i,be(A)),n!==i?e=r=k(r):(ue=e,e=i)):(ue=e,e=i),he[s]={nextPos:ue,result:e},e)}())!==i&&ve()!==i?((s=function(){var e,r,n,s,a,o=30*ue+18,l=he[o];if(l)return ue=l.nextPos,l.result;if(e=ue,"type("===t.substr(ue,5)?(r="type(",ue+=5):(r=i,be(U)),r!==i)if(ve()!==i){if(n=[],q.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(G)),s!==i)for(;s!==i;)n.push(s),q.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(G));else n=i;n!==i&&(s=ve())!==i?(41===t.charCodeAt(ue)?(a=")",ue++):(a=i,be(W)),a!==i?e=r={type:"type",value:n.join("")}:(ue=e,e=i)):(ue=e,e=i)}else ue=e,e=i;else ue=e,e=i;return he[o]={nextPos:ue,result:e},e}())===i&&(s=function(){var e,r,n,s,a,o,l=30*ue+20,c=he[l];if(c)return ue=c.nextPos,c.result;if(e=ue,47===t.charCodeAt(ue)?(r="/",ue++):(r=i,be(J)),r!==i){if(n=[],K.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(X)),s!==i)for(;s!==i;)n.push(s),K.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(X));else n=i;n!==i?(47===t.charCodeAt(ue)?(s="/",ue++):(s=i,be(J)),s!==i?((a=function(){var e,r,n=30*ue+19,s=he[n];if(s)return ue=s.nextPos,s.result;if(e=[],z.test(t.charAt(ue))?(r=t.charAt(ue),ue++):(r=i,be(H)),r!==i)for(;r!==i;)e.push(r),z.test(t.charAt(ue))?(r=t.charAt(ue),ue++):(r=i,be(H));else e=i;return he[n]={nextPos:ue,result:e},e}())===i&&(a=null),a!==i?(o=a,e=r={type:"regexp",value:new RegExp(n.join(""),o?o.join(""):"")}):(ue=e,e=i)):(ue=e,e=i)):(ue=e,e=i)}else ue=e,e=i;return he[l]={nextPos:ue,result:e},e}()),s!==i?e=r=T(r,n,s):(ue=e,e=i)):(ue=e,e=i),e===i&&(e=ue,(r=Fe())!==i&&ve()!==i&&(n=function(){var e,r,n,s=30*ue+11,a=he[s];return a?(ue=a.nextPos,a.result):(e=ue,S.test(t.charAt(ue))?(r=t.charAt(ue),ue++):(r=i,be(C)),r===i&&(r=null),r!==i?(61===t.charCodeAt(ue)?(n="=",ue++):(n=i,be(A)),n!==i?e=r=k(r):(ue=e,e=i)):(ue=e,e=i),e===i&&(w.test(t.charAt(ue))?(e=t.charAt(ue),ue++):(e=i,be(D))),he[s]={nextPos:ue,result:e},e)}())!==i&&ve()!==i?((s=function(){var e,r,n,s,a,o,l=30*ue+15,c=he[l];if(c)return ue=c.nextPos,c.result;if(e=ue,34===t.charCodeAt(ue)?(r='"',ue++):(r=i,be(P)),r!==i){for(n=[],I.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(_)),s===i&&(s=ue,92===t.charCodeAt(ue)?(a="\\",ue++):(a=i,be(B)),a!==i?(t.length>ue?(o=t.charAt(ue),ue++):(o=i,be(O)),o!==i?s=a=L(a,o):(ue=s,s=i)):(ue=s,s=i));s!==i;)n.push(s),I.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(_)),s===i&&(s=ue,92===t.charCodeAt(ue)?(a="\\",ue++):(a=i,be(B)),a!==i?(t.length>ue?(o=t.charAt(ue),ue++):(o=i,be(O)),o!==i?s=a=L(a,o):(ue=s,s=i)):(ue=s,s=i));n!==i?(34===t.charCodeAt(ue)?(s='"',ue++):(s=i,be(P)),s!==i?e=r=R(n):(ue=e,e=i)):(ue=e,e=i)}else ue=e,e=i;if(e===i)if(e=ue,39===t.charCodeAt(ue)?(r="'",ue++):(r=i,be(j)),r!==i){for(n=[],N.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(M)),s===i&&(s=ue,92===t.charCodeAt(ue)?(a="\\",ue++):(a=i,be(B)),a!==i?(t.length>ue?(o=t.charAt(ue),ue++):(o=i,be(O)),o!==i?s=a=L(a,o):(ue=s,s=i)):(ue=s,s=i));s!==i;)n.push(s),N.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be(M)),s===i&&(s=ue,92===t.charCodeAt(ue)?(a="\\",ue++):(a=i,be(B)),a!==i?(t.length>ue?(o=t.charAt(ue),ue++):(o=i,be(O)),o!==i?s=a=L(a,o):(ue=s,s=i)):(ue=s,s=i));n!==i?(39===t.charCodeAt(ue)?(s="'",ue++):(s=i,be(j)),s!==i?e=r=R(n):(ue=e,e=i)):(ue=e,e=i)}else ue=e,e=i;return he[l]={nextPos:ue,result:e},e}())===i&&(s=function(){var e,r,n,s,a,o,l,c=30*ue+16,u=he[c];if(u)return ue=u.nextPos,u.result;for(e=ue,r=ue,n=[],V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($));s!==i;)n.push(s),V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($));if(n!==i?(46===t.charCodeAt(ue)?(s=".",ue++):(s=i,be(F)),s!==i?r=n=[n,s]:(ue=r,r=i)):(ue=r,r=i),r===i&&(r=null),r!==i){if(n=[],V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($)),s!==i)for(;s!==i;)n.push(s),V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($));else n=i;n!==i?(o=n,l=(a=r)?[].concat.apply([],a).join(""):"",e=r={type:"literal",value:parseFloat(l+o.join(""))}):(ue=e,e=i)}else ue=e,e=i;return he[c]={nextPos:ue,result:e},e}())===i&&(s=function(){var e,t,r=30*ue+17,n=he[r];return n?(ue=n.nextPos,n.result):((t=Se())!==i&&(t={type:"literal",value:t}),e=t,he[r]={nextPos:ue,result:e},e)}()),s!==i?e=r=T(r,n,s):(ue=e,e=i)):(ue=e,e=i),e===i&&(e=ue,(r=Fe())!==i&&(r={type:"attribute",name:r}),e=r)),he[a]={nextPos:ue,result:e},e)}())!==i&&ve()!==i?(93===t.charCodeAt(ue)?(s="]",ue++):(s=i,be(v)),s!==i?e=r=n:(ue=e,e=i)):(ue=e,e=i),he[a]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n,s,a,o,l,c,u=30*ue+21,p=he[u];if(p)return ue=p.nextPos,p.result;if(e=ue,46===t.charCodeAt(ue)?(r=".",ue++):(r=i,be(F)),r!==i)if((n=Se())!==i){for(s=[],a=ue,46===t.charCodeAt(ue)?(o=".",ue++):(o=i,be(F)),o!==i&&(l=Se())!==i?a=o=[o,l]:(ue=a,a=i);a!==i;)s.push(a),a=ue,46===t.charCodeAt(ue)?(o=".",ue++):(o=i,be(F)),o!==i&&(l=Se())!==i?a=o=[o,l]:(ue=a,a=i);s!==i?(c=n,r={type:"field",name:s.reduce((function(e,t){return e+t[0]+t[1]}),c)},e=r):(ue=e,e=i)}else ue=e,e=i;else ue=e,e=i;return he[u]={nextPos:ue,result:e},e}())===i&&(e=function(){var e,r,n,s,a=30*ue+22,o=he[a];return o?(ue=o.nextPos,o.result):(e=ue,":not("===t.substr(ue,5)?(r=":not(",ue+=5):(r=i,be(Q)),r!==i&&ve()!==i&&(n=Ae())!==i&&ve()!==i?(41===t.charCodeAt(ue)?(s=")",ue++):(s=i,be(W)),s!==i?e=r={type:"not",selectors:n}:(ue=e,e=i)):(ue=e,e=i),he[a]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n,s,a=30*ue+23,o=he[a];return o?(ue=o.nextPos,o.result):(e=ue,":matches("===t.substr(ue,9)?(r=":matches(",ue+=9):(r=i,be(Y)),r!==i&&ve()!==i&&(n=Ae())!==i&&ve()!==i?(41===t.charCodeAt(ue)?(s=")",ue++):(s=i,be(W)),s!==i?e=r={type:"matches",selectors:n}:(ue=e,e=i)):(ue=e,e=i),he[a]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n,s,a=30*ue+24,o=he[a];return o?(ue=o.nextPos,o.result):(e=ue,":has("===t.substr(ue,5)?(r=":has(",ue+=5):(r=i,be(Z)),r!==i&&ve()!==i&&(n=Ae())!==i&&ve()!==i?(41===t.charCodeAt(ue)?(s=")",ue++):(s=i,be(W)),s!==i?e=r={type:"has",selectors:n}:(ue=e,e=i)):(ue=e,e=i),he[a]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n=30*ue+25,s=he[n];return s?(ue=s.nextPos,s.result):(":first-child"===t.substr(ue,12)?(r=":first-child",ue+=12):(r=i,be(ee)),r!==i&&(r=Te(1)),e=r,he[n]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n=30*ue+26,s=he[n];return s?(ue=s.nextPos,s.result):(":last-child"===t.substr(ue,11)?(r=":last-child",ue+=11):(r=i,be(te)),r!==i&&(r=Pe(1)),e=r,he[n]={nextPos:ue,result:e},e)}())===i&&(e=function(){var e,r,n,s,a,o=30*ue+27,l=he[o];if(l)return ue=l.nextPos,l.result;if(e=ue,":nth-child("===t.substr(ue,11)?(r=":nth-child(",ue+=11):(r=i,be(re)),r!==i)if(ve()!==i){if(n=[],V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($)),s!==i)for(;s!==i;)n.push(s),V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($));else n=i;n!==i&&(s=ve())!==i?(41===t.charCodeAt(ue)?(a=")",ue++):(a=i,be(W)),a!==i?e=r=Te(parseInt(n.join(""),10)):(ue=e,e=i)):(ue=e,e=i)}else ue=e,e=i;else ue=e,e=i;return he[o]={nextPos:ue,result:e},e}())===i&&(e=function(){var e,r,n,s,a,o=30*ue+28,l=he[o];if(l)return ue=l.nextPos,l.result;if(e=ue,":nth-last-child("===t.substr(ue,16)?(r=":nth-last-child(",ue+=16):(r=i,be(ne)),r!==i)if(ve()!==i){if(n=[],V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($)),s!==i)for(;s!==i;)n.push(s),V.test(t.charAt(ue))?(s=t.charAt(ue),ue++):(s=i,be($));else n=i;n!==i&&(s=ve())!==i?(41===t.charCodeAt(ue)?(a=")",ue++):(a=i,be(W)),a!==i?e=r=Pe(parseInt(n.join(""),10)):(ue=e,e=i)):(ue=e,e=i)}else ue=e,e=i;else ue=e,e=i;return he[o]={nextPos:ue,result:e},e}())===i&&(e=function(){var e,r,n,s=30*ue+29,a=he[s];return a?(ue=a.nextPos,a.result):(e=ue,58===t.charCodeAt(ue)?(r=":",ue++):(r=i,be(se)),r!==i?("statement"===t.substr(ue,9).toLowerCase()?(n=t.substr(ue,9),ue+=9):(n=i,be(ae)),n===i&&("expression"===t.substr(ue,10).toLowerCase()?(n=t.substr(ue,10),ue+=10):(n=i,be(oe)),n===i&&("declaration"===t.substr(ue,11).toLowerCase()?(n=t.substr(ue,11),ue+=11):(n=i,be(ie)),n===i&&("function"===t.substr(ue,8).toLowerCase()?(n=t.substr(ue,8),ue+=8):(n=i,be(le)),n===i&&("pattern"===t.substr(ue,7).toLowerCase()?(n=t.substr(ue,7),ue+=7):(n=i,be(ce)))))),n!==i?e=r={type:"class",name:n}:(ue=e,e=i)):(ue=e,e=i),he[s]={nextPos:ue,result:e},e)}()),he[r]={nextPos:ue,result:e},e)}function Fe(){var e,r,n,s,a,o,l,c,u=30*ue+13,p=he[u];if(p)return ue=p.nextPos,p.result;if(e=ue,(r=Se())!==i){for(n=[],s=ue,46===t.charCodeAt(ue)?(a=".",ue++):(a=i,be(F)),a!==i&&(o=Se())!==i?s=a=[a,o]:(ue=s,s=i);s!==i;)n.push(s),s=ue,46===t.charCodeAt(ue)?(a=".",ue++):(a=i,be(F)),a!==i&&(o=Se())!==i?s=a=[a,o]:(ue=s,s=i);n!==i?(l=r,c=n,e=r=[].concat.apply([l],c).join("")):(ue=e,e=i)}else ue=e,e=i;return he[u]={nextPos:ue,result:e},e}function Te(e){return{type:"nth-child",index:{type:"literal",value:e}}}function Pe(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((n=c())!==i&&ue===t.length)return n;throw n!==i&&ue":return k>r.value.value;case">=":return k>=r.value.value}throw new Error("Unknown operator: ".concat(r.operator));case"sibling":return u(t,r.right,n,s)&&d(t,r.left,n,"LEFT_SIDE",s)||r.left.subject&&u(t,r.left,n,s)&&d(t,r.right,n,"RIGHT_SIDE",s);case"adjacent":return u(t,r.right,n,s)&&h(t,r.left,n,"LEFT_SIDE",s)||r.right.subject&&u(t,r.left,n,s)&&h(t,r.right,n,"RIGHT_SIDE",s);case"nth-child":return u(t,r.right,n,s)&&m(t,n,(function(){return r.index.value-1}),s);case"nth-last-child":return u(t,r.right,n,s)&&m(t,n,(function(e){return e-r.index.value}),s);case"class":switch(r.name.toLowerCase()){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===n.length||"MetaProperty"!==n[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw new Error("Unknown class name: ".concat(r.name))}throw new Error("Unknown selector type: ".concat(r.type))}function p(e,t){var r=e.type;return t&&t.visitorKeys&&t.visitorKeys[r]?t.visitorKeys[r]:l.VisitorKeys[r]?l.VisitorKeys[r]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter((function(e){return"type"!==e}))}function f(t){return null!==t&&"object"===e(t)&&"string"==typeof t.type}function d(e,r,n,s,a){var i=t(n,1)[0];if(!i)return!1;var l,c=o(p(i,a));try{for(c.s();!(l=c.n()).done;){var d=i[l.value];if(Array.isArray(d)){var h=d.indexOf(e);if(h<0)continue;var m=void 0,g=void 0;"LEFT_SIDE"===s?(m=0,g=h):(m=h+1,g=d.length);for(var y=m;y0&&f(d[h-1])&&u(d[h-1],r,n,a))return!0;if("RIGHT_SIDE"===s&&h=0&&u===n(c.length))return!0}}}catch(e){l.e(e)}finally{l.f()}return!1}function g(r,s){if(null==r||"object"!=e(r))return[];null==s&&(s=r);for(var a=r.subject?[s]:[],o=0,i=function(e){for(var t=[],r=Object.keys(e),n=0;n{!function(){"use strict";var e=r(27085);function n(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function s(t,r){r=r||{},this.__visitor=t||this,this.__childVisitorKeys=r.childVisitorKeys?Object.assign({},e.VisitorKeys,r.childVisitorKeys):e.VisitorKeys,"iteration"===r.fallback?this.__fallback=Object.keys:"function"==typeof r.fallback&&(this.__fallback=r.fallback)}s.prototype.visitChildren=function(t){var r,s,a,o,i,l,c;if(null!=t){if(r=t.type||e.Syntax.Property,!(s=this.__childVisitorKeys[r])){if(!this.__fallback)throw new Error("Unknown node type "+r+".");s=this.__fallback(t)}for(a=0,o=s.length;a{!function e(t){"use strict";var r,n,s,a,o,i;function l(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?l(r):r);return n}function c(e,t){this.parent=e,this.key=t}function u(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function p(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function h(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function m(e,t){return(new p).traverse(e,t)}function g(e,t){var r;return r=function(t,r){var n,s,a,o;for(s=t.length,a=0;s;)t[o=a+(n=s>>>1)].range[0]>e.range[0]?s=n:(a=o+1,s-=n+1);return a}(t),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}return r={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},s={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},n={Break:a={},Skip:o={},Remove:i={}},c.prototype.replace=function(e){this.parent[this.key]=e},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,r,n,s;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r=0;)if(x=i[p=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]&&!h(n,x[g])){if(d(l,y[m]))s=new u(x[g],[p,g],"Property",null);else{if(!f(x[g]))continue;s=new u(x[g],[p,g],null,null)}r.push(s)}}else if(f(x)){if(h(n,x))continue;r.push(new u(x,p,null,null))}}}else if(s=n.pop(),c=this.__execute(t.leave,s),this.__state===a||c===a)return},p.prototype.replace=function(e,t){var r,n,s,l,p,h,m,g,y,x,b,E,v;function S(e){var t,n,s,a;if(e.ref.remove())for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((s=r[t]).ref&&s.ref.parent===a){if(s.ref.key=0;)if(x=s[v=y[m]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(d(l,y[m]))h=new u(x[g],[v,g],"Property",new c(x,g));else{if(!f(x[g]))continue;h=new u(x[g],[v,g],null,new c(x,g))}r.push(h)}}else f(x)&&r.push(new u(x,v,null,new c(s,v)))}}else if(h=n.pop(),void 0!==(p=this.__execute(t.leave,h))&&p!==a&&p!==o&&p!==i&&h.ref.replace(p),this.__state!==i&&p!==i||S(h),this.__state===a||p===a)return E.root;return E.root},t.Syntax=r,t.traverse=m,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,r){var s,a,o,i,c=[];if(!e.range)throw new Error("attachComments needs range information");if(!r.length){if(t.length){for(o=0,a=t.length;oe.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),c.splice(i,1)):i+=1;return i===c.length?n.Break:c[i].extendedRange[0]>e.range[1]?n.Skip:void 0}}),i=0,m(e,{leave:function(e){for(var t;ie.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=s,t.VisitorOption=n,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)},84974:e=>{!function(){"use strict";function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()},65619:e=>{!function(){"use strict";var t,r,n,s,a,o;function i(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],s=new Array(128),o=0;o<128;++o)s[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?s[e]:r.NonAsciiIdentifierStart.test(i(e))},isIdentifierPartES5:function(e){return e<128?a[e]:r.NonAsciiIdentifierPart.test(i(e))},isIdentifierStartES6:function(e){return e<128?s[e]:t.NonAsciiIdentifierStart.test(i(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(i(e))}}}()},50702:(e,t,r)=>{!function(){"use strict";var t=r(65619);function n(e,t){return!(!t&&"yield"===e)&&s(e,t)}function s(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||s(e,t)}function i(e){var r,n,s;if(0===e.length)return!1;if(s=e.charCodeAt(0),!t.isIdentifierStartES5(s))return!1;for(r=1,n=e.length;r=n)return!1;if(!(56320<=(a=e.charCodeAt(r))&&a<=57343))return!1;s=1024*(s-55296)+(a-56320)+65536}if(!o(s))return!1;o=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:s,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:i,isIdentifierNameES6:l,isIdentifierES5:function(e,t){return i(e)&&!a(e,t)},isIdentifierES6:function(e,t){return l(e)&&!o(e,t)}}}()},649:(e,t,r)=>{!function(){"use strict";t.ast=r(84974),t.code=r(65619),t.keyword=r(50702)}()},64063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,s,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(s=n;0!=s--;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(s=n;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=n;0!=s--;){var o=a[s];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},35035:e=>{"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,s=t.cmp&&(r=t.cmp,function(e){return function(t,n){var s={key:t,value:e[t]},a={key:n,value:e[n]};return r(s,a)}}),a=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,o;if(Array.isArray(t)){for(o="[",r=0;r{"use strict";var n=r(95320),s=Object.prototype.toString,a=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===s.call(e)?function(e,t,r){for(var n=0,s=e.length;n{"use strict";var t=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(e){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var s,a=t.call(arguments,1),o=Math.max(0,n.length-a.length),i=[],l=0;l{"use strict";var n=r(17648);e.exports=Function.prototype.bind||n},44977:e=>{"use strict";function t(e,t,r,n,s,a){this._color=e,this.key=t,this.value=r,this.left=n,this.right=s,this._count=a}function r(e){return new t(e._color,e.key,e.value,e.left,e.right,e._count)}function n(e,r){return new t(e,r.key,r.value,r.left,r.right,r._count)}function s(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function a(e,t){this._compare=e,this.root=t}e.exports=function(e){return new a(e||d,null)};var o=a.prototype;function i(e,t){var r;return t.left&&(r=i(e,t.left))?r:(r=e(t.key,t.value))||(t.right?i(e,t.right):void 0)}function l(e,t,r,n){if(t(e,n.key)<=0){var s;if(n.left&&(s=l(e,t,r,n.left)))return s;if(s=r(n.key,n.value))return s}if(n.right)return l(e,t,r,n.right)}function c(e,t,r,n,s){var a,o=r(e,s.key),i=r(t,s.key);if(o<=0){if(s.left&&(a=c(e,t,r,n,s.left)))return a;if(i>0&&(a=n(s.key,s.value)))return a}if(i>0&&s.right)return c(e,t,r,n,s.right)}function u(e,t){this.tree=e,this._stack=t}Object.defineProperty(o,"keys",{get:function(){var e=[];return this.forEach((function(t,r){e.push(t)})),e}}),Object.defineProperty(o,"values",{get:function(){var e=[];return this.forEach((function(t,r){e.push(r)})),e}}),Object.defineProperty(o,"length",{get:function(){return this.root?this.root._count:0}}),o.insert=function(e,r){for(var o=this._compare,i=this.root,l=[],c=[];i;){var u=o(e,i.key);l.push(i),c.push(u),i=u<=0?i.left:i.right}l.push(new t(0,e,r,null,null,1));for(var p=l.length-2;p>=0;--p)i=l[p],c[p]<=0?l[p]=new t(i._color,i.key,i.value,l[p+1],i.right,i._count+1):l[p]=new t(i._color,i.key,i.value,i.left,l[p+1],i._count+1);for(p=l.length-1;p>1;--p){var f=l[p-1];if(i=l[p],1===f._color||1===i._color)break;var d=l[p-2];if(d.left===f)if(f.left===i){if(!(h=d.right)||0!==h._color){d._color=0,d.left=f.right,f._color=1,f.right=d,l[p-2]=f,l[p-1]=i,s(d),s(f),p>=3&&((m=l[p-3]).left===d?m.left=f:m.right=f);break}f._color=1,d.right=n(1,h),d._color=0,p-=1}else{if(!(h=d.right)||0!==h._color){f.right=i.left,d._color=0,d.left=i.right,i._color=1,i.left=f,i.right=d,l[p-2]=i,l[p-1]=f,s(d),s(f),s(i),p>=3&&((m=l[p-3]).left===d?m.left=i:m.right=i);break}f._color=1,d.right=n(1,h),d._color=0,p-=1}else if(f.right===i){if(!(h=d.left)||0!==h._color){d._color=0,d.right=f.left,f._color=1,f.left=d,l[p-2]=f,l[p-1]=i,s(d),s(f),p>=3&&((m=l[p-3]).right===d?m.right=f:m.left=f);break}f._color=1,d.left=n(1,h),d._color=0,p-=1}else{var h;if(!(h=d.left)||0!==h._color){var m;f.left=i.right,d._color=0,d.right=i.left,i._color=1,i.right=f,i.left=d,l[p-2]=i,l[p-1]=f,s(d),s(f),s(i),p>=3&&((m=l[p-3]).right===d?m.right=i:m.left=i);break}f._color=1,d.left=n(1,h),d._color=0,p-=1}}return l[0]._color=1,new a(o,l[0])},o.forEach=function(e,t,r){if(this.root)switch(arguments.length){case 1:return i(e,this.root);case 2:return l(t,this._compare,e,this.root);case 3:if(this._compare(t,r)>=0)return;return c(t,r,this._compare,e,this.root)}},Object.defineProperty(o,"begin",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.left;return new u(this,e)}}),Object.defineProperty(o,"end",{get:function(){for(var e=[],t=this.root;t;)e.push(t),t=t.right;return new u(this,e)}}),o.at=function(e){if(e<0)return new u(this,[]);for(var t=this.root,r=[];;){if(r.push(t),t.left){if(e=t.right._count)break;t=t.right}return new u(this,[])},o.ge=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var a=t(e,r.key);n.push(r),a<=0&&(s=n.length),r=a<=0?r.left:r.right}return n.length=s,new u(this,n)},o.gt=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var a=t(e,r.key);n.push(r),a<0&&(s=n.length),r=a<0?r.left:r.right}return n.length=s,new u(this,n)},o.lt=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var a=t(e,r.key);n.push(r),a>0&&(s=n.length),r=a<=0?r.left:r.right}return n.length=s,new u(this,n)},o.le=function(e){for(var t=this._compare,r=this.root,n=[],s=0;r;){var a=t(e,r.key);n.push(r),a>=0&&(s=n.length),r=a<0?r.left:r.right}return n.length=s,new u(this,n)},o.find=function(e){for(var t=this._compare,r=this.root,n=[];r;){var s=t(e,r.key);if(n.push(r),0===s)return new u(this,n);r=s<=0?r.left:r.right}return new u(this,[])},o.remove=function(e){var t=this.find(e);return t?t.remove():this},o.get=function(e){for(var t=this._compare,r=this.root;r;){var n=t(e,r.key);if(0===n)return r.value;r=n<=0?r.left:r.right}};var p=u.prototype;function f(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function d(e,t){return et?1:0}Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new u(this.tree,this._stack.slice())},p.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var o=new Array(e.length),i=e[e.length-1];o[o.length-1]=new t(i._color,i.key,i.value,i.left,i.right,i._count);for(var l=e.length-2;l>=0;--l)(i=e[l]).left===e[l+1]?o[l]=new t(i._color,i.key,i.value,o[l+1],i.right,i._count):o[l]=new t(i._color,i.key,i.value,i.left,o[l+1],i._count);if((i=o[o.length-1]).left&&i.right){var c=o.length;for(i=i.left;i.right;)o.push(i),i=i.right;var u=o[c-1];for(o.push(new t(i._color,u.key,u.value,i.left,i.right,i._count)),o[c-1].key=i.key,o[c-1].value=i.value,l=o.length-2;l>=c;--l)i=o[l],o[l]=new t(i._color,i.key,i.value,i.left,o[l+1],i._count);o[c-1].left=o[c]}if(0===(i=o[o.length-1])._color){var p=o[o.length-2];for(p.left===i?p.left=null:p.right===i&&(p.right=null),o.pop(),l=0;l=0;--l){if(t=e[l],0===l)return void(t._color=1);if((a=e[l-1]).left===t){if((o=a.right).right&&0===o.right._color)return i=(o=a.right=r(o)).right=r(o.right),a.right=o.left,o.left=a,o.right=i,o._color=a._color,t._color=1,a._color=1,i._color=1,s(a),s(o),l>1&&((c=e[l-2]).left===a?c.left=o:c.right=o),void(e[l-1]=o);if(o.left&&0===o.left._color)return i=(o=a.right=r(o)).left=r(o.left),a.right=i.left,o.left=i.right,i.left=a,i.right=o,i._color=a._color,a._color=1,o._color=1,t._color=1,s(a),s(o),s(i),l>1&&((c=e[l-2]).left===a?c.left=i:c.right=i),void(e[l-1]=i);if(1===o._color){if(0===a._color)return a._color=1,void(a.right=n(0,o));a.right=n(0,o);continue}o=r(o),a.right=o.left,o.left=a,o._color=a._color,a._color=0,s(a),s(o),l>1&&((c=e[l-2]).left===a?c.left=o:c.right=o),e[l-1]=o,e[l]=a,l+11&&((c=e[l-2]).right===a?c.right=o:c.left=o),void(e[l-1]=o);if(o.right&&0===o.right._color)return i=(o=a.left=r(o)).right=r(o.right),a.left=i.right,o.right=i.left,i.right=a,i.left=o,i._color=a._color,a._color=1,o._color=1,t._color=1,s(a),s(o),s(i),l>1&&((c=e[l-2]).right===a?c.right=i:c.left=i),void(e[l-1]=i);if(1===o._color){if(0===a._color)return a._color=1,void(a.left=n(0,o));a.left=n(0,o);continue}var c;o=r(o),a.left=o.right,o.right=a,o._color=a._color,a._color=0,s(a),s(o),l>1&&((c=e[l-2]).right===a?c.right=o:c.left=o),e[l-1]=o,e[l]=a,l+10)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var r=this.tree.root;return r?r._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var n=t.length-2;n>=0;--n)t[n+1]===t[n].right&&(++e,t[n].left&&(e+=t[n].left._count));return e},enumerable:!0}),p.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right)for(t=t.right;t;)e.push(t),t=t.left;else for(e.pop();e.length>0&&e[e.length-1].right===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),p.update=function(e){var r=this._stack;if(0===r.length)throw new Error("Can't update empty node!");var n=new Array(r.length),s=r[r.length-1];n[n.length-1]=new t(s._color,s.key,e,s.left,s.right,s._count);for(var o=r.length-2;o>=0;--o)(s=r[o]).left===r[o+1]?n[o]=new t(s._color,s.key,s.value,n[o+1],s.right,s._count):n[o]=new t(s._color,s.key,s.value,s.left,n[o+1],s._count);return new a(this.tree._compare,n[0])},p.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left)for(t=t.left;t;)e.push(t),t=t.right;else for(e.pop();e.length>0&&e[e.length-1].left===t;)t=e[e.length-1],e.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}})},40210:(e,t,r)=>{"use strict";var n,s=SyntaxError,a=Function,o=TypeError,i=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new o},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,p=r(41405)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:f(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=i("async function () {}");else if("%GeneratorFunction%"===t)r=i("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=i("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&(r=f(s.prototype))}return m[t]=r,r},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(58612),b=r(17642),E=x.call(Function.call,Array.prototype.concat),v=x.call(Function.apply,Array.prototype.splice),S=x.call(Function.call,String.prototype.replace),C=x.call(Function.call,String.prototype.slice),A=x.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w=/\\(\\)?/g,D=function(e,t){var r,n=e;if(b(y,n)&&(n="%"+(r=y[n])[0]+"%"),b(m,n)){var a=m[n];if(a===d&&(a=g(n)),void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:a}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=C(e,0,1),r=C(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,k,(function(e,t,r,s){n[n.length]=r?S(s,w,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",a=D("%"+n+"%",t),i=a.name,c=a.value,u=!1,p=a.alias;p&&(n=p[0],v(r,E([0,1],p)));for(var f=1,d=!0;f=r.length){var x=l(c,h);c=(d=!!x)&&"get"in x&&!("originalValue"in x.get)?x.get:c[h]}else d=b(c,h),c=c[h];d&&!u&&(m[i]=c)}}return c}},27296:(e,t,r)=>{"use strict";var n=r(40210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},31044:(e,t,r)=>{"use strict";var n=r(40210)("%Object.defineProperty%",!0),s=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};s.hasArrayLengthDefineBug=function(){if(!s())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=s},41405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(55419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&s()}},55419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},96410:(e,t,r)=>{"use strict";var n=r(55419);e.exports=function(){return n()&&!!Symbol.toStringTag}},17642:(e,t,r)=>{"use strict";var n=r(58612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},35717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},82584:(e,t,r)=>{"use strict";var n=r(96410)(),s=r(21924)("Object.prototype.toString"),a=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===s(e)},o=function(e){return!!a(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==s(e)&&"[object Function]"===s(e.callee)},i=function(){return a(arguments)}();a.isLegacyArguments=o,e.exports=i?a:o},95320:e=>{"use strict";var t,r,n=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},s((function(){throw 42}),null,t)}catch(e){e!==r&&(s=null)}else s=null;var a=/^\s*class\b/,o=function(e){try{var t=n.call(e);return a.test(t)}catch(e){return!1}},i=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=s?function(e){if(e===c)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{s(e,null,t)}catch(e){if(e!==r)return!1}return!o(e)}:function(e){if(e===c)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!o(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(o(e))return!1;var t=i.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},48662:(e,t,r)=>{"use strict";var n,s=Object.prototype.toString,a=Function.prototype.toString,o=/^\s*(?:function)?\*/,i=r(96410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(a.call(e)))return!0;if(!i)return"[object GeneratorFunction]"===s.call(e);if(!l)return!1;if(void 0===n){var t=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&l(t)}return l(e)===n}},98611:e=>{"use strict";e.exports=function(e){return e!=e}},20360:(e,t,r)=>{"use strict";var n=r(55559),s=r(4289),a=r(98611),o=r(29415),i=r(23194),l=n(o(),Number);s(l,{getPolyfill:o,implementation:a,shim:i}),e.exports=l},29415:(e,t,r)=>{"use strict";var n=r(98611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},23194:(e,t,r)=>{"use strict";var n=r(4289),s=r(29415);e.exports=function(){var e=s();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},85692:(e,t,r)=>{"use strict";var n=r(94029),s=r(63083),a=r(21924),o=a("Object.prototype.toString"),i=r(96410)(),l=r(27296),c="undefined"==typeof globalThis?r.g:globalThis,u=s(),p=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1}return!!l&&function(e){var t=!1;return n(d,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},49461:e=>{"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,s,a,o,i,l,c,u,p){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var f in n(a,o,i,l,c,u,p),a){var d=a[f];if(Array.isArray(d)){if(f in t.arrayKeywords)for(var h=0;h{e=r.nmd(e);var n="__lodash_hash_undefined__",s=9007199254740991,a="[object Arguments]",o="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",c="[object Null]",u="[object Object]",p="[object Proxy]",f="[object Undefined]",d=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[a]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[i]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g,y,x,b="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,E="object"==typeof self&&self&&self.Object===Object&&self,v=b||E||Function("return this")(),S=t&&!t.nodeType&&t,C=S&&e&&!e.nodeType&&e,A=C&&C.exports===S,k=A&&b.process,w=function(){try{return C&&C.require&&C.require("util").types||k&&k.binding&&k.binding("util")}catch(e){}}(),D=w&&w.isTypedArray,F=Array.prototype,T=Function.prototype,P=Object.prototype,I=v["__core-js_shared__"],_=T.toString,B=P.hasOwnProperty,O=(g=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"",L=P.toString,R=_.call(Object),j=RegExp("^"+_.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),N=A?v.Buffer:void 0,M=v.Symbol,V=v.Uint8Array,$=(N&&N.allocUnsafe,y=Object.getPrototypeOf,x=Object,function(e){return y(x(e))}),U=Object.create,q=P.propertyIsEnumerable,G=F.splice,W=M?M.toStringTag:void 0,z=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),H=N?N.isBuffer:void 0,J=Math.max,K=Date.now,X=fe(v,"Map"),Q=fe(Object,"create"),Y=function(){function e(){}return function(t){if(!Ae(t))return{};if(U)return U(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Z(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(X||ee),string:new Z}},te.prototype.delete=function(e){var t=pe(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return pe(this,e).get(e)},te.prototype.has=function(e){return pe(this,e).has(e)},te.prototype.set=function(e,t){var r=pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};function ie(e){return null==e?void 0===e?f:c:W&&W in Object(e)?function(e){var t=B.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch(e){}var s=L.call(e);return n&&(t?e[W]=r:delete e[W]),s}(e):function(e){return L.call(e)}(e)}function le(e){return ke(e)&&ie(e)==a}function ce(e,t,r,n,s){e!==t&&function(e,t,r){for(var n=-1,s=Object(e),a=r(e),o=a.length;o--;){var i=a[++n];if(!1===t(s[i],i,s))break}}(t,(function(a,o){if(s||(s=new re),Ae(a))!function(e,t,r,n,s,a,o){var i=me(e,r),l=me(t,r),c=o.get(l);if(c)ne(e,r,c);else{var p,f,d,h,m,g=a?a(i,l,r+"",e,t,o):void 0,y=void 0===g;if(y){var x=be(l),b=!x&&ve(l),E=!x&&!b&&we(l);g=l,x||b||E?be(i)?g=i:ke(m=i)&&Ee(m)?g=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ue);function ye(e,t){return e===t||e!=e&&t!=t}var xe=le(function(){return arguments}())?le:function(e){return ke(e)&&B.call(e,"callee")&&!q.call(e,"callee")},be=Array.isArray;function Ee(e){return null!=e&&Ce(e.length)&&!Se(e)}var ve=H||function(){return!1};function Se(e){if(!Ae(e))return!1;var t=ie(e);return t==i||t==l||t==o||t==p}function Ce(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Ae(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var we=D?function(e){return function(t){return e(t)}}(D):function(e){return ke(e)&&Ce(e.length)&&!!m[ie(e)]};function De(e){return Ee(e)?function(e,t){var r=be(e),n=!r&&xe(e),s=!r&&!n&&ve(e),a=!r&&!n&&!s&&we(e),o=r||n||s||a,i=o?function(e,t){for(var r=-1,n=Array(e);++r1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(s=Fe.length>3&&"function"==typeof s?(n--,s):void 0,a&&function(e,t,r){if(!Ae(r))return!1;var n=typeof t;return!!("number"==n?Ee(r)&&de(t,r.length):"string"==n&&t in r)&&ye(r[t],e)}(t[0],t[1],a)&&(s=n<3?void 0:s,n=1),e=Object(e);++r{"use strict";const n=r(34411),s=Symbol("max"),a=Symbol("length"),o=Symbol("lengthCalculator"),i=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1,m=(e,t,r)=>{const n=e[f].get(t);if(n){const t=n.value;if(g(e,t)){if(x(e,n),!e[i])return}else r&&(e[d]&&(n.value.now=Date.now()),e[p].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]},y=e=>{if(e[a]>e[s])for(let t=e[p].tail;e[a]>e[s]&&null!==t;){const r=t.prev;x(e,t),t=r}},x=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[a]-=r.length,e[f].delete(r.key),e[p].removeNode(t)}};class b{constructor(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0}}const E=(e,t,r,n)=>{let s=r.value;g(e,s)&&(x(e,r),e[i]||(s=void 0)),s&&t.call(n,s.value,s.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[s]=e.max||1/0;const t=e.length||h;if(this[o]="function"!=typeof t?h:t,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||1/0,y(this)}get max(){return this[s]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,y(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[o]&&(this[o]=e,this[a]=0,this[p].forEach((e=>{e.length=this[o](e.value,e.key),this[a]+=e.length}))),y(this)}get lengthCalculator(){return this[o]}get length(){return this[a]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let r=this[p].tail;null!==r;){const n=r.prev;E(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[p].head;null!==r;){const n=r.next;E(this,e,r,t),r=n}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[c]&&this[p]&&this[p].length&&this[p].forEach((e=>this[c](e.key,e.value))),this[f]=new Map,this[p]=new n,this[a]=0}dump(){return this[p].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,i=this[o](t,e);if(this[f].has(e)){if(i>this[s])return x(this,this[f].get(e)),!1;const o=this[f].get(e).value;return this[c]&&(this[u]||this[c](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[a]+=i-o.length,o.length=i,this.get(e),y(this),!0}const d=new b(e,t,i,n,r);return d.length>this[s]?(this[c]&&this[c](e,t),!1):(this[a]+=d.length,this[p].unshift(d),this[f].set(e,this[p].head),y(this),!0)}has(e){if(!this[f].has(e))return!1;const t=this[f].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[p].tail;return e?(x(this,e),e.value):null}del(e){x(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{const e=s-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[f].forEach(((e,t)=>m(this,t,!1)))}}},57824:e=>{var t=1e3,r=60*t,n=60*r,s=24*n;function a(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}e.exports=function(e,o){o=o||{};var i,l,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var o=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*n;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===c&&isFinite(e))return o.long?(i=e,(l=Math.abs(i))>=s?a(i,l,s,"day"):l>=n?a(i,l,n,"hour"):l>=r?a(i,l,r,"minute"):l>=t?a(i,l,t,"second"):i+" ms"):function(e){var a=Math.abs(e);return a>=s?Math.round(e/s)+"d":a>=n?Math.round(e/n)+"h":a>=r?Math.round(e/r)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},84347:e=>{var t=function(e,t){var r,n,s=1,a=0,o=0,i=String.alphabet;function l(e,t,n){if(n){for(r=t;(n=l(e,r))<76&&n>65;)++r;return+e.slice(t-1,r)}return(n=i&&i.indexOf(e.charAt(t)))>-1?n+76:(n=e.charCodeAt(t)||0)<45||n>127?n:n<46?65:n<48?n-1:n<58?n+18:n<65?n-11:n<91?n+11:n<97?n-37:n<123?n+5:n-63}if((e+="")!=(t+=""))for(;s;)if(n=l(e,a++),s=l(t,o++),n<76&&s<76&&n>66&&s>66&&(n=l(e,a,a),s=l(t,o,a=r),o=r),n!=s)return n{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},20609:(e,t,r)=>{"use strict";var n=r(4289),s=r(55559),a=r(24244),o=r(75624),i=r(52281),l=s(o(),Object);n(l,{getPolyfill:o,implementation:a,shim:i}),e.exports=l},75624:(e,t,r)=>{"use strict";var n=r(24244);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},52281:(e,t,r)=>{"use strict";var n=r(75624),s=r(4289);e.exports=function(){var e=n();return s(Object,{is:e},{is:function(){return Object.is!==e}}),e}},18987:(e,t,r)=>{"use strict";var n;if(!Object.keys){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=r(21414),i=Object.prototype.propertyIsEnumerable,l=!i.call({toString:null},"toString"),c=i.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&s.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),n=o(e),i=t&&"[object String]"===a.call(e),f=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var h=c&&r;if(i&&e.length>0&&!s.call(e,0))for(var m=0;m0)for(var g=0;g{"use strict";var n=Array.prototype.slice,s=r(21414),a=Object.keys,o=a?function(e){return a(e)}:r(18987),i=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return s(e)?i(n.call(e)):i(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},21414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},26470:(e,t,r)=>{"use strict";var n=r(34155);function s(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function a(e,t){for(var r,n="",s=0,a=-1,o=0,i=0;i<=e.length;++i){if(i2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",s=0):s=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),a=i,o=0;continue}}else if(2===n.length||1===n.length){n="",s=0,a=i,o=0;continue}t&&(n.length>0?n+="/..":n="..",s=2)}else n.length>0?n+="/"+e.slice(a+1,i):n=e.slice(a+1,i),s=i-a-1;a=i,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var o={resolve:function(){for(var e,t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var i;o>=0?i=arguments[o]:(void 0===e&&(e=n.cwd()),i=e),s(i),0!==i.length&&(t=i+"/"+t,r=47===i.charCodeAt(0))}return t=a(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(s(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=a(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return s(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":o.normalize(e)},relative:function(e,t){if(s(e),s(t),e===t)return"";if((e=o.resolve(e))===(t=o.resolve(t)))return"";for(var r=1;rc){if(47===t.charCodeAt(i+p))return t.slice(i+p+1);if(0===p)return t.slice(i+p)}else a>c&&(47===e.charCodeAt(r+p)?u=p:0===p&&(u=0));break}var f=e.charCodeAt(r+p);if(f!==t.charCodeAt(i+p))break;47===f&&(u=p)}var d="";for(p=r+u+1;p<=n;++p)p!==n&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(i+u):(i+=u,47===t.charCodeAt(i)&&++i,t.slice(i))},_makeLong:function(e){return e},dirname:function(e){if(s(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!a){n=o;break}}else a=!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');s(e);var r,n=0,a=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var i=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!o){n=r+1;break}}else-1===l&&(o=!1,l=r+1),i>=0&&(c===t.charCodeAt(i)?-1==--i&&(a=r):(i=-1,a=l))}return n===a?a=l:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":e.slice(n,a)},extname:function(e){s(e);for(var t=-1,r=0,n=-1,a=!0,o=0,i=e.length-1;i>=0;--i){var l=e.charCodeAt(i);if(47!==l)-1===n&&(a=!1,n=i+1),46===l?-1===t?t=i:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){r=i+1;break}}return-1===t||-1===n||0===o||1===o&&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 r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){s(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),a=47===n;a?(t.root="/",r=1):r=0;for(var o=-1,i=0,l=-1,c=!0,u=e.length-1,p=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===n?-1===o?o=u:1!==p&&(p=1):-1!==o&&(p=-1);else if(!c){i=u+1;break}return-1===o||-1===l||0===p||1===p&&o===l-1&&o===i+1?-1!==l&&(t.base=t.name=0===i&&a?e.slice(1,l):e.slice(i,l)):(0===i&&a?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(i,o),t.base=e.slice(i,l)),t.ext=e.slice(o,l)),i>0?t.dir=e.slice(0,i-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o},49554:e=>{var t,r,n,s,a,o,i={}.toString;function l(e,t){var r,n=function(s){return e.length>1?function(){var a=s?s.concat():[];return r=t&&r||this,a.push.apply(a,arguments){var t,r,n,s,a,o,i,l,c,u,p,f,d,h,m,g,y,x,b,E,v,S,C,A,k,w,D,F,T,P,I,_,B,O,L,R,j,N,M,V,$,U,q,G,W,z,H,J,K,X,Q,Y,Z,ee,te,re,ne,se,ae,oe,ie,le,ce,ue,pe,fe,de,he,me,ge,ye={}.toString;function xe(e,t){var r,n=function(s){return e.length>1?function(){var a=s?s.concat():[];return r=t&&r||this,a.push.apply(a,arguments)>>0;++r=0;--n)t=e(r[n],t);return t})),C=xe((function(e,t){return S(e,t[t.length-1],t.slice(0,-1))})),A=xe((function(e,t){var r,n,s;for(r=[],n=t;null!=(s=e(n));)r.push(s[0]),n=s[1];return r})),k=function(e){return[].concat.apply([],e)},w=xe((function(e,t){var r;return[].concat.apply([],function(){var n,s,a,o=[];for(n=0,a=(s=t).length;nt?1:ee(r)?1:e(t)t&&(t=a);return t},W=function(e){var t,r,n,s,a;for(t=e[0],r=0,s=(n=e.slice(1)).length;re(r)&&(r=o);return r})),H=xe((function(e,t){var r,n,s,a,o;for(r=t[0],n=0,a=(s=t.slice(1)).length;n{var t,r,n,s,a,o,i,l,c,u,p,f,d,h,m,g,y,x,b,E,v,S,C,A,k,w,D,F,T,P,I,_;function B(e,t){var r,n=function(s){return e.length>1?function(){var a=s?s.concat():[];return r=t&&r||this,a.push.apply(a,arguments)t?e:t})),r=B((function(e,t){return e0?1:0},o=B((function(e,t){return~~(e/t)})),i=B((function(e,t){return e%t})),l=B((function(e,t){return Math.floor(e/t)})),c=B((function(e,t){var r;return(e%(r=t)+r)%r})),u=function(e){return 1/e},f=2*(p=Math.PI),d=Math.exp,h=Math.sqrt,m=Math.log,g=B((function(e,t){return Math.pow(e,t)})),y=Math.sin,x=Math.tan,b=Math.cos,E=Math.asin,v=Math.acos,S=Math.atan,C=B((function(e,t){return Math.atan2(e,t)})),A=function(e){return~~e},k=Math.round,w=Math.ceil,D=Math.floor,F=function(e){return e!=e},T=function(e){return e%2==0},P=function(e){return e%2!=0},I=B((function(e,t){var r;for(e=Math.abs(e),t=Math.abs(t);0!==t;)r=e%t,e=t,t=r;return e})),_=B((function(e,t){return Math.abs(Math.floor(e/I(e,t)*t))})),e.exports={max:t,min:r,negate:n,abs:s,signum:a,quot:o,rem:i,div:l,mod:c,recip:u,pi:p,tau:f,exp:d,sqrt:h,ln:m,pow:g,sin:y,tan:x,cos:b,acos:v,asin:E,atan:S,atan2:C,truncate:A,round:k,ceiling:w,floor:D,isItNaN:F,even:T,odd:P,gcd:I,lcm:_}},73489:e=>{var t,r,n,s,a,o,i,l,c,u,p,f,d,h;function m(e,t){var r,n=function(s){return e.length>1?function(){var a=s?s.concat():[];return r=t&&r||this,a.push.apply(a,arguments){var t,r,n,s,a,o,i,l,c,u,p,f,d;function h(e,t){var r,n=function(s){return e.length>1?function(){var a=s?s.concat():[];return r=t&&r||this,a.push.apply(a,arguments)1?r:r.toLowerCase())})).replace(/^([A-Z]+)/,(function(e,t){return t.length>1?t+"-":t.toLowerCase()}))},e.exports={split:t,join:r,lines:n,unlines:s,words:a,unwords:o,chars:i,unchars:l,reverse:c,repeat:u,capitalize:p,camelize:f,dasherize:d}},46661:(e,t,r)=>{var n,s,a,o,i,l,c,u,p,f={}.toString;function d(e,t){var r,n=function(s){return e.length>1?function(){var a=s?s.concat():[];return r=t&&r||this,a.push.apply(a,arguments){var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var i,l=[],c=!1,u=-1;function p(){c&&i&&(c=!1,i.length?l=i.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=o(p);c=!0;for(var t=l.length;t;){for(i=l,l=[];++u1)for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.freeze({});let n,s;function a(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||o(e)||function(e){return i(e,s||(s=l("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 3c e 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1m 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 h 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 5 3 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 2 u 2 u 1 v 1 1t v a 0 3 9 y 2 3 9 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 1 1s 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1l 2 4 g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 4a a 4w 2 1i e w 9 g 3 1a a 1i 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 4h b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 ewa 9 3r 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 43r 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 7a 6 a 9 bn d 15j 6 32 6 6 9 3o7 9 gvt3 6n")))}(e))))}function o(e){return i(e,n||(n=l("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 1i k 2 h 1p 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 6 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 x 0 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 c 2 3 f h f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 6 1k t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 1a 2 1a 2 3o 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t g70 4 wc 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1g 3 8 17 c 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f 4d 8m a l b 7 49 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 2z k s m d 1g 24 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o 2d 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 6e 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 z 1k 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i 5a 0 28 pl 2v 32 i 5f 24d tq 34i g6 6nu fs 8 u 36 t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6wo 7y 1e 2 i 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1th 18 b 6 h 0 aa 17 105 5g 1o 1v 8 0 xh 3 2 q 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 g 6 2 2 4 2 g 3et wyl z 378 c 65 3 4g1 f 5rk 2e8 f1 15v 3t6")))}function i(e,t){let r=0,n=t.length/2|0,s=0,a=0,o=0;for(;ro))return!0;r=s+1}return!1}function l(e){let t=0;return e.split(" ").map((e=>t+=0|parseInt(e,36)))}class c{constructor(e,t,r,n){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n}get es2018(){return this._set2018||(this._set2018=new Set(this._raw2018.split(" ")))}get es2019(){return this._set2019||(this._set2019=new Set(this._raw2019.split(" ")))}get es2020(){return this._set2020||(this._set2020=new Set(this._raw2020.split(" ")))}get es2021(){return this._set2021||(this._set2021=new Set(this._raw2021.split(" ")))}}const u=new Set(["General_Category","gc"]),p=new Set(["Script","Script_Extensions","sc","scx"]),f=new c("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","",""),d=new c("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"),h=new c("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict");function m(e,t,r){return u.has(t)?e>=2018&&f.es2018.has(r):!!p.has(t)&&(e>=2018&&d.es2018.has(r)||e>=2019&&d.es2019.has(r)||e>=2020&&d.es2020.has(r)||e>=2021&&d.es2021.has(r))}const g=36,y=40,x=41,b=42,E=43,v=46,S=48,C=57,A=63,k=65,w=90,D=95,F=97,T=99,P=122,I=91,_=92,B=93,O=94,L=123,R=124,j=125;function N(e){return e>=k&&e<=w||e>=F&&e<=P}function M(e){return e>=S&&e<=C}function V(e){return e>=S&&e<=C||e>=k&&e<=70||e>=F&&e<=102}function $(e){return e>=F&&e<=102?e-F+10:e>=k&&e<=70?e-k+10:e-S}function U(e){return e>=55296&&e<=56319}function q(e){return e>=56320&&e<=57343}function G(e,t){return 1024*(e-55296)+(t-56320)+65536}const W={at:(e,t,r)=>r1},z={at:(e,t,r)=>re>65535?2:1};class H{constructor(){this._impl=W,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?z:W,this._s=e,this._end=r,this.rewind(t)}rewind(e){const t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){const e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class J extends SyntaxError{constructor(e,t,r,n){e&&(e.startsWith("/")||(e=`/${e}/${t?"u":""}`),e=`: ${e}`),super(`Invalid regular expression${e}: ${n}`),this.index=r}}function K(e){return e===O||e===g||e===_||e===v||e===b||e===E||e===A||e===y||e===x||e===I||e===B||e===L||e===j||e===R}function X(e){return N(e)||e===D}class Q{constructor(e){this._reader=new H,this._uFlag=!1,this._nFlag=!1,this._lastIntValue=0,this._lastMinValue=0,this._lastMaxValue=0,this._lastStrValue="",this._lastKeyValue="",this._lastValValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._options=e||{}}validateLiteral(e,t=0,r=e.length){if(this._uFlag=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){const n=this.index,s=e.includes("u",n);this.validateFlags(e,n,r),this.validatePattern(e,t+1,n-1,s)}else if(t>=r)this.raise("Empty");else{const e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){const n=new Set;let s=!1,a=!1,o=!1,i=!1,l=!1,c=!1,u=!1;for(let p=t;p=2015?l=!0:121===t&&this.ecmaVersion>=2015?i=!0:115===t&&this.ecmaVersion>=2018?c=!0:100===t&&this.ecmaVersion>=2022?u=!0:this.raise(`Invalid flag '${e[p]}'`)}this.onFlags(t,r,s,a,o,l,i,c,u)}validatePattern(e,t=0,r=e.length,n=!1){this._uFlag=n&&this.ecmaVersion>=2015,this._nFlag=n&&this.ecmaVersion>=2018,this.reset(e,t,r),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(t),this.consumePattern())}get strict(){return Boolean(this._options.strict||this._uFlag)}get ecmaVersion(){return this._options.ecmaVersion||2022}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onFlags(e,t,r,n,s,a,o,i,l){this._options.onFlags&&this._options.onFlags(e,t,r,n,s,a,o,i,l)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,s){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,s)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,s,a){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,s,a)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}get source(){return this._reader.source}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._uFlag)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e){throw new J(this.source,this._uFlag,this.index,e)}eatRegExpBody(){const e=this.index;let t=!1,r=!1;for(;;){const s=this.currentCodePoint;if(-1===s||10===(n=s)||13===n||8232===n||8233===n){const e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(s===_)r=!0;else if(s===I)t=!0;else if(s===B)t=!1;else if(47===s&&!t||s===b&&this.index===e)break;this.advance()}var n;return this.index!==e}consumePattern(){const e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();const t=this.currentCodePoint;if(-1!==this.currentCodePoint){t===x&&this.raise("Unmatched ')'"),t===_&&this.raise("\\ at end of pattern"),t!==B&&t!==j||this.raise("Lone quantifier brackets");const e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(const e of this._backreferenceNames)this._groupNames.has(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){const e=this.index;let t=!1,r=!1,n=0,s=0;for(;-1!==(s=this.currentCodePoint);)r?r=!1:s===_?r=!0:s===I?t=!0:s===B?t=!1:s!==y||t||this.nextCodePoint===A&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){const e=this.index;let t=0;this.onDisjunctionEnter(e);do{this.consumeAlternative(t++)}while(this.eat(R));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(L)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index)}consumeAlternative(e){const t=this.index;for(this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._uFlag||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){const e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(O))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(g))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(_,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(_,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(y,A)){const t=this.ecmaVersion>=2018&&this.eat(60);let r=!1;if(this.eat(61)||(r=this.eat(33))){const n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(x)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){const t=this.index;let r=0,n=0,s=!1;if(this.eat(b))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(E))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(A))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;r=this._lastMinValue,n=this._lastMaxValue}return s=!this.eat(A),e||this.onQuantifier(t,this.index,r,n,s),!0}eatBracedQuantifier(e){const t=this.index;if(this.eat(L)){if(this._lastMinValue=0,this._lastMaxValue=Number.POSITIVE_INFINITY,this.eatDecimalDigits()&&(this._lastMinValue=this._lastMaxValue=this._lastIntValue,this.eat(44)&&(this._lastMaxValue=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(j)))return!e&&this._lastMaxValue=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):this.currentCodePoint===A&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(x)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const e=this.index;return this.currentCodePoint===_&&this.nextCodePoint===T&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,_),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const e=this.index,t=this.currentCodePoint;return-1!==t&&!K(t)&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){const e=this.index,t=this.currentCodePoint;return-1!==t&&t!==O&&t!==g&&t!==_&&t!==v&&t!==b&&t!==E&&t!==A&&t!==y&&t!==x&&t!==I&&t!==R&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(A)){if(this.eatGroupName()){if(!this._groupNames.has(this._lastStrValue))return this._groupNames.add(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._uFlag)&&this.raise("Invalid escape"),!1)}consumeBackreference(){const e=this.index;if(this.eatDecimalEscape()){const t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){const e=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!1),!0;if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!0),!0;if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!1),!0;if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!0),!0;if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!1),!0;if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!0),!0;let t=!1;if(this._uFlag&&this.ecmaVersion>=2018&&(this.eat(112)||(t=this.eat(80)))){if(this._lastIntValue=-1,this.eat(L)&&this.eatUnicodePropertyValueExpression()&&this.eat(j))return this.onUnicodePropertyCharacterSet(e-1,this.index,"property",this._lastKeyValue,this._lastValValue||null,t),!0;this.raise("Invalid property name")}return!1}consumeCharacterEscape(){const e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._uFlag&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){const e=this.index;if(this.eat(107)){if(this.eatGroupName()){const t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const e=this.index;if(this.eat(I)){const t=this.eat(O);return this.onCharacterClassEnter(e,t),this.consumeClassRanges(),this.eat(B)||this.raise("Unterminated character class"),this.onCharacterClassLeave(e,this.index,t),!0}return!1}consumeClassRanges(){const e=this.strict||this._uFlag;for(;;){const t=this.index;if(!this.consumeClassAtom())break;const r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;const n=this._lastIntValue;-1!==r&&-1!==n?(r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)):e&&this.raise("Invalid character class")}}consumeClassAtom(){const e=this.index,t=this.currentCodePoint;if(-1!==t&&t!==_&&t!==B)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(_)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===T)return this._lastIntValue=_,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){const e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._uFlag&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return this.strict||this._uFlag||this.currentCodePoint!==T||!M(t=this.nextCodePoint)&&t!==D?this.consumeCharacterClassEscape()||this.consumeCharacterEscape():(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0)}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){const e=this.index,t=!this._uFlag&&this.ecmaVersion>=2020;let r=this.currentCodePoint;return this.advance(),r===_&&this.eatRegExpUnicodeEscapeSequence(t)?r=this._lastIntValue:t&&U(r)&&q(this.currentCodePoint)&&(r=G(r,this.currentCodePoint),this.advance()),function(e){return function(e){return!(e<65)&&(e<91||!(e<97)&&(e<123||o(e)))}(e)||e===g||e===D}(r)?(this._lastIntValue=r,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){const e=this.index,t=!this._uFlag&&this.ecmaVersion>=2020;let r=this.currentCodePoint;return this.advance(),r===_&&this.eatRegExpUnicodeEscapeSequence(t)?r=this._lastIntValue:t&&U(r)&&q(this.currentCodePoint)&&(r=G(r,this.currentCodePoint),this.advance()),function(e){return a(e)||e===g||e===D||8204===e||8205===e}(r)?(this._lastIntValue=r,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){const e=this.index;if(this.eat(T)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===S&&!M(this.nextCodePoint)&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){const e=this.currentCodePoint;return!!N(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){const t=this.index,r=e||this._uFlag;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const e=this.index;if(this.eatFixedHexDigits(4)){const t=this._lastIntValue;if(U(t)&&this.eat(_)&&this.eat(117)&&this.eatFixedHexDigits(4)){const e=this._lastIntValue;if(q(e))return this._lastIntValue=G(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){const e=this.index;return!!(this.eat(L)&&this.eatHexDigits()&&this.eat(j)&&(t=this._lastIntValue)>=0&&t<=1114111)||(this.rewind(e),!1);var t}eatIdentityEscape(){const e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return-1!==e&&(this._uFlag?K(e)||47===e:this.strict?!a(e):this._nFlag?!(e===T||107===e):e!==T)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=C){do{this._lastIntValue=10*this._lastIntValue+(e-S),this.advance()}while((e=this.currentCodePoint)>=S&&e<=C);return!0}return!1}eatUnicodePropertyValueExpression(){const e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)&&(this._lastKeyValue=this._lastStrValue,this.eatUnicodePropertyValue())){if(this._lastValValue=this._lastStrValue,m(this.ecmaVersion,this._lastKeyValue,this._lastValValue))return!0;this.raise("Invalid property name")}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){const e=this._lastStrValue;if(m(this.ecmaVersion,"General_Category",e))return this._lastKeyValue="General_Category",this._lastValValue=e,!0;if(r=e,(t=this.ecmaVersion)>=2018&&h.es2018.has(r)||t>=2019&&h.es2019.has(r)||t>=2021&&h.es2021.has(r))return this._lastKeyValue=e,this._lastValValue="",!0;this.raise("Invalid property name")}var t,r;return!1}eatUnicodePropertyName(){for(this._lastStrValue="";X(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){for(this._lastStrValue="";X(e=this.currentCodePoint)||M(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();var e;return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._uFlag||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){const e=this.index;for(this._lastIntValue=0;M(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+$(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){const e=this.index;for(this._lastIntValue=0;V(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+$(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const e=this._lastIntValue;if(this.eatOctalDigit()){const t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){const e=this.currentCodePoint;return(t=e)>=S&&t<=55?(this.advance(),this._lastIntValue=e-S,!0):(this._lastIntValue=0,!1);var t}eatFixedHexDigits(e){const t=this.index;this._lastIntValue=0;for(let r=0;re.name===t));e.resolved=r,r.references.push(e)}}onAlternativeEnter(e){const t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw new Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){const t=this._node;if("Alternative"!==t.type)throw new Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){const r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){const r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,s){const a=this._node;if("Alternative"!==a.type)throw new Error("UnknownError");const o=a.elements.pop();if(null==o||"Quantifier"===o.type||"Assertion"===o.type&&"lookahead"!==o.kind)throw new Error("UnknownError");const i={type:"Quantifier",parent:a,start:o.start,end:t,raw:this.source.slice(o.start,t),min:r,max:n,greedy:s,element:o};a.elements.push(i),o.parent=i}onLookaroundAssertionEnter(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");const s=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(s)}onLookaroundAssertionLeave(e,t){const r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){const s=this._node;if("Alternative"!==s.type)throw new Error("UnknownError");s.elements.push({type:"Assertion",parent:s,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){const s=this._node;if("Alternative"!==s.type&&"CharacterClass"!==s.type)throw new Error("UnknownError");s.elements.push({type:"CharacterSet",parent:s,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,s,a){const o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw new Error("UnknownError");o.elements.push({type:"CharacterSet",parent:o,start:e,end:t,raw:this.source.slice(e,t),kind:r,key:n,value:s,negate:a})}onCharacter(e,t,r){const n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type)throw new Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");const s={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,resolved:ee};n.elements.push(s),this._backreferences.push(s)}onCharacterClassEnter(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");this._node={type:"CharacterClass",parent:r,start:e,end:e,raw:"",negate:t,elements:[]},r.elements.push(this._node)}onCharacterClassLeave(e,t){const r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCharacterClassRange(e,t){const r=this._node;if("CharacterClass"!==r.type)throw new Error("UnknownError");const n=r.elements,s=n.pop(),a=n.pop(),o=n.pop();if(!o||!s||!a||"Character"!==o.type||"Character"!==s.type||"Character"!==a.type||45!==a.value)throw new Error("UnknownError");const i={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:o,max:s};o.parent=i,s.parent=i,n.push(i)}}class re{constructor(e){this._state=new te(e),this._validator=new Q(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);const n=this._state.pattern,s=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:s};return n.parent=a,s.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n=!1){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}}class ne{constructor(e){this._handlers=e}visit(e){switch(e.type){case"Alternative":this.visitAlternative(e);break;case"Assertion":this.visitAssertion(e);break;case"Backreference":this.visitBackreference(e);break;case"CapturingGroup":this.visitCapturingGroup(e);break;case"Character":this.visitCharacter(e);break;case"CharacterClass":this.visitCharacterClass(e);break;case"CharacterClassRange":this.visitCharacterClassRange(e);break;case"CharacterSet":this.visitCharacterSet(e);break;case"Flags":this.visitFlags(e);break;case"Group":this.visitGroup(e);break;case"Pattern":this.visitPattern(e);break;case"Quantifier":this.visitQuantifier(e);break;case"RegExpLiteral":this.visitRegExpLiteral(e);break;default:throw new Error(`Unknown type: ${e.type}`)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),"lookahead"!==e.kind&&"lookbehind"!==e.kind||e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}}t.AST=r,t.RegExpParser=re,t.RegExpValidator=Q,t.parseRegExpLiteral=function(e,t){return new re(t).parseLiteral(String(e))},t.validateRegExpLiteral=function(e,t){return new Q(t).validateLiteral(e)},t.visitRegExpAST=function(e,t){new ne(t).visit(e)}},22257:(e,t,r)=>{const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=a(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),i=l(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=l(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||a&&o||i||c}}e.exports=s;const a=r(12893),{re:o,t:i}=r(55765),l=r(7539),c=r(74225),u=r(26376),p=r(66902)},66902:(e,t,r)=>{class n{constructor(e,t){if(t=a(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=s.get(t);if(r)return r;const n=this.options.loose,a=n?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(a,D(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(c[u.COMPARATORTRIM],p),i("comparator trim",e);let l=(e=(e=(e=e.replace(c[u.TILDETRIM],f)).replace(c[u.CARETTRIM],d)).split(/\s+/).join(" ")).split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>w(e,this.options)));n&&(l=l.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE]))))),i("range list",l);const m=new Map,g=l.map((e=>new o(e,this.options)));for(const e of g){if(h(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const x=[...m.values()];return s.set(t,x),x}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},y=(e,t)=>(i("comp",e,t),e=v(e,t),i("caret",e),e=b(e,t),i("tildes",e),e=C(e,t),i("xrange",e),e=k(e,t),i("stars",e),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{const r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,((t,r,n,s,a)=>{let o;return i("tilde",e,t,r,n,s,a),x(r)?o="":x(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:x(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:a?(i("replaceTilde pr",a),o=`>=${r}.${n}.${s}-${a} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,i("tilde return",o),o}))},v=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{i("caret",e,t);const r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,a,o)=>{let l;return i("caret",e,t,r,s,a,o),x(r)?l="":x(s)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(a)?l="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(i("replaceCaret pr",o),l="0"===r?"0"===s?`>=${r}.${s}.${a}-${o} <${r}.${s}.${+a+1}-0`:`>=${r}.${s}.${a}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${a}-${o} <${+r+1}.0.0-0`):(i("no pr"),l="0"===r?"0"===s?`>=${r}.${s}.${a}${n} <${r}.${s}.${+a+1}-0`:`>=${r}.${s}.${a}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${a} <${+r+1}.0.0-0`),i("caret return",l),l}))},C=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>A(e,t))).join(" ")),A=(e,t)=>{e=e.trim();const r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,((r,n,s,a,o,l)=>{i("xRange",e,r,n,s,a,o,l);const c=x(s),u=c||x(a),p=u||x(o),f=p;return"="===n&&f&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(u&&(a=0),o=0,">"===n?(n=">=",u?(s=+s+1,a=0,o=0):(a=+a+1,o=0)):"<="===n&&(n="<",u?s=+s+1:a=+a+1),"<"===n&&(l="-0"),r=`${n+s}.${a}.${o}${l}`):u?r=`>=${s}.0.0${l} <${+s+1}.0.0-0`:p&&(r=`>=${s}.${a}.0${l} <${s}.${+a+1}.0-0`),i("xRange return",r),r}))},k=(e,t)=>(i("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),w=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),D=e=>(t,r,n,s,a,o,i,l,c,u,p,f,d)=>`${r=x(n)?"":x(s)?`>=${n}.0.0${e?"-0":""}`:x(a)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${p}-${f}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),F=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},26376:(e,t,r)=>{const n=r(74225),{MAX_LENGTH:s,MAX_SAFE_INTEGER:a}=r(83295),{re:o,t:i}=r(55765),l=r(12893),{compareIdentifiers:c}=r(86742);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[i.LOOSE]:o[i.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=u},13507:(e,t,r)=>{const n=r(33959);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7539:(e,t,r)=>{const n=r(58718),s=r(81194),a=r(71312),o=r(25903),i=r(21544),l=r(12056);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return s(e,r,c);case">":return a(e,r,c);case">=":return o(e,r,c);case"<":return i(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},99038:(e,t,r)=>{const n=r(26376),s=r(33959),{re:a,t:o}=r(55765);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=a[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),a[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;a[o.COERCERTL].lastIndex=-1}else r=e.match(a[o.COERCE]);return null===r?null:s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},88880:(e,t,r)=>{const n=r(26376);e.exports=(e,t,r)=>{const s=new n(e,r),a=new n(t,r);return s.compare(a)||s.compareBuild(a)}},27880:(e,t,r)=>{const n=r(46269);e.exports=(e,t)=>n(e,t,!0)},46269:(e,t,r)=>{const n=r(26376);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},62378:(e,t,r)=>{const n=r(33959),s=r(58718);e.exports=(e,t)=>{if(s(e,t))return null;{const r=n(e),s=n(t),a=r.prerelease.length||s.prerelease.length,o=a?"pre":"",i=a?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==s[e])return o+e;return i}}},58718:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>0===n(e,t,r)},71312:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>0},25903:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)>=0},20253:(e,t,r)=>{const n=r(26376);e.exports=(e,t,r,s)=>{"string"==typeof r&&(s=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,s).version}catch(e){return null}}},21544:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<0},12056:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(e,t,r)<=0},38679:(e,t,r)=>{const n=r(26376);e.exports=(e,t)=>new n(e,t).major},87789:(e,t,r)=>{const n=r(26376);e.exports=(e,t)=>new n(e,t).minor},81194:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>0!==n(e,t,r)},33959:(e,t,r)=>{const{MAX_LENGTH:n}=r(83295),{re:s,t:a}=r(55765),o=r(26376),i=r(12893);e.exports=(e,t)=>{if(t=i(t),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?s[a.LOOSE]:s[a.FULL]).test(e))return null;try{return new o(e,t)}catch(e){return null}}},52358:(e,t,r)=>{const n=r(26376);e.exports=(e,t)=>new n(e,t).patch},57559:(e,t,r)=>{const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},79795:(e,t,r)=>{const n=r(46269);e.exports=(e,t,r)=>n(t,e,r)},63657:(e,t,r)=>{const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},45712:(e,t,r)=>{const n=r(66902);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},21100:(e,t,r)=>{const n=r(88880);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},76397:(e,t,r)=>{const n=r(33959);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},81249:(e,t,r)=>{const n=r(55765),s=r(83295),a=r(26376),o=r(86742),i=r(33959),l=r(76397),c=r(13507),u=r(20253),p=r(62378),f=r(38679),d=r(87789),h=r(52358),m=r(57559),g=r(46269),y=r(79795),x=r(27880),b=r(88880),E=r(21100),v=r(63657),S=r(71312),C=r(21544),A=r(58718),k=r(81194),w=r(25903),D=r(12056),F=r(7539),T=r(99038),P=r(22257),I=r(66902),_=r(45712),B=r(51042),O=r(85775),L=r(71657),R=r(95316),j=r(89042),N=r(6826),M=r(97606),V=r(50032),$=r(82937),U=r(17908),q=r(50799);e.exports={parse:i,valid:l,clean:c,inc:u,diff:p,major:f,minor:d,patch:h,prerelease:m,compare:g,rcompare:y,compareLoose:x,compareBuild:b,sort:E,rsort:v,gt:S,lt:C,eq:A,neq:k,gte:w,lte:D,cmp:F,coerce:T,Comparator:P,Range:I,satisfies:_,toComparators:B,maxSatisfying:O,minSatisfying:L,minVersion:R,validRange:j,outside:N,gtr:M,ltr:V,intersects:$,simplifyRange:U,subset:q,SemVer:a,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},83295:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},74225:(e,t,r)=>{var n=r(34155),s=r(25108);const a="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>s.error("SEMVER",...e):()=>{};e.exports=a},86742:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),s=t.test(r);return n&&s&&(e=+e,r=+r),e===r?0:n&&!s?-1:s&&!n?1:er(t,e)}},12893:e=>{const t=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:t.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}},55765:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(83295),s=r(74225),a=(t=e.exports={}).re=[],o=t.src=[],i=t.t={};let l=0;const c=(e,t,r)=>{const n=l++;s(e,n,t),i[e]=n,o[n]=t,a[n]=new RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})\\.(${o[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})\\.(${o[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[i.NUMERICIDENTIFIER]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[i.NUMERICIDENTIFIERLOOSE]}|${o[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[i.PRERELEASEIDENTIFIER]}(?:\\.${o[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[i.BUILDIDENTIFIER]}(?:\\.${o[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[i.MAINVERSION]}${o[i.PRERELEASE]}?${o[i.BUILD]}?`),c("FULL",`^${o[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[i.MAINVERSIONLOOSE]}${o[i.PRERELEASELOOSE]}?${o[i.BUILD]}?`),c("LOOSE",`^${o[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[i.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:\\.(${o[i.XRANGEIDENTIFIER]})(?:${o[i.PRERELEASE]})?${o[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[i.XRANGEIDENTIFIERLOOSE]})(?:${o[i.PRERELEASELOOSE]})?${o[i.BUILD]}?)?)?`),c("XRANGE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[i.GTLT]}\\s*${o[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",o[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[i.LONETILDE]}${o[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${o[i.LONECARET]}${o[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[i.LONECARET]}${o[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[i.GTLT]}\\s*(${o[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[i.GTLT]}\\s*(${o[i.LOOSEPLAIN]}|${o[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[i.XRANGEPLAIN]})\\s+-\\s+(${o[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:(e,t,r)=>{const n=r(6826);e.exports=(e,t,r)=>n(e,t,">",r)},82937:(e,t,r)=>{const n=r(66902);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},50032:(e,t,r)=>{const n=r(6826);e.exports=(e,t,r)=>n(e,t,"<",r)},85775:(e,t,r)=>{const n=r(26376),s=r(66902);e.exports=(e,t,r)=>{let a=null,o=null,i=null;try{i=new s(t,r)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(a&&-1!==o.compare(e)||(a=e,o=new n(a,r)))})),a}},71657:(e,t,r)=>{const n=r(26376),s=r(66902);e.exports=(e,t,r)=>{let a=null,o=null,i=null;try{i=new s(t,r)}catch(e){return null}return e.forEach((e=>{i.test(e)&&(a&&1!==o.compare(e)||(a=e,o=new n(a,r)))})),a}},95316:(e,t,r)=>{const n=r(26376),s=r(66902),a=r(71312);e.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!a(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!a(r,o)||(r=o)}return r&&e.test(r)?r:null}},6826:(e,t,r)=>{const n=r(26376),s=r(22257),{ANY:a}=s,o=r(66902),i=r(45712),l=r(71312),c=r(21544),u=r(12056),p=r(25903);e.exports=(e,t,r,f)=>{let d,h,m,g,y;switch(e=new n(e,f),t=new o(t,f),r){case">":d=l,h=u,m=c,g=">",y=">=";break;case"<":d=c,h=p,m=l,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,f))return!1;for(let r=0;r{e.semver===a&&(e=new s(">=0.0.0")),o=o||e,i=i||e,d(e.semver,o.semver,f)?o=e:m(e.semver,i.semver,f)&&(i=e)})),o.operator===g||o.operator===y)return!1;if((!i.operator||i.operator===g)&&h(e,i.semver))return!1;if(i.operator===y&&m(e,i.semver))return!1}return!0}},17908:(e,t,r)=>{const n=r(45712),s=r(46269);e.exports=(e,t,r)=>{const a=[];let o=null,i=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const e of l)n(e,t,r)?(i=e,o||(o=e)):(i&&a.push([o,i]),i=null,o=null);o&&a.push([o,null]);const c=[];for(const[e,t]of a)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length{const n=r(66902),s=r(22257),{ANY:a}=s,o=r(45712),i=r(46269),l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===a){if(1===t.length&&t[0].semver===a)return!0;e=r.includePrerelease?[new s(">=0.0.0-0")]:[new s(">=0.0.0")]}if(1===t.length&&t[0].semver===a){if(r.includePrerelease)return!0;t=[new s(">=0.0.0")]}const n=new Set;let l,p,f,d,h,m,g;for(const t of e)">"===t.operator||">="===t.operator?l=c(l,t,r):"<"===t.operator||"<="===t.operator?p=u(p,t,r):n.add(t.semver);if(n.size>1)return null;if(l&&p){if(f=i(l.semver,p.semver,r),f>0)return null;if(0===f&&(">="!==l.operator||"<="!==p.operator))return null}for(const e of n){if(l&&!o(e,String(l),r))return null;if(p&&!o(e,String(p),r))return null;for(const n of t)if(!o(e,String(n),r))return!1;return!0}let y=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,x=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver;y&&1===y.prerelease.length&&"<"===p.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,l)if(x&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===x.major&&e.semver.minor===x.minor&&e.semver.patch===x.patch&&(x=!1),">"===e.operator||">="===e.operator){if(d=c(l,e,r),d===e&&d!==l)return!1}else if(">="===l.operator&&!o(l.semver,String(e),r))return!1;if(p)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(h=u(p,e,r),h===e&&h!==p)return!1}else if("<="===p.operator&&!o(p.semver,String(e),r))return!1;if(!e.operator&&(p||l)&&0!==f)return!1}return!(l&&m&&!p&&0!==f||p&&g&&!l&&0!==f||x||y)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},51042:(e,t,r)=>{const n=r(66902);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},89042:(e,t,r)=>{const n=r(66902);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},70761:function(e,t,r){(function(){var t,n,s,a,o,i,l={}.toString;function c(e,t,r){if(!(e instanceof Object))return!1;switch(t.structure){case"fields":return function(e,t,r){var n,s,a,o,i,l,c;for(a in n={},s=0,e)n[a]=!0,s++;for(i in o=0,l=t.of){if(c=l[i],!p(e[i],c,r))return!1;n[i]&&o++}return t.subset||s===o}(e,t,r);case"array":return function(e,t,r){return s((function(e){return p(e,t.of,r)}),e)}(e,t,r);case"tuple":return function(e,t,r){var n,s,a,o,i;for(n=0,s=0,o=(a=t.of).length;s|"+t.source+"|\\S","g"),e.exports=function(e){var t;if(!e.length)throw new Error("No type specified.");if(function(e,t){for(var r=-1,n=t.length>>>0;++r"===t[r])return!0;return!1}(0,t=e.match(r)||[]))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return u(t)}catch(r){throw new Error(r.message+" - Remaining tokens: "+JSON.stringify(t)+" - Initial input: '"+e+"'")}}}).call(this)},60540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,s=1;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(h[e])}function x(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t=[],r=0,n=e.length;r=55296&&s<=56319&&r>1,e+=m(e/t);e>455;n+=u)e=m(e/35);return m(n+36*e/(e+38))},S=function(e){var t,r=[],n=e.length,s=0,a=128,o=72,i=e.lastIndexOf("-");i<0&&(i=0);for(var l=0;l=128&&y("not-basic"),r.push(e.charCodeAt(l));for(var p=i>0?i+1:0;p=n&&y("invalid-input");var g=(t=e.charCodeAt(p++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(g>=u||g>m((c-s)/d))&&y("overflow"),s+=g*d;var x=h<=o?1:h>=o+26?26:h-o;if(gm(c/b)&&y("overflow"),d*=b}var E=r.length+1;o=v(s-f,E,0==f),m(s/E)>c-a&&y("overflow"),a+=m(s/E),s%=E,r.splice(s++,0,a)}return String.fromCodePoint.apply(String,r)},C=function(e){var t=[],r=(e=b(e)).length,n=128,s=0,a=72,o=!0,i=!1,l=void 0;try{for(var p,f=e[Symbol.iterator]();!(o=(p=f.next()).done);o=!0){var d=p.value;d<128&&t.push(g(d))}}catch(e){i=!0,l=e}finally{try{!o&&f.return&&f.return()}finally{if(i)throw l}}var h=t.length,x=h;for(h&&t.push("-");x=n&&Fm((c-s)/T)&&y("overflow"),s+=(S-n)*T,n=S;var P=!0,I=!1,_=void 0;try{for(var B,O=e[Symbol.iterator]();!(P=(B=O.next()).done);P=!0){var L=B.value;if(Lc&&y("overflow"),L==n){for(var R=s,j=u;;j+=u){var N=j<=a?1:j>=a+26?26:j-a;if(R>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function D(e){for(var t="",r=0,n=e.length;r=194&&s<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&s)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(s>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16),i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&s)<<12|(63&o)<<6|63&i)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function F(e,t){function r(e){var r=D(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,w).replace(t.PCT_ENCODED,s)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,w).replace(t.PCT_ENCODED,s)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,w).replace(t.PCT_ENCODED,s)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,w).replace(t.PCT_ENCODED,s)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,w).replace(t.PCT_ENCODED,s)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(T).join("."):e}function I(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),s=n[1],a=n[2];if(s){for(var o=s.toLowerCase().split("::").reverse(),i=l(o,2),c=i[0],u=i[1],p=u?u.split(":").map(T):[],f=c.split(":").map(T),d=t.IPV4ADDRESS.test(f[f.length-1]),h=d?7:8,m=f.length-h,g=Array(h),y=0;y1){var E=g.slice(0,x.index),v=g.slice(x.index+x.length);b=E.join(":")+"::"+v.join(":")}else b=g.join(":");return a&&(b+="%"+a),b}return e}var _=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,B=void 0==="".match(/(){0}/)[1];function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?i:o;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var s=e.match(_);if(s){B?(r.scheme=s[1],r.userinfo=s[3],r.host=s[4],r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=s[7],r.fragment=s[8],isNaN(r.port)&&(r.port=s[5])):(r.scheme=s[1]||void 0,r.userinfo=-1!==e.indexOf("@")?s[3]:void 0,r.host=-1!==e.indexOf("//")?s[4]:void 0,r.port=parseInt(s[5],10),r.path=s[6]||"",r.query=-1!==e.indexOf("?")?s[7]:void 0,r.fragment=-1!==e.indexOf("#")?s[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:void 0)),r.host&&(r.host=I(P(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=k[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)F(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=A.toASCII(r.host.replace(n.PCT_ENCODED,D).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}F(r,o)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}var L=/^\.\.?\//,R=/^\/\.(\/|$)/,j=/^\/\.\.(\/|$)/,N=/^\/?(?:.|\n)*?(?=\/|$)/;function M(e){for(var t=[];e.length;)if(e.match(L))e=e.replace(L,"");else if(e.match(R))e=e.replace(R,"/");else if(e.match(j))e=e.replace(j,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(N);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?i:o,n=[],s=k[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize&&s.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||s&&s.domainHost)try{e.host=t.iri?A.toUnicode(e.host):A.toASCII(e.host.replace(r.PCT_ENCODED,D).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}F(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=function(e,t){var r=!1!==t.iri?i:o,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(I(P(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var l=e.path;t.absolutePath||s&&s.absolutePath||(l=M(l)),void 0===a&&(l=l.replace(/^\/\//,"/%2F")),n.push(l)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function $(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=O(V(e,r),r),t=O(V(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=M(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=M(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=M(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=M(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function U(e,t){return e&&e.toString().replace(t&&t.iri?i.PCT_ENCODED:o.PCT_ENCODED,D)}var q={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},G={scheme:"https",domainHost:q.domainHost,parse:q.parse,serialize:q.serialize};function W(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var z={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=W(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(W(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),s=n[0],a=n[1];e.path=s&&"/"!==s?s:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},H={scheme:"wss",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize},J={},K="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",X="[0-9A-Fa-f]",Q=r(r("%[EFef]"+X+"%"+X+X+"%"+X+X)+"|"+r("%[89A-Fa-f]"+X+"%"+X+X)+"|"+r("%"+X+X)),Y=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),Z=new RegExp(K,"g"),ee=new RegExp(Q,"g"),te=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',Y),"g"),re=new RegExp(t("[^]",K,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ne=re;function se(e){var t=D(e);return t.match(Z)?t:e}var ae={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var s=!1,a={},o=r.query.split("&"),i=0,l=o.length;i{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},55955:(e,t,r)=>{"use strict";var n=r(82584),s=r(48662),a=r(86430),o=r(85692);function i(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=i(Object.prototype.toString),p=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),d=i(Boolean.prototype.valueOf);if(l)var h=i(BigInt.prototype.valueOf);if(c)var m=i(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"[object Map]"===u(e)}function x(e){return"[object Set]"===u(e)}function b(e){return"[object WeakMap]"===u(e)}function E(e){return"[object WeakSet]"===u(e)}function v(e){return"[object ArrayBuffer]"===u(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(v.working?v(e):e instanceof ArrayBuffer)}function C(e){return"[object DataView]"===u(e)}function A(e){return"undefined"!=typeof DataView&&(C.working?C(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=s,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||A(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(y.working?y(e):e instanceof Map)},x.working="undefined"!=typeof Set&&x(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(x.working?x(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},E.working="undefined"!=typeof WeakSet&&E(new WeakSet),t.isWeakSet=function(e){return E(e)},v.working="undefined"!=typeof ArrayBuffer&&v(new ArrayBuffer),t.isArrayBuffer=S,C.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&C(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=A;var k="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function w(e){return"[object SharedArrayBuffer]"===u(e)}function D(e){return void 0!==k&&(void 0===w.working&&(w.working=w(new k)),w.working?w(e):e instanceof k)}function F(e){return g(e,p)}function T(e){return g(e,f)}function P(e){return g(e,d)}function I(e){return l&&g(e,h)}function _(e){return c&&g(e,m)}t.isSharedArrayBuffer=D,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=F,t.isStringObject=T,t.isBooleanObject=P,t.isBigIntObject=I,t.isSymbolObject=_,t.isBoxedPrimitive=function(e){return F(e)||T(e)||P(e)||I(e)||_(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||D(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},89539:(e,t,r)=>{var n=r(34155),s=r(25108),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),i=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=p),d(n,e,n.depth)}function p(e,t){var r=u.styles[t];return r?"["+u.colors[r][0]+"m"+e+"["+u.colors[r][1]+"m":e}function f(e,t){return e}function d(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var s=r.inspect(n,e);return E(s)||(s=d(e,s,n)),s}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(E(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):x(t)?e.stylize("null","null"):void 0}(e,r);if(a)return a;var o=Object.keys(r),i=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),k(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(r);if(0===o.length){if(w(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if(S(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(A(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var c,u="",p=!1,f=["{","}"];return g(r)&&(p=!0,f=["[","]"]),w(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),S(r)&&(u=" "+RegExp.prototype.toString.call(r)),A(r)&&(u=" "+Date.prototype.toUTCString.call(r)),k(r)&&(u=" "+h(r)),0!==o.length||p&&0!=r.length?n<0?S(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),c=p?function(e,t,r,n,s){for(var a=[],o=0,i=t.length;o60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,f)):f[0]+u+f[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,s,a){var o,i,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?i=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(i=e.stylize("[Setter]","special")),P(n,s)||(o="["+s+"]"),i||(e.seen.indexOf(l.value)<0?(i=x(r)?d(e,l.value,null):d(e,l.value,r-1)).indexOf("\n")>-1&&(i=a?i.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+i.split("\n").map((function(e){return" "+e})).join("\n")):i=e.stylize("[Circular]","special")),v(o)){if(a&&s.match(/^\d+$/))return i;(o=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+i}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function x(e){return null===e}function b(e){return"number"==typeof e}function E(e){return"string"==typeof e}function v(e){return void 0===e}function S(e){return C(e)&&"[object RegExp]"===D(e)}function C(e){return"object"==typeof e&&null!==e}function A(e){return C(e)&&"[object Date]"===D(e)}function k(e){return C(e)&&("[object Error]"===D(e)||e instanceof Error)}function w(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function F(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!i[e])if(l.test(e)){var r=n.pid;i[e]=function(){var n=t.format.apply(t,arguments);s.error("%s %d: %s",e,r,n)}}else i[e]=function(){};return i[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(55955),t.isArray=g,t.isBoolean=y,t.isNull=x,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=E,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=S,t.types.isRegExp=S,t.isObject=C,t.isDate=A,t.types.isDate=A,t.isError=k,t.types.isNativeError=k,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(20384);var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;s.log("%s - %s",(r=[F((e=new Date).getHours()),F(e.getMinutes()),F(e.getSeconds())].join(":"),[e.getDate(),T[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(35717),t._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function _(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),s=[],a=0;a{"use strict";var n=r(94029),s=r(63083),a=r(21924),o=r(27296),i=a("Object.prototype.toString"),l=r(96410)(),c="undefined"==typeof globalThis?r.g:globalThis,u=s(),p=a("String.prototype.slice"),f={},d=Object.getPrototypeOf;l&&o&&d&&n(u,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=d(t),n=o(r,Symbol.toStringTag);if(!n){var s=d(r);n=o(s,Symbol.toStringTag)}f[e]=n.get}}}));var h=r(85692);e.exports=function(e){return!!h(e)&&(l&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var s=r.call(e);s===n&&(t=s)}catch(e){}})),t}(e):p(i(e),8,-1))}},49602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},34411:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,s=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var s=0,a=this.head;null!==a&&sthis.length&&(t=this.length);for(var s=this.length,a=this.tail;null!==a&&s>t;s--)a=a.prev;for(;null!==a&&s>e;s--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,a=this.head;null!==a&&n{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],s="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";e.exports=JSON.parse('{"builtin":{"AggregateError":false,"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"FinalizationRegistry":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakRef":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2020":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2021":{"AggregateError":false,"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"FinalizationRegistry":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakRef":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMatrixComponent":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSPerspective":false,"CSSRotate":false,"CSSRule":false,"CSSRuleList":false,"CSSScale":false,"CSSSkew":false,"CSSSkewX":false,"CSSSkewY":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CSSTransformValue":false,"CSSTranslate":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectList":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"FormDataEvent":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaMetadata":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"OffscreenCanvasRenderingContext2D":false,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"OverconstrainedError":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"reportError":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"structuredClone":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubmitEvent":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransformStream":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"CustomEvent":false,"ErrorEvent":false,"Event":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"reportError":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"AbortController":false,"AbortSignal":false,"atob":false,"btoa":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"DOMException":false,"Event":false,"EventTarget":false,"exports":true,"fetch":false,"global":false,"Intl":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"module":false,"performance":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"structuredClone":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"nodeBuiltin":{"AbortController":false,"AbortSignal":false,"atob":false,"btoa":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"DOMException":false,"Event":false,"EventTarget":false,"fetch":false,"global":false,"Intl":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"performance":false,"process":false,"queueMicrotask":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"structuredClone":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"expectAsync":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnAllFunctions":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":false,"CollectGarbage":false,"Debug":false,"Enumerator":false,"GetObject":false,"RuntimeObject":false,"ScriptEngine":false,"ScriptEngineBuildVersion":false,"ScriptEngineMajorVersion":false,"ScriptEngineMinorVersion":false,"VBArray":false,"WScript":false,"WSH":false},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"CustomEvent":false,"ErrorEvent":false,"Event":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"atom":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"AbortController":false,"AbortSignal":false,"atob":false,"btoa":false,"clearInterval":false,"clearTimeout":false,"console":false,"DOMException":false,"Event":false,"EventTarget":false,"fetch":false,"Intl":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"performance":false,"queueMicrotask":false,"setInterval":false,"setTimeout":false,"structuredClone":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addElement":false,"GM_addStyle":false,"GM_addValueChangeListener":false,"GM_deleteValue":false,"GM_download":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getTab":false,"GM_getTabs":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_notification":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_removeValueChangeListener":false,"GM_saveTab":false,"GM_setClipboard":false,"GM_setValue":false,"GM_unregisterMenuCommand":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')},894:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},27171:e=>{"use strict";e.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},6680:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},82954:e=>{"use strict";e.exports={i8:"3.0.0"}},86536:e=>{"use strict";e.exports={i8:"4.3.0"}},83196:e=>{"use strict";e.exports={i8:"5.1.1"}},94378:e=>{"use strict";e.exports=JSON.parse('{"rules":{"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]}}')},19683:e=>{"use strict";e.exports=JSON.parse('{"AssignmentExpression":["left","right"],"AssignmentPattern":["left","right"],"ArrayExpression":["elements"],"ArrayPattern":["elements"],"ArrowFunctionExpression":["params","body"],"AwaitExpression":["argument"],"BlockStatement":["body"],"BinaryExpression":["left","right"],"BreakStatement":["label"],"CallExpression":["callee","arguments"],"CatchClause":["param","body"],"ChainExpression":["expression"],"ClassBody":["body"],"ClassDeclaration":["id","superClass","body"],"ClassExpression":["id","superClass","body"],"ConditionalExpression":["test","consequent","alternate"],"ContinueStatement":["label"],"DebuggerStatement":[],"DoWhileStatement":["body","test"],"EmptyStatement":[],"ExportAllDeclaration":["exported","source"],"ExportDefaultDeclaration":["declaration"],"ExportNamedDeclaration":["declaration","specifiers","source"],"ExportSpecifier":["exported","local"],"ExpressionStatement":["expression"],"ExperimentalRestProperty":["argument"],"ExperimentalSpreadProperty":["argument"],"ForStatement":["init","test","update","body"],"ForInStatement":["left","right","body"],"ForOfStatement":["left","right","body"],"FunctionDeclaration":["id","params","body"],"FunctionExpression":["id","params","body"],"Identifier":[],"IfStatement":["test","consequent","alternate"],"ImportDeclaration":["specifiers","source"],"ImportDefaultSpecifier":["local"],"ImportExpression":["source"],"ImportNamespaceSpecifier":["local"],"ImportSpecifier":["imported","local"],"JSXAttribute":["name","value"],"JSXClosingElement":["name"],"JSXElement":["openingElement","children","closingElement"],"JSXEmptyExpression":[],"JSXExpressionContainer":["expression"],"JSXIdentifier":[],"JSXMemberExpression":["object","property"],"JSXNamespacedName":["namespace","name"],"JSXOpeningElement":["name","attributes"],"JSXSpreadAttribute":["argument"],"JSXText":[],"JSXFragment":["openingFragment","children","closingFragment"],"Literal":[],"LabeledStatement":["label","body"],"LogicalExpression":["left","right"],"MemberExpression":["object","property"],"MetaProperty":["meta","property"],"MethodDefinition":["key","value"],"NewExpression":["callee","arguments"],"ObjectExpression":["properties"],"ObjectPattern":["properties"],"Program":["body"],"Property":["key","value"],"RestElement":["argument"],"ReturnStatement":["argument"],"SequenceExpression":["expressions"],"SpreadElement":["argument"],"Super":[],"SwitchStatement":["discriminant","cases"],"SwitchCase":["test","consequent"],"TaggedTemplateExpression":["tag","quasi"],"TemplateElement":[],"TemplateLiteral":["quasis","expressions"],"ThisExpression":[],"ThrowStatement":["argument"],"TryStatement":["block","handler","finalizer"],"UnaryExpression":["argument"],"UpdateExpression":["argument"],"VariableDeclaration":["declarations"],"VariableDeclarator":["id","init"],"WhileStatement":["test","body"],"WithStatement":["object","body"],"YieldExpression":["argument"]}')},92083:e=>{"use strict";e.exports=JSON.parse('{"AssignmentExpression":["left","right"],"AssignmentPattern":["left","right"],"ArrayExpression":["elements"],"ArrayPattern":["elements"],"ArrowFunctionExpression":["params","body"],"AwaitExpression":["argument"],"BlockStatement":["body"],"BinaryExpression":["left","right"],"BreakStatement":["label"],"CallExpression":["callee","arguments"],"CatchClause":["param","body"],"ChainExpression":["expression"],"ClassBody":["body"],"ClassDeclaration":["id","superClass","body"],"ClassExpression":["id","superClass","body"],"ConditionalExpression":["test","consequent","alternate"],"ContinueStatement":["label"],"DebuggerStatement":[],"DoWhileStatement":["body","test"],"EmptyStatement":[],"ExportAllDeclaration":["exported","source"],"ExportDefaultDeclaration":["declaration"],"ExportNamedDeclaration":["declaration","specifiers","source"],"ExportSpecifier":["exported","local"],"ExpressionStatement":["expression"],"ExperimentalRestProperty":["argument"],"ExperimentalSpreadProperty":["argument"],"ForStatement":["init","test","update","body"],"ForInStatement":["left","right","body"],"ForOfStatement":["left","right","body"],"FunctionDeclaration":["id","params","body"],"FunctionExpression":["id","params","body"],"Identifier":[],"IfStatement":["test","consequent","alternate"],"ImportDeclaration":["specifiers","source"],"ImportDefaultSpecifier":["local"],"ImportExpression":["source"],"ImportNamespaceSpecifier":["local"],"ImportSpecifier":["imported","local"],"JSXAttribute":["name","value"],"JSXClosingElement":["name"],"JSXElement":["openingElement","children","closingElement"],"JSXEmptyExpression":[],"JSXExpressionContainer":["expression"],"JSXIdentifier":[],"JSXMemberExpression":["object","property"],"JSXNamespacedName":["namespace","name"],"JSXOpeningElement":["name","attributes"],"JSXSpreadAttribute":["argument"],"JSXText":[],"JSXFragment":["openingFragment","children","closingFragment"],"Literal":[],"LabeledStatement":["label","body"],"LogicalExpression":["left","right"],"MemberExpression":["object","property"],"MetaProperty":["meta","property"],"MethodDefinition":["key","value"],"NewExpression":["callee","arguments"],"ObjectExpression":["properties"],"ObjectPattern":["properties"],"PrivateIdentifier":[],"Program":["body"],"Property":["key","value"],"PropertyDefinition":["key","value"],"RestElement":["argument"],"ReturnStatement":["argument"],"SequenceExpression":["expressions"],"SpreadElement":["argument"],"Super":[],"SwitchStatement":["discriminant","cases"],"SwitchCase":["test","consequent"],"TaggedTemplateExpression":["tag","quasi"],"TemplateElement":[],"TemplateLiteral":["quasis","expressions"],"ThisExpression":[],"ThrowStatement":["argument"],"TryStatement":["block","handler","finalizer"],"UnaryExpression":["argument"],"UpdateExpression":["argument"],"VariableDeclaration":["declarations"],"VariableDeclarator":["id","init"],"WhileStatement":["test","body"],"WithStatement":["object","body"],"YieldExpression":["argument"]}')},92925:e=>{"use strict";e.exports=JSON.parse('{"builtin":{"AggregateError":false,"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"FinalizationRegistry":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakRef":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2020":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2021":{"AggregateError":false,"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"FinalizationRegistry":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakRef":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMatrixComponent":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSPerspective":false,"CSSRotate":false,"CSSRule":false,"CSSRuleList":false,"CSSScale":false,"CSSSkew":false,"CSSSkewX":false,"CSSSkewY":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CSSTransformValue":false,"CSSTranslate":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectList":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"FormDataEvent":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaMetadata":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"OffscreenCanvasRenderingContext2D":false,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"OverconstrainedError":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"reportError":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"structuredClone":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubmitEvent":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransformStream":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"CustomEvent":false,"ErrorEvent":false,"Event":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"reportError":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"AbortController":false,"AbortSignal":false,"atob":false,"btoa":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"DOMException":false,"Event":false,"EventTarget":false,"exports":true,"fetch":false,"global":false,"Intl":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"module":false,"performance":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"structuredClone":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"nodeBuiltin":{"AbortController":false,"AbortSignal":false,"atob":false,"btoa":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"DOMException":false,"Event":false,"EventTarget":false,"fetch":false,"global":false,"Intl":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"performance":false,"process":false,"queueMicrotask":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"structuredClone":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"expectAsync":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnAllFunctions":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":false,"CollectGarbage":false,"Debug":false,"Enumerator":false,"GetObject":false,"RuntimeObject":false,"ScriptEngine":false,"ScriptEngineBuildVersion":false,"ScriptEngineMajorVersion":false,"ScriptEngineMinorVersion":false,"VBArray":false,"WScript":false,"WSH":false},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"CustomEvent":false,"ErrorEvent":false,"Event":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"atom":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"AbortController":false,"AbortSignal":false,"atob":false,"btoa":false,"clearInterval":false,"clearTimeout":false,"console":false,"DOMException":false,"Event":false,"EventTarget":false,"fetch":false,"Intl":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"performance":false,"queueMicrotask":false,"setInterval":false,"setTimeout":false,"structuredClone":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addElement":false,"GM_addStyle":false,"GM_addValueChangeListener":false,"GM_deleteValue":false,"GM_download":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getTab":false,"GM_getTabs":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_notification":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_removeValueChangeListener":false,"GM_saveTab":false,"GM_setClipboard":false,"GM_setValue":false,"GM_unregisterMenuCommand":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')},11810:e=>{"use strict";e.exports=JSON.parse('{"name":"eslint","version":"7.32.0","author":"Nicholas C. Zakas ","description":"An AST-based pattern checker for JavaScript.","bin":{"eslint":"./bin/eslint.js"},"main":"./lib/api.js","scripts":{"test":"node Makefile.js test","test:cli":"mocha","lint":"node Makefile.js lint","fix":"node Makefile.js lint -- fix","fuzz":"node Makefile.js fuzz","generate-release":"node Makefile.js generateRelease","generate-alpharelease":"node Makefile.js generatePrerelease -- alpha","generate-betarelease":"node Makefile.js generatePrerelease -- beta","generate-rcrelease":"node Makefile.js generatePrerelease -- rc","publish-release":"node Makefile.js publishRelease","docs":"node Makefile.js docs","gensite":"node Makefile.js gensite","webpack":"node Makefile.js webpack","perf":"node Makefile.js perf"},"gitHooks":{"pre-commit":"lint-staged"},"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint"},"files":["LICENSE","README.md","bin","conf","lib","messages"],"repository":"eslint/eslint","funding":"https://opencollective.com/eslint","homepage":"https://eslint.org","bugs":"https://github.com/eslint/eslint/issues/","dependencies":{"@babel/code-frame":"7.12.11","@eslint/eslintrc":"^0.4.3","@humanwhocodes/config-array":"^0.5.0","ajv":"^6.10.0","chalk":"^4.0.0","cross-spawn":"^7.0.2","debug":"^4.0.1","doctrine":"^3.0.0","enquirer":"^2.3.5","escape-string-regexp":"^4.0.0","eslint-scope":"^5.1.1","eslint-utils":"^2.1.0","eslint-visitor-keys":"^2.0.0","espree":"^7.3.1","esquery":"^1.4.0","esutils":"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^6.0.1","functional-red-black-tree":"^1.0.1","glob-parent":"^5.1.2","globals":"^13.6.0","ignore":"^4.0.6","import-fresh":"^3.0.0","imurmurhash":"^0.1.4","is-glob":"^4.0.0","js-yaml":"^3.13.1","json-stable-stringify-without-jsonify":"^1.0.1","levn":"^0.4.1","lodash.merge":"^4.6.2","minimatch":"^3.0.4","natural-compare":"^1.4.0","optionator":"^0.9.1","progress":"^2.0.0","regexpp":"^3.1.0","semver":"^7.2.1","strip-ansi":"^6.0.0","strip-json-comments":"^3.1.0","table":"^6.0.9","text-table":"^0.2.0","v8-compile-cache":"^2.0.3"},"devDependencies":{"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","babel-loader":"^8.0.5","chai":"^4.0.1","cheerio":"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3","dateformat":"^3.0.3","ejs":"^3.0.2","eslint":"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-plugin":"^3.5.3","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^25.4.3","eslint-plugin-node":"^11.1.0","eslint-release":"^2.0.0","eslump":"^3.0.0","esprima":"^4.0.1","fs-teardown":"0.1.1","glob":"^7.1.6","jsdoc":"^3.5.5","karma":"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-mocha-reporter":"^2.2.5","karma-webpack":"^5.0.0","lint-staged":"^10.1.2","load-perf":"^0.2.0","markdownlint":"^0.19.0","markdownlint-cli":"^0.22.0","memfs":"^3.0.1","mocha":"^8.3.2","mocha-junit-reporter":"^2.0.0","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3","nyc":"^15.0.1","proxyquire":"^2.0.1","puppeteer":"^7.1.0","recast":"^0.19.0","regenerator-runtime":"^0.13.2","shelljs":"^0.8.2","sinon":"^9.0.1","temp":"^0.9.0","webpack":"^5.23.0","webpack-cli":"^4.5.0","yorkie":"^2.0.0"},"keywords":["ast","lint","javascript","ecmascript","espree"],"license":"MIT","engines":{"node":"^10.12.0 || >=12.0.0"}}')},54471:e=>{"use strict";e.exports=JSON.parse('{"AssignmentExpression":["left","right"],"AssignmentPattern":["left","right"],"ArrayExpression":["elements"],"ArrayPattern":["elements"],"ArrowFunctionExpression":["params","body"],"AwaitExpression":["argument"],"BlockStatement":["body"],"BinaryExpression":["left","right"],"BreakStatement":["label"],"CallExpression":["callee","arguments"],"CatchClause":["param","body"],"ChainExpression":["expression"],"ClassBody":["body"],"ClassDeclaration":["id","superClass","body"],"ClassExpression":["id","superClass","body"],"ConditionalExpression":["test","consequent","alternate"],"ContinueStatement":["label"],"DebuggerStatement":[],"DoWhileStatement":["body","test"],"EmptyStatement":[],"ExportAllDeclaration":["exported","source"],"ExportDefaultDeclaration":["declaration"],"ExportNamedDeclaration":["declaration","specifiers","source"],"ExportSpecifier":["exported","local"],"ExpressionStatement":["expression"],"ExperimentalRestProperty":["argument"],"ExperimentalSpreadProperty":["argument"],"ForStatement":["init","test","update","body"],"ForInStatement":["left","right","body"],"ForOfStatement":["left","right","body"],"FunctionDeclaration":["id","params","body"],"FunctionExpression":["id","params","body"],"Identifier":[],"IfStatement":["test","consequent","alternate"],"ImportDeclaration":["specifiers","source"],"ImportDefaultSpecifier":["local"],"ImportExpression":["source"],"ImportNamespaceSpecifier":["local"],"ImportSpecifier":["imported","local"],"JSXAttribute":["name","value"],"JSXClosingElement":["name"],"JSXElement":["openingElement","children","closingElement"],"JSXEmptyExpression":[],"JSXExpressionContainer":["expression"],"JSXIdentifier":[],"JSXMemberExpression":["object","property"],"JSXNamespacedName":["namespace","name"],"JSXOpeningElement":["name","attributes"],"JSXSpreadAttribute":["argument"],"JSXText":[],"JSXFragment":["openingFragment","children","closingFragment"],"Literal":[],"LabeledStatement":["label","body"],"LogicalExpression":["left","right"],"MemberExpression":["object","property"],"MetaProperty":["meta","property"],"MethodDefinition":["key","value"],"NewExpression":["callee","arguments"],"ObjectExpression":["properties"],"ObjectPattern":["properties"],"Program":["body"],"Property":["key","value"],"RestElement":["argument"],"ReturnStatement":["argument"],"SequenceExpression":["expressions"],"SpreadElement":["argument"],"Super":[],"SwitchStatement":["discriminant","cases"],"SwitchCase":["test","consequent"],"TaggedTemplateExpression":["tag","quasi"],"TemplateElement":[],"TemplateLiteral":["quasis","expressions"],"ThisExpression":[],"ThrowStatement":["argument"],"TryStatement":["block","handler","finalizer"],"UnaryExpression":["argument"],"UpdateExpression":["argument"],"VariableDeclaration":["declarations"],"VariableDeclarator":["id","init"],"WhileStatement":["test","body"],"WithStatement":["object","body"],"YieldExpression":["argument"]}')},82777:e=>{"use strict";e.exports={version:"7.3.1"}},29389:e=>{"use strict";e.exports={version:"4.3.0"}}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(78500);function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var r=1;rr||t<0||r>e.length)throw new Error("Invalid positions provided");for(var n=1,s=1,a=1,o=1,i=0,l=1,c=1;i + * @license MIT + */ + +/*! @author Toru Nagashima */ + +/** + * @fileoverview Pattern for detecting any letter (even letters outside of ASCII). + * NOTE: This file was generated using this script in JSCS based on the Unicode 7.0.0 standard: https://github.com/jscs-dev/node-jscs/blob/f5ed14427deb7e7aac84f3056a5aab2d9f3e563e/publish/helpers/generate-patterns.js + * Do not edit this file by hand-- please use https://github.com/mathiasbynens/regenerate to regenerate the regular expression exported from this file. + * @author Kevin Partington + * @license MIT License (from JSCS). See below. + */ + +/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ diff --git a/Scriptcat/src/monaco-2cdf052c.js b/Scriptcat/src/monaco-2cdf052c.js new file mode 100755 index 0000000..896a96e --- /dev/null +++ b/Scriptcat/src/monaco-2cdf052c.js @@ -0,0 +1,2 @@ +/*! For license information please see monaco-2cdf052c.js.LICENSE.txt */ +"use strict";(self.webpackChunkscriptcat=self.webpackChunkscriptcat||[]).push([[864],{88844:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .accessibilityHelpWidget {\n\tpadding: 10px;\n\tvertical-align: middle;\n\toverflow: scroll;\n\tcolor: var(--vscode-editorWidget-foreground);\n\tbackground-color: var(--vscode-editorWidget-background);\n\tbox-shadow: 0 2px 8px var(--vscode-widget-shadow);\n\tborder: 2px solid var(--vscode-contrastBorder);\n}\n",""]);const a=s},21556:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(8081),i=n.n(r),o=n(23645),s=n.n(o),a=n(61667),c=n.n(a),u=new URL(n(6161),n.b),d=new URL(n(51096),n.b),l=s()(i()),g=c()(u),h=c()(d);l.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .iPadShowKeyboard {\n\twidth: 58px;\n\tmin-width: 0;\n\theight: 36px;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\tresize: none;\n\toverflow: hidden;\n\tbackground: url("+g+") center center no-repeat;\n\tborder: 4px solid #F6F6F6;\n\tborder-radius: 4px;\n}\n\n.monaco-editor.vs-dark .iPadShowKeyboard {\n\tbackground: url("+h+") center center no-repeat;\n\tborder: 4px solid #252526;\n}",""]);const f=l},75189:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .tokens-inspect-widget {\n\tz-index: 50;\n\tuser-select: text;\n\t-webkit-user-select: text;\n\tpadding: 10px;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n}\n.monaco-editor.hc-black .tokens-inspect-widget, .monaco-editor.hc-light .tokens-inspect-widget {\n\tborder-width: 2px;\n}\n\n.monaco-editor .tokens-inspect-widget .tokens-inspect-separator {\n\theight: 1px;\n\tborder: 0;\n\tbackground-color: var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token {\n\tfont-family: var(--monaco-monospace-font);\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-length {\n\tfont-weight: normal;\n\tfont-size: 60%;\n\tfloat: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\n\twidth: 100%;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\n\tfont-family: var(--monaco-monospace-font);\n\ttext-align: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-type {\n\tfont-family: var(--monaco-monospace-font);\n}\n",""]);const a=s},93198:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.quick-input-widget {\n\tfont-size: 13px;\n}\n\n.quick-input-widget .monaco-highlighted-label .highlight,\n.quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #0066BF;\n}\n\n.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,\n.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight {\n\tcolor: #9DDDFF;\n}\n\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #0097fb;\n}\n\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight,\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #F38518;\n}\n\n.hc-light .quick-input-widget .monaco-highlighted-label .highlight,\n.hc-light .quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #0F4A85;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: rgba(221, 221, 221, 0.4);\n\tborder: solid 1px rgba(204, 204, 204, 0.4);\n\tborder-bottom-color: rgba(187, 187, 187, 0.4);\n\tbox-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n\tcolor: #555;\n}\n\n.hc-black .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: transparent;\n\tborder: solid 1px rgb(111, 195, 223);\n\tbox-shadow: none;\n\tcolor: #fff;\n}\n\n.hc-light .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: transparent;\n\tborder: solid 1px #0F4A85;\n\tbox-shadow: none;\n\tcolor: #292929;\n}\n\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: rgba(128, 128, 128, 0.17);\n\tborder: solid 1px rgba(51, 51, 51, 0.6);\n\tborder-bottom-color: rgba(68, 68, 68, 0.6);\n\tbox-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n\tcolor: #ccc;\n}\n",""]);const a=s},70643:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(8081),i=n.n(r),o=n(23645),s=n.n(o)()(i());s.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n/* Default standalone editor fonts */\n.monaco-editor {\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\n\tstroke-width: 1.2px;\n}\n\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\n.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\n\tstroke-width: 1.2px;\n}\n\n.monaco-hover p {\n\tmargin: 0;\n}\n\n/* See https://github.com/microsoft/monaco-editor/issues/2168#issuecomment-780078600 */\n.monaco-aria-container {\n\tposition: absolute !important;\n\ttop: 0; /* avoid being placed underneath a sibling element */\n\theight: 1px;\n\twidth: 1px;\n\tmargin: -1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n}\n\n/*.monaco-editor.vs [tabindex="0"]:focus {\n\toutline: 1px solid rgba(0, 122, 204, 0.4);\n\toutline-offset: -1px;\n\topacity: 1 !important;\n}\n\n.monaco-editor.vs-dark [tabindex="0"]:focus {\n\toutline: 1px solid rgba(14, 99, 156, 0.6);\n\toutline-offset: -1px;\n\topacity: 1 !important;\n}*/\n',""]);const a=s},35898:(e,t,n)=>{var r=n(93379),i=n.n(r),o=n(7795),s=n.n(o),a=n(90569),c=n.n(a),u=n(3565),d=n.n(u),l=n(19216),g=n.n(l),h=n(44589),f=n.n(h),p=n(88844),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=g();i()(p.Z,m);p.Z&&p.Z.locals&&p.Z.locals;var v=n(65321),b=n(38626),_=n(48764),k=n(56346),y=n(93794),w=n(5976),C=n(1432),x=n(97295),S=n(70666),E=n(16830),I=n(29102),D=n(64662),T=n(93983),A=n(72065),O=n(91847),L=n(50988),R=n(20913),F=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},P=function(e,t){return function(n,r){t(n,r,e)}};const M=new T.uy("accessibilityHelpWidgetVisible",!1);let N=class e extends w.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(j,this._editor))}show(){this._widget.show()}hide(){this._widget.hide()}};N.ID="editor.contrib.accessibilityHelpController",N=F([P(1,A.TG)],N);let j=class e extends y.${constructor(e,t,n,r){super(),this._contextKeyService=t,this._keybindingService=n,this._openerService=r,this._editor=e,this._isVisibleKey=M.bindTo(this._contextKeyService),this._domNode=(0,b.X)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=(0,b.X)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange((()=>{this._isVisible&&this._layout()}))),this._register(v.mu(this._contentDomNode.domNode,"keydown",(e=>{if(this._isVisible&&(e.equals(2083)&&((0,k.Z9)(R.Oe.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),v.PO(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){(0,k.Z9)(R.Oe.openingDocs);let t=this._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(S.o.parse(t)),e.preventDefault(),e.stopPropagation()}}))),this.onblur(this._contentDomNode.domNode,(()=>{this.hide()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,n){const r=this._keybindingService.lookupKeybinding(e);return r?x.WU(t,r.getAriaLabel()):x.WU(n,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let n=0;if(t){const e=this._editor.getModel();e&&t.forEach((t=>{n+=e.getValueLengthInRange(t)}))}let r=function(e,t){return e&&0!==e.length?1===e.length?t?x.WU(R.Oe.singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):x.WU(R.Oe.singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?x.WU(R.Oe.multiSelectionRange,e.length,t):e.length>0?x.WU(R.Oe.multiSelection,e.length):"":R.Oe.noSelection}(t,n);e.get(59)?e.get(87)?r+=R.Oe.readonlyDiffEditor:r+=R.Oe.editableDiffEditor:e.get(87)?r+=R.Oe.readonlyEditor:r+=R.Oe.editableEditor;const i=C.dz?R.Oe.changeConfigToOnMac:R.Oe.changeConfigToOnWinLinux;switch(e.get(2)){case 0:r+="\n\n - "+i;break;case 2:r+="\n\n - "+R.Oe.auto_on;break;case 1:r+="\n\n - "+R.Oe.auto_off,r+=" "+i}e.get(138)?r+="\n\n - "+this._descriptionForCommand(D.R.ID,R.Oe.tabFocusModeOnMsg,R.Oe.tabFocusModeOnMsgNoKb):r+="\n\n - "+this._descriptionForCommand(D.R.ID,R.Oe.tabFocusModeOffMsg,R.Oe.tabFocusModeOffMsgNoKb);r+="\n\n - "+(C.dz?R.Oe.openDocMac:R.Oe.openDocWinLinux),r+="\n\n"+R.Oe.outroMsg,this._contentDomNode.domNode.appendChild((0,_.BO)(r)),this._contentDomNode.domNode.setAttribute("aria-label",r)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,v.PO(this._contentDomNode.domNode),this._editor.focus())}_layout(){const t=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(e.WIDTH,t.width-40)),r=Math.max(5,Math.min(e.HEIGHT,t.height-40));this._domNode.setWidth(n),this._domNode.setHeight(r);const i=Math.round((t.height-r)/2);this._domNode.setTop(i);const o=Math.round((t.width-n)/2);this._domNode.setLeft(o)}};j.ID="editor.contrib.accessibilityHelpWidget",j.WIDTH=500,j.HEIGHT=300,j=F([P(1,T.i6),P(2,O.d),P(3,L.v4)],j);class z extends E.R6{constructor(){super({id:"editor.action.showAccessibilityHelp",label:R.Oe.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){const n=N.get(t);null==n||n.show()}}(0,E._K)(N.ID,N,4),(0,E.Qr)(z);const W=E._l.bindToContribution(N.get);(0,E.fK)(new W({id:"closeAccessibilityHelp",precondition:M,handler:e=>e.hide(),kbOpts:{weight:200,kbExpr:I.u.focus,primary:9,secondary:[1033]}}))},41321:(e,t,n)=>{var r=n(93379),i=n.n(r),o=n(7795),s=n.n(o),a=n(90569),c=n.n(a),u=n(3565),d=n.n(u),l=n(19216),g=n.n(l),h=n(44589),f=n.n(h),p=n(21556),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=g();i()(p.Z,m);p.Z&&p.Z.locals&&p.Z.locals;var v=n(65321),b=n(5976),_=n(16830),k=n(1432);class y extends b.JT{constructor(e){super(),this.editor=e,this.widget=null,k.gn&&(this._register(e.onDidChangeConfiguration((()=>this.update()))),this.update())}update(){const e=!this.editor.getOption(87);!this.widget&&e?this.widget=new w(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}y.ID="editor.contrib.iPadShowKeyboard";class w extends b.JT{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(v.nm(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(v.nm(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return w.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}w.ID="editor.contrib.ShowKeyboardWidget",(0,_._K)(y.ID,y,3)},95733:(e,t,n)=>{var r=n(93379),i=n.n(r),o=n(7795),s=n.n(o),a=n(90569),c=n.n(a),u=n(3565),d=n.n(u),l=n(19216),g=n.n(l),h=n(44589),f=n.n(h),p=n(75189),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=g();i()(p.Z,m);p.Z&&p.Z.locals&&p.Z.locals;var v=n(65321),b=n(41264),_=n(5976),k=n(16830),y=n(96887),w=n(45797),C=n(276),x=n(72042),S=n(44156),E=n(20913),I=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},D=function(e,t){return function(n,r){t(n,r,e)}};let T=class e extends _.JT{static get(t){return t.getContribution(e.ID)}constructor(e,t,n){super(),this._editor=e,this._languageService=n,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(y.RW.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new O(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};T.ID="editor.contrib.inspectTokens",T=I([D(1,S.Z),D(2,x.O)],T);class A extends k.R6{constructor(){super({id:"editor.action.inspectTokens",label:E.ug.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const n=T.get(t);null==n||n.launch()}}class O extends _.JT{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){const n=y.RW.get(t);if(n)return n;const r=e.encodeLanguageId(t);return{getInitialState:()=>C.TJ,tokenize:(e,n,r)=>(0,C.Ri)(t,r),tokenizeEncoded:(e,t,n)=>(0,C.Dy)(r,n)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return O._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let n=0;for(let r=t.tokens1.length-1;r>=0;r--){const i=t.tokens1[r];if(e.column-1>=i.offset){n=r;break}}let r=0;for(let n=t.tokens2.length>>>1;n>=0;n--)if(e.column-1>=t.tokens2[n<<1]){r=n;break}const i=this._model.getLineContent(e.lineNumber);let o="";if(n{var r=n(89872),i=n(90725),o=n(20913),s=n(11640),a=n(50094),c=n(98401),u=n(72065),d=n(91847),l=n(94565),g=n(10829),h=n(28820),f=n(16830),p=n(29102),m=n(41157),v=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},b=function(e,t){return function(n,r){t(n,r,e)}},_=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};let k=class extends a.T{get activeTextEditorControl(){return(0,c.f6)(this.codeEditorService.getFocusedCodeEditor())}constructor(e,t,n,r,i,o){super({showAlias:!1},e,n,r,i,o),this.codeEditorService=t}getCommandPicks(){return _(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}};k=v([b(0,u.TG),b(1,s.$),b(2,d.d),b(3,l.H),b(4,g.b),b(5,h.S)],k);class y extends f.R6{constructor(){super({id:y.ID,label:o.UX.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:p.u.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(m.eJ).quickAccess.show(k.PREFIX)}}y.ID="editor.action.quickCommand",(0,f.Qr)(y),r.B.as(i.IP.Quickaccess).registerQuickAccessProvider({ctor:k,prefix:k.PREFIX,helpEntries:[{description:o.UX.quickCommandHelp,commandId:y.ID}]})},75245:(e,t,n)=>{var r=n(84298),i=n(89872),o=n(90725),s=n(11640),a=n(98401),c=n(20913),u=n(4669),d=n(16830),l=n(29102),g=n(41157),h=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){return function(n,r){t(n,r,e)}};let p=class extends r.q{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.ju.None}get activeTextEditorControl(){return(0,a.f6)(this.editorService.getFocusedCodeEditor())}};p=h([f(0,s.$)],p);class m extends d.R6{constructor(){super({id:m.ID,label:c.qq.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:l.u.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(g.eJ).quickAccess.show(p.PREFIX)}}m.ID="editor.action.gotoLine",(0,d.Qr)(m),i.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:p,prefix:p.PREFIX,helpEntries:[{description:c.qq.gotoLineActionLabel,commandId:m.ID}]})},48742:(e,t,n)=>{n(89899),n(22368);var r=n(41795),i=n(89872),o=n(90725),s=n(11640),a=n(98401),c=n(20913),u=n(4669),d=n(16830),l=n(29102),g=n(41157),h=n(30335),f=n(71922),p=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,r){t(n,r,e)}};let v=class extends r.S{constructor(e,t,n){super(t,n),this.editorService=e,this.onDidActiveTextEditorControlChange=u.ju.None}get activeTextEditorControl(){return(0,a.f6)(this.editorService.getFocusedCodeEditor())}};v=p([m(0,s.$),m(1,f.p),m(2,h.Je)],v);class b extends d.R6{constructor(){super({id:b.ID,label:c.aq.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:l.u.hasDocumentSymbolProvider,kbOpts:{kbExpr:l.u.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(g.eJ).quickAccess.show(r.S.PREFIX,{itemActivation:g.jG.NONE})}}b.ID="editor.action.quickOutline",(0,d.Qr)(b),i.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:v,prefix:r.S.PREFIX,helpEntries:[{description:c.aq.quickOutlineActionLabel,prefix:r.S.PREFIX,commandId:b.ID},{description:c.aq.quickOutlineByCategoryActionLabel,prefix:r.S.PREFIX_BY_CATEGORY}]})},31954:(e,t,n)=>{var r=n(89872),i=n(90725),o=n(20913),s=n(54090);r.B.as(i.IP.Quickaccess).registerQuickAccessProvider({ctor:s.p,prefix:"",helpEntries:[{description:o.ld.helpQuickAccessActionLabel}]})},45048:(e,t,n)=>{var r=n(16830),i=n(11640),o=n(51522),s=n(33108),a=n(93983),c=n(72065),u=n(59422),d=n(52365),l=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},g=function(e,t){return function(n,r){t(n,r,e)}};let h=class extends o.J{constructor(e,t,n,r,i,o,s){super(!0,e,t,n,r,i,o,s)}};h=l([g(1,a.i6),g(2,i.$),g(3,u.lT),g(4,c.TG),g(5,d.Uy),g(6,s.Ui)],h),(0,r._K)(o.J.ID,h,4)},80084:(e,t,n)=>{n.d(t,{B:()=>h});var r=n(65321),i=n(66663),o=n(5420),s=n(11640),a=n(93983),c=n(65026),u=n(97781),d=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},l=function(e,t){return function(n,r){t(n,r,e)}},g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};let h=class extends o.i{constructor(e,t){super(t),this.onCodeEditorAdd((()=>this._checkContextKey())),this.onCodeEditorRemove((()=>this._checkContextKey())),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler(((e,t,n)=>g(this,void 0,void 0,(function*(){return t?this.doOpenEditor(t,e):null}))))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const n=t.resource.scheme;if(n===i.lg.http||n===i.lg.https)return(0,r.V3)(t.resource.toString()),e}return null}const n=t.options?t.options.selection:null;if(n)if("number"==typeof n.endLineNumber&&"number"==typeof n.endColumn)e.setSelection(n),e.revealRangeInCenter(n,1);else{const t={lineNumber:n.startLineNumber,column:n.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n}};h=d([l(0,a.i6),l(1,u.XE)],h),(0,c.z)(s.$,h,0)},40892:(e,t,n)=>{n.d(t,{yU:()=>ot});var r=n(93379),i=n.n(r),o=n(7795),s=n.n(o),a=n(90569),c=n.n(a),u=n(3565),d=n.n(u),l=n(19216),g=n.n(l),h=n(44589),f=n.n(h),p=n(70643),m={};m.styleTagTransform=f(),m.setAttributes=d(),m.insert=c().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=g();i()(p.Z,m);p.Z&&p.Z.locals&&p.Z.locals;var v,b=n(5976),_=n(97295),k=n(70666),y=n(27231),w=n(11640),C=n(75623),x=n(64141),S=n(27374),E=n(96518),I=n(84973),D=n(96887),T=n(51381),A=n(276),O=n(72042),L=n(73733),R=n(44175),F=n(70902),P=n(77378),M=n(91557),N=n(1118),j=n(16968),z=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};const W=null===(v=window.trustedTypes)||void 0===v?void 0:v.createPolicy("standaloneColorizer",{createHTML:e=>e});class H{static colorizeElement(e,t,n,r){const i=(r=r||{}).theme||"vs",o=r.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();const s=t.getLanguageIdByMimeType(o)||o;e.setTheme(i);const a=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+i;return this.colorize(t,a||"",s,r).then((e=>{var t;const r=null!==(t=null==W?void 0:W.createHTML(e))&&void 0!==t?t:e;n.innerHTML=r}),(e=>console.error(e)))}static colorize(e,t,n,r){return z(this,void 0,void 0,(function*(){const i=e.languageIdCodec;let o=4;r&&"number"==typeof r.tabSize&&(o=r.tabSize),_.uS(t)&&(t=t.substr(1));const s=_.uq(t);if(!e.isRegisteredLanguageId(n))return K(s,o,i);const a=yield D.RW.getOrCreate(n);return a?function(e,t,n,r){return new Promise(((i,o)=>{const s=()=>{const a=function(e,t,n,r){let i=[],o=n.getInitialState();for(let s=0,a=e.length;s"),o=c.endState}return i.join("")}(e,t,n,r);if(n instanceof j.A){const e=n.getLoadStatus();if(!1===e.loaded)return void e.promise.then(s,o)}i(a)};s()}))}(s,o,a,i):K(s,o,i)}))}static colorizeLine(e,t,n,r,i=4){const o=N.wA.isBasicASCII(e,t),s=N.wA.containsRTL(e,o,n);return(0,M.tF)(new M.IJ(!1,!0,e,!1,o,s,0,r,[],i,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,n=4){const r=e.getLineContent(t);e.tokenization.forceTokenization(t);const i=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),i,n)}}function K(e,t,n){let r=[];const i=new Uint32Array(2);i[0]=0,i[1]=33587200;for(let o=0,s=e.length;o")}return r.join("")}var U=n(56346),V=n(68489),B=n(85044),$=n(30653),q=n(59091),Z=n(44156),J=n(84144),X=n(94565),G=n(33108),Q=n(93983),Y=n(5606),ee=n(72065),te=n(91847),ne=n(59422),re=n(97781),ie=n(31106),oe=n(20913),se=n(84972),ae=n(90535),ce=n(80084),ue=n(68801),de=n(71922),le=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ge=function(e,t){return function(n,r){t(n,r,e)}};let he=0,fe=!1;let pe=class extends V.Gm{constructor(e,t,n,r,i,o,s,a,c,u,d,l){const g=Object.assign({},t);g.ariaLabel=g.ariaLabel||oe.B8.editorViewAccessibleLabel,g.ariaLabel=g.ariaLabel+";"+oe.B8.accessibilityHelpMessage,super(e,g,{},n,r,i,o,a,c,u,d,l),s instanceof q.zC?this._standaloneKeybindingService=s:this._standaloneKeybindingService=null,function(e){if(!e){if(fe)return;fe=!0}U.wW(e||document.body)}(g.ariaContainerElement)}addCommand(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const r="DYNAMIC_"+ ++he,i=Q.Ao.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(r,e,t,i),r}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),b.JT.None;const t=e.id,n=e.label,r=Q.Ao.and(Q.Ao.equals("editorId",this.getId()),Q.Ao.deserialize(e.precondition)),i=e.keybindings,o=Q.Ao.and(r,Q.Ao.deserialize(e.keybindingContext)),s=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,c=(t,...n)=>Promise.resolve(e.run(this,...n)),u=new b.SL,d=this.getId()+":"+t;if(u.add(X.P.registerCommand(d,c)),s){const e={command:{id:d,title:n},when:r,group:s,order:a};u.add(J.BH.appendMenuItem(J.eH.EditorContext,e))}if(Array.isArray(i))for(const e of i)u.add(this._standaloneKeybindingService.addDynamicKeybinding(d,e,c,o));const l=new $.p(d,n,n,r,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,l),u.add((0,b.OF)((()=>{this._actions.delete(t)}))),u}_triggerCommand(e,t){if(this._codeEditorService instanceof ce.B)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};pe=le([ge(2,ee.TG),ge(3,w.$),ge(4,X.H),ge(5,Q.i6),ge(6,te.d),ge(7,re.XE),ge(8,ne.lT),ge(9,ie.F),ge(10,T.c_),ge(11,de.p)],pe);let me=class extends pe{constructor(e,t,n,r,i,o,s,a,c,u,d,l,g,h,f){const p=Object.assign({},t);(0,q.XZ)(u,p,!1);const m=a.registerEditorContainer(e);"string"==typeof p.theme&&a.setTheme(p.theme),void 0!==p.autoDetectHighContrast&&a.setAutoDetectHighContrast(Boolean(p.autoDetectHighContrast));const v=p.model;let b;if(delete p.model,super(e,p,n,r,i,o,s,a,c,d,h,f),this._configurationService=u,this._standaloneThemeService=a,this._register(m),void 0===v){const e=g.getLanguageIdByMimeType(p.language)||p.language||ue.bd;b=be(l,g,p.value||"",e,void 0),this._ownsModel=!0}else b=v,this._ownsModel=!1;if(this._attachModel(b),b){const e={oldModelUrl:null,newModelUrl:b.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){(0,q.XZ)(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};me=le([ge(2,ee.TG),ge(3,w.$),ge(4,X.H),ge(5,Q.i6),ge(6,te.d),ge(7,Z.Z),ge(8,ne.lT),ge(9,G.Ui),ge(10,ie.F),ge(11,L.q),ge(12,O.O),ge(13,T.c_),ge(14,de.p)],me);let ve=class extends B.p{constructor(e,t,n,r,i,o,s,a,c,u,d){const l=Object.assign({},t);(0,q.XZ)(a,l,!0);const g=o.registerEditorContainer(e);"string"==typeof l.theme&&o.setTheme(l.theme),void 0!==l.autoDetectHighContrast&&o.setAutoDetectHighContrast(Boolean(l.autoDetectHighContrast)),super(e,l,{},d,r,n,i,o,s,c,u),this._configurationService=a,this._standaloneThemeService=o,this._register(g)}dispose(){super.dispose()}updateOptions(e){(0,q.XZ)(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,n){return e.createInstance(pe,t,n)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function be(e,t,n,r,i){if(n=n||"",!r){const r=n.indexOf("\n");let o=n;return-1!==r&&(o=n.substring(0,r)),_e(e,n,t.createByFilepathOrFirstLine(i||null,o),i)}return _e(e,n,t.createById(r),i)}function _e(e,t,n,r){return e.createModel(t,n,r)}ve=le([ge(2,ee.TG),ge(3,Q.i6),ge(4,w.$),ge(5,Z.Z),ge(6,ne.lT),ge(7,G.Ui),ge(8,Y.i),ge(9,ae.ek),ge(10,se.p)],ve);var ke=n(98674),ye=n(16830),we=n(60652),Ce=n(45463),xe=n(82334),Se=n(50988),Ee=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function Ie(e,t,n){return q.IO.initialize(n||{}).createInstance(me,e,t)}function De(e){return q.IO.get(w.$).onCodeEditorAdd((t=>{e(t)}))}function Te(e){return q.IO.get(w.$).onDiffEditorAdd((t=>{e(t)}))}function Ae(){return q.IO.get(w.$).listCodeEditors()}function Oe(){return q.IO.get(w.$).listDiffEditors()}function Le(e,t,n){return q.IO.initialize(n||{}).createInstance(ve,e,t)}function Re(e,t){return q.IO.initialize({}).createInstance(C.F,e,t)}function Fe(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return X.P.registerCommand(e.id,e.run)}function Pe(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=Q.Ao.deserialize(e.precondition),n=new b.SL;if(n.add(X.P.registerCommand(e.id,((n,...r)=>ye._l.runEditorCommand(n,r,t,((t,n,r)=>Promise.resolve(e.run(n,...r))))))),e.contextMenuGroupId){const r={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};n.add(J.BH.appendMenuItem(J.eH.EditorContext,r))}if(Array.isArray(e.keybindings)){const r=q.IO.get(te.d);if(r instanceof q.zC){const i=Q.Ao.and(t,Q.Ao.deserialize(e.keybindingContext));n.add(r.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:i})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return n}function Me(e){return Ne([e])}function Ne(e){const t=q.IO.get(te.d);return t instanceof q.zC?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:Q.Ao.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),b.JT.None)}function je(e,t,n){const r=q.IO.get(O.O),i=r.getLanguageIdByMimeType(t)||t;return be(q.IO.get(L.q),r,e,i,n)}function ze(e,t){const n=q.IO.get(O.O),r=n.getLanguageIdByMimeType(t)||t||ue.bd;e.setLanguage(n.createById(r))}function We(e,t,n){if(e){q.IO.get(ke.lT).changeOne(t,e.uri,n)}}function He(e){q.IO.get(ke.lT).changeAll(e,[])}function Ke(e){return q.IO.get(ke.lT).read(e)}function Ue(e){return q.IO.get(ke.lT).onMarkerChanged(e)}function Ve(e){return q.IO.get(L.q).getModel(e)}function Be(){return q.IO.get(L.q).getModels()}function $e(e){return q.IO.get(L.q).onModelAdded(e)}function qe(e){return q.IO.get(L.q).onModelRemoved(e)}function Ze(e){return q.IO.get(L.q).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))}function Je(e){return(0,R.j)(q.IO.get(L.q),q.IO.get(T.c_),e)}function Xe(e,t){const n=q.IO.get(O.O),r=q.IO.get(Z.Z);return r.registerEditorContainer(e),H.colorizeElement(r,n,e,t)}function Ge(e,t,n){const r=q.IO.get(O.O);return q.IO.get(Z.Z).registerEditorContainer(document.body),H.colorize(r,e,t,n)}function Qe(e,t,n=4){return q.IO.get(Z.Z).registerEditorContainer(document.body),H.colorizeModelLine(e,t,n)}function Ye(e,t){D.RW.getOrCreate(t);const n=function(e){const t=D.RW.get(e);return t||{getInitialState:()=>A.TJ,tokenize:(t,n,r)=>(0,A.Ri)(e,r)}}(t),r=(0,_.uq)(e),i=[];let o=n.getInitialState();for(let e=0,t=r.length;e{n.d(t,{DT:()=>le});var r=n(41264),i=n(24314),o=n(96887),s=n(51381),a=n(68801),c=n(72042),u=n(70902),d=n(59091),l=n(84681);function g(e,t){return"boolean"==typeof e?e:t}function h(e,t){return"string"==typeof e?e:t}function f(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const n=function(e){const t={};for(const n of e)t[n]=!0;return t}(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function p(e,t){t=t.replace(/@@/g,"");let n,r=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(r,i){n=!0;let o="";if("string"==typeof e[i])o=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?l.Tr(e,"language definition does not contain attribute '"+i+"', used at: "+t):l.Tr(e,"attribute reference '"+i+"' must be a string, used at: "+t);o=e[i].source}return l.cS(o)?"":"(?:"+o+")"})),r++}while(n&&r<5);t=t.replace(/\x01/g,"@");const i=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,i)}function m(e,t,n,r){let i=-1,o=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(i=parseInt(s[3]),s[2]&&(i+=100)),o=s[4]);let a,c="~",u=o;if(o&&0!==o.length?/^\w*$/.test(u)?c="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(c=s[1],u=s[2])):(c="!=",u=""),"~"!==c&&"!~"!==c||!/^(\w|\|)*$/.test(u))if("@"===c||"!@"===c){const n=e[u];if(!n)throw l.Tr(e,"the @ match target '"+u+"' is not defined, in rule: "+t);if(!function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const n of t)if(!e(n))return!1;return!0}((function(e){return"string"==typeof e}),n))throw l.Tr(e,"the @ match target '"+u+"' must be an array of strings, in rule: "+t);const r=f(n,e.ignoreCase);a=function(e){return"@"===c?r(e):!r(e)}}else if("~"===c||"!~"===c)if(u.indexOf("$")<0){const t=p(e,"^"+u+"$");a=function(e){return"~"===c?t.test(e):!t.test(e)}}else a=function(t,n,r,i){return p(e,"^"+l.kF(e,u,n,r,i)+"$").test(t)};else if(u.indexOf("$")<0){const t=l.ve(e,u);a=function(e){return"=="===c?e===t:e!==t}}else{const t=l.ve(e,u);a=function(n,r,i,o,s){const a=l.kF(e,t,r,i,o);return"=="===c?n===a:n!==a}}else{const t=f(u.split("|"),e.ignoreCase);a=function(e){return"~"===c?t(e):!t(e)}}return-1===i?{name:n,value:r,test:function(e,t,n,r){return a(e,e,t,n,r)}}:{name:n,value:r,test:function(e,t,n,r){const o=function(e,t,n,r){if(r<0)return e;if(r=100){r-=100;const e=n.split(".");if(e.unshift(n),r=0&&(r.tokenSubst=!0),"string"==typeof n.bracket)if("@open"===n.bracket)r.bracket=1;else{if("@close"!==n.bracket)throw l.Tr(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);r.bracket=-1}if(n.next){if("string"!=typeof n.next)throw l.Tr(e,"the next state must be a string value in rule: "+t);{let i=n.next;if(!/^(@pop|@push|@popall)$/.test(i)&&("@"===i[0]&&(i=i.substr(1)),i.indexOf("$")<0&&!l.Qy(e,l.kF(e,i,"",[],""))))throw l.Tr(e,"the next state '"+n.next+"' is not defined in rule: "+t);r.next=i}}return"number"==typeof n.goBack&&(r.goBack=n.goBack),"string"==typeof n.switchTo&&(r.switchTo=n.switchTo),"string"==typeof n.log&&(r.log=n.log),"string"==typeof n.nextEmbedded&&(r.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),r}}if(Array.isArray(n)){const r=[];for(let i=0,o=n.length;i0&&"^"===n[0],this.name=this.name+": "+n,this.regex=p(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")}setAction(e,t){this.action=v(e,this.name,t)}}function _(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");const n={};n.languageId=e,n.includeLF=g(t.includeLF,!1),n.noThrow=!1,n.maxStack=100,n.start="string"==typeof t.start?t.start:null,n.ignoreCase=g(t.ignoreCase,!1),n.unicode=g(t.unicode,!1),n.tokenPostfix=h(t.tokenPostfix,"."+n.languageId),n.defaultToken=h(t.defaultToken,"source"),n.usesEmbedded=!1;const r=t;function i(e,o,s){for(const a of s){let s=a.include;if(s){if("string"!=typeof s)throw l.Tr(n,"an 'include' attribute must be a string at: "+e);if("@"===s[0]&&(s=s.substr(1)),!t.tokenizer[s])throw l.Tr(n,"include target '"+s+"' is not defined at: "+e);i(e+"."+s,o,t.tokenizer[s])}else{const t=new b(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(r,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(r,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw l.Tr(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(r,e)}}else t.setAction(r,a[1]);else{if(!a.regex)throw l.Tr(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=g(a.matchOnlyAtLineStart,!1)),t.setRegex(r,a.regex),t.setAction(r,a.action)}o.push(t)}}}if(r.languageId=e,r.includeLF=n.includeLF,r.ignoreCase=n.ignoreCase,r.unicode=n.unicode,r.noThrow=n.noThrow,r.usesEmbedded=n.usesEmbedded,r.stateNames=t.tokenizer,r.defaultToken=n.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw l.Tr(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(const e in t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){n.start||(n.start=e);const r=t.tokenizer[e];n.tokenizer[e]=new Array,i("tokenizer."+e,n.tokenizer[e],r)}if(n.usesEmbedded=r.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw l.Tr(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(const e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw l.Tr(n,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof t.open||"string"!=typeof t.token||"string"!=typeof t.close)throw l.Tr(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:t.token+n.tokenPostfix,open:l.ve(n,t.open),close:l.ve(n,t.close)})}return n.brackets=o,n.noThrow=!0,n}var k=n(16968),y=n(44156),w=n(98674),C=n(71922),x=n(33108),S=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};function E(e){a.dQ.registerLanguage(e)}function I(){let e=[];return e=e.concat(a.dQ.getLanguages()),e}function D(e){return d.IO.get(c.O).languageIdCodec.encodeLanguageId(e)}function T(e,t){const n=d.IO.get(c.O).onDidRequestRichLanguageFeatures((r=>{r===e&&(n.dispose(),t())}));return n}function A(e,t){const n=d.IO.get(c.O).onDidRequestBasicLanguageFeatures((r=>{r===e&&(n.dispose(),t())}));return n}function O(e,t){if(!d.IO.get(c.O).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return d.IO.get(s.c_).register(e,t,100)}class L{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){if("function"==typeof this._actual.tokenize)return R.adaptTokenize(this._languageId,this._actual,e,n);throw new Error("Not supported!")}tokenizeEncoded(e,t,n){const r=this._actual.tokenizeEncoded(e,n);return new o.DI(r.tokens,r.endState)}}class R{constructor(e,t,n,r){this._languageId=e,this._actual=t,this._languageService=n,this._standaloneThemeService=r}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const n=[];let r=0;for(let i=0,s=e.length;i0&&i[o-1]===c)continue;let u=a.startIndex;0===e?u=0:uS(this,void 0,void 0,(function*(){const n=yield Promise.resolve(t.create());return n?"function"==typeof n.getInitialState?M(e,n):new k.A(d.IO.get(c.O),d.IO.get(y.Z),e,_(e,n),d.IO.get(x.Ui)):null}))));return o.RW.registerFactory(e,n)}function j(e,t){if(!d.IO.get(c.O).isRegisteredLanguageId(e))throw new Error(`Cannot set tokens provider for unknown language ${e}`);return F(t)?N(e,{create:()=>t}):o.RW.register(e,M(e,t))}function z(e,t){return F(t)?N(e,{create:()=>t}):o.RW.register(e,(t=>new k.A(d.IO.get(c.O),d.IO.get(y.Z),e,_(e,t),d.IO.get(x.Ui)))(t))}function W(e,t){return d.IO.get(C.p).referenceProvider.register(e,t)}function H(e,t){return d.IO.get(C.p).renameProvider.register(e,t)}function K(e,t){return d.IO.get(C.p).signatureHelpProvider.register(e,t)}function U(e,t){return d.IO.get(C.p).hoverProvider.register(e,{provideHover:(e,n,r)=>{const o=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,r)).then((e=>{if(e)return!e.range&&o&&(e.range=new i.e(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new i.e(n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})}function V(e,t){return d.IO.get(C.p).documentSymbolProvider.register(e,t)}function B(e,t){return d.IO.get(C.p).documentHighlightProvider.register(e,t)}function $(e,t){return d.IO.get(C.p).linkedEditingRangeProvider.register(e,t)}function q(e,t){return d.IO.get(C.p).definitionProvider.register(e,t)}function Z(e,t){return d.IO.get(C.p).implementationProvider.register(e,t)}function J(e,t){return d.IO.get(C.p).typeDefinitionProvider.register(e,t)}function X(e,t){return d.IO.get(C.p).codeLensProvider.register(e,t)}function G(e,t,n){return d.IO.get(C.p).codeActionProvider.register(e,{providedCodeActionKinds:null==n?void 0:n.providedCodeActionKinds,documentation:null==n?void 0:n.documentation,provideCodeActions:(e,n,r,o)=>{const s=d.IO.get(w.lT).read({resource:e.uri}).filter((e=>i.e.areIntersectingOrTouching(e,n)));return t.provideCodeActions(e,n,{markers:s,only:r.only,trigger:r.trigger},o)},resolveCodeAction:t.resolveCodeAction})}function Q(e,t){return d.IO.get(C.p).documentFormattingEditProvider.register(e,t)}function Y(e,t){return d.IO.get(C.p).documentRangeFormattingEditProvider.register(e,t)}function ee(e,t){return d.IO.get(C.p).onTypeFormattingEditProvider.register(e,t)}function te(e,t){return d.IO.get(C.p).linkProvider.register(e,t)}function ne(e,t){return d.IO.get(C.p).completionProvider.register(e,t)}function re(e,t){return d.IO.get(C.p).colorProvider.register(e,t)}function ie(e,t){return d.IO.get(C.p).foldingRangeProvider.register(e,t)}function oe(e,t){return d.IO.get(C.p).declarationProvider.register(e,t)}function se(e,t){return d.IO.get(C.p).selectionRangeProvider.register(e,t)}function ae(e,t){return d.IO.get(C.p).documentSemanticTokensProvider.register(e,t)}function ce(e,t){return d.IO.get(C.p).documentRangeSemanticTokensProvider.register(e,t)}function ue(e,t){return d.IO.get(C.p).inlineCompletionsProvider.register(e,t)}function de(e,t){return d.IO.get(C.p).inlayHintsProvider.register(e,t)}function le(){return{register:E,getLanguages:I,onLanguage:T,onLanguageEncountered:A,getEncodedLanguageId:D,setLanguageConfiguration:O,setColorMap:P,registerTokensProviderFactory:N,setTokensProvider:j,setMonarchTokensProvider:z,registerReferenceProvider:W,registerRenameProvider:H,registerCompletionItemProvider:ne,registerSignatureHelpProvider:K,registerHoverProvider:U,registerDocumentSymbolProvider:V,registerDocumentHighlightProvider:B,registerLinkedEditingRangeProvider:$,registerDefinitionProvider:q,registerImplementationProvider:Z,registerTypeDefinitionProvider:J,registerCodeLensProvider:X,registerCodeActionProvider:G,registerDocumentFormattingEditProvider:Q,registerDocumentRangeFormattingEditProvider:Y,registerOnTypeFormattingEditProvider:ee,registerLinkProvider:te,registerColorProvider:re,registerFoldingRangeProvider:ie,registerDeclarationProvider:oe,registerSelectionRangeProvider:se,registerDocumentSemanticTokensProvider:ae,registerDocumentRangeSemanticTokensProvider:ce,registerInlineCompletionsProvider:ue,registerInlayHintsProvider:de,DocumentHighlightKind:u.MY,CompletionItemKind:u.cm,CompletionItemTag:u.we,CompletionItemInsertTextRule:u.a7,SymbolKind:u.cR,SymbolTag:u.r4,IndentAction:u.wU,CompletionTriggerKind:u.Ij,SignatureHelpTriggerKind:u.WW,InlayHintKind:u.gl,InlineCompletionTriggerKind:u.bw,CodeActionTriggerType:u.np,FoldingRangeKind:o.AD}}},59091:(e,t,n)=>{n.d(t,{zC:()=>at,IO:()=>kt,XZ:()=>ft});n(51381),n(80084);var r=n(65321),i=n(4669),o=n(34277),s=n(11640),a=n(65026),c=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){return function(n,r){t(n,r,e)}};let d=class{get dimension(){return this._dimension||(this._dimension=r.D6(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw new Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayout=i.ju.None,this.offset={top:0,quickPickTop:0}}};d=c([u(0,s.$)],d);let l=class extends d{get hasContainer(){return!1}get container(){return this._container}constructor(e,t){super(t),this._container=e}};l=c([u(1,s.$)],l),(0,a.z)(o.F,d,1);n(14585),n(88191),n(84146),n(48656);var g=n(97295),h=n(59069),f=n(8313),p=n(5976),m=n(1432),v=n(14603),b=n(70666),_=n(66007),k=n(800),y=n(69386),w=n(50187),C=n(24314),x=n(73733),S=n(88216),E=n(71765),I=n(94565),D=n(33108),T=n(19461),A=n(93983),O=n(28820),L=n(72065),R=n(25244),F=n(91847),P=n(38439),M=n(49989),N=n(14923),j=n(54610),z=n(44349),W=n(59422),H=n(90535),K=n(10829),U=n(40382),V=n(20913),B=n(95935),$=n(43557),q=n(33425),Z=n(5606),J=n(44995),X=n(45606),G=n(36744),Q=n(42351),Y=n(85215),ee=n(13807),te=n(72042),ne=n(86036),re=n(36357),ie=n(51200),oe=n(93379),se=n.n(oe),ae=n(7795),ce=n.n(ae),ue=n(90569),de=n.n(ue),le=n(3565),ge=n.n(le),he=n(19216),fe=n.n(he),pe=n(44589),me=n.n(pe),ve=n(93198),be={};be.styleTagTransform=me(),be.setAttributes=ge(),be.insert=de().bind(null,"head"),be.domAPI=ce(),be.insertStyleElement=fe();se()(ve.Z,be);ve.Z&&ve.Z.locals&&ve.Z.locals;var _e=n(16830),ke=n(97781),ye=n(71050),we=n(91714),Ce=n(88289),xe=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Se=function(e,t){return function(n,r){t(n,r,e)}};let Ee=class extends we.y{constructor(e,t,n,r,i){super(t,n,r,new l(e.getContainerDomNode(),i)),this.host=void 0;const o=De.get(e);if(o){const t=o.widget;this.host={_serviceBrand:void 0,get hasContainer(){return!0},get container(){return t.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus(),offset:{top:0,quickPickTop:0}}}else this.host=void 0}createController(){return super.createController(this.host)}};Ee=xe([Se(1,L.TG),Se(2,A.i6),Se(3,ke.XE),Se(4,s.$)],Ee);let Ie=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const n=t=this.instantiationService.createInstance(Ee,e);this.mapEditorToService.set(e,t),(0,Ce.I)(e.onDidDispose)((()=>{n.dispose(),this.mapEditorToService.delete(e)}))}return t}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},n=ye.T.None){return this.activeService.pick(e,t,n)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};Ie=xe([Se(0,L.TG),Se(1,s.$)],Ie);class De{static get(e){return e.getContribution(De.ID)}constructor(e){this.editor=e,this.widget=new Te(this.editor)}dispose(){this.widget.dispose()}}De.ID="editor.controller.quickInput";class Te{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Te.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Te.ID="editor.contrib.quickInputWidget",(0,_e._K)(De.ID,De,4);var Ae=n(63290),Oe=n(44156),Le=n(58542),Re=n(31106),Fe=n(84144),Pe=n(84363),Me=n(1122),Ne=n(84972),je=n(49536),ze=n(97108),We=n(22058),He=n(60972),Ke=n(32414),Ue=n(98674),Ve=n(24254),Be=n(50988),$e=n(41157),qe=n(52365),Ze=n(23191),Je=n(69149),Xe=n(15840),Ge=n(10637),Qe=n(17301),Ye=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},et=function(e,t){return function(n,r){t(n,r,e)}},tt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};class nt{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new i.Q5}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let rt=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new p.Jz(new nt(t))):Promise.reject(new Error("Model not found"))}};rt=Ye([et(0,x.q)],rt);class it{show(){return it.NULL_PROGRESS_RUNNER}showWhile(e,t){return tt(this,void 0,void 0,(function*(){yield e}))}}it.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class ot{info(e){return this.notify({severity:v.Z.Info,message:e})}warn(e){return this.notify({severity:v.Z.Warning,message:e})}error(e){return this.notify({severity:v.Z.Error,message:e})}notify(e){switch(e.severity){case v.Z.Error:console.error(e.message);break;case v.Z.Warning:console.warn(e.message);break;default:console.log(e.message)}return ot.NO_OP}prompt(e,t,n,r){return ot.NO_OP}status(e,t){return p.JT.None}}ot.NO_OP=new W.EO;let st=class{constructor(e){this._onWillExecuteCommand=new i.Q5,this._onDidExecuteCommand=new i.Q5,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const n=I.P.getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const r=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(r)}catch(e){return Promise.reject(e)}}};st=Ye([et(0,L.TG)],st);let at=class extends R.F{constructor(e,t,n,i,o,s){super(e,t,n,i,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=e=>{const t=new p.SL;t.add(r.nm(e,r.tw.KEY_DOWN,(e=>{const t=new h.y(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(r.nm(e,r.tw.KEY_UP,(e=>{const t=new h.y(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new ct(e,t))},c=e=>{for(let t=0;t{e.getOption(59)||a(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(u)),this._register(s.onCodeEditorRemove((e=>{e.getOption(59)||c(e.getContainerDomNode())}))),s.listCodeEditors().forEach(u);const d=e=>{a(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(d)),this._register(s.onDiffEditorRemove((e=>{c(e.getContainerDomNode())}))),s.listDiffEditors().forEach(d)}addDynamicKeybinding(e,t,n,r){return(0,p.F8)(I.P.registerCommand(e,n),this.addDynamicKeybindings([{keybinding:t,command:e,when:r}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:(0,f.Z9)(e.keybinding,m.OS),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,p.OF)((()=>{for(let e=0;ethis._log(e)))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){const n=[];let r=0;for(const i of e){const e=i.when||void 0,o=i.keybinding;if(o){const s=j.j.resolveKeybinding(o,m.OS);for(const o of s)n[r++]=new N.M(o,i.command,i.commandArgs,e,t,null,!1)}else n[r++]=new N.M(void 0,i.command,i.commandArgs,e,t,null,!1)}return n}resolveKeyboardEvent(e){const t=new f.$M(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new j.j([t],m.OS)}};at=Ye([et(0,A.i6),et(1,I.H),et(2,K.b),et(3,W.lT),et(4,$.VZ),et(5,s.$)],at);class ct extends p.JT{constructor(e,t){super(),this.domNode=e,this._register(t)}}function ut(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof b.o)}class dt{constructor(){this._onDidChangeConfiguration=new i.Q5,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const e=new Ze.l;this._configuration=new T.VK(e.reload(),new T.VV,new T.VV,new T.VV),e.dispose()}getValue(e,t){const n="string"==typeof e?e:void 0,r=ut(e)?e:ut(t)?t:{};return this._configuration.getValue(n,r,void 0)}updateValues(e){const t={data:this._configuration.toData()},n=[];for(const t of e){const[e,r]=t;this.getValue(e)!==r&&(this._configuration.updateValue(e,r),n.push(e))}if(n.length>0){const e=new T.YX({keys:n,overrides:[]},t,this._configuration);e.source=8,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,n,r){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}}let lt=class{constructor(e,t,n){this.configurationService=e,this.modelService=t,this.languageService=n,this._onDidChangeConfiguration=new i.Q5,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})}))}getValue(e,t,n){const r=w.L.isIPosition(t)?t:null,i=r?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0,o=e?this.getLanguage(e,r):void 0;return void 0===i?this.configurationService.getValue({resource:e,overrideIdentifier:o}):this.configurationService.getValue(i,{resource:e,overrideIdentifier:o})}getLanguage(e,t){const n=this.modelService.getModel(e);return n?t?n.getLanguageIdAtPosition(t.lineNumber,t.column):n.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};lt=Ye([et(0,D.Ui),et(1,x.q),et(2,te.O)],lt);let gt=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"string"==typeof n&&"auto"!==n?n:m.IJ||m.dz?"\n":"\r\n"}};gt=Ye([et(0,D.Ui)],gt);class ht{constructor(){const e=b.o.from({scheme:ht.SCHEME,authority:"model",path:"/"});this.workspace={id:U.p$,folders:[new U.md({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===ht.SCHEME?this.workspace.folders[0]:null}}function ft(e,t,n){if(!t)return;if(!(e instanceof dt))return;const r=[];Object.keys(t).forEach((e=>{(0,k.ei)(e)&&r.push([`editor.${e}`,t[e]]),n&&(0,k.Pe)(e)&&r.push([`diffEditor.${e}`,t[e]])})),r.length>0&&e.updateValues(r)}ht.SCHEME="inmemory";let pt=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return tt(this,void 0,void 0,(function*(){const t=Array.isArray(e)?e:_.fo.convert(e),n=new Map;for(const e of t){if(!(e instanceof _.Gl))throw new Error("bad edit - only text edits are supported");const t=this._modelService.getModel(e.resource);if(!t)throw new Error("bad edit - model not found");if("number"==typeof e.versionId&&t.getVersionId()!==e.versionId)throw new Error("bad state - model changed in the meantime");let r=n.get(t);r||(r=[],n.set(t,r)),r.push(y.h.replaceMove(C.e.lift(e.textEdit.range),e.textEdit.text))}let r=0,i=0;for(const[e,t]of n)e.pushStackElement(),e.pushEditOperations([],t,(()=>[])),e.pushStackElement(),i+=1,r+=t.length;return{ariaSummary:g.WU(V.iN.bulkEditServiceSummary,r,i),isApplied:r>0}}))}};pt=Ye([et(0,x.q)],pt);let mt=class extends J.g{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,n){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,n)}};mt=Ye([et(0,o.F),et(1,s.$)],mt);class vt extends X.T{constructor(){super()}}class bt extends Xe.${constructor(){super(new $.kw)}}let _t=class extends G.L{constructor(e,t,n,r,i,o){super(e,t,n,r,i,o),this.configure({blockMouse:!1})}};_t=Ye([et(0,K.b),et(1,W.lT),et(2,Z.u),et(3,F.d),et(4,Fe.co),et(5,A.i6)],_t);var kt;(0,a.z)(D.Ui,dt,0),(0,a.z)(E.V,lt,0),(0,a.z)(E.y,gt,0),(0,a.z)(U.ec,ht,0),(0,a.z)(z.e,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,B.EZ)(e)}},0),(0,a.z)(K.b,class{publicLog2(){}},0),(0,a.z)(O.S,class{confirm(e){return tt(this,void 0,void 0,(function*(){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}))}doConfirm(e,t){let n=e;return t&&(n=n+"\n\n"+t),window.confirm(n)}prompt(e){var t,n;return tt(this,void 0,void 0,(function*(){let r;if(this.doConfirm(e.message,e.detail)){const i=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!=typeof e.cancelButton&&"boolean"!=typeof e.cancelButton&&i.push(e.cancelButton),r=yield null===(n=i[0])||void 0===n?void 0:n.run({checkboxChecked:!1})}return{result:r}}))}error(e,t){return tt(this,void 0,void 0,(function*(){yield this.prompt({type:v.Z.Error,message:e,detail:t})}))}},0),(0,a.z)(W.lT,ot,0),(0,a.z)(Ue.lT,Ve.u,0),(0,a.z)(te.O,vt,0),(0,a.z)(Oe.Z,Ae.nI,0),(0,a.z)($.VZ,bt,0),(0,a.z)(x.q,ie.b,0),(0,a.z)(re.i,ne.x,0),(0,a.z)(A.i6,je.aY,0),(0,a.z)(H.R9,class{withProgress(e,t,n){return t({report:()=>{}})}},0),(0,a.z)(H.ek,it,0),(0,a.z)(qe.Uy,qe.vm,0),(0,a.z)(Y.p,ee.eu,0),(0,a.z)(_.vu,pt,0),(0,a.z)(q.Y,class{constructor(){this._neverEmitter=new i.Q5,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,a.z)(S.S,rt,0),(0,a.z)(Re.F,Le.A,0),(0,a.z)(Ke.Lw,Ke.XN,0),(0,a.z)(I.H,st,0),(0,a.z)(F.d,at,0),(0,a.z)($e.eJ,Ie,0),(0,a.z)(Z.u,mt,0),(0,a.z)(Be.v4,Q.B,0),(0,a.z)(Ne.p,Me.r,0),(0,a.z)(Z.i,_t,0),(0,a.z)(Fe.co,Pe.h,0),(0,a.z)(Je.e7,class{playAudioCue(e,t){return tt(this,void 0,void 0,(function*(){}))}},0),function(e){const t=new He.y;for(const[e,n]of(0,a.d)())t.set(e,n);const n=new We.F(t,!0);t.set(L.TG,n),e.get=function(e){const r=t.get(e);if(!r)throw new Error("Missing service "+e);return r instanceof ze.M?n.invokeFunction((t=>t.get(e))):r};let r=!1;e.initialize=function(e){if(r)return n;r=!0;for(const[e,n]of(0,a.d)())t.get(e)||t.set(e,n);for(const n in e)if(e.hasOwnProperty(n)){const r=(0,L.yh)(n);t.get(r)instanceof ze.M&&t.set(r,e[n])}const i=(0,Ge.n)();for(const e of i)try{n.createInstance(e)}catch(e){(0,Qe.dL)(e)}return n}}(kt||(kt={}))},63290:(e,t,n)=>{n.d(t,{kR:()=>C,MU:()=>x,nI:()=>O,rW:()=>w,TG:()=>y});var r=n(65321),i=n(16268),o=n(41264),s=n(4669),a=n(96887),c=n(45797),u=n(16550),d=n(8625),l=n(73910);const g={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[l.cvW]:"#FFFFFE",[l.NOs]:"#000000",[l.ES4]:"#E5EBF1",[d.tR]:"#D3D3D3",[d.Ym]:"#939393",[l.Rzx]:"#ADD6FF4D"}},h={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[l.cvW]:"#1E1E1E",[l.NOs]:"#D4D4D4",[l.ES4]:"#3A3D41",[d.tR]:"#404040",[d.Ym]:"#707070",[l.Rzx]:"#ADD6FF26"}},f={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[l.cvW]:"#000000",[l.NOs]:"#FFFFFF",[d.tR]:"#FFFFFF",[d.Ym]:"#FFFFFF"}},p={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[l.cvW]:"#FFFFFF",[l.NOs]:"#292929",[d.tR]:"#292929",[d.Ym]:"#292929"}};var m=n(89872),v=n(97781),b=n(5976),_=n(92321),k=n(30929);const y="vs",w="vs-dark",C="hc-black",x="hc-light",S=m.B.as(l.IPX.ColorContribution),E=m.B.as(v.IP.ThemingContribution);class I{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const n=t.base;e.length>0?(D(e)?this.id=e:this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,o.Il.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=T(this.themeData.base);for(const n in t.colors)e.has(n)||e.set(n,o.Il.fromHex(t.colors[n]))}this.colors=e}return this.colors}getColor(e,t){const n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=S.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case y:return _.eL.LIGHT;case C:return _.eL.HIGH_CONTRAST_DARK;case x:return _.eL.HIGH_CONTRAST_LIGHT;default:return _.eL.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const n=T(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}const n=this.themeData.colors["editor.foreground"],r=this.themeData.colors["editor.background"];if(n||r){const t={token:""};n&&(t.foreground=n),r&&(t.background=r),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=u.si.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,n){const r=this.tokenTheme._match([e].concat(t).join(".")).metadata,i=c.N.getForeground(r),o=c.N.getFontStyle(r);return{foreground:i,italic:Boolean(1&o),bold:Boolean(2&o),underline:Boolean(4&o),strikethrough:Boolean(8&o)}}}function D(e){return e===y||e===w||e===C||e===x}function T(e){switch(e){case y:return g;case w:return h;case C:return f;case x:return p}}function A(e){const t=T(e);return new I(e,t)}class O extends b.JT{constructor(){super(),this._onColorThemeChange=this._register(new s.Q5),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new s.Q5),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new k.p,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(y,A(y)),this._knownThemes.set(w,A(w)),this._knownThemes.set(C,A(C)),this._knownThemes.set(x,A(x));const e=(0,k.J)(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(y),this._onOSSchemeChanged(),e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()})),(0,i.addMatchMediaChangeListener)("(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return r.OO(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=r.dS(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),b.JT.None}_registerShadowDomContainer(e){const t=r.dS(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(y),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=window.matchMedia("(forced-colors: active)").matches;if(e!==(0,_.c3)(this._theme.type)){let t;t=(0,_._T)(this._theme.type)?e?C:w:e?x:y,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},n={addRule:n=>{t[n]||(e.push(n),t[n]=!0)}};E.getThemingParticipants().forEach((e=>e(this._theme,n,this._environment)));const r=[];for(const e of S.getColors()){const t=this._theme.getColor(e.id,!0);t&&r.push(`${(0,l.QO2)(e.id)}: ${t.toString()};`)}n.addRule(`.monaco-editor { ${r.join("\n")} }`);const i=this._colorMapOverride||this._theme.tokenTheme.getColorMap();n.addRule((0,u.yr)(i)),this._themeCSS=e.join("\n"),this._updateCSS(),a.RW.setColorMap(i),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},15662:(e,t,n)=>{var r=n(16830),i=n(44156),o=n(20913),s=n(92321),a=n(63290);class c extends r.R6{constructor(){super({id:"editor.action.toggleHighContrast",label:o.xi.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const n=e.get(i.Z),r=n.getColorTheme();(0,s.c3)(r.type)?(n.setTheme(this._originalThemeName||((0,s._T)(r.type)?a.rW:a.TG)),this._originalThemeName=null):(n.setTheme((0,s._T)(r.type)?a.kR:a.MU),this._originalThemeName=r.themeName)}}(0,r.Qr)(c)},84681:(e,t,n)=>{function r(e){return!function(e){return Array.isArray(e)}(e)}function i(e){return"string"==typeof e}function o(e){return!i(e)}function s(e){return!e}function a(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function c(e){return e.replace(/[&<>'"_]/g,"-")}function u(e,t){console.log(`${e.languageId}: ${t}`)}function d(e,t){return new Error(`${e.languageId}: ${t}`)}function l(e,t,n,r,i){let o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,c,u,d,l,g,h,f,p){return s(u)?s(d)?!s(l)&&l0;){const t=e.tokenizer[n];if(t)return t;const r=n.lastIndexOf(".");n=r<0?null:n.substr(0,r)}return null}function h(e,t){let n=t;for(;n&&n.length>0;){if(e.stateNames[n])return!0;const t=n.lastIndexOf(".");n=t<0?null:n.substr(0,t)}return!1}n.d(t,{DG:()=>g,HD:()=>i,Nw:()=>c,Qy:()=>h,Tr:()=>d,cM:()=>u,cS:()=>s,j:()=>o,kF:()=>l,v5:()=>r,ve:()=>a})},16968:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(96887),i=n(276),o=n(84681),s=n(33108),a=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=function(e,t){return function(n,r){t(n,r,e)}};class u{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new d(e,t);let n=d.getStackElementId(e);n.length>0&&(n+="|"),n+=t;let r=this._entries[n];return r||(r=new d(e,t),this._entries[n]=r,r)}}u._INSTANCE=new u(5);class d{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return d._equals(this,e)}push(e){return u.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return u.create(this.parent,e)}}class l{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new l(this.languageId,this.state)}}class g{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new h(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new h(e,t);const n=d.getStackElementId(e);let r=this._entries[n];return r||(r=new h(e,null),this._entries[n]=r,r)}}g._INSTANCE=new g(5);class h{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:g.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof h&&(!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData)))}}class f{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new r.WU(e,t,this._languageId)))}nestedLanguageTokenize(e,t,n,i){const o=n.languageId,s=n.state,a=r.RW.get(o);if(!a)return this.enterLanguage(o),this.emit(i,""),s;const c=a.tokenize(e,t,s);if(0!==i)for(const e of c.tokens)this._tokens.push(new r.WU(e.offset+i,e.type,e.language));else this._tokens=this._tokens.concat(c.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,c.endState}finalize(e){return new r.hG(this._tokens,e)}}class p{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const n=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){const r=null!==e?e.length:0,i=t.length,o=null!==n?n.length:0;if(0===r&&0===i&&0===o)return new Uint32Array(0);if(0===r&&0===i)return n;if(0===i&&0===o)return e;const s=new Uint32Array(r+i+o);null!==e&&s.set(e);for(let e=0;e{if(s)return;let t=!1;for(let n=0,r=e.changedLanguages.length;n{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const t=[];for(const n in this._embeddedLanguages){const i=r.RW.get(n);if(i){if(i instanceof e){const e=i.getLoadStatus();!1===e.loaded&&t.push(e.promise)}}else r.RW.isResolved(n)||t.push(r.RW.getOrCreate(n))}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then((e=>{}))}}getInitialState(){const e=u.create(null,this._lexer.start);return g.create(e,null)}tokenize(e,t,n){if(e.length>=this._maxTokenizationLineLength)return(0,i.Ri)(this._languageId,n);const r=new f,o=this._tokenize(e,t,n,r);return r.finalize(o)}tokenizeEncoded(e,t,n){if(e.length>=this._maxTokenizationLineLength)return(0,i.Dy)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);const r=new p(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,n,r);return r.finalize(o)}_tokenize(e,t,n,r){return n.embeddedLanguageData?this._nestedTokenize(e,t,n,0,r):this._myTokenize(e,t,n,0,r)}_findLeavingNestedLanguageOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=o.DG(this._lexer,t.stack.state),!n))throw o.Tr(this._lexer,"tokenizer state is not defined: "+t.stack.state);let r=-1,i=!1;for(const t of n){if(!o.j(t.action)||"@pop"!==t.action.nextEmbedded)continue;i=!0;let n=t.regex;const s=t.regex.source;if("^(?:"===s.substr(0,4)&&")"===s.substr(s.length-1,1)){const e=(n.ignoreCase?"i":"")+(n.unicode?"u":"");n=new RegExp(s.substr(4,s.length-5),e)}const a=e.search(n);-1===a||0!==a&&t.matchOnlyAtLineStart||(-1===r||a0&&i.nestedLanguageTokenize(s,!1,n.embeddedLanguageData,r);const a=e.substring(o);return this._myTokenize(a,t,n,r+o,i)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,n,r,i){i.enterLanguage(this._languageId);const s=e.length,a=t&&this._lexer.includeLF?e+"\n":e,c=a.length;let u=n.embeddedLanguageData,d=n.stack,l=0,h=null,f=!0;for(;f||l=c)break;f=!1;let e=this._lexer.tokenizer[b];if(!e&&(e=o.DG(this._lexer,b),!e))throw o.Tr(this._lexer,"tokenizer state is not defined: "+b);const t=a.substr(l);for(const n of e)if((0===l||!n.matchOnlyAtLineStart)&&(_=t.match(n.regex),_)){k=_[0],y=n.action;break}}if(_||(_=[""],k=""),y||(l=this._lexer.maxStack)throw o.Tr(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(b)}else if("@pop"===y.next){if(d.depth<=1)throw o.Tr(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));d=d.pop()}else if("@popall"===y.next)d=d.popall();else{let e=o.kF(this._lexer,y.next,k,_,b);if("@"===e[0]&&(e=e.substr(1)),!o.DG(this._lexer,e))throw o.Tr(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(w));d=d.push(e)}}y.log&&"string"==typeof y.log&&o.cM(this._lexer,this._lexer.languageId+": "+o.kF(this._lexer,y.log,k,_,b))}if(null===x)throw o.Tr(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));const S=n=>{const o=this._languageService.getLanguageIdByLanguageName(n)||this._languageService.getLanguageIdByMimeType(n)||n,s=this._getNestedEmbeddedLanguageData(o);if(l0)throw o.Tr(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(_.length!==x.length+1)throw o.Tr(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let e=0;for(let t=1;t<_.length;t++)e+=_[t].length;if(e!==k.length)throw o.Tr(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));h={rule:w,matches:_,groups:[]};for(let e=0;e{n.d(t,{Z:()=>r});const r=(0,n(72065).yh)("themeService")},45288:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>ht,DefinitionAdapter:()=>xt,DiagnosticsAdapter:()=>lt,DocumentColorAdapter:()=>Ft,DocumentFormattingEditProvider:()=>Ot,DocumentHighlightAdapter:()=>wt,DocumentLinkAdapter:()=>At,DocumentRangeFormattingEditProvider:()=>Lt,DocumentSymbolAdapter:()=>Dt,FoldingRangeAdapter:()=>Pt,HoverAdapter:()=>_t,ReferenceAdapter:()=>Et,RenameAdapter:()=>It,SelectionRangeAdapter:()=>Mt,WorkerManager:()=>ae,fromPosition:()=>ft,fromRange:()=>pt,setupMode:()=>Nt,toRange:()=>mt,toTextEdit:()=>bt});var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,h,f,p,m,v,b,_,k,y,w,C,x,S,E,I,D,T,A,O,L,R,F,P,M,N,j,z,W,H,K,U,V,B,$,q,Z,J,X,G,Q,Y,ee,te,ne,re,ie,oe,se,ae=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=g||(g={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return at.objectLiteral(t)&&at.uinteger(t.line)&&at.uinteger(t.character)},(_=b||(b={})).create=function(e,t,n,r){if(at.uinteger(e)&&at.uinteger(t)&&at.uinteger(n)&&at.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},_.is=function(e){var t=e;return at.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(y=k||(k={})).create=function(e,t){return{uri:e,range:t}},y.is=function(e){var t=e;return at.defined(t)&&b.is(t.range)&&(at.string(t.uri)||at.undefined(t.uri))},(C=w||(w={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},C.is=function(e){var t=e;return at.defined(t)&&b.is(t.targetRange)&&at.string(t.targetUri)&&(b.is(t.targetSelectionRange)||at.undefined(t.targetSelectionRange))&&(b.is(t.originSelectionRange)||at.undefined(t.originSelectionRange))},(S=x||(x={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},S.is=function(e){var t=e;return at.numberRange(t.red,0,1)&&at.numberRange(t.green,0,1)&&at.numberRange(t.blue,0,1)&&at.numberRange(t.alpha,0,1)},(I=E||(E={})).create=function(e,t){return{range:e,color:t}},I.is=function(e){var t=e;return b.is(t.range)&&x.is(t.color)},(T=D||(D={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){var t=e;return at.string(t.label)&&(at.undefined(t.textEdit)||B.is(t))&&(at.undefined(t.additionalTextEdits)||at.typedArray(t.additionalTextEdits,B.is))},(O=A||(A={})).Comment="comment",O.Imports="imports",O.Region="region",(R=L||(L={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return at.defined(n)&&(o.startCharacter=n),at.defined(r)&&(o.endCharacter=r),at.defined(i)&&(o.kind=i),o},R.is=function(e){var t=e;return at.uinteger(t.startLine)&&at.uinteger(t.startLine)&&(at.undefined(t.startCharacter)||at.uinteger(t.startCharacter))&&(at.undefined(t.endCharacter)||at.uinteger(t.endCharacter))&&(at.undefined(t.kind)||at.string(t.kind))},(P=F||(F={})).create=function(e,t){return{location:e,message:t}},P.is=function(e){var t=e;return at.defined(t)&&k.is(t.location)&&at.string(t.message)},(N=M||(M={})).Error=1,N.Warning=2,N.Information=3,N.Hint=4,(z=j||(j={})).Unnecessary=1,z.Deprecated=2,(W||(W={})).is=function(e){var t=e;return null!=t&&at.string(t.href)},(K=H||(H={})).create=function(e,t,n,r,i,o){var s={range:e,message:t};return at.defined(n)&&(s.severity=n),at.defined(r)&&(s.code=r),at.defined(i)&&(s.source=i),at.defined(o)&&(s.relatedInformation=o),s},K.is=function(e){var t,n=e;return at.defined(n)&&b.is(n.range)&&at.string(n.message)&&(at.number(n.severity)||at.undefined(n.severity))&&(at.integer(n.code)||at.string(n.code)||at.undefined(n.code))&&(at.undefined(n.codeDescription)||at.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(at.string(n.source)||at.undefined(n.source))&&(at.undefined(n.relatedInformation)||at.typedArray(n.relatedInformation,F.is))},(V=U||(U={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},V.is=function(e){var t=e;return at.defined(t)&&at.string(t.title)&&at.string(t.command)},($=B||(B={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){var t=e;return at.objectLiteral(t)&&at.string(t.newText)&&b.is(t.range)},(Z=q||(q={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},Z.is=function(e){var t=e;return void 0!==t&&at.objectLiteral(t)&&at.string(t.label)&&(at.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(at.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){return"string"==typeof e},(G=X||(X={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},G.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},G.del=function(e,t){return{range:e,newText:"",annotationId:t}},G.is=function(e){var t=e;return B.is(t)&&(q.is(t.annotationId)||J.is(t.annotationId))},(Y=Q||(Q={})).create=function(e,t){return{textDocument:e,edits:t}},Y.is=function(e){var t=e;return at.defined(t)&&ge.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&at.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||at.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||at.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&at.string(t.oldUri)&&at.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||at.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||at.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&at.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||at.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||at.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se||(se={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return at.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Q.is(e)})))};var ce,ue,de,le,ge,he,fe,pe,me,ve,be,_e,ke,ye,we,Ce,xe,Se,Ee,Ie,De,Te,Ae,Oe,Le,Re,Fe,Pe,Me,Ne,je,ze,We,He,Ke,Ue,Ve,Be,$e,qe,Ze,Je,Xe,Ge,Qe,Ye,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=B.insert(e,t):J.is(n)?(i=n,r=X.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=B.replace(e,t):J.is(n)?(i=n,r=X.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=B.del(e):J.is(t)?(r=t,n=X.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=X.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),st=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(J.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new st(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Q.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ge.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new st,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(q.is(n)||J.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(s=J.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ue=ce||(ce={})).create=function(e){return{uri:e}},ue.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)},(le=de||(de={})).create=function(e,t){return{uri:e,version:t}},le.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&at.integer(t.version)},(he=ge||(ge={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&(null===t.version||at.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&at.string(t.languageId)&&at.integer(t.version)&&at.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(be||(be={})).is=function(e){var t=e;return at.objectLiteral(e)&&me.is(t.kind)&&at.string(t.value)},(ke=_e||(_e={})).Text=1,ke.Method=2,ke.Function=3,ke.Constructor=4,ke.Field=5,ke.Variable=6,ke.Class=7,ke.Interface=8,ke.Module=9,ke.Property=10,ke.Unit=11,ke.Value=12,ke.Enum=13,ke.Keyword=14,ke.Snippet=15,ke.Color=16,ke.File=17,ke.Reference=18,ke.Folder=19,ke.EnumMember=20,ke.Constant=21,ke.Struct=22,ke.Event=23,ke.Operator=24,ke.TypeParameter=25,(we=ye||(ye={})).PlainText=1,we.Snippet=2,(Ce||(Ce={})).Deprecated=1,(Se=xe||(xe={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Se.is=function(e){var t=e;return t&&at.string(t.newText)&&b.is(t.insert)&&b.is(t.replace)},(Ie=Ee||(Ee={})).asIs=1,Ie.adjustIndentation=2,(De||(De={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Oe=Ae||(Ae={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Oe.is=function(e){var t=e;return at.string(t)||at.objectLiteral(t)&&at.string(t.language)&&at.string(t.value)},(Le||(Le={})).is=function(e){var t=e;return!!t&&at.objectLiteral(t)&&(be.is(t.contents)||Ae.is(t.contents)||at.typedArray(t.contents,Ae.is))&&(void 0===e.range||b.is(e.range))},(Re||(Re={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Fe||(Fe={})).create=function(e,t){for(var n=[],r=2;r=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(u,r.length),o=c}return r}}(it||(it={}));var at,ct,ut,dt=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:gt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function gt(e){switch(e){case M.Error:return l.MarkerSeverity.Error;case M.Warning:return l.MarkerSeverity.Warning;case M.Information:return l.MarkerSeverity.Info;case M.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var ht=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),ft(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:vt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:mt(e.textEdit.insert),replace:mt(e.textEdit.replace)}:t.range=mt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(bt)),e.insertTextFormat===ye.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function ft(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function pt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function mt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function vt(e){const t=l.languages.CompletionItemKind;switch(e){case _e.Text:return t.Text;case _e.Method:return t.Method;case _e.Function:return t.Function;case _e.Constructor:return t.Constructor;case _e.Field:return t.Field;case _e.Variable:return t.Variable;case _e.Class:return t.Class;case _e.Interface:return t.Interface;case _e.Module:return t.Module;case _e.Property:return t.Property;case _e.Unit:return t.Unit;case _e.Value:return t.Value;case _e.Enum:return t.Enum;case _e.Keyword:return t.Keyword;case _e.Snippet:return t.Snippet;case _e.Color:return t.Color;case _e.File:return t.File;case _e.Reference:return t.Reference}return t.Property}function bt(e){if(e)return{range:mt(e.range),text:e.newText}}var _t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),ft(t)))).then((e=>{if(e)return{range:mt(e.range),contents:yt(e.contents)}}))}};function kt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function yt(e){if(e)return Array.isArray(e)?e.map(kt):[kt(e)]}var wt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),ft(t)))).then((e=>{if(e)return e.map((e=>({range:mt(e.range),kind:Ct(e.kind)})))}))}};function Ct(e){switch(e){case Pe.Read:return l.languages.DocumentHighlightKind.Read;case Pe.Write:return l.languages.DocumentHighlightKind.Write;case Pe.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var xt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),ft(t)))).then((e=>{if(e)return[St(e)]}))}};function St(e){return{uri:l.Uri.parse(e.uri),range:mt(e.range)}}var Et=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),ft(t)))).then((e=>{if(e)return e.map(St)}))}},It=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),ft(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:mt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var Dt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:Tt(e.kind),range:mt(e.location.range),selectionRange:mt(e.location.range),tags:[]})))}))}};function Tt(e){let t=l.languages.SymbolKind;switch(e){case je.File:return t.Array;case je.Module:return t.Module;case je.Namespace:return t.Namespace;case je.Package:return t.Package;case je.Class:return t.Class;case je.Method:return t.Method;case je.Property:return t.Property;case je.Field:return t.Field;case je.Constructor:return t.Constructor;case je.Enum:return t.Enum;case je.Interface:return t.Interface;case je.Function:return t.Function;case je.Variable:return t.Variable;case je.Constant:return t.Constant;case je.String:return t.String;case je.Number:return t.Number;case je.Boolean:return t.Boolean;case je.Array:return t.Array}return t.Function}var At=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:mt(e.range),url:e.target})))}}))}},Ot=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Rt(t)).then((e=>{if(e&&0!==e.length)return e.map(bt)}))))}},Lt=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),pt(t),Rt(n)).then((e=>{if(e&&0!==e.length)return e.map(bt)}))))}};function Rt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Ft=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:mt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,pt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(bt)),t}))}))}},Pt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case A.Comment:return l.languages.FoldingRangeKind.Comment;case A.Imports:return l.languages.FoldingRangeKind.Imports;case A.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var Mt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(ft)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:mt(e.range)}),e=e.parent;return t}))}))}};function Nt(e){const t=[],n=[],r=new ae(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;zt(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new ht(i,["/","-",":"]))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new _t(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new wt(i))),r.definitions&&n.push(l.languages.registerDefinitionProvider(t,new xt(i))),r.references&&n.push(l.languages.registerReferenceProvider(t,new Et(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new Dt(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new It(i))),r.colors&&n.push(l.languages.registerColorProvider(t,new Ft(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new Pt(i))),r.diagnostics&&n.push(new lt(t,i,e.onDidChange)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new Mt(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new Ot(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new Lt(i)))}(),t.push(jt(n)),jt(t)}function jt(e){return{dispose:()=>zt(e)}}function zt(e){for(;e.length;)e.pop().dispose()}},40605:(e,t,n)=>{var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g=class{_onDidChange=new l.Emitter;_options;_modeConfiguration;_languageId;constructor(e,t,n){this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},h={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},f={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},p=new g("css",h,f),m=new g("scss",h,f),v=new g("less",h,f);function b(){return Promise.all([n.e(885),n.e(221),n.e(169),n.e(864),n.e(458)]).then(n.bind(n,45288))}l.languages.css={cssDefaults:p,lessDefaults:v,scssDefaults:m},l.languages.onLanguage("less",(()=>{b().then((e=>e.setupMode(v)))})),l.languages.onLanguage("scss",(()=>{b().then((e=>e.setupMode(m)))})),l.languages.onLanguage("css",(()=>{b().then((e=>e.setupMode(p)))}))},15377:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>ht,DefinitionAdapter:()=>xt,DiagnosticsAdapter:()=>lt,DocumentColorAdapter:()=>Ft,DocumentFormattingEditProvider:()=>Ot,DocumentHighlightAdapter:()=>wt,DocumentLinkAdapter:()=>At,DocumentRangeFormattingEditProvider:()=>Lt,DocumentSymbolAdapter:()=>Dt,FoldingRangeAdapter:()=>Pt,HoverAdapter:()=>_t,ReferenceAdapter:()=>Et,RenameAdapter:()=>It,SelectionRangeAdapter:()=>Mt,WorkerManager:()=>ae,fromPosition:()=>ft,fromRange:()=>pt,setupMode:()=>zt,setupMode1:()=>jt,toRange:()=>mt,toTextEdit:()=>bt});var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,h,f,p,m,v,b,_,k,y,w,C,x,S,E,I,D,T,A,O,L,R,F,P,M,N,j,z,W,H,K,U,V,B,$,q,Z,J,X,G,Q,Y,ee,te,ne,re,ie,oe,se,ae=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=g||(g={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return at.objectLiteral(t)&&at.uinteger(t.line)&&at.uinteger(t.character)},(_=b||(b={})).create=function(e,t,n,r){if(at.uinteger(e)&&at.uinteger(t)&&at.uinteger(n)&&at.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},_.is=function(e){var t=e;return at.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(y=k||(k={})).create=function(e,t){return{uri:e,range:t}},y.is=function(e){var t=e;return at.defined(t)&&b.is(t.range)&&(at.string(t.uri)||at.undefined(t.uri))},(C=w||(w={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},C.is=function(e){var t=e;return at.defined(t)&&b.is(t.targetRange)&&at.string(t.targetUri)&&(b.is(t.targetSelectionRange)||at.undefined(t.targetSelectionRange))&&(b.is(t.originSelectionRange)||at.undefined(t.originSelectionRange))},(S=x||(x={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},S.is=function(e){var t=e;return at.numberRange(t.red,0,1)&&at.numberRange(t.green,0,1)&&at.numberRange(t.blue,0,1)&&at.numberRange(t.alpha,0,1)},(I=E||(E={})).create=function(e,t){return{range:e,color:t}},I.is=function(e){var t=e;return b.is(t.range)&&x.is(t.color)},(T=D||(D={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){var t=e;return at.string(t.label)&&(at.undefined(t.textEdit)||B.is(t))&&(at.undefined(t.additionalTextEdits)||at.typedArray(t.additionalTextEdits,B.is))},(O=A||(A={})).Comment="comment",O.Imports="imports",O.Region="region",(R=L||(L={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return at.defined(n)&&(o.startCharacter=n),at.defined(r)&&(o.endCharacter=r),at.defined(i)&&(o.kind=i),o},R.is=function(e){var t=e;return at.uinteger(t.startLine)&&at.uinteger(t.startLine)&&(at.undefined(t.startCharacter)||at.uinteger(t.startCharacter))&&(at.undefined(t.endCharacter)||at.uinteger(t.endCharacter))&&(at.undefined(t.kind)||at.string(t.kind))},(P=F||(F={})).create=function(e,t){return{location:e,message:t}},P.is=function(e){var t=e;return at.defined(t)&&k.is(t.location)&&at.string(t.message)},(N=M||(M={})).Error=1,N.Warning=2,N.Information=3,N.Hint=4,(z=j||(j={})).Unnecessary=1,z.Deprecated=2,(W||(W={})).is=function(e){var t=e;return null!=t&&at.string(t.href)},(K=H||(H={})).create=function(e,t,n,r,i,o){var s={range:e,message:t};return at.defined(n)&&(s.severity=n),at.defined(r)&&(s.code=r),at.defined(i)&&(s.source=i),at.defined(o)&&(s.relatedInformation=o),s},K.is=function(e){var t,n=e;return at.defined(n)&&b.is(n.range)&&at.string(n.message)&&(at.number(n.severity)||at.undefined(n.severity))&&(at.integer(n.code)||at.string(n.code)||at.undefined(n.code))&&(at.undefined(n.codeDescription)||at.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(at.string(n.source)||at.undefined(n.source))&&(at.undefined(n.relatedInformation)||at.typedArray(n.relatedInformation,F.is))},(V=U||(U={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},V.is=function(e){var t=e;return at.defined(t)&&at.string(t.title)&&at.string(t.command)},($=B||(B={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){var t=e;return at.objectLiteral(t)&&at.string(t.newText)&&b.is(t.range)},(Z=q||(q={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},Z.is=function(e){var t=e;return void 0!==t&&at.objectLiteral(t)&&at.string(t.label)&&(at.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(at.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){return"string"==typeof e},(G=X||(X={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},G.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},G.del=function(e,t){return{range:e,newText:"",annotationId:t}},G.is=function(e){var t=e;return B.is(t)&&(q.is(t.annotationId)||J.is(t.annotationId))},(Y=Q||(Q={})).create=function(e,t){return{textDocument:e,edits:t}},Y.is=function(e){var t=e;return at.defined(t)&&ge.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&at.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||at.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||at.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&at.string(t.oldUri)&&at.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||at.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||at.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&at.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||at.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||at.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se||(se={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return at.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Q.is(e)})))};var ce,ue,de,le,ge,he,fe,pe,me,ve,be,_e,ke,ye,we,Ce,xe,Se,Ee,Ie,De,Te,Ae,Oe,Le,Re,Fe,Pe,Me,Ne,je,ze,We,He,Ke,Ue,Ve,Be,$e,qe,Ze,Je,Xe,Ge,Qe,Ye,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=B.insert(e,t):J.is(n)?(i=n,r=X.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=B.replace(e,t):J.is(n)?(i=n,r=X.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=B.del(e):J.is(t)?(r=t,n=X.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=X.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),st=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(J.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new st(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Q.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ge.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new st,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(q.is(n)||J.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(s=J.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ue=ce||(ce={})).create=function(e){return{uri:e}},ue.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)},(le=de||(de={})).create=function(e,t){return{uri:e,version:t}},le.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&at.integer(t.version)},(he=ge||(ge={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&(null===t.version||at.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&at.string(t.languageId)&&at.integer(t.version)&&at.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(be||(be={})).is=function(e){var t=e;return at.objectLiteral(e)&&me.is(t.kind)&&at.string(t.value)},(ke=_e||(_e={})).Text=1,ke.Method=2,ke.Function=3,ke.Constructor=4,ke.Field=5,ke.Variable=6,ke.Class=7,ke.Interface=8,ke.Module=9,ke.Property=10,ke.Unit=11,ke.Value=12,ke.Enum=13,ke.Keyword=14,ke.Snippet=15,ke.Color=16,ke.File=17,ke.Reference=18,ke.Folder=19,ke.EnumMember=20,ke.Constant=21,ke.Struct=22,ke.Event=23,ke.Operator=24,ke.TypeParameter=25,(we=ye||(ye={})).PlainText=1,we.Snippet=2,(Ce||(Ce={})).Deprecated=1,(Se=xe||(xe={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Se.is=function(e){var t=e;return t&&at.string(t.newText)&&b.is(t.insert)&&b.is(t.replace)},(Ie=Ee||(Ee={})).asIs=1,Ie.adjustIndentation=2,(De||(De={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Oe=Ae||(Ae={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Oe.is=function(e){var t=e;return at.string(t)||at.objectLiteral(t)&&at.string(t.language)&&at.string(t.value)},(Le||(Le={})).is=function(e){var t=e;return!!t&&at.objectLiteral(t)&&(be.is(t.contents)||Ae.is(t.contents)||at.typedArray(t.contents,Ae.is))&&(void 0===e.range||b.is(e.range))},(Re||(Re={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Fe||(Fe={})).create=function(e,t){for(var n=[],r=2;r=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(u,r.length),o=c}return r}}(it||(it={}));var at,ct,ut,dt=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:gt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function gt(e){switch(e){case M.Error:return l.MarkerSeverity.Error;case M.Warning:return l.MarkerSeverity.Warning;case M.Information:return l.MarkerSeverity.Info;case M.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var ht=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),ft(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:vt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:mt(e.textEdit.insert),replace:mt(e.textEdit.replace)}:t.range=mt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(bt)),e.insertTextFormat===ye.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function ft(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function pt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function mt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function vt(e){const t=l.languages.CompletionItemKind;switch(e){case _e.Text:return t.Text;case _e.Method:return t.Method;case _e.Function:return t.Function;case _e.Constructor:return t.Constructor;case _e.Field:return t.Field;case _e.Variable:return t.Variable;case _e.Class:return t.Class;case _e.Interface:return t.Interface;case _e.Module:return t.Module;case _e.Property:return t.Property;case _e.Unit:return t.Unit;case _e.Value:return t.Value;case _e.Enum:return t.Enum;case _e.Keyword:return t.Keyword;case _e.Snippet:return t.Snippet;case _e.Color:return t.Color;case _e.File:return t.File;case _e.Reference:return t.Reference}return t.Property}function bt(e){if(e)return{range:mt(e.range),text:e.newText}}var _t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),ft(t)))).then((e=>{if(e)return{range:mt(e.range),contents:yt(e.contents)}}))}};function kt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function yt(e){if(e)return Array.isArray(e)?e.map(kt):[kt(e)]}var wt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),ft(t)))).then((e=>{if(e)return e.map((e=>({range:mt(e.range),kind:Ct(e.kind)})))}))}};function Ct(e){switch(e){case Pe.Read:return l.languages.DocumentHighlightKind.Read;case Pe.Write:return l.languages.DocumentHighlightKind.Write;case Pe.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var xt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),ft(t)))).then((e=>{if(e)return[St(e)]}))}};function St(e){return{uri:l.Uri.parse(e.uri),range:mt(e.range)}}var Et=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),ft(t)))).then((e=>{if(e)return e.map(St)}))}},It=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),ft(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:mt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var Dt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:Tt(e.kind),range:mt(e.location.range),selectionRange:mt(e.location.range),tags:[]})))}))}};function Tt(e){let t=l.languages.SymbolKind;switch(e){case je.File:return t.Array;case je.Module:return t.Module;case je.Namespace:return t.Namespace;case je.Package:return t.Package;case je.Class:return t.Class;case je.Method:return t.Method;case je.Property:return t.Property;case je.Field:return t.Field;case je.Constructor:return t.Constructor;case je.Enum:return t.Enum;case je.Interface:return t.Interface;case je.Function:return t.Function;case je.Variable:return t.Variable;case je.Constant:return t.Constant;case je.String:return t.String;case je.Number:return t.Number;case je.Boolean:return t.Boolean;case je.Array:return t.Array}return t.Function}var At=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:mt(e.range),url:e.target})))}}))}},Ot=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Rt(t)).then((e=>{if(e&&0!==e.length)return e.map(bt)}))))}},Lt=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),pt(t),Rt(n)).then((e=>{if(e&&0!==e.length)return e.map(bt)}))))}};function Rt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Ft=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:mt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,pt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(bt)),t}))}))}},Pt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case A.Comment:return l.languages.FoldingRangeKind.Comment;case A.Imports:return l.languages.FoldingRangeKind.Imports;case A.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var Mt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(ft)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:mt(e.range)}),e=e.parent;return t}))}))}},Nt=class extends ht{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function jt(e){const t=new ae(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;l.languages.registerCompletionItemProvider(r,new Nt(n)),l.languages.registerHoverProvider(r,new _t(n)),l.languages.registerDocumentHighlightProvider(r,new wt(n)),l.languages.registerLinkProvider(r,new At(n)),l.languages.registerFoldingRangeProvider(r,new Pt(n)),l.languages.registerDocumentSymbolProvider(r,new Dt(n)),l.languages.registerSelectionRangeProvider(r,new Mt(n)),l.languages.registerRenameProvider(r,new It(n)),"html"===r&&(l.languages.registerDocumentFormattingEditProvider(r,new Ot(n)),l.languages.registerDocumentRangeFormattingEditProvider(r,new Lt(n)))}function zt(e){const t=[],n=[],r=new ae(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;Ht(n),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new Nt(i))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new _t(i))),r.documentHighlights&&n.push(l.languages.registerDocumentHighlightProvider(t,new wt(i))),r.links&&n.push(l.languages.registerLinkProvider(t,new At(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new Dt(i))),r.rename&&n.push(l.languages.registerRenameProvider(t,new It(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new Pt(i))),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new Mt(i))),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new Ot(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new Lt(i)))}(),t.push(Wt(n)),Wt(t)}function Wt(e){return{dispose:()=>Ht(e)}}function Ht(e){for(;e.length;)e.pop().dispose()}},68423:(e,t,n)=>{var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function h(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===f,documentFormattingEdits:e===f,documentRangeFormattingEdits:e===f}}var f="html",p="handlebars",m="razor",v=C(f,g,h(f)),b=v.defaults,_=C(p,g,h(p)),k=_.defaults,y=C(m,g,h(m)),w=y.defaults;function C(e,t=g,r=h(e)){const i=new class{_onDidChange=new l.Emitter;_options;_modeConfiguration;_languageId;constructor(e,t,n){this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}(e,t,r);let o;const s=l.languages.onLanguage(e,(async()=>{o=(await Promise.all([n.e(885),n.e(221),n.e(169),n.e(864),n.e(458)]).then(n.bind(n,15377))).setupMode(i)}));return{defaults:i,dispose(){s.dispose(),o?.dispose(),o=void 0}}}l.languages.html={htmlDefaults:b,razorDefaults:w,handlebarDefaults:k,htmlLanguageService:v,handlebarLanguageService:_,razorLanguageService:y,registerHTMLLanguageService:C}},90665:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>ht,DefinitionAdapter:()=>xt,DiagnosticsAdapter:()=>lt,DocumentColorAdapter:()=>Ft,DocumentFormattingEditProvider:()=>Ot,DocumentHighlightAdapter:()=>wt,DocumentLinkAdapter:()=>At,DocumentRangeFormattingEditProvider:()=>Lt,DocumentSymbolAdapter:()=>Dt,FoldingRangeAdapter:()=>Pt,HoverAdapter:()=>_t,ReferenceAdapter:()=>Et,RenameAdapter:()=>It,SelectionRangeAdapter:()=>Nt,WorkerManager:()=>ae,fromPosition:()=>ft,fromRange:()=>pt,setupMode:()=>rn,toRange:()=>mt,toTextEdit:()=>bt});var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g,h,f,p,m,v,b,_,k,y,w,C,x,S,E,I,D,T,A,O,L,R,F,P,M,N,j,z,W,H,K,U,V,B,$,q,Z,J,X,G,Q,Y,ee,te,ne,re,ie,oe,se,ae=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=l.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(h=g||(g={})).MIN_VALUE=-2147483648,h.MAX_VALUE=2147483647,(p=f||(f={})).MIN_VALUE=0,p.MAX_VALUE=2147483647,(v=m||(m={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=f.MAX_VALUE),t===Number.MAX_VALUE&&(t=f.MAX_VALUE),{line:e,character:t}},v.is=function(e){var t=e;return at.objectLiteral(t)&&at.uinteger(t.line)&&at.uinteger(t.character)},(_=b||(b={})).create=function(e,t,n,r){if(at.uinteger(e)&&at.uinteger(t)&&at.uinteger(n)&&at.uinteger(r))return{start:m.create(e,t),end:m.create(n,r)};if(m.is(e)&&m.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments["+e+", "+t+", "+n+", "+r+"]")},_.is=function(e){var t=e;return at.objectLiteral(t)&&m.is(t.start)&&m.is(t.end)},(y=k||(k={})).create=function(e,t){return{uri:e,range:t}},y.is=function(e){var t=e;return at.defined(t)&&b.is(t.range)&&(at.string(t.uri)||at.undefined(t.uri))},(C=w||(w={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},C.is=function(e){var t=e;return at.defined(t)&&b.is(t.targetRange)&&at.string(t.targetUri)&&(b.is(t.targetSelectionRange)||at.undefined(t.targetSelectionRange))&&(b.is(t.originSelectionRange)||at.undefined(t.originSelectionRange))},(S=x||(x={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},S.is=function(e){var t=e;return at.numberRange(t.red,0,1)&&at.numberRange(t.green,0,1)&&at.numberRange(t.blue,0,1)&&at.numberRange(t.alpha,0,1)},(I=E||(E={})).create=function(e,t){return{range:e,color:t}},I.is=function(e){var t=e;return b.is(t.range)&&x.is(t.color)},(T=D||(D={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},T.is=function(e){var t=e;return at.string(t.label)&&(at.undefined(t.textEdit)||B.is(t))&&(at.undefined(t.additionalTextEdits)||at.typedArray(t.additionalTextEdits,B.is))},(O=A||(A={})).Comment="comment",O.Imports="imports",O.Region="region",(R=L||(L={})).create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return at.defined(n)&&(o.startCharacter=n),at.defined(r)&&(o.endCharacter=r),at.defined(i)&&(o.kind=i),o},R.is=function(e){var t=e;return at.uinteger(t.startLine)&&at.uinteger(t.startLine)&&(at.undefined(t.startCharacter)||at.uinteger(t.startCharacter))&&(at.undefined(t.endCharacter)||at.uinteger(t.endCharacter))&&(at.undefined(t.kind)||at.string(t.kind))},(P=F||(F={})).create=function(e,t){return{location:e,message:t}},P.is=function(e){var t=e;return at.defined(t)&&k.is(t.location)&&at.string(t.message)},(N=M||(M={})).Error=1,N.Warning=2,N.Information=3,N.Hint=4,(z=j||(j={})).Unnecessary=1,z.Deprecated=2,(W||(W={})).is=function(e){var t=e;return null!=t&&at.string(t.href)},(K=H||(H={})).create=function(e,t,n,r,i,o){var s={range:e,message:t};return at.defined(n)&&(s.severity=n),at.defined(r)&&(s.code=r),at.defined(i)&&(s.source=i),at.defined(o)&&(s.relatedInformation=o),s},K.is=function(e){var t,n=e;return at.defined(n)&&b.is(n.range)&&at.string(n.message)&&(at.number(n.severity)||at.undefined(n.severity))&&(at.integer(n.code)||at.string(n.code)||at.undefined(n.code))&&(at.undefined(n.codeDescription)||at.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(at.string(n.source)||at.undefined(n.source))&&(at.undefined(n.relatedInformation)||at.typedArray(n.relatedInformation,F.is))},(V=U||(U={})).create=function(e,t){for(var n=[],r=2;r0&&(i.arguments=n),i},V.is=function(e){var t=e;return at.defined(t)&&at.string(t.title)&&at.string(t.command)},($=B||(B={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){var t=e;return at.objectLiteral(t)&&at.string(t.newText)&&b.is(t.range)},(Z=q||(q={})).create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},Z.is=function(e){var t=e;return void 0!==t&&at.objectLiteral(t)&&at.string(t.label)&&(at.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(at.string(t.description)||void 0===t.description)},(J||(J={})).is=function(e){return"string"==typeof e},(G=X||(X={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},G.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},G.del=function(e,t){return{range:e,newText:"",annotationId:t}},G.is=function(e){var t=e;return B.is(t)&&(q.is(t.annotationId)||J.is(t.annotationId))},(Y=Q||(Q={})).create=function(e,t){return{textDocument:e,edits:t}},Y.is=function(e){var t=e;return at.defined(t)&&ge.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){var r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){var t=e;return t&&"create"===t.kind&&at.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||at.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||at.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){var i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){var t=e;return t&&"rename"===t.kind&&at.string(t.oldUri)&&at.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||at.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||at.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){var r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){var t=e;return t&&"delete"===t.kind&&at.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||at.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||at.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||J.is(t.annotationId))},(se||(se={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return at.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Q.is(e)})))};var ce,ue,de,le,ge,he,fe,pe,me,ve,be,_e,ke,ye,we,Ce,xe,Se,Ee,Ie,De,Te,Ae,Oe,Le,Re,Fe,Pe,Me,Ne,je,ze,We,He,Ke,Ue,Ve,Be,$e,qe,Ze,Je,Xe,Ge,Qe,Ye,et,tt,nt,rt,it,ot=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=B.insert(e,t):J.is(n)?(i=n,r=X.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=B.replace(e,t):J.is(n)?(i=n,r=X.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=X.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=B.del(e):J.is(t)?(r=t,n=X.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=X.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),st=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(J.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===t)throw new Error("No annotation provided for id "+n);return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new st(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Q.is(e)){var n=new ot(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new ot(e.changes[n]);t._textEditChanges[n]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ge.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new ot(i,this._changeAnnotations),this._textEditChanges[t.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new ot(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new st,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ee.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ee.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,s;if(q.is(n)||J.is(n)?i=n:r=n,void 0===i?o=ne.create(e,t,r):(s=J.is(i)?i:this._changeAnnotations.manage(i),o=ne.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(q.is(t)||J.is(t)?r=t:n=t,void 0===r?i=ie.create(e,n):(o=J.is(r)?r:this._changeAnnotations.manage(r),i=ie.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ue=ce||(ce={})).create=function(e){return{uri:e}},ue.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)},(le=de||(de={})).create=function(e,t){return{uri:e,version:t}},le.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&at.integer(t.version)},(he=ge||(ge={})).create=function(e,t){return{uri:e,version:t}},he.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&(null===t.version||at.integer(t.version))},(pe=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},pe.is=function(e){var t=e;return at.defined(t)&&at.string(t.uri)&&at.string(t.languageId)&&at.integer(t.version)&&at.string(t.text)},(ve=me||(me={})).PlainText="plaintext",ve.Markdown="markdown",function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(me||(me={})),(be||(be={})).is=function(e){var t=e;return at.objectLiteral(e)&&me.is(t.kind)&&at.string(t.value)},(ke=_e||(_e={})).Text=1,ke.Method=2,ke.Function=3,ke.Constructor=4,ke.Field=5,ke.Variable=6,ke.Class=7,ke.Interface=8,ke.Module=9,ke.Property=10,ke.Unit=11,ke.Value=12,ke.Enum=13,ke.Keyword=14,ke.Snippet=15,ke.Color=16,ke.File=17,ke.Reference=18,ke.Folder=19,ke.EnumMember=20,ke.Constant=21,ke.Struct=22,ke.Event=23,ke.Operator=24,ke.TypeParameter=25,(we=ye||(ye={})).PlainText=1,we.Snippet=2,(Ce||(Ce={})).Deprecated=1,(Se=xe||(xe={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Se.is=function(e){var t=e;return t&&at.string(t.newText)&&b.is(t.insert)&&b.is(t.replace)},(Ie=Ee||(Ee={})).asIs=1,Ie.adjustIndentation=2,(De||(De={})).create=function(e){return{label:e}},(Te||(Te={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Oe=Ae||(Ae={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Oe.is=function(e){var t=e;return at.string(t)||at.objectLiteral(t)&&at.string(t.language)&&at.string(t.value)},(Le||(Le={})).is=function(e){var t=e;return!!t&&at.objectLiteral(t)&&(be.is(t.contents)||Ae.is(t.contents)||at.typedArray(t.contents,Ae.is))&&(void 0===e.range||b.is(e.range))},(Re||(Re={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Fe||(Fe={})).create=function(e,t){for(var n=[],r=2;r=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error("Overlapping edit");r=r.substring(0,c)+a.newText+r.substring(u,r.length),o=c}return r}}(it||(it={}));var at,ct,ut,dt=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return m.create(0,e);for(;ne?r=i:n=i+1}var o=n-1;return m.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{l.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(l.editor.onDidCreateModel(r)),this._disposables.push(l.editor.onWillDisposeModel(i)),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{l.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{l.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),l.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:gt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=l.editor.getModel(e);i&&i.getLanguageId()===t&&l.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function gt(e){switch(e){case M.Error:return l.MarkerSeverity.Error;case M.Warning:return l.MarkerSeverity.Warning;case M.Information:return l.MarkerSeverity.Info;case M.Hint:return l.MarkerSeverity.Hint;default:return l.MarkerSeverity.Info}}var ht=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),ft(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new l.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:vt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:mt(e.textEdit.insert),replace:mt(e.textEdit.replace)}:t.range=mt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(bt)),e.insertTextFormat===ye.Snippet&&(t.insertTextRules=l.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function ft(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function pt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function mt(e){if(e)return new l.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function vt(e){const t=l.languages.CompletionItemKind;switch(e){case _e.Text:return t.Text;case _e.Method:return t.Method;case _e.Function:return t.Function;case _e.Constructor:return t.Constructor;case _e.Field:return t.Field;case _e.Variable:return t.Variable;case _e.Class:return t.Class;case _e.Interface:return t.Interface;case _e.Module:return t.Module;case _e.Property:return t.Property;case _e.Unit:return t.Unit;case _e.Value:return t.Value;case _e.Enum:return t.Enum;case _e.Keyword:return t.Keyword;case _e.Snippet:return t.Snippet;case _e.Color:return t.Color;case _e.File:return t.File;case _e.Reference:return t.Reference}return t.Property}function bt(e){if(e)return{range:mt(e.range),text:e.newText}}var _t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),ft(t)))).then((e=>{if(e)return{range:mt(e.range),contents:yt(e.contents)}}))}};function kt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function yt(e){if(e)return Array.isArray(e)?e.map(kt):[kt(e)]}var wt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),ft(t)))).then((e=>{if(e)return e.map((e=>({range:mt(e.range),kind:Ct(e.kind)})))}))}};function Ct(e){switch(e){case Pe.Read:return l.languages.DocumentHighlightKind.Read;case Pe.Write:return l.languages.DocumentHighlightKind.Write;case Pe.Text:return l.languages.DocumentHighlightKind.Text}return l.languages.DocumentHighlightKind.Text}var xt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),ft(t)))).then((e=>{if(e)return[St(e)]}))}};function St(e){return{uri:l.Uri.parse(e.uri),range:mt(e.range)}}var Et=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),ft(t)))).then((e=>{if(e)return e.map(St)}))}},It=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),ft(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=l.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:mt(i.range),text:i.newText}})}return{edits:t}}(e)))}};var Dt=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>({name:e.name,detail:"",containerName:e.containerName,kind:Tt(e.kind),range:mt(e.location.range),selectionRange:mt(e.location.range),tags:[]})))}))}};function Tt(e){let t=l.languages.SymbolKind;switch(e){case je.File:return t.Array;case je.Module:return t.Module;case je.Namespace:return t.Namespace;case je.Package:return t.Package;case je.Class:return t.Class;case je.Method:return t.Method;case je.Property:return t.Property;case je.Field:return t.Field;case je.Constructor:return t.Constructor;case je.Enum:return t.Enum;case je.Interface:return t.Interface;case je.Function:return t.Function;case je.Variable:return t.Variable;case je.Constant:return t.Constant;case je.String:return t.String;case je.Number:return t.Number;case je.Boolean:return t.Boolean;case je.Array:return t.Array}return t.Function}var At=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:mt(e.range),url:e.target})))}}))}},Ot=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,Rt(t)).then((e=>{if(e&&0!==e.length)return e.map(bt)}))))}},Lt=class{constructor(e){this._worker=e}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),pt(t),Rt(n)).then((e=>{if(e&&0!==e.length)return e.map(bt)}))))}};function Rt(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Ft=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:mt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,pt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=bt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(bt)),t}))}))}},Pt=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case A.Comment:return l.languages.FoldingRangeKind.Comment;case A.Imports:return l.languages.FoldingRangeKind.Imports;case A.Region:return l.languages.FoldingRangeKind.Region}return}(e.kind)),t}))}))}};var Mt,Nt=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(ft)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:mt(e.range)}),e=e.parent;return t}))}))}};function jt(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function zt(e){return 10===e||13===e||8232===e||8233===e}function Wt(e){return e>=48&&e<=57}(Mt||(Mt={})).DEFAULT={allowTrailingComma:!1};var Ht=function(e,t){void 0===t&&(t=!1);var n=e.length,r=0,i="",o=0,s=16,a=0,c=0,u=0,d=0,l=0;function g(t,n){for(var i=0,o=0;i=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else{if(!(s>=97&&s<=102))break;o=16*o+s-97+10}r++,i++}return i=n)return o=n,s=17;var t=e.charCodeAt(r);if(jt(t)){do{r++,i+=String.fromCharCode(t),t=e.charCodeAt(r)}while(jt(t));return s=15}if(zt(t))return r++,i+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,i+="\n"),a++,u=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=function(){for(var t="",i=r;;){if(r>=n){t+=e.substring(i,r),l=2;break}var o=e.charCodeAt(r);if(34===o){t+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(zt(o)){t+=e.substring(i,r),l=2;break}l=6}r++}else{if(t+=e.substring(i,r),++r>=n){l=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=g(4,!0);s>=0?t+=String.fromCharCode(s):l=4;break;default:l=5}i=r}}return t}(),s=10;case 47:var h=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r=12&&e<=15);return e}:h,getToken:function(){return s},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return l}}};function Kt(e){return{getInitialState:()=>new tn(null,null,!1,null),tokenize:(t,n)=>function(e,t,n,r=0){let i=0,o=!1;switch(n.scanError){case 2:t='"'+t,i=1;break;case 1:t="/*"+t,i=2}const s=Ht(t);let a=n.lastWasColon,c=n.parents;const u={tokens:[],endState:n.clone()};for(;;){let d=r+s.getPosition(),l="";const g=s.scan();if(17===g)break;if(d===r+s.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+t.substr(s.getPosition(),3));switch(o&&(d-=i),o=i>0,g){case 1:c=en.push(c,0),l=Ut,a=!1;break;case 2:c=en.pop(c),l=Ut,a=!1;break;case 3:c=en.push(c,1),l=Vt,a=!1;break;case 4:c=en.pop(c),l=Vt,a=!1;break;case 6:l=Bt,a=!0;break;case 5:l=$t,a=!1;break;case 8:case 9:l=qt,a=!1;break;case 7:l=Zt,a=!1;break;case 10:const e=c?c.type:0;l=a||1===e?Jt:Gt,a=!1;break;case 11:l=Xt,a=!1}if(e)switch(g){case 12:l=Yt;break;case 13:l=Qt}u.endState=new tn(n.getStateData(),s.getTokenError(),a,c),u.tokens.push({startIndex:d,scopes:l})}return u}(e,t,n)}}var Ut="delimiter.bracket.json",Vt="delimiter.array.json",Bt="delimiter.colon.json",$t="delimiter.comma.json",qt="keyword.json",Zt="keyword.json",Jt="string.value.json",Xt="number.json",Gt="string.key.json",Qt="comment.block.json",Yt="comment.line.json",en=class{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(e,t){return new en(e,t)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t;){if(e===t)return!0;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},tn=class{_state;scanError;lastWasColon;parents;constructor(e,t,n,r){this._state=e,this.scanError=t,this.lastWasColon=n,this.parents=r}clone(){return new tn(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this||!!(e&&e instanceof tn)&&(this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&en.equals(this.parents,e.parents))}getStateData(){return this._state}setStateData(e){this._state=e}};var nn=class extends lt{constructor(e,t,n){super(e,t,n.onDidChange),this._disposables.push(l.editor.onWillDisposeModel((e=>{this._resetSchema(e.uri)}))),this._disposables.push(l.editor.onDidChangeModelLanguage((e=>{this._resetSchema(e.model.uri)})))}_resetSchema(e){this._worker().then((t=>{t.resetSchema(e.toString())}))}};function rn(e){const t=[],n=[],r=new ae(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);function o(){const{languageId:t,modeConfiguration:r}=e;sn(n),r.documentFormattingEdits&&n.push(l.languages.registerDocumentFormattingEditProvider(t,new Ot(i))),r.documentRangeFormattingEdits&&n.push(l.languages.registerDocumentRangeFormattingEditProvider(t,new Lt(i))),r.completionItems&&n.push(l.languages.registerCompletionItemProvider(t,new ht(i,[" ",":",'"']))),r.hovers&&n.push(l.languages.registerHoverProvider(t,new _t(i))),r.documentSymbols&&n.push(l.languages.registerDocumentSymbolProvider(t,new Dt(i))),r.tokens&&n.push(l.languages.setTokensProvider(t,Kt(!0))),r.colors&&n.push(l.languages.registerColorProvider(t,new Ft(i))),r.foldingRanges&&n.push(l.languages.registerFoldingRangeProvider(t,new Pt(i))),r.diagnostics&&n.push(new nn(t,i,e)),r.selectionRanges&&n.push(l.languages.registerSelectionRangeProvider(t,new Nt(i)))}o(),t.push(l.languages.setLanguageConfiguration(e.languageId,an));let s=e.modeConfiguration;return e.onDidChange((e=>{e.modeConfiguration!==s&&(s=e.modeConfiguration,o())})),t.push(on(n)),on(t)}function on(e){return{dispose:()=>sn(e)}}function sn(e){for(;e.length;)e.pop().dispose()}var an={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},72323:(e,t,n)=>{var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g=new class{_onDidChange=new l.Emitter;_diagnosticsOptions;_modeConfiguration;_languageId;constructor(e,t,n){this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}}("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});l.languages.json={jsonDefaults:g},l.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),l.languages.onLanguage("json",(()=>{Promise.all([n.e(885),n.e(221),n.e(169),n.e(864),n.e(458)]).then(n.bind(n,90665)).then((e=>e.setupMode(g)))}))},39585:(e,t,n)=>{n.d(t,{TG:()=>_});var r,i,o=n(6586),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of c(t))u.call(e,i)||i===n||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e},l={};d(l,r=o,"default"),i&&d(i,r,"default");var g=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(g||{}),h=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(h||{}),f=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(f||{}),p=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(p||{}),m=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(m||{}),v=class{_onDidChange=new l.Emitter;_onDidExtraLibsChange=new l.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;_modeConfiguration;constructor(e,t,n,r,i){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this.setInlayHintsOptions(r),this.setModeConfiguration(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let n;if(n=void 0===t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[n];e&&e.version===r&&(delete this._extraLibs[n],this._removedExtraLibs[n]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content;let r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:n,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},b={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},_=new v({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),k=new v({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},b);function y(){return Promise.all([n.e(885),n.e(221),n.e(169),n.e(864),n.e(458)]).then(n.bind(n,78401))}l.languages.typescript={ModuleKind:g,JsxEmit:h,NewLineKind:f,ScriptTarget:p,ModuleResolutionKind:m,typescriptVersion:"5.0.2",typescriptDefaults:_,javascriptDefaults:k,getTypeScriptWorker:()=>y().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>y().then((e=>e.getJavaScriptWorker()))},l.languages.onLanguage("typescript",(()=>y().then((e=>e.setupTypeScript(_))))),l.languages.onLanguage("javascript",(()=>y().then((e=>e.setupJavaScript(k)))))},78401:(e,t,n)=>{n.r(t),n.d(t,{Adapter:()=>b,CodeActionAdaptor:()=>M,DefinitionAdapter:()=>E,DiagnosticsAdapter:()=>k,DocumentHighlightAdapter:()=>S,FormatAdapter:()=>F,FormatHelper:()=>R,FormatOnTypeAdapter:()=>P,InlayHintsAdapter:()=>j,Kind:()=>T,LibFiles:()=>_,OutlineAdapter:()=>D,QuickInfoAdapter:()=>x,ReferenceAdapter:()=>I,RenameAdapter:()=>N,SignatureHelpAdapter:()=>C,SuggestAdapter:()=>y,WorkerManager:()=>f,flattenDiagnosticMessageText:()=>m,getJavaScriptWorker:()=>H,getTypeScriptWorker:()=>K,setupJavaScript:()=>W,setupTypeScript:()=>z});var r,i,o=n(6586),s=n(39585),a=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of u(t))d.call(e,i)||i===n||a(e,i,{get:()=>t[i],enumerable:!(r=c(t,i))||r.enumerable});return e},g=(e,t,n)=>(((e,t,n)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),h={};l(h,r=o,"default"),i&&l(i,r,"default");var f=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}_configChangeListener;_updateExtraLibsToken;_extraLibsChangeListener;_worker;_client;dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=h.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(h.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},p={};function m(e,t,n=0){if("string"==typeof e)return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;ee.text)).join(""):""}p["lib.d.ts"]=!0,p["lib.decorators.d.ts"]=!0,p["lib.decorators.legacy.d.ts"]=!0,p["lib.dom.d.ts"]=!0,p["lib.dom.iterable.d.ts"]=!0,p["lib.es2015.collection.d.ts"]=!0,p["lib.es2015.core.d.ts"]=!0,p["lib.es2015.d.ts"]=!0,p["lib.es2015.generator.d.ts"]=!0,p["lib.es2015.iterable.d.ts"]=!0,p["lib.es2015.promise.d.ts"]=!0,p["lib.es2015.proxy.d.ts"]=!0,p["lib.es2015.reflect.d.ts"]=!0,p["lib.es2015.symbol.d.ts"]=!0,p["lib.es2015.symbol.wellknown.d.ts"]=!0,p["lib.es2016.array.include.d.ts"]=!0,p["lib.es2016.d.ts"]=!0,p["lib.es2016.full.d.ts"]=!0,p["lib.es2017.d.ts"]=!0,p["lib.es2017.full.d.ts"]=!0,p["lib.es2017.intl.d.ts"]=!0,p["lib.es2017.object.d.ts"]=!0,p["lib.es2017.sharedmemory.d.ts"]=!0,p["lib.es2017.string.d.ts"]=!0,p["lib.es2017.typedarrays.d.ts"]=!0,p["lib.es2018.asyncgenerator.d.ts"]=!0,p["lib.es2018.asynciterable.d.ts"]=!0,p["lib.es2018.d.ts"]=!0,p["lib.es2018.full.d.ts"]=!0,p["lib.es2018.intl.d.ts"]=!0,p["lib.es2018.promise.d.ts"]=!0,p["lib.es2018.regexp.d.ts"]=!0,p["lib.es2019.array.d.ts"]=!0,p["lib.es2019.d.ts"]=!0,p["lib.es2019.full.d.ts"]=!0,p["lib.es2019.intl.d.ts"]=!0,p["lib.es2019.object.d.ts"]=!0,p["lib.es2019.string.d.ts"]=!0,p["lib.es2019.symbol.d.ts"]=!0,p["lib.es2020.bigint.d.ts"]=!0,p["lib.es2020.d.ts"]=!0,p["lib.es2020.date.d.ts"]=!0,p["lib.es2020.full.d.ts"]=!0,p["lib.es2020.intl.d.ts"]=!0,p["lib.es2020.number.d.ts"]=!0,p["lib.es2020.promise.d.ts"]=!0,p["lib.es2020.sharedmemory.d.ts"]=!0,p["lib.es2020.string.d.ts"]=!0,p["lib.es2020.symbol.wellknown.d.ts"]=!0,p["lib.es2021.d.ts"]=!0,p["lib.es2021.full.d.ts"]=!0,p["lib.es2021.intl.d.ts"]=!0,p["lib.es2021.promise.d.ts"]=!0,p["lib.es2021.string.d.ts"]=!0,p["lib.es2021.weakref.d.ts"]=!0,p["lib.es2022.array.d.ts"]=!0,p["lib.es2022.d.ts"]=!0,p["lib.es2022.error.d.ts"]=!0,p["lib.es2022.full.d.ts"]=!0,p["lib.es2022.intl.d.ts"]=!0,p["lib.es2022.object.d.ts"]=!0,p["lib.es2022.regexp.d.ts"]=!0,p["lib.es2022.sharedmemory.d.ts"]=!0,p["lib.es2022.string.d.ts"]=!0,p["lib.es2023.array.d.ts"]=!0,p["lib.es2023.d.ts"]=!0,p["lib.es2023.full.d.ts"]=!0,p["lib.es5.d.ts"]=!0,p["lib.es6.d.ts"]=!0,p["lib.esnext.d.ts"]=!0,p["lib.esnext.full.d.ts"]=!0,p["lib.esnext.intl.d.ts"]=!0,p["lib.scripthost.d.ts"]=!0,p["lib.webworker.d.ts"]=!0,p["lib.webworker.importscripts.d.ts"]=!0,p["lib.webworker.iterable.d.ts"]=!0;var b=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let n=e.getPositionAt(t.start),r=e.getPositionAt(t.start+t.length),{lineNumber:i,column:o}=n,{lineNumber:s,column:a}=r;return{startLineNumber:i,startColumn:o,endLineNumber:s,endColumn:a}}},_=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}_libFiles;_hasFetchedLibFiles;_fetchLibFilesPromise;isLibFile(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!p[e.path.slice(1)])}getOrCreateModel(e){const t=h.Uri.parse(e),n=h.editor.getModel(t);if(n)return n;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return h.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const r=s.TG.getExtraLibs()[e];return r?h.editor.createModel(r.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},k=class extends b{constructor(e,t,n,r){super(r),this._libFiles=e,this._defaults=t,this._selector=n;const i=e=>{if(e.getLanguageId()!==n)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let r;const i=e.onDidChangeContent((()=>{clearTimeout(r),r=window.setTimeout(t,500)})),o=e.onDidChangeAttached((()=>{const{onlyVisible:n}=this._defaults.getDiagnosticsOptions();n&&(e.isAttachedToEditor()?t():h.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){i.dispose(),o.dispose(),clearTimeout(r)}},t()},o=e=>{h.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(h.editor.onDidCreateModel((e=>i(e)))),this._disposables.push(h.editor.onWillDisposeModel(o)),this._disposables.push(h.editor.onDidChangeModelLanguage((e=>{o(e.model),i(e.model)}))),this._disposables.push({dispose(){for(const e of h.editor.getModels())o(e)}});const s=()=>{for(const e of h.editor.getModels())o(e),i(e)};this._disposables.push(this._defaults.onDidChange(s)),this._disposables.push(this._defaults.onDidExtraLibsChange(s)),h.editor.getModels().forEach((e=>i(e)))}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const n=[],{noSyntaxValidation:r,noSemanticValidation:i,noSuggestionDiagnostics:o}=this._defaults.getDiagnosticsOptions();r||n.push(t.getSyntacticDiagnostics(e.uri.toString())),i||n.push(t.getSemanticDiagnostics(e.uri.toString())),o||n.push(t.getSuggestionDiagnostics(e.uri.toString()));const s=await Promise.all(n);if(!s||e.isDisposed())return;const a=s.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),c=a.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?h.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(c),e.isDisposed()||h.editor.setModelMarkers(e,this._selector,a.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const n=t.start||0,r=t.length||1,{lineNumber:i,column:o}=e.getPositionAt(n),{lineNumber:s,column:a}=e.getPositionAt(n+r),c=[];return t.reportsUnnecessary&&c.push(h.MarkerTag.Unnecessary),t.reportsDeprecated&&c.push(h.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:i,startColumn:o,endLineNumber:s,endColumn:a,message:m(t.messageText,"\n"),code:t.code.toString(),tags:c,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const n=[];return t.forEach((t=>{let r=e;if(t.file&&(r=this._libFiles.getOrCreateModel(t.file.fileName)),!r)return;const i=t.start||0,o=t.length||1,{lineNumber:s,column:a}=r.getPositionAt(i),{lineNumber:c,column:u}=r.getPositionAt(i+o);n.push({resource:r.uri,startLineNumber:s,startColumn:a,endLineNumber:c,endColumn:u,message:m(t.messageText,"\n")})})),n}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return h.MarkerSeverity.Error;case 3:return h.MarkerSeverity.Info;case 0:return h.MarkerSeverity.Warning;case 2:return h.MarkerSeverity.Hint}return h.MarkerSeverity.Info}},y=class extends b{get triggerCharacters(){return["."]}async provideCompletionItems(e,t,n,r){const i=e.getWordUntilPosition(t),o=new h.Range(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn),s=e.uri,a=e.getOffsetAt(t),c=await this._worker(s);if(e.isDisposed())return;const u=await c.getCompletionsAtPosition(s.toString(),a);if(!u||e.isDisposed())return;return{suggestions:u.entries.map((n=>{let r=o;if(n.replacementSpan){const t=e.getPositionAt(n.replacementSpan.start),i=e.getPositionAt(n.replacementSpan.start+n.replacementSpan.length);r=new h.Range(t.lineNumber,t.column,i.lineNumber,i.column)}const i=[];return void 0!==n.kindModifiers&&-1!==n.kindModifiers.indexOf("deprecated")&&i.push(h.languages.CompletionItemTag.Deprecated),{uri:s,position:t,offset:a,range:r,label:n.name,insertText:n.name,sortText:n.sortText,kind:y.convertKind(n.kind),tags:i}}))}}async resolveCompletionItem(e,t){const n=e,r=n.uri,i=n.position,o=n.offset,s=await this._worker(r),a=await s.getCompletionEntryDetails(r.toString(),o,n.label);return a?{uri:r,position:i,label:a.name,kind:y.convertKind(a.kind),detail:v(a.displayParts),documentation:{value:y.createDocumentationString(a)}}:n}static convertKind(e){switch(e){case T.primitiveType:case T.keyword:return h.languages.CompletionItemKind.Keyword;case T.variable:case T.localVariable:return h.languages.CompletionItemKind.Variable;case T.memberVariable:case T.memberGetAccessor:case T.memberSetAccessor:return h.languages.CompletionItemKind.Field;case T.function:case T.memberFunction:case T.constructSignature:case T.callSignature:case T.indexSignature:return h.languages.CompletionItemKind.Function;case T.enum:return h.languages.CompletionItemKind.Enum;case T.module:return h.languages.CompletionItemKind.Module;case T.class:return h.languages.CompletionItemKind.Class;case T.interface:return h.languages.CompletionItemKind.Interface;case T.warning:return h.languages.CompletionItemKind.File}return h.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=v(e.documentation);if(e.tags)for(const n of e.tags)t+=`\n\n${w(n)}`;return t}};function w(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[n,...r]=e.text;t+=`\`${n.text}\``,r.length>0&&(t+=` — ${r.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var C=class extends b{signatureHelpTriggerCharacters=["(",","];static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case h.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case h.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case h.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(e,t,n,r){const i=e.uri,o=e.getOffsetAt(t),s=await this._worker(i);if(e.isDisposed())return;const a=await s.getSignatureHelpItems(i.toString(),o,{triggerReason:C._toSignatureHelpTriggerReason(r)});if(!a||e.isDisposed())return;const c={activeSignature:a.selectedItemIndex,activeParameter:a.argumentIndex,signatures:[]};return a.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:v(e.documentation)},t.label+=v(e.prefixDisplayParts),e.parameters.forEach(((n,r,i)=>{const o=v(n.displayParts),s={label:o,documentation:{value:v(n.documentation)}};t.label+=o,t.parameters.push(s),rw(e))).join(" \n\n"):"",u=v(s.displayParts);return{range:this._textSpanToRange(e,s.textSpan),contents:[{value:"```typescript\n"+u+"\n```\n"},{value:a+(c?"\n\n"+c:"")}]}}},S=class extends b{async provideDocumentHighlights(e,t,n){const r=e.uri,i=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const s=await o.getDocumentHighlights(r.toString(),i,[r.toString()]);return s&&!e.isDisposed()?s.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?h.languages.DocumentHighlightKind.Write:h.languages.DocumentHighlightKind.Text}))))):void 0}},E=class extends b{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,n){const r=e.uri,i=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const s=await o.getDefinitionAtPosition(r.toString(),i);if(!s||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(s.map((e=>h.Uri.parse(e.fileName)))),e.isDisposed())return;const a=[];for(let e of s){const t=this._libFiles.getOrCreateModel(e.fileName);t&&a.push({uri:t.uri,range:this._textSpanToRange(t,e.textSpan)})}return a}},I=class extends b{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,n,r){const i=e.uri,o=e.getOffsetAt(t),s=await this._worker(i);if(e.isDisposed())return;const a=await s.getReferencesAtPosition(i.toString(),o);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>h.Uri.parse(e.fileName)))),e.isDisposed())return;const c=[];for(let e of a){const t=this._libFiles.getOrCreateModel(e.fileName);t&&c.push({uri:t.uri,range:this._textSpanToRange(t,e.textSpan)})}return c}},D=class extends b{async provideDocumentSymbols(e,t){const n=e.uri,r=await this._worker(n);if(e.isDisposed())return;const i=await r.getNavigationTree(n.toString());if(!i||e.isDisposed())return;const o=(t,n)=>{const r={name:t.text,detail:"",kind:A[t.kind]||h.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>o(e,r.name))),containerName:n};return r};return i.childItems?i.childItems.map((e=>o(e))):[]}},T=class{};g(T,"unknown",""),g(T,"keyword","keyword"),g(T,"script","script"),g(T,"module","module"),g(T,"class","class"),g(T,"interface","interface"),g(T,"type","type"),g(T,"enum","enum"),g(T,"variable","var"),g(T,"localVariable","local var"),g(T,"function","function"),g(T,"localFunction","local function"),g(T,"memberFunction","method"),g(T,"memberGetAccessor","getter"),g(T,"memberSetAccessor","setter"),g(T,"memberVariable","property"),g(T,"constructorImplementation","constructor"),g(T,"callSignature","call"),g(T,"indexSignature","index"),g(T,"constructSignature","construct"),g(T,"parameter","parameter"),g(T,"typeParameter","type parameter"),g(T,"primitiveType","primitive type"),g(T,"label","label"),g(T,"alias","alias"),g(T,"const","const"),g(T,"let","let"),g(T,"warning","warning");var A=Object.create(null);A[T.module]=h.languages.SymbolKind.Module,A[T.class]=h.languages.SymbolKind.Class,A[T.enum]=h.languages.SymbolKind.Enum,A[T.interface]=h.languages.SymbolKind.Interface,A[T.memberFunction]=h.languages.SymbolKind.Method,A[T.memberVariable]=h.languages.SymbolKind.Property,A[T.memberGetAccessor]=h.languages.SymbolKind.Property,A[T.memberSetAccessor]=h.languages.SymbolKind.Property,A[T.variable]=h.languages.SymbolKind.Variable,A[T.const]=h.languages.SymbolKind.Variable,A[T.localVariable]=h.languages.SymbolKind.Variable,A[T.variable]=h.languages.SymbolKind.Variable,A[T.function]=h.languages.SymbolKind.Function,A[T.localFunction]=h.languages.SymbolKind.Function;var O,L,R=class extends b{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},F=class extends R{canFormatMultipleRanges=!1;async provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri,o=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=await this._worker(i);if(e.isDisposed())return;const c=await a.getFormattingEditsForRange(i.toString(),o,s,R._convertOptions(n));return c&&!e.isDisposed()?c.map((t=>this._convertTextChanges(e,t))):void 0}},P=class extends R{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,n,r,i){const o=e.uri,s=e.getOffsetAt(t),a=await this._worker(o);if(e.isDisposed())return;const c=await a.getFormattingEditsAfterKeystroke(o.toString(),s,n,R._convertOptions(r));return c&&!e.isDisposed()?c.map((t=>this._convertTextChanges(e,t))):void 0}},M=class extends R{async provideCodeActions(e,t,n,r){const i=e.uri,o=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=R._convertOptions(e.getOptions()),c=n.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),u=await this._worker(i);if(e.isDisposed())return;const d=await u.getCodeFixesAtPosition(i.toString(),o,s,c,a);if(!d||e.isDisposed())return{actions:[],dispose:()=>{}};return{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,n,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,n){const r=[];for(const t of n.changes)for(const n of t.textChanges)r.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,n.span),text:n.newText}});return{title:n.description,edit:{edits:r},diagnostics:t.markers,kind:"quickfix"}}},N=class extends b{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,n,r){const i=e.uri,o=i.toString(),s=e.getOffsetAt(t),a=await this._worker(i);if(e.isDisposed())return;const c=await a.getRenameInfo(o,s,{allowRenameOfImportPath:!1});if(!1===c.canRename)return{edits:[],rejectReason:c.localizedErrorMessage};if(void 0!==c.fileToRename)throw new Error("Renaming files is not supported.");const u=await a.findRenameLocations(o,s,!1,!1,!1);if(!u||e.isDisposed())return;const d=[];for(const e of u){const t=this._libFiles.getOrCreateModel(e.fileName);if(!t)throw new Error(`Unknown file ${e.fileName}.`);d.push({resource:t.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(t,e.textSpan),text:n}})}return{edits:d}}},j=class extends b{async provideInlayHints(e,t,n){const r=e.uri,i=r.toString(),o=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),s=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),a=await this._worker(r);if(e.isDisposed())return null;return{hints:(await a.provideInlayHints(i,o,s)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?h.languages.InlayHintKind.Parameter:h.languages.InlayHintKind.Type}};function z(e){L=U(e,"typescript")}function W(e){O=U(e,"javascript")}function H(){return new Promise(((e,t)=>{if(!O)return t("JavaScript not registered!");e(O)}))}function K(){return new Promise(((e,t)=>{if(!L)return t("TypeScript not registered!");e(L)}))}function U(e,t){const n=[],r=[],i=new f(t,e);n.push(i);const o=(...e)=>i.getLanguageServiceWorker(...e),s=new _(o);return function(){const{modeConfiguration:n}=e;V(r),n.completionItems&&r.push(h.languages.registerCompletionItemProvider(t,new y(o))),n.signatureHelp&&r.push(h.languages.registerSignatureHelpProvider(t,new C(o))),n.hovers&&r.push(h.languages.registerHoverProvider(t,new x(o))),n.documentHighlights&&r.push(h.languages.registerDocumentHighlightProvider(t,new S(o))),n.definitions&&r.push(h.languages.registerDefinitionProvider(t,new E(s,o))),n.references&&r.push(h.languages.registerReferenceProvider(t,new I(s,o))),n.documentSymbols&&r.push(h.languages.registerDocumentSymbolProvider(t,new D(o))),n.rename&&r.push(h.languages.registerRenameProvider(t,new N(s,o))),n.documentRangeFormattingEdits&&r.push(h.languages.registerDocumentRangeFormattingEditProvider(t,new F(o))),n.onTypeFormattingEdits&&r.push(h.languages.registerOnTypeFormattingEditProvider(t,new P(o))),n.codeActions&&r.push(h.languages.registerCodeActionProvider(t,new M(o))),n.inlayHints&&r.push(h.languages.registerInlayHintsProvider(t,new j(o))),n.diagnostics&&r.push(new k(s,e,t,o))}(),n.push(function(e){return{dispose:()=>V(e)}}(r)),o}function V(e){for(;e.length;)e.pop().dispose()}}}]); \ No newline at end of file diff --git a/Scriptcat/src/monaco-2cdf052c.js.LICENSE.txt b/Scriptcat/src/monaco-2cdf052c.js.LICENSE.txt new file mode 100755 index 0000000..324d77e --- /dev/null +++ b/Scriptcat/src/monaco-2cdf052c.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*/ diff --git a/Scriptcat/src/monaco-4d2bb52f.js b/Scriptcat/src/monaco-4d2bb52f.js new file mode 100755 index 0000000..d588f0d --- /dev/null +++ b/Scriptcat/src/monaco-4d2bb52f.js @@ -0,0 +1,2 @@ +/*! For license information please see monaco-4d2bb52f.js.LICENSE.txt */ +"use strict";(self.webpackChunkscriptcat=self.webpackChunkscriptcat||[]).push([[885],{32757:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-action-bar {\n\twhite-space: nowrap;\n\theight: 100%;\n}\n\n.monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\theight: 100%;\n\twidth: 100%;\n\talign-items: center;\n}\n\n.monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-action-bar .action-item {\n\tdisplay: block;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-action-bar .action-item .icon,\n.monaco-action-bar .action-item .codicon {\n\tdisplay: block;\n}\n\n.monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 16px;\n\theight: 16px;\n}\n\n.monaco-action-bar .action-label {\n\tdisplay: flex;\n\tfont-size: 11px;\n\tpadding: 3px;\n\tborder-radius: 5px;\n}\n\n.monaco-action-bar .action-item.disabled .action-label,\n.monaco-action-bar .action-item.disabled .action-label::before,\n.monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.6;\n}\n\n/* Vertical actions */\n\n.monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-action-bar .action-item .action-label.separator {\n\twidth: 1px;\n\theight: 16px;\n\tmargin: 5px 4px !important;\n\tcursor: default;\n\tmin-width: 1px;\n\tpadding: 0;\n\tbackground-color: #bbb;\n}\n\n.secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-action-bar .action-item.action-dropdown-item {\n\tdisplay: flex;\n}\n\n.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator {\n\tdisplay: flex;\n\talign-items: center;\n\tcursor: default;\n}\n\n.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator > div {\n\twidth: 1px;\n}\n",""]);const a=r},93:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-aria-container {\n\tposition: absolute; /* try to hide from window but not from screen readers */\n\tleft:-999em;\n}",""]);const a=r},72013:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-text-button {\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\twidth: 100%;\n\tpadding: 4px;\n\tborder-radius: 2px;\n\ttext-align: center;\n\tcursor: pointer;\n\tjustify-content: center;\n\talign-items: center;\n\tborder: 1px solid var(--vscode-button-border, transparent);\n\tline-height: 18px;\n}\n\n.monaco-text-button:focus {\n\toutline-offset: 2px !important;\n}\n\n.monaco-text-button:hover {\n\ttext-decoration: none !important;\n}\n\n.monaco-button.disabled:focus,\n.monaco-button.disabled {\n\topacity: 0.4 !important;\n\tcursor: default;\n}\n\n.monaco-text-button .codicon {\n\tmargin: 0 0.2em;\n\tcolor: inherit !important;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label {\n\tflex-direction: row;\n\tflex-wrap: wrap;\n\tpadding: 0 4px;\n\toverflow: hidden;\n\theight: 28px;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label {\n\tflex-basis: 100%;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label-short {\n\tflex-grow: 1;\n\twidth: 0;\n\toverflow: hidden;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label,\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label-short {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tfont-weight: normal;\n\tfont-style: inherit;\n\tpadding: 4px 0;\n}\n\n.monaco-button-dropdown {\n\tdisplay: flex;\n\tcursor: pointer;\n}\n\n.monaco-button-dropdown.disabled {\n\tcursor: default;\n}\n\n.monaco-button-dropdown > .monaco-button:focus {\n\toutline-offset: -1px !important;\n}\n\n.monaco-button-dropdown.disabled > .monaco-button.disabled,\n.monaco-button-dropdown.disabled > .monaco-button.disabled:focus,\n.monaco-button-dropdown.disabled > .monaco-button-dropdown-separator {\n\topacity: 0.4 !important;\n}\n\n.monaco-button-dropdown > .monaco-button.monaco-text-button {\n\tborder-right-width: 0 !important;\n}\n\n.monaco-button-dropdown .monaco-button-dropdown-separator {\n\tpadding: 4px 0;\n\tcursor: default;\n}\n\n.monaco-button-dropdown .monaco-button-dropdown-separator > div {\n\theight: 100%;\n\twidth: 1px;\n}\n\n.monaco-button-dropdown > .monaco-button.monaco-dropdown-button {\n\tborder: 1px solid var(--vscode-button-border, transparent);\n\tborder-left-width: 0 !important;\n\tborder-radius: 0 2px 2px 0;\n}\n\n.monaco-button-dropdown > .monaco-button.monaco-text-button {\n\tborder-radius: 2px 0 0 2px;\n}\n\n.monaco-description-button {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tmargin: 4px 5px; /* allows button focus outline to be visible */\n}\n\n.monaco-description-button .monaco-button-description {\n\tfont-style: italic;\n\tfont-size: 11px;\n\tpadding: 4px 20px;\n}\n\n.monaco-description-button .monaco-button-label,\n.monaco-description-button .monaco-button-description {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n.monaco-description-button .monaco-button-label > .codicon,\n.monaco-description-button .monaco-button-description > .codicon {\n\tmargin: 0 0.2em;\n\tcolor: inherit !important;\n}\n",""]);const a=r},24081:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.codicon-wrench-subaction {\n\topacity: 0.5;\n}\n\n@keyframes codicon-spin {\n\t100% {\n\t\ttransform:rotate(360deg);\n\t}\n}\n\n.codicon-sync.codicon-modifier-spin,\n.codicon-loading.codicon-modifier-spin,\n.codicon-gear.codicon-modifier-spin,\n.codicon-notebook-state-executing.codicon-modifier-spin {\n\t/* Use steps to throttle FPS to reduce CPU usage */\n\tanimation: codicon-spin 1.5s steps(30) infinite;\n}\n\n.codicon-modifier-disabled {\n\topacity: 0.4;\n}\n\n/* custom speed & easing for loading icon */\n.codicon-loading,\n.codicon-tree-item-loading::before {\n\tanimation-duration: 1s !important;\n\tanimation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important;\n}\n",""]);const a=r},50058:(e,t,n)=>{n.d(t,{Z:()=>h});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s),a=n(61667),l=n.n(a),c=new URL(n(73251),n.b),d=r()(o()),u=l()(c);d.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n@font-face {\n\tfont-family: "codicon";\n\tfont-display: block;\n\tsrc: url('+u+") format(\"truetype\");\n}\n\n.codicon[class*='codicon-'] {\n\tfont: normal normal normal 16px/1 codicon;\n\tdisplay: inline-block;\n\ttext-decoration: none;\n\ttext-rendering: auto;\n\ttext-align: center;\n\ttext-transform: none;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n/* icon rules are dynamically created by the platform theme service (see iconsStyleSheet.ts) */\n",""]);const h=d},16328:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.context-view {\n\tposition: absolute;\n}\n\n.context-view.fixed {\n\tall: initial;\n\tfont-family: inherit;\n\tfont-size: 13px;\n\tposition: fixed;\n\tcolor: inherit;\n}\n",""]);const a=r},90477:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-count-badge {\n\tpadding: 3px 6px;\n\tborder-radius: 11px;\n\tfont-size: 11px;\n\tmin-width: 18px;\n\tmin-height: 18px;\n\tline-height: 11px;\n\tfont-weight: normal;\n\ttext-align: center;\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n}\n\n.monaco-count-badge.long {\n\tpadding: 2px 3px;\n\tborder-radius: 2px;\n\tmin-height: auto;\n\tline-height: normal;\n}\n",""]);const a=r},25035:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-dropdown {\n\theight: 100%;\n\tpadding: 0;\n}\n\n.monaco-dropdown > .dropdown-label {\n\tcursor: pointer;\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.monaco-dropdown > .dropdown-label > .action-label.disabled {\n\tcursor: default;\n}\n\n.monaco-dropdown-with-primary {\n\tdisplay: flex !important;\n\tflex-direction: row;\n\tborder-radius: 5px;\n}\n\n.monaco-dropdown-with-primary > .action-container > .action-label {\n\tmargin-right: 0;\n}\n\n.monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label .codicon[class*='codicon-'] {\n\tfont-size: 12px;\n\tpadding-left: 0px;\n\tpadding-right: 0px;\n\tline-height: 16px;\n\tmargin-left: -3px;\n}\n\n.monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label > .action-label {\n\tdisplay: block;\n\tbackground-size: 16px;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n}\n",""]);const a=r},96266:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- Find input ---------- */\n\n.monaco-findInput {\n\tposition: relative;\n}\n\n.monaco-findInput .monaco-inputbox {\n\tfont-size: 13px;\n\twidth: 100%;\n}\n\n.monaco-findInput > .controls {\n\tposition: absolute;\n\ttop: 3px;\n\tright: 2px;\n}\n\n.vs .monaco-findInput.disabled {\n\tbackground-color: #E1E1E1;\n}\n\n/* Theming */\n.vs-dark .monaco-findInput.disabled {\n\tbackground-color: #333;\n}\n\n/* Highlighting */\n.monaco-findInput.highlight-0 .controls,\n.hc-light .monaco-findInput.highlight-0 .controls {\n\tanimation: monaco-findInput-highlight-0 100ms linear 0s;\n}\n\n.monaco-findInput.highlight-1 .controls,\n.hc-light .monaco-findInput.highlight-1 .controls {\n\tanimation: monaco-findInput-highlight-1 100ms linear 0s;\n}\n\n.hc-black .monaco-findInput.highlight-0 .controls,\n.vs-dark .monaco-findInput.highlight-0 .controls {\n\tanimation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n}\n\n.hc-black .monaco-findInput.highlight-1 .controls,\n.vs-dark .monaco-findInput.highlight-1 .controls {\n\tanimation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n}\n\n@keyframes monaco-findInput-highlight-0 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-1 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n\n@keyframes monaco-findInput-highlight-dark-0 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-1 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n",""]);const a=r},93039:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-hover {\n\tcursor: default;\n\tposition: absolute;\n\toverflow: hidden;\n\tz-index: 50;\n\tuser-select: text;\n\t-webkit-user-select: text;\n\tbox-sizing: initial;\n\tanimation: fadein 100ms linear;\n\tline-height: 1.5em;\n}\n\n.monaco-hover.hidden {\n\tdisplay: none;\n}\n\n.monaco-hover a:hover:not(.disabled) {\n\tcursor: pointer;\n}\n\n.monaco-hover .hover-contents:not(.html-hover-contents) {\n\tpadding: 4px 8px;\n}\n\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {\n\tmax-width: 500px;\n\tword-wrap: break-word;\n}\n\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr {\n\tmin-width: 100%;\n}\n\n.monaco-hover p,\n.monaco-hover .code,\n.monaco-hover ul,\n.monaco-hover h1,\n.monaco-hover h2,\n.monaco-hover h3,\n.monaco-hover h4,\n.monaco-hover h5,\n.monaco-hover h6 {\n\tmargin: 8px 0;\n}\n\n.monaco-hover h1,\n.monaco-hover h2,\n.monaco-hover h3,\n.monaco-hover h4,\n.monaco-hover h5,\n.monaco-hover h6 {\n\tline-height: 1.1;\n}\n\n.monaco-hover code {\n\tfont-family: var(--monaco-monospace-font);\n}\n\n.monaco-hover hr {\n\tbox-sizing: border-box;\n\tborder-left: 0px;\n\tborder-right: 0px;\n\tmargin-top: 4px;\n\tmargin-bottom: -4px;\n\tmargin-left: -8px;\n\tmargin-right: -8px;\n\theight: 1px;\n}\n\n.monaco-hover p:first-child,\n.monaco-hover .code:first-child,\n.monaco-hover ul:first-child {\n\tmargin-top: 0;\n}\n\n.monaco-hover p:last-child,\n.monaco-hover .code:last-child,\n.monaco-hover ul:last-child {\n\tmargin-bottom: 0;\n}\n\n/* MarkupContent Layout */\n.monaco-hover ul {\n\tpadding-left: 20px;\n}\n.monaco-hover ol {\n\tpadding-left: 20px;\n}\n\n.monaco-hover li > p {\n\tmargin-bottom: 0;\n}\n\n.monaco-hover li > ul {\n\tmargin-top: 0;\n}\n\n.monaco-hover code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-hover .monaco-tokenized-source {\n\twhite-space: pre-wrap;\n}\n\n.monaco-hover .hover-row.status-bar {\n\tfont-size: 12px;\n\tline-height: 22px;\n}\n\n.monaco-hover .hover-row.status-bar .info {\n\tfont-style: italic;\n\tpadding: 0px 8px;\n}\n\n.monaco-hover .hover-row.status-bar .actions {\n\tdisplay: flex;\n\tpadding: 0px 8px;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container {\n\tmargin-right: 16px;\n\tcursor: pointer;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container .action .icon {\n\tpadding-right: 4px;\n}\n\n.monaco-hover .markdown-hover .hover-contents .codicon {\n\tcolor: inherit;\n\tfont-size: inherit;\n\tvertical-align: middle;\n}\n\n.monaco-hover .hover-contents a.code-link:hover,\n.monaco-hover .hover-contents a.code-link {\n\tcolor: inherit;\n}\n\n.monaco-hover .hover-contents a.code-link:before {\n\tcontent: '(';\n}\n\n.monaco-hover .hover-contents a.code-link:after {\n\tcontent: ')';\n}\n\n.monaco-hover .hover-contents a.code-link > span {\n\ttext-decoration: underline;\n\t/** Hack to force underline to show **/\n\tborder-bottom: 1px solid transparent;\n\ttext-underline-position: under;\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-hover .hover-contents a.code-link > span:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n/** Spans in markdown hovers need a margin-bottom to avoid looking cramped: https://github.com/microsoft/vscode/issues/101496 **/\n.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span {\n\tmargin-bottom: 4px;\n\tdisplay: inline-block;\n}\n\n.monaco-hover-content .action-container a {\n\t-webkit-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-hover-content .action-container.disabled {\n\tpointer-events: none;\n\topacity: 0.4;\n\tcursor: default;\n}\n",""]);const a=r},94269:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* ---------- Icon label ---------- */\n\n.monaco-icon-label {\n\tdisplay: flex; /* required for icons support :before rule */\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-icon-label::before {\n\n\t/* svg icons rendered as background image */\n\tbackground-size: 16px;\n\tbackground-position: left center;\n\tbackground-repeat: no-repeat;\n\tpadding-right: 6px;\n\twidth: 16px;\n\theight: 22px;\n\tline-height: inherit !important;\n\tdisplay: inline-block;\n\n\t/* fonts icons */\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tvertical-align: top;\n\n\tflex-shrink: 0; /* fix for https://github.com/microsoft/vscode/issues/13787 */\n}\n\n.monaco-icon-label-container.disabled {\n\tcolor: var(--vscode-disabledForeground);\n}\n.monaco-icon-label > .monaco-icon-label-container {\n\tmin-width: 0;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tflex: 1;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {\n\tcolor: inherit;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {\n\tmargin: 0 2px;\n\topacity: 0.5;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\topacity: .7;\n\tmargin-left: 0.5em;\n\tfont-size: 0.9em;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label.nowrap > .monaco-icon-label-container > .monaco-icon-description-container > .label-description{\n\twhite-space: nowrap\n}\n\n.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\topacity: .95;\n}\n\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\tfont-style: italic;\n}\n\n.monaco-icon-label.deprecated {\n\ttext-decoration: line-through;\n\topacity: 0.66;\n}\n\n/* make sure apply italic font style to decorations as well */\n.monaco-icon-label.italic::after {\n\tfont-style: italic;\n}\n\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\ttext-decoration: line-through;\n}\n\n.monaco-icon-label::after {\n\topacity: 0.75;\n\tfont-size: 90%;\n\tfont-weight: 600;\n\tmargin: auto 16px 0 5px; /* https://github.com/microsoft/vscode/issues/113223 */\n\ttext-align: center;\n}\n\n/* make sure selection color wins when a label is being selected */\n.monaco-list:focus .selected .monaco-icon-label, /* list */\n.monaco-list:focus .selected .monaco-icon-label::after\n{\n\tcolor: inherit !important;\n}\n\n.monaco-list-row.focused.selected .label-description,\n.monaco-list-row.selected .label-description {\n\topacity: .8;\n}\n",""]);const a=r},41188:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-inputbox {\n\tposition: relative;\n\tdisplay: block;\n\tpadding: 0;\n\tbox-sizing:\tborder-box;\n\tborder-radius: 2px;\n\n\t/* Customizable */\n\tfont-size: inherit;\n}\n\n.monaco-inputbox > .ibwrapper > .input,\n.monaco-inputbox > .ibwrapper > .mirror {\n\n\t/* Customizable */\n\tpadding: 4px 6px;\n}\n\n.monaco-inputbox > .ibwrapper {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-inputbox > .ibwrapper > .input {\n\tdisplay: inline-block;\n\tbox-sizing:\tborder-box;\n\twidth: 100%;\n\theight: 100%;\n\tline-height: inherit;\n\tborder: none;\n\tfont-family: inherit;\n\tfont-size: inherit;\n\tresize: none;\n\tcolor: inherit;\n}\n\n.monaco-inputbox > .ibwrapper > input {\n\ttext-overflow: ellipsis;\n}\n\n.monaco-inputbox > .ibwrapper > textarea.input {\n\tdisplay: block;\n\tscrollbar-width: none; /* Firefox: hide scrollbars */\n\toutline: none;\n}\n\n.monaco-inputbox > .ibwrapper > textarea.input::-webkit-scrollbar {\n\tdisplay: none; /* Chrome + Safari: hide scrollbar */\n}\n\n.monaco-inputbox > .ibwrapper > textarea.input.empty {\n\twhite-space: nowrap;\n}\n\n.monaco-inputbox > .ibwrapper > .mirror {\n\tposition: absolute;\n\tdisplay: inline-block;\n\twidth: 100%;\n\ttop: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twhite-space: pre-wrap;\n\tvisibility: hidden;\n\tword-wrap: break-word;\n}\n\n/* Context view */\n\n.monaco-inputbox-container {\n\ttext-align: right;\n}\n\n.monaco-inputbox-container .monaco-inputbox-message {\n\tdisplay: inline-block;\n\toverflow: hidden;\n\ttext-align: left;\n\twidth: 100%;\n\tbox-sizing:\tborder-box;\n\tpadding: 0.4em;\n\tfont-size: 12px;\n\tline-height: 17px;\n\tmargin-top: -1px;\n\tword-wrap: break-word;\n}\n\n/* Action bar support */\n.monaco-inputbox .monaco-action-bar {\n\tposition: absolute;\n\tright: 2px;\n\ttop: 4px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item {\n\tmargin-left: 2px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item .codicon {\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n}\n",""]);const a=r},72298:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-keybinding {\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 10px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n\tdisplay: inline-block;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-radius: 3px;\n\tvertical-align: middle;\n\tfont-size: 11px;\n\tpadding: 3px 5px;\n\tmargin: 0 2px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key:first-child {\n\tmargin-left: 0;\n}\n\n.monaco-keybinding > .monaco-keybinding-key:last-child {\n\tmargin-right: 0;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-separator {\n\tdisplay: inline-block;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\n\twidth: 6px;\n}\n",""]);const a=r},27703:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-list {\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n}\n\n.monaco-list.mouse-support {\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.monaco-list > .monaco-scrollable-element {\n\theight: 100%;\n}\n\n.monaco-list-rows {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-list.horizontal-scrolling .monaco-list-rows {\n\twidth: auto;\n\tmin-width: 100%;\n}\n\n.monaco-list-row {\n\tposition: absolute;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\twidth: 100%;\n}\n\n.monaco-list.mouse-support .monaco-list-row {\n\tcursor: pointer;\n\ttouch-action: none;\n}\n\n/* for OS X ballistic scrolling */\n.monaco-list-row.scrolling {\n\tdisplay: none !important;\n}\n\n/* Focus */\n.monaco-list.element-focused,\n.monaco-list.selection-single,\n.monaco-list.selection-multiple {\n\toutline: 0 !important;\n}\n\n/* Dnd */\n.monaco-drag-image {\n\tdisplay: inline-block;\n\tpadding: 1px 7px;\n\tborder-radius: 10px;\n\tfont-size: 12px;\n\tposition: absolute;\n\tz-index: 1000;\n}\n\n/* Filter */\n\n.monaco-list-type-filter-message {\n\tposition: absolute;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tpadding: 40px 1em 1em 1em;\n\ttext-align: center;\n\twhite-space: normal;\n\topacity: 0.7;\n\tpointer-events: none;\n}\n\n.monaco-list-type-filter-message:empty {\n\tdisplay: none;\n}\n",""]);const a=r},67548:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-mouse-cursor-text {\n\tcursor: text;\n}\n",""]);const a=r},64185:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-progress-container {\n\twidth: 100%;\n\theight: 5px;\n\toverflow: hidden; /* keep progress bit in bounds */\n}\n\n.monaco-progress-container .progress-bit {\n\twidth: 2%;\n\theight: 5px;\n\tposition: absolute;\n\tleft: 0;\n\tdisplay: none;\n}\n\n.monaco-progress-container.active .progress-bit {\n\tdisplay: inherit;\n}\n\n.monaco-progress-container.discrete .progress-bit {\n\tleft: 0;\n\ttransition: width 100ms linear;\n}\n\n.monaco-progress-container.discrete.done .progress-bit {\n\twidth: 100%;\n}\n\n.monaco-progress-container.infinite .progress-bit {\n\tanimation-name: progress;\n\tanimation-duration: 4s;\n\tanimation-iteration-count: infinite;\n\ttransform: translate3d(0px, 0px, 0px);\n\tanimation-timing-function: linear;\n}\n\n.monaco-progress-container.infinite.infinite-long-running .progress-bit {\n\t/*\n\t\tThe more smooth `linear` timing function can cause\n\t\thigher GPU consumption as indicated in\n\t\thttps://github.com/microsoft/vscode/issues/97900 &\n\t\thttps://github.com/microsoft/vscode/issues/138396\n\t*/\n\tanimation-timing-function: steps(100);\n}\n\n/**\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\n * its relative size to the parent container:\n * parent width: 5000%\n * bit width: 100%\n * translateX should be as follow:\n * 50%: 5000% * 50% - 50% (set to center) = 2450%\n * 100%: 5000% * 100% - 100% (do not overflow) = 4900%\n */\n@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4900%) scaleX(1) } }\n",""]);const a=r},91629:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n:root {\n\t--vscode-sash-size: 4px;\n}\n\n.monaco-sash {\n\tposition: absolute;\n\tz-index: 35;\n\ttouch-action: none;\n}\n\n.monaco-sash.disabled {\n\tpointer-events: none;\n}\n\n.monaco-sash.mac.vertical {\n\tcursor: col-resize;\n}\n\n.monaco-sash.vertical.minimum {\n\tcursor: e-resize;\n}\n\n.monaco-sash.vertical.maximum {\n\tcursor: w-resize;\n}\n\n.monaco-sash.mac.horizontal {\n\tcursor: row-resize;\n}\n\n.monaco-sash.horizontal.minimum {\n\tcursor: s-resize;\n}\n\n.monaco-sash.horizontal.maximum {\n\tcursor: n-resize;\n}\n\n.monaco-sash.disabled {\n\tcursor: default !important;\n\tpointer-events: none !important;\n}\n\n.monaco-sash.vertical {\n\tcursor: ew-resize;\n\ttop: 0;\n\twidth: var(--vscode-sash-size);\n\theight: 100%;\n}\n\n.monaco-sash.horizontal {\n\tcursor: ns-resize;\n\tleft: 0;\n\twidth: 100%;\n\theight: var(--vscode-sash-size);\n}\n\n.monaco-sash:not(.disabled) > .orthogonal-drag-handle {\n\tcontent: \" \";\n\theight: calc(var(--vscode-sash-size) * 2);\n\twidth: calc(var(--vscode-sash-size) * 2);\n\tz-index: 100;\n\tdisplay: block;\n\tcursor: all-scroll;\n\tposition: absolute;\n}\n\n.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)\n\t> .orthogonal-drag-handle.start,\n.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)\n\t> .orthogonal-drag-handle.end {\n\tcursor: nwse-resize;\n}\n\n.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)\n\t> .orthogonal-drag-handle.end,\n.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)\n\t> .orthogonal-drag-handle.start {\n\tcursor: nesw-resize;\n}\n\n.monaco-sash.vertical > .orthogonal-drag-handle.start {\n\tleft: calc(var(--vscode-sash-size) * -0.5);\n\ttop: calc(var(--vscode-sash-size) * -1);\n}\n.monaco-sash.vertical > .orthogonal-drag-handle.end {\n\tleft: calc(var(--vscode-sash-size) * -0.5);\n\tbottom: calc(var(--vscode-sash-size) * -1);\n}\n.monaco-sash.horizontal > .orthogonal-drag-handle.start {\n\ttop: calc(var(--vscode-sash-size) * -0.5);\n\tleft: calc(var(--vscode-sash-size) * -1);\n}\n.monaco-sash.horizontal > .orthogonal-drag-handle.end {\n\ttop: calc(var(--vscode-sash-size) * -0.5);\n\tright: calc(var(--vscode-sash-size) * -1);\n}\n\n.monaco-sash:before {\n\tcontent: '';\n\tpointer-events: none;\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: transparent;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-sash:before {\n\ttransition: background-color 0.1s ease-out;\n}\n\n.monaco-sash.hover:before,\n.monaco-sash.active:before {\n\tbackground: var(--vscode-sash-hoverBorder);\n}\n\n.monaco-sash.vertical:before {\n\twidth: var(--vscode-sash-hover-size);\n\tleft: calc(50% - (var(--vscode-sash-hover-size) / 2));\n}\n\n.monaco-sash.horizontal:before {\n\theight: var(--vscode-sash-hover-size);\n\ttop: calc(50% - (var(--vscode-sash-hover-size) / 2));\n}\n\n.pointer-events-disabled {\n\tpointer-events: none !important;\n}\n\n/** Debug **/\n\n.monaco-sash.debug {\n\tbackground: cyan;\n}\n\n.monaco-sash.debug.disabled {\n\tbackground: rgba(0, 255, 255, 0.2);\n}\n\n.monaco-sash.debug:not(.disabled) > .orthogonal-drag-handle {\n\tbackground: red;\n}\n",""]);const a=r},7198:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n\t/* In front of peek view */\n\tz-index: 11;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;\n}\n\n.monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: var(--vscode-scrollbarSlider-background);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: var(--vscode-scrollbarSlider-hoverBackground);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: var(--vscode-scrollbarSlider-activeBackground);\n}\n",""]);const a=r},46512:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-select-box {\n\twidth: 100%;\n\tcursor: pointer;\n\tborder-radius: 2px;\n}\n\n.monaco-select-box-dropdown-container {\n\tfont-size: 13px;\n\tfont-weight: normal;\n\ttext-transform: none;\n}\n\n/** Actions */\n\n.monaco-action-bar .action-item.select-container {\n\tcursor: default;\n}\n\n.monaco-action-bar .action-item .monaco-select-box {\n\tcursor: pointer;\n\tmin-width: 100px;\n\tmin-height: 18px;\n\tpadding: 2px 23px 2px 8px;\n}\n\n.mac .monaco-action-bar .action-item .monaco-select-box {\n\tfont-size: 11px;\n\tborder-radius: 5px;\n}\n",""]);const a=r},12675:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Use custom CSS vars to expose padding into parent select for padding calculation */\n.monaco-select-box-dropdown-padding {\n\t--dropdown-padding-top: 1px;\n\t--dropdown-padding-bottom: 1px;\n}\n\n.hc-black .monaco-select-box-dropdown-padding,\n.hc-light .monaco-select-box-dropdown-padding {\n\t--dropdown-padding-top: 3px;\n\t--dropdown-padding-bottom: 4px;\n}\n\n.monaco-select-box-dropdown-container {\n\tdisplay: none;\n\tbox-sizing:\tborder-box;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown * {\n\tmargin: 0;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:focus {\n\toutline: 1px solid -webkit-focus-ring-color;\n\toutline-offset: -1px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown code {\n\tline-height: 15px; /** For some reason, this is needed, otherwise will take up 20px height */\n\tfont-family: var(--monaco-monospace-font);\n}\n\n\n.monaco-select-box-dropdown-container.visible {\n\tdisplay: flex;\n\tflex-direction: column;\n\ttext-align: left;\n\twidth: 1px;\n\toverflow: hidden;\n\tborder-bottom-left-radius: 3px;\n\tborder-bottom-right-radius: 3px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\tflex: 0 0 auto;\n\talign-self: flex-start;\n\tpadding-top: var(--dropdown-padding-top);\n\tpadding-bottom: var(--dropdown-padding-bottom);\n\tpadding-left: 1px;\n\tpadding-right: 1px;\n\twidth: 100%;\n\toverflow: hidden;\n\tbox-sizing:\tborder-box;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane {\n\tpadding: 5px;\n}\n\n.hc-black .monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\tpadding-top: var(--dropdown-padding-top);\n\tpadding-bottom: var(--dropdown-padding-bottom);\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row {\n\tcursor: pointer;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-text {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-left: 3.5px;\n\twhite-space: nowrap;\n\tfloat: left;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-detail {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-left: 3.5px;\n\twhite-space: nowrap;\n\tfloat: left;\n\topacity: 0.7;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-decorator-right {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-right: 10px;\n\twhite-space: nowrap;\n\tfloat: right;\n}\n\n\n/* Accepted CSS hiding technique for accessibility reader text */\n/* https://webaim.org/techniques/css/invisiblecontent/ */\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .visually-hidden {\n\t\tposition: absolute;\n\t\tleft: -10000px;\n\t\ttop: auto;\n\t\twidth: 1px;\n\t\theight: 1px;\n\t\toverflow: hidden;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control {\n\tflex: 1 1 auto;\n\talign-self: flex-start;\n\topacity: 0;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div {\n\toverflow: hidden;\n\tmax-height: 0px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div > .option-text-width-control {\n\tpadding-left: 4px;\n\tpadding-right: 8px;\n\twhite-space: nowrap;\n}\n",""]);const a=r},82470:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-split-view2 {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-split-view2 > .sash-container {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tpointer-events: none;\n}\n\n.monaco-split-view2 > .sash-container > .monaco-sash {\n\tpointer-events: initial;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element {\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container {\n\twidth: 100%;\n\theight: 100%;\n\twhite-space: nowrap;\n\tposition: relative;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container > .split-view-view {\n\twhite-space: initial;\n\tposition: absolute;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container > .split-view-view:not(.visible) {\n\tdisplay: none;\n}\n\n.monaco-split-view2.vertical > .monaco-scrollable-element > .split-view-container > .split-view-view {\n\twidth: 100%;\n}\n\n.monaco-split-view2.horizontal > .monaco-scrollable-element > .split-view-container > .split-view-view {\n\theight: 100%;\n}\n\n.monaco-split-view2.separator-border > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\n\tcontent: ' ';\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 5;\n\tpointer-events: none;\n\tbackground-color: var(--separator-border);\n}\n\n.monaco-split-view2.separator-border.horizontal > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\n\theight: 100%;\n\twidth: 1px;\n}\n\n.monaco-split-view2.separator-border.vertical > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\n\theight: 1px;\n\twidth: 100%;\n}\n",""]);const a=r},1728:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-table {\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n\toverflow: hidden;\n}\n\n.monaco-table > .monaco-split-view2 {\n\tborder-bottom: 1px solid transparent;\n}\n\n.monaco-table > .monaco-list {\n\tflex: 1;\n}\n\n.monaco-table-tr {\n\tdisplay: flex;\n\theight: 100%;\n}\n\n.monaco-table-th {\n\twidth: 100%;\n\theight: 100%;\n\tfont-weight: bold;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-table-th,\n.monaco-table-td {\n\tbox-sizing: border-box;\n\tflex-shrink: 0;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\tcontent: "";\n\tposition: absolute;\n\tleft: calc(var(--vscode-sash-size) / 2);\n\twidth: 0;\n\tborder-left: 1px solid transparent;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\ttransition: border-color 0.2s ease-out;\n}\n',""]);const a=r},16310:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-custom-toggle {\n\tmargin-left: 2px;\n\tfloat: left;\n\tcursor: pointer;\n\toverflow: hidden;\n\twidth: 20px;\n\theight: 20px;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tpadding: 1px;\n\tbox-sizing:\tborder-box;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.monaco-custom-toggle:hover {\n\tbackground-color: var(--vscode-inputOption-hoverBackground);\n}\n\n.hc-black .monaco-custom-toggle:hover,\n.hc-light .monaco-custom-toggle:hover {\n\tborder: 1px dashed var(--vscode-focusBorder);\n}\n\n.hc-black .monaco-custom-toggle,\n.hc-light .monaco-custom-toggle {\n\tbackground: none;\n}\n\n.hc-black .monaco-custom-toggle:hover,\n.hc-light .monaco-custom-toggle:hover {\n\tbackground: none;\n}\n\n.monaco-custom-toggle.monaco-checkbox {\n\theight: 18px;\n\twidth: 18px;\n\tborder: 1px solid transparent;\n\tborder-radius: 3px;\n\tmargin-right: 9px;\n\tmargin-left: 0px;\n\tpadding: 0px;\n\topacity: 1;\n\tbackground-size: 16px !important;\n}\n\n/* hide check when unchecked */\n.monaco-custom-toggle.monaco-checkbox:not(.checked)::before {\n\tvisibility: hidden;\n}\n",""]);const a=r},56651:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-toolbar {\n\theight: 100%;\n}\n\n.monaco-toolbar .toolbar-toggle-more {\n\tdisplay: inline-block;\n\tpadding: 0;\n}\n",""]);const a=r},61766:(e,t,n)=>{n.d(t,{Z:()=>a});var i=n(8081),o=n.n(i),s=n(23645),r=n.n(s)()(o());r.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-tl-row {\n\tdisplay: flex;\n\theight: 100%;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-tl-row.disabled {\n\tcursor: default;\n}\n.monaco-tl-indent {\n\theight: 100%;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 16px;\n\tpointer-events: none;\n}\n\n.hide-arrows .monaco-tl-indent {\n\tleft: 12px;\n}\n\n.monaco-tl-indent > .indent-guide {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\theight: 100%;\n\tborder-left: 1px solid transparent;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-tl-indent > .indent-guide {\n\ttransition: border-color 0.1s linear;\n}\n\n.monaco-tl-twistie,\n.monaco-tl-contents {\n\theight: 100%;\n}\n\n.monaco-tl-twistie {\n\tfont-size: 10px;\n\ttext-align: right;\n\tpadding-right: 6px;\n\tflex-shrink: 0;\n\twidth: 16px;\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\ttransform: translateX(3px);\n}\n\n.monaco-tl-contents {\n\tflex: 1;\n\toverflow: hidden;\n}\n\n.monaco-tl-twistie::before {\n\tborder-radius: 20px;\n}\n\n.monaco-tl-twistie.collapsed::before {\n\ttransform: rotate(-90deg);\n}\n\n.monaco-tl-twistie.codicon-tree-item-loading::before {\n\t/* Use steps to throttle FPS to reduce CPU usage */\n\tanimation: codicon-spin 1.25s steps(30) infinite;\n}\n\n.monaco-tree-type-filter {\n\tposition: absolute;\n\ttop: 0;\n\tdisplay: flex;\n\tpadding: 3px;\n\tmax-width: 200px;\n\tz-index: 100;\n\tmargin: 0 6px;\n\tborder: 1px solid var(--vscode-widget-border);\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter {\n\ttransition: top 0.3s;\n}\n\n.monaco-tree-type-filter.disabled {\n\ttop: -40px !important;\n}\n\n.monaco-tree-type-filter-grab {\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: grab;\n\tmargin-right: 2px;\n}\n\n.monaco-tree-type-filter-grab.grabbing {\n\tcursor: grabbing;\n}\n\n.monaco-tree-type-filter-input {\n\tflex: 1;\n}\n\n.monaco-tree-type-filter-input .monaco-inputbox {\n\theight: 23px;\n}\n\n.monaco-tree-type-filter-input .monaco-inputbox > .ibwrapper > .input,\n.monaco-tree-type-filter-input .monaco-inputbox > .ibwrapper > .mirror {\n\tpadding: 2px 4px;\n}\n\n.monaco-tree-type-filter-input .monaco-findInput > .controls {\n\ttop: 2px;\n}\n\n.monaco-tree-type-filter-actionbar {\n\tmargin-left: 4px;\n}\n\n.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label {\n\tpadding: 2px;\n}\n",""]);const a=r},16268:(e,t,n)=>{n.r(t),n.d(t,{PixelRatio:()=>c,addMatchMediaChangeListener:()=>l,getZoomFactor:()=>d,isAndroid:()=>_,isChrome:()=>m,isElectron:()=>b,isFirefox:()=>h,isSafari:()=>g,isStandalone:()=>v,isWebKit:()=>p,isWebkitWebView:()=>f});var i=n(4669),o=n(5976);class s{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}s.INSTANCE=new s;class r extends o.JT{constructor(){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;null===(t=this._mediaQueryList)||void 0===t||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class a extends o.JT{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new i.Q5),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new r);this._register(e.onDidChange((()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)})))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}function l(e,t){"string"==typeof e&&(e=window.matchMedia(e)),e.addEventListener("change",t)}const c=new class{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=(0,o.dk)(new a)),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}};function d(){return s.INSTANCE.getZoomFactor()}const u=navigator.userAgent,h=u.indexOf("Firefox")>=0,p=u.indexOf("AppleWebKit")>=0,m=u.indexOf("Chrome")>=0,g=!m&&u.indexOf("Safari")>=0,f=!m&&!g&&p,b=u.indexOf("Electron/")>=0,_=u.indexOf("Android")>=0;let x=!1;if(window.matchMedia){const e=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=window.matchMedia("(display-mode: fullscreen)");x=e.matches,l(e,(({matches:e})=>{x&&t.matches||(x=e)}))}function v(){return x}},10161:(e,t,n)=>{n.d(t,{D:()=>s});var i=n(16268),o=n(1432);const s={clipboard:{writeText:o.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.tY||i.isStandalone()?0:navigator.keyboard||i.isSafari?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},80699:(e,t,n)=>{n.d(t,{H:()=>a});var i,o=n(18352);const s=null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy("defaultWorkerFactory",{createScriptURL:e=>e});class r{constructor(e,t,n,i,o){this.id=t;const r=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){const n=t.getWorkerUrl("workerMain.js",e);return new Worker(s?s.createScriptURL(n):n,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(n);"function"==typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){i(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)}))}getId(){return this.id}postMessage(e,t){var n;null===(n=this.worker)||void 0===n||n.then((n=>n.postMessage(e,t)))}dispose(){var e;null===(e=this.worker)||void 0===e||e.then((e=>e.terminate())),this.worker=null}}class a{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,n){const i=++a.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new r(e,i,this._label||"anonymous"+i,t,(e=>{(0,o.HZ)(e),this._webWorkerFailedBeforeError=e,n(e)}))}}a.LAST_WORKER_ID=0},23547:(e,t,n)=>{n.d(t,{g:()=>i});const i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:n(81170).v.text}},65321:(e,t,n)=>{n.d(t,{$:()=>ae,$Z:()=>ce,Ay:()=>z,Ce:()=>ne,Cp:()=>de,D6:()=>E,Dx:()=>k,FK:()=>R,Fx:()=>P,GQ:()=>x,I8:()=>I,If:()=>L,OO:()=>$,PO:()=>p,R3:()=>te,Re:()=>j,Ro:()=>C,Uh:()=>ue,Uw:()=>m,V3:()=>he,XT:()=>fe,_0:()=>Q,_F:()=>be,_h:()=>ge,_q:()=>xe,cl:()=>Y,dS:()=>H,dp:()=>T,eg:()=>ve,fk:()=>V,go:()=>ee,h:()=>we,i:()=>A,iJ:()=>le,jL:()=>y,jg:()=>F,jt:()=>pe,lI:()=>v,mc:()=>ie,mu:()=>_,nm:()=>f,sQ:()=>_e,tw:()=>G,uN:()=>W,uU:()=>M,vL:()=>X,vY:()=>U,w:()=>N,wY:()=>me,wn:()=>O,xQ:()=>D,zB:()=>Z});var i=n(16268),o=n(10161),s=n(59069),r=n(7448),a=n(17301),l=n(4669),c=n(70921),d=n(5976),u=n(66663),h=n(1432);function p(e){for(;e.firstChild;)e.firstChild.remove()}function m(e){var t;return null!==(t=null==e?void 0:e.isConnected)&&void 0!==t&&t}class g{constructor(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function f(e,t,n,i){return new g(e,t,n,i)}function b(e){return function(t){return e(new r.n(t))}}const _=function(e,t,n,i){let o=n;return"click"===t||"mousedown"===t?o=b(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new s.y(t))}}(n)),f(e,t,o,i)},x=function(e,t,n){return function(e,t,n){return f(e,h.gn&&o.D.pointerEvents?G.POINTER_DOWN:G.MOUSE_DOWN,t,n)}(e,b(t),n)};let v,y;class w{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,a.dL)(e)}}static sort(e,t){return t.priority-e.priority}}function k(e){return document.defaultView.getComputedStyle(e,null)}function E(e){if(e!==document.body)return new C(e.clientWidth,e.clientHeight);if(h.gn&&window.visualViewport)return new C(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new C(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new C(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new C(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}!function(){let e=[],t=null,n=!1,i=!1;const o=()=>{for(n=!1,t=e,e=[],i=!0;t.length>0;){t.sort(w.sort);t.shift().execute()}i=!1};y=(t,i=0)=>{const s=new w(t,i);return e.push(s),n||(n=!0,requestAnimationFrame(o)),s},v=(e,n)=>{if(i){const i=new w(e,n);return t.push(i),i}return y(e,n)}}();class S{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){const i=k(e),o=i?i.getPropertyValue(t):"0";return S.convertToPixels(e,o)}static getBorderLeftWidth(e){return S.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return S.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return S.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return S.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return S.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return S.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return S.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return S.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return S.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return S.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return S.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return S.getDimension(e,"margin-bottom","marginBottom")}}class C{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new C(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof C?e:new C(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function D(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;const o=B(e)?null:k(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=S.getBorderLeftWidth(e),n+=S.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function T(e,t,n){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof n&&(e.style.height=`${n}px`)}function A(e){const t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY,width:t.width,height:t.height}}function I(e){let t=e,n=1;do{const e=k(t).zoom;null!=e&&"1"!==e&&(n*=e),t=t.parentElement}while(null!==t&&t!==document.documentElement);return n}function N(e){const t=S.getMarginLeft(e)+S.getMarginRight(e);return e.offsetWidth+t}function R(e){const t=S.getBorderLeftWidth(e)+S.getBorderRightWidth(e),n=S.getPaddingLeft(e)+S.getPaddingRight(e);return e.offsetWidth-t-n}function L(e){const t=S.getBorderTopWidth(e)+S.getBorderBottomWidth(e),n=S.getPaddingTop(e)+S.getPaddingBottom(e);return e.offsetHeight-t-n}function O(e){const t=S.getMarginTop(e)+S.getMarginBottom(e);return e.offsetHeight+t}function F(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function P(e,t,n){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(n)if("string"==typeof n){if(e.classList.contains(n))return null}else if(e===n)return null;e=e.parentNode}return null}function M(e,t,n){return!!P(e,t,n)}function B(e){return e&&!!e.host&&!!e.mode}function $(e){return!!z(e)}function z(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return B(e)?e:null}function U(){let e=document.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function H(e=document.getElementsByTagName("head")[0],t){const n=document.createElement("style");return n.type="text/css",n.media="screen",null==t||t(n),e.appendChild(n),n}C.None=new C(0,0);let q=null;function K(){return q||(q=H()),q}function V(e,t,n=K()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function W(e,t=K()){if(!t)return;const n=function(e){var t,n;return(null===(t=null==e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(n=null==e?void 0:e.sheet)||void 0===n?void 0:n.cssRules)?e.sheet.cssRules:[]}(t),i=[];for(let t=0;t=0;e--)t.sheet.deleteRule(i[e])}function j(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}const G={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:i.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:i.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i.isWebKit?"webkitAnimationIteration":"animationiteration"};function Y(e){const t=e;return!(!t||"function"!=typeof t.preventDefault||"function"!=typeof t.stopPropagation)}const Z={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function X(e){const t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function Q(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}class J extends d.JT{static hasFocusWithin(e){const t=z(e);return F(t?t.activeElement:document.activeElement,e)}constructor(e){super(),this._onDidFocus=this._register(new l.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l.Q5),this.onDidBlur=this._onDidBlur.event;let t=J.hasFocusWithin(e),n=!1;const i=()=>{n=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(n=!0,window.setTimeout((()=>{n&&(n=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{J.hasFocusWithin(e)!==t&&(t?o():i())},this._register(f(e,G.FOCUS,i,!0)),this._register(f(e,G.BLUR,o,!0)),this._register(f(e,G.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(f(e,G.FOCUS_OUT,(()=>this._refreshStateHandler())))}}function ee(e){return new J(e)}function te(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function ne(e,t){return e.insertBefore(t,e.firstChild),t}function ie(e,...t){e.innerText="",te(e,...t)}const oe=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var se;function re(e,t,n,...i){const o=oe.exec(t);if(!o)throw new Error("Bad use of emmet");const s=o[1]||"div";let r;return r=e!==se.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),n&&Object.entries(n).forEach((([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))})),r.append(...i),r}function ae(e,t,...n){return re(se.HTML,e,t,...n)}function le(e,...t){e?ce(...t):de(...t)}function ce(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function de(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function ue(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function he(e){window.open(e,"_blank","noopener")}function pe(e){const t=()=>{e(),n=y(t)};let n=y(t);return(0,d.OF)((()=>n.dispose()))}function me(e){return e?`url('${u.Gi.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ge(e){return`'${e.replace(/'/g,"%27")}'`}function fe(e,t){if(void 0!==e){const n=e.match(/^\s*var\((.+)\)$/);if(n){const e=n[1].split(",",2);return 2===e.length&&(t=fe(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function be(e,t=!1){const n=document.createElement("a");return c.v5("afterSanitizeAttributes",(i=>{for(const o of["href","src"])if(i.hasAttribute(o)){const s=i.getAttribute(o);if("href"===o&&s.startsWith("#"))continue;if(n.href=s,!e.includes(n.protocol.replace(/:$/,""))){if(t&&"src"===o&&n.href.startsWith("data:"))continue;i.removeAttribute(o)}}})),(0,d.OF)((()=>{c.ok("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(se||(se={})),ae.SVG=function(e,t,...n){return re(se.SVG,e,t,...n)},u.WX.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");const _e=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class xe extends l.Q5{constructor(){super(),this._subscriptions=new d.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(f(window,"keydown",(e=>{if(e.defaultPrevented)return;const t=new s.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),this._subscriptions.add(f(window,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),this._subscriptions.add(f(document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),this._subscriptions.add(f(document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),this._subscriptions.add(f(document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),this._subscriptions.add(f(window,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return xe.instance||(xe.instance=new xe),xe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class ve extends d.JT{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this._register(f(this.element,G.DRAG_ENTER,(e=>{this.counter++,this.dragStartTime=e.timeStamp,this.callbacks.onDragEnter(e)}))),this._register(f(this.element,G.DRAG_OVER,(e=>{var t,n;e.preventDefault(),null===(n=(t=this.callbacks).onDragOver)||void 0===n||n.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(f(this.element,G.DRAG_LEAVE,(e=>{this.counter--,0===this.counter&&(this.dragStartTime=0,this.callbacks.onDragLeave(e))}))),this._register(f(this.element,G.DRAG_END,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDragEnd(e)}))),this._register(f(this.element,G.DROP,(e=>{this.counter=0,this.dragStartTime=0,this.callbacks.onDrop(e)})))}}const ye=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function we(e,...t){let n,i;Array.isArray(t[0])?(n={},i=t[0]):(n=t[0]||{},i=t[1]);const o=ye.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElement(s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const e of o.groups.class.split("."))""!==e&&a.push(e);if(void 0!==n.className)for(const e of n.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),i)for(const e of i)e instanceof HTMLElement?r.appendChild(e):"string"==typeof e?r.append(e):(Object.assign(l,e),r.appendChild(e.root));for(const[e,t]of Object.entries(n))if("className"!==e)if("style"===e)for(const[e,n]of Object.entries(t))r.style.setProperty(ke(e),"number"==typeof n?n+"px":""+n);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(ke(e),t.toString());return l.root=r,l}function ke(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},70921:(e,t,n)=>{n.d(t,{Nw:()=>X,ok:()=>J,v5:()=>Q});var i=Object.hasOwnProperty,o=Object.setPrototypeOf,s=Object.isFrozen,r=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor,l=Object.freeze,c=Object.seal,d=Object.create,u="undefined"!=typeof Reflect&&Reflect,h=u.apply,p=u.construct;h||(h=function(e,t,n){return e.apply(t,n)}),l||(l=function(e){return e}),c||(c=function(e){return e}),p||(p=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),o=1;o/gm),H=c(/^data-[\-\w.\u00B7-\uFFFF]/),q=c(/^aria-[\-\w]+$/),K=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=c(/^(?:\w+script|data):/i),W=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function G(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:Y(),n=function(t){return e(t)};if(n.version="2.3.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var i=t.document,o=t.document,s=t.DocumentFragment,r=t.HTMLTemplateElement,a=t.Node,c=t.Element,d=t.NodeFilter,u=t.NamedNodeMap,h=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,p=t.Text,m=t.Comment,S=t.DOMParser,Z=t.trustedTypes,X=c.prototype,Q=T(X,"cloneNode"),J=T(X,"nextSibling"),ee=T(X,"childNodes"),te=T(X,"parentNode");if("function"==typeof r){var ne=o.createElement("template");ne.content&&ne.content.ownerDocument&&(o=ne.content.ownerDocument)}var ie=function(e,t){if("object"!==(void 0===e?"undefined":j(e))||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(Z,i),oe=ie&&Pe?ie.createHTML(""):"",se=o,re=se.implementation,ae=se.createNodeIterator,le=se.createDocumentFragment,ce=se.getElementsByTagName,de=i.importNode,ue={};try{ue=D(o).documentMode?o.documentMode:{}}catch(e){}var he={};n.isSupported="function"==typeof te&&re&&void 0!==re.createHTMLDocument&&9!==ue;var pe=z,me=U,ge=H,fe=q,be=V,_e=W,xe=K,ve=null,ye=C({},[].concat(G(A),G(I),G(N),G(L),G(F))),we=null,ke=C({},[].concat(G(P),G(M),G(B),G($))),Ee=null,Se=null,Ce=!0,De=!0,Te=!1,Ae=!1,Ie=!1,Ne=!1,Re=!1,Le=!1,Oe=!1,Fe=!0,Pe=!1,Me=!0,Be=!0,$e=!1,ze={},Ue=null,He=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),qe=null,Ke=C({},["audio","video","img","source","image","track"]),Ve=null,We=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),je="http://www.w3.org/1998/Math/MathML",Ge="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",Ze=Ye,Xe=!1,Qe=null,Je=o.createElement("form"),et=function(e){Qe&&Qe===e||(e&&"object"===(void 0===e?"undefined":j(e))||(e={}),e=D(e),ve="ALLOWED_TAGS"in e?C({},e.ALLOWED_TAGS):ye,we="ALLOWED_ATTR"in e?C({},e.ALLOWED_ATTR):ke,Ve="ADD_URI_SAFE_ATTR"in e?C(D(We),e.ADD_URI_SAFE_ATTR):We,qe="ADD_DATA_URI_TAGS"in e?C(D(Ke),e.ADD_DATA_URI_TAGS):Ke,Ue="FORBID_CONTENTS"in e?C({},e.FORBID_CONTENTS):He,Ee="FORBID_TAGS"in e?C({},e.FORBID_TAGS):{},Se="FORBID_ATTR"in e?C({},e.FORBID_ATTR):{},ze="USE_PROFILES"in e&&e.USE_PROFILES,Ce=!1!==e.ALLOW_ARIA_ATTR,De=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.SAFE_FOR_TEMPLATES||!1,Ie=e.WHOLE_DOCUMENT||!1,Le=e.RETURN_DOM||!1,Oe=e.RETURN_DOM_FRAGMENT||!1,Fe=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,Re=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Be=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,xe=e.ALLOWED_URI_REGEXP||xe,Ze=e.NAMESPACE||Ye,Ae&&(De=!1),Oe&&(Le=!0),ze&&(ve=C({},[].concat(G(F))),we=[],!0===ze.html&&(C(ve,A),C(we,P)),!0===ze.svg&&(C(ve,I),C(we,M),C(we,$)),!0===ze.svgFilters&&(C(ve,N),C(we,M),C(we,$)),!0===ze.mathMl&&(C(ve,L),C(we,B),C(we,$))),e.ADD_TAGS&&(ve===ye&&(ve=D(ve)),C(ve,e.ADD_TAGS)),e.ADD_ATTR&&(we===ke&&(we=D(we)),C(we,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&C(Ve,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Ue===He&&(Ue=D(Ue)),C(Ue,e.FORBID_CONTENTS)),Be&&(ve["#text"]=!0),Ie&&C(ve,["html","head","body"]),ve.table&&(C(ve,["tbody"]),delete Ee.tbody),l&&l(e),Qe=e)},tt=C({},["mi","mo","mn","ms","mtext"]),nt=C({},["foreignobject","desc","title","annotation-xml"]),it=C({},I);C(it,N),C(it,R);var ot=C({},L);C(ot,O);var st=function(e){b(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},rt=function(e,t){try{b(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){b(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!we[e])if(Le||Oe)try{st(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},at=function(e){var t=void 0,n=void 0;if(Re)e=""+e;else{var i=x(e,/^[\r\n\t ]+/);n=i&&i[0]}var s=ie?ie.createHTML(e):e;if(Ze===Ye)try{t=(new S).parseFromString(s,"text/html")}catch(e){}if(!t||!t.documentElement){t=re.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Xe?"":s}catch(e){}}var r=t.body||t.documentElement;return e&&n&&r.insertBefore(o.createTextNode(n),r.childNodes[0]||null),Ze===Ye?ce.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:r},lt=function(e){return ae.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},ct=function(e){return"object"===(void 0===a?"undefined":j(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":j(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},dt=function(e,t,i){he[e]&&g(he[e],(function(e){e.call(n,t,i,Qe)}))},ut=function(e){var t,i=void 0;if(dt("beforeSanitizeElements",e,null),!((t=e)instanceof p||t instanceof m||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof h&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore))return st(e),!0;if(x(e.nodeName,/[\u0080-\uFFFF]/))return st(e),!0;var o=_(e.nodeName);if(dt("uponSanitizeElement",e,{tagName:o,allowedTags:ve}),!ct(e.firstElementChild)&&(!ct(e.content)||!ct(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return st(e),!0;if("select"===o&&k(/