@next-core/brick-container 3.20.1-beta.0 → 3.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.b87d75b5.js +2 -0
- package/dist/{core.6e814c1a.js.map → core.b87d75b5.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/main.e26c03de.js +2 -0
- package/dist/main.e26c03de.js.map +1 -0
- package/dist/polyfill.f50be8c2.js +1 -0
- package/dist/preview/core.8e1596ea.js +1 -0
- package/dist/preview/{core.97bdd91c.js.map → core.8e1596ea.js.map} +1 -1
- package/dist/preview/index.html +1 -1
- package/dist/preview/main.5a4d2022.js +1 -0
- package/dist/preview/main.5a4d2022.js.map +1 -0
- package/dist/preview/vendors.e62a1342.js +2 -0
- package/dist/vendors.7ed12e23.js +2 -0
- package/package.json +14 -14
- package/dist/core.6e814c1a.js +0 -2
- package/dist/main.b96724f5.js +0 -2
- package/dist/main.b96724f5.js.map +0 -1
- package/dist/polyfill.260875a9.js +0 -1
- package/dist/preview/core.97bdd91c.js +0 -1
- package/dist/preview/main.e77337a0.js +0 -1
- package/dist/preview/main.e77337a0.js.map +0 -1
- package/dist/preview/vendors.dd2c2296.js +0 -2
- package/dist/vendors.a861cd44.js +0 -2
- /package/dist/preview/{vendors.dd2c2296.js.LICENSE.txt → vendors.e62a1342.js.LICENSE.txt} +0 -0
- /package/dist/{vendors.a861cd44.js.LICENSE.txt → vendors.7ed12e23.js.LICENSE.txt} +0 -0
package/dist/vendors.a861cd44.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see vendors.a861cd44.js.LICENSE.txt */
|
|
2
|
-
(globalThis.webpackChunk_next_core_brick_container=globalThis.webpackChunk_next_core_brick_container||[]).push([[96],{4306:(t,e,r)=>{"use strict";r.r(e),r.d(e,{pipes:()=>n,utils:()=>s});var s={};r.r(s),r.d(s,{convertUnitValueByPrecision:()=>Et,formatUnitValue:()=>Ct});var n={};function i(t,e){return t+e}function a(t){return"0"!==t&&Boolean(t)}r.r(n),r.d(n,{add:()=>i,atobUnicode:()=>Dt,bool:()=>o,boolean:()=>a,btoaUnicode:()=>Ft,cmdbInstanceShowName:()=>c,countBy:()=>l,datetime:()=>d,deltaTime:()=>y,divide:()=>g,equal:()=>v,find:()=>x,findIndex:()=>b,findLast:()=>w,findLastIndex:()=>P,get:()=>T,graphTree:()=>S,groupBy:()=>_,groupByToIndex:()=>N,includes:()=>I,join:()=>M,json:()=>L,jsonStringify:()=>O,keyBy:()=>D,map:()=>F,mapToArray:()=>j,mergeArrayByKey:()=>R,multiply:()=>Y,not:()=>U,nullish:()=>H,number:()=>W,parseTimeRange:()=>z,randomString:()=>V,reverse:()=>q,round:()=>Ot,slice:()=>$,sort:()=>K,split:()=>J,string:()=>G,substr:()=>X,substring:()=>Z,subtract:()=>Q,ternary:()=>tt,uniq:()=>et,unitFormat:()=>Nt,yaml:()=>Mt,yamlStringify:()=>Lt});var o=a;function c(t){if(Array.isArray(t)){var e=t[0]||"-",r=t.slice(1,t.length).join(",");return r?e+"("+r+")":e}return t}var u=r(1030);function l(t,e){return(0,u.countBy)(t,e)}var h=r(8297),p=r.n(h);function d(t,e){return p()(t).format(e)}function f(t){return"object"==typeof t&&null!==t}function m(t,e){return"number"==typeof t?p()(t):p()(t,e)}function y(t,e,r){if(void 0===e&&(e=!0),void 0===r&&(r="YYYY-MM-DD HH:mm:ss"),!t)return"";if(f(t)&&t.startTime&&t.endTime){var s=m(t.startTime,r),n=m(t.endTime,r);return p().duration(n.diff(s)).humanize(e)}var i=m(f(t)?t.startTime||t.endTime:t,r);return p().duration(i.diff(p()())).humanize(e)}function g(t,e){return t/e}function v(t,e){return(0,u.isEqual)(t,e)}function x(t,e,r){return(0,u.find)(t,e,r)}function b(t,e,r){return(0,u.findIndex)(t,e,r)}function w(t,e,r){return(0,u.findLast)(t,e,r)}function P(t,e,r){return(0,u.findLastIndex)(t,e,r)}function T(t,e,r){return(0,u.get)(t,e,r)}function S(t,e){var r,s;if(!t)return[];var n=null==e?void 0:e.sort,i=(0,u.groupBy)(t.edges,"out"),a=function(e){var r=i[e.instanceId];if((0,u.forEach)(r,(function(r){var s=r.out_name,n=(0,u.find)(t.vertices,["instanceId",r.in]);if(n){var i=a(n);e[s]?e[s].push(i):e[s]=[i]}})),n){var s=(0,u.uniq)((0,u.map)(r,"out_name"));(0,u.forEach)(s,(function(t){(0,u.isEmpty)(e[t])||(e[t]=(0,u.orderBy)(e[t],(function(t){var e;return null!==(e=(0,u.get)(t,n.key))&&void 0!==e?e:-1/0}),-1===n.order?"desc":"asc"))}))}return e};return null!==(s=null===(r=t.topic_vertices)||void 0===r?void 0:r.map((function(t){return a(t)})))&&void 0!==s?s:[]}function _(t,e){return(0,u.groupBy)(t,e)}var A,k,E=function(){return E=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},E.apply(this,arguments)};function C(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var s=Array(t),n=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,o=i.length;a<o;a++,n++)s[n]=i[a];return s}function N(t,e,r){var s=t;if(!(0,u.isNil)(e)&&!(0,u.isNil)(r)){var n=(0,u.groupBy)(t,e),i=(0,u.keys)(n).sort();s=s.map((function(t){var s=E({},t);return(0,u.set)(s,r,(0,u.indexOf)(i,(0,u.get)(t,e))),s}))}return s}function I(t,e){return t.includes(e)}function M(t,e){return void 0===e&&(e=","),Array.isArray(t)?t.join(e):""}function L(t){if((0,u.isNil)(t))return t;try{return JSON.parse(t)}catch(t){return void console.error(t)}}function O(t,e){void 0===e&&(e=2);try{return JSON.stringify(t,null,e)}catch(t){return void console.error(t)}}function D(t,e){return(0,u.keyBy)(t,e)}function F(t,e){return Array.isArray(t)?t.map((function(t){return(0,u.get)(t,e)})):[]}function j(t,e,r){return"object"==typeof t&&t?Object.entries(t).map((function(t){var s,n=t[0],i=t[1];return(s={})[e]=n,s[r]=i,s})):[]}function R(t,e){return t.reduce((function(t,r){return Object.values((0,u.mergeWith)((0,u.keyBy)(t,e),(0,u.keyBy)(r,e),B))}),[])}function B(t,e){if((0,u.isArray)(t))return t.concat(e)}function Y(t,e){return t*e}function U(t){return!t}function H(t,e){return null!=t?t:e}function W(t){return Number(t)}function z(t){if("now/d"===t)return+p()().startOf("day");if("now/y"===t)return+p()().startOf("year");var e=/^now-(\d+)(\w+)/.exec(t);if(null!==e){var r=e[1],s=e[2];return+p()().subtract(r,s)}return t?+t:+p()()}function V(t,e){t=t>0?t:8,e="string"==typeof e?e:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var r="",s=0;s<t;s++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}function q(t){return Array.isArray(t)?t.slice().reverse():[]}function $(t,e,r){return t.slice(e,r)}function K(t,e){return Array.isArray(t)?(0,u.sortBy)(t,e):[]}function J(t,e){return"string"==typeof t?t.split(e):[]}function G(t){return null==t?"":String(t)}function X(t,e,r){return"string"==typeof t?t.substr(e,r):""}function Z(t,e,r){return"string"==typeof t?t.substring(e,r):""}function Q(t,e){return t-e}function tt(t,e,r){return t?e:r}function et(t){return(0,u.uniq)(t)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(t){t.Time="time",t.Byte="byte",t.Bibyte="bibyte",t.BitRate="bitRate",t.ByteRate="byteRate"}(A||(A={})),function(t){t.Percent1="percent(1)",t.Percent100="percent(100)"}(k||(k={}));var rt,st=[k.Percent1,k.Percent100];!function(t){t.Bytes="bytes",t.Kilobytes="kilobytes",t.Megabytes="megabytes",t.Gigabytes="gigabytes",t.Terabytes="terabytes",t.Petabytes="petabytes",t.Bibytes="bibytes",t.Kibibytes="kibibytes",t.Mebibytes="mebibytes",t.Gibibytes="gibibytes",t.Tebibytes="tebibytes",t.Pebibytes="pebibytes",t.b="b",t.B="B",t.KB="KB",t.MB="MB",t.GB="GB"}(rt||(rt={}));var nt,it=[{id:rt.Bytes,alias:["B","bytes(B)"],divisor:1,display:"B"},{id:rt.Kilobytes,alias:["KB","kilobytes(KB)"],divisor:1e3,display:"KB"},{id:rt.Megabytes,alias:["MB","megabytes(MB)"],divisor:Math.pow(1e3,2),display:"MB"},{id:rt.Gigabytes,alias:["GB","gigabytes(GB)"],divisor:Math.pow(1e3,3),display:"GB"},{id:rt.Terabytes,alias:["TB","terabytes(TB)"],divisor:Math.pow(1e3,4),display:"TB"},{id:rt.Petabytes,alias:["PB","petabytes(PB)"],divisor:Math.pow(1e3,5),display:"PB"}],at=[{id:rt.Bibytes,alias:["B","bibytes(B)"],divisor:1,display:"B"},{id:rt.Kibibytes,alias:["KiB","kibibytes(KiB)"],divisor:1024,display:"KiB"},{id:rt.Mebibytes,alias:["MiB","mebibytes(MiB)"],divisor:Math.pow(1024,2),display:"MiB"},{id:rt.Gibibytes,alias:["GiB","gibibytes(GiB)"],divisor:Math.pow(1024,3),display:"GiB"},{id:rt.Tebibytes,alias:["TiB","tebibytes(TiB)"],divisor:Math.pow(1024,4),display:"TiB"},{id:rt.Pebibytes,alias:["PiB","pebibytes(PiB)"],divisor:Math.pow(1024,5),display:"PiB"}],ot=[{id:rt.b,divisor:1,display:"b"},{id:rt.B,divisor:8,display:"B"},{id:rt.KB,divisor:8192,display:"KB"},{id:rt.MB,divisor:8388608,display:"MB"},{id:rt.GB,divisor:8589934592,display:"GB"}];!function(t){t.BitsPerSecond="bits/sec",t.KilobitsPerSecond="kilobits/sec",t.MegabitsPerSecond="megabits/sec",t.GigabitsPerSecond="gigabits/sec",t.BytesPerSecond="bytes/sec",t.KilobytesPerSecond="kilobytes/sec",t.MegabytesPerSecond="megabytes/sec",t.GigabytesPerSecond="gigabytes/sec",t.bps="bps",t.Bps="Bps",t.KBps="KBps",t.MBps="MBps",t.GBps="GBps"}(nt||(nt={}));var ct,ut=[{id:nt.BitsPerSecond,alias:["bps","bits/sec(bps)"],divisor:1,display:"bps"},{id:nt.KilobitsPerSecond,alias:["Kbps","kilobits/sec(Kbps)"],divisor:1024,display:"Kbps"},{id:nt.MegabitsPerSecond,alias:["Mbps","megabits/sec(Mbps)"],divisor:1048576,display:"Mbps"},{id:nt.GigabitsPerSecond,alias:["Gbps","gigabits/sec(Gbps)"],divisor:1073741824,display:"Gbps"}],lt=[{id:nt.BytesPerSecond,alias:["Bps","bytes/sec(Bps)"],divisor:8,display:"Bps"},{id:nt.KilobytesPerSecond,alias:["KBps","kilobytes/sec(KBps)"],divisor:8192,display:"KBps"},{id:nt.MegabytesPerSecond,alias:["MBps","megabytes/sec(MBps)"],divisor:8388608,display:"MBps"},{id:nt.GigabytesPerSecond,alias:["GBps","gigabytes/sec(GBps)"],divisor:8589934592,display:"GBps"}],ht=[{id:nt.bps,divisor:1,display:"bps"},{id:nt.Bps,divisor:8,display:"Bps"},{id:nt.KBps,divisor:8192,display:"KBps"},{id:nt.MBps,divisor:8388608,display:"MBps"},{id:nt.GBps,divisor:8589934592,display:"GBps"}];!function(t){t.Nanosecond="nanoseconds",t.Microsecond="microseconds",t.Milliseconds="milliseconds",t.Seconds="seconds",t.Minutes="minutes",t.Hours="hours",t.Days="days",t.Weeks="weeks",t.Months="months",t.Years="years",t.ms="ms",t.s="s",t.min="min",t.hour="hour",t.day="day",t.week="week"}(ct||(ct={}));var pt,dt,ft=[{id:ct.Nanosecond,alias:["ns","nanoseconds(ns)"],divisor:1,display:"ns"},{id:ct.Microsecond,alias:["μs","microseconds(μs)"],divisor:1e3,display:"μs"},{id:ct.Milliseconds,alias:["ms","milliseconds(ms)"],divisor:1e6,display:"ms"},{id:ct.Seconds,alias:["s","seconds(s)"],divisor:1e9,display:"s"},{id:ct.Minutes,alias:["min","minutes(min)"],divisor:6e10,display:"min"},{id:ct.Hours,alias:["hour","hours(hour)"],divisor:36e11,display:"hour"},{id:ct.Days,alias:["day","days(day)"],divisor:864e11,display:"day"},{id:ct.Weeks,alias:["week","weeks(week)"],divisor:6048e11,display:"week"},{id:ct.Months,alias:["month","months(month)"],divisor:2592e12,display:"month"},{id:ct.Years,alias:["year","years(year)"],divisor:31536e12,display:"year"}];ct.ms,ct.s,ct.min,ct.hour,ct.day,ct.week,(pt={})[A.Time]=ft,pt[A.Byte]=it,pt[A.Bibyte]=at,pt[A.BitRate]=ut,pt[A.ByteRate]=lt,function(t){t.None="none",t.K="K",t.M="M",t.B="B",t.T="T"}(dt||(dt={}));var mt,yt,gt=[{id:dt.None,divisor:1,display:""},{id:dt.K,divisor:1e3,display:"K"},{id:dt.M,divisor:1e6,display:"M"},{id:dt.B,divisor:1e9,display:"B"},{id:dt.T,divisor:1e12,display:"T"}],vt=function(t,e){return t.id.toLocaleLowerCase()===(null==e?void 0:e.toLocaleLowerCase())||t.alias&&t.alias.map((function(t){return t.toLocaleLowerCase()})).includes(e)},xt=function(t,e){return t.id.toLocaleLowerCase()===(null==e?void 0:e.toLocaleLowerCase())||t.alias&&t.alias.includes(e)},bt=[ft],wt=[].concat.apply([],bt.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),Pt=[it,at,ot],Tt=[].concat.apply([],Pt.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),St=[ut,lt,ht],_t=[].concat.apply([],St.map((function(t){return C(t.map((function(t){return t.id})),[].concat.apply([],t.map((function(t){return t.alias?t.alias:[]}))))}))),At=function(t,e,r){var s=0,n=Math.sign(t),i=Math.abs(t);if(e){var a=gt.findIndex((function(t){return t.id.toLocaleLowerCase()===e.toLocaleLowerCase()}));-1!==a&&(s=a)}for(var o=gt[s],c=s+1;c<gt.length&&i/(gt[c].divisor/gt[s].divisor)>=1;++c)o=gt[c];return o.id===dt.None?(n*i).toFixed(null!=r?r:2):(i/(o.divisor/gt[s].divisor)*n).toFixed(null!=r?r:2)+o.display};!function(t){t.None="none",t.Short="short",t.Percent="percent",t.Time="time",t.Data="data",t.DataRate="data_rate"}(yt||(yt={}));var kt=((mt={})[yt.None]=[],mt[yt.Short]=[],mt[yt.Percent]=st,mt[yt.Time]=wt,mt[yt.Data]=Tt,mt[yt.DataRate]=_t,mt),Et=function(t,e){return void 0===e?t.toString():t.toFixed(e)},Ct=function(t,e){if(!e)return[At(t),null];var r=e.type;r||(e.unit?(r=yt.Short,Object.entries(kt).map((function(t){var s=t[0];t[1].map((function(t){return t.toLocaleLowerCase()})).includes(e.unit.toLocaleLowerCase())&&(r=s)}))):r=yt.None);var s=void 0===(null==e?void 0:e.precision)?2:e.precision;switch(r){case yt.Percent:var n=function(t,e){return e&&e.toLocaleLowerCase()===k.Percent100.toLocaleLowerCase()?t:100*t}(t,e.unit);return[Et(n,s)+"%",null];case yt.Time:var i=function(t,e,r){var s=0,n=2,i=-1;if(e)for(var a=function(t){var a=-1,o=-1;if(bt[t].forEach((function(t,s){vt(t,e)&&(a=s),vt(t,r)&&(o=s)})),-1!==a)return s=t,n=a,i=o,"break"},o=0;o<bt.length&&"break"!==a(o);++o);else r&&(i=bt[s].findIndex((function(t){return vt(t,r)})));var c=bt[s],u=c[n],l=u;if(-1===i)for(o=n+1;o<c.length&&t/(c[o].divisor/u.divisor)>=1;++o)l=c[o];else l=c[i];return r&&-1===i&&console.warn('Cannot convert unit "'+(e||u.display)+'" to "'+r+'"'),[t/(l.divisor/u.divisor),l.display]}(t,e.unit,e.targetUnit),a=i[0],o=i[1];return[""+Et(a,void 0===(null==e?void 0:e.precision)?1:e.precision),o];case yt.Data:var c=function(t,e,r){var s=Pt.length-1,n=0,i=-1,a=Math.sign(t),o=Math.abs(t);if(e)for(var c=function(t){var a=-1,o=-1;if(Pt[t].forEach((function(t,s){xt(t,e)&&(a=s),xt(t,r)&&(o=s)})),-1!==a)return s=t,n=a,i=o,"break"},u=0;u<Pt.length&&"break"!==c(u);++u);else r&&(i=Pt[s].findIndex((function(t){return xt(t,r)})));var l=Pt[s],h=l[n],p=h;if(-1===i)for(u=n+1;u<l.length&&o/(l[u].divisor/h.divisor)>=1;++u)p=l[u];else p=l[i];return r&&-1===i&&console.warn('Cannot convert unit "'+(e||h.display)+'" to "'+r+'"'),[o/(p.divisor/h.divisor)*a,p.display]}(t,e.unit,e.targetUnit),u=c[0],l=c[1];return[""+Et(u,s),l];case yt.DataRate:var h=function(t,e,r){var s=St.length-1,n=0,i=-1,a=Math.sign(t),o=Math.abs(t);if(e)for(var c=function(t){var a=-1,o=-1;if(St[t].forEach((function(t,s){vt(t,e)&&(a=s),vt(t,r)&&(o=s)})),-1!==a)return s=t,n=a,i=o,"break"},u=0;u<St.length&&"break"!==c(u);++u);else r&&(i=St[s].findIndex((function(t){return vt(t,r)})));var l=St[s],h=l[n],p=h;if(-1===i)for(u=n+1;u<l.length&&o/(l[u].divisor/h.divisor)>=1;++u)p=l[u];else p=l[i];return r&&-1===i&&console.warn('Cannot convert unit "'+(e||h.display)+'" to "'+r+'"'),[o/(p.divisor/h.divisor)*a,p.display]}(t,e.unit,e.targetUnit),p=h[0],d=h[1];return[""+Et(p,s),d];case yt.None:return[Et(t,s),""];default:return[At(t,e.unit,s),e.unit]}};function Nt(t,e,r,s){return void 0===r&&(r=2),Ct(t,{unit:e,precision:r,targetUnit:s})}var It=r(1060);function Mt(t){var e;try{e=(0,It.safeLoad)(t,{schema:It.JSON_SCHEMA,json:!0})}catch(t){console.error(t)}return e}function Lt(t,e,r){var s;void 0===e&&(e=2);try{s=(0,It.safeDump)(t,{indent:e,schema:It.JSON_SCHEMA,skipInvalid:!0,noRefs:!0,noCompatMode:!0,sortKeys:null==r?void 0:r.sortKeys})}catch(t){console.error(t)}return s}function Ot(t,e){return(0,u.round)(t,e)}function Dt(t){return decodeURIComponent(atob(t).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function Ft(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))})))}},2110:(t,e,r)=>{"use strict";r.d(e,{y:()=>o});var s=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)e.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(r[s[n]]=t[s[n]])}return r};const n="text/event-stream",i=1e3,a="last-event-id";function o(t,e){var{signal:r,headers:o,onopen:u,onmessage:l,onclose:h,onerror:p,openWhenHidden:d,fetch:f}=e,m=s(e,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise(((e,s)=>{const y=Object.assign({},o);let g;function v(){g.abort(),document.hidden||S()}y.accept||(y.accept=n),d||document.addEventListener("visibilitychange",v);let x=i,b=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(b),g.abort()}null==r||r.addEventListener("abort",(()=>{w(),e()}));const P=null!=f?f:window.fetch,T=null!=u?u:c;async function S(){var r;g=new AbortController;try{const r=await P(t,Object.assign(Object.assign({},m),{headers:y,signal:g.signal}));await T(r),await async function(t,e){const r=t.getReader();let s;for(;!(s=await r.read()).done;)e(s.value)}(r.body,function(t){let e,r,s,n=!1;return function(i){void 0===e?(e=i,r=0,s=-1):e=function(t,e){const r=new Uint8Array(t.length+e.length);return r.set(t),r.set(e,t.length),r}(e,i);const a=e.length;let o=0;for(;r<a;){n&&(10===e[r]&&(o=++r),n=!1);let i=-1;for(;r<a&&-1===i;++r)switch(e[r]){case 58:-1===s&&(s=r-o);break;case 13:n=!0;case 10:i=r}if(-1===i)break;t(e.subarray(o,i),s),o=r,s=-1}o===a?e=void 0:0!==o&&(e=e.subarray(o),r-=o)}}(function(t,e,r){let s={data:"",event:"",id:"",retry:void 0};const n=new TextDecoder;return function(t,e){if(0===t.length)null==r||r(s),s={data:"",event:"",id:"",retry:void 0};else if(e>0){const r=n.decode(t.subarray(0,e)),o=e+(32===t[e+1]?2:1),c=n.decode(t.subarray(o));switch(r){case"data":s.data=s.data?s.data+"\n"+c:c;break;case"event":s.event=c;break;case"id":(i=s.id=c)?y[a]=i:delete y[a];break;case"retry":const t=parseInt(c,10);isNaN(t)||(t=>{x=t})(s.retry=t)}}var i}}(0,0,l))),null==h||h(),w(),e()}catch(t){if(!g.signal.aborted)try{const e=null!==(r=null==p?void 0:p(t))&&void 0!==r?r:x;window.clearTimeout(b),b=window.setTimeout(S,e)}catch(t){w(),s(t)}}}S()}))}function c(t){const e=t.headers.get("content-type");if(!(null==e?void 0:e.startsWith(n)))throw new Error(`Expected content-type to be ${n}, Actual: ${e}`)}},3999:(t,e,r)=>{"use strict";function s(t,e){(function(t){return"string"==typeof t&&-1!==t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!==t.indexOf("%")}(t);return t=360===e?t:Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:t=360===e?(t<0?t%e+e:t%e)/parseFloat(String(e)):t%e/parseFloat(String(e))}function n(t){return t<=1?"".concat(100*Number(t),"%"):t}function i(t){return 1===t.length?"0"+t:String(t)}function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*r*(e-t):r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function o(t){return c(t)/255}function c(t){return parseInt(t,16)}r.d(e,{eC:()=>L,LP:()=>O,Gb:()=>D});var u={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function l(t){var e,r,i,l={r:0,g:0,b:0},h=1,p=null,d=null,y=null,g=!1,v=!1;return"string"==typeof t&&(t=function(t){if(0===(t=t.trim().toLowerCase()).length)return!1;var e=!1;if(u[t])t=u[t],e=!0;else if("transparent"===t)return{r:0,g:0,b:0,a:0,format:"name"};var r=f.rgb.exec(t);return r?{r:r[1],g:r[2],b:r[3]}:(r=f.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=f.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=f.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=f.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=f.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=f.hex8.exec(t))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),a:o(r[4]),format:e?"name":"hex8"}:(r=f.hex6.exec(t))?{r:c(r[1]),g:c(r[2]),b:c(r[3]),format:e?"name":"hex"}:(r=f.hex4.exec(t))?{r:c(r[1]+r[1]),g:c(r[2]+r[2]),b:c(r[3]+r[3]),a:o(r[4]+r[4]),format:e?"name":"hex8"}:!!(r=f.hex3.exec(t))&&{r:c(r[1]+r[1]),g:c(r[2]+r[2]),b:c(r[3]+r[3]),format:e?"name":"hex"}}(t)),"object"==typeof t&&(m(t.r)&&m(t.g)&&m(t.b)?(e=t.r,r=t.g,i=t.b,l={r:255*s(e,255),g:255*s(r,255),b:255*s(i,255)},g=!0,v="%"===String(t.r).substr(-1)?"prgb":"rgb"):m(t.h)&&m(t.s)&&m(t.v)?(p=n(t.s),d=n(t.v),l=function(t,e,r){t=6*s(t,360),e=s(e,100),r=s(r,100);var n=Math.floor(t),i=t-n,a=r*(1-e),o=r*(1-i*e),c=r*(1-(1-i)*e),u=n%6;return{r:255*[r,o,a,a,c,r][u],g:255*[c,r,r,o,a,a][u],b:255*[a,a,c,r,r,o][u]}}(t.h,p,d),g=!0,v="hsv"):m(t.h)&&m(t.s)&&m(t.l)&&(p=n(t.s),y=n(t.l),l=function(t,e,r){var n,i,o;if(t=s(t,360),e=s(e,100),r=s(r,100),0===e)i=r,o=r,n=r;else{var c=r<.5?r*(1+e):r+e-r*e,u=2*r-c;n=a(u,c,t+1/3),i=a(u,c,t),o=a(u,c,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(t.h,p,y),g=!0,v="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(h=t.a)),h=function(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}(h),{ok:g,format:t.format||v,r:Math.min(255,Math.max(l.r,0)),g:Math.min(255,Math.max(l.g,0)),b:Math.min(255,Math.max(l.b,0)),a:h}}var h="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),p="[\\s|\\(]+(".concat(h,")[,|\\s]+(").concat(h,")[,|\\s]+(").concat(h,")\\s*\\)?"),d="[\\s|\\(]+(".concat(h,")[,|\\s]+(").concat(h,")[,|\\s]+(").concat(h,")[,|\\s]+(").concat(h,")\\s*\\)?"),f={CSS_UNIT:new RegExp(h),rgb:new RegExp("rgb"+p),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+p),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+p),hsva:new RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function m(t){return Boolean(f.CSS_UNIT.exec(String(t)))}var y=2,g=.16,v=.05,x=.05,b=.15,w=5,P=4,T=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function S(t){var e=function(t,e,r){t=s(t,255),e=s(e,255),r=s(r,255);var n=Math.max(t,e,r),i=Math.min(t,e,r),a=0,o=n,c=n-i,u=0===n?0:c/n;if(n===i)a=0;else{switch(n){case t:a=(e-r)/c+(e<r?6:0);break;case e:a=(r-t)/c+2;break;case r:a=(t-e)/c+4}a/=6}return{h:a,s:u,v:o}}(t.r,t.g,t.b);return{h:360*e.h,s:e.s,v:e.v}}function _(t){var e=t.r,r=t.g,s=t.b;return"#".concat(function(t,e,r,s){var n=[i(Math.round(t).toString(16)),i(Math.round(e).toString(16)),i(Math.round(r).toString(16))];return n.join("")}(e,r,s))}function A(t,e,r){var s;return(s=Math.round(t.h)>=60&&Math.round(t.h)<=240?r?Math.round(t.h)-y*e:Math.round(t.h)+y*e:r?Math.round(t.h)+y*e:Math.round(t.h)-y*e)<0?s+=360:s>=360&&(s-=360),s}function k(t,e,r){return 0===t.h&&0===t.s?t.s:((s=r?t.s-g*e:e===P?t.s+g:t.s+v*e)>1&&(s=1),r&&e===w&&s>.1&&(s=.1),s<.06&&(s=.06),Number(s.toFixed(2)));var s}function E(t,e,r){var s;return(s=r?t.v+x*e:t.v-b*e)>1&&(s=1),Number(s.toFixed(2))}function C(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],s=l(t),n=w;n>0;n-=1){var i=S(s),a=_(l({h:A(i,n,!0),s:k(i,n,!0),v:E(i,n,!0)}));r.push(a)}r.push(_(s));for(var o=1;o<=P;o+=1){var c=S(s),u=_(l({h:A(c,o),s:k(c,o),v:E(c,o)}));r.push(u)}return"dark"===e.theme?T.map((function(t){var s,n,i,a=t.index,o=t.opacity;return _((s=l(e.backgroundColor||"#141414"),i=100*o/100,{r:((n=l(r[a])).r-s.r)*i+s.r,g:(n.g-s.g)*i+s.g,b:(n.b-s.b)*i+s.b}))})):r}var N={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},I={},M={};function L(t,e,r){return("dark"===t?j:F)("".concat(function(t,e){return Object.entries(t).flatMap((t=>{var[r,s]=t;return function(t){if(!/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t))throw new Error("Invalid base color name: ".concat(JSON.stringify(t)))}(r),s.map(((t,s)=>[" --palette-".concat(r,"-").concat(s+1,"-channel: ").concat(R(t),";")].concat("dark"===e?[]:" --palette-".concat(r,"-").concat(s+1,": rgb(var(--palette-").concat(r,"-").concat(s+1,"-channel));")).join("\n"))).concat("")})).join("\n")}(function(t,e,r){return Object.fromEntries(Object.entries(t).map((t=>{var[s,n]=t;return[s,C(n,"dark"===e?{theme:e,backgroundColor:r}:void 0)]})))}(e,t,r),t),"\n").concat(function(t,e,r){return Object.entries({green:"green",red:"red",blue:"blue",orange:"orange",cyan:"cyan",purple:"purple",geekblue:"indigo"}).flatMap((s=>{var[n,i]=s;return[" --theme-".concat(n,"-color-rgb-channel: ").concat(R(B(e[i],t,r)),";"),..."dark"===t?[]:[" --theme-".concat(n,"-color: var(--palette-").concat(i,"-6);")," --theme-".concat(n,"-border-color: var(--palette-").concat(i,"-3);")]," --theme-".concat(n,"-background: var(--palette-").concat(i,"-").concat("dark"===t?2:1,");"),""]})).join("\n")}(t,e,r)))}function O(t,e){return("dark"===t?j:F)("string"==typeof(r=e)?" --color-brand: ".concat(r,";\n"):[" --color-brand: ".concat(r.default,";")," --color-brand-hover: ".concat(r.hover,";")," --color-brand-active: ".concat(r.active,";"),""].join("\n"));var r}function D(t,e){return("dark"===t?j:F)(function(t){return Object.entries(t).map((t=>{var[e,r]=t;return function(t){if(!/^--[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(t))throw new Error("Invalid css variable name: ".concat(JSON.stringify(t)))}(e)," ".concat(e,": ").concat(r,";")})).concat("").join("\n")}(e))}function F(t){return':root,\n[data-override-theme="light"] {\n'.concat(t,"}")}function j(t){return'html[data-theme="dark-v2"],\n[data-override-theme="dark-v2"] {\n'.concat(t,"}")}function R(t){return t.match(/[0-9a-fA-F]{2}/g).map((t=>parseInt(t,16))).join(", ")}function B(t,e,r){return"dark"===e?C(t,{theme:e,backgroundColor:r})[5]:t}Object.keys(N).forEach((function(t){I[t]=C(N[t]),I[t].primary=I[t][5],M[t]=C(N[t],{theme:"dark",backgroundColor:"#141414"}),M[t].primary=M[t][5]})),I.red,I.volcano,I.gold,I.orange,I.yellow,I.lime,I.green,I.cyan,I.blue,I.geekblue,I.purple,I.magenta,I.grey},5462:(t,e,r)=>{"use strict";r.d(e,{U:()=>u});const s=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,n=t=>{if("string"!=typeof t)throw new TypeError("Invalid argument expected string");const e=t.match(s);if(!e)throw new Error(`Invalid argument not valid semver ('${t}' received)`);return e.shift(),e},i=t=>"*"===t||"x"===t||"X"===t,a=t=>{const e=parseInt(t,10);return isNaN(e)?t:e},o=(t,e)=>{if(i(t)||i(e))return 0;const[r,s]=((t,e)=>typeof t!=typeof e?[String(t),String(e)]:[t,e])(a(t),a(e));return r>s?1:r<s?-1:0},c=(t,e)=>{for(let r=0;r<Math.max(t.length,e.length);r++){const s=o(t[r]||"0",e[r]||"0");if(0!==s)return s}return 0},u=(t,e,r)=>{p(r);const s=((t,e)=>{const r=n(t),s=n(e),i=r.pop(),a=s.pop(),o=c(r,s);return 0!==o?o:i&&a?c(i.split("."),a.split(".")):i||a?i?-1:1:0})(t,e);return l[r].includes(s)},l={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},h=Object.keys(l),p=t=>{if("string"!=typeof t)throw new TypeError("Invalid operator type, expected string but got "+typeof t);if(-1===h.indexOf(t))throw new Error(`Invalid operator, expected one of ${h.join("|")}`)}},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",s=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),s&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),s&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,s,n,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(s)for(var o=0;o<this.length;o++){var c=this[o][0];null!=c&&(a[c]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);s&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),r&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=r):l[2]=r),n&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=n):l[4]="".concat(n)),e.push(l))}},e}},6758:t=>{"use strict";t.exports=function(t){return t[1]}},5060:function(t,e,r){var s,n;void 0===(n="function"==typeof(s=function(){"use strict";function e(t,e,r){var s=new XMLHttpRequest;s.open("GET",t),s.responseType="blob",s.onload=function(){o(s.response,e,r)},s.onerror=function(){console.error("could not download file")},s.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function n(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof r.g&&r.g.global===r.g?r.g:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(t,r,a){var o=i.URL||i.webkitURL,c=document.createElement("a");r=r||t.name||"download",c.download=r,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?n(c):s(c.href)?e(t,r,a):n(c,c.target="_blank")):(c.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(c.href)}),4e4),setTimeout((function(){n(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,i){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,i),r);else if(s(t))e(t,r,i);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout((function(){n(a)}))}}:function(t,r,s,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof t)return e(t,r,s);var o="application/octet-stream"===t.type,c=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&c||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=t:location=t,n=null},l.readAsDataURL(t)}else{var h=i.URL||i.webkitURL,p=h.createObjectURL(t);n?n.location=p:location.href=p,n=null,setTimeout((function(){h.revokeObjectURL(p)}),4e4)}});i.saveAs=o.saveAs=o,t.exports=o})?s.apply(e,[]):s)||(t.exports=n)},9669:(t,e,r)=>{"use strict";function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)({}).hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},s.apply(null,arguments)}function n(t){return"/"===t.charAt(0)}function i(t,e){for(var r=e,s=r+1,n=t.length;s<n;r+=1,s+=1)t[r]=t[s];t.pop()}r.r(e),r.d(e,{createBrowserHistory:()=>A,createHashHistory:()=>M,createLocation:()=>v,createMemoryHistory:()=>O,createPath:()=>g,locationsAreEqual:()=>x,parsePath:()=>y});const a=function(t,e){void 0===e&&(e="");var r,s=t&&t.split("/")||[],a=e&&e.split("/")||[],o=t&&n(t),c=e&&n(e),u=o||c;if(t&&n(t)?a=s:s.length&&(a.pop(),a=a.concat(s)),!a.length)return"/";if(a.length){var l=a[a.length-1];r="."===l||".."===l||""===l}else r=!1;for(var h=0,p=a.length;p>=0;p--){var d=a[p];"."===d?i(a,p):".."===d?(i(a,p),h++):h&&(i(a,p),h--)}if(!u)for(;h--;h)a.unshift("..");!u||""===a[0]||a[0]&&n(a[0])||a.unshift("");var f=a.join("/");return r&&"/"!==f.substr(-1)&&(f+="/"),f};function o(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const c=function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every((function(e,s){return t(e,r[s])}));if("object"==typeof e||"object"==typeof r){var s=o(e),n=o(r);return s!==e||n!==r?t(s,n):Object.keys(Object.assign({},e,r)).every((function(s){return t(e[s],r[s])}))}return!1};var u=!0,l="Invariant failed";function h(t,e){if(!t){if(u)throw new Error(l);var r="function"==typeof e?e():e,s=r?"".concat(l,": ").concat(r):l;throw new Error(s)}}function p(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function m(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function y(t){var e=t||"/",r="",s="",n=e.indexOf("#");-1!==n&&(s=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");return-1!==i&&(r=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===r?"":r,hash:"#"===s?"":s}}function g(t){var e=t.pathname,r=t.search,s=t.hash,n=e||"/";return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function v(t,e,r,n){var i;"string"==typeof t?(i=y(t)).state=e:(void 0===(i=s({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return r&&(i.key=r),n?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i}function x(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&c(t.state,e.state)}function b(){var t=null,e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,r,s,n){if(null!=t){var i="function"==typeof t?t(e,r):t;"string"==typeof i?"function"==typeof s?s(i,n):n(!0):n(!1!==i)}else n(!0)},appendListener:function(t){var r=!0;function s(){r&&t.apply(void 0,arguments)}return e.push(s),function(){r=!1,e=e.filter((function(t){return t!==s}))}},notifyListeners:function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];e.forEach((function(t){return t.apply(void 0,r)}))}}}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function P(t,e){e(window.confirm(t))}var T="popstate",S="hashchange";function _(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),w||h(!1);var e,r=window.history,n=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,o=a.forceRefresh,c=void 0!==o&&o,u=a.getUserConfirmation,l=void 0===u?P:u,d=a.keyLength,y=void 0===d?6:d,x=t.basename?m(p(t.basename)):"";function A(t){var e=t||{},r=e.key,s=e.state,n=window.location,i=n.pathname+n.search+n.hash;return x&&(i=f(i,x)),v(i,s,r)}function k(){return Math.random().toString(36).substr(2,y)}var E=b();function C(t){s(U,t),U.length=r.length,E.notifyListeners(U.location,U.action)}function N(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(A(t.state))}function I(){L(A(_()))}var M=!1;function L(t){M?(M=!1,C()):E.confirmTransitionTo(t,"POP",l,(function(e){e?C({action:"POP",location:t}):function(t){var e=U.location,r=D.indexOf(e.key);-1===r&&(r=0);var s=D.indexOf(t.key);-1===s&&(s=0);var n=r-s;n&&(M=!0,j(n))}(t)}))}var O=A(_()),D=[O.key];function F(t){return x+g(t)}function j(t){r.go(t)}var R=0;function B(t){1===(R+=t)&&1===t?(window.addEventListener(T,N),i&&window.addEventListener(S,I)):0===R&&(window.removeEventListener(T,N),i&&window.removeEventListener(S,I))}var Y=!1,U={length:r.length,action:"POP",location:O,createHref:F,push:function(t,e){var s="PUSH",i=v(t,e,k(),U.location);E.confirmTransitionTo(i,s,l,(function(t){if(t){var e=F(i),a=i.key,o=i.state;if(n)if(r.pushState({key:a,state:o},null,e),c)window.location.href=e;else{var u=D.indexOf(U.location.key),l=D.slice(0,u+1);l.push(i.key),D=l,C({action:s,location:i})}else window.location.href=e}}))},replace:function(t,e){var s="REPLACE",i=v(t,e,k(),U.location);E.confirmTransitionTo(i,s,l,(function(t){if(t){var e=F(i),a=i.key,o=i.state;if(n)if(r.replaceState({key:a,state:o},null,e),c)window.location.replace(e);else{var u=D.indexOf(U.location.key);-1!==u&&(D[u]=i.key),C({action:s,location:i})}else window.location.replace(e)}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(t){void 0===t&&(t=!1);var e=E.setPrompt(t);return Y||(B(1),Y=!0),function(){return Y&&(Y=!1,B(-1)),e()}},listen:function(t){var e=E.appendListener(t);return B(1),function(){B(-1),e()}}};return U}var k="hashchange",E={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:p},slash:{encodePath:p,decodePath:p}};function C(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function N(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function I(t){window.location.replace(C(window.location.href)+"#"+t)}function M(t){void 0===t&&(t={}),w||h(!1);var e=window.history,r=(window.navigator.userAgent.indexOf("Firefox"),t),n=r.getUserConfirmation,i=void 0===n?P:n,a=r.hashType,o=void 0===a?"slash":a,c=t.basename?m(p(t.basename)):"",u=E[o],l=u.encodePath,d=u.decodePath;function y(){var t=d(N());return c&&(t=f(t,c)),v(t)}var x=b();function T(t){s(Y,t),Y.length=e.length,x.notifyListeners(Y.location,Y.action)}var S=!1,_=null;function A(){var t,e,r=N(),s=l(r);if(r!==s)I(s);else{var n=y(),a=Y.location;if(!S&&(e=n,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(_===g(n))return;_=null,function(t){if(S)S=!1,T();else{x.confirmTransitionTo(t,"POP",i,(function(e){e?T({action:"POP",location:t}):function(t){var e=Y.location,r=D.lastIndexOf(g(e));-1===r&&(r=0);var s=D.lastIndexOf(g(t));-1===s&&(s=0);var n=r-s;n&&(S=!0,F(n))}(t)}))}}(n)}}var M=N(),L=l(M);M!==L&&I(L);var O=y(),D=[g(O)];function F(t){e.go(t)}var j=0;function R(t){1===(j+=t)&&1===t?window.addEventListener(k,A):0===j&&window.removeEventListener(k,A)}var B=!1,Y={length:e.length,action:"POP",location:O,createHref:function(t){var e=document.querySelector("base"),r="";return e&&e.getAttribute("href")&&(r=C(window.location.href)),r+"#"+l(c+g(t))},push:function(t,e){var r="PUSH",s=v(t,void 0,void 0,Y.location);x.confirmTransitionTo(s,r,i,(function(t){if(t){var e=g(s),n=l(c+e);if(N()!==n){_=e,function(t){window.location.hash=t}(n);var i=D.lastIndexOf(g(Y.location)),a=D.slice(0,i+1);a.push(e),D=a,T({action:r,location:s})}else T()}}))},replace:function(t,e){var r="REPLACE",s=v(t,void 0,void 0,Y.location);x.confirmTransitionTo(s,r,i,(function(t){if(t){var e=g(s),n=l(c+e);N()!==n&&(_=e,I(n));var i=D.indexOf(g(Y.location));-1!==i&&(D[i]=e),T({action:r,location:s})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(t){void 0===t&&(t=!1);var e=x.setPrompt(t);return B||(R(1),B=!0),function(){return B&&(B=!1,R(-1)),e()}},listen:function(t){var e=x.appendListener(t);return R(1),function(){R(-1),e()}}};return Y}function L(t,e,r){return Math.min(Math.max(t,e),r)}function O(t){void 0===t&&(t={});var e=t,r=e.getUserConfirmation,n=e.initialEntries,i=void 0===n?["/"]:n,a=e.initialIndex,o=void 0===a?0:a,c=e.keyLength,u=void 0===c?6:c,l=b();function h(t){s(x,t),x.length=x.entries.length,l.notifyListeners(x.location,x.action)}function p(){return Math.random().toString(36).substr(2,u)}var d=L(o,0,i.length-1),f=i.map((function(t){return v(t,void 0,"string"==typeof t?p():t.key||p())})),m=g;function y(t){var e=L(x.index+t,0,x.entries.length-1),s=x.entries[e];l.confirmTransitionTo(s,"POP",r,(function(t){t?h({action:"POP",location:s,index:e}):h()}))}var x={length:f.length,action:"POP",location:f[d],index:d,entries:f,createHref:m,push:function(t,e){var s="PUSH",n=v(t,e,p(),x.location);l.confirmTransitionTo(n,s,r,(function(t){if(t){var e=x.index+1,r=x.entries.slice(0);r.length>e?r.splice(e,r.length-e,n):r.push(n),h({action:s,location:n,index:e,entries:r})}}))},replace:function(t,e){var s="REPLACE",n=v(t,e,p(),x.location);l.confirmTransitionTo(n,s,r,(function(t){t&&(x.entries[x.index]=n,h({action:s,location:n}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=x.index+t;return e>=0&&e<x.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return x}},9515:(t,e,r)=>{"use strict";var s=r(9142);t.exports=s},9142:(t,e,r)=>{"use strict";var s=r(5506),n=r(6384);function i(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}t.exports.Type=r(5417),t.exports.Schema=r(2290),t.exports.FAILSAFE_SCHEMA=r(8028),t.exports.JSON_SCHEMA=r(8739),t.exports.CORE_SCHEMA=r(8774),t.exports.DEFAULT_SAFE_SCHEMA=r(9590),t.exports.DEFAULT_FULL_SCHEMA=r(2846),t.exports.load=s.load,t.exports.loadAll=s.loadAll,t.exports.safeLoad=s.safeLoad,t.exports.safeLoadAll=s.safeLoadAll,t.exports.dump=n.dump,t.exports.safeDump=n.safeDump,t.exports.YAMLException=r(1796),t.exports.MINIMAL_SCHEMA=r(8028),t.exports.SAFE_SCHEMA=r(9590),t.exports.DEFAULT_SCHEMA=r(2846),t.exports.scan=i("scan"),t.exports.parse=i("parse"),t.exports.compose=i("compose"),t.exports.addConstructor=i("addConstructor")},3780:t=>{"use strict";function e(t){return null==t}t.exports.isNothing=e,t.exports.isObject=function(t){return"object"==typeof t&&null!==t},t.exports.toArray=function(t){return Array.isArray(t)?t:e(t)?[]:[t]},t.exports.repeat=function(t,e){var r,s="";for(r=0;r<e;r+=1)s+=t;return s},t.exports.isNegativeZero=function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},t.exports.extend=function(t,e){var r,s,n,i;if(e)for(r=0,s=(i=Object.keys(e)).length;r<s;r+=1)t[n=i[r]]=e[n];return t}},6384:(t,e,r)=>{"use strict";var s=r(3780),n=r(1796),i=r(2846),a=r(9590),o=Object.prototype.toString,c=Object.prototype.hasOwnProperty,u=9,l=10,h=13,p=32,d=33,f=34,m=35,y=37,g=38,v=39,x=42,b=44,w=45,P=58,T=61,S=62,_=63,A=64,k=91,E=93,C=96,N=123,I=124,M=125,L={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},O=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function D(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else{if(!(t<=4294967295))throw new n("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+s.repeat("0",i-e.length)+e}function F(t){this.schema=t.schema||i,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=s.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var r,s,n,i,a,o,u;if(null===e)return{};for(r={},n=0,i=(s=Object.keys(e)).length;n<i;n+=1)a=s[n],o=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(u=t.compiledTypeMap.fallback[a])&&c.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function j(t,e){for(var r,n=s.repeat(" ",e),i=0,a=-1,o="",c=t.length;i<c;)-1===(a=t.indexOf("\n",i))?(r=t.slice(i),i=c):(r=t.slice(i,a+1),i=a+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function R(t,e){return"\n"+s.repeat(" ",t.indent*e)}function B(t){return t===p||t===u}function Y(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function U(t,e){return Y(t)&&65279!==t&&t!==b&&t!==k&&t!==E&&t!==N&&t!==M&&t!==P&&(t!==m||e&&function(t){return Y(t)&&!B(t)&&65279!==t&&t!==h&&t!==l}(e))}function H(t){return/^\n* /.test(t)}var W=1,z=2,V=3,q=4,$=5;function K(t,e,r,s){t.dump=function(){if(0===e.length)return"''";if(!t.noCompatMode&&-1!==O.indexOf(e))return"'"+e+"'";var i=t.indent*Math.max(1,r),a=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-i),o=s||t.flowLevel>-1&&r>=t.flowLevel;switch(function(t,e,r,s,n){var i,a,o,c,u=!1,h=!1,p=-1!==s,L=-1,O=Y(c=t.charCodeAt(0))&&65279!==c&&!B(c)&&c!==w&&c!==_&&c!==P&&c!==b&&c!==k&&c!==E&&c!==N&&c!==M&&c!==m&&c!==g&&c!==x&&c!==d&&c!==I&&c!==T&&c!==S&&c!==v&&c!==f&&c!==y&&c!==A&&c!==C&&!B(t.charCodeAt(t.length-1));if(e)for(i=0;i<t.length;i++){if(!Y(a=t.charCodeAt(i)))return $;o=i>0?t.charCodeAt(i-1):null,O=O&&U(a,o)}else{for(i=0;i<t.length;i++){if((a=t.charCodeAt(i))===l)u=!0,p&&(h=h||i-L-1>s&&" "!==t[L+1],L=i);else if(!Y(a))return $;o=i>0?t.charCodeAt(i-1):null,O=O&&U(a,o)}h=h||p&&i-L-1>s&&" "!==t[L+1]}return u||h?r>9&&H(t)?$:h?q:V:O&&!n(t)?W:z}(e,o,t.indent,a,(function(e){return function(t,e){var r,s;for(r=0,s=t.implicitTypes.length;r<s;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}(t,e)}))){case W:return e;case z:return"'"+e.replace(/'/g,"''")+"'";case V:return"|"+J(e,t.indent)+G(j(e,i));case q:return">"+J(e,t.indent)+G(j(function(t,e){for(var r,s,n,i=/(\n+)([^\n]*)/g,a=(n=-1!==(n=t.indexOf("\n"))?n:t.length,i.lastIndex=n,X(t.slice(0,n),e)),o="\n"===t[0]||" "===t[0];s=i.exec(t);){var c=s[1],u=s[2];r=" "===u[0],a+=c+(o||r||""===u?"":"\n")+X(u,e),o=r}return a}(e,a),i));case $:return'"'+function(t){for(var e,r,s,n="",i=0;i<t.length;i++)(e=t.charCodeAt(i))>=55296&&e<=56319&&(r=t.charCodeAt(i+1))>=56320&&r<=57343?(n+=D(1024*(e-55296)+r-56320+65536),i++):n+=!(s=L[e])&&Y(e)?t[i]:s||D(e);return n}(e)+'"';default:throw new n("impossible error: invalid scalar style")}}()}function J(t,e){var r=H(t)?String(e):"",s="\n"===t[t.length-1];return r+(!s||"\n"!==t[t.length-2]&&"\n"!==t?s?"":"-":"+")+"\n"}function G(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function X(t,e){if(""===t||" "===t[0])return t;for(var r,s,n=/ [^ ]/g,i=0,a=0,o=0,c="";r=n.exec(t);)(o=r.index)-i>e&&(s=a>i?a:o,c+="\n"+t.slice(i,s),i=s+1),a=o;return c+="\n",t.length-i>e&&a>i?c+=t.slice(i,a)+"\n"+t.slice(a+1):c+=t.slice(i),c.slice(1)}function Z(t,e,r){var s,i,a,u,l,h;for(a=0,u=(i=r?t.explicitTypes:t.implicitTypes).length;a<u;a+=1)if(((l=i[a]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof e&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(t.tag=r?l.tag:"?",l.represent){if(h=t.styleMap[l.tag]||l.defaultStyle,"[object Function]"===o.call(l.represent))s=l.represent(e,h);else{if(!c.call(l.represent,h))throw new n("!<"+l.tag+'> tag resolver accepts not "'+h+'" style');s=l.represent[h](e,h)}t.dump=s}return!0}return!1}function Q(t,e,r,s,i,a){t.tag=null,t.dump=r,Z(t,r,!1)||Z(t,r,!0);var c=o.call(t.dump);s&&(s=t.flowLevel<0||t.flowLevel>e);var u,h,p="[object Object]"===c||"[object Array]"===c;if(p&&(h=-1!==(u=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(i=!1),h&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(p&&h&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),"[object Object]"===c)s&&0!==Object.keys(t.dump).length?(function(t,e,r,s){var i,a,o,c,u,h,p="",d=t.tag,f=Object.keys(r);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new n("sortKeys must be a boolean or a function");for(i=0,a=f.length;i<a;i+=1)h="",s&&0===i||(h+=R(t,e)),c=r[o=f[i]],Q(t,e+1,o,!0,!0,!0)&&((u=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&l===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,u&&(h+=R(t,e)),Q(t,e+1,c,!0,u)&&(t.dump&&l===t.dump.charCodeAt(0)?h+=":":h+=": ",p+=h+=t.dump));t.tag=d,t.dump=p||"{}"}(t,e,t.dump,i),h&&(t.dump="&ref_"+u+t.dump)):(function(t,e,r){var s,n,i,a,o,c="",u=t.tag,l=Object.keys(r);for(s=0,n=l.length;s<n;s+=1)o="",0!==s&&(o+=", "),t.condenseFlow&&(o+='"'),a=r[i=l[s]],Q(t,e,i,!1,!1)&&(t.dump.length>1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Q(t,e,a,!1,!1)&&(c+=o+=t.dump));t.tag=u,t.dump="{"+c+"}"}(t,e,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump));else if("[object Array]"===c){var d=t.noArrayIndent&&e>0?e-1:e;s&&0!==t.dump.length?(function(t,e,r,s){var n,i,a="",o=t.tag;for(n=0,i=r.length;n<i;n+=1)Q(t,e+1,r[n],!0,!0)&&(s&&0===n||(a+=R(t,e)),t.dump&&l===t.dump.charCodeAt(0)?a+="-":a+="- ",a+=t.dump);t.tag=o,t.dump=a||"[]"}(t,d,t.dump,i),h&&(t.dump="&ref_"+u+t.dump)):(function(t,e,r){var s,n,i="",a=t.tag;for(s=0,n=r.length;s<n;s+=1)Q(t,e,r[s],!1,!1)&&(0!==s&&(i+=","+(t.condenseFlow?"":" ")),i+=t.dump);t.tag=a,t.dump="["+i+"]"}(t,d,t.dump),h&&(t.dump="&ref_"+u+" "+t.dump))}else{if("[object String]"!==c){if(t.skipInvalid)return!1;throw new n("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&K(t,t.dump,e,a)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function tt(t,e){var r,s,n=[],i=[];for(et(t,n,i),r=0,s=i.length;r<s;r+=1)e.duplicates.push(n[i[r]]);e.usedDuplicates=new Array(s)}function et(t,e,r){var s,n,i;if(null!==t&&"object"==typeof t)if(-1!==(n=e.indexOf(t)))-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,i=t.length;n<i;n+=1)et(t[n],e,r);else for(n=0,i=(s=Object.keys(t)).length;n<i;n+=1)et(t[s[n]],e,r)}function rt(t,e){var r=new F(e=e||{});return r.noRefs||tt(t,r),Q(r,0,t,!0,!0)?r.dump+"\n":""}t.exports.dump=rt,t.exports.safeDump=function(t,e){return rt(t,s.extend({schema:a},e))}},1796:t=>{"use strict";function e(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},t.exports=e},5506:(t,e,r)=>{"use strict";var s=r(3780),n=r(1796),i=r(9348),a=r(9590),o=r(2846),c=Object.prototype.hasOwnProperty,u=1,l=2,h=3,p=4,d=1,f=2,m=3,y=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,v=/[,\[\]\{\}]/,x=/^(?:!|!!|![a-z\-]+!)$/i,b=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function w(t){return Object.prototype.toString.call(t)}function P(t){return 10===t||13===t}function T(t){return 9===t||32===t}function S(t){return 9===t||32===t||10===t||13===t}function _(t){return 44===t||91===t||93===t||123===t||125===t}function A(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function k(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function E(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var C=new Array(256),N=new Array(256),I=0;I<256;I++)C[I]=k(I)?1:0,N[I]=k(I);function M(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||o,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function L(t,e){return new n(e,new i(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function O(t,e){throw L(t,e)}function D(t,e){t.onWarning&&t.onWarning.call(null,L(t,e))}var F={YAML:function(t,e,r){var s,n,i;null!==t.version&&O(t,"duplication of %YAML directive"),1!==r.length&&O(t,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&O(t,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&O(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=i<2,1!==i&&2!==i&&D(t,"unsupported YAML version of the document")},TAG:function(t,e,r){var s,n;2!==r.length&&O(t,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],x.test(s)||O(t,"ill-formed tag handle (first argument) of the TAG directive"),c.call(t.tagMap,s)&&O(t,'there is a previously declared suffix for "'+s+'" tag handle'),b.test(n)||O(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[s]=n}};function j(t,e,r,s){var n,i,a,o;if(e<r){if(o=t.input.slice(e,r),s)for(n=0,i=o.length;n<i;n+=1)9===(a=o.charCodeAt(n))||32<=a&&a<=1114111||O(t,"expected valid JSON character");else y.test(o)&&O(t,"the stream contains non-printable characters");t.result+=o}}function R(t,e,r,n){var i,a,o,u;for(s.isObject(r)||O(t,"cannot merge mappings; the provided source object is unacceptable"),o=0,u=(i=Object.keys(r)).length;o<u;o+=1)a=i[o],c.call(e,a)||(e[a]=r[a],n[a]=!0)}function B(t,e,r,s,n,i,a,o){var u,l;if(Array.isArray(n))for(u=0,l=(n=Array.prototype.slice.call(n)).length;u<l;u+=1)Array.isArray(n[u])&&O(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===w(n[u])&&(n[u]="[object Object]");if("object"==typeof n&&"[object Object]"===w(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===s)if(Array.isArray(i))for(u=0,l=i.length;u<l;u+=1)R(t,e,i[u],r);else R(t,e,i,r);else t.json||c.call(r,n)||!c.call(e,n)||(t.line=a||t.line,t.position=o||t.position,O(t,"duplicated mapping key")),e[n]=i,delete r[n];return e}function Y(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function U(t,e,r){for(var s=0,n=t.input.charCodeAt(t.position);0!==n;){for(;T(n);)n=t.input.charCodeAt(++t.position);if(e&&35===n)do{n=t.input.charCodeAt(++t.position)}while(10!==n&&13!==n&&0!==n);if(!P(n))break;for(Y(t),n=t.input.charCodeAt(t.position),s++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position)}return-1!==r&&0!==s&&t.lineIndent<r&&D(t,"deficient indentation"),s}function H(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!S(e)))}function W(t,e){1===e?t.result+=" ":e>1&&(t.result+=s.repeat("\n",e-1))}function z(t,e){var r,s,n=t.tag,i=t.anchor,a=[],o=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),s=t.input.charCodeAt(t.position);0!==s&&45===s&&S(t.input.charCodeAt(t.position+1));)if(o=!0,t.position++,U(t,!0,-1)&&t.lineIndent<=e)a.push(null),s=t.input.charCodeAt(t.position);else if(r=t.line,$(t,e,h,!1,!0),a.push(t.result),U(t,!0,-1),s=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==s)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!o&&(t.tag=n,t.anchor=i,t.kind="sequence",t.result=a,!0)}function V(t){var e,r,s,n,i=!1,a=!1;if(33!==(n=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&O(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(i=!0,n=t.input.charCodeAt(++t.position)):33===n?(a=!0,r="!!",n=t.input.charCodeAt(++t.position)):r="!",e=t.position,i){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&62!==n);t.position<t.length?(s=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!S(n);)33===n&&(a?O(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),x.test(r)||O(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),v.test(s)&&O(t,"tag suffix cannot contain flow indicator characters")}return s&&!b.test(s)&&O(t,"tag name cannot contain such characters: "+s),i?t.tag=s:c.call(t.tagMap,r)?t.tag=t.tagMap[r]+s:"!"===r?t.tag="!"+s:"!!"===r?t.tag="tag:yaml.org,2002:"+s:O(t,'undeclared tag handle "'+r+'"'),!0}function q(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&O(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!S(r)&&!_(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function $(t,e,r,n,i){var a,o,y,g,v,x,b,w,k=1,I=!1,M=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=o=y=p===r||h===r,n&&U(t,!0,-1)&&(I=!0,t.lineIndent>e?k=1:t.lineIndent===e?k=0:t.lineIndent<e&&(k=-1)),1===k)for(;V(t)||q(t);)U(t,!0,-1)?(I=!0,y=a,t.lineIndent>e?k=1:t.lineIndent===e?k=0:t.lineIndent<e&&(k=-1)):y=!1;if(y&&(y=I||i),1!==k&&p!==r||(b=u===r||l===r?e:e+1,w=t.position-t.lineStart,1===k?y&&(z(t,w)||function(t,e,r){var s,n,i,a,o,c=t.tag,u=t.anchor,h={},d={},f=null,m=null,y=null,g=!1,v=!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=h),o=t.input.charCodeAt(t.position);0!==o;){if(s=t.input.charCodeAt(t.position+1),i=t.line,a=t.position,63!==o&&58!==o||!S(s)){if(!$(t,r,l,!1,!0))break;if(t.line===i){for(o=t.input.charCodeAt(t.position);T(o);)o=t.input.charCodeAt(++t.position);if(58===o)S(o=t.input.charCodeAt(++t.position))||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(B(t,h,d,f,m,null),f=m=y=null),v=!0,g=!1,n=!1,f=t.tag,m=t.result;else{if(!v)return t.tag=c,t.anchor=u,!0;O(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return t.tag=c,t.anchor=u,!0;O(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===o?(g&&(B(t,h,d,f,m,null),f=m=y=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,o=s;if((t.line===i||t.lineIndent>e)&&($(t,e,p,!0,n)&&(g?m=t.result:y=t.result),g||(B(t,h,d,f,m,y,i,a),f=m=y=null),U(t,!0,-1),o=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==o)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return g&&B(t,h,d,f,m,null),v&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),v}(t,w,b))||function(t,e){var r,s,n,i,a,o,c,l,h,p,d=!0,f=t.tag,m=t.anchor,y={};if(91===(p=t.input.charCodeAt(t.position)))n=93,o=!1,s=[];else{if(123!==p)return!1;n=125,o=!0,s={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=s),p=t.input.charCodeAt(++t.position);0!==p;){if(U(t,!0,e),(p=t.input.charCodeAt(t.position))===n)return t.position++,t.tag=f,t.anchor=m,t.kind=o?"mapping":"sequence",t.result=s,!0;d||O(t,"missed comma between flow collection entries"),h=null,i=a=!1,63===p&&S(t.input.charCodeAt(t.position+1))&&(i=a=!0,t.position++,U(t,!0,e)),r=t.line,$(t,e,u,!1,!0),l=t.tag,c=t.result,U(t,!0,e),p=t.input.charCodeAt(t.position),!a&&t.line!==r||58!==p||(i=!0,p=t.input.charCodeAt(++t.position),U(t,!0,e),$(t,e,u,!1,!0),h=t.result),o?B(t,s,y,l,c,h):i?s.push(B(t,null,y,l,c,h)):s.push(c),U(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(d=!0,p=t.input.charCodeAt(++t.position)):d=!1}O(t,"unexpected end of the stream within a flow collection")}(t,b)?M=!0:(o&&function(t,e){var r,n,i,a,o,c=d,u=!1,l=!1,h=e,p=0,y=!1;if(124===(a=t.input.charCodeAt(t.position)))n=!1;else{if(62!==a)return!1;n=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)d===c?c=43===a?m:f:O(t,"repeat of a chomping mode identifier");else{if(!((i=48<=(o=a)&&o<=57?o-48:-1)>=0))break;0===i?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?O(t,"repeat of an indentation width identifier"):(h=e+i-1,l=!0)}if(T(a)){do{a=t.input.charCodeAt(++t.position)}while(T(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!P(a)&&0!==a)}for(;0!==a;){for(Y(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndent<h)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>h&&(h=t.lineIndent),P(a))p++;else{if(t.lineIndent<h){c===m?t.result+=s.repeat("\n",u?1+p:p):c===d&&u&&(t.result+="\n");break}for(n?T(a)?(y=!0,t.result+=s.repeat("\n",u?1+p:p)):y?(y=!1,t.result+=s.repeat("\n",p+1)):0===p?u&&(t.result+=" "):t.result+=s.repeat("\n",p):t.result+=s.repeat("\n",u?1+p:p),u=!0,l=!0,p=0,r=t.position;!P(a)&&0!==a;)a=t.input.charCodeAt(++t.position);j(t,r,t.position,!1)}}return!0}(t,b)||function(t,e){var r,s,n;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,s=n=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(j(t,s,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;s=t.position,t.position++,n=t.position}else P(r)?(j(t,s,n,!0),W(t,U(t,!1,e)),s=n=t.position):t.position===t.lineStart&&H(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}(t,b)||function(t,e){var r,s,n,i,a,o,c;if(34!==(o=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;0!==(o=t.input.charCodeAt(t.position));){if(34===o)return j(t,r,t.position,!0),t.position++,!0;if(92===o){if(j(t,r,t.position,!0),P(o=t.input.charCodeAt(++t.position)))U(t,!1,e);else if(o<256&&C[o])t.result+=N[o],t.position++;else if((a=120===(c=o)?2:117===c?4:85===c?8:0)>0){for(n=a,i=0;n>0;n--)(a=A(o=t.input.charCodeAt(++t.position)))>=0?i=(i<<4)+a:O(t,"expected hexadecimal character");t.result+=E(i),t.position++}else O(t,"unknown escape sequence");r=s=t.position}else P(o)?(j(t,r,s,!0),W(t,U(t,!1,e)),r=s=t.position):t.position===t.lineStart&&H(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}(t,b)?M=!0:function(t){var e,r,s;if(42!==(s=t.input.charCodeAt(t.position)))return!1;for(s=t.input.charCodeAt(++t.position),e=t.position;0!==s&&!S(s)&&!_(s);)s=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),c.call(t.anchorMap,r)||O(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],U(t,!0,-1),!0}(t)?(M=!0,null===t.tag&&null===t.anchor||O(t,"alias node should not have any properties")):function(t,e,r){var s,n,i,a,o,c,u,l,h=t.kind,p=t.result;if(S(l=t.input.charCodeAt(t.position))||_(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(S(s=t.input.charCodeAt(t.position+1))||r&&_(s)))return!1;for(t.kind="scalar",t.result="",n=i=t.position,a=!1;0!==l;){if(58===l){if(S(s=t.input.charCodeAt(t.position+1))||r&&_(s))break}else if(35===l){if(S(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&H(t)||r&&_(l))break;if(P(l)){if(o=t.line,c=t.lineStart,u=t.lineIndent,U(t,!1,-1),t.lineIndent>=e){a=!0,l=t.input.charCodeAt(t.position);continue}t.position=i,t.line=o,t.lineStart=c,t.lineIndent=u;break}}a&&(j(t,n,i,!1),W(t,t.line-o),n=i=t.position,a=!1),T(l)||(i=t.position+1),l=t.input.charCodeAt(++t.position)}return j(t,n,i,!1),!!t.result||(t.kind=h,t.result=p,!1)}(t,b,u===r)&&(M=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===k&&(M=y&&z(t,w))),null!==t.tag&&"!"!==t.tag)if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),g=0,v=t.implicitTypes.length;g<v;g+=1)if((x=t.implicitTypes[g]).resolve(t.result)){t.result=x.construct(t.result),t.tag=x.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else c.call(t.typeMap[t.kind||"fallback"],t.tag)?(x=t.typeMap[t.kind||"fallback"][t.tag],null!==t.result&&x.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+x.kind+'", not "'+t.kind+'"'),x.resolve(t.result)?(t.result=x.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):O(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||M}function K(t){var e,r,s,n,i=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(n=t.input.charCodeAt(t.position))&&(U(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==n));){for(a=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!S(n);)n=t.input.charCodeAt(++t.position);for(s=[],(r=t.input.slice(e,t.position)).length<1&&O(t,"directive name must not be less than one character in length");0!==n;){for(;T(n);)n=t.input.charCodeAt(++t.position);if(35===n){do{n=t.input.charCodeAt(++t.position)}while(0!==n&&!P(n));break}if(P(n))break;for(e=t.position;0!==n&&!S(n);)n=t.input.charCodeAt(++t.position);s.push(t.input.slice(e,t.position))}0!==n&&Y(t),c.call(F,r)?F[r](t,r,s):D(t,'unknown document directive "'+r+'"')}U(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,U(t,!0,-1)):a&&O(t,"directives end mark is expected"),$(t,t.lineIndent-1,p,!1,!0),U(t,!0,-1),t.checkLineBreaks&&g.test(t.input.slice(i,t.position))&&D(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&H(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,U(t,!0,-1)):t.position<t.length-1&&O(t,"end of the stream or a document separator is expected")}function J(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new M(t,e),s=t.indexOf("\0");for(-1!==s&&(r.position=s,O(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)K(r);return r.documents}function G(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var s=J(t,r);if("function"!=typeof e)return s;for(var n=0,i=s.length;n<i;n+=1)e(s[n])}function X(t,e){var r=J(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new n("expected a single document in the stream, but found more")}}t.exports.loadAll=G,t.exports.load=X,t.exports.safeLoadAll=function(t,e,r){return"object"==typeof e&&null!==e&&void 0===r&&(r=e,e=null),G(t,e,s.extend({schema:a},r))},t.exports.safeLoad=function(t,e){return X(t,s.extend({schema:a},e))}},9348:(t,e,r)=>{"use strict";var s=r(3780);function n(t,e,r,s,n){this.name=t,this.buffer=e,this.position=r,this.line=s,this.column=n}n.prototype.getSnippet=function(t,e){var r,n,i,a,o;if(!this.buffer)return null;for(t=t||4,e=e||75,r="",n=this.position;n>0&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(n-1));)if(n-=1,this.position-n>e/2-1){r=" ... ",n+=5;break}for(i="",a=this.position;a<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>e/2-1){i=" ... ",a-=5;break}return o=this.buffer.slice(n,a),s.repeat(" ",t)+r+o+i+"\n"+s.repeat(" ",t+this.position-n+r.length)+"^"},n.prototype.toString=function(t){var e,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet())&&(r+=":\n"+e),r},t.exports=n},2290:(t,e,r)=>{"use strict";var s=r(3780),n=r(1796),i=r(5417);function a(t,e,r){var s=[];return t.include.forEach((function(t){r=a(t,e,r)})),t[e].forEach((function(t){r.forEach((function(e,r){e.tag===t.tag&&e.kind===t.kind&&s.push(r)})),r.push(t)})),r.filter((function(t,e){return-1===s.indexOf(e)}))}function o(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach((function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{}};function s(t){r[t.kind][t.tag]=r.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(s);return r}(this.compiledImplicit,this.compiledExplicit)}o.DEFAULT=null,o.create=function(){var t,e;switch(arguments.length){case 1:t=o.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new n("Wrong number of arguments for Schema.create function")}if(t=s.toArray(t),e=s.toArray(e),!t.every((function(t){return t instanceof o})))throw new n("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every((function(t){return t instanceof i})))throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:t,explicit:e})},t.exports=o},8774:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({include:[r(8739)]})},2846:(t,e,r)=>{"use strict";var s=r(2290);t.exports=s.DEFAULT=new s({include:[r(9590)],explicit:[r(9280),r(6751),r(5986)]})},9590:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({include:[r(8774)],implicit:[r(4938),r(7042)],explicit:[r(273),r(3901),r(343),r(6562)]})},8028:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({explicit:[r(2621),r(5853),r(1256)]})},8739:(t,e,r)=>{"use strict";var s=r(2290);t.exports=new s({include:[r(8028)],implicit:[r(5137),r(1548),r(8920),r(6076)]})},5417:(t,e,r)=>{"use strict";var s=r(1796),n=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];t.exports=function(t,e){var r,a;if(e=e||{},Object.keys(e).forEach((function(e){if(-1===n.indexOf(e))throw new s('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=(r=e.styleAliases||null,a={},null!==r&&Object.keys(r).forEach((function(t){r[t].forEach((function(e){a[String(e)]=t}))})),a),-1===i.indexOf(this.kind))throw new s('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}},273:(t,e,r)=>{"use strict";var s;try{s=Object(function(){var t=new Error("Cannot find module 'buffer'");throw t.code="MODULE_NOT_FOUND",t}())}catch(t){}var n=r(5417),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,s=0,n=t.length,a=i;for(r=0;r<n;r++)if(!((e=a.indexOf(t.charAt(r)))>64)){if(e<0)return!1;s+=6}return s%8==0},construct:function(t){var e,r,n=t.replace(/[\r\n=]/g,""),a=n.length,o=i,c=0,u=[];for(e=0;e<a;e++)e%4==0&&e&&(u.push(c>>16&255),u.push(c>>8&255),u.push(255&c)),c=c<<6|o.indexOf(n.charAt(e));return 0==(r=a%4*6)?(u.push(c>>16&255),u.push(c>>8&255),u.push(255&c)):18===r?(u.push(c>>10&255),u.push(c>>2&255)):12===r&&u.push(c>>4&255),s?s.from?s.from(u):new s(u):u},predicate:function(t){return s&&s.isBuffer(t)},represent:function(t){var e,r,s="",n=0,a=t.length,o=i;for(e=0;e<a;e++)e%3==0&&e&&(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]),n=(n<<8)+t[e];return 0==(r=a%3)?(s+=o[n>>18&63],s+=o[n>>12&63],s+=o[n>>6&63],s+=o[63&n]):2===r?(s+=o[n>>10&63],s+=o[n>>4&63],s+=o[n<<2&63],s+=o[64]):1===r&&(s+=o[n>>2&63],s+=o[n<<4&63],s+=o[64],s+=o[64]),s}})},1548:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},6076:(t,e,r)=>{"use strict";var s=r(3780),n=r(5417),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=/^[-+]?[0-9]+e/;t.exports=new n("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!i.test(t)||"_"===t[t.length-1])},construct:function(t){var e,r,s,n;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,n=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach((function(t){n.unshift(parseFloat(t,10))})),e=0,s=1,n.forEach((function(t){e+=t*s,s*=60})),r*e):r*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||s.isNegativeZero(t))},represent:function(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(s.isNegativeZero(t))return"-0.0";return r=t.toString(10),a.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},8920:(t,e,r)=>{"use strict";var s=r(3780),n=r(5417);function i(t){return 48<=t&&t<=55}function a(t){return 48<=t&&t<=57}t.exports=new n("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,r,s=t.length,n=0,o=!1;if(!s)return!1;if("-"!==(e=t[n])&&"+"!==e||(e=t[++n]),"0"===e){if(n+1===s)return!0;if("b"===(e=t[++n])){for(n++;n<s;n++)if("_"!==(e=t[n])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(n++;n<s;n++)if("_"!==(e=t[n])){if(!(48<=(r=t.charCodeAt(n))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;o=!0}return o&&"_"!==e}for(;n<s;n++)if("_"!==(e=t[n])){if(!i(t.charCodeAt(n)))return!1;o=!0}return o&&"_"!==e}if("_"===e)return!1;for(;n<s;n++)if("_"!==(e=t[n])){if(":"===e)break;if(!a(t.charCodeAt(n)))return!1;o=!0}return!(!o||"_"===e)&&(":"!==e||/^(:[0-5]?[0-9])+$/.test(t.slice(n)))},construct:function(t){var e,r,s=t,n=1,i=[];return-1!==s.indexOf("_")&&(s=s.replace(/_/g,"")),"-"!==(e=s[0])&&"+"!==e||("-"===e&&(n=-1),e=(s=s.slice(1))[0]),"0"===s?0:"0"===e?"b"===s[1]?n*parseInt(s.slice(2),2):"x"===s[1]?n*parseInt(s,16):n*parseInt(s,8):-1!==s.indexOf(":")?(s.split(":").forEach((function(t){i.unshift(parseInt(t,10))})),s=0,r=1,i.forEach((function(t){s+=t*r,r*=60})),n*s):n*parseInt(s,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!s.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},5986:(t,e,r)=>{"use strict";var s;try{s=r(Object(function(){var t=new Error("Cannot find module 'esprima'");throw t.code="MODULE_NOT_FOUND",t}()))}catch(t){"undefined"!=typeof window&&(s=window.esprima)}var n=r(5417);t.exports=new n("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(t){if(null===t)return!1;try{var e="("+t+")",r=s.parse(e,{range:!0});return"Program"===r.type&&1===r.body.length&&"ExpressionStatement"===r.body[0].type&&("ArrowFunctionExpression"===r.body[0].expression.type||"FunctionExpression"===r.body[0].expression.type)}catch(t){return!1}},construct:function(t){var e,r="("+t+")",n=s.parse(r,{range:!0}),i=[];if("Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"ArrowFunctionExpression"!==n.body[0].expression.type&&"FunctionExpression"!==n.body[0].expression.type)throw new Error("Failed to resolve function");return n.body[0].expression.params.forEach((function(t){i.push(t.name)})),e=n.body[0].expression.body.range,"BlockStatement"===n.body[0].expression.body.type?new Function(i,r.slice(e[0]+1,e[1]-1)):new Function(i,"return "+r.slice(e[0],e[1]))},predicate:function(t){return"[object Function]"===Object.prototype.toString.call(t)},represent:function(t){return t.toString()}})},6751:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,r=/\/([gim]*)$/.exec(t),s="";if("/"===e[0]){if(r&&(s=r[1]),s.length>3)return!1;if("/"!==e[e.length-s.length-1])return!1}return!0},construct:function(t){var e=t,r=/\/([gim]*)$/.exec(t),s="";return"/"===e[0]&&(r&&(s=r[1]),e=e.slice(1,e.length-s.length-1)),new RegExp(e,s)},predicate:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},represent:function(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}})},9280:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(t){return void 0===t},represent:function(){return""}})},1256:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},7042:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}})},5137:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3901:(t,e,r)=>{"use strict";var s=r(5417),n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=new s("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,s,a,o,c=[],u=t;for(e=0,r=u.length;e<r;e+=1){if(s=u[e],o=!1,"[object Object]"!==i.call(s))return!1;for(a in s)if(n.call(s,a)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==c.indexOf(a))return!1;c.push(a)}return!0},construct:function(t){return null!==t?t:[]}})},343:(t,e,r)=>{"use strict";var s=r(5417),n=Object.prototype.toString;t.exports=new s("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,r,s,i,a,o=t;for(a=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(s=o[e],"[object Object]"!==n.call(s))return!1;if(1!==(i=Object.keys(s)).length)return!1;a[e]=[i[0],s[i[0]]]}return!0},construct:function(t){if(null===t)return[];var e,r,s,n,i,a=t;for(i=new Array(a.length),e=0,r=a.length;e<r;e+=1)s=a[e],n=Object.keys(s),i[e]=[n[0],s[n[0]]];return i}})},5853:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},6562:(t,e,r)=>{"use strict";var s=r(5417),n=Object.prototype.hasOwnProperty;t.exports=new s("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,r=t;for(e in r)if(n.call(r,e)&&null!==r[e])return!1;return!0},construct:function(t){return null!==t?t:{}}})},2621:(t,e,r)=>{"use strict";var s=r(5417);t.exports=new s("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},4938:(t,e,r)=>{"use strict";var s=r(5417),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new s("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==n.exec(t)||null!==i.exec(t))},construct:function(t){var e,r,s,a,o,c,u,l,h=0,p=null;if(null===(e=n.exec(t))&&(e=i.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],s=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,s,a));if(o=+e[4],c=+e[5],u=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(p=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(p=-p)),l=new Date(Date.UTC(r,s,a,o,c,u,h)),p&&l.setTime(l.getTime()-p),l},instanceOf:Date,represent:function(t){return t.toISOString()}})},5250:function(t,e,r){var s;t=r.nmd(t),function(){var n,i="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",c=32,u=128,l=1/0,h=9007199254740991,p=NaN,d=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",v="[object Date]",x="[object Error]",b="[object Function]",w="[object GeneratorFunction]",P="[object Map]",T="[object Number]",S="[object Object]",_="[object Promise]",A="[object RegExp]",k="[object Set]",E="[object String]",C="[object Symbol]",N="[object WeakMap]",I="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",D="[object Int8Array]",F="[object Int16Array]",j="[object Int32Array]",R="[object Uint8Array]",B="[object Uint8ClampedArray]",Y="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,$=RegExp(V.source),K=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(et.source),st=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ot=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ft=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,gt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",Pt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Tt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",kt="\\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",Et="["+wt+"]",Ct="["+kt+"]",Nt="["+Pt+"]",It="\\d+",Mt="["+Tt+"]",Lt="["+St+"]",Ot="[^"+wt+kt+It+Tt+St+_t+"]",Dt="\\ud83c[\\udffb-\\udfff]",Ft="[^"+wt+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Rt="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+_t+"]",Yt="\\u200d",Ut="(?:"+Lt+"|"+Ot+")",Ht="(?:"+Bt+"|"+Ot+")",Wt="(?:['’](?:d|ll|m|re|s|t|ve))?",zt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Vt="(?:"+Nt+"|"+Dt+")?",qt="["+At+"]?",$t=qt+Vt+"(?:"+Yt+"(?:"+[Ft,jt,Rt].join("|")+")"+qt+Vt+")*",Kt="(?:"+[Mt,jt,Rt].join("|")+")"+$t,Jt="(?:"+[Ft+Nt+"?",Nt,jt,Rt,Et].join("|")+")",Gt=RegExp("['’]","g"),Xt=RegExp(Nt,"g"),Zt=RegExp(Dt+"(?="+Dt+")|"+Jt+$t,"g"),Qt=RegExp([Bt+"?"+Lt+"+"+Wt+"(?="+[Ct,Bt,"$"].join("|")+")",Ht+"+"+zt+"(?="+[Ct,Bt+Ut,"$"].join("|")+")",Bt+"?"+Ut+"+"+Wt,Bt+"+"+zt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Kt].join("|"),"g"),te=RegExp("["+Yt+wt+Pt+At+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["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"],se=-1,ne={};ne[L]=ne[O]=ne[D]=ne[F]=ne[j]=ne[R]=ne[B]=ne[Y]=ne[U]=!0,ne[m]=ne[y]=ne[I]=ne[g]=ne[M]=ne[v]=ne[x]=ne[b]=ne[P]=ne[T]=ne[S]=ne[A]=ne[k]=ne[E]=ne[N]=!1;var ie={};ie[m]=ie[y]=ie[I]=ie[M]=ie[g]=ie[v]=ie[L]=ie[O]=ie[D]=ie[F]=ie[j]=ie[P]=ie[T]=ie[S]=ie[A]=ie[k]=ie[E]=ie[C]=ie[R]=ie[B]=ie[Y]=ie[U]=!0,ie[x]=ie[b]=ie[N]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oe=parseFloat,ce=parseInt,ue="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,le="object"==typeof self&&self&&self.Object===Object&&self,he=ue||le||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,fe=de&&de.exports===pe,me=fe&&ue.process,ye=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ge=ye&&ye.isArrayBuffer,ve=ye&&ye.isDate,xe=ye&&ye.isMap,be=ye&&ye.isRegExp,we=ye&&ye.isSet,Pe=ye&&ye.isTypedArray;function Te(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Se(t,e,r,s){for(var n=-1,i=null==t?0:t.length;++n<i;){var a=t[n];e(s,a,r(a),t)}return s}function _e(t,e){for(var r=-1,s=null==t?0:t.length;++r<s&&!1!==e(t[r],r,t););return t}function Ae(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function ke(t,e){for(var r=-1,s=null==t?0:t.length;++r<s;)if(!e(t[r],r,t))return!1;return!0}function Ee(t,e){for(var r=-1,s=null==t?0:t.length,n=0,i=[];++r<s;){var a=t[r];e(a,r,t)&&(i[n++]=a)}return i}function Ce(t,e){return!(null==t||!t.length)&&Be(t,e,0)>-1}function Ne(t,e,r){for(var s=-1,n=null==t?0:t.length;++s<n;)if(r(e,t[s]))return!0;return!1}function Ie(t,e){for(var r=-1,s=null==t?0:t.length,n=Array(s);++r<s;)n[r]=e(t[r],r,t);return n}function Me(t,e){for(var r=-1,s=e.length,n=t.length;++r<s;)t[n+r]=e[r];return t}function Le(t,e,r,s){var n=-1,i=null==t?0:t.length;for(s&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r}function Oe(t,e,r,s){var n=null==t?0:t.length;for(s&&n&&(r=t[--n]);n--;)r=e(r,t[n],n,t);return r}function De(t,e){for(var r=-1,s=null==t?0:t.length;++r<s;)if(e(t[r],r,t))return!0;return!1}var Fe=We("length");function je(t,e,r){var s;return r(t,(function(t,r,n){if(e(t,r,n))return s=r,!1})),s}function Re(t,e,r,s){for(var n=t.length,i=r+(s?1:-1);s?i--:++i<n;)if(e(t[i],i,t))return i;return-1}function Be(t,e,r){return e==e?function(t,e,r){for(var s=r-1,n=t.length;++s<n;)if(t[s]===e)return s;return-1}(t,e,r):Re(t,Ue,r)}function Ye(t,e,r,s){for(var n=r-1,i=t.length;++n<i;)if(s(t[n],e))return n;return-1}function Ue(t){return t!=t}function He(t,e){var r=null==t?0:t.length;return r?qe(t,e)/r:p}function We(t){return function(e){return null==e?n:e[t]}}function ze(t){return function(e){return null==t?n:t[e]}}function Ve(t,e,r,s,n){return n(t,(function(t,n,i){r=s?(s=!1,t):e(r,t,n,i)})),r}function qe(t,e){for(var r,s=-1,i=t.length;++s<i;){var a=e(t[s]);a!==n&&(r=r===n?a:r+a)}return r}function $e(t,e){for(var r=-1,s=Array(t);++r<t;)s[r]=e(r);return s}function Ke(t){return t?t.slice(0,hr(t)+1).replace(st,""):t}function Je(t){return function(e){return t(e)}}function Ge(t,e){return Ie(e,(function(e){return t[e]}))}function Xe(t,e){return t.has(e)}function Ze(t,e){for(var r=-1,s=t.length;++r<s&&Be(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&Be(e,t[r],0)>-1;);return r}var tr=ze({À:"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"}),er=ze({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+ae[t]}function sr(t){return te.test(t)}function nr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,s){r[++e]=[s,t]})),r}function ir(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,s=t.length,n=0,i=[];++r<s;){var a=t[r];a!==e&&a!==o||(t[r]=o,i[n++]=r)}return i}function or(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function ur(t){return sr(t)?function(t){for(var e=Zt.lastIndex=0;Zt.test(t);)++e;return e}(t):Fe(t)}function lr(t){return sr(t)?function(t){return t.match(Zt)||[]}(t):function(t){return t.split("")}(t)}function hr(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var pr=ze({"&":"&","<":"<",">":">",""":'"',"'":"'"}),dr=function t(e){var r,s=(e=null==e?he:dr.defaults(he.Object(),e,dr.pick(he,re))).Array,nt=e.Date,wt=e.Error,Pt=e.Function,Tt=e.Math,St=e.Object,_t=e.RegExp,At=e.String,kt=e.TypeError,Et=s.prototype,Ct=Pt.prototype,Nt=St.prototype,It=e["__core-js_shared__"],Mt=Ct.toString,Lt=Nt.hasOwnProperty,Ot=0,Dt=(r=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ft=Nt.toString,jt=Mt.call(St),Rt=he._,Bt=_t("^"+Mt.call(Lt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yt=fe?e.Buffer:n,Ut=e.Symbol,Ht=e.Uint8Array,Wt=Yt?Yt.allocUnsafe:n,zt=ir(St.getPrototypeOf,St),Vt=St.create,qt=Nt.propertyIsEnumerable,$t=Et.splice,Kt=Ut?Ut.isConcatSpreadable:n,Jt=Ut?Ut.iterator:n,Zt=Ut?Ut.toStringTag:n,te=function(){try{var t=ci(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==he.clearTimeout&&e.clearTimeout,ue=nt&&nt.now!==he.Date.now&&nt.now,le=e.setTimeout!==he.setTimeout&&e.setTimeout,pe=Tt.ceil,de=Tt.floor,me=St.getOwnPropertySymbols,ye=Yt?Yt.isBuffer:n,Fe=e.isFinite,ze=Et.join,fr=ir(St.keys,St),mr=Tt.max,yr=Tt.min,gr=nt.now,vr=e.parseInt,xr=Tt.random,br=Et.reverse,wr=ci(e,"DataView"),Pr=ci(e,"Map"),Tr=ci(e,"Promise"),Sr=ci(e,"Set"),_r=ci(e,"WeakMap"),Ar=ci(St,"create"),kr=_r&&new _r,Er={},Cr=Fi(wr),Nr=Fi(Pr),Ir=Fi(Tr),Mr=Fi(Sr),Lr=Fi(_r),Or=Ut?Ut.prototype:n,Dr=Or?Or.valueOf:n,Fr=Or?Or.toString:n;function jr(t){if(Qa(t)&&!Ha(t)&&!(t instanceof Ur)){if(t instanceof Yr)return t;if(Lt.call(t,"__wrapped__"))return ji(t)}return new Yr(t)}var Rr=function(){function t(){}return function(e){if(!Za(e))return{};if(Vt)return Vt(e);t.prototype=e;var r=new t;return t.prototype=n,r}}();function Br(){}function Yr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=n}function Ur(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Hr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Wr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function zr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var s=t[e];this.set(s[0],s[1])}}function Vr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new zr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Wr(t);this.size=e.size}function $r(t,e){var r=Ha(t),s=!r&&Ua(t),n=!r&&!s&&qa(t),i=!r&&!s&&!n&&oo(t),a=r||s||n||i,o=a?$e(t.length,At):[],c=o.length;for(var u in t)!e&&!Lt.call(t,u)||a&&("length"==u||n&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mi(u,c))||o.push(u);return o}function Kr(t){var e=t.length;return e?t[zs(0,e-1)]:n}function Jr(t,e){return Ii(An(t),ns(e,0,t.length))}function Gr(t){return Ii(An(t))}function Xr(t,e,r){(r!==n&&!Ra(t[e],r)||r===n&&!(e in t))&&rs(t,e,r)}function Zr(t,e,r){var s=t[e];Lt.call(t,e)&&Ra(s,r)&&(r!==n||e in t)||rs(t,e,r)}function Qr(t,e){for(var r=t.length;r--;)if(Ra(t[r][0],e))return r;return-1}function ts(t,e,r,s){return us(t,(function(t,n,i){e(s,t,r(t),i)})),s}function es(t,e){return t&&kn(e,No(e),t)}function rs(t,e,r){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function ss(t,e){for(var r=-1,i=e.length,a=s(i),o=null==t;++r<i;)a[r]=o?n:_o(t,e[r]);return a}function ns(t,e,r){return t==t&&(r!==n&&(t=t<=r?t:r),e!==n&&(t=t>=e?t:e)),t}function is(t,e,r,s,i,a){var o,c=1&e,u=2&e,l=4&e;if(r&&(o=i?r(t,s,i,a):r(t)),o!==n)return o;if(!Za(t))return t;var h=Ha(t);if(h){if(o=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Lt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return An(t,o)}else{var p=hi(t),d=p==b||p==w;if(qa(t))return bn(t,c);if(p==S||p==m||d&&!i){if(o=u||d?{}:di(t),!c)return u?function(t,e){return kn(t,li(t),e)}(t,function(t,e){return t&&kn(e,Io(e),t)}(o,t)):function(t,e){return kn(t,ui(t),e)}(t,es(o,t))}else{if(!ie[p])return i?t:{};o=function(t,e,r){var s,n=t.constructor;switch(e){case I:return wn(t);case g:case v:return new n(+t);case M:return function(t,e){var r=e?wn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case L:case O:case D:case F:case j:case R:case B:case Y:case U:return Pn(t,r);case P:return new n;case T:case E:return new n(t);case A:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case k:return new n;case C:return s=t,Dr?St(Dr.call(s)):{}}}(t,p,c)}}a||(a=new qr);var f=a.get(t);if(f)return f;a.set(t,o),no(t)?t.forEach((function(s){o.add(is(s,e,r,s,t,a))})):to(t)&&t.forEach((function(s,n){o.set(n,is(s,e,r,n,t,a))}));var y=h?n:(l?u?ei:ti:u?Io:No)(t);return _e(y||t,(function(s,n){y&&(s=t[n=s]),Zr(o,n,is(s,e,r,n,t,a))})),o}function as(t,e,r){var s=r.length;if(null==t)return!s;for(t=St(t);s--;){var i=r[s],a=e[i],o=t[i];if(o===n&&!(i in t)||!a(o))return!1}return!0}function os(t,e,r){if("function"!=typeof t)throw new kt(i);return ki((function(){t.apply(n,r)}),e)}function cs(t,e,r,s){var n=-1,i=Ce,a=!0,o=t.length,c=[],u=e.length;if(!o)return c;r&&(e=Ie(e,Je(r))),s?(i=Ne,a=!1):e.length>=200&&(i=Xe,a=!1,e=new Vr(e));t:for(;++n<o;){var l=t[n],h=null==r?l:r(l);if(l=s||0!==l?l:0,a&&h==h){for(var p=u;p--;)if(e[p]===h)continue t;c.push(l)}else i(e,h,s)||c.push(l)}return c}jr.templateSettings={escape:J,evaluate:G,interpolate:X,variable:"",imports:{_:jr}},jr.prototype=Br.prototype,jr.prototype.constructor=jr,Yr.prototype=Rr(Br.prototype),Yr.prototype.constructor=Yr,Ur.prototype=Rr(Br.prototype),Ur.prototype.constructor=Ur,Hr.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Hr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Hr.prototype.get=function(t){var e=this.__data__;if(Ar){var r=e[t];return r===a?n:r}return Lt.call(e,t)?e[t]:n},Hr.prototype.has=function(t){var e=this.__data__;return Ar?e[t]!==n:Lt.call(e,t)},Hr.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ar&&e===n?a:e,this},Wr.prototype.clear=function(){this.__data__=[],this.size=0},Wr.prototype.delete=function(t){var e=this.__data__,r=Qr(e,t);return!(r<0||(r==e.length-1?e.pop():$t.call(e,r,1),--this.size,0))},Wr.prototype.get=function(t){var e=this.__data__,r=Qr(e,t);return r<0?n:e[r][1]},Wr.prototype.has=function(t){return Qr(this.__data__,t)>-1},Wr.prototype.set=function(t,e){var r=this.__data__,s=Qr(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Hr,map:new(Pr||Wr),string:new Hr}},zr.prototype.delete=function(t){var e=ai(this,t).delete(t);return this.size-=e?1:0,e},zr.prototype.get=function(t){return ai(this,t).get(t)},zr.prototype.has=function(t){return ai(this,t).has(t)},zr.prototype.set=function(t,e){var r=ai(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this},Vr.prototype.add=Vr.prototype.push=function(t){return this.__data__.set(t,a),this},Vr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Wr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Wr){var s=r.__data__;if(!Pr||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new zr(s)}return r.set(t,e),this.size=r.size,this};var us=Nn(gs),ls=Nn(vs,!0);function hs(t,e){var r=!0;return us(t,(function(t,s,n){return r=!!e(t,s,n)})),r}function ps(t,e,r){for(var s=-1,i=t.length;++s<i;){var a=t[s],o=e(a);if(null!=o&&(c===n?o==o&&!ao(o):r(o,c)))var c=o,u=a}return u}function ds(t,e){var r=[];return us(t,(function(t,s,n){e(t,s,n)&&r.push(t)})),r}function fs(t,e,r,s,n){var i=-1,a=t.length;for(r||(r=fi),n||(n=[]);++i<a;){var o=t[i];e>0&&r(o)?e>1?fs(o,e-1,r,s,n):Me(n,o):s||(n[n.length]=o)}return n}var ms=In(),ys=In(!0);function gs(t,e){return t&&ms(t,e,No)}function vs(t,e){return t&&ys(t,e,No)}function xs(t,e){return Ee(e,(function(e){return Ja(t[e])}))}function bs(t,e){for(var r=0,s=(e=yn(e,t)).length;null!=t&&r<s;)t=t[Di(e[r++])];return r&&r==s?t:n}function ws(t,e,r){var s=e(t);return Ha(t)?s:Me(s,r(t))}function Ps(t){return null==t?t===n?"[object Undefined]":"[object Null]":Zt&&Zt in St(t)?function(t){var e=Lt.call(t,Zt),r=t[Zt];try{t[Zt]=n;var s=!0}catch(t){}var i=Ft.call(t);return s&&(e?t[Zt]=r:delete t[Zt]),i}(t):function(t){return Ft.call(t)}(t)}function Ts(t,e){return t>e}function Ss(t,e){return null!=t&&Lt.call(t,e)}function _s(t,e){return null!=t&&e in St(t)}function As(t,e,r){for(var i=r?Ne:Ce,a=t[0].length,o=t.length,c=o,u=s(o),l=1/0,h=[];c--;){var p=t[c];c&&e&&(p=Ie(p,Je(e))),l=yr(p.length,l),u[c]=!r&&(e||a>=120&&p.length>=120)?new Vr(c&&p):n}p=t[0];var d=-1,f=u[0];t:for(;++d<a&&h.length<l;){var m=p[d],y=e?e(m):m;if(m=r||0!==m?m:0,!(f?Xe(f,y):i(h,y,r))){for(c=o;--c;){var g=u[c];if(!(g?Xe(g,y):i(t[c],y,r)))continue t}f&&f.push(y),h.push(m)}}return h}function ks(t,e,r){var s=null==(t=Si(t,e=yn(e,t)))?t:t[Di(Ki(e))];return null==s?n:Te(s,t,r)}function Es(t){return Qa(t)&&Ps(t)==m}function Cs(t,e,r,s,i){return t===e||(null==t||null==e||!Qa(t)&&!Qa(e)?t!=t&&e!=e:function(t,e,r,s,i,a){var o=Ha(t),c=Ha(e),u=o?y:hi(t),l=c?y:hi(e),h=(u=u==m?S:u)==S,p=(l=l==m?S:l)==S,d=u==l;if(d&&qa(t)){if(!qa(e))return!1;o=!0,h=!1}if(d&&!h)return a||(a=new qr),o||oo(t)?Zn(t,e,r,s,i,a):function(t,e,r,s,n,i,a){switch(r){case M:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case I:return!(t.byteLength!=e.byteLength||!i(new Ht(t),new Ht(e)));case g:case v:case T:return Ra(+t,+e);case x:return t.name==e.name&&t.message==e.message;case A:case E:return t==e+"";case P:var o=nr;case k:var c=1&s;if(o||(o=or),t.size!=e.size&&!c)return!1;var u=a.get(t);if(u)return u==e;s|=2,a.set(t,e);var l=Zn(o(t),o(e),s,n,i,a);return a.delete(t),l;case C:if(Dr)return Dr.call(t)==Dr.call(e)}return!1}(t,e,u,r,s,i,a);if(!(1&r)){var f=h&&Lt.call(t,"__wrapped__"),b=p&&Lt.call(e,"__wrapped__");if(f||b){var w=f?t.value():t,_=b?e.value():e;return a||(a=new qr),i(w,_,r,s,a)}}return!!d&&(a||(a=new qr),function(t,e,r,s,i,a){var o=1&r,c=ti(t),u=c.length;if(u!=ti(e).length&&!o)return!1;for(var l=u;l--;){var h=c[l];if(!(o?h in e:Lt.call(e,h)))return!1}var p=a.get(t),d=a.get(e);if(p&&d)return p==e&&d==t;var f=!0;a.set(t,e),a.set(e,t);for(var m=o;++l<u;){var y=t[h=c[l]],g=e[h];if(s)var v=o?s(g,y,h,e,t,a):s(y,g,h,t,e,a);if(!(v===n?y===g||i(y,g,r,s,a):v)){f=!1;break}m||(m="constructor"==h)}if(f&&!m){var x=t.constructor,b=e.constructor;x==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof b&&b instanceof b||(f=!1)}return a.delete(t),a.delete(e),f}(t,e,r,s,i,a))}(t,e,r,s,Cs,i))}function Ns(t,e,r,s){var i=r.length,a=i,o=!s;if(null==t)return!a;for(t=St(t);i--;){var c=r[i];if(o&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<a;){var u=(c=r[i])[0],l=t[u],h=c[1];if(o&&c[2]){if(l===n&&!(u in t))return!1}else{var p=new qr;if(s)var d=s(l,h,u,t,e,p);if(!(d===n?Cs(h,l,3,s,p):d))return!1}}return!0}function Is(t){return!(!Za(t)||(e=t,Dt&&Dt in e))&&(Ja(t)?Bt:mt).test(Fi(t));var e}function Ms(t){return"function"==typeof t?t:null==t?rc:"object"==typeof t?Ha(t)?js(t[0],t[1]):Fs(t):hc(t)}function Ls(t){if(!bi(t))return fr(t);var e=[];for(var r in St(t))Lt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Os(t,e){return t<e}function Ds(t,e){var r=-1,n=za(t)?s(t.length):[];return us(t,(function(t,s,i){n[++r]=e(t,s,i)})),n}function Fs(t){var e=oi(t);return 1==e.length&&e[0][2]?Pi(e[0][0],e[0][1]):function(r){return r===t||Ns(r,t,e)}}function js(t,e){return gi(t)&&wi(e)?Pi(Di(t),e):function(r){var s=_o(r,t);return s===n&&s===e?Ao(r,t):Cs(e,s,3)}}function Rs(t,e,r,s,i){t!==e&&ms(e,(function(a,o){if(i||(i=new qr),Za(a))!function(t,e,r,s,i,a,o){var c=_i(t,r),u=_i(e,r),l=o.get(u);if(l)Xr(t,r,l);else{var h=a?a(c,u,r+"",t,e,o):n,p=h===n;if(p){var d=Ha(u),f=!d&&qa(u),m=!d&&!f&&oo(u);h=u,d||f||m?Ha(c)?h=c:Va(c)?h=An(c):f?(p=!1,h=bn(u,!0)):m?(p=!1,h=Pn(u,!0)):h=[]:ro(u)||Ua(u)?(h=c,Ua(c)?h=yo(c):Za(c)&&!Ja(c)||(h=di(u))):p=!1}p&&(o.set(u,h),i(h,u,s,a,o),o.delete(u)),Xr(t,r,h)}}(t,e,o,r,Rs,s,i);else{var c=s?s(_i(t,o),a,o+"",t,e,i):n;c===n&&(c=a),Xr(t,o,c)}}),Io)}function Bs(t,e){var r=t.length;if(r)return mi(e+=e<0?r:0,r)?t[e]:n}function Ys(t,e,r){e=e.length?Ie(e,(function(t){return Ha(t)?function(e){return bs(e,1===t.length?t[0]:t)}:t})):[rc];var s=-1;e=Ie(e,Je(ii()));var n=Ds(t,(function(t,r,n){var i=Ie(e,(function(e){return e(t)}));return{criteria:i,index:++s,value:t}}));return function(t,e){var s=t.length;for(t.sort((function(t,e){return function(t,e,r){for(var s=-1,n=t.criteria,i=e.criteria,a=n.length,o=r.length;++s<a;){var c=Tn(n[s],i[s]);if(c)return s>=o?c:c*("desc"==r[s]?-1:1)}return t.index-e.index}(t,e,r)}));s--;)t[s]=t[s].value;return t}(n)}function Us(t,e,r){for(var s=-1,n=e.length,i={};++s<n;){var a=e[s],o=bs(t,a);r(o,a)&&Js(i,yn(a,t),o)}return i}function Hs(t,e,r,s){var n=s?Ye:Be,i=-1,a=e.length,o=t;for(t===e&&(e=An(e)),r&&(o=Ie(t,Je(r)));++i<a;)for(var c=0,u=e[i],l=r?r(u):u;(c=n(o,l,c,s))>-1;)o!==t&&$t.call(o,c,1),$t.call(t,c,1);return t}function Ws(t,e){for(var r=t?e.length:0,s=r-1;r--;){var n=e[r];if(r==s||n!==i){var i=n;mi(n)?$t.call(t,n,1):cn(t,n)}}return t}function zs(t,e){return t+de(xr()*(e-t+1))}function Vs(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=de(e/2))&&(t+=t)}while(e);return r}function qs(t,e){return Ei(Ti(t,e,rc),t+"")}function $s(t){return Kr(Bo(t))}function Ks(t,e){var r=Bo(t);return Ii(r,ns(e,0,r.length))}function Js(t,e,r,s){if(!Za(t))return t;for(var i=-1,a=(e=yn(e,t)).length,o=a-1,c=t;null!=c&&++i<a;){var u=Di(e[i]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=o){var h=c[u];(l=s?s(h,u,c):n)===n&&(l=Za(h)?h:mi(e[i+1])?[]:{})}Zr(c,u,l),c=c[u]}return t}var Gs=kr?function(t,e){return kr.set(t,e),t}:rc,Xs=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Qo(e),writable:!0})}:rc;function Zs(t){return Ii(Bo(t))}function Qs(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var a=s(i);++n<i;)a[n]=t[n+e];return a}function tn(t,e){var r;return us(t,(function(t,s,n){return!(r=e(t,s,n))})),!!r}function en(t,e,r){var s=0,n=null==t?s:t.length;if("number"==typeof e&&e==e&&n<=2147483647){for(;s<n;){var i=s+n>>>1,a=t[i];null!==a&&!ao(a)&&(r?a<=e:a<e)?s=i+1:n=i}return n}return rn(t,e,rc,r)}function rn(t,e,r,s){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var o=(e=r(e))!=e,c=null===e,u=ao(e),l=e===n;i<a;){var h=de((i+a)/2),p=r(t[h]),d=p!==n,f=null===p,m=p==p,y=ao(p);if(o)var g=s||m;else g=l?m&&(s||d):c?m&&d&&(s||!f):u?m&&d&&!f&&(s||!y):!f&&!y&&(s?p<=e:p<e);g?i=h+1:a=h}return yr(a,4294967294)}function sn(t,e){for(var r=-1,s=t.length,n=0,i=[];++r<s;){var a=t[r],o=e?e(a):a;if(!r||!Ra(o,c)){var c=o;i[n++]=0===a?0:a}}return i}function nn(t){return"number"==typeof t?t:ao(t)?p:+t}function an(t){if("string"==typeof t)return t;if(Ha(t))return Ie(t,an)+"";if(ao(t))return Fr?Fr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function on(t,e,r){var s=-1,n=Ce,i=t.length,a=!0,o=[],c=o;if(r)a=!1,n=Ne;else if(i>=200){var u=e?null:qn(t);if(u)return or(u);a=!1,n=Xe,c=new Vr}else c=e?[]:o;t:for(;++s<i;){var l=t[s],h=e?e(l):l;if(l=r||0!==l?l:0,a&&h==h){for(var p=c.length;p--;)if(c[p]===h)continue t;e&&c.push(h),o.push(l)}else n(c,h,r)||(c!==o&&c.push(h),o.push(l))}return o}function cn(t,e){return null==(t=Si(t,e=yn(e,t)))||delete t[Di(Ki(e))]}function un(t,e,r,s){return Js(t,e,r(bs(t,e)),s)}function ln(t,e,r,s){for(var n=t.length,i=s?n:-1;(s?i--:++i<n)&&e(t[i],i,t););return r?Qs(t,s?0:i,s?i+1:n):Qs(t,s?i+1:0,s?n:i)}function hn(t,e){var r=t;return r instanceof Ur&&(r=r.value()),Le(e,(function(t,e){return e.func.apply(e.thisArg,Me([t],e.args))}),r)}function pn(t,e,r){var n=t.length;if(n<2)return n?on(t[0]):[];for(var i=-1,a=s(n);++i<n;)for(var o=t[i],c=-1;++c<n;)c!=i&&(a[i]=cs(a[i]||o,t[c],e,r));return on(fs(a,1),e,r)}function dn(t,e,r){for(var s=-1,i=t.length,a=e.length,o={};++s<i;){var c=s<a?e[s]:n;r(o,t[s],c)}return o}function fn(t){return Va(t)?t:[]}function mn(t){return"function"==typeof t?t:rc}function yn(t,e){return Ha(t)?t:gi(t,e)?[t]:Oi(go(t))}var gn=qs;function vn(t,e,r){var s=t.length;return r=r===n?s:r,!e&&r>=s?t:Qs(t,e,r)}var xn=ae||function(t){return he.clearTimeout(t)};function bn(t,e){if(e)return t.slice();var r=t.length,s=Wt?Wt(r):new t.constructor(r);return t.copy(s),s}function wn(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function Pn(t,e){var r=e?wn(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Tn(t,e){if(t!==e){var r=t!==n,s=null===t,i=t==t,a=ao(t),o=e!==n,c=null===e,u=e==e,l=ao(e);if(!c&&!l&&!a&&t>e||a&&o&&u&&!c&&!l||s&&o&&u||!r&&u||!i)return 1;if(!s&&!a&&!l&&t<e||l&&r&&i&&!s&&!a||c&&r&&i||!o&&i||!u)return-1}return 0}function Sn(t,e,r,n){for(var i=-1,a=t.length,o=r.length,c=-1,u=e.length,l=mr(a-o,0),h=s(u+l),p=!n;++c<u;)h[c]=e[c];for(;++i<o;)(p||i<a)&&(h[r[i]]=t[i]);for(;l--;)h[c++]=t[i++];return h}function _n(t,e,r,n){for(var i=-1,a=t.length,o=-1,c=r.length,u=-1,l=e.length,h=mr(a-c,0),p=s(h+l),d=!n;++i<h;)p[i]=t[i];for(var f=i;++u<l;)p[f+u]=e[u];for(;++o<c;)(d||i<a)&&(p[f+r[o]]=t[i++]);return p}function An(t,e){var r=-1,n=t.length;for(e||(e=s(n));++r<n;)e[r]=t[r];return e}function kn(t,e,r,s){var i=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var c=e[a],u=s?s(r[c],t[c],c,r,t):n;u===n&&(u=t[c]),i?rs(r,c,u):Zr(r,c,u)}return r}function En(t,e){return function(r,s){var n=Ha(r)?Se:ts,i=e?e():{};return n(r,t,ii(s,2),i)}}function Cn(t){return qs((function(e,r){var s=-1,i=r.length,a=i>1?r[i-1]:n,o=i>2?r[2]:n;for(a=t.length>3&&"function"==typeof a?(i--,a):n,o&&yi(r[0],r[1],o)&&(a=i<3?n:a,i=1),e=St(e);++s<i;){var c=r[s];c&&t(e,c,s,a)}return e}))}function Nn(t,e){return function(r,s){if(null==r)return r;if(!za(r))return t(r,s);for(var n=r.length,i=e?n:-1,a=St(r);(e?i--:++i<n)&&!1!==s(a[i],i,a););return r}}function In(t){return function(e,r,s){for(var n=-1,i=St(e),a=s(e),o=a.length;o--;){var c=a[t?o:++n];if(!1===r(i[c],c,i))break}return e}}function Mn(t){return function(e){var r=sr(e=go(e))?lr(e):n,s=r?r[0]:e.charAt(0),i=r?vn(r,1).join(""):e.slice(1);return s[t]()+i}}function Ln(t){return function(e){return Le(Go(Ho(e).replace(Gt,"")),t,"")}}function On(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=Rr(t.prototype),s=t.apply(r,e);return Za(s)?s:r}}function Dn(t){return function(e,r,s){var i=St(e);if(!za(e)){var a=ii(r,3);e=No(e),r=function(t){return a(i[t],t,i)}}var o=t(e,r,s);return o>-1?i[a?e[o]:o]:n}}function Fn(t){return Qn((function(e){var r=e.length,s=r,a=Yr.prototype.thru;for(t&&e.reverse();s--;){var o=e[s];if("function"!=typeof o)throw new kt(i);if(a&&!c&&"wrapper"==si(o))var c=new Yr([],!0)}for(s=c?s:r;++s<r;){var u=si(o=e[s]),l="wrapper"==u?ri(o):n;c=l&&vi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[si(l[0])].apply(c,l[3]):1==o.length&&vi(o)?c[u]():c.thru(o)}return function(){var t=arguments,s=t[0];if(c&&1==t.length&&Ha(s))return c.plant(s).value();for(var n=0,i=r?e[n].apply(this,t):s;++n<r;)i=e[n].call(this,i);return i}}))}function jn(t,e,r,i,a,o,c,l,h,p){var d=e&u,f=1&e,m=2&e,y=24&e,g=512&e,v=m?n:On(t);return function u(){for(var x=arguments.length,b=s(x),w=x;w--;)b[w]=arguments[w];if(y)var P=ni(u),T=function(t,e){for(var r=t.length,s=0;r--;)t[r]===e&&++s;return s}(b,P);if(i&&(b=Sn(b,i,a,y)),o&&(b=_n(b,o,c,y)),x-=T,y&&x<p){var S=ar(b,P);return zn(t,e,jn,u.placeholder,r,b,S,l,h,p-x)}var _=f?r:this,A=m?_[t]:t;return x=b.length,l?b=function(t,e){for(var r=t.length,s=yr(e.length,r),i=An(t);s--;){var a=e[s];t[s]=mi(a,r)?i[a]:n}return t}(b,l):g&&x>1&&b.reverse(),d&&h<x&&(b.length=h),this&&this!==he&&this instanceof u&&(A=v||On(A)),A.apply(_,b)}}function Rn(t,e){return function(r,s){return function(t,e,r,s){return gs(t,(function(t,n,i){e(s,r(t),n,i)})),s}(r,t,e(s),{})}}function Bn(t,e){return function(r,s){var i;if(r===n&&s===n)return e;if(r!==n&&(i=r),s!==n){if(i===n)return s;"string"==typeof r||"string"==typeof s?(r=an(r),s=an(s)):(r=nn(r),s=nn(s)),i=t(r,s)}return i}}function Yn(t){return Qn((function(e){return e=Ie(e,Je(ii())),qs((function(r){var s=this;return t(e,(function(t){return Te(t,s,r)}))}))}))}function Un(t,e){var r=(e=e===n?" ":an(e)).length;if(r<2)return r?Vs(e,t):e;var s=Vs(e,pe(t/ur(e)));return sr(e)?vn(lr(s),0,t).join(""):s.slice(0,t)}function Hn(t){return function(e,r,i){return i&&"number"!=typeof i&&yi(e,r,i)&&(r=i=n),e=ho(e),r===n?(r=e,e=0):r=ho(r),function(t,e,r,n){for(var i=-1,a=mr(pe((e-t)/(r||1)),0),o=s(a);a--;)o[n?a:++i]=t,t+=r;return o}(e,r,i=i===n?e<r?1:-1:ho(i),t)}}function Wn(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=mo(e),r=mo(r)),t(e,r)}}function zn(t,e,r,s,i,a,o,u,l,h){var p=8&e;e|=p?c:64,4&(e&=~(p?64:c))||(e&=-4);var d=[t,e,i,p?a:n,p?o:n,p?n:a,p?n:o,u,l,h],f=r.apply(n,d);return vi(t)&&Ai(f,d),f.placeholder=s,Ci(f,t,e)}function Vn(t){var e=Tt[t];return function(t,r){if(t=mo(t),(r=null==r?0:yr(po(r),292))&&Fe(t)){var s=(go(t)+"e").split("e");return+((s=(go(e(s[0]+"e"+(+s[1]+r)))+"e").split("e"))[0]+"e"+(+s[1]-r))}return e(t)}}var qn=Sr&&1/or(new Sr([,-0]))[1]==l?function(t){return new Sr(t)}:oc;function $n(t){return function(e){var r=hi(e);return r==P?nr(e):r==k?cr(e):function(t,e){return Ie(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Kn(t,e,r,a,l,h,p,d){var f=2&e;if(!f&&"function"!=typeof t)throw new kt(i);var m=a?a.length:0;if(m||(e&=-97,a=l=n),p=p===n?p:mr(po(p),0),d=d===n?d:po(d),m-=l?l.length:0,64&e){var y=a,g=l;a=l=n}var v=f?n:ri(t),x=[t,e,r,a,l,y,g,h,p,d];if(v&&function(t,e){var r=t[1],s=e[1],n=r|s,i=n<131,a=s==u&&8==r||s==u&&256==r&&t[7].length<=e[8]||384==s&&e[7].length<=e[8]&&8==r;if(!i&&!a)return t;1&s&&(t[2]=e[2],n|=1&r?0:4);var c=e[3];if(c){var l=t[3];t[3]=l?Sn(l,c,e[4]):c,t[4]=l?ar(t[3],o):e[4]}(c=e[5])&&(l=t[5],t[5]=l?_n(l,c,e[6]):c,t[6]=l?ar(t[5],o):e[6]),(c=e[7])&&(t[7]=c),s&u&&(t[8]=null==t[8]?e[8]:yr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=n}(x,v),t=x[0],e=x[1],r=x[2],a=x[3],l=x[4],!(d=x[9]=x[9]===n?f?0:t.length:mr(x[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,r){var i=On(t);return function a(){for(var o=arguments.length,c=s(o),u=o,l=ni(a);u--;)c[u]=arguments[u];var h=o<3&&c[0]!==l&&c[o-1]!==l?[]:ar(c,l);return(o-=h.length)<r?zn(t,e,jn,a.placeholder,n,c,h,n,n,r-o):Te(this&&this!==he&&this instanceof a?i:t,this,c)}}(t,e,d):e!=c&&33!=e||l.length?jn.apply(n,x):function(t,e,r,n){var i=1&e,a=On(t);return function e(){for(var o=-1,c=arguments.length,u=-1,l=n.length,h=s(l+c),p=this&&this!==he&&this instanceof e?a:t;++u<l;)h[u]=n[u];for(;c--;)h[u++]=arguments[++o];return Te(p,i?r:this,h)}}(t,e,r,a);else var b=function(t,e,r){var s=1&e,n=On(t);return function e(){return(this&&this!==he&&this instanceof e?n:t).apply(s?r:this,arguments)}}(t,e,r);return Ci((v?Gs:Ai)(b,x),t,e)}function Jn(t,e,r,s){return t===n||Ra(t,Nt[r])&&!Lt.call(s,r)?e:t}function Gn(t,e,r,s,i,a){return Za(t)&&Za(e)&&(a.set(e,t),Rs(t,e,n,Gn,a),a.delete(e)),t}function Xn(t){return ro(t)?n:t}function Zn(t,e,r,s,i,a){var o=1&r,c=t.length,u=e.length;if(c!=u&&!(o&&u>c))return!1;var l=a.get(t),h=a.get(e);if(l&&h)return l==e&&h==t;var p=-1,d=!0,f=2&r?new Vr:n;for(a.set(t,e),a.set(e,t);++p<c;){var m=t[p],y=e[p];if(s)var g=o?s(y,m,p,e,t,a):s(m,y,p,t,e,a);if(g!==n){if(g)continue;d=!1;break}if(f){if(!De(e,(function(t,e){if(!Xe(f,e)&&(m===t||i(m,t,r,s,a)))return f.push(e)}))){d=!1;break}}else if(m!==y&&!i(m,y,r,s,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function Qn(t){return Ei(Ti(t,n,Wi),t+"")}function ti(t){return ws(t,No,ui)}function ei(t){return ws(t,Io,li)}var ri=kr?function(t){return kr.get(t)}:oc;function si(t){for(var e=t.name+"",r=Er[e],s=Lt.call(Er,e)?r.length:0;s--;){var n=r[s],i=n.func;if(null==i||i==t)return n.name}return e}function ni(t){return(Lt.call(jr,"placeholder")?jr:t).placeholder}function ii(){var t=jr.iteratee||sc;return t=t===sc?Ms:t,arguments.length?t(arguments[0],arguments[1]):t}function ai(t,e){var r,s,n=t.__data__;return("string"==(s=typeof(r=e))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==r:null===r)?n["string"==typeof e?"string":"hash"]:n.map}function oi(t){for(var e=No(t),r=e.length;r--;){var s=e[r],n=t[s];e[r]=[s,n,wi(n)]}return e}function ci(t,e){var r=function(t,e){return null==t?n:t[e]}(t,e);return Is(r)?r:n}var ui=me?function(t){return null==t?[]:(t=St(t),Ee(me(t),(function(e){return qt.call(t,e)})))}:fc,li=me?function(t){for(var e=[];t;)Me(e,ui(t)),t=zt(t);return e}:fc,hi=Ps;function pi(t,e,r){for(var s=-1,n=(e=yn(e,t)).length,i=!1;++s<n;){var a=Di(e[s]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++s!=n?i:!!(n=null==t?0:t.length)&&Xa(n)&&mi(a,n)&&(Ha(t)||Ua(t))}function di(t){return"function"!=typeof t.constructor||bi(t)?{}:Rr(zt(t))}function fi(t){return Ha(t)||Ua(t)||!!(Kt&&t&&t[Kt])}function mi(t,e){var r=typeof t;return!!(e=null==e?h:e)&&("number"==r||"symbol"!=r&>.test(t))&&t>-1&&t%1==0&&t<e}function yi(t,e,r){if(!Za(r))return!1;var s=typeof e;return!!("number"==s?za(r)&&mi(e,r.length):"string"==s&&e in r)&&Ra(r[e],t)}function gi(t,e){if(Ha(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ao(t))||Q.test(t)||!Z.test(t)||null!=e&&t in St(e)}function vi(t){var e=si(t),r=jr[e];if("function"!=typeof r||!(e in Ur.prototype))return!1;if(t===r)return!0;var s=ri(r);return!!s&&t===s[0]}(wr&&hi(new wr(new ArrayBuffer(1)))!=M||Pr&&hi(new Pr)!=P||Tr&&hi(Tr.resolve())!=_||Sr&&hi(new Sr)!=k||_r&&hi(new _r)!=N)&&(hi=function(t){var e=Ps(t),r=e==S?t.constructor:n,s=r?Fi(r):"";if(s)switch(s){case Cr:return M;case Nr:return P;case Ir:return _;case Mr:return k;case Lr:return N}return e});var xi=It?Ja:mc;function bi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Nt)}function wi(t){return t==t&&!Za(t)}function Pi(t,e){return function(r){return null!=r&&r[t]===e&&(e!==n||t in St(r))}}function Ti(t,e,r){return e=mr(e===n?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=mr(n.length-e,0),o=s(a);++i<a;)o[i]=n[e+i];i=-1;for(var c=s(e+1);++i<e;)c[i]=n[i];return c[e]=r(o),Te(t,this,c)}}function Si(t,e){return e.length<2?t:bs(t,Qs(e,0,-1))}function _i(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ai=Ni(Gs),ki=le||function(t,e){return he.setTimeout(t,e)},Ei=Ni(Xs);function Ci(t,e,r){var s=e+"";return Ei(t,function(t,e){var r=e.length;if(!r)return t;var s=r-1;return e[s]=(r>1?"& ":"")+e[s],e=e.join(r>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(s,function(t,e){return _e(f,(function(r){var s="_."+r[0];e&r[1]&&!Ce(t,s)&&t.push(s)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ot):[]}(s),r)))}function Ni(t){var e=0,r=0;return function(){var s=gr(),i=16-(s-r);if(r=s,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(n,arguments)}}function Ii(t,e){var r=-1,s=t.length,i=s-1;for(e=e===n?s:e;++r<e;){var a=zs(r,i),o=t[a];t[a]=t[r],t[r]=o}return t.length=e,t}var Mi,Li,Oi=(Mi=Ma((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,r,s,n){e.push(s?n.replace(lt,"$1"):r||t)})),e}),(function(t){return 500===Li.size&&Li.clear(),t})),Li=Mi.cache,Mi);function Di(t){if("string"==typeof t||ao(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fi(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ji(t){if(t instanceof Ur)return t.clone();var e=new Yr(t.__wrapped__,t.__chain__);return e.__actions__=An(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Ri=qs((function(t,e){return Va(t)?cs(t,fs(e,1,Va,!0)):[]})),Bi=qs((function(t,e){var r=Ki(e);return Va(r)&&(r=n),Va(t)?cs(t,fs(e,1,Va,!0),ii(r,2)):[]})),Yi=qs((function(t,e){var r=Ki(e);return Va(r)&&(r=n),Va(t)?cs(t,fs(e,1,Va,!0),n,r):[]}));function Ui(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var n=null==r?0:po(r);return n<0&&(n=mr(s+n,0)),Re(t,ii(e,3),n)}function Hi(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var i=s-1;return r!==n&&(i=po(r),i=r<0?mr(s+i,0):yr(i,s-1)),Re(t,ii(e,3),i,!0)}function Wi(t){return null!=t&&t.length?fs(t,1):[]}function zi(t){return t&&t.length?t[0]:n}var Vi=qs((function(t){var e=Ie(t,fn);return e.length&&e[0]===t[0]?As(e):[]})),qi=qs((function(t){var e=Ki(t),r=Ie(t,fn);return e===Ki(r)?e=n:r.pop(),r.length&&r[0]===t[0]?As(r,ii(e,2)):[]})),$i=qs((function(t){var e=Ki(t),r=Ie(t,fn);return(e="function"==typeof e?e:n)&&r.pop(),r.length&&r[0]===t[0]?As(r,n,e):[]}));function Ki(t){var e=null==t?0:t.length;return e?t[e-1]:n}var Ji=qs(Gi);function Gi(t,e){return t&&t.length&&e&&e.length?Hs(t,e):t}var Xi=Qn((function(t,e){var r=null==t?0:t.length,s=ss(t,e);return Ws(t,Ie(e,(function(t){return mi(t,r)?+t:t})).sort(Tn)),s}));function Zi(t){return null==t?t:br.call(t)}var Qi=qs((function(t){return on(fs(t,1,Va,!0))})),ta=qs((function(t){var e=Ki(t);return Va(e)&&(e=n),on(fs(t,1,Va,!0),ii(e,2))})),ea=qs((function(t){var e=Ki(t);return e="function"==typeof e?e:n,on(fs(t,1,Va,!0),n,e)}));function ra(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,(function(t){if(Va(t))return e=mr(t.length,e),!0})),$e(e,(function(e){return Ie(t,We(e))}))}function sa(t,e){if(!t||!t.length)return[];var r=ra(t);return null==e?r:Ie(r,(function(t){return Te(e,n,t)}))}var na=qs((function(t,e){return Va(t)?cs(t,e):[]})),ia=qs((function(t){return pn(Ee(t,Va))})),aa=qs((function(t){var e=Ki(t);return Va(e)&&(e=n),pn(Ee(t,Va),ii(e,2))})),oa=qs((function(t){var e=Ki(t);return e="function"==typeof e?e:n,pn(Ee(t,Va),n,e)})),ca=qs(ra),ua=qs((function(t){var e=t.length,r=e>1?t[e-1]:n;return r="function"==typeof r?(t.pop(),r):n,sa(t,r)}));function la(t){var e=jr(t);return e.__chain__=!0,e}function ha(t,e){return e(t)}var pa=Qn((function(t){var e=t.length,r=e?t[0]:0,s=this.__wrapped__,i=function(e){return ss(e,t)};return!(e>1||this.__actions__.length)&&s instanceof Ur&&mi(r)?((s=s.slice(r,+r+(e?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Yr(s,this.__chain__).thru((function(t){return e&&!t.length&&t.push(n),t}))):this.thru(i)})),da=En((function(t,e,r){Lt.call(t,r)?++t[r]:rs(t,r,1)})),fa=Dn(Ui),ma=Dn(Hi);function ya(t,e){return(Ha(t)?_e:us)(t,ii(e,3))}function ga(t,e){return(Ha(t)?Ae:ls)(t,ii(e,3))}var va=En((function(t,e,r){Lt.call(t,r)?t[r].push(e):rs(t,r,[e])})),xa=qs((function(t,e,r){var n=-1,i="function"==typeof e,a=za(t)?s(t.length):[];return us(t,(function(t){a[++n]=i?Te(e,t,r):ks(t,e,r)})),a})),ba=En((function(t,e,r){rs(t,r,e)}));function wa(t,e){return(Ha(t)?Ie:Ds)(t,ii(e,3))}var Pa=En((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),Ta=qs((function(t,e){if(null==t)return[];var r=e.length;return r>1&&yi(t,e[0],e[1])?e=[]:r>2&&yi(e[0],e[1],e[2])&&(e=[e[0]]),Ys(t,fs(e,1),[])})),Sa=ue||function(){return he.Date.now()};function _a(t,e,r){return e=r?n:e,e=t&&null==e?t.length:e,Kn(t,u,n,n,n,n,e)}function Aa(t,e){var r;if("function"!=typeof e)throw new kt(i);return t=po(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=n),r}}var ka=qs((function(t,e,r){var s=1;if(r.length){var n=ar(r,ni(ka));s|=c}return Kn(t,s,e,r,n)})),Ea=qs((function(t,e,r){var s=3;if(r.length){var n=ar(r,ni(Ea));s|=c}return Kn(e,s,t,r,n)}));function Ca(t,e,r){var s,a,o,c,u,l,h=0,p=!1,d=!1,f=!0;if("function"!=typeof t)throw new kt(i);function m(e){var r=s,i=a;return s=a=n,h=e,c=t.apply(i,r)}function y(t){var r=t-l;return l===n||r>=e||r<0||d&&t-h>=o}function g(){var t=Sa();if(y(t))return v(t);u=ki(g,function(t){var r=e-(t-l);return d?yr(r,o-(t-h)):r}(t))}function v(t){return u=n,f&&s?m(t):(s=a=n,c)}function x(){var t=Sa(),r=y(t);if(s=arguments,a=this,l=t,r){if(u===n)return function(t){return h=t,u=ki(g,e),p?m(t):c}(l);if(d)return xn(u),u=ki(g,e),m(l)}return u===n&&(u=ki(g,e)),c}return e=mo(e)||0,Za(r)&&(p=!!r.leading,o=(d="maxWait"in r)?mr(mo(r.maxWait)||0,e):o,f="trailing"in r?!!r.trailing:f),x.cancel=function(){u!==n&&xn(u),h=0,s=l=a=u=n},x.flush=function(){return u===n?c:v(Sa())},x}var Na=qs((function(t,e){return os(t,1,e)})),Ia=qs((function(t,e,r){return os(t,mo(e)||0,r)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new kt(i);var r=function(){var s=arguments,n=e?e.apply(this,s):s[0],i=r.cache;if(i.has(n))return i.get(n);var a=t.apply(this,s);return r.cache=i.set(n,a)||i,a};return r.cache=new(Ma.Cache||zr),r}function La(t){if("function"!=typeof t)throw new kt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=zr;var Oa=gn((function(t,e){var r=(e=1==e.length&&Ha(e[0])?Ie(e[0],Je(ii())):Ie(fs(e,1),Je(ii()))).length;return qs((function(s){for(var n=-1,i=yr(s.length,r);++n<i;)s[n]=e[n].call(this,s[n]);return Te(t,this,s)}))})),Da=qs((function(t,e){var r=ar(e,ni(Da));return Kn(t,c,n,e,r)})),Fa=qs((function(t,e){var r=ar(e,ni(Fa));return Kn(t,64,n,e,r)})),ja=Qn((function(t,e){return Kn(t,256,n,n,n,e)}));function Ra(t,e){return t===e||t!=t&&e!=e}var Ba=Wn(Ts),Ya=Wn((function(t,e){return t>=e})),Ua=Es(function(){return arguments}())?Es:function(t){return Qa(t)&&Lt.call(t,"callee")&&!qt.call(t,"callee")},Ha=s.isArray,Wa=ge?Je(ge):function(t){return Qa(t)&&Ps(t)==I};function za(t){return null!=t&&Xa(t.length)&&!Ja(t)}function Va(t){return Qa(t)&&za(t)}var qa=ye||mc,$a=ve?Je(ve):function(t){return Qa(t)&&Ps(t)==v};function Ka(t){if(!Qa(t))return!1;var e=Ps(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ro(t)}function Ja(t){if(!Za(t))return!1;var e=Ps(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ga(t){return"number"==typeof t&&t==po(t)}function Xa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function Za(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Qa(t){return null!=t&&"object"==typeof t}var to=xe?Je(xe):function(t){return Qa(t)&&hi(t)==P};function eo(t){return"number"==typeof t||Qa(t)&&Ps(t)==T}function ro(t){if(!Qa(t)||Ps(t)!=S)return!1;var e=zt(t);if(null===e)return!0;var r=Lt.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Mt.call(r)==jt}var so=be?Je(be):function(t){return Qa(t)&&Ps(t)==A},no=we?Je(we):function(t){return Qa(t)&&hi(t)==k};function io(t){return"string"==typeof t||!Ha(t)&&Qa(t)&&Ps(t)==E}function ao(t){return"symbol"==typeof t||Qa(t)&&Ps(t)==C}var oo=Pe?Je(Pe):function(t){return Qa(t)&&Xa(t.length)&&!!ne[Ps(t)]},co=Wn(Os),uo=Wn((function(t,e){return t<=e}));function lo(t){if(!t)return[];if(za(t))return io(t)?lr(t):An(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=hi(t);return(e==P?nr:e==k?or:Bo)(t)}function ho(t){return t?(t=mo(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function po(t){var e=ho(t),r=e%1;return e==e?r?e-r:e:0}function fo(t){return t?ns(po(t),0,d):0}function mo(t){if("number"==typeof t)return t;if(ao(t))return p;if(Za(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Za(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ke(t);var r=ft.test(t);return r||yt.test(t)?ce(t.slice(2),r?2:8):dt.test(t)?p:+t}function yo(t){return kn(t,Io(t))}function go(t){return null==t?"":an(t)}var vo=Cn((function(t,e){if(bi(e)||za(e))kn(e,No(e),t);else for(var r in e)Lt.call(e,r)&&Zr(t,r,e[r])})),xo=Cn((function(t,e){kn(e,Io(e),t)})),bo=Cn((function(t,e,r,s){kn(e,Io(e),t,s)})),wo=Cn((function(t,e,r,s){kn(e,No(e),t,s)})),Po=Qn(ss),To=qs((function(t,e){t=St(t);var r=-1,s=e.length,i=s>2?e[2]:n;for(i&&yi(e[0],e[1],i)&&(s=1);++r<s;)for(var a=e[r],o=Io(a),c=-1,u=o.length;++c<u;){var l=o[c],h=t[l];(h===n||Ra(h,Nt[l])&&!Lt.call(t,l))&&(t[l]=a[l])}return t})),So=qs((function(t){return t.push(n,Gn),Te(Lo,n,t)}));function _o(t,e,r){var s=null==t?n:bs(t,e);return s===n?r:s}function Ao(t,e){return null!=t&&pi(t,e,_s)}var ko=Rn((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=r}),Qo(rc)),Eo=Rn((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Lt.call(t,e)?t[e].push(r):t[e]=[r]}),ii),Co=qs(ks);function No(t){return za(t)?$r(t):Ls(t)}function Io(t){return za(t)?$r(t,!0):function(t){if(!Za(t))return function(t){var e=[];if(null!=t)for(var r in St(t))e.push(r);return e}(t);var e=bi(t),r=[];for(var s in t)("constructor"!=s||!e&&Lt.call(t,s))&&r.push(s);return r}(t)}var Mo=Cn((function(t,e,r){Rs(t,e,r)})),Lo=Cn((function(t,e,r,s){Rs(t,e,r,s)})),Oo=Qn((function(t,e){var r={};if(null==t)return r;var s=!1;e=Ie(e,(function(e){return e=yn(e,t),s||(s=e.length>1),e})),kn(t,ei(t),r),s&&(r=is(r,7,Xn));for(var n=e.length;n--;)cn(r,e[n]);return r})),Do=Qn((function(t,e){return null==t?{}:function(t,e){return Us(t,e,(function(e,r){return Ao(t,r)}))}(t,e)}));function Fo(t,e){if(null==t)return{};var r=Ie(ei(t),(function(t){return[t]}));return e=ii(e),Us(t,r,(function(t,r){return e(t,r[0])}))}var jo=$n(No),Ro=$n(Io);function Bo(t){return null==t?[]:Ge(t,No(t))}var Yo=Ln((function(t,e,r){return e=e.toLowerCase(),t+(r?Uo(e):e)}));function Uo(t){return Jo(go(t).toLowerCase())}function Ho(t){return(t=go(t))&&t.replace(vt,tr).replace(Xt,"")}var Wo=Ln((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),zo=Ln((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Vo=Mn("toLowerCase"),qo=Ln((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),$o=Ln((function(t,e,r){return t+(r?" ":"")+Jo(e)})),Ko=Ln((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Jo=Mn("toUpperCase");function Go(t,e,r){return t=go(t),(e=r?n:e)===n?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Xo=qs((function(t,e){try{return Te(t,n,e)}catch(t){return Ka(t)?t:new wt(t)}})),Zo=Qn((function(t,e){return _e(e,(function(e){e=Di(e),rs(t,e,ka(t[e],t))})),t}));function Qo(t){return function(){return t}}var tc=Fn(),ec=Fn(!0);function rc(t){return t}function sc(t){return Ms("function"==typeof t?t:is(t,1))}var nc=qs((function(t,e){return function(r){return ks(r,t,e)}})),ic=qs((function(t,e){return function(r){return ks(t,r,e)}}));function ac(t,e,r){var s=No(e),n=xs(e,s);null!=r||Za(e)&&(n.length||!s.length)||(r=e,e=t,t=this,n=xs(e,No(e)));var i=!(Za(r)&&"chain"in r&&!r.chain),a=Ja(t);return _e(n,(function(r){var s=e[r];t[r]=s,a&&(t.prototype[r]=function(){var e=this.__chain__;if(i||e){var r=t(this.__wrapped__);return(r.__actions__=An(this.__actions__)).push({func:s,args:arguments,thisArg:t}),r.__chain__=e,r}return s.apply(t,Me([this.value()],arguments))})})),t}function oc(){}var cc=Yn(Ie),uc=Yn(ke),lc=Yn(De);function hc(t){return gi(t)?We(Di(t)):function(t){return function(e){return bs(e,t)}}(t)}var pc=Hn(),dc=Hn(!0);function fc(){return[]}function mc(){return!1}var yc,gc=Bn((function(t,e){return t+e}),0),vc=Vn("ceil"),xc=Bn((function(t,e){return t/e}),1),bc=Vn("floor"),wc=Bn((function(t,e){return t*e}),1),Pc=Vn("round"),Tc=Bn((function(t,e){return t-e}),0);return jr.after=function(t,e){if("function"!=typeof e)throw new kt(i);return t=po(t),function(){if(--t<1)return e.apply(this,arguments)}},jr.ary=_a,jr.assign=vo,jr.assignIn=xo,jr.assignInWith=bo,jr.assignWith=wo,jr.at=Po,jr.before=Aa,jr.bind=ka,jr.bindAll=Zo,jr.bindKey=Ea,jr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ha(t)?t:[t]},jr.chain=la,jr.chunk=function(t,e,r){e=(r?yi(t,e,r):e===n)?1:mr(po(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,o=0,c=s(pe(i/e));a<i;)c[o++]=Qs(t,a,a+=e);return c},jr.compact=function(t){for(var e=-1,r=null==t?0:t.length,s=0,n=[];++e<r;){var i=t[e];i&&(n[s++]=i)}return n},jr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=s(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Me(Ha(r)?An(r):[r],fs(e,1))},jr.cond=function(t){var e=null==t?0:t.length,r=ii();return t=e?Ie(t,(function(t){if("function"!=typeof t[1])throw new kt(i);return[r(t[0]),t[1]]})):[],qs((function(r){for(var s=-1;++s<e;){var n=t[s];if(Te(n[0],this,r))return Te(n[1],this,r)}}))},jr.conforms=function(t){return function(t){var e=No(t);return function(r){return as(r,t,e)}}(is(t,1))},jr.constant=Qo,jr.countBy=da,jr.create=function(t,e){var r=Rr(t);return null==e?r:es(r,e)},jr.curry=function t(e,r,s){var i=Kn(e,8,n,n,n,n,n,r=s?n:r);return i.placeholder=t.placeholder,i},jr.curryRight=function t(e,r,s){var i=Kn(e,16,n,n,n,n,n,r=s?n:r);return i.placeholder=t.placeholder,i},jr.debounce=Ca,jr.defaults=To,jr.defaultsDeep=So,jr.defer=Na,jr.delay=Ia,jr.difference=Ri,jr.differenceBy=Bi,jr.differenceWith=Yi,jr.drop=function(t,e,r){var s=null==t?0:t.length;return s?Qs(t,(e=r||e===n?1:po(e))<0?0:e,s):[]},jr.dropRight=function(t,e,r){var s=null==t?0:t.length;return s?Qs(t,0,(e=s-(e=r||e===n?1:po(e)))<0?0:e):[]},jr.dropRightWhile=function(t,e){return t&&t.length?ln(t,ii(e,3),!0,!0):[]},jr.dropWhile=function(t,e){return t&&t.length?ln(t,ii(e,3),!0):[]},jr.fill=function(t,e,r,s){var i=null==t?0:t.length;return i?(r&&"number"!=typeof r&&yi(t,e,r)&&(r=0,s=i),function(t,e,r,s){var i=t.length;for((r=po(r))<0&&(r=-r>i?0:i+r),(s=s===n||s>i?i:po(s))<0&&(s+=i),s=r>s?0:fo(s);r<s;)t[r++]=e;return t}(t,e,r,s)):[]},jr.filter=function(t,e){return(Ha(t)?Ee:ds)(t,ii(e,3))},jr.flatMap=function(t,e){return fs(wa(t,e),1)},jr.flatMapDeep=function(t,e){return fs(wa(t,e),l)},jr.flatMapDepth=function(t,e,r){return r=r===n?1:po(r),fs(wa(t,e),r)},jr.flatten=Wi,jr.flattenDeep=function(t){return null!=t&&t.length?fs(t,l):[]},jr.flattenDepth=function(t,e){return null!=t&&t.length?fs(t,e=e===n?1:po(e)):[]},jr.flip=function(t){return Kn(t,512)},jr.flow=tc,jr.flowRight=ec,jr.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,s={};++e<r;){var n=t[e];s[n[0]]=n[1]}return s},jr.functions=function(t){return null==t?[]:xs(t,No(t))},jr.functionsIn=function(t){return null==t?[]:xs(t,Io(t))},jr.groupBy=va,jr.initial=function(t){return null!=t&&t.length?Qs(t,0,-1):[]},jr.intersection=Vi,jr.intersectionBy=qi,jr.intersectionWith=$i,jr.invert=ko,jr.invertBy=Eo,jr.invokeMap=xa,jr.iteratee=sc,jr.keyBy=ba,jr.keys=No,jr.keysIn=Io,jr.map=wa,jr.mapKeys=function(t,e){var r={};return e=ii(e,3),gs(t,(function(t,s,n){rs(r,e(t,s,n),t)})),r},jr.mapValues=function(t,e){var r={};return e=ii(e,3),gs(t,(function(t,s,n){rs(r,s,e(t,s,n))})),r},jr.matches=function(t){return Fs(is(t,1))},jr.matchesProperty=function(t,e){return js(t,is(e,1))},jr.memoize=Ma,jr.merge=Mo,jr.mergeWith=Lo,jr.method=nc,jr.methodOf=ic,jr.mixin=ac,jr.negate=La,jr.nthArg=function(t){return t=po(t),qs((function(e){return Bs(e,t)}))},jr.omit=Oo,jr.omitBy=function(t,e){return Fo(t,La(ii(e)))},jr.once=function(t){return Aa(2,t)},jr.orderBy=function(t,e,r,s){return null==t?[]:(Ha(e)||(e=null==e?[]:[e]),Ha(r=s?n:r)||(r=null==r?[]:[r]),Ys(t,e,r))},jr.over=cc,jr.overArgs=Oa,jr.overEvery=uc,jr.overSome=lc,jr.partial=Da,jr.partialRight=Fa,jr.partition=Pa,jr.pick=Do,jr.pickBy=Fo,jr.property=hc,jr.propertyOf=function(t){return function(e){return null==t?n:bs(t,e)}},jr.pull=Ji,jr.pullAll=Gi,jr.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Hs(t,e,ii(r,2)):t},jr.pullAllWith=function(t,e,r){return t&&t.length&&e&&e.length?Hs(t,e,n,r):t},jr.pullAt=Xi,jr.range=pc,jr.rangeRight=dc,jr.rearg=ja,jr.reject=function(t,e){return(Ha(t)?Ee:ds)(t,La(ii(e,3)))},jr.remove=function(t,e){var r=[];if(!t||!t.length)return r;var s=-1,n=[],i=t.length;for(e=ii(e,3);++s<i;){var a=t[s];e(a,s,t)&&(r.push(a),n.push(s))}return Ws(t,n),r},jr.rest=function(t,e){if("function"!=typeof t)throw new kt(i);return qs(t,e=e===n?e:po(e))},jr.reverse=Zi,jr.sampleSize=function(t,e,r){return e=(r?yi(t,e,r):e===n)?1:po(e),(Ha(t)?Jr:Ks)(t,e)},jr.set=function(t,e,r){return null==t?t:Js(t,e,r)},jr.setWith=function(t,e,r,s){return s="function"==typeof s?s:n,null==t?t:Js(t,e,r,s)},jr.shuffle=function(t){return(Ha(t)?Gr:Zs)(t)},jr.slice=function(t,e,r){var s=null==t?0:t.length;return s?(r&&"number"!=typeof r&&yi(t,e,r)?(e=0,r=s):(e=null==e?0:po(e),r=r===n?s:po(r)),Qs(t,e,r)):[]},jr.sortBy=Ta,jr.sortedUniq=function(t){return t&&t.length?sn(t):[]},jr.sortedUniqBy=function(t,e){return t&&t.length?sn(t,ii(e,2)):[]},jr.split=function(t,e,r){return r&&"number"!=typeof r&&yi(t,e,r)&&(e=r=n),(r=r===n?d:r>>>0)?(t=go(t))&&("string"==typeof e||null!=e&&!so(e))&&!(e=an(e))&&sr(t)?vn(lr(t),0,r):t.split(e,r):[]},jr.spread=function(t,e){if("function"!=typeof t)throw new kt(i);return e=null==e?0:mr(po(e),0),qs((function(r){var s=r[e],n=vn(r,0,e);return s&&Me(n,s),Te(t,this,n)}))},jr.tail=function(t){var e=null==t?0:t.length;return e?Qs(t,1,e):[]},jr.take=function(t,e,r){return t&&t.length?Qs(t,0,(e=r||e===n?1:po(e))<0?0:e):[]},jr.takeRight=function(t,e,r){var s=null==t?0:t.length;return s?Qs(t,(e=s-(e=r||e===n?1:po(e)))<0?0:e,s):[]},jr.takeRightWhile=function(t,e){return t&&t.length?ln(t,ii(e,3),!1,!0):[]},jr.takeWhile=function(t,e){return t&&t.length?ln(t,ii(e,3)):[]},jr.tap=function(t,e){return e(t),t},jr.throttle=function(t,e,r){var s=!0,n=!0;if("function"!=typeof t)throw new kt(i);return Za(r)&&(s="leading"in r?!!r.leading:s,n="trailing"in r?!!r.trailing:n),Ca(t,e,{leading:s,maxWait:e,trailing:n})},jr.thru=ha,jr.toArray=lo,jr.toPairs=jo,jr.toPairsIn=Ro,jr.toPath=function(t){return Ha(t)?Ie(t,Di):ao(t)?[t]:An(Oi(go(t)))},jr.toPlainObject=yo,jr.transform=function(t,e,r){var s=Ha(t),n=s||qa(t)||oo(t);if(e=ii(e,4),null==r){var i=t&&t.constructor;r=n?s?new i:[]:Za(t)&&Ja(i)?Rr(zt(t)):{}}return(n?_e:gs)(t,(function(t,s,n){return e(r,t,s,n)})),r},jr.unary=function(t){return _a(t,1)},jr.union=Qi,jr.unionBy=ta,jr.unionWith=ea,jr.uniq=function(t){return t&&t.length?on(t):[]},jr.uniqBy=function(t,e){return t&&t.length?on(t,ii(e,2)):[]},jr.uniqWith=function(t,e){return e="function"==typeof e?e:n,t&&t.length?on(t,n,e):[]},jr.unset=function(t,e){return null==t||cn(t,e)},jr.unzip=ra,jr.unzipWith=sa,jr.update=function(t,e,r){return null==t?t:un(t,e,mn(r))},jr.updateWith=function(t,e,r,s){return s="function"==typeof s?s:n,null==t?t:un(t,e,mn(r),s)},jr.values=Bo,jr.valuesIn=function(t){return null==t?[]:Ge(t,Io(t))},jr.without=na,jr.words=Go,jr.wrap=function(t,e){return Da(mn(e),t)},jr.xor=ia,jr.xorBy=aa,jr.xorWith=oa,jr.zip=ca,jr.zipObject=function(t,e){return dn(t||[],e||[],Zr)},jr.zipObjectDeep=function(t,e){return dn(t||[],e||[],Js)},jr.zipWith=ua,jr.entries=jo,jr.entriesIn=Ro,jr.extend=xo,jr.extendWith=bo,ac(jr,jr),jr.add=gc,jr.attempt=Xo,jr.camelCase=Yo,jr.capitalize=Uo,jr.ceil=vc,jr.clamp=function(t,e,r){return r===n&&(r=e,e=n),r!==n&&(r=(r=mo(r))==r?r:0),e!==n&&(e=(e=mo(e))==e?e:0),ns(mo(t),e,r)},jr.clone=function(t){return is(t,4)},jr.cloneDeep=function(t){return is(t,5)},jr.cloneDeepWith=function(t,e){return is(t,5,e="function"==typeof e?e:n)},jr.cloneWith=function(t,e){return is(t,4,e="function"==typeof e?e:n)},jr.conformsTo=function(t,e){return null==e||as(t,e,No(e))},jr.deburr=Ho,jr.defaultTo=function(t,e){return null==t||t!=t?e:t},jr.divide=xc,jr.endsWith=function(t,e,r){t=go(t),e=an(e);var s=t.length,i=r=r===n?s:ns(po(r),0,s);return(r-=e.length)>=0&&t.slice(r,i)==e},jr.eq=Ra,jr.escape=function(t){return(t=go(t))&&K.test(t)?t.replace(q,er):t},jr.escapeRegExp=function(t){return(t=go(t))&&rt.test(t)?t.replace(et,"\\$&"):t},jr.every=function(t,e,r){var s=Ha(t)?ke:hs;return r&&yi(t,e,r)&&(e=n),s(t,ii(e,3))},jr.find=fa,jr.findIndex=Ui,jr.findKey=function(t,e){return je(t,ii(e,3),gs)},jr.findLast=ma,jr.findLastIndex=Hi,jr.findLastKey=function(t,e){return je(t,ii(e,3),vs)},jr.floor=bc,jr.forEach=ya,jr.forEachRight=ga,jr.forIn=function(t,e){return null==t?t:ms(t,ii(e,3),Io)},jr.forInRight=function(t,e){return null==t?t:ys(t,ii(e,3),Io)},jr.forOwn=function(t,e){return t&&gs(t,ii(e,3))},jr.forOwnRight=function(t,e){return t&&vs(t,ii(e,3))},jr.get=_o,jr.gt=Ba,jr.gte=Ya,jr.has=function(t,e){return null!=t&&pi(t,e,Ss)},jr.hasIn=Ao,jr.head=zi,jr.identity=rc,jr.includes=function(t,e,r,s){t=za(t)?t:Bo(t),r=r&&!s?po(r):0;var n=t.length;return r<0&&(r=mr(n+r,0)),io(t)?r<=n&&t.indexOf(e,r)>-1:!!n&&Be(t,e,r)>-1},jr.indexOf=function(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var n=null==r?0:po(r);return n<0&&(n=mr(s+n,0)),Be(t,e,n)},jr.inRange=function(t,e,r){return e=ho(e),r===n?(r=e,e=0):r=ho(r),function(t,e,r){return t>=yr(e,r)&&t<mr(e,r)}(t=mo(t),e,r)},jr.invoke=Co,jr.isArguments=Ua,jr.isArray=Ha,jr.isArrayBuffer=Wa,jr.isArrayLike=za,jr.isArrayLikeObject=Va,jr.isBoolean=function(t){return!0===t||!1===t||Qa(t)&&Ps(t)==g},jr.isBuffer=qa,jr.isDate=$a,jr.isElement=function(t){return Qa(t)&&1===t.nodeType&&!ro(t)},jr.isEmpty=function(t){if(null==t)return!0;if(za(t)&&(Ha(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||oo(t)||Ua(t)))return!t.length;var e=hi(t);if(e==P||e==k)return!t.size;if(bi(t))return!Ls(t).length;for(var r in t)if(Lt.call(t,r))return!1;return!0},jr.isEqual=function(t,e){return Cs(t,e)},jr.isEqualWith=function(t,e,r){var s=(r="function"==typeof r?r:n)?r(t,e):n;return s===n?Cs(t,e,n,r):!!s},jr.isError=Ka,jr.isFinite=function(t){return"number"==typeof t&&Fe(t)},jr.isFunction=Ja,jr.isInteger=Ga,jr.isLength=Xa,jr.isMap=to,jr.isMatch=function(t,e){return t===e||Ns(t,e,oi(e))},jr.isMatchWith=function(t,e,r){return r="function"==typeof r?r:n,Ns(t,e,oi(e),r)},jr.isNaN=function(t){return eo(t)&&t!=+t},jr.isNative=function(t){if(xi(t))throw new wt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Is(t)},jr.isNil=function(t){return null==t},jr.isNull=function(t){return null===t},jr.isNumber=eo,jr.isObject=Za,jr.isObjectLike=Qa,jr.isPlainObject=ro,jr.isRegExp=so,jr.isSafeInteger=function(t){return Ga(t)&&t>=-9007199254740991&&t<=h},jr.isSet=no,jr.isString=io,jr.isSymbol=ao,jr.isTypedArray=oo,jr.isUndefined=function(t){return t===n},jr.isWeakMap=function(t){return Qa(t)&&hi(t)==N},jr.isWeakSet=function(t){return Qa(t)&&"[object WeakSet]"==Ps(t)},jr.join=function(t,e){return null==t?"":ze.call(t,e)},jr.kebabCase=Wo,jr.last=Ki,jr.lastIndexOf=function(t,e,r){var s=null==t?0:t.length;if(!s)return-1;var i=s;return r!==n&&(i=(i=po(r))<0?mr(s+i,0):yr(i,s-1)),e==e?function(t,e,r){for(var s=r+1;s--;)if(t[s]===e)return s;return s}(t,e,i):Re(t,Ue,i,!0)},jr.lowerCase=zo,jr.lowerFirst=Vo,jr.lt=co,jr.lte=uo,jr.max=function(t){return t&&t.length?ps(t,rc,Ts):n},jr.maxBy=function(t,e){return t&&t.length?ps(t,ii(e,2),Ts):n},jr.mean=function(t){return He(t,rc)},jr.meanBy=function(t,e){return He(t,ii(e,2))},jr.min=function(t){return t&&t.length?ps(t,rc,Os):n},jr.minBy=function(t,e){return t&&t.length?ps(t,ii(e,2),Os):n},jr.stubArray=fc,jr.stubFalse=mc,jr.stubObject=function(){return{}},jr.stubString=function(){return""},jr.stubTrue=function(){return!0},jr.multiply=wc,jr.nth=function(t,e){return t&&t.length?Bs(t,po(e)):n},jr.noConflict=function(){return he._===this&&(he._=Rt),this},jr.noop=oc,jr.now=Sa,jr.pad=function(t,e,r){t=go(t);var s=(e=po(e))?ur(t):0;if(!e||s>=e)return t;var n=(e-s)/2;return Un(de(n),r)+t+Un(pe(n),r)},jr.padEnd=function(t,e,r){t=go(t);var s=(e=po(e))?ur(t):0;return e&&s<e?t+Un(e-s,r):t},jr.padStart=function(t,e,r){t=go(t);var s=(e=po(e))?ur(t):0;return e&&s<e?Un(e-s,r)+t:t},jr.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),vr(go(t).replace(st,""),e||0)},jr.random=function(t,e,r){if(r&&"boolean"!=typeof r&&yi(t,e,r)&&(e=r=n),r===n&&("boolean"==typeof e?(r=e,e=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&e===n?(t=0,e=1):(t=ho(t),e===n?(e=t,t=0):e=ho(e)),t>e){var s=t;t=e,e=s}if(r||t%1||e%1){var i=xr();return yr(t+i*(e-t+oe("1e-"+((i+"").length-1))),e)}return zs(t,e)},jr.reduce=function(t,e,r){var s=Ha(t)?Le:Ve,n=arguments.length<3;return s(t,ii(e,4),r,n,us)},jr.reduceRight=function(t,e,r){var s=Ha(t)?Oe:Ve,n=arguments.length<3;return s(t,ii(e,4),r,n,ls)},jr.repeat=function(t,e,r){return e=(r?yi(t,e,r):e===n)?1:po(e),Vs(go(t),e)},jr.replace=function(){var t=arguments,e=go(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jr.result=function(t,e,r){var s=-1,i=(e=yn(e,t)).length;for(i||(i=1,t=n);++s<i;){var a=null==t?n:t[Di(e[s])];a===n&&(s=i,a=r),t=Ja(a)?a.call(t):a}return t},jr.round=Pc,jr.runInContext=t,jr.sample=function(t){return(Ha(t)?Kr:$s)(t)},jr.size=function(t){if(null==t)return 0;if(za(t))return io(t)?ur(t):t.length;var e=hi(t);return e==P||e==k?t.size:Ls(t).length},jr.snakeCase=qo,jr.some=function(t,e,r){var s=Ha(t)?De:tn;return r&&yi(t,e,r)&&(e=n),s(t,ii(e,3))},jr.sortedIndex=function(t,e){return en(t,e)},jr.sortedIndexBy=function(t,e,r){return rn(t,e,ii(r,2))},jr.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var s=en(t,e);if(s<r&&Ra(t[s],e))return s}return-1},jr.sortedLastIndex=function(t,e){return en(t,e,!0)},jr.sortedLastIndexBy=function(t,e,r){return rn(t,e,ii(r,2),!0)},jr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=en(t,e,!0)-1;if(Ra(t[r],e))return r}return-1},jr.startCase=$o,jr.startsWith=function(t,e,r){return t=go(t),r=null==r?0:ns(po(r),0,t.length),e=an(e),t.slice(r,r+e.length)==e},jr.subtract=Tc,jr.sum=function(t){return t&&t.length?qe(t,rc):0},jr.sumBy=function(t,e){return t&&t.length?qe(t,ii(e,2)):0},jr.template=function(t,e,r){var s=jr.templateSettings;r&&yi(t,e,r)&&(e=n),t=go(t),e=bo({},e,s,Jn);var i,a,o=bo({},e.imports,s.imports,Jn),c=No(o),u=Ge(o,c),l=0,h=e.interpolate||xt,p="__p += '",d=_t((e.escape||xt).source+"|"+h.source+"|"+(h===X?ht:xt).source+"|"+(e.evaluate||xt).source+"|$","g"),f="//# sourceURL="+(Lt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(d,(function(e,r,s,n,o,c){return s||(s=n),p+=t.slice(l,c).replace(bt,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),o&&(a=!0,p+="';\n"+o+";\n__p += '"),s&&(p+="' +\n((__t = ("+s+")) == null ? '' : __t) +\n'"),l=c+e.length,e})),p+="';\n";var m=Lt.call(e,"variable")&&e.variable;if(m){if(ut.test(m))throw new wt("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(W,"$1").replace(z,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Xo((function(){return Pt(c,f+"return "+p).apply(n,u)}));if(y.source=p,Ka(y))throw y;return y},jr.times=function(t,e){if((t=po(t))<1||t>h)return[];var r=d,s=yr(t,d);e=ii(e),t-=d;for(var n=$e(s,e);++r<t;)e(r);return n},jr.toFinite=ho,jr.toInteger=po,jr.toLength=fo,jr.toLower=function(t){return go(t).toLowerCase()},jr.toNumber=mo,jr.toSafeInteger=function(t){return t?ns(po(t),-9007199254740991,h):0===t?t:0},jr.toString=go,jr.toUpper=function(t){return go(t).toUpperCase()},jr.trim=function(t,e,r){if((t=go(t))&&(r||e===n))return Ke(t);if(!t||!(e=an(e)))return t;var s=lr(t),i=lr(e);return vn(s,Ze(s,i),Qe(s,i)+1).join("")},jr.trimEnd=function(t,e,r){if((t=go(t))&&(r||e===n))return t.slice(0,hr(t)+1);if(!t||!(e=an(e)))return t;var s=lr(t);return vn(s,0,Qe(s,lr(e))+1).join("")},jr.trimStart=function(t,e,r){if((t=go(t))&&(r||e===n))return t.replace(st,"");if(!t||!(e=an(e)))return t;var s=lr(t);return vn(s,Ze(s,lr(e))).join("")},jr.truncate=function(t,e){var r=30,s="...";if(Za(e)){var i="separator"in e?e.separator:i;r="length"in e?po(e.length):r,s="omission"in e?an(e.omission):s}var a=(t=go(t)).length;if(sr(t)){var o=lr(t);a=o.length}if(r>=a)return t;var c=r-ur(s);if(c<1)return s;var u=o?vn(o,0,c).join(""):t.slice(0,c);if(i===n)return u+s;if(o&&(c+=u.length-c),so(i)){if(t.slice(c).search(i)){var l,h=u;for(i.global||(i=_t(i.source,go(pt.exec(i))+"g")),i.lastIndex=0;l=i.exec(h);)var p=l.index;u=u.slice(0,p===n?c:p)}}else if(t.indexOf(an(i),c)!=c){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+s},jr.unescape=function(t){return(t=go(t))&&$.test(t)?t.replace(V,pr):t},jr.uniqueId=function(t){var e=++Ot;return go(t)+e},jr.upperCase=Ko,jr.upperFirst=Jo,jr.each=ya,jr.eachRight=ga,jr.first=zi,ac(jr,(yc={},gs(jr,(function(t,e){Lt.call(jr.prototype,e)||(yc[e]=t)})),yc),{chain:!1}),jr.VERSION="4.17.21",_e(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jr[t].placeholder=jr})),_e(["drop","take"],(function(t,e){Ur.prototype[t]=function(r){r=r===n?1:mr(po(r),0);var s=this.__filtered__&&!e?new Ur(this):this.clone();return s.__filtered__?s.__takeCount__=yr(r,s.__takeCount__):s.__views__.push({size:yr(r,d),type:t+(s.__dir__<0?"Right":"")}),s},Ur.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),_e(["filter","map","takeWhile"],(function(t,e){var r=e+1,s=1==r||3==r;Ur.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ii(t,3),type:r}),e.__filtered__=e.__filtered__||s,e}})),_e(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Ur.prototype[t]=function(){return this[r](1).value()[0]}})),_e(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Ur.prototype[t]=function(){return this.__filtered__?new Ur(this):this[r](1)}})),Ur.prototype.compact=function(){return this.filter(rc)},Ur.prototype.find=function(t){return this.filter(t).head()},Ur.prototype.findLast=function(t){return this.reverse().find(t)},Ur.prototype.invokeMap=qs((function(t,e){return"function"==typeof t?new Ur(this):this.map((function(r){return ks(r,t,e)}))})),Ur.prototype.reject=function(t){return this.filter(La(ii(t)))},Ur.prototype.slice=function(t,e){t=po(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Ur(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==n&&(r=(e=po(e))<0?r.dropRight(-e):r.take(e-t)),r)},Ur.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ur.prototype.toArray=function(){return this.take(d)},gs(Ur.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),s=/^(?:head|last)$/.test(e),i=jr[s?"take"+("last"==e?"Right":""):e],a=s||/^find/.test(e);i&&(jr.prototype[e]=function(){var e=this.__wrapped__,o=s?[1]:arguments,c=e instanceof Ur,u=o[0],l=c||Ha(e),h=function(t){var e=i.apply(jr,Me([t],o));return s&&p?e[0]:e};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,f=a&&!p,m=c&&!d;if(!a&&l){e=m?e:new Ur(this);var y=t.apply(e,o);return y.__actions__.push({func:ha,args:[h],thisArg:n}),new Yr(y,p)}return f&&m?t.apply(this,o):(y=this.thru(h),f?s?y.value()[0]:y.value():y)})})),_e(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Et[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",s=/^(?:pop|shift)$/.test(t);jr.prototype[t]=function(){var t=arguments;if(s&&!this.__chain__){var n=this.value();return e.apply(Ha(n)?n:[],t)}return this[r]((function(r){return e.apply(Ha(r)?r:[],t)}))}})),gs(Ur.prototype,(function(t,e){var r=jr[e];if(r){var s=r.name+"";Lt.call(Er,s)||(Er[s]=[]),Er[s].push({name:e,func:r})}})),Er[jn(n,2).name]=[{name:"wrapper",func:n}],Ur.prototype.clone=function(){var t=new Ur(this.__wrapped__);return t.__actions__=An(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=An(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=An(this.__views__),t},Ur.prototype.reverse=function(){if(this.__filtered__){var t=new Ur(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ur.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ha(t),s=e<0,n=r?t.length:0,i=function(t,e,r){for(var s=-1,n=r.length;++s<n;){var i=r[s],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=yr(e,t+a);break;case"takeRight":t=mr(t,e-a)}}return{start:t,end:e}}(0,n,this.__views__),a=i.start,o=i.end,c=o-a,u=s?o:a-1,l=this.__iteratees__,h=l.length,p=0,d=yr(c,this.__takeCount__);if(!r||!s&&n==c&&d==c)return hn(t,this.__actions__);var f=[];t:for(;c--&&p<d;){for(var m=-1,y=t[u+=e];++m<h;){var g=l[m],v=g.iteratee,x=g.type,b=v(y);if(2==x)y=b;else if(!b){if(1==x)continue t;break t}}f[p++]=y}return f},jr.prototype.at=pa,jr.prototype.chain=function(){return la(this)},jr.prototype.commit=function(){return new Yr(this.value(),this.__chain__)},jr.prototype.next=function(){this.__values__===n&&(this.__values__=lo(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}},jr.prototype.plant=function(t){for(var e,r=this;r instanceof Br;){var s=ji(r);s.__index__=0,s.__values__=n,e?i.__wrapped__=s:e=s;var i=s;r=r.__wrapped__}return i.__wrapped__=t,e},jr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ur){var e=t;return this.__actions__.length&&(e=new Ur(this)),(e=e.reverse()).__actions__.push({func:ha,args:[Zi],thisArg:n}),new Yr(e,this.__chain__)}return this.thru(Zi)},jr.prototype.toJSON=jr.prototype.valueOf=jr.prototype.value=function(){return hn(this.__wrapped__,this.__actions__)},jr.prototype.first=jr.prototype.head,Jt&&(jr.prototype[Jt]=function(){return this}),jr}();he._=dr,(s=function(){return dr}.call(e,r,e,t))===n||(t.exports=s)}.call(this)},4073:function(t,e,r){!function(t){"use strict";t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(r(9420))},1387:function(t,e,r){!function(t){"use strict";t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(9420))},1386:function(t,e,r){!function(t){"use strict";t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},3537:function(t,e,r){!function(t){"use strict";t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},7050:function(t,e,r){!function(t){"use strict";t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(r(9420))},627:function(t,e,r){!function(t){"use strict";t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(r(9420))},6963:function(t,e,r){!function(t){"use strict";t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},4865:function(t,e,r){!function(t){"use strict";t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(r(9420))},1329:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(r(9420))},3005:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1200?"上午":1200===s?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(9420))},7696:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(9420))},5861:function(t,e,r){!function(t){"use strict";t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,r){var s=100*t+e;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(r(9420))},9420:function(t,e,r){(t=r.nmd(t)).exports=function(){"use strict";var e,s;function n(){return e.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function a(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function u(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var r,s=[],n=t.length;for(r=0;r<n;++r)s.push(e(t[r],r));return s}function d(t,e){for(var r in e)o(e,r)&&(t[r]=e[r]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,r,s){return Oe(t,e,r,s,!0).utc()}function m(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function y(t){var e=null,r=!1,n=t._d&&!isNaN(t._d.getTime());return n&&(e=m(t),r=s.call(e.parsedDateParts,(function(t){return null!=t})),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?n:(t._isValid=n,t._isValid)}function g(t){var e=f(NaN);return null!=t?d(m(e),t):m(e).userInvalidated=!0,e}s=Array.prototype.some?Array.prototype.some:function(t){var e,r=Object(this),s=r.length>>>0;for(e=0;e<s;e++)if(e in r&&t.call(this,r[e],e,r))return!0;return!1};var v=n.momentProperties=[],x=!1;function b(t,e){var r,s,n,i=v.length;if(u(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),u(e._i)||(t._i=e._i),u(e._f)||(t._f=e._f),u(e._l)||(t._l=e._l),u(e._strict)||(t._strict=e._strict),u(e._tzm)||(t._tzm=e._tzm),u(e._isUTC)||(t._isUTC=e._isUTC),u(e._offset)||(t._offset=e._offset),u(e._pf)||(t._pf=m(e)),u(e._locale)||(t._locale=e._locale),i>0)for(r=0;r<i;r++)u(n=e[s=v[r]])||(t[s]=n);return t}function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===x&&(x=!0,n.updateOffset(this),x=!1)}function P(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function T(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,e){var r=!0;return d((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),r){var s,i,a,c=[],u=arguments.length;for(i=0;i<u;i++){if(s="","object"==typeof arguments[i]){for(a in s+="\n["+i+"] ",arguments[0])o(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[i];c.push(s)}T(t+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),r=!1}return e.apply(this,arguments)}),e)}var _,A={};function k(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),A[t]||(T(e),A[t]=!0)}function E(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t,e){var r,s=d({},t);for(r in e)o(e,r)&&(a(t[r])&&a(e[r])?(s[r]={},d(s[r],t[r]),d(s[r],e[r])):null!=e[r]?s[r]=e[r]:delete s[r]);for(r in t)o(t,r)&&!o(e,r)&&a(t[r])&&(s[r]=d({},s[r]));return s}function N(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,_=Object.keys?Object.keys:function(t){var e,r=[];for(e in t)o(t,e)&&r.push(e);return r};function I(t,e,r){var s=""+Math.abs(t),n=e-s.length;return(t>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},D={};function F(t,e,r,s){var n=s;"string"==typeof s&&(n=function(){return this[s]()}),t&&(D[t]=n),e&&(D[e[0]]=function(){return I(n.apply(this,arguments),e[1],e[2])}),r&&(D[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),t)})}function j(t,e){return t.isValid()?(e=R(e,t.localeData()),O[e]=O[e]||function(t){var e,r,s,n=t.match(M);for(e=0,r=n.length;e<r;e++)D[n[e]]?n[e]=D[n[e]]:n[e]=(s=n[e]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(e){var s,i="";for(s=0;s<r;s++)i+=E(n[s])?n[s].call(e,t):n[s];return i}}(e),O[e](t)):t.localeData().invalidDate()}function R(t,e){var r=5;function s(t){return e.longDateFormat(t)||t}for(L.lastIndex=0;r>=0&&L.test(t);)t=t.replace(L,s),L.lastIndex=0,r-=1;return t}var B={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(t){return"string"==typeof t?B[t]||B[t.toLowerCase()]:void 0}function U(t){var e,r,s={};for(r in t)o(t,r)&&(e=Y(r))&&(s[e]=t[r]);return s}var H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var W,z=/\d/,V=/\d\d/,q=/\d{3}/,$=/\d{4}/,K=/[+-]?\d{6}/,J=/\d\d?/,G=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,Q=/\d{1,4}/,tt=/[+-]?\d{1,6}/,et=/\d+/,rt=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,nt=/Z|[+-]\d\d(?::?\d\d)?/gi,it=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,at=/^[1-9]\d?/,ot=/^([1-9]\d|\d)/;function ct(t,e,r){W[t]=E(e)?e:function(t,s){return t&&r?r:e}}function ut(t,e){return o(W,t)?W[t](e._strict,e._locale):new RegExp(lt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,r,s,n){return e||r||s||n}))))}function lt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ht(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function pt(t){var e=+t,r=0;return 0!==e&&isFinite(e)&&(r=ht(e)),r}W={};var dt={};function ft(t,e){var r,s,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,r){r[e]=pt(t)}),s=t.length,r=0;r<s;r++)dt[t[r]]=n}function mt(t,e){ft(t,(function(t,r,s,n){s._w=s._w||{},e(t,s._w,s,n)}))}function yt(t,e,r){null!=e&&o(dt,t)&&dt[t](e,r._a,r,t)}function gt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,xt=1,bt=2,wt=3,Pt=4,Tt=5,St=6,_t=7,At=8;function kt(t){return gt(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?I(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ct("Y",rt),ct("YY",J,V),ct("YYYY",Q,$),ct("YYYYY",tt,K),ct("YYYYYY",tt,K),ft(["YYYYY","YYYYYY"],vt),ft("YYYY",(function(t,e){e[vt]=2===t.length?n.parseTwoDigitYear(t):pt(t)})),ft("YY",(function(t,e){e[vt]=n.parseTwoDigitYear(t)})),ft("Y",(function(t,e){e[vt]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return pt(t)+(pt(t)>68?1900:2e3)};var Et,Ct=Nt("FullYear",!0);function Nt(t,e){return function(r){return null!=r?(Mt(this,t,r),n.updateOffset(this,e),this):It(this,t)}}function It(t,e){if(!t.isValid())return NaN;var r=t._d,s=t._isUTC;switch(e){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function Mt(t,e,r){var s,n,i,a,o;if(t.isValid()&&!isNaN(r)){switch(s=t._d,n=t._isUTC,e){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}i=r,a=t.month(),o=29!==(o=t.date())||1!==a||gt(i)?o:28,n?s.setUTCFullYear(i,a,o):s.setFullYear(i,a,o)}}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var r,s=(e%(r=12)+r)%r;return t+=(e-s)/12,1===s?gt(t)?29:28:31-s%7%2}Et=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),ct("M",J,at),ct("MM",J,V),ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),ct("MMMM",(function(t,e){return e.monthsRegex(t)})),ft(["M","MM"],(function(t,e){e[xt]=pt(t)-1})),ft(["MMM","MMMM"],(function(t,e,r,s){var n=r._locale.monthsParse(t,s,r._strict);null!=n?e[xt]=n:m(r).invalidMonth=t}));var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ft=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt=it,Rt=it;function Bt(t,e,r){var s,n,i,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)i=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(i,"").toLocaleLowerCase();return r?"MMM"===e?-1!==(n=Et.call(this._shortMonthsParse,a))?n:null:-1!==(n=Et.call(this._longMonthsParse,a))?n:null:"MMM"===e?-1!==(n=Et.call(this._shortMonthsParse,a))||-1!==(n=Et.call(this._longMonthsParse,a))?n:null:-1!==(n=Et.call(this._longMonthsParse,a))||-1!==(n=Et.call(this._shortMonthsParse,a))?n:null}function Yt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=pt(e);else if(!l(e=t.localeData().monthsParse(e)))return t;var r=e,s=t.date();return s=s<29?s:Math.min(s,Lt(t.year(),r)),t._isUTC?t._d.setUTCMonth(r,s):t._d.setMonth(r,s),t}function Ut(t){return null!=t?(Yt(this,t),n.updateOffset(this,!0),this):It(this,"Month")}function Ht(){function t(t,e){return e.length-t.length}var e,r,s,n,i=[],a=[],o=[];for(e=0;e<12;e++)r=f([2e3,e]),s=lt(this.monthsShort(r,"")),n=lt(this.months(r,"")),i.push(s),a.push(n),o.push(n),o.push(s);i.sort(t),a.sort(t),o.sort(t),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Wt(t,e,r,s,n,i,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,r,s,n,i,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,r,s,n,i,a),o}function zt(t){var e,r;return t<100&&t>=0?((r=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Vt(t,e,r){var s=7+e-r;return-(7+zt(t,0,s).getUTCDay()-e)%7+s-1}function qt(t,e,r,s,n){var i,a,o=1+7*(e-1)+(7+r-s)%7+Vt(t,s,n);return o<=0?a=kt(i=t-1)+o:o>kt(t)?(i=t+1,a=o-kt(t)):(i=t,a=o),{year:i,dayOfYear:a}}function $t(t,e,r){var s,n,i=Vt(t.year(),e,r),a=Math.floor((t.dayOfYear()-i-1)/7)+1;return a<1?s=a+Kt(n=t.year()-1,e,r):a>Kt(t.year(),e,r)?(s=a-Kt(t.year(),e,r),n=t.year()+1):(n=t.year(),s=a),{week:s,year:n}}function Kt(t,e,r){var s=Vt(t,e,r),n=Vt(t+1,e,r);return(kt(t)-s+n)/7}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ct("w",J,at),ct("ww",J,V),ct("W",J,at),ct("WW",J,V),mt(["w","ww","W","WW"],(function(t,e,r,s){e[s.substr(0,1)]=pt(t)}));function Jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ct("d",J),ct("e",J),ct("E",J),ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),mt(["dd","ddd","dddd"],(function(t,e,r,s){var n=r._locale.weekdaysParse(t,s,r._strict);null!=n?e.d=n:m(r).invalidWeekday=t})),mt(["d","e","E"],(function(t,e,r,s){e[s]=pt(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qt=it,te=it,ee=it;function re(t,e,r){var s,n,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return r?"dddd"===e?-1!==(n=Et.call(this._weekdaysParse,a))?n:null:"ddd"===e?-1!==(n=Et.call(this._shortWeekdaysParse,a))?n:null:-1!==(n=Et.call(this._minWeekdaysParse,a))?n:null:"dddd"===e?-1!==(n=Et.call(this._weekdaysParse,a))||-1!==(n=Et.call(this._shortWeekdaysParse,a))||-1!==(n=Et.call(this._minWeekdaysParse,a))?n:null:"ddd"===e?-1!==(n=Et.call(this._shortWeekdaysParse,a))||-1!==(n=Et.call(this._weekdaysParse,a))||-1!==(n=Et.call(this._minWeekdaysParse,a))?n:null:-1!==(n=Et.call(this._minWeekdaysParse,a))||-1!==(n=Et.call(this._weekdaysParse,a))||-1!==(n=Et.call(this._shortWeekdaysParse,a))?n:null}function se(){function t(t,e){return e.length-t.length}var e,r,s,n,i,a=[],o=[],c=[],u=[];for(e=0;e<7;e++)r=f([2e3,1]).day(e),s=lt(this.weekdaysMin(r,"")),n=lt(this.weekdaysShort(r,"")),i=lt(this.weekdays(r,"")),a.push(s),o.push(n),c.push(i),u.push(s),u.push(n),u.push(i);a.sort(t),o.sort(t),c.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ne(){return this.hours()%12||12}function ie(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ae(t,e){return e._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,ne),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+ne.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+ne.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),ie("a",!0),ie("A",!1),ct("a",ae),ct("A",ae),ct("H",J,ot),ct("h",J,at),ct("k",J,at),ct("HH",J,V),ct("hh",J,V),ct("kk",J,V),ct("hmm",G),ct("hmmss",X),ct("Hmm",G),ct("Hmmss",X),ft(["H","HH"],wt),ft(["k","kk"],(function(t,e,r){var s=pt(t);e[wt]=24===s?0:s})),ft(["a","A"],(function(t,e,r){r._isPm=r._locale.isPM(t),r._meridiem=t})),ft(["h","hh"],(function(t,e,r){e[wt]=pt(t),m(r).bigHour=!0})),ft("hmm",(function(t,e,r){var s=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s)),m(r).bigHour=!0})),ft("hmmss",(function(t,e,r){var s=t.length-4,n=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s,2)),e[Tt]=pt(t.substr(n)),m(r).bigHour=!0})),ft("Hmm",(function(t,e,r){var s=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s))})),ft("Hmmss",(function(t,e,r){var s=t.length-4,n=t.length-2;e[wt]=pt(t.substr(0,s)),e[Pt]=pt(t.substr(s,2)),e[Tt]=pt(t.substr(n))}));var oe=Nt("Hours",!0);var ce,ue={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Dt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Zt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},le={},he={};function pe(t,e){var r,s=Math.min(t.length,e.length);for(r=0;r<s;r+=1)if(t[r]!==e[r])return r;return s}function de(t){return t?t.toLowerCase().replace("_","-"):t}function fe(e){var s=null;if(void 0===le[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{s=ce._abbr,r(9844)("./"+e),me(s)}catch(t){le[e]=null}return le[e]}function me(t,e){var r;return t&&((r=u(e)?ge(t):ye(t,e))?ce=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ce._abbr}function ye(t,e){if(null!==e){var r,s=ue;if(e.abbr=t,null!=le[t])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])s=le[e.parentLocale]._config;else{if(null==(r=fe(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;s=r._config}return le[t]=new N(C(s,e)),he[t]&&he[t].forEach((function(t){ye(t.name,t.config)})),me(t),le[t]}return delete le[t],null}function ge(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ce;if(!i(t)){if(e=fe(t))return e;t=[t]}return function(t){for(var e,r,s,n,i=0;i<t.length;){for(e=(n=de(t[i]).split("-")).length,r=(r=de(t[i+1]))?r.split("-"):null;e>0;){if(s=fe(n.slice(0,e).join("-")))return s;if(r&&r.length>=e&&pe(n,r)>=e-1)break;e--}i++}return ce}(t)}function ve(t){var e,r=t._a;return r&&-2===m(t).overflow&&(e=r[xt]<0||r[xt]>11?xt:r[bt]<1||r[bt]>Lt(r[vt],r[xt])?bt:r[wt]<0||r[wt]>24||24===r[wt]&&(0!==r[Pt]||0!==r[Tt]||0!==r[St])?wt:r[Pt]<0||r[Pt]>59?Pt:r[Tt]<0||r[Tt]>59?Tt:r[St]<0||r[St]>999?St:-1,m(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),m(t)._overflowWeeks&&-1===e&&(e=_t),m(t)._overflowWeekday&&-1===e&&(e=At),m(t).overflow=e),t}var xe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/Z|[+-]\d\d(?::?\d\d)?/,Pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Te=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Se=/^\/?Date\((-?\d+)/i,_e=/^(?:(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{4}))$/,Ae={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ke(t){var e,r,s,n,i,a,o=t._i,c=xe.exec(o)||be.exec(o),u=Pe.length,l=Te.length;if(c){for(m(t).iso=!0,e=0,r=u;e<r;e++)if(Pe[e][1].exec(c[1])){n=Pe[e][0],s=!1!==Pe[e][2];break}if(null==n)return void(t._isValid=!1);if(c[3]){for(e=0,r=l;e<r;e++)if(Te[e][1].exec(c[3])){i=(c[2]||" ")+Te[e][0];break}if(null==i)return void(t._isValid=!1)}if(!s&&null!=i)return void(t._isValid=!1);if(c[4]){if(!we.exec(c[4]))return void(t._isValid=!1);a="Z"}t._f=n+(i||"")+(a||""),Me(t)}else t._isValid=!1}function Ee(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Ce(t){var e,r,s,n,i,a,o,c,u=_e.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(r=u[4],s=u[3],n=u[2],i=u[5],a=u[6],o=u[7],c=[Ee(r),Dt.indexOf(s),parseInt(n,10),parseInt(i,10),parseInt(a,10)],o&&c.push(parseInt(o,10)),e=c,!function(t,e,r){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(m(r).weekdayMismatch=!0,r._isValid=!1,!1)}(u[1],e,t))return;t._a=e,t._tzm=function(t,e,r){if(t)return Ae[t];if(e)return 0;var s=parseInt(r,10),n=s%100;return(s-n)/100*60+n}(u[8],u[9],u[10]),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),m(t).rfc2822=!0}else t._isValid=!1}function Ne(t,e,r){return null!=t?t:null!=e?e:r}function Ie(t){var e,r,s,i,a,o=[];if(!t._d){for(s=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[xt]&&function(t){var e,r,s,n,i,a,o,c,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(i=1,a=4,r=Ne(e.GG,t._a[vt],$t(De(),1,4).year),s=Ne(e.W,1),((n=Ne(e.E,1))<1||n>7)&&(c=!0)):(i=t._locale._week.dow,a=t._locale._week.doy,u=$t(De(),i,a),r=Ne(e.gg,t._a[vt],u.year),s=Ne(e.w,u.week),null!=e.d?((n=e.d)<0||n>6)&&(c=!0):null!=e.e?(n=e.e+i,(e.e<0||e.e>6)&&(c=!0)):n=i),s<1||s>Kt(r,i,a)?m(t)._overflowWeeks=!0:null!=c?m(t)._overflowWeekday=!0:(o=qt(r,s,n,i,a),t._a[vt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(a=Ne(t._a[vt],s[vt]),(t._dayOfYear>kt(a)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),r=zt(a,0,t._dayOfYear),t._a[xt]=r.getUTCMonth(),t._a[bt]=r.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=s[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[Pt]&&0===t._a[Tt]&&0===t._a[St]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?zt:Wt).apply(null,o),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(m(t).weekdayMismatch=!0)}}function Me(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],m(t).empty=!0;var e,r,s,i,a,o,c,u=""+t._i,l=u.length,h=0;for(c=(s=R(t._f,t._locale).match(M)||[]).length,e=0;e<c;e++)i=s[e],(r=(u.match(ut(i,t))||[])[0])&&((a=u.substr(0,u.indexOf(r))).length>0&&m(t).unusedInput.push(a),u=u.slice(u.indexOf(r)+r.length),h+=r.length),D[i]?(r?m(t).empty=!1:m(t).unusedTokens.push(i),yt(i,r,t)):t._strict&&!r&&m(t).unusedTokens.push(i);m(t).charsLeftOver=l-h,u.length>0&&m(t).unusedInput.push(u),t._a[wt]<=12&&!0===m(t).bigHour&&t._a[wt]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[wt]=function(t,e,r){var s;return null==r?e:null!=t.meridiemHour?t.meridiemHour(e,r):null!=t.isPM?((s=t.isPM(r))&&e<12&&(e+=12),s||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),null!==(o=m(t).era)&&(t._a[vt]=t._locale.erasConvertYear(o,t._a[vt])),Ie(t),ve(t)}else Ce(t);else ke(t)}function Le(t){var e=t._i,r=t._f;return t._locale=t._locale||ge(t._l),null===e||void 0===r&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),P(e)?new w(ve(e)):(h(e)?t._d=e:i(r)?function(t){var e,r,s,n,i,a,o=!1,c=t._f.length;if(0===c)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(n=0;n<c;n++)i=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[n],Me(e),y(e)&&(a=!0),i+=m(e).charsLeftOver,i+=10*m(e).unusedTokens.length,m(e).score=i,o?i<s&&(s=i,r=e):(null==s||i<s||a)&&(s=i,r=e,a&&(o=!0));d(t,r||e)}(t):r?Me(t):function(t){var e=t._i;u(e)?t._d=new Date(n.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Se.exec(t._i);null===e?(ke(t),!1===t._isValid&&(delete t._isValid,Ce(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:n.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):i(e)?(t._a=p(e.slice(0),(function(t){return parseInt(t,10)})),Ie(t)):a(e)?function(t){if(!t._d){var e=U(t._i),r=void 0===e.day?e.date:e.day;t._a=p([e.year,e.month,r,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ie(t)}}(t):l(e)?t._d=new Date(e):n.createFromInputFallback(t)}(t),y(t)||(t._d=null),t))}function Oe(t,e,r,s,n){var o,u={};return!0!==e&&!1!==e||(s=e,e=void 0),!0!==r&&!1!==r||(s=r,r=void 0),(a(t)&&c(t)||i(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=n,u._l=r,u._i=t,u._f=e,u._strict=s,(o=new w(ve(Le(u))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function De(t,e,r,s){return Oe(t,e,r,s,!1)}n.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Fe=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()})),je=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=De.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()}));function Re(t,e){var r,s;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return De();for(r=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](r)||(r=e[s]);return r}var Be=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ye(t){var e=U(t),r=e.year||0,s=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,c=e.hour||0,u=e.minute||0,l=e.second||0,h=e.millisecond||0;this._isValid=function(t){var e,r,s=!1,n=Be.length;for(e in t)if(o(t,e)&&(-1===Et.call(Be,e)||null!=t[e]&&isNaN(t[e])))return!1;for(r=0;r<n;++r)if(t[Be[r]]){if(s)return!1;parseFloat(t[Be[r]])!==pt(t[Be[r]])&&(s=!0)}return!0}(e),this._milliseconds=+h+1e3*l+6e4*u+1e3*c*60*60,this._days=+a+7*i,this._months=+n+3*s+12*r,this._data={},this._locale=ge(),this._bubble()}function Ue(t){return t instanceof Ye}function He(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,e){F(t,0,0,(function(){var t=this.utcOffset(),r="+";return t<0&&(t=-t,r="-"),r+I(~~(t/60),2)+e+I(~~t%60,2)}))}We("Z",":"),We("ZZ",""),ct("Z",nt),ct("ZZ",nt),ft(["Z","ZZ"],(function(t,e,r){r._useUTC=!0,r._tzm=Ve(nt,t)}));var ze=/([\+\-]|\d\d)/gi;function Ve(t,e){var r,s,n=(e||"").match(t);return null===n?null:0===(s=60*(r=((n[n.length-1]||[])+"").match(ze)||["-",0,0])[1]+pt(r[2]))?0:"+"===r[0]?s:-s}function qe(t,e){var r,s;return e._isUTC?(r=e.clone(),s=(P(t)||h(t)?t.valueOf():De(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),n.updateOffset(r,!1),r):De(t).local()}function $e(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Je=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ge=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var r,s,n,i,a,c,u=t,h=null;return Ue(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=Je.exec(t))?(r="-"===h[1]?-1:1,u={y:0,d:pt(h[bt])*r,h:pt(h[wt])*r,m:pt(h[Pt])*r,s:pt(h[Tt])*r,ms:pt(He(1e3*h[St]))*r}):(h=Ge.exec(t))?(r="-"===h[1]?-1:1,u={y:Ze(h[2],r),M:Ze(h[3],r),w:Ze(h[4],r),d:Ze(h[5],r),h:Ze(h[6],r),m:Ze(h[7],r),s:Ze(h[8],r)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=De(u.from),a=De(u.to),n=i.isValid()&&a.isValid()?(a=qe(a,i),i.isBefore(a)?c=Qe(i,a):((c=Qe(a,i)).milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0},(u={}).ms=n.milliseconds,u.M=n.months),s=new Ye(u),Ue(t)&&o(t,"_locale")&&(s._locale=t._locale),Ue(t)&&o(t,"_isValid")&&(s._isValid=t._isValid),s}function Ze(t,e){var r=t&&parseFloat(t.replace(",","."));return(isNaN(r)?0:r)*e}function Qe(t,e){var r={};return r.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(r.months,"M").isAfter(e)&&--r.months,r.milliseconds=+e-+t.clone().add(r.months,"M"),r}function tr(t,e){return function(r,s){var n;return null===s||isNaN(+s)||(k(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=r,r=s,s=n),er(this,Xe(r,s),t),this}}function er(t,e,r,s){var i=e._milliseconds,a=He(e._days),o=He(e._months);t.isValid()&&(s=null==s||s,o&&Yt(t,It(t,"Month")+o*r),a&&Mt(t,"Date",It(t,"Date")+a*r),i&&t._d.setTime(t._d.valueOf()+i*r),s&&n.updateOffset(t,a||o))}Xe.fn=Ye.prototype,Xe.invalid=function(){return Xe(NaN)};var rr=tr(1,"add"),sr=tr(-1,"subtract");function nr(t){return"string"==typeof t||t instanceof String}function ir(t){return P(t)||h(t)||nr(t)||l(t)||function(t){var e=i(t),r=!1;return e&&(r=0===t.filter((function(e){return!l(e)&&nr(t)})).length),e&&r}(t)||function(t){var e,r,s=a(t)&&!c(t),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(e=0;e<u;e+=1)r=i[e],n=n||o(t,r);return s&&n}(t)||null==t}function ar(t,e){if(t.date()<e.date())return-ar(e,t);var r=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(r,"months");return-(r+(e-s<0?(e-s)/(s-t.clone().add(r-1,"months")):(e-s)/(t.clone().add(r+1,"months")-s)))||0}function or(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ge(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ur(){return this._locale}var lr=1e3,hr=6e4,pr=36e5,dr=126227808e5;function fr(t,e){return(t%e+e)%e}function mr(t,e,r){return t<100&&t>=0?new Date(t+400,e,r)-dr:new Date(t,e,r).valueOf()}function yr(t,e,r){return t<100&&t>=0?Date.UTC(t+400,e,r)-dr:Date.UTC(t,e,r)}function gr(t,e){return e.erasAbbrRegex(t)}function vr(){var t,e,r,s,n,i=[],a=[],o=[],c=[],u=this.eras();for(t=0,e=u.length;t<e;++t)r=lt(u[t].name),s=lt(u[t].abbr),n=lt(u[t].narrow),a.push(r),i.push(s),o.push(n),c.push(r),c.push(s),c.push(n);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function xr(t,e){F(0,[t,t.length],0,e)}function br(t,e,r,s,n){var i;return null==t?$t(this,s,n).year:(e>(i=Kt(t,s,n))&&(e=i),wr.call(this,t,e,r,s,n))}function wr(t,e,r,s,n){var i=qt(t,e,r,s,n),a=zt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ct("N",gr),ct("NN",gr),ct("NNN",gr),ct("NNNN",(function(t,e){return e.erasNameRegex(t)})),ct("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),ft(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,r,s){var n=r._locale.erasParse(t,s,r._strict);n?m(r).era=n:m(r).invalidEra=t})),ct("y",et),ct("yy",et),ct("yyy",et),ct("yyyy",et),ct("yo",(function(t,e){return e._eraYearOrdinalRegex||et})),ft(["y","yy","yyy","yyyy"],vt),ft(["yo"],(function(t,e,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=t.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?e[vt]=r._locale.eraYearOrdinalParse(t,n):e[vt]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),xr("gggg","weekYear"),xr("ggggg","weekYear"),xr("GGGG","isoWeekYear"),xr("GGGGG","isoWeekYear"),ct("G",rt),ct("g",rt),ct("GG",J,V),ct("gg",J,V),ct("GGGG",Q,$),ct("gggg",Q,$),ct("GGGGG",tt,K),ct("ggggg",tt,K),mt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,r,s){e[s.substr(0,2)]=pt(t)})),mt(["gg","GG"],(function(t,e,r,s){e[s]=n.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),ct("Q",z),ft("Q",(function(t,e){e[xt]=3*(pt(t)-1)})),F("D",["DD",2],"Do","date"),ct("D",J,at),ct("DD",J,V),ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ft(["D","DD"],bt),ft("Do",(function(t,e){e[bt]=pt(t.match(J)[0])}));var Pr=Nt("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),ct("DDD",Z),ct("DDDD",q),ft(["DDD","DDDD"],(function(t,e,r){r._dayOfYear=pt(t)})),F("m",["mm",2],0,"minute"),ct("m",J,ot),ct("mm",J,V),ft(["m","mm"],Pt);var Tr=Nt("Minutes",!1);F("s",["ss",2],0,"second"),ct("s",J,ot),ct("ss",J,V),ft(["s","ss"],Tt);var Sr,_r,Ar=Nt("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ct("S",Z,z),ct("SS",Z,V),ct("SSS",Z,q),Sr="SSSS";Sr.length<=9;Sr+="S")ct(Sr,et);function kr(t,e){e[St]=pt(1e3*("0."+t))}for(Sr="S";Sr.length<=9;Sr+="S")ft(Sr,kr);_r=Nt("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Er=w.prototype;function Cr(t){return t}Er.add=rr,Er.calendar=function(t,e){1===arguments.length&&(arguments[0]?ir(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,r=a(t)&&!c(t),s=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<n.length;e+=1)s=s||o(t,n[e]);return r&&s}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var r=t||De(),s=qe(r,this).startOf("day"),i=n.calendarFormat(this,s)||"sameElse",u=e&&(E(e[i])?e[i].call(this,r):e[i]);return this.format(u||this.localeData().calendar(i,this,De(r)))},Er.clone=function(){return new w(this)},Er.diff=function(t,e,r){var s,n,i;if(!this.isValid())return NaN;if(!(s=qe(t,this)).isValid())return NaN;switch(n=6e4*(s.utcOffset()-this.utcOffset()),e=Y(e)){case"year":i=ar(this,s)/12;break;case"month":i=ar(this,s);break;case"quarter":i=ar(this,s)/3;break;case"second":i=(this-s)/1e3;break;case"minute":i=(this-s)/6e4;break;case"hour":i=(this-s)/36e5;break;case"day":i=(this-s-n)/864e5;break;case"week":i=(this-s-n)/6048e5;break;default:i=this-s}return r?i:ht(i)},Er.endOf=function(t){var e,r;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?yr:mr,t){case"year":e=r(this.year()+1,0,1)-1;break;case"quarter":e=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=r(this.year(),this.month()+1,1)-1;break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=pr-fr(e+(this._isUTC?0:this.utcOffset()*hr),pr)-1;break;case"minute":e=this._d.valueOf(),e+=hr-fr(e,hr)-1;break;case"second":e=this._d.valueOf(),e+=lr-fr(e,lr)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},Er.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=j(this,t);return this.localeData().postformat(e)},Er.from=function(t,e){return this.isValid()&&(P(t)&&t.isValid()||De(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Er.fromNow=function(t){return this.from(De(),t)},Er.to=function(t,e){return this.isValid()&&(P(t)&&t.isValid()||De(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Er.toNow=function(t){return this.to(De(),t)},Er.get=function(t){return E(this[t=Y(t)])?this[t]():this},Er.invalidAt=function(){return m(this).overflow},Er.isAfter=function(t,e){var r=P(t)?t:De(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(e).valueOf())},Er.isBefore=function(t,e){var r=P(t)?t:De(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(e).valueOf()<r.valueOf())},Er.isBetween=function(t,e,r,s){var n=P(t)?t:De(t),i=P(e)?e:De(e);return!!(this.isValid()&&n.isValid()&&i.isValid())&&("("===(s=s||"()")[0]?this.isAfter(n,r):!this.isBefore(n,r))&&(")"===s[1]?this.isBefore(i,r):!this.isAfter(i,r))},Er.isSame=function(t,e){var r,s=P(t)?t:De(t);return!(!this.isValid()||!s.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf()))},Er.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Er.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Er.isValid=function(){return y(this)},Er.lang=cr,Er.locale=or,Er.localeData=ur,Er.max=je,Er.min=Fe,Er.parsingFlags=function(){return d({},m(this))},Er.set=function(t,e){if("object"==typeof t){var r,s=function(t){var e,r=[];for(e in t)o(t,e)&&r.push({unit:e,priority:H[e]});return r.sort((function(t,e){return t.priority-e.priority})),r}(t=U(t)),n=s.length;for(r=0;r<n;r++)this[s[r].unit](t[s[r].unit])}else if(E(this[t=Y(t)]))return this[t](e);return this},Er.startOf=function(t){var e,r;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(r=this._isUTC?yr:mr,t){case"year":e=r(this.year(),0,1);break;case"quarter":e=r(this.year(),this.month()-this.month()%3,1);break;case"month":e=r(this.year(),this.month(),1);break;case"week":e=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=r(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fr(e+(this._isUTC?0:this.utcOffset()*hr),pr);break;case"minute":e=this._d.valueOf(),e-=fr(e,hr);break;case"second":e=this._d.valueOf(),e-=fr(e,lr)}return this._d.setTime(e),n.updateOffset(this,!0),this},Er.subtract=sr,Er.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Er.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Er.toDate=function(){return new Date(this.valueOf())},Er.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,r=e?this.clone().utc():this;return r.year()<0||r.year()>9999?j(r,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(r,"Z")):j(r,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Er.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,r,s="moment",n="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+s+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",r=n+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Er[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Er.toJSON=function(){return this.isValid()?this.toISOString():null},Er.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Er.unix=function(){return Math.floor(this.valueOf()/1e3)},Er.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Er.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Er.eraName=function(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until)return s[t].name;if(s[t].until<=r&&r<=s[t].since)return s[t].name}return""},Er.eraNarrow=function(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until)return s[t].narrow;if(s[t].until<=r&&r<=s[t].since)return s[t].narrow}return""},Er.eraAbbr=function(){var t,e,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t){if(r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until)return s[t].abbr;if(s[t].until<=r&&r<=s[t].since)return s[t].abbr}return""},Er.eraYear=function(){var t,e,r,s,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t)if(r=i[t].since<=i[t].until?1:-1,s=this.clone().startOf("day").valueOf(),i[t].since<=s&&s<=i[t].until||i[t].until<=s&&s<=i[t].since)return(this.year()-n(i[t].since).year())*r+i[t].offset;return this.year()},Er.year=Ct,Er.isLeapYear=function(){return gt(this.year())},Er.weekYear=function(t){return br.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Er.isoWeekYear=function(t){return br.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Er.quarter=Er.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Er.month=Ut,Er.daysInMonth=function(){return Lt(this.year(),this.month())},Er.week=Er.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Er.isoWeek=Er.isoWeeks=function(t){var e=$t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Er.weeksInYear=function(){var t=this.localeData()._week;return Kt(this.year(),t.dow,t.doy)},Er.weeksInWeekYear=function(){var t=this.localeData()._week;return Kt(this.weekYear(),t.dow,t.doy)},Er.isoWeeksInYear=function(){return Kt(this.year(),1,4)},Er.isoWeeksInISOWeekYear=function(){return Kt(this.isoWeekYear(),1,4)},Er.date=Pr,Er.day=Er.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=It(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Er.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Er.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Er.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Er.hour=Er.hours=oe,Er.minute=Er.minutes=Tr,Er.second=Er.seconds=Ar,Er.millisecond=Er.milliseconds=_r,Er.utcOffset=function(t,e,r){var s,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ve(nt,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&e&&(s=$e(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==t&&(!e||this._changeInProgress?er(this,Xe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:$e(this)},Er.utc=function(t){return this.utcOffset(0,t)},Er.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($e(this),"m")),this},Er.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ve(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Er.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?De(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Er.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Er.isLocal=function(){return!!this.isValid()&&!this._isUTC},Er.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Er.isUtc=Ke,Er.isUTC=Ke,Er.zoneAbbr=function(){return this._isUTC?"UTC":""},Er.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Er.dates=S("dates accessor is deprecated. Use date instead.",Pr),Er.months=S("months accessor is deprecated. Use month instead",Ut),Er.years=S("years accessor is deprecated. Use year instead",Ct),Er.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Er.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=Le(e))._a?(t=e._isUTC?f(e._a):De(e._a),this._isDSTShifted=this.isValid()&&function(t,e,r){var s,n=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),a=0;for(s=0;s<n;s++)(r&&t[s]!==e[s]||!r&&pt(t[s])!==pt(e[s]))&&a++;return a+i}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Nr=N.prototype;function Ir(t,e,r,s){var n=ge(),i=f().set(s,e);return n[r](i,t)}function Mr(t,e,r){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ir(t,e,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Ir(t,s,r,"month");return n}function Lr(t,e,r,s){"boolean"==typeof t?(l(e)&&(r=e,e=void 0),e=e||""):(r=e=t,t=!1,l(e)&&(r=e,e=void 0),e=e||"");var n,i=ge(),a=t?i._week.dow:0,o=[];if(null!=r)return Ir(e,(r+a)%7,s,"day");for(n=0;n<7;n++)o[n]=Ir(e,(n+a)%7,s,"day");return o}Nr.calendar=function(t,e,r){var s=this._calendar[t]||this._calendar.sameElse;return E(s)?s.call(e,r):s},Nr.longDateFormat=function(t){var e=this._longDateFormat[t],r=this._longDateFormat[t.toUpperCase()];return e||!r?e:(this._longDateFormat[t]=r.match(M).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Nr.invalidDate=function(){return this._invalidDate},Nr.ordinal=function(t){return this._ordinal.replace("%d",t)},Nr.preparse=Cr,Nr.postformat=Cr,Nr.relativeTime=function(t,e,r,s){var n=this._relativeTime[r];return E(n)?n(t,e,r,s):n.replace(/%d/i,t)},Nr.pastFuture=function(t,e){var r=this._relativeTime[t>0?"future":"past"];return E(r)?r(e):r.replace(/%s/i,e)},Nr.set=function(t){var e,r;for(r in t)o(t,r)&&(E(e=t[r])?this[r]=e:this["_"+r]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Nr.eras=function(t,e){var r,s,i,a=this._eras||ge("en")._eras;for(r=0,s=a.length;r<s;++r)switch("string"==typeof a[r].since&&(i=n(a[r].since).startOf("day"),a[r].since=i.valueOf()),typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":i=n(a[r].until).startOf("day").valueOf(),a[r].until=i.valueOf()}return a},Nr.erasParse=function(t,e,r){var s,n,i,a,o,c=this.eras();for(t=t.toUpperCase(),s=0,n=c.length;s<n;++s)if(i=c[s].name.toUpperCase(),a=c[s].abbr.toUpperCase(),o=c[s].narrow.toUpperCase(),r)switch(e){case"N":case"NN":case"NNN":if(a===t)return c[s];break;case"NNNN":if(i===t)return c[s];break;case"NNNNN":if(o===t)return c[s]}else if([i,a,o].indexOf(t)>=0)return c[s]},Nr.erasConvertYear=function(t,e){var r=t.since<=t.until?1:-1;return void 0===e?n(t.since).year():n(t.since).year()+(e-t.offset)*r},Nr.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||vr.call(this),t?this._erasAbbrRegex:this._erasRegex},Nr.erasNameRegex=function(t){return o(this,"_erasNameRegex")||vr.call(this),t?this._erasNameRegex:this._erasRegex},Nr.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||vr.call(this),t?this._erasNarrowRegex:this._erasRegex},Nr.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ft).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},Nr.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ft.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Nr.monthsParse=function(t,e,r){var s,n,i;if(this._monthsParseExact)return Bt.call(this,t,e,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=f([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),r||this._monthsParse[s]||(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===e&&this._longMonthsParse[s].test(t))return s;if(r&&"MMM"===e&&this._shortMonthsParse[s].test(t))return s;if(!r&&this._monthsParse[s].test(t))return s}},Nr.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Rt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Nr.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Nr.week=function(t){return $t(t,this._week.dow,this._week.doy).week},Nr.firstDayOfYear=function(){return this._week.doy},Nr.firstDayOfWeek=function(){return this._week.dow},Nr.weekdays=function(t,e){var r=i(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Jt(r,this._week.dow):t?r[t.day()]:r},Nr.weekdaysMin=function(t){return!0===t?Jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Nr.weekdaysShort=function(t){return!0===t?Jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Nr.weekdaysParse=function(t,e,r){var s,n,i;if(this._weekdaysParseExact)return re.call(this,t,e,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=f([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===e&&this._fullWeekdaysParse[s].test(t))return s;if(r&&"ddd"===e&&this._shortWeekdaysParse[s].test(t))return s;if(r&&"dd"===e&&this._minWeekdaysParse[s].test(t))return s;if(!r&&this._weekdaysParse[s].test(t))return s}},Nr.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Qt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Nr.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Nr.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||se.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Nr.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Nr.meridiem=function(t,e,r){return t>11?r?"pm":"PM":r?"am":"AM"},me("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===pt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=S("moment.lang is deprecated. Use moment.locale instead.",me),n.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ge);var Or=Math.abs;function Dr(t,e,r,s){var n=Xe(e,r);return t._milliseconds+=s*n._milliseconds,t._days+=s*n._days,t._months+=s*n._months,t._bubble()}function Fr(t){return t<0?Math.floor(t):Math.ceil(t)}function jr(t){return 4800*t/146097}function Rr(t){return 146097*t/4800}function Br(t){return function(){return this.as(t)}}var Yr=Br("ms"),Ur=Br("s"),Hr=Br("m"),Wr=Br("h"),zr=Br("d"),Vr=Br("w"),qr=Br("M"),$r=Br("Q"),Kr=Br("y"),Jr=Yr;function Gr(t){return function(){return this.isValid()?this._data[t]:NaN}}var Xr=Gr("milliseconds"),Zr=Gr("seconds"),Qr=Gr("minutes"),ts=Gr("hours"),es=Gr("days"),rs=Gr("months"),ss=Gr("years");var ns=Math.round,is={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function as(t,e,r,s,n){return n.relativeTime(e||1,!!r,t,s)}var os=Math.abs;function cs(t){return(t>0)-(t<0)||+t}function us(){if(!this.isValid())return this.localeData().invalidDate();var t,e,r,s,n,i,a,o,c=os(this._milliseconds)/1e3,u=os(this._days),l=os(this._months),h=this.asSeconds();return h?(t=ht(c/60),e=ht(t/60),c%=60,t%=60,r=ht(l/12),l%=12,s=c?c.toFixed(3).replace(/\.?0+$/,""):"",n=h<0?"-":"",i=cs(this._months)!==cs(h)?"-":"",a=cs(this._days)!==cs(h)?"-":"",o=cs(this._milliseconds)!==cs(h)?"-":"",n+"P"+(r?i+r+"Y":"")+(l?i+l+"M":"")+(u?a+u+"D":"")+(e||t||c?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(c?o+s+"S":"")):"P0D"}var ls=Ye.prototype;return ls.isValid=function(){return this._isValid},ls.abs=function(){var t=this._data;return this._milliseconds=Or(this._milliseconds),this._days=Or(this._days),this._months=Or(this._months),t.milliseconds=Or(t.milliseconds),t.seconds=Or(t.seconds),t.minutes=Or(t.minutes),t.hours=Or(t.hours),t.months=Or(t.months),t.years=Or(t.years),this},ls.add=function(t,e){return Dr(this,t,e,1)},ls.subtract=function(t,e){return Dr(this,t,e,-1)},ls.as=function(t){if(!this.isValid())return NaN;var e,r,s=this._milliseconds;if("month"===(t=Y(t))||"quarter"===t||"year"===t)switch(e=this._days+s/864e5,r=this._months+jr(e),t){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(e=this._days+Math.round(Rr(this._months)),t){case"week":return e/7+s/6048e5;case"day":return e+s/864e5;case"hour":return 24*e+s/36e5;case"minute":return 1440*e+s/6e4;case"second":return 86400*e+s/1e3;case"millisecond":return Math.floor(864e5*e)+s;default:throw new Error("Unknown unit "+t)}},ls.asMilliseconds=Yr,ls.asSeconds=Ur,ls.asMinutes=Hr,ls.asHours=Wr,ls.asDays=zr,ls.asWeeks=Vr,ls.asMonths=qr,ls.asQuarters=$r,ls.asYears=Kr,ls.valueOf=Jr,ls._bubble=function(){var t,e,r,s,n,i=this._milliseconds,a=this._days,o=this._months,c=this._data;return i>=0&&a>=0&&o>=0||i<=0&&a<=0&&o<=0||(i+=864e5*Fr(Rr(o)+a),a=0,o=0),c.milliseconds=i%1e3,t=ht(i/1e3),c.seconds=t%60,e=ht(t/60),c.minutes=e%60,r=ht(e/60),c.hours=r%24,a+=ht(r/24),o+=n=ht(jr(a)),a-=Fr(Rr(n)),s=ht(o/12),o%=12,c.days=a,c.months=o,c.years=s,this},ls.clone=function(){return Xe(this)},ls.get=function(t){return t=Y(t),this.isValid()?this[t+"s"]():NaN},ls.milliseconds=Xr,ls.seconds=Zr,ls.minutes=Qr,ls.hours=ts,ls.days=es,ls.weeks=function(){return ht(this.days()/7)},ls.months=rs,ls.years=ss,ls.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var r,s,n=!1,i=is;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(n=t),"object"==typeof e&&(i=Object.assign({},is,e),null!=e.s&&null==e.ss&&(i.ss=e.s-1)),s=function(t,e,r,s){var n=Xe(t).abs(),i=ns(n.as("s")),a=ns(n.as("m")),o=ns(n.as("h")),c=ns(n.as("d")),u=ns(n.as("M")),l=ns(n.as("w")),h=ns(n.as("y")),p=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||c<=1&&["d"]||c<r.d&&["dd",c];return null!=r.w&&(p=p||l<=1&&["w"]||l<r.w&&["ww",l]),(p=p||u<=1&&["M"]||u<r.M&&["MM",u]||h<=1&&["y"]||["yy",h])[2]=e,p[3]=+t>0,p[4]=s,as.apply(null,p)}(this,!n,i,r=this.localeData()),n&&(s=r.pastFuture(+this,s)),r.postformat(s)},ls.toISOString=us,ls.toString=us,ls.toJSON=us,ls.locale=or,ls.localeData=ur,ls.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),ls.lang=cr,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ct("x",rt),ct("X",/[+-]?\d+(\.\d{1,3})?/),ft("X",(function(t,e,r){r._d=new Date(1e3*parseFloat(t))})),ft("x",(function(t,e,r){r._d=new Date(pt(t))})),n.version="2.30.1",e=De,n.fn=Er,n.min=function(){return Re("isBefore",[].slice.call(arguments,0))},n.max=function(){return Re("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=f,n.unix=function(t){return De(1e3*t)},n.months=function(t,e){return Mr(t,e,"months")},n.isDate=h,n.locale=me,n.invalid=g,n.duration=Xe,n.isMoment=P,n.weekdays=function(t,e,r){return Lr(t,e,r,"weekdays")},n.parseZone=function(){return De.apply(null,arguments).parseZone()},n.localeData=ge,n.isDuration=Ue,n.monthsShort=function(t,e){return Mr(t,e,"monthsShort")},n.weekdaysMin=function(t,e,r){return Lr(t,e,r,"weekdaysMin")},n.defineLocale=ye,n.updateLocale=function(t,e){if(null!=e){var r,s,n=ue;null!=le[t]&&null!=le[t].parentLocale?le[t].set(C(le[t]._config,e)):(null!=(s=fe(t))&&(n=s._config),e=C(n,e),null==s&&(e.abbr=t),(r=new N(e)).parentLocale=le[t],le[t]=r),me(t)}else null!=le[t]&&(null!=le[t].parentLocale?(le[t]=le[t].parentLocale,t===me()&&me(t)):null!=le[t]&&delete le[t]);return le[t]},n.locales=function(){return _(le)},n.weekdaysShort=function(t,e,r){return Lr(t,e,r,"weekdaysShort")},n.normalizeUnits=Y,n.relativeTimeRounding=function(t){return void 0===t?ns:"function"==typeof t&&(ns=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==is[t]&&(void 0===e?is[t]:(is[t]=e,"s"===t&&(is.ss=e-1),!0))},n.calendarFormat=function(t,e){var r=t.diff(e,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},n.prototype=Er,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},264:(t,e,r)=>{"use strict";function s(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function n(t){return t&&t.sensitive?"":"i"}function i(t,e,r){return function(t,e,r){void 0===r&&(r={});for(var i=r.strict,a=void 0!==i&&i,o=r.start,c=void 0===o||o,u=r.end,l=void 0===u||u,h=r.encode,p=void 0===h?function(t){return t}:h,d=r.delimiter,f=void 0===d?"/#?":d,m=r.endsWith,y="[".concat(s(void 0===m?"":m),"]|$"),g="[".concat(s(f),"]"),v=c?"^":"",x=0,b=t;x<b.length;x++){var w=b[x];if("string"==typeof w)v+=s(p(w));else{var P=s(p(w.prefix)),T=s(p(w.suffix));if(w.pattern)if(e&&e.push(w),P||T)if("+"===w.modifier||"*"===w.modifier){var S="*"===w.modifier?"?":"";v+="(?:".concat(P,"((?:").concat(w.pattern,")(?:").concat(T).concat(P,"(?:").concat(w.pattern,"))*)").concat(T,")").concat(S)}else v+="(?:".concat(P,"(").concat(w.pattern,")").concat(T,")").concat(w.modifier);else{if("+"===w.modifier||"*"===w.modifier)throw new TypeError('Can not repeat "'.concat(w.name,'" without a prefix and suffix'));v+="(".concat(w.pattern,")").concat(w.modifier)}else v+="(?:".concat(P).concat(T,")").concat(w.modifier)}}if(l)a||(v+="".concat(g,"?")),v+=r.endsWith?"(?=".concat(y,")"):"$";else{var _=t[t.length-1],A="string"==typeof _?g.indexOf(_[_.length-1])>-1:void 0===_;a||(v+="(?:".concat(g,"(?=").concat(y,"))?")),A||(v+="(?=".concat(g,"|").concat(y,")"))}return new RegExp(v,n(r))}(function(t,e){void 0===e&&(e={});for(var r=function(t){for(var e=[],r=0;r<t.length;){var s=t[r];if("*"!==s&&"+"!==s&&"?"!==s)if("\\"!==s)if("{"!==s)if("}"!==s)if(":"!==s)if("("!==s)e.push({type:"CHAR",index:r,value:t[r++]});else{var n=1,i="";if("?"===t[o=r+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<t.length;)if("\\"!==t[o]){if(")"===t[o]){if(0==--n){o++;break}}else if("("===t[o]&&(n++,"?"!==t[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));i+=t[o++]}else i+=t[o++]+t[o++];if(n)throw new TypeError("Unbalanced pattern at ".concat(r));if(!i)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:i}),r=o}else{for(var a="",o=r+1;o<t.length;){var c=t.charCodeAt(o);if(!(c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;a+=t[o++]}if(!a)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:a}),r=o}else e.push({type:"CLOSE",index:r,value:t[r++]});else e.push({type:"OPEN",index:r,value:t[r++]});else e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});else e.push({type:"MODIFIER",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}(t),n=e.prefixes,i=void 0===n?"./":n,a=e.delimiter,o=void 0===a?"/#?":a,c=[],u=0,l=0,h="",p=function(t){if(l<r.length&&r[l].type===t)return r[l++].value},d=function(t){var e=p(t);if(void 0!==e)return e;var s=r[l],n=s.type,i=s.index;throw new TypeError("Unexpected ".concat(n," at ").concat(i,", expected ").concat(t))},f=function(){for(var t,e="";t=p("CHAR")||p("ESCAPED_CHAR");)e+=t;return e},m=function(t){var e=c[c.length-1],r=t||(e&&"string"==typeof e?e:"");if(e&&!r)throw new TypeError('Must have text between two parameters, missing text after "'.concat(e.name,'"'));return!r||function(t){for(var e=0,r=o;e<r.length;e++){var s=r[e];if(t.indexOf(s)>-1)return!0}return!1}(r)?"[^".concat(s(o),"]+?"):"(?:(?!".concat(s(r),")[^").concat(s(o),"])+?")};l<r.length;){var y=p("CHAR"),g=p("NAME"),v=p("PATTERN");if(g||v){var x=y||"";-1===i.indexOf(x)&&(h+=x,x=""),h&&(c.push(h),h=""),c.push({name:g||u++,prefix:x,suffix:"",pattern:v||m(x),modifier:p("MODIFIER")||""})}else{var b=y||p("ESCAPED_CHAR");if(b)h+=b;else if(h&&(c.push(h),h=""),p("OPEN")){x=f();var w=p("NAME")||"",P=p("PATTERN")||"",T=f();d("CLOSE"),c.push({name:w||(P?u++:""),pattern:w&&!P?m(x):P,prefix:x,suffix:T,modifier:p("MODIFIER")||""})}else d("END")}}return c}(t,r),e,r)}function a(t,e,r){return t instanceof RegExp?function(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,s=0,n=r.exec(t.source);n;)e.push({name:n[1]||s++,prefix:"",suffix:"",modifier:"",pattern:""}),n=r.exec(t.source);return t}(t,e):Array.isArray(t)?function(t,e,r){var s=t.map((function(t){return a(t,e,r).source}));return new RegExp("(?:".concat(s.join("|"),")"),n(r))}(t,e,r):i(t,e,r)}r.d(e,{MM:()=>a})},2171:(t,e,r)=>{"use strict";function s(t){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){var e=self.close.bind(self);self.close=function(){return t(),e()}}else{if("function"!=typeof window.addEventListener)return;window.addEventListener("beforeunload",(function(){t()}),!0),window.addEventListener("unload",(function(){t()}),!0)}}r.d(e,{O:()=>s})},311:(t,e,r)=>{"use strict";function s(t){process.on("exit",(function(){return t()})),process.on("beforeExit",(function(){return t().then((function(){return process.exit()}))})),process.on("SIGINT",(function(){return t().then((function(){return process.exit()}))})),process.on("uncaughtException",(function(e){return t().then((function(){console.trace(e),process.exit(101)}))}))}r.d(e,{i:()=>s})},6773:(t,e)=>{"use strict";function r(t,e){if(null==t)return{};var r={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(e.includes(s))continue;r[s]=t[s]}return r}Object.defineProperty(e,"__esModule",{value:!0});class s{constructor(t,e,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=r}}class n{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function i(t,e){const{line:r,column:n,index:i}=t;return new s(r,n+e,i+e)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const c={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},u=t=>"UpdateExpression"===t.type?c.UpdateExpression[`${t.prefix}`]:c[t.type];var l={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${"ForInStatement"===t?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${"BreakStatement"===t?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${1===t?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${u(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${u(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${u(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map((t=>JSON.stringify(t))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};const h=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var p={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${u({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'};const d=["message"];function f(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:r})}function m({toMessage:t,code:e,reasonCode:r,syntaxPlugin:n}){const i="MissingPlugin"===r||"MissingOneOfPlugins"===r;{const t={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};t[r]&&(r=t[r])}return function a(o,c){const u=new SyntaxError;return u.code=e,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=n,i&&(u.missingPlugin=c.missingPlugin),f(u,"clone",(function(t={}){var e;const{line:r,column:n,index:i}=null!=(e=t.loc)?e:o;return a(new s(r,n,i),Object.assign({},c,t.details))})),f(u,"details",c),Object.defineProperty(u,"message",{configurable:!0,get(){const e=`${t(c)} (${o.line}:${o.column})`;return this.message=e,e},set(t){Object.defineProperty(this,"message",{value:t,writable:!0})}}),u}}function y(t,e){if(Array.isArray(t))return e=>y(e,t[0]);const s={};for(const n of Object.keys(t)){const i=t[n],a="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,{message:o}=a,c=r(a,d),u="string"==typeof o?()=>o:o;s[n]=m(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},e?{syntaxPlugin:e}:{},c))}return s}const g=Object.assign({},y(o),y(l),y({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),y`pipelineOperator`(p)),{defineProperty:v}=Object,x=(t,e)=>{t&&v(t,e,{enumerable:!1,value:t[e]})};function b(t){return x(t.loc.start,"index"),x(t.loc.end,"index"),t}class w{constructor(t,e){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!e}}const P={brace:new w("{"),j_oTag:new w("<tag"),j_cTag:new w("</tag"),j_expr:new w("<tag>...</tag>",!0)};P.template=new w("`",!0);const T=!0,S=!0,_=!0,A=!0,k=!0;class E{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}const C=new Map;function N(t,e={}){e.keyword=t;const r=B(t,e);return C.set(t,r),r}function I(t,e){return B(t,{beforeExpr:T,binop:e})}let M=-1;const L=[],O=[],D=[],F=[],j=[],R=[];function B(t,e={}){var r,s,n,i;return++M,O.push(t),D.push(null!=(r=e.binop)?r:-1),F.push(null!=(s=e.beforeExpr)&&s),j.push(null!=(n=e.startsExpr)&&n),R.push(null!=(i=e.prefix)&&i),L.push(new E(t,e)),M}function Y(t,e={}){var r,s,n,i;return++M,C.set(t,M),O.push(t),D.push(null!=(r=e.binop)?r:-1),F.push(null!=(s=e.beforeExpr)&&s),j.push(null!=(n=e.startsExpr)&&n),R.push(null!=(i=e.prefix)&&i),L.push(new E("name",e)),M}const U={bracketL:B("[",{beforeExpr:T,startsExpr:S}),bracketHashL:B("#[",{beforeExpr:T,startsExpr:S}),bracketBarL:B("[|",{beforeExpr:T,startsExpr:S}),bracketR:B("]"),bracketBarR:B("|]"),braceL:B("{",{beforeExpr:T,startsExpr:S}),braceBarL:B("{|",{beforeExpr:T,startsExpr:S}),braceHashL:B("#{",{beforeExpr:T,startsExpr:S}),braceR:B("}"),braceBarR:B("|}"),parenL:B("(",{beforeExpr:T,startsExpr:S}),parenR:B(")"),comma:B(",",{beforeExpr:T}),semi:B(";",{beforeExpr:T}),colon:B(":",{beforeExpr:T}),doubleColon:B("::",{beforeExpr:T}),dot:B("."),question:B("?",{beforeExpr:T}),questionDot:B("?."),arrow:B("=>",{beforeExpr:T}),template:B("template"),ellipsis:B("...",{beforeExpr:T}),backQuote:B("`",{startsExpr:S}),dollarBraceL:B("${",{beforeExpr:T,startsExpr:S}),templateTail:B("...`",{startsExpr:S}),templateNonTail:B("...${",{beforeExpr:T,startsExpr:S}),at:B("@"),hash:B("#",{startsExpr:S}),interpreterDirective:B("#!..."),eq:B("=",{beforeExpr:T,isAssign:A}),assign:B("_=",{beforeExpr:T,isAssign:A}),slashAssign:B("_=",{beforeExpr:T,isAssign:A}),xorAssign:B("_=",{beforeExpr:T,isAssign:A}),moduloAssign:B("_=",{beforeExpr:T,isAssign:A}),incDec:B("++/--",{prefix:k,postfix:!0,startsExpr:S}),bang:B("!",{beforeExpr:T,prefix:k,startsExpr:S}),tilde:B("~",{beforeExpr:T,prefix:k,startsExpr:S}),doubleCaret:B("^^",{startsExpr:S}),doubleAt:B("@@",{startsExpr:S}),pipeline:I("|>",0),nullishCoalescing:I("??",1),logicalOR:I("||",1),logicalAND:I("&&",2),bitwiseOR:I("|",3),bitwiseXOR:I("^",4),bitwiseAND:I("&",5),equality:I("==/!=/===/!==",6),lt:I("</>/<=/>=",7),gt:I("</>/<=/>=",7),relational:I("</>/<=/>=",7),bitShift:I("<</>>/>>>",8),bitShiftL:I("<</>>/>>>",8),bitShiftR:I("<</>>/>>>",8),plusMin:B("+/-",{beforeExpr:T,binop:9,prefix:k,startsExpr:S}),modulo:B("%",{binop:10,startsExpr:S}),star:B("*",{binop:10}),slash:I("/",10),exponent:B("**",{beforeExpr:T,binop:11,rightAssociative:!0}),_in:N("in",{beforeExpr:T,binop:7}),_instanceof:N("instanceof",{beforeExpr:T,binop:7}),_break:N("break"),_case:N("case",{beforeExpr:T}),_catch:N("catch"),_continue:N("continue"),_debugger:N("debugger"),_default:N("default",{beforeExpr:T}),_else:N("else",{beforeExpr:T}),_finally:N("finally"),_function:N("function",{startsExpr:S}),_if:N("if"),_return:N("return",{beforeExpr:T}),_switch:N("switch"),_throw:N("throw",{beforeExpr:T,prefix:k,startsExpr:S}),_try:N("try"),_var:N("var"),_const:N("const"),_with:N("with"),_new:N("new",{beforeExpr:T,startsExpr:S}),_this:N("this",{startsExpr:S}),_super:N("super",{startsExpr:S}),_class:N("class",{startsExpr:S}),_extends:N("extends",{beforeExpr:T}),_export:N("export"),_import:N("import",{startsExpr:S}),_null:N("null",{startsExpr:S}),_true:N("true",{startsExpr:S}),_false:N("false",{startsExpr:S}),_typeof:N("typeof",{beforeExpr:T,prefix:k,startsExpr:S}),_void:N("void",{beforeExpr:T,prefix:k,startsExpr:S}),_delete:N("delete",{beforeExpr:T,prefix:k,startsExpr:S}),_do:N("do",{isLoop:_,beforeExpr:T}),_for:N("for",{isLoop:_}),_while:N("while",{isLoop:_}),_as:Y("as",{startsExpr:S}),_assert:Y("assert",{startsExpr:S}),_async:Y("async",{startsExpr:S}),_await:Y("await",{startsExpr:S}),_defer:Y("defer",{startsExpr:S}),_from:Y("from",{startsExpr:S}),_get:Y("get",{startsExpr:S}),_let:Y("let",{startsExpr:S}),_meta:Y("meta",{startsExpr:S}),_of:Y("of",{startsExpr:S}),_sent:Y("sent",{startsExpr:S}),_set:Y("set",{startsExpr:S}),_source:Y("source",{startsExpr:S}),_static:Y("static",{startsExpr:S}),_using:Y("using",{startsExpr:S}),_yield:Y("yield",{startsExpr:S}),_asserts:Y("asserts",{startsExpr:S}),_checks:Y("checks",{startsExpr:S}),_exports:Y("exports",{startsExpr:S}),_global:Y("global",{startsExpr:S}),_implements:Y("implements",{startsExpr:S}),_intrinsic:Y("intrinsic",{startsExpr:S}),_infer:Y("infer",{startsExpr:S}),_is:Y("is",{startsExpr:S}),_mixins:Y("mixins",{startsExpr:S}),_proto:Y("proto",{startsExpr:S}),_require:Y("require",{startsExpr:S}),_satisfies:Y("satisfies",{startsExpr:S}),_keyof:Y("keyof",{startsExpr:S}),_readonly:Y("readonly",{startsExpr:S}),_unique:Y("unique",{startsExpr:S}),_abstract:Y("abstract",{startsExpr:S}),_declare:Y("declare",{startsExpr:S}),_enum:Y("enum",{startsExpr:S}),_module:Y("module",{startsExpr:S}),_namespace:Y("namespace",{startsExpr:S}),_interface:Y("interface",{startsExpr:S}),_type:Y("type",{startsExpr:S}),_opaque:Y("opaque",{startsExpr:S}),name:B("name",{startsExpr:S}),string:B("string",{startsExpr:S}),num:B("num",{startsExpr:S}),bigint:B("bigint",{startsExpr:S}),decimal:B("decimal",{startsExpr:S}),regexp:B("regexp",{startsExpr:S}),privateName:B("#name",{startsExpr:S}),eof:B("eof"),jsxName:B("jsxName"),jsxText:B("jsxText",{beforeExpr:!0}),jsxTagStart:B("jsxTagStart",{startsExpr:!0}),jsxTagEnd:B("jsxTagEnd"),placeholder:B("%%",{startsExpr:!0})};function H(t){return t>=93&&t<=132}function W(t){return t>=58&&t<=132}function z(t){return t>=58&&t<=136}function V(t){return j[t]}function q(t){return t>=129&&t<=131}function $(t){return t>=58&&t<=92}function K(t){return O[t]}function J(t){return D[t]}function G(t){return t>=24&&t<=25}function X(t){return L[t]}L[8].updateContext=t=>{t.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=t=>{t.push(P.brace)},L[22].updateContext=t=>{t[t.length-1]===P.template?t.pop():t.push(P.template)},L[142].updateContext=t=>{t.push(P.j_expr,P.j_oTag)};let Z="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Q="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const tt=new RegExp("["+Z+"]"),et=new RegExp("["+Z+Q+"]");Z=Q=null;const rt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],st=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function nt(t,e){let r=65536;for(let s=0,n=e.length;s<n;s+=2){if(r+=e[s],r>t)return!1;if(r+=e[s+1],r>=t)return!0}return!1}function it(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&tt.test(String.fromCharCode(t)):nt(t,rt)))}function at(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&et.test(String.fromCharCode(t)):nt(t,rt)||nt(t,st))))}const ot=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ct=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),ut=new Set(["eval","arguments"]);function lt(t,e){return e&&"await"===t||"enum"===t}function ht(t,e){return lt(t,e)||ct.has(t)}function pt(t){return ut.has(t)}function dt(t,e){return ht(t,e)||pt(t)}const ft=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class mt{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}}class yt{constructor(t,e){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=e}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const t=this.currentThisScopeFlags();return(64&t)>0&&0==(2&t)}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(128&e)return!0;if(451&e)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new mt(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(130&t.flags||!this.parser.inModule&&1&t.flags)}declareName(t,e,r){let s=this.currentScope();if(8&e||16&e){this.checkRedeclarationInScope(s,t,e,r);let n=s.names.get(t)||0;16&e?n|=4:(s.firstLexicalName||(s.firstLexicalName=t),n|=2),s.names.set(t,n),8&e&&this.maybeExportDefined(s,t)}else if(4&e)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,e,r),s.names.set(t,1|(s.names.get(t)||0)),this.maybeExportDefined(s,t),!(387&s.flags));--n);this.parser.inModule&&1&s.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.parser.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,r,s){this.isRedeclaredInScope(t,e,r)&&this.parser.raise(g.VarRedeclaration,s,{identifierName:e})}isRedeclaredInScope(t,e,r){if(!(1&r))return!1;if(8&r)return t.names.has(e);const s=t.names.get(e);return 16&r?(2&s)>0||!this.treatFunctionsAsVarInScope(t)&&(1&s)>0:(2&s)>0&&!(8&t.flags&&t.firstLexicalName===e)||!this.treatFunctionsAsVarInScope(t)&&(4&s)>0}checkLocalExport(t){const{name:e}=t;this.scopeStack[0].names.has(e)||this.undefinedExports.set(e,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(387&e)return e}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){const{flags:e}=this.scopeStack[t];if(451&e&&!(4&e))return e}}}class gt extends mt{constructor(...t){super(...t),this.declareFunctions=new Set}}class vt extends yt{createScope(t){return new gt(t)}declareName(t,e,r){const s=this.currentScope();if(2048&e)return this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t),void s.declareFunctions.add(t);super.declareName(t,e,r)}isRedeclaredInScope(t,e,r){if(super.isRedeclaredInScope(t,e,r))return!0;if(2048&r&&!t.declareFunctions.has(e)){const r=t.names.get(e);return(4&r)>0||(2&r)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}}class xt{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if("string"==typeof t)return this.plugins.has(t);{const[e,r]=t;if(!this.hasPlugin(e))return!1;const s=this.plugins.get(e);for(const t of Object.keys(r))if((null==s?void 0:s[t])!==r[t])return!1;return!0}}getPluginOption(t,e){var r;return null==(r=this.plugins.get(t))?void 0:r[e]}}function bt(t,e){void 0===t.trailingComments?t.trailingComments=e:t.trailingComments.unshift(...e)}function wt(t,e){void 0===t.innerComments?t.innerComments=e:t.innerComments.unshift(...e)}function Pt(t,e,r){let s=null,n=e.length;for(;null===s&&n>0;)s=e[--n];null===s||s.start>r.start?wt(t,r.comments):bt(s,r.comments)}class Tt extends xt{addComment(t){this.filename&&(t.loc.filename=this.filename);const{commentsLen:e}=this.state;this.comments.length!==e&&(this.comments.length=e),this.comments.push(t),this.state.commentsLen++}processComment(t){const{commentStack:e}=this.state,r=e.length;if(0===r)return;let s=r-1;const n=e[s];n.start===t.end&&(n.leadingNode=t,s--);const{start:i}=t;for(;s>=0;s--){const r=e[s],n=r.end;if(!(n>i)){n===i&&(r.trailingNode=t);break}r.containingNode=t,this.finalizeComment(r),e.splice(s,1)}}finalizeComment(t){const{comments:e}=t;if(null!==t.leadingNode||null!==t.trailingNode)null!==t.leadingNode&&bt(t.leadingNode,e),null!==t.trailingNode&&function(t,e){void 0===t.leadingComments?t.leadingComments=e:t.leadingComments.unshift(...e)}(t.trailingNode,e);else{const{containingNode:r,start:s}=t;if(44===this.input.charCodeAt(s-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Pt(r,r.properties,t);break;case"CallExpression":case"OptionalCallExpression":Pt(r,r.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Pt(r,r.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Pt(r,r.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Pt(r,r.specifiers,t);break;default:wt(r,e)}else wt(r,e)}}finalizeRemainingComments(){const{commentStack:t}=this.state;for(let e=t.length-1;e>=0;e--)this.finalizeComment(t[e]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){const{commentStack:e}=this.state,{length:r}=e;if(0===r)return;const s=e[r-1];s.leadingNode===t&&(s.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){const{commentStack:e}=this.state,{length:r}=e;0!==r&&(e[r-1].trailingNode===t?e[r-1].trailingNode=null:r>=2&&e[r-2].trailingNode===t&&(e[r-2].trailingNode=null))}takeSurroundingComments(t,e,r){const{commentStack:s}=this.state,n=s.length;if(0===n)return;let i=n-1;for(;i>=0;i--){const n=s[i],a=n.end;if(n.start===r)n.leadingNode=t;else if(a===e)n.trailingNode=t;else if(a<e)break}}}const St=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function _t(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function At(t,e,r){for(let s=e;s<r;s++)if(_t(t.charCodeAt(s)))return!0;return!1}const kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Et=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Ct(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class Nt{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[P.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:e,startLine:r,startColumn:n}){this.strict=!1!==t&&(!0===t||"module"===e),this.curLine=r,this.lineStart=-n,this.startLoc=this.endLoc=new s(r,n,0)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new s(this.curLine,this.pos-this.lineStart,this.pos)}clone(){const t=new Nt;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}var It=function(t){return t>=48&&t<=57};const Mt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Lt={bin:t=>48===t||49===t,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function Ot(t,e,r,s,n,i){const a=r,o=s,c=n;let u="",l=null,h=r;const{length:p}=e;for(;;){if(r>=p){i.unterminated(a,o,c),u+=e.slice(h,r);break}const d=e.charCodeAt(r);if(Dt(t,d,e,r)){u+=e.slice(h,r);break}if(92===d){u+=e.slice(h,r);const a=Ft(e,r,s,n,"template"===t,i);null!==a.ch||l?u+=a.ch:l={pos:r,lineStart:s,curLine:n},({pos:r,lineStart:s,curLine:n}=a),h=r}else 8232===d||8233===d?(++n,s=++r):10===d||13===d?"template"===t?(u+=e.slice(h,r)+"\n",++r,13===d&&10===e.charCodeAt(r)&&++r,++n,h=s=r):i.unterminated(a,o,c):++r}return{pos:r,str:u,firstInvalidLoc:l,lineStart:s,curLine:n,containsInvalid:!!l}}function Dt(t,e,r,s){return"template"===t?96===e||36===e&&123===r.charCodeAt(s+1):e===("double"===t?34:39)}function Ft(t,e,r,s,n,i){const a=!n;e++;const o=t=>({pos:e,ch:t,lineStart:r,curLine:s}),c=t.charCodeAt(e++);switch(c){case 110:return o("\n");case 114:return o("\r");case 120:{let n;return({code:n,pos:e}=jt(t,e,r,s,2,!1,a,i)),o(null===n?null:String.fromCharCode(n))}case 117:{let n;return({code:n,pos:e}=Bt(t,e,r,s,a,i)),o(null===n?null:String.fromCodePoint(n))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===t.charCodeAt(e)&&++e;case 10:r=e,++s;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);i.strictNumericEscape(e-1,r,s);default:if(c>=48&&c<=55){const a=e-1;let c=/^[0-7]+/.exec(t.slice(a,e+2))[0],u=parseInt(c,8);u>255&&(c=c.slice(0,-1),u=parseInt(c,8)),e+=c.length-1;const l=t.charCodeAt(e);if("0"!==c||56===l||57===l){if(n)return o(null);i.strictNumericEscape(a,r,s)}return o(String.fromCharCode(u))}return o(String.fromCharCode(c))}}function jt(t,e,r,s,n,i,a,o){const c=e;let u;return({n:u,pos:e}=Rt(t,e,r,s,16,n,i,!1,o,!a)),null===u&&(a?o.invalidEscapeSequence(c,r,s):e=c-1),{code:u,pos:e}}function Rt(t,e,r,s,n,i,a,o,c,u){const l=e,h=16===n?Mt.hex:Mt.decBinOct,p=16===n?Lt.hex:10===n?Lt.dec:8===n?Lt.oct:Lt.bin;let d=!1,f=0;for(let l=0,m=null==i?1/0:i;l<m;++l){const i=t.charCodeAt(e);let l;if(95!==i||"bail"===o){if(l=i>=97?i-97+10:i>=65?i-65+10:It(i)?i-48:1/0,l>=n){if(l<=9&&u)return{n:null,pos:e};if(l<=9&&c.invalidDigit(e,r,s,n))l=0;else{if(!a)break;l=0,d=!0}}++e,f=f*n+l}else{const n=t.charCodeAt(e-1),i=t.charCodeAt(e+1);if(o){if(Number.isNaN(i)||!p(i)||h.has(n)||h.has(i)){if(u)return{n:null,pos:e};c.unexpectedNumericSeparator(e,r,s)}}else{if(u)return{n:null,pos:e};c.numericSeparatorInEscapeSequence(e,r,s)}++e}}return e===l||null!=i&&e-l!==i||d?{n:null,pos:e}:{n:f,pos:e}}function Bt(t,e,r,s,n,i){let a;if(123===t.charCodeAt(e)){if(++e,({code:a,pos:e}=jt(t,e,r,s,t.indexOf("}",e)-e,!0,n,i)),++e,null!==a&&a>1114111){if(!n)return{code:null,pos:e};i.invalidCodePoint(e,r,s)}}else({code:a,pos:e}=jt(t,e,r,s,4,!1,n,i));return{code:a,pos:e}}function Yt(t,e,r){return new s(r,t-e,t)}const Ut=new Set([103,109,115,105,121,117,100,118]);class Ht{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new n(t.startLoc,t.endLoc)}}class Wt extends Tt{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(t,e,r,s)=>!!this.options.errorRecovery&&(this.raise(g.InvalidDigit,Yt(t,e,r),{radix:s}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(g.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(g.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(g.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(g.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(t,e,r)=>{this.recordStrictModeErrors(g.StrictNumericEscape,Yt(t,e,r))},unterminated:(t,e,r)=>{throw this.raise(g.UnterminatedString,Yt(t-1,e,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(g.StrictNumericEscape),unterminated:(t,e,r)=>{throw this.raise(g.UnterminatedTemplate,Yt(t,e,r))}}),this.state=new Nt,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ht(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){const t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return kt.lastIndex=t,kt.test(this.input)?kt.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return Et.lastIndex=t,Et.test(this.input)?Et.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if(55296==(64512&e)&&++t<this.input.length){const r=this.input.charCodeAt(t);56320==(64512&r)&&(e=65536+((1023&e)<<10)+(1023&r))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach((([t,e])=>this.raise(t,e))),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let e;this.isLookahead||(e=this.state.curPosition());const r=this.state.pos,s=this.input.indexOf(t,r+2);if(-1===s)throw this.raise(g.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,St.lastIndex=r+2;St.test(this.input)&&St.lastIndex<=s;)++this.state.curLine,this.state.lineStart=St.lastIndex;if(this.isLookahead)return;const i={type:"CommentBlock",value:this.input.slice(r+2,s),start:r,end:s+t.length,loc:new n(e,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(t){const e=this.state.pos;let r;this.isLookahead||(r=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!_t(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const i=this.state.pos,a={type:"CommentLine",value:this.input.slice(e+t,i),start:e,end:i,loc:new n(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipSpace(){const t=this.state.pos,e=[];t:for(;this.state.pos<this.length;){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}case 47:{const t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t));break}default:break t}break;default:if(Ct(r))++this.state.pos;else if(45===r&&!this.inModule&&this.options.annexB){const r=this.state.pos;if(45!==this.input.charCodeAt(r+1)||62!==this.input.charCodeAt(r+2)||!(0===t||this.state.lineStart>t))break t;{const t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}else{if(60!==r||this.inModule||!this.options.annexB)break t;{const t=this.state.pos;if(33!==this.input.charCodeAt(t+1)||45!==this.input.charCodeAt(t+2)||45!==this.input.charCodeAt(t+3))break t;{const t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),this.options.attachComment&&e.push(t))}}}}}if(e.length>0){const r={start:t,end:this.state.pos,comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(r)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.codePointAtPos(t);if(e>=48&&e<=57)throw this.raise(g.UnexpectedDigitAfterHash,this.state.curPosition());if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===e?g.RecordExpressionHashIncorrectStartSyntaxType:g.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===e?this.finishToken(7):this.finishToken(1)}else it(e)?(++this.state.pos,this.finishToken(138,this.readWord1(e))):92===e?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;const e=this.state.pos;for(this.state.pos+=1;!_t(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);const r=this.input.slice(e+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(t){let e=42===t?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);42===t&&42===s&&(r++,s=this.input.charCodeAt(this.state.pos+2),e=57),61!==s||this.state.inType||(r++,e=37===t?33:30),this.finishOp(e,r)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==e?this.finishOp(124===t?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===t?41:42,2)}readToken_caret(){const t=this.input.charCodeAt(this.state.pos+1);61!==t||this.state.inType?94===t&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);e!==t?61===e?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(60===e)return 61===this.input.charCodeAt(t+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==e?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){const{pos:t}=this.state,e=this.input.charCodeAt(t+1);if(62===e){const e=62===this.input.charCodeAt(t+2)?3:2;return 61===this.input.charCodeAt(t+e)?void this.finishOp(30,e+1):void this.finishOp(52,e)}61!==e?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===t?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(30,3):this.finishOp(40,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(g.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(it(t))return void this.readWord(t)}throw this.raise(g.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,e){const r=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,r)}readRegexp(){const t=this.state.startLoc,e=this.state.start+1;let r,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(g.UnterminatedRegExp,i(t,1));const e=this.input.charCodeAt(n);if(_t(e))throw this.raise(g.UnterminatedRegExp,i(t,1));if(r)r=!1;else{if(91===e)s=!0;else if(93===e&&s)s=!1;else if(47===e&&!s)break;r=92===e}}const a=this.input.slice(e,n);++n;let o="";const c=()=>i(t,n+2-e);for(;n<this.length;){const t=this.codePointAtPos(n),e=String.fromCharCode(t);if(Ut.has(t))118===t?o.includes("u")&&this.raise(g.IncompatibleRegExpUVFlags,c()):117===t&&o.includes("v")&&this.raise(g.IncompatibleRegExpUVFlags,c()),o.includes(e)&&this.raise(g.DuplicateRegExpFlags,c());else{if(!at(t)&&92!==t)break;this.raise(g.MalformedRegExpFlags,c())}++n,o+=e}this.state.pos=n,this.finishToken(137,{pattern:a,flags:o})}readInt(t,e,r=!1,s=!0){const{n,pos:i}=Rt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,e,r,s,this.errorHandlers_readInt,!1);return this.state.pos=i,n}readRadixNumber(t){const e=this.state.curPosition();let r=!1;this.state.pos+=2;const s=this.readInt(t);null==s&&this.raise(g.InvalidDigit,i(e,2),{radix:t});const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,r=!0;else if(109===n)throw this.raise(g.InvalidDecimal,e);if(it(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());if(r){const t=this.input.slice(e.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,t)}else this.finishToken(134,s)}readNumber(t){const e=this.state.pos,r=this.state.curPosition();let s=!1,n=!1,a=!1,o=!1,c=!1;t||null!==this.readInt(10)||this.raise(g.InvalidNumber,this.state.curPosition());const u=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(u){const t=this.input.slice(e,this.state.pos);if(this.recordStrictModeErrors(g.StrictOctalLiteral,r),!this.state.strict){const e=t.indexOf("_");e>0&&this.raise(g.ZeroDigitNumericSeparator,i(r,e))}c=u&&!/[89]/.test(t)}let l=this.input.charCodeAt(this.state.pos);if(46!==l||c||(++this.state.pos,this.readInt(10),s=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||c||(l=this.input.charCodeAt(++this.state.pos),43!==l&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(g.InvalidOrMissingExponent,r),s=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((s||u)&&this.raise(g.InvalidBigIntLiteral,r),++this.state.pos,n=!0),109===l&&(this.expectPlugin("decimal",this.state.curPosition()),(o||u)&&this.raise(g.InvalidDecimal,r),++this.state.pos,a=!0),it(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());const h=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(n)return void this.finishToken(135,h);if(a)return void this.finishToken(136,h);const p=c?parseInt(h,8):parseFloat(h);this.finishToken(134,p)}readCodePoint(t){const{code:e,pos:r}=Bt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=r,e}readString(t){const{str:e,pos:r,curLine:s,lineStart:n}=Ot(34===t?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(133,e)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const t=this.input[this.state.pos],{str:e,firstInvalidLoc:r,pos:n,curLine:i,lineStart:a}=Ot("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=a,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new s(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(n)?this.finishToken(24,r?null:t+e+"`"):(this.state.pos++,this.finishToken(25,r?null:t+e+"${"))}recordStrictModeErrors(t,e){const r=e.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(t,e):this.state.strictErrors.set(r,[t,e])}readWord1(t){this.state.containsEsc=!1;let e="";const r=this.state.pos;let s=this.state.pos;for(void 0!==t&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){const t=this.codePointAtPos(this.state.pos);if(at(t))this.state.pos+=t<=65535?1:2;else{if(92!==t)break;{this.state.containsEsc=!0,e+=this.input.slice(s,this.state.pos);const t=this.state.curPosition(),n=this.state.pos===r?it:at;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(g.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;const i=this.readCodePoint(!0);null!==i&&(n(i)||this.raise(g.EscapedCharNotAnIdentifier,t),e+=String.fromCodePoint(i)),s=this.state.pos}}}return e+this.input.slice(s,this.state.pos)}readWord(t){const e=this.readWord1(t),r=C.get(e);void 0!==r?this.finishToken(r,K(r)):this.finishToken(132,e)}checkKeywordEscapes(){const{type:t}=this.state;$(t)&&this.state.containsEsc&&this.raise(g.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:K(t)})}raise(t,e,r={}){const n=t(e instanceof s?e:e.loc.start,r);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,e,r={}){const n=e instanceof s?e:e.loc.start,i=n.index,a=this.state.errors;for(let e=a.length-1;e>=0;e--){const s=a[e];if(s.loc.index===i)return a[e]=t(n,r);if(s.loc.index<i)break}return this.raise(t,e,r)}updateContext(t){}unexpected(t,e){throw this.raise(g.UnexpectedToken,null!=t?t:this.state.startLoc,{expected:e?K(e):null})}expectPlugin(t,e){if(this.hasPlugin(t))return!0;throw this.raise(g.MissingPlugin,null!=e?e:this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some((t=>this.hasPlugin(t))))throw this.raise(g.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(e,r,s)=>{this.raise(t,Yt(e,r,s))}}}class zt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Vt{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new zt)}exit(){const t=this.stack.pop(),e=this.current();for(const[r,s]of Array.from(t.undefinedPrivateNames))e?e.undefinedPrivateNames.has(r)||e.undefinedPrivateNames.set(r,s):this.parser.raise(g.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(t,e,r){const{privateNames:s,loneAccessors:n,undefinedPrivateNames:i}=this.current();let a=s.has(t);if(3&e){const r=a&&n.get(t);r?(a=(3&r)==(3&e)||(4&r)!=(4&e),a||n.delete(t)):a||n.set(t,e)}a&&this.parser.raise(g.PrivateNameRedeclaration,r,{identifierName:t}),s.add(t),i.delete(t)}usePrivateName(t,e){let r;for(r of this.stack)if(r.privateNames.has(t))return;r?r.undefinedPrivateNames.set(t,e):this.parser.raise(g.InvalidPrivateFieldResolution,e,{identifierName:t})}}class qt{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class $t extends qt{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,e){const r=e.index;this.declarationErrors.set(r,[t,e])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}}class Kt{constructor(t){this.parser=void 0,this.stack=[new qt],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const r=e.loc.start,{stack:s}=this;let n=s.length-1,i=s[n];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(t,r),i=s[--n]}this.parser.raise(t,r)}recordArrowParameterBindingError(t,e){const{stack:r}=this,s=r[r.length-1],n=e.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(t,n)}}recordAsyncArrowParametersError(t){const{stack:e}=this;let r=e.length-1,s=e[r];for(;s.canBeArrowParameterDeclaration();)2===s.type&&s.recordDeclarationError(g.AwaitBindingIdentifier,t),s=e[--r]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors((([e,r])=>{this.parser.raise(e,r);let s=t.length-2,n=t[s];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r.index),n=t[--s]}))}}function Jt(){return new qt}class Gt{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Xt(t,e){return(t?2:0)|(e?1:0)}class Zt extends Wt{addExtra(t,e,r,s=!0){if(!t)return;let{extra:n}=t;null==n&&(n={},t.extra=n),s?n[e]=r:Object.defineProperty(n,e,{enumerable:s,value:r})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,e){const r=t+e.length;if(this.input.slice(t,r)===e){const t=this.input.charCodeAt(r);return!(at(t)||55296==(64512&t))}return!1}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return!!this.isContextual(t)&&(this.next(),!0)}expectContextual(t,e){if(!this.eatContextual(t)){if(null!=e)throw this.raise(e,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return At(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return At(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(g.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,e){this.eat(t)||this.unexpected(e,t)}tryParse(t,e=this.state.clone()){const r={node:null};try{const s=t(((t=null)=>{throw r.node=t,r}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,this.state.tokensLength=t.tokensLength,{node:s,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const s=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:s};if(t===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:i}=t;if(!e)return!!(r||s||i||n);null!=r&&this.raise(g.InvalidCoverInitializedName,r),null!=s&&this.raise(g.DuplicateProto,s),null!=n&&this.raise(g.UnexpectedPrivateField,n),null!=i&&this.unexpected(i)}isLiteralPropertyName(){return z(this.state.type)}isPrivateName(t){return"PrivateName"===t.type}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return("MemberExpression"===t.type||"OptionalMemberExpression"===t.type)&&this.isPrivateName(t.property)}isObjectProperty(t){return"ObjectProperty"===t.type}isObjectMethod(t){return"ObjectMethod"===t.type}initializeScopes(t="module"===this.options.sourceType){const e=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=t;const n=this.scope,i=this.getScopeHandler();this.scope=new i(this,t);const a=this.prodParam;this.prodParam=new Gt;const o=this.classScope;this.classScope=new Vt(this);const c=this.expressionScope;return this.expressionScope=new Kt(this),()=>{this.state.labels=e,this.exportedIdentifiers=r,this.inModule=s,this.scope=n,this.prodParam=a,this.classScope=o,this.expressionScope=c}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){const{privateKeyLoc:e}=t;null!==e&&this.expectPlugin("destructuringPrivate",e)}}class Qt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}}class te{constructor(t,e,r){this.type="",this.start=e,this.end=0,this.loc=new n(r),null!=t&&t.options.ranges&&(this.range=[e,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}}const ee=te.prototype;function re(t){const{type:e,start:r,end:s,loc:n,range:i,extra:a,name:o}=t,c=Object.create(ee);return c.type=e,c.start=r,c.end=s,c.loc=n,c.range=i,c.extra=a,c.name=o,"Placeholder"===e&&(c.expectedNode=t.expectedNode),c}ee.__clone=function(){const t=new te(void 0,this.start,this.loc.start),e=Object.keys(this);for(let r=0,s=e.length;r<s;r++){const s=e[r];"leadingComments"!==s&&"trailingComments"!==s&&"innerComments"!==s&&(t[s]=this[s])}return t};class se extends Zt{startNode(){const t=this.state.startLoc;return new te(this,t.index,t)}startNodeAt(t){return new te(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEndLoc)}finishNodeAt(t,e,r){return t.type=e,t.end=r.index,t.loc.end=r,this.options.ranges&&(t.range[1]=r.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,e){t.start=e.index,t.loc.start=e,this.options.ranges&&(t.range[0]=e.index)}resetEndLocation(t,e=this.state.lastTokEndLoc){t.end=e.index,t.loc.end=e,this.options.ranges&&(t.range[1]=e.index)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.loc.start)}}const ne=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ie=y`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:t})=>`Cannot overwrite reserved type ${t}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:t,enumName:e})=>`Boolean enum members need to be initialized. Use either \`${t} = true,\` or \`${t} = false,\` in enum \`${e}\`.`,EnumDuplicateMemberName:({memberName:t,enumName:e})=>`Enum member names need to be unique, but the name \`${t}\` has already been used before in enum \`${e}\`.`,EnumInconsistentMemberValues:({enumName:t})=>`Enum \`${t}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:t,enumName:e})=>`Enum type \`${t}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:t})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:t,memberName:e,explicitType:r})=>`Enum \`${t}\` has type \`${r}\`, so the initializer of \`${e}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:t,memberName:e})=>`Symbol enum members cannot be initialized. Use \`${e},\` in enum \`${t}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:t,memberName:e})=>`The enum member initializer for \`${e}\` needs to be a literal (either a boolean, number, or string) in enum \`${t}\`.`,EnumInvalidMemberName:({enumName:t,memberName:e,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${e}\`, consider using \`${r}\`, in enum \`${t}\`.`,EnumNumberMemberNotInitialized:({enumName:t,memberName:e})=>`Number enum members need to be initialized, e.g. \`${e} = 1\` in enum \`${t}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:t})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${t}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:t})=>`Unexpected reserved type ${t}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:t,suggestion:e})=>`\`declare export ${t}\` is not supported. Use \`${e}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ae(t){return"type"===t.importKind||"typeof"===t.importKind}const oe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},ce=/\*?\s*@((?:no)?flow)\b/,ue={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},le=y`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:t})=>`Expected corresponding JSX closing tag for <${t}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:t,HTMLEntity:e})=>`Unexpected token \`${t}\`. Did you mean \`${e}\` or \`{'${t}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function he(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function pe(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return pe(t.object)+"."+pe(t.property);throw new Error("Node had unexpected type: "+t.type)}class de extends mt{constructor(...t){super(...t),this.tsNames=new Map}}class fe extends yt{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new de(t)}enter(t){256===t&&this.importsStack.push(new Set),super.enter(t)}exit(){const t=super.exit();return 256===t&&this.importsStack.pop(),t}hasImport(t,e){const r=this.importsStack.length;if(this.importsStack[r-1].has(t))return!0;if(!e&&r>1)for(let e=0;e<r-1;e++)if(this.importsStack[e].has(t))return!0;return!1}declareName(t,e,r){if(4096&e)return this.hasImport(t,!0)&&this.parser.raise(g.VarRedeclaration,r,{identifierName:t}),void this.importsStack[this.importsStack.length-1].add(t);const s=this.currentScope();let n=s.tsNames.get(t)||0;if(1024&e)return this.maybeExportDefined(s,t),void s.tsNames.set(t,16|n);super.declareName(t,e,r),2&e&&(1&e||(this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t)),n|=1),256&e&&(n|=2),512&e&&(n|=4),128&e&&(n|=8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,e,r){const s=t.tsNames.get(e);return(2&s)>0?!(256&r)||!!(512&r)!=(4&s)>0:128&r&&(8&s)>0?!!(2&t.names.get(e))&&!!(1&r):!!(2&r&&(1&s)>0)||super.isRedeclaredInScope(t,e,r)}checkLocalExport(t){const{name:e}=t;if(!this.hasImport(e)){for(let t=this.scopeStack.length-1;t>=0;t--){const r=this.scopeStack[t].tsNames.get(e);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(t)}}}const me=t=>"ParenthesizedExpression"===t.type?me(t.expression):t;class ye extends se{toAssignable(t,e=!1){var r,s;let n;switch(("ParenthesizedExpression"===t.type||null!=(r=t.extra)&&r.parenthesized)&&(n=me(t),e?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(g.InvalidParenthesizedAssignment,t):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(g.InvalidParenthesizedAssignment,t):this.raise(g.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let r=0,s=t.properties.length,n=s-1;r<s;r++){var i;const s=t.properties[r],a=r===n;this.toAssignableObjectExpressionProp(s,a,e),a&&"RestElement"===s.type&&null!=(i=t.extra)&&i.trailingCommaLoc&&this.raise(g.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:r,value:s}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,e);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,null==(s=t.extra)?void 0:s.trailingCommaLoc,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(g.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(n,e)}}toAssignableObjectExpressionProp(t,e,r){if("ObjectMethod"===t.type)this.raise("get"===t.kind||"set"===t.kind?g.PatternHasAccessor:g.PatternHasMethod,t.key);else if("SpreadElement"===t.type){t.type="RestElement";const s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,r),e||this.raise(g.RestTrailingComma,t)}else this.toAssignable(t,r)}toAssignableList(t,e,r){const s=t.length-1;for(let n=0;n<=s;n++){const i=t[n];if(i){if("SpreadElement"===i.type){i.type="RestElement";const t=i.argument;this.checkToRestConversion(t,!0),this.toAssignable(t,r)}else this.toAssignable(i,r);"RestElement"===i.type&&(n<s?this.raise(g.RestTrailingComma,i):e&&this.raise(g.RestTrailingComma,e))}}}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{const e=t.properties.length-1;return t.properties.every(((t,r)=>"ObjectMethod"!==t.type&&(r===e||"SpreadElement"!==t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>null===t||this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(const e of t)"ArrayExpression"===(null==e?void 0:e.type)&&this.toReferencedListDeep(e.elements)}parseSpread(t){const e=this.startNode();return this.next(),e.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(e,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,e,r){const s=1&r,n=[];let i=!0;for(;!this.eat(t);)if(i?i=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){if(n.push(this.parseAssignableListItemTypes(this.parseRestBinding(),r)),!this.checkCommaAfterRest(e)){this.expect(t);break}}else{const t=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(g.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());n.push(this.parseAssignableListItem(r,t))}}return n}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){const{type:t,startLoc:e}=this.state;if(21===t)return this.parseBindingRestProperty(this.startNode());const r=this.startNode();return 138===t?(this.expectPlugin("destructuringPrivate",e),this.classScope.usePrivateName(this.state.value,e),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,e,!1,!1,!0,!1)}parseAssignableListItem(t,e){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r,t);const s=this.parseMaybeDefault(r.loc.start,r);return e.length&&(r.decorators=e),s}parseAssignableListItemTypes(t,e){return t}parseMaybeDefault(t,e){var r;if(null!=t||(t=this.state.startLoc),e=null!=(r=e)?r:this.parseBindingAtom(),!this.eat(29))return e;const s=this.startNodeAt(t);return s.left=e,s.right=this.parseMaybeAssignAllowIn(),this.finishNode(s,"AssignmentPattern")}isValidLVal(t,e,r){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return"OptionalMemberExpression"===t.type}checkLVal(t,e,r=64,s=!1,n=!1,i=!1){var a;const o=t.type;if(this.isObjectMethod(t))return;const c=this.isOptionalMemberExpression(t);if(c||"MemberExpression"===o)return c&&(this.expectPlugin("optionalChainingAssign",t.loc.start),"AssignmentExpression"!==e.type&&this.raise(g.InvalidLhsOptionalChaining,t,{ancestor:e})),void(64!==r&&this.raise(g.InvalidPropertyBindingPattern,t));if("Identifier"===o){this.checkIdentifier(t,r,n);const{name:e}=t;return void(s&&(s.has(e)?this.raise(g.ParamDupe,t):s.add(e)))}const u=this.isValidLVal(o,!(i||null!=(a=t.extra)&&a.parenthesized)&&"AssignmentExpression"===e.type,r);if(!0===u)return;if(!1===u){const s=64===r?g.InvalidLhs:g.InvalidLhsBinding;return void this.raise(s,t,{ancestor:e})}let l,h;"string"==typeof u?(l=u,h="ParenthesizedExpression"===o):[l,h]=u;const p="ArrayPattern"===o||"ObjectPattern"===o?{type:o}:e,d=t[l];if(Array.isArray(d))for(const t of d)t&&this.checkLVal(t,p,r,s,n,h);else d&&this.checkLVal(d,p,r,s,n,h)}checkIdentifier(t,e,r=!1){this.state.strict&&(r?dt(t.name,this.inModule):pt(t.name))&&(64===e?this.raise(g.StrictEvalArguments,t,{referenceName:t.name}):this.raise(g.StrictEvalArgumentsBinding,t,{bindingName:t.name})),8192&e&&"let"===t.name&&this.raise(g.LetInLexicalBinding,t),64&e||this.declareNameFromIdentifier(t,e)}declareNameFromIdentifier(t,e){this.scope.declareName(t.name,e,t.loc.start)}checkToRestConversion(t,e){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,e);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(e)break;default:this.raise(g.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===t?g.RestTrailingComma:g.ElementAfterRest,this.state.startLoc),!0)}}function ge(t){if(!t)throw new Error("Assert fail")}const ve=y`typescript`({AbstractMethodHasImplementation:({methodName:t})=>`Method '${t}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:t})=>`Property '${t}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:t})=>`'declare' is not allowed in ${t}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:t})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:t})=>`Duplicate modifier: '${t}'.`,EmptyHeritageClauseType:({token:t})=>`'${t}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:t})=>`'${t[0]}' modifier cannot be used with '${t[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:t})=>`Index signatures cannot have an accessibility modifier ('${t}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:({modifier:t})=>`'${t}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:t})=>`'${t}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:t})=>`'${t}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:t})=>`'${t[0]}' modifier must precede '${t[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:t})=>`Private elements cannot have an accessibility modifier ('${t}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:t})=>`Single type parameter ${t} should have a trailing comma. Example usage: <${t},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:t})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${t}.`});function xe(t){return"private"===t||"public"===t||"protected"===t}function be(t){return"in"===t||"out"===t}function we(t){if("MemberExpression"!==t.type)return!1;const{computed:e,property:r}=t;return(!e||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Se(t.object)}function Pe(t,e){var r;const{type:s}=t;if(null!=(r=t.extra)&&r.parenthesized)return!1;if(e){if("Literal"===s){const{value:e}=t;if("string"==typeof e||"boolean"==typeof e)return!0}}else if("StringLiteral"===s||"BooleanLiteral"===s)return!0;return!(!Te(t,e)&&!function(t,e){if("UnaryExpression"===t.type){const{operator:r,argument:s}=t;if("-"===r&&Te(s,e))return!0}return!1}(t,e))||"TemplateLiteral"===s&&0===t.expressions.length||!!we(t)}function Te(t,e){return e?"Literal"===t.type&&("number"==typeof t.value||"bigint"in t):"NumericLiteral"===t.type||"BigIntLiteral"===t.type}function Se(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&Se(t.object)}const _e=y`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Ae=["minimal","fsharp","hack","smart"],ke=["^^","@@","^","%","#"],Ee={estree:t=>class extends t{parse(){const t=b(super.parse());return this.options.tokens&&(t.tokens=t.tokens.map(b)),t}parseRegExpLiteral({pattern:t,flags:e}){let r=null;try{r=new RegExp(t,e)}catch(t){}const s=this.estreeParseLiteral(r);return s.regex={pattern:t,flags:e},s}parseBigIntLiteral(t){let e;try{e=BigInt(t)}catch(t){e=null}const r=this.estreeParseLiteral(e);return r.bigint=String(r.value||t),r}parseDecimalLiteral(t){const e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}directiveToStmt(t){const e=t.value;delete t.value,e.type="Literal",e.raw=e.extra.raw,e.value=e.extra.expressionValue;const r=t;return r.type="ExpressionStatement",r.expression=e,r.directive=e.extra.rawValue,delete e.extra,r}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){null!=t&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null!=(e=t.expression.extra)&&e.parenthesized)}parseBlockBody(t,e,r,s,n){super.parseBlockBody(t,e,r,s,n);const i=t.directives.map((t=>this.directiveToStmt(t)));t.body=i.concat(t.body),delete t.directives}pushClassMethod(t,e,r,s,n,i){this.parseMethod(e,r,s,n,i,"ClassMethod",!0),e.typeParameters&&(e.value.typeParameters=e.typeParameters,delete e.typeParameters),t.body.push(e)}parsePrivateName(){const t=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(t):t}convertPrivateNameToPrivateIdentifier(t){const e=super.getPrivateNameSV(t);return delete t.id,t.name=e,t.type="PrivateIdentifier",t}isPrivateName(t){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===t.type:super.isPrivateName(t)}getPrivateNameSV(t){return this.getPluginOption("estree","classFeatures")?t.name:super.getPrivateNameSV(t)}parseLiteral(t,e){const r=super.parseLiteral(t,e);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(t,e,r=!1){super.parseFunctionBody(t,e,r),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,r,s,n,i,a=!1){let o=this.startNode();return o.kind=t.kind,o=super.parseMethod(o,e,r,s,n,i,a),o.type="FunctionExpression",delete o.kind,t.value=o,"ClassPrivateMethod"===i&&(t.computed=!1),this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return"Literal"===t.type?"constructor"===t.value:super.nameIsConstructor(t)}parseClassProperty(...t){const e=super.parseClassProperty(...t);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}parseClassPrivateProperty(...t){const e=super.parseClassPrivateProperty(...t);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}parseObjectMethod(t,e,r,s,n){const i=super.parseObjectMethod(t,e,r,s,n);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(t,e,r,s){const n=super.parseObjectProperty(t,e,r,s);return n&&(n.kind="init",n.type="Property"),n}isValidLVal(t,e,r){return"Property"===t?"value":super.isValidLVal(t,e,r)}isAssignable(t,e){return null!=t&&this.isObjectProperty(t)?this.isAssignable(t.value,e):super.isAssignable(t,e)}toAssignable(t,e=!1){if(null!=t&&this.isObjectProperty(t)){const{key:r,value:s}=t;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,e)}else super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,e,r){"Property"!==t.type||"get"!==t.kind&&"set"!==t.kind?"Property"===t.type&&t.method?this.raise(g.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,e,r):this.raise(g.PatternHasAccessor,t.key)}finishCallExpression(t,e){const r=super.finishCallExpression(t,e);var s,n;"Import"===r.callee.type&&(r.type="ImportExpression",r.source=r.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null!=(s=r.arguments[1])?s:null,r.attributes=null!=(n=r.arguments[1])?n:null),delete r.arguments,delete r.callee);return r}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t,e){const r=this.state.lastTokStartLoc,s=super.parseExport(t,e);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":1===s.specifiers.length&&"ExportNamespaceSpecifier"===s.specifiers[0].type&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var n;const{declaration:t}=s;"ClassDeclaration"===(null==t?void 0:t.type)&&(null==(n=t.decorators)?void 0:n.length)>0&&t.start===s.start&&this.resetStartLocation(s,r)}}return s}parseSubscript(t,e,r,s){const n=super.parseSubscript(t,e,r,s);if(s.optionalChainMember){if("OptionalMemberExpression"!==n.type&&"OptionalCallExpression"!==n.type||(n.type=n.type.substring(8)),s.stop){const t=this.startNodeAtNode(n);return t.expression=n,this.finishNode(t,"ChainExpression")}}else"MemberExpression"!==n.type&&"CallExpression"!==n.type||(n.optional=!1);return n}isOptionalMemberExpression(t){return"ChainExpression"===t.type?"MemberExpression"===t.expression.type:super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return"ChainExpression"===t.type&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return"Property"===t.type&&"init"===t.kind&&!t.method}isObjectMethod(t){return"Property"===t.type&&(t.method||"get"===t.kind||"set"===t.kind)}finishNodeAt(t,e,r){return b(super.finishNodeAt(t,e,r))}resetStartLocation(t,e){super.resetStartLocation(t,e),b(t)}resetEndLocation(t,e=this.state.lastTokEndLoc){super.resetEndLocation(t,e),b(t)}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(le.UnterminatedJsxContent,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(r)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(141,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:_t(r)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){const e=this.input.charCodeAt(this.state.pos);let r;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=t?"\n":"\r\n"):r=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(t){let e="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(g.UnterminatedString,this.state.startLoc);const s=this.input.charCodeAt(this.state.pos);if(s===t)break;38===s?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos):_t(s)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}e+=this.input.slice(r,this.state.pos++),this.finishToken(133,e)}jsxReadEntity(){const t=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);const e=this.readInt(t,void 0,!1,"bail");if(null!==e&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(e)}else{let e=0,r=!1;for(;e++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){const e=this.input.slice(t,this.state.pos),r=ue[e];if(++this.state.pos,r)return r}}return this.state.pos=t,"&"}jsxReadWord(){let t;const e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(at(t)||45===t);this.finishToken(140,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){const t=this.startNode();return this.match(140)?t.name=this.state.value:$(this.state.type)?t.name=K(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){const t=this.state.startLoc,e=this.jsxParseIdentifier();if(!this.eat(14))return e;const r=this.startNodeAt(t);return r.namespace=e,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const t=this.state.startLoc;let e=this.jsxParseNamespacedName();if("JSXNamespacedName"===e.type)return e;for(;this.eat(16);){const r=this.startNodeAt(t);r.object=e,r.property=this.jsxParseIdentifier(),e=this.finishNode(r,"JSXMemberExpression")}return e}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(P.brace),this.next(),t=this.jsxParseExpressionContainer(t,P.j_oTag),"JSXEmptyExpression"===t.expression.type&&this.raise(le.AttributeIsEmpty,t),t;case 142:case 133:return this.parseExprAtom();default:throw this.raise(le.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(P.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,e){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{const e=this.parseExpression();t.expression=e}return this.setContext(e),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){const t=this.startNode();return this.match(5)?(this.setContext(P.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(P.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){const e=this.startNodeAt(t);return this.eat(143)?this.finishNode(e,"JSXOpeningFragment"):(e.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(e))}jsxParseOpeningElementAfterName(t){const e=[];for(;!this.match(56)&&!this.match(143);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(56),this.expect(143),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){const e=this.startNodeAt(t);return this.eat(143)?this.finishNode(e,"JSXClosingFragment"):(e.name=this.jsxParseElementName(),this.expect(143),this.finishNode(e,"JSXClosingElement"))}jsxParseElementAt(t){const e=this.startNodeAt(t),r=[],s=this.jsxParseOpeningElementAt(t);let n=null;if(!s.selfClosing){t:for(;;)switch(this.state.type){case 142:if(t=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(t);break t}r.push(this.jsxParseElementAt(t));break;case 141:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const t=this.startNode();this.setContext(P.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(t)):r.push(this.jsxParseExpressionContainer(t,P.j_expr));break}default:this.unexpected()}he(s)&&!he(n)&&null!==n?this.raise(le.MissingClosingTagFragment,n):!he(s)&&he(n)?this.raise(le.MissingClosingTagElement,n,{openingTagName:pe(s.name)}):he(s)||he(n)||pe(n.name)!==pe(s.name)&&this.raise(le.MissingClosingTagElement,n,{openingTagName:pe(s.name)})}if(he(s)?(e.openingFragment=s,e.closingFragment=n):(e.openingElement=s,e.closingElement=n),e.children=r,this.match(47))throw this.raise(le.UnwrappedAdjacentJSXElements,this.state.startLoc);return he(s)?this.finishNode(e,"JSXFragment"):this.finishNode(e,"JSXElement")}jsxParseElement(){const t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){const{context:e}=this.state;e[e.length-1]=t}parseExprAtom(t){return this.match(142)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){const e=this.curContext();if(e!==P.j_expr){if(e===P.j_oTag||e===P.j_cTag){if(it(t))return void this.jsxReadWord();if(62===t)return++this.state.pos,void this.finishToken(143);if((34===t||39===t)&&e===P.j_oTag)return void this.jsxReadString(t)}if(60===t&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(142);super.getTokenFromCode(t)}else this.jsxReadToken()}updateContext(t){const{context:e,type:r}=this.state;if(56===r&&142===t)e.splice(-2,2,P.j_cTag),this.state.canStartJSXElement=!1;else if(142===r)e.push(P.j_oTag);else if(143===r){const r=e[e.length-1];r===P.j_oTag&&56===t||r===P.j_cTag?(e.pop(),this.state.canStartJSXElement=e[e.length-1]===P.j_expr):(this.setContext(P.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=F[r]}},flow:t=>class extends t{constructor(...t){super(...t),this.flowPragma=void 0}getScopeHandler(){return vt}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(t,e){133!==t&&13!==t&&28!==t&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){const e=ce.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else{if("noflow"!==e[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(t)}flowParseTypeInitialiser(t){const e=this.state.inType;this.state.inType=!0,this.expect(t||14);const r=this.flowParseType();return this.state.inType=e,r}flowParsePredicate(){const t=this.startNode(),e=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>e.index+1&&this.raise(ie.UnexpectedSpaceBetweenModuloChecks,e),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(14);let e=null,r=null;return this.match(54)?(this.state.inType=t,r=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(54)&&(r=this.flowParsePredicate())),[e,r]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),r=this.startNode(),s=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);const n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11),[r.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){return this.match(80)?this.flowParseDeclareClass(t):this.match(68)?this.flowParseDeclareFunction(t):this.match(74)?this.flowParseDeclareVariable(t):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(t):(e&&this.raise(ie.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t)):this.isContextual(130)?this.flowParseDeclareTypeAlias(t):this.isContextual(131)?this.flowParseDeclareOpaqueType(t):this.isContextual(129)?this.flowParseDeclareInterface(t):this.match(82)?this.flowParseDeclareExportDeclaration(t,e):void this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(133)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),r=e.body=[];for(this.expect(5);!this.match(8);){let t=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(ie.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(t)):(this.expectContextual(125,ie.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),r.push(t)}this.scope.exit(),this.expect(8),this.finishNode(e,"BlockStatement");let s=null,n=!1;return r.forEach((t=>{!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(n&&this.raise(ie.DuplicateDeclareModuleExports,t),"ES"===s&&this.raise(ie.AmbiguousDeclareModuleKind,t),s="CommonJS",n=!0):("CommonJS"===s&&this.raise(ie.AmbiguousDeclareModuleKind,t),s="ES")})),t.kind=s||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!e){const t=this.state.value;throw this.raise(ie.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:t,suggestion:oe[t]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(t=this.parseExport(t,null)).type&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t):void this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();const e=this.flowParseTypeAlias(t);return e.type="DeclareTypeAlias",e}flowParseDeclareOpaqueType(t){this.next();const e=this.flowParseOpaqueType(t,!0);return e.type="DeclareOpaqueType",e}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,e){if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(12));if(e){if(t.implements=[],t.mixins=[],this.eatContextual(117))do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){const t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(ie.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,e,r){ne.has(t)&&this.raise(r?ie.AssignReservedType:ie.UnexpectedReservedType,e,{reservedType:t})}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.startLoc,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){const e=this.state.startLoc,r=this.startNode(),s=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=s,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):t&&this.raise(ie.MissingTypeParamDefault,e),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let r=!1;do{const t=this.flowParseTypeParameter(r);e.params.push(t),t.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expect(47);const r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=r,this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){const t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,r){return t.static=e,14===this.lookahead().type?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=r,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const r=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(r),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:r,allowProto:s,allowInexact:n}){const i=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,c;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let u=!1;for(e&&this.match(6)?(this.expect(6),o=9,c=!0):(this.expect(5),o=8,c=!1),a.exact=c;!this.match(o);){let e=!1,i=null,o=null;const l=this.startNode();if(s&&this.isContextual(118)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),i=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),e=!0)}const h=this.flowParseVariance();if(this.eat(0))null!=i&&this.unexpected(i),this.eat(0)?(h&&this.unexpected(h.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(l,e))):a.indexers.push(this.flowParseObjectTypeIndexer(l,e,h));else if(this.match(10)||this.match(47))null!=i&&this.unexpected(i),h&&this.unexpected(h.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(l,e));else{let t="init";(this.isContextual(99)||this.isContextual(104))&&z(this.lookahead().type)&&(t=this.state.value,this.next());const s=this.flowParseObjectTypeProperty(l,e,i,h,t,r,null!=n?n:!c);null===s?(u=!0,o=this.state.lastTokStartLoc):a.properties.push(s)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(ie.UnexpectedExplicitInexactInObject,o)}this.expect(o),r&&(a.inexact=u);const l=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=i,l}flowParseObjectTypeProperty(t,e,r,s,n,i,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(i?a||this.raise(ie.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ie.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(ie.InexactVariance,s),null):(i||this.raise(ie.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),s&&this.raise(ie.SpreadVariance,s),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=r,t.kind=n;let a=!1;return this.match(47)||this.match(10)?(t.method=!0,null!=r&&this.unexpected(r),s&&this.unexpected(s.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(t),!i&&"constructor"===t.key.name&&t.value.this&&this.raise(ie.ThisParamBannedInConstructor,t.value.this)):("init"!==n&&this.unexpected(),t.method=!1,this.eat(17)&&(a=!0),t.value=this.flowParseTypeInitialiser(),t.variance=s),t.optional=a,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,r=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise("get"===t.kind?ie.GetterMayNotHaveThisParam:ie.SetterMayNotHaveThisParam,t.value.this),r!==e&&this.raise("get"===t.kind?g.BadGetterArity:g.BadSetterArity,t),"set"===t.kind&&t.value.rest&&this.raise(g.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e){null!=t||(t=this.state.startLoc);let r=e||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const e=this.startNodeAt(t);e.qualification=r,e.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(e,"QualifiedTypeIdentifier")}return r}flowParseGenericType(t,e){const r=this.startNodeAt(t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(t,e),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let e=null,r=!1,s=null;const n=this.startNode(),i=this.lookahead(),a=78===this.state.type;return 14===i.type||17===i.type?(a&&!t&&this.raise(ie.ThisParamMustBeFirst,n),e=this.parseIdentifier(a),this.eat(17)&&(r=!0,a&&this.raise(ie.ThisParamMayNotBeOptional,n)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),n.name=e,n.optional=r,n.typeAnnotation=s,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){const e=this.startNodeAt(t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let e=null,r=null;for(this.match(78)&&(r=this.flowParseFunctionTypeParam(!0),r.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e=this.flowParseFunctionTypeParam(!1)),{params:t,rest:e,_this:r}}flowIdentToTypeAnnotation(t,e,r){switch(r.name){case"any":return this.finishNode(e,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(e,"BooleanTypeAnnotation");case"mixed":return this.finishNode(e,"MixedTypeAnnotation");case"empty":return this.finishNode(e,"EmptyTypeAnnotation");case"number":return this.finishNode(e,"NumberTypeAnnotation");case"string":return this.finishNode(e,"StringTypeAnnotation");case"symbol":return this.finishNode(e,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(t,r)}}flowParsePrimaryType(){const t=this.state.startLoc,e=this.startNode();let r,s,n=!1;const i=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=i,s;case 47:{const t=this.startNode();return t.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),r=this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),this.finishNode(t,"FunctionTypeAnnotation")}case 10:{const t=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(H(this.state.type)||this.match(78)){const t=this.lookahead().type;n=17!==t&&14!==t}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=i,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),s;this.eat(12)}return r=s?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):this.flowParseFunctionTypeParams(),t.params=r.params,t.rest=r.rest,t.this=r._this,this.expect(11),this.expect(19),t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return e.value=this.match(85),this.next(),this.finishNode(e,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",e);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",e);throw this.raise(ie.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(e,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(e,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(e,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(e,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if($(this.state.type)){const t=K(this.state.type);return this.next(),super.createIdentifier(e,t)}if(H(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,e,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const t=this.state.startLoc;let e=this.flowParsePrimaryType(),r=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const s=this.startNodeAt(t),n=this.eat(18);r=r||n,this.expect(0),!n&&this.match(3)?(s.elementType=e,this.next(),e=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=e,s.indexType=this.flowParseType(),this.expect(3),r?(s.optional=n,e=this.finishNode(s,"OptionalIndexedAccessType")):e=this.finishNode(s,"IndexedAccessType"))}return e}flowParsePrefixType(){const t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const e=this.startNodeAt(t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.this=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){const t=this.startNode();this.eat(45);const e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){const t=this.startNode();this.eat(43);const e=this.flowParseIntersectionType();for(t.types=[e];this.eat(43);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){const t=this.state.inType;this.state.inType=!0;const e=this.flowParseUnionType();return this.state.inType=t,e}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const t=this.state.startLoc,e=this.parseIdentifier();return this.flowParseGenericType(t,e)}return this.flowParseType()}flowParseTypeAnnotation(){const t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){const e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,e,r=!1){e?this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,r))):super.parseFunctionBody(t,!1,r)}parseFunctionBodyAndFinish(t,e,r=!1){if(this.match(14)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,e,r)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){if(W(this.lookahead().type)){const t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.shouldParseEnums()&&this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}const e=super.parseStatementLike(t);return void 0!==this.flowPragma||this.isValidDirective(e)||(this.flowPragma=null),e}parseExpressionStatement(t,e,r){if("Identifier"===e.type)if("declare"===e.name){if(this.match(80)||H(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(H(this.state.type)){if("interface"===e.name)return this.flowParseInterface(t);if("type"===e.name)return this.flowParseTypeAlias(t);if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}return super.parseExpressionStatement(t,e,r)}shouldParseExportDeclaration(){const{type:t}=this.state;return q(t)||this.shouldParseEnums()&&126===t?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:t}=this.state;return q(t)||this.shouldParseEnums()&&126===t?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,r){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){const e=this.lookaheadCharCode();if(44===e||61===e||58===e||41===e)return this.setOptionalParametersError(r),t}this.expect(17);const s=this.state.clone(),n=this.state.noArrowAt,i=this.startNodeAt(e);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[c,u]=this.getArrowLikeExpressions(a);if(o||u.length>0){const t=[...n];if(u.length>0){this.state=s,this.state.noArrowAt=t;for(let e=0;e<u.length;e++)t.push(u[e].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[c,u]=this.getArrowLikeExpressions(a)}o&&c.length>1&&this.raise(ie.AmbiguousConditionalArrow,s.startLoc),o&&1===c.length&&(this.state=s,t.push(c[0].start),this.state.noArrowAt=t,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=n,this.expect(14),i.test=t,i.consequent=a,i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(i,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const t=this.parseMaybeAssignAllowIn(),e=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const r=[t],s=[];for(;0!==r.length;){const t=r.pop();"ArrowFunctionExpression"===t.type&&"BlockStatement"!==t.body.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):s.push(t),r.push(t.body)):"ConditionalExpression"===t.type&&(r.push(t.consequent),r.push(t.alternate))}return e?(s.forEach((t=>this.finishArrowValidation(t))),[s,[]]):function(t,e){const r=[],s=[];for(let n=0;n<t.length;n++)(e(t[n])?r:s).push(t[n]);return[r,s]}(s,(t=>t.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let r;return this.state.noArrowParamsConversionAt.includes(t.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=e(),this.state.noArrowParamsConversionAt.pop()):r=e(),r}parseParenItem(t,e){const r=super.parseParenItem(t,e);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){const t=this.startNodeAt(e);return t.expression=r,t.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(t,"TypeCastExpression")}return r}assertModuleNodeAllowed(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";const e=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual(131)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual(129)){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseInterface(e)}if(this.shouldParseEnums()&&this.isContextual(126)){t.exportKind="value";const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDeclaration(t)}eatExportStar(t){return!!super.eatExportStar(t)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const{startLoc:e}=this.state,r=super.maybeParseExportNamespaceSpecifier(t);return r&&"type"===t.exportKind&&this.unexpected(e),r}parseClassId(t,e,r){super.parseClassId(t,e,r),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,r){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,r),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type&&"PropertyDefinition"!==e.type?this.raise(ie.DeclareClassElement,s):e.value&&this.raise(ie.DeclareClassFieldInitializer,e.value))}isIterator(t){return"iterator"===t||"asyncIterator"===t}readIterator(){const t=super.readWord1(),e="@@"+t;this.isIterator(t)&&this.state.inType||this.raise(g.InvalidIdentifier,this.state.curPosition(),{identifierName:e}),this.finishToken(132,e)}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);123===t&&124===e?this.finishOp(6,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?46===e?this.finishOp(18,2):this.finishOp(17,1):function(t,e,r){return 64===t&&64===e&&it(r)}(t,e,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t):this.finishOp(62===t?48:47,1)}isAssignable(t,e){return"TypeCastExpression"===t.type?this.isAssignable(t.expression,e):super.isAssignable(t,e)}toAssignable(t,e=!1){e||"AssignmentExpression"!==t.type||"TypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,e)}toAssignableList(t,e,r){for(let e=0;e<t.length;e++){const r=t[e];"TypeCastExpression"===(null==r?void 0:r.type)&&(t[e]=this.typeCastToParameter(r))}super.toAssignableList(t,e,r)}toReferencedList(t,e){for(let s=0;s<t.length;s++){var r;const n=t[s];!n||"TypeCastExpression"!==n.type||null!=(r=n.extra)&&r.parenthesized||!(t.length>1)&&e||this.raise(ie.TypeCastInPattern,n.typeAnnotation)}return t}parseArrayLike(t,e,r,s){const n=super.parseArrayLike(t,e,r,s);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(t,e,r){return"TypeCastExpression"===t||super.isValidLVal(t,e,r)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,r,s,n,i){if(e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,r,s,n,i),e.params&&n){const t=e.params;t.length>0&&this.isThisParam(t[0])&&this.raise(ie.ThisParamBannedInConstructor,e)}else if("MethodDefinition"===e.type&&n&&e.value.params){const t=e.value.params;t.length>0&&this.isThisParam(t[0])&&this.raise(ie.ThisParamBannedInConstructor,e)}}pushClassPrivateMethod(t,e,r,s){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,r,s)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&this.match(47)&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();const e=t.implements=[];do{const t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);const e=this.getObjectOrClassMethodParams(t);if(e.length>0){const r=e[0];this.isThisParam(r)&&"get"===t.kind?this.raise(ie.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(ie.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,e,r,s,n,i,a){let o;t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&!i&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(t,e,r,s,n,i,a);return o&&((c.value||c).typeParameters=o),c}parseAssignableListItemTypes(t){return this.eat(17)&&("Identifier"!==t.type&&this.raise(ie.PatternIsOptional,t),this.isThisParam(t)&&this.raise(ie.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(ie.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(ie.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,e){const r=super.parseMaybeDefault(t,e);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(ie.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(ie.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,e,r){e.local=ae(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;const e=this.lookaheadCharCode();return 123===e||42===e}return!t&&this.isContextual(87)}applyImportPhase(t,e,r,s){if(super.applyImportPhase(t,e,r,s),e){if(!r&&this.match(65))return;t.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),t.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(t,e,r,s,n){const i=t.imported;let a=null;"Identifier"===i.type&&("type"===i.name?a="type":"typeof"===i.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const e=this.parseIdentifier(!0);null===a||W(this.state.type)?(t.imported=i,t.importKind=null,t.local=this.parseIdentifier()):(t.imported=e,t.importKind=a,t.local=re(e))}else{if(null!==a&&W(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=a;else{if(e)throw this.raise(g.ImportBindingIsString,t,{importName:i.value});t.imported=i,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(o=!0,t.local=re(t.imported))}const c=ae(t);return r&&c&&this.raise(ie.ImportTypeShorthandOnlyInPureImport,t),(r||c)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),!o||r||c||this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,e){const r=t.kind;"get"!==r&&"set"!==r&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(14)){const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e){var r;let s,n=null;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(n=this.state.clone(),s=this.tryParse((()=>super.parseMaybeAssign(t,e)),n),!s.error)return s.node;const{context:r}=this.state,i=r[r.length-1];i!==P.j_oTag&&i!==P.j_expr||r.pop()}if(null!=(r=s)&&r.error||this.match(47)){var i,a;let r;n=n||this.state.clone();const o=this.tryParse((s=>{var n;r=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(r,(()=>{const s=super.parseMaybeAssign(t,e);return this.resetStartLocationFromNode(s,r),s}));null!=(n=i.extra)&&n.parenthesized&&s();const a=this.maybeUnwrapTypeCastExpression(i);return"ArrowFunctionExpression"!==a.type&&s(),a.typeParameters=r,this.resetStartLocationFromNode(a,r),i}),n);let c=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(ie.UnexpectedTypeParameterBeforeAsyncArrowFunction,r),o.node;c=o.node}if(null!=(i=s)&&i.node)return this.state=s.failState,s.node;if(c)return this.state=o.failState,c;if(null!=(a=s)&&a.thrown)throw s.error;if(o.thrown)throw o.error;throw this.raise(ie.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,e){this.state.noArrowParamsConversionAt.includes(t.start)?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,r,s=!0){if(!r||!this.state.noArrowParamsConversionAt.includes(t.start)){for(let e=0;e<t.params.length;e++)this.isThisParam(t.params[e])&&e>0&&this.raise(ie.ThisParamMustBeFirst,t.params[e]);super.checkParams(t,e,r,s)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(t,e,r){if("Identifier"===t.type&&"async"===t.name&&this.state.noArrowAt.includes(e.index)){this.next();const r=this.startNodeAt(e);r.callee=t,r.arguments=super.parseCallExpressionArguments(11,!1),t=this.finishNode(r,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.match(47)){const s=this.state.clone(),n=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e)||t()),s);if(!n.error&&!n.aborted)return n.node;const i=this.tryParse((()=>super.parseSubscripts(t,e,r)),s);if(i.node&&!i.error)return i.node;if(n.node)return this.state=n.failState,n.node;if(i.node)return this.state=i.failState,i.node;throw n.error||i.error}return super.parseSubscripts(t,e,r)}parseSubscript(t,e,r,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,r)return s.stop=!0,t;this.next();const n=this.startNodeAt(e);return n.callee=t,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),n.arguments=this.parseCallExpressionArguments(11,!1),n.optional=!0,this.finishCallExpression(n,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){const r=this.startNodeAt(e);r.callee=t;const n=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),r.arguments=super.parseCallExpressionArguments(11,!1),s.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,s.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(t,e,r,s)}parseNewCallee(t){super.parseNewCallee(t);let e=null;this.shouldParseTypes()&&this.match(47)&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e}parseAsyncArrowWithTypeParameters(t){const e=this.startNodeAt(t);if(this.parseFunctionParams(e,!1),this.parseArrow(e))return super.parseArrowExpression(e,void 0,!0)}readToken_mult_modulo(t){const e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(t)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);124!==t||125!==e?super.readToken_pipe_amp(t):this.finishOp(9,2)}parseTopLevel(t,e){const r=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(ie.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(ie.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:t}=this.state;let e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;const r=this.input.charCodeAt(e+t),s=this.input.charCodeAt(e+t+1);return 58===r&&58===s?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===r&&58!==s&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(g.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:r}){this.raise(ie.EnumBooleanMemberNotInitialized,t,{memberName:r,enumName:e})}flowEnumErrorInvalidMemberInitializer(t,e){return this.raise(e.explicitType?"symbol"===e.explicitType?ie.EnumInvalidMemberInitializerSymbolType:ie.EnumInvalidMemberInitializerPrimaryType:ie.EnumInvalidMemberInitializerUnknownType,t,e)}flowEnumErrorNumberMemberNotInitialized(t,e){this.raise(ie.EnumNumberMemberNotInitialized,t,e)}flowEnumErrorStringMemberInconsistentlyInitialized(t,e){this.raise(ie.EnumStringMemberInconsistentlyInitialized,t,e)}flowEnumMemberInit(){const t=this.state.startLoc,e=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{const r=this.parseNumericLiteral(this.state.value);return e()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}case 133:{const r=this.parseStringLiteral(this.state.value);return e()?{type:"string",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}case 85:case 86:{const r=this.parseBooleanLiteral(this.match(85));return e()?{type:"boolean",loc:r.loc.start,value:r}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){const t=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t}}}flowEnumCheckExplicitTypeMismatch(t,e,r){const{explicitType:s}=e;null!==s&&s!==r&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){const r=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}const i=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),c=a.name;if(""===c)continue;/^[a-z]/.test(c)&&this.raise(ie.EnumInvalidMemberName,a,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:t}),r.has(c)&&this.raise(ie.EnumDuplicateMemberName,a,{memberName:c,enumName:t}),r.add(c);const u={enumName:t,explicitType:e,memberName:c};switch(i.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,u,"boolean"),i.init=o.value,s.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,u,"number"),i.init=o.value,s.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,u,"string"),i.init=o.value,s.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,u);case"none":switch(e){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,u);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,u);break;default:s.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:n}}flowEnumStringMembers(t,e,{enumName:r}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r});return e}for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r});return t}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!H(this.state.type))throw this.raise(ie.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});const{value:e}=this.state;return this.next(),"boolean"!==e&&"number"!==e&&"string"!==e&&"symbol"!==e&&this.raise(ie.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:e}),e}flowEnumBody(t,e){const r=e.name,s=e.loc.start,n=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:i,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:n});switch(t.hasUnknownMembers=a,n){case"boolean":return t.explicitType=!0,t.members=i.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=i.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=i.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{const e=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const n=i.booleanMembers.length,a=i.numberMembers.length,o=i.stringMembers.length,c=i.defaultedMembers.length;if(n||a||o||c){if(n||a){if(!a&&!o&&n>=c){for(const t of i.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(t.loc.start,{enumName:r,memberName:t.id.name});return t.members=i.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}if(!n&&!o&&a>=c){for(const t of i.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(t.loc.start,{enumName:r,memberName:t.id.name});return t.members=i.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}return this.raise(ie.EnumInconsistentMemberValues,s,{enumName:r}),e()}return t.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(t,"EnumStringBody")}return e()}}}flowParseEnumDeclaration(t){const e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),e),this.finishNode(t,"EnumDeclaration")}isLookaheadToken_lt(){const t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){const e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{constructor(...t){super(...t),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ve.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ve.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ve.InvalidModifierOnTypeParameter})}getScopeHandler(){return fe}tsIsIdentifier(){return H(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,e){if(!H(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(t.includes(r)){if(e&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:e,stopOnStartOfClassStaticBlock:r,errorTemplate:s=ve.InvalidModifierOnTypeMember},n){const i=(t,e,r,s)=>{e===r&&n[s]&&this.raise(ve.InvalidModifiersOrder,t,{orderedModifiers:[r,s]})},a=(t,e,r,s)=>{(n[r]&&e===s||n[s]&&e===r)&&this.raise(ve.IncompatibleModifiers,t,{modifiers:[r,s]})};for(;;){const{startLoc:o}=this.state,c=this.tsParseModifier(t.concat(null!=e?e:[]),r);if(!c)break;xe(c)?n.accessibility?this.raise(ve.DuplicateAccessibilityModifier,o,{modifier:c}):(i(o,c,c,"override"),i(o,c,c,"static"),i(o,c,c,"readonly"),n.accessibility=c):be(c)?(n[c]&&this.raise(ve.DuplicateModifier,o,{modifier:c}),n[c]=!0,i(o,c,"in","out")):(hasOwnProperty.call(n,c)?this.raise(ve.DuplicateModifier,o,{modifier:c}):(i(o,c,"static","readonly"),i(o,c,"static","override"),i(o,c,"override","readonly"),i(o,c,"abstract","override"),a(o,c,"declare","override"),a(o,c,"static","abstract")),n[c]=!0),null!=e&&e.includes(c)&&this.raise(s,o,{modifier:c})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,e){const r=[];for(;!this.tsIsListTerminator(t);)r.push(e());return r}tsParseDelimitedList(t,e,r){return function(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}(this.tsParseDelimitedListWorker(t,e,!0,r))}tsParseDelimitedListWorker(t,e,r,s){const n=[];let i=-1;for(;!this.tsIsListTerminator(t);){i=-1;const s=e();if(null==s)return;if(n.push(s),!this.eat(12)){if(this.tsIsListTerminator(t))break;return void(r&&this.expect(12))}i=this.state.lastTokStartLoc.index}return s&&(s.value=i),n}tsParseBracketedList(t,e,r,s,n){s||(r?this.expect(0):this.expect(47));const i=this.tsParseDelimitedList(t,e,n);return r?this.expect(3):this.expect(48),i}tsParseImportType(){const t=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(ve.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName()),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t=!0){let e=this.parseIdentifier(t);for(;this.eat(16);){const r=this.startNodeAtNode(e);r.left=e,r.right=this.parseIdentifier(t),e=this.finishNode(r,"TSQualifiedName")}return e}tsParseTypeReference(){const t=this.startNode();return t.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();const e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){const t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){const t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(t){const e=this.startNode();return t(e),e.name=this.tsParseTypeParameterName(),e.constraint=this.tsEatThenParseType(81),e.default=this.tsEatThenParseType(29),this.finishNode(e,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){const e=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();const r={value:-1};return e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,r),0===e.params.length&&this.raise(ve.EmptyTypeParameters,e),-1!==r.value&&this.addExtra(e,"trailingComma",r.value),this.finishNode(e,"TSTypeParameterDeclaration")}tsFillSignature(t,e){const r=19===t;e.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),e.parameters=this.tsParseBindingListForSignature(),(r||this.match(t))&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){const t=super.parseBindingList(11,41,2);for(const e of t){const{type:t}=e;"AssignmentPattern"!==t&&"TSParameterProperty"!==t||this.raise(ve.UnsupportedSignatureParameterKind,e,{type:t})}return t}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(t,e){return this.tsFillSignature(14,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!H(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(t){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(3),t.parameters=[e];const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){this.eat(17)&&(t.optional=!0);const r=t;if(this.match(10)||this.match(47)){e&&this.raise(ve.ReadonlyForMethodSignature,t);const s=r;s.kind&&this.match(47)&&this.raise(ve.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();const n="parameters",i="typeAnnotation";if("get"===s.kind)s[n].length>0&&(this.raise(g.BadGetterArity,this.state.curPosition()),this.isThisParam(s[n][0])&&this.raise(ve.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===s.kind){if(1!==s[n].length)this.raise(g.BadSetterArity,this.state.curPosition());else{const t=s[n][0];this.isThisParam(t)&&this.raise(ve.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(ve.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(ve.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[i]&&this.raise(ve.SetAccessorCannotHaveReturnType,s[i])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}{const t=r;e&&(t.readonly=!0);const s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){const e=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t);return this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||!this.tsTokenCanFollowModifier()||(t.kind=t.key.name,super.parsePropertyName(t)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){const t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const t=this.startNode();this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0);{const e=this.startNode();e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),t.typeParameter=this.finishNode(e,"TSTypeParameter")}return t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1;return t.elementTypes.forEach((t=>{const{type:r}=t;!e||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&t.optional||this.raise(ve.OptionalTypeBeforeRequired,t),e||(e="TSNamedTupleMember"===r&&t.optional||"TSOptionalType"===r)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const{startLoc:t}=this.state,e=this.eat(21);let r,s,n,i;const a=W(this.state.type)?this.lookaheadCharCode():null;if(58===a)r=!0,n=!1,s=this.parseIdentifier(!0),this.expect(14),i=this.tsParseType();else if(63===a){n=!0;const t=this.state.startLoc,e=this.state.value,a=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(r=!0,s=this.createIdentifier(this.startNodeAt(t),e),this.expect(17),this.expect(14),i=this.tsParseType()):(r=!1,i=a,this.expect(17))}else i=this.tsParseType(),n=this.eat(17),r=this.eat(14);if(r){let t;s?(t=this.startNodeAtNode(s),t.optional=n,t.label=s,t.elementType=i,this.eat(17)&&(t.optional=!0,this.raise(ve.TupleOptionalAfterType,this.state.lastTokStartLoc))):(t=this.startNodeAtNode(i),t.optional=n,this.raise(ve.InvalidTupleMemberLabel,i),t.label=i,t.elementType=this.tsParseType()),i=this.finishNode(t,"TSNamedTupleMember")}else if(n){const t=this.startNodeAtNode(i);t.typeAnnotation=i,i=this.finishNode(t,"TSOptionalType")}if(e){const e=this.startNodeAt(t);e.typeAnnotation=i,i=this.finishNode(e,"TSRestType")}return i}tsParseParenthesizedType(){const t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,e){const r=this.startNode();return"TSConstructorType"===t&&(r.abstract=!!e,e&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,t)}tsParseLiteralTypeNode(){const t=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){const t=this.startNode();return t.literal=super.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();return 134!==e.type&&135!==e.type&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:t}=this.state;if(H(t)||88===t||84===t){const e=88===t?"TSVoidKeyword":84===t?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&46!==this.lookaheadCharCode()){const t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const e=this.startNodeAtNode(t);e.elementType=t,this.expect(3),t=this.finishNode(e,"TSArrayType")}else{const e=this.startNodeAtNode(t);e.objectType=t,e.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(e,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const t=this.startNode(),e=this.state.value;return this.next(),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===e&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ve.UnexpectedReadonly,t)}}tsParseInferType(){const t=this.startNode();this.expectContextual(115);const e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const t=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){var t;return(t=this.state.type)>=121&&t<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(t,e,r){const s=this.startNode(),n=this.eat(r),i=[];do{i.push(e())}while(this.eat(r));return 1!==i.length||n?(s.types=i,this.finishNode(s,t)):i[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(H(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:t}=this.state,e=t.length;try{return this.parseObjectLike(8,!0),t.length===e}catch(t){return!1}}if(this.match(0)){this.next();const{errors:t}=this.state,e=t.length;try{return super.parseBindingList(3,93,1),t.length===e}catch(t){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const r=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let t=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===t.type?(r.parameterName=t,r.asserts=!0,r.typeAnnotation=null,t=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(t,r),t.asserts=!0),e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return s?(r.parameterName=this.parseIdentifier(),r.asserts=s,r.typeAnnotation=null,e.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,e);const i=this.tsParseTypeAnnotation(!1);return r.parameterName=n,r.typeAnnotation=i,r.asserts=s,e.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const t=this.state.containsEsc;return this.next(),!(!H(this.state.type)&&!this.match(78)||(t&&this.raise(g.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(14),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){ge(this.state.inType);const t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),e.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),e.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(e,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&77===this.lookahead().type}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(ve.ReservedTypeAssertion,this.state.startLoc);const t=this.startNode();return t.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){const e=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{const t=this.startNode();return t.expression=this.tsParseEntityName(),this.match(47)&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}));return r.length||this.raise(ve.EmptyHeritageClauseType,e,{token:t}),r}tsParseInterfaceDeclaration(t,e={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),e.declare&&(t.declare=!0),H(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(ve.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));const r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType((()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&16!==this.lookahead().type){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInNoContext(t){const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}tsInType(t){const e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsInDisallowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsInAllowConditionalTypesContext(t){const e=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=e}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType((()=>(this.expect(t),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){const t=this.startNode();return t.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e={}){return e.const&&(t.const=!0),e.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,e=!1){if(t.id=this.parseIdentifier(),e||this.checkIdentifier(t.id,1024),this.eat(16)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.global=!0,t.id=this.parseIdentifier()):this.match(133)?t.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e,r){t.isExport=r||!1,t.id=e||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);const s=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==s.type&&this.raise(ve.ImportAliasHasImportType,s),t.moduleReference=s,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),r=t();return this.state=e,r}tsTryParseAndCatch(t){const e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){const e=this.state.clone(),r=t();if(void 0!==r&&!1!==r)return r;this.state=e}tsTryParseDeclare(t){if(this.isLineTerminator())return;let e,r=this.state.type;return this.isContextual(100)&&(r=74,e="let"),this.tsInAmbientContext((()=>{switch(r){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0})):(t.declare=!0,this.parseVarStatement(t,e||this.state.value,!0));case 129:{const e=this.tsParseInterfaceDeclaration(t,{declare:!0});if(e)return e}default:if(H(r))return this.tsParseDeclaration(t,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(t,e,r){switch(e.name){case"declare":{const e=this.tsTryParseDeclare(t);return e&&(e.declare=!0),e}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);const r=t;return r.global=!0,r.id=e,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1,r)}}tsParseDeclaration(t,e,r,s){switch(e){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||H(this.state.type)))return this.tsParseAbstractDeclaration(t,s);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(t);if(H(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&H(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminator(r)&&H(this.state.type))return this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminator(t){return t?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;const e=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const e=this.startNodeAt(t);return e.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(e),e.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),e}));return this.state.maybeInArrowParameters=e,r?super.parseArrowExpression(r,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const t=this.startNode();return t.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length?this.raise(ve.EmptyTypeArguments,t):this.state.inType||this.curContext()!==P.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(t=this.state.type)>=124&&t<=130;var t}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(t,e){const r=this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const n=s.accessibility,i=s.override,a=s.readonly;4&t||!(n||a||i)||this.raise(ve.UnexpectedParameterModifier,r);const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,t);const c=this.parseMaybeDefault(o.loc.start,o);if(n||a||i){const t=this.startNodeAt(r);return e.length&&(t.decorators=e),n&&(t.accessibility=n),a&&(t.readonly=a),i&&(t.override=i),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(ve.UnsupportedParameterPropertyKind,t),t.parameter=c,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),c}isSimpleParameter(t){return"TSParameterProperty"===t.type&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(const e of t.params)"Identifier"!==e.type&&e.optional&&!this.state.isAmbientContext&&this.raise(ve.PatternIsOptional,e)}setArrowFunctionParameters(t,e,r){super.setArrowFunctionParameters(t,e,r),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,e,r=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const s="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e||"ClassPrivateMethod"===e?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,s):"TSDeclareFunction"===s&&this.state.isAmbientContext&&(this.raise(ve.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,s,r):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,e,r))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{"TSTypeCastExpression"===(null==t?void 0:t.type)&&this.raise(ve.UnexpectedTypeAnnotation,t.typeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,e,r,s){const n=super.parseArrayLike(t,e,r,s);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(t,e,r,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"TSNonNullExpression")}let n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return s.stop=!0,t;s.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let i;const a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e);if(t)return t}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(n&&!this.match(10))return void(i=this.state.curPosition());if(G(this.state.type)){const r=super.parseTaggedTemplateExpression(t,e,s);return r.typeParameters=a,r}if(!r&&this.eat(10)){const r=this.startNodeAt(e);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeParameters=a,s.optionalChainMember&&(r.optional=n),this.finishCallExpression(r,s.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&V(o)&&!this.hasPrecedingLineBreak())return;const c=this.startNodeAt(e);return c.expression=t,c.typeParameters=a,this.finishNode(c,"TSInstantiationExpression")}));if(i&&this.unexpected(i,10),a)return"TSInstantiationExpression"===a.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(ve.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),a}return super.parseSubscript(t,e,r,s)}parseNewCallee(t){var e;super.parseNewCallee(t);const{callee:r}=t;"TSInstantiationExpression"!==r.type||null!=(e=r.extra)&&e.parenthesized||(t.typeParameters=r.typeParameters,t.callee=r.expression)}parseExprOp(t,e,r){let s;if(J(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const n=this.startNodeAt(e);return n.expression=t,n.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(s&&this.raise(g.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(n,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,e,r)}return super.parseExprOp(t,e,r)}checkReservedWord(t,e,r,s){this.state.isAmbientContext||super.checkReservedWord(t,e,r,s)}checkImportReflection(t){super.checkImportReflection(t),t.module&&"value"!==t.importKind&&this.raise(ve.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){const e=this.lookaheadCharCode();return t?123===e||42===e:61!==e}return!t&&this.isContextual(87)}applyImportPhase(t,e,r,s){super.applyImportPhase(t,e,r,s),e?t.exportKind="type"===r?"type":"value":t.importKind="type"===r||"typeof"===r?r:"value"}parseImport(t){if(this.match(133))return t.importKind="value",super.parseImport(t);let e;if(H(this.state.type)&&61===this.lookaheadCharCode())return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){const r=this.parseMaybeImportPhase(t,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(t,r);e=super.parseImportSpecifiersAndAfter(t,r)}else e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(ve.TypeImportCannotSpecifyDefaultAndNamed,e),e}parseExport(t,e){if(this.match(83)){this.next();const e=t;let r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,r,!0)}if(this.eat(29)){const e=t;return e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExportAssignment")}if(this.eatContextual(93)){const e=t;return this.expectContextual(128),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")}return super.parseExport(t,e)}isAbstractClass(){return this.isContextual(124)&&80===this.lookahead().type}parseExportDefaultExpression(){if(this.isAbstractClass()){const t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,e,r=!1){const{isAmbientContext:s}=this.state,n=super.parseVarStatement(t,e,r||s);if(!s)return n;for(const{id:t,init:r}of n.declarations)r&&("const"!==e||t.typeAnnotation?this.raise(ve.InitializerNotAllowedInAmbientContext,r):Pe(r,this.hasPlugin("estree"))||this.raise(ve.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r));return n}parseStatementContent(t,e){if(this.match(75)&&this.isLookaheadContextual("enum")){const t=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(t,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,e){return e.some((e=>xe(e)?t.accessibility===e:!!t[e]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(t,e,r){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:ve.InvalidModifierOnTypeParameterPositions},e);const n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(e,s)&&this.raise(ve.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,e)):this.parseClassMemberWithIsStatic(t,e,r,!!e.static)};e.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(t,e,r,s){const n=this.tsTryParseIndexSignature(e);if(n)return t.body.push(n),e.abstract&&this.raise(ve.IndexSignatureHasAbstract,e),e.accessibility&&this.raise(ve.IndexSignatureHasAccessibility,e,{modifier:e.accessibility}),e.declare&&this.raise(ve.IndexSignatureHasDeclare,e),void(e.override&&this.raise(ve.IndexSignatureHasOverride,e));!this.state.inAbstractClass&&e.abstract&&this.raise(ve.NonAbstractClassHasAbstractMethod,e),e.override&&(r.hadSuperClass||this.raise(ve.OverrideNotInSubClass,e)),super.parseClassMemberWithIsStatic(t,e,r,s)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(ve.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(ve.ClassMethodHasDeclare,t)}parseExpressionStatement(t,e,r){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e,r):void 0)||super.parseExpressionStatement(t,e,r)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,r){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(t,e,r);const s=this.tryParse((()=>super.parseConditional(t,e)));return s.node?(s.error&&(this.state=s.failState),s.node):(s.error&&super.setOptionalParametersError(r,s.error),t)}parseParenItem(t,e){const r=super.parseParenItem(t,e);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(t)),this.match(14)){const r=this.startNodeAt(e);return r.expression=t,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(t)));const e=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(ve.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const s=H(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return s?(("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||r)&&(t.exportKind="type"),r&&(this.resetStartLocation(s,e),s.declare=!0),s):null}parseClassId(t,e,r,s){if((!e||r)&&this.isContextual(113))return;super.parseClassId(t,e,r,t.declare?1024:8331);const n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(t.typeParameters=n)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(29)&&this.raise(ve.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){const{key:e}=t;this.raise(ve.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==e.type||t.computed?`[${this.input.slice(e.start,e.end)}]`:e.name})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(ve.PrivateElementHasAbstract,t),t.accessibility&&this.raise(ve.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(ve.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,e,r,s,n,i){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&n&&this.raise(ve.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:c}=e;!o||"get"!==c&&"set"!==c||this.raise(ve.DeclareAccessor,e,{kind:c}),a&&(e.typeParameters=a),super.pushClassMethod(t,e,r,s,n,i)}pushClassPrivateMethod(t,e,r,s){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.pushClassPrivateMethod(t,e,r,s)}declareClassPrivateMethodInScope(t,e){"TSDeclareMethod"!==t.type&&("MethodDefinition"!==t.type||hasOwnProperty.call(t.value,"body"))&&super.declareClassPrivateMethodInScope(t,e)}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,e,r,s,n,i,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(t.typeParameters=o),super.parseObjPropValue(t,e,r,s,n,i,a)}parseFunctionParams(t,e){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(t.typeParameters=r),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(t,e){var r,s,n,i,a;let o,c,u,l;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(o=this.state.clone(),c=this.tryParse((()=>super.parseMaybeAssign(t,e)),o),!c.error)return c.node;const{context:r}=this.state,s=r[r.length-1];s!==P.j_oTag&&s!==P.j_expr||r.pop()}if(!(null!=(r=c)&&r.error||this.match(47)))return super.parseMaybeAssign(t,e);o&&o!==this.state||(o=this.state.clone());const h=this.tryParse((r=>{var s,n;l=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(t,e);return("ArrowFunctionExpression"!==i.type||null!=(s=i.extra)&&s.parenthesized)&&r(),0!==(null==(n=l)?void 0:n.params.length)&&this.resetStartLocationFromNode(i,l),i.typeParameters=l,i}),o);if(!h.error&&!h.aborted)return l&&this.reportReservedArrowTypeParam(l),h.node;if(!c&&(ge(!this.hasPlugin("jsx")),u=this.tryParse((()=>super.parseMaybeAssign(t,e)),o),!u.error))return u.node;if(null!=(s=c)&&s.node)return this.state=c.failState,c.node;if(h.node)return this.state=h.failState,l&&this.reportReservedArrowTypeParam(l),h.node;if(null!=(n=u)&&n.node)return this.state=u.failState,u.node;throw(null==(i=c)?void 0:i.error)||h.error||(null==(a=u)?void 0:a.error)}reportReservedArrowTypeParam(t){var e;1!==t.params.length||t.params[0].constraint||null!=(e=t.extra)&&e.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(ve.ReservedArrowTypeParam,t)}parseMaybeUnary(t,e){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,e)}parseArrow(t){if(this.match(14)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseAssignableListItemTypes(t,e){if(!(2&e))return t;this.eat(17)&&(t.optional=!0);const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.resetEndLocation(t),t}isAssignable(t,e){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,e);case"TSParameterProperty":return!0;default:return super.isAssignable(t,e)}}toAssignable(t,e=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,e);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":e?this.expressionScope.recordArrowParameterBindingError(ve.UnexpectedTypeCastInParameter,t):this.raise(ve.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,e);break;case"AssignmentExpression":e||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,e)}}toAssignableParenthesizedExpression(t,e){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,e);break;default:super.toAssignable(t,e)}}checkToRestConversion(t,e){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,e)}}isValidLVal(t,e,r){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!e)&&["expression",!0];default:return super.isValidLVal(t,e,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t){if(this.match(47)||this.match(51)){const e=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const r=super.parseMaybeDecoratorArguments(t);return r.typeParameters=e,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,e){const r=super.parseMaybeDefault(t,e);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(ve.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(t){if(this.state.inType){if(62===t)return void this.finishOp(48,1);if(60===t)return void this.finishOp(47,1)}super.getTokenFromCode(t)}reScan_lt_gt(){const{type:t}=this.state;47===t?(this.state.pos-=1,this.readToken_lt()):48===t&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:t}=this.state;return 51===t?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableList(t,e,r){for(let e=0;e<t.length;e++){const r=t[e];"TSTypeCastExpression"===(null==r?void 0:r.type)&&(t[e]=this.typeCastToParameter(r))}super.toAssignableList(t,e,r)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every((t=>this.isAssignable(t,!0))):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t)[0];return r&&this.isThisParam(r)?e+1:e}parseCatchClauseParam(){const t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInAmbientContext(t){const{isAmbientContext:e,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=e,this.state.strict=r}}parseClass(t,e,r){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,e,r)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(t,e){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(e,this.parseClass(t,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return t.abstract=!0,this.raise(ve.NonClassMethodPropertyHasAbstractModifer,t),this.tsParseInterfaceDeclaration(t)}else this.unexpected(null,80)}parseMethod(t,e,r,s,n,i,a){const o=super.parseMethod(t,e,r,s,n,i,a);if(o.abstract&&(this.hasPlugin("estree")?o.value.body:o.body)){const{key:t}=o;this.raise(ve.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==t.type||o.computed?`[${this.input.slice(t.start,t.end)}]`:t.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,e,r,s){return!e&&s?(this.parseTypeOnlyImportExportSpecifier(t,!1,r),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,e,r,s))}parseImportSpecifier(t,e,r,s,n){return!e&&s?(this.parseTypeOnlyImportExportSpecifier(t,!0,r),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,e,r,s,r?4098:4096))}parseTypeOnlyImportExportSpecifier(t,e,r){const s=e?"imported":"local",n=e?"local":"exported";let i,a=t[s],o=!1,c=!0;const u=a.loc.start;if(this.isContextual(93)){const t=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();W(this.state.type)?(o=!0,a=t,i=e?this.parseIdentifier():this.parseModuleExportName(),c=!1):(i=r,c=!1)}else W(this.state.type)?(c=!1,i=e?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=t)}else W(this.state.type)&&(o=!0,e?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&r&&this.raise(e?ve.TypeModifierIsUsedInTypeImports:ve.TypeModifierIsUsedInTypeExports,u),t[s]=a,t[n]=i,t[e?"importKind":"exportKind"]=o?"type":"value",c&&this.eatContextual(93)&&(t[n]=e?this.parseIdentifier():this.parseModuleExportName()),t[n]||(t[n]=re(t[s])),e&&this.checkIdentifier(t[n],o?4098:4096)}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(54)){const t=this.state.startLoc,e=this.startNode();if(this.next(),H(this.state.type)){const t=this.parseIdentifierName(),r=this.createIdentifier(e,t);if(r.type="V8IntrinsicIdentifier",this.match(10))return r}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(144)){const e=this.startNode();return this.next(),this.assertNoSpace(),e.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){let r=t;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=e,r}getTokenFromCode(t){37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(144,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,e,r,s){void 0!==t&&super.checkReservedWord(t,e,r,s)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,e,r){return"Placeholder"===t||super.isValidLVal(t,e,r)}toAssignable(t,e){t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?t.expectedNode="Pattern":super.toAssignable(t,e)}chStartsBindingIdentifier(t,e){return!!super.chStartsBindingIdentifier(t,e)||144===this.lookahead().type}verifyBreakContinue(t,e){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(t,e)}parseExpressionStatement(t,e){var r;if("Placeholder"!==e.type||null!=(r=e.extra)&&r.parenthesized)return super.parseExpressionStatement(t,e);if(this.match(14)){const r=t;return r.label=this.finishPlaceholder(e,"Identifier"),this.next(),r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(r,"LabeledStatement")}this.semicolon();const s=t;return s.name=e.name,this.finishPlaceholder(s,"Statement")}parseBlock(t,e,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,e,r)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,e,r){const s=e?"ClassDeclaration":"ClassExpression";this.next();const n=this.state.strict,i=this.parsePlaceholder("Identifier");if(i){if(!(this.match(81)||this.match(144)||this.match(5))){if(r||!e)return t.id=null,t.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(t,s);throw this.raise(_e.ClassNameIsRequired,this.state.startLoc)}t.id=i}else this.parseClassId(t,e,r);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,n),this.finishNode(t,s)}parseExport(t,e){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(t,e);const s=t;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=r,s.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(s,e)}isExportDefaultSpecifier(){if(this.match(65)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(K(144),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,e){var r;return!(null==(r=t.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(t,e)}checkExport(t){const{specifiers:e}=t;null!=e&&e.length&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(_e.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ce=Object.keys(Ee),Ne={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};class Ie extends ye{checkProto(t,e,r,s){if("SpreadElement"===t.type||this.isObjectMethod(t)||t.computed||t.shorthand)return;const n=t.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(e)return void this.raise(g.RecordNoProto,n);r.used&&(s?null===s.doubleProtoLoc&&(s.doubleProtoLoc=n.loc.start):this.raise(g.DuplicateProto,n)),r.used=!0}}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&t.start===e}getExpression(){this.enterInitialScopes(),this.nextToken();const t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.startLoc,r=this.parseMaybeAssign(t);if(this.match(12)){const s=this.startNodeAt(e);for(s.expressions=[r];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(t,e){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e)))}parseMaybeAssignAllowIn(t,e){return this.allowInAnd((()=>this.parseMaybeAssign(t,e)))}setOptionalParametersError(t,e){var r;t.optionalParametersLoc=null!=(r=null==e?void 0:e.loc)?r:this.state.startLoc}parseMaybeAssign(t,e){const r=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let t=this.parseYield();return e&&(t=e.call(this,t,r)),t}let s;t?s=!1:(t=new Qt,s=!0);const{type:n}=this.state;(10===n||H(n))&&(this.state.potentialArrowAt=this.state.start);let i=this.parseMaybeConditional(t);if(e&&(i=e.call(this,i,r)),(a=this.state.type)>=29&&a<=33){const e=this.startNodeAt(r),s=this.state.value;if(e.operator=s,this.match(29)){this.toAssignable(i,!0),e.left=i;const s=r.index;null!=t.doubleProtoLoc&&t.doubleProtoLoc.index>=s&&(t.doubleProtoLoc=null),null!=t.shorthandAssignLoc&&t.shorthandAssignLoc.index>=s&&(t.shorthandAssignLoc=null),null!=t.privateKeyLoc&&t.privateKeyLoc.index>=s&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else e.left=i;return this.next(),e.right=this.parseMaybeAssign(),this.checkLVal(i,this.finishNode(e,"AssignmentExpression")),e}var a;return s&&this.checkExpressionErrors(t,!0),i}parseMaybeConditional(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,r)?s:this.parseConditional(s,e,t)}parseConditional(t,e,r){if(this.eat(17)){const r=this.startNodeAt(e);return r.test=t,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,r)?s:this.parseExprOp(s,e,-1)}parseExprOp(t,e,r){if(this.isPrivateName(t)){const e=this.getPrivateNameSV(t);(r>=J(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(g.PrivateInExpectedIn,t,{identifierName:e}),this.classScope.usePrivateName(e,t.loc.start)}const s=this.state.type;if((n=s)>=39&&n<=59&&(this.prodParam.hasIn||!this.match(58))){let n=J(s);if(n>r){if(39===s){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,e)}const i=this.startNodeAt(e);i.left=t,i.operator=this.state.value;const a=41===s||42===s,o=40===s;if(o&&(n=J(42)),this.next(),39===s&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(g.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);i.right=this.parseExprOpRightExpr(s,n);const c=this.finishNode(i,a||o?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(o&&(41===u||42===u)||a&&40===u)throw this.raise(g.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,e,r)}}var n;return t}parseExprOpRightExpr(t,e){const r=this.state.startLoc;if(39===t)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"smart":return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(g.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,e),r)}));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}return this.parseExprOpBaseRightExpr(t,e)}parseExprOpBaseRightExpr(t,e){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===t?e-1:e)}parseHackPipeBody(){var t;const{startLoc:e}=this.state,r=this.parseMaybeAssign();return!h.has(r.type)||null!=(t=r.extra)&&t.parenthesized||this.raise(g.PipeUnparenthesizedBody,e,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipeTopicUnused,e),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(g.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,e){const r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const t=this.parseAwait(r);return e||this.checkExponentialAfterUnary(t),t}const n=this.match(34),i=this.startNode();if(a=this.state.type,R[a]){i.operator=this.state.value,i.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const r=this.match(89);if(this.next(),i.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&r){const t=i.argument;"Identifier"===t.type?this.raise(g.StrictDelete,i):this.hasPropertyAsPrivateName(t)&&this.raise(g.DeletePrivateField,i)}if(!n)return e||this.checkExponentialAfterUnary(i),this.finishNode(i,"UnaryExpression")}var a;const o=this.parseUpdate(i,n,t);if(s){const{type:t}=this.state;if((this.hasPlugin("v8intrinsic")?V(t):V(t)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(g.AwaitNotInAsyncContext,r),this.parseAwait(r)}return o}parseUpdate(t,e,r){if(e){const e=t;return this.checkLVal(e.argument,this.finishNode(e,"UpdateExpression")),t}const s=this.state.startLoc;let n=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return n;for(;34===this.state.type&&!this.canInsertSemicolon();){const t=this.startNodeAt(s);t.operator=this.state.value,t.prefix=!1,t.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(t,"UpdateExpression"))}return n}parseExprSubscripts(t){const e=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,r)?s:this.parseSubscripts(s,e)}parseSubscripts(t,e,r){const s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,r,s),s.maybeAsyncArrow=!1}while(!s.stop);return t}parseSubscript(t,e,r,s){const{type:n}=this.state;if(!r&&15===n)return this.parseBind(t,e,r,s);if(G(n))return this.parseTaggedTemplateExpression(t,e,s);let i=!1;if(18===n){if(r&&(this.raise(g.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return s.stop=!0,t;s.optionalChainMember=i=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,e,s,i);{const r=this.eat(0);return r||i||this.eat(16)?this.parseMember(t,e,s,r,i):(s.stop=!0,t)}}parseMember(t,e,r,s,n){const i=this.startNodeAt(e);return i.object=t,i.computed=s,s?(i.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===t.type&&this.raise(g.SuperPrivateField,e),this.classScope.usePrivateName(this.state.value,this.state.startLoc),i.property=this.parsePrivateName()):i.property=this.parseIdentifier(!0),r.optionalChainMember?(i.optional=n,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(t,e,r,s){const n=this.startNodeAt(e);return n.object=t,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),e,r)}parseCoverCallAndAsyncArrowHead(t,e,r,s){const n=this.state.maybeInArrowParameters;let i=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(e);a.callee=t;const{maybeAsyncArrow:o,optionalChainMember:c}=r;o&&(this.expressionScope.enter(new $t(2)),i=new Qt),c&&(a.optional=s),a.arguments=s?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===t.type,"Super"!==t.type,a,i);let u=this.finishCallExpression(a,c);return o&&this.shouldParseAsyncArrow()&&!s?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e),u)):(o&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedArguments(u)),this.state.maybeInArrowParameters=n,u}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,r){const s=this.startNodeAt(e);return s.tag=t,s.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(g.OptionalChainingNoTemplate,e),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,e){if("Import"===t.callee.type)if(2===t.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===t.arguments.length||t.arguments.length>2)this.raise(g.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(const e of t.arguments)"SpreadElement"===e.type&&this.raise(g.ImportCallSpreadArgument,e);return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,r,s,n){const i=[];let a=!0;const o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){!e||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(g.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),s&&this.addTrailingCommaExtraToNode(s),this.next();break}i.push(this.parseExprListItem(!1,n,r))}return this.state.inFSharpPipelineDirectBody=o,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var r;return this.resetPreviousNodeTrailingComments(e),this.expect(19),this.parseArrowExpression(t,e.arguments,!0,null==(r=e.extra)?void 0:r.trailingCommaLoc),e.innerComments&&wt(t,e.innerComments),e.callee.trailingComments&&wt(t,e.callee.trailingComments),t}parseNoCallExpr(){const t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let e,r=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return e=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(e):this.match(10)?this.options.createImportExpressions?this.parseImportCall(e):this.finishNode(e,"Import"):(this.raise(g.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(e,"Import"));case 78:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const t=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(t)}case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{e=this.startNode(),this.next(),e.object=null;const t=e.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(e,"BindExpression");throw this.raise(g.UnsupportedBind,t)}case 138:return this.raise(g.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const t=this.getPluginOption("pipelineOperator","proposal");if(t)return this.parseTopicReference(t);this.unexpected();break}case 47:{const t=this.input.codePointAt(this.nextTokenStart());it(t)||62===t?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(H(s)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const t=this.state.potentialArrowAt===this.state.start,e=this.state.containsEsc,r=this.parseIdentifier();if(!e&&"async"===r.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(H(t))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r)):r;if(90===t)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}return t&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()}}parseTopicReferenceThenEqualsSign(t,e){const r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=t,this.state.value=e,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(r);this.unexpected()}parseTopicReference(t){const e=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(e,r,t,s)}finishTopicReference(t,e,r,s){if(this.testTopicReferenceConfiguration(r,e,s)){const s="smart"===r?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===r?g.PrimaryTopicNotAllowed:g.PipeTopicUnbound,e),this.registerTopicReference(),this.finishNode(t,s)}throw this.raise(g.PipeTopicUnconfiguredToken,e,{token:K(s)})}testTopicReferenceConfiguration(t,e,r){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:K(r)}]);case"smart":return 27===r;default:throw this.raise(g.PipeTopicRequiresHackPipes,e)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Xt(!0,this.prodParam.hasYield));const e=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(g.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,e,!0)}parseDo(t,e){this.expectPlugin("doExpressions"),e&&this.expectPlugin("asyncDoExpressions"),t.async=e,this.next();const r=this.state.labels;return this.state.labels=[],e?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=r,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(g.UnexpectedSuper,t):this.raise(g.SuperNotAllowed,t),this.match(10)||this.match(0)||this.match(16)||this.raise(g.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){const t=this.startNode(),e=this.startNodeAt(i(this.state.startLoc,1)),r=this.state.value;return this.next(),t.id=this.createIdentifier(e,r),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,r){t.meta=e;const s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==r||s)&&this.raise(g.UnsupportedMetaProperty,t.property,{target:e.name,onlyValidPropertyName:r}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const e=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(g.ImportMetaOutsideModule,e),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){const e=this.isContextual(105);if(e||this.unexpected(),this.expectPlugin(e?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(g.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=e?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,e,"meta")}parseLiteralAtNode(t,e,r){return this.addExtra(r,"rawValue",t),this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.value=t,this.next(),this.finishNode(r,e)}parseLiteral(t,e){const r=this.startNode();return this.parseLiteralAtNode(t,e,r)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){const e=this.startNode();return this.addExtra(e,"raw",this.input.slice(e.start,this.state.end)),e.pattern=t.pattern,e.flags=t.flags,this.next(),this.finishNode(e,"RegExpLiteral")}parseBooleanLiteral(t){const e=this.startNode();return e.value=t,this.next(),this.finishNode(e,"BooleanLiteral")}parseNullLiteral(){const t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){const e=this.state.startLoc;let r;this.next(),this.expressionScope.enter(new $t(1));const s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const i=this.state.startLoc,a=[],o=new Qt;let c,u,l=!0;for(;!this.match(11);){if(l)l=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){const t=this.state.startLoc;if(c=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),t)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}const h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let p=this.startNodeAt(e);return t&&this.shouldParseArrow(a)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,a,!1),p):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),c&&this.unexpected(c),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(r=this.startNodeAt(i),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,h)):r=a[0],this.wrapParenthesis(e,r))}wrapParenthesis(t,e){if(!this.options.createParenthesizedExpressions)return this.addExtra(e,"parenthesized",!0),this.addExtra(e,"parenStart",t.index),this.takeSurroundingComments(e,t.index,this.state.lastTokEndLoc.index),e;const r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,e){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(16)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const r=this.parseMetaProperty(t,e,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(g.UnexpectedNewTarget,r),r}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){const e=this.parseExprList(11);this.toReferencedList(e),t.arguments=e}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){const e=this.match(83),r=this.parseNoCallExpr();t.callee=r,!e||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(g.ImportCallNotNewExpression,r)}parseTemplateElement(t){const{start:e,startLoc:r,end:s,value:n}=this.state,a=e+1,o=this.startNodeAt(i(r,1));null===n&&(t||this.raise(g.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));const c=this.match(24),u=c?-1:-2,l=s+u;o.value={raw:this.input.slice(a,l).replace(/\r\n?/g,"\n"),cooked:null===n?null:n.slice(1,u)},o.tail=c,this.next();const h=this.finishNode(o,"TemplateElement");return this.resetEndLocation(h,i(this.state.lastTokEndLoc,u)),h}parseTemplate(t){const e=this.startNode();let r=this.parseTemplateElement(t);const s=[r],n=[];for(;!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(t));return e.expressions=n,e.quasis=s,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=Object.create(null);let a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let n;e?n=this.parseBindingProperty():(n=this.parsePropertyDefinition(s),this.checkProto(n,r,i,s)),r&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(g.InvalidRecordProperty,n),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return e?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(o,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(g.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());const r=this.startNode();let s,n=!1,i=!1;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(r.decorators=e,e=[]),r.method=!1,t&&(s=this.state.startLoc);let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;if(this.parsePropertyName(r,t),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:t}=r,e=t.name;"async"!==e||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(t),a=this.eat(55),this.parsePropertyName(r)),"get"!==e&&"set"!==e||(i=!0,this.resetPreviousNodeTrailingComments(t),r.kind=e,this.match(55)&&(a=!0,this.raise(g.AccessorIsGenerator,this.state.curPosition(),{kind:e}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,s,a,n,!1,i,t)}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const r=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==r&&this.raise("get"===t.kind?g.BadGetterArity:g.BadSetterArity,t),"set"===t.kind&&"RestElement"===(null==(e=s[s.length-1])?void 0:e.type)&&this.raise(g.BadSetterRestParameter,t)}parseObjectMethod(t,e,r,s,n){if(n){const r=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||e||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,r,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,r,s){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(t,"ObjectProperty");if(!t.computed&&"Identifier"===t.key.type){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,re(t.key));else if(this.match(29)){const r=this.state.startLoc;null!=s?null===s.shorthandAssignLoc&&(s.shorthandAssignLoc=r):this.raise(g.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,re(t.key))}else t.value=re(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,r,s,n,i,a){const o=this.parseObjectMethod(t,r,s,n,i)||this.parseObjectProperty(t,e,n,a);return o||this.unexpected(),o}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:r,value:s}=this.state;let n;if(W(r))n=this.parseIdentifier(!0);else switch(r){case 134:n=this.parseNumericLiteral(s);break;case 133:n=this.parseStringLiteral(s);break;case 135:n=this.parseBigIntLiteral(s);break;case 136:n=this.parseDecimalLiteral(s);break;case 138:{const t=this.state.startLoc;null!=e?null===e.privateKeyLoc&&(e.privateKeyLoc=t):this.raise(g.UnexpectedPrivateField,t),n=this.parsePrivateName();break}default:this.unexpected()}t.key=n,138!==r&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,r,s,n,i,a=!1){this.initFunction(t,r),t.generator=e,this.scope.enter(18|(a?64:0)|(n?32:0)),this.prodParam.enter(Xt(r,t.generator)),this.parseFunctionParams(t,s);const o=this.parseFunctionBodyAndFinish(t,i,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(t,!r,s,i),this.state.inFSharpPipelineDirectBody=n,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,r,s){this.scope.enter(6);let n=Xt(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,r);const i=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,r){this.toAssignableList(e,r,!1),t.params=e}parseFunctionBodyAndFinish(t,e,r=!1){return this.parseFunctionBody(t,!1,r),this.finishNode(t,e)}parseFunctionBody(t,e,r=!1){const s=e&&!this.match(5);if(this.expressionScope.enter(Jt()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const s=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(n=>{const i=!this.isSimpleParamList(t.params);n&&i&&this.raise(g.IllegalLanguageModeDirective,"method"!==t.kind&&"constructor"!==t.kind||!t.key?t:t.key.loc.end);const a=!s&&this.state.strict;this.checkParams(t,!(this.state.strict||e||r||i),e,a),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,a)})),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(t){return"Identifier"===t.type}isSimpleParamList(t){for(let e=0,r=t.length;e<r;e++)if(!this.isSimpleParameter(t[e]))return!1;return!0}checkParams(t,e,r,s=!0){const n=!e&&new Set,i={type:"FormalParameters"};for(const e of t.params)this.checkLVal(e,i,5,n,s)}parseExprList(t,e,r,s){const n=[];let i=!0;for(;!this.eat(t);){if(i)i=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(e,r))}return n}parseExprListItem(t,e,r){let s;if(this.match(12))t||this.raise(g.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){const t=this.state.startLoc;s=this.parseParenItem(this.parseSpread(e),t)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(g.UnexpectedArgumentPlaceholder,this.state.startLoc);const t=this.startNode();this.next(),s=this.finishNode(t,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return s}parseIdentifier(t){const e=this.startNode(),r=this.parseIdentifierName(t);return this.createIdentifier(e,r)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t){let e;const{startLoc:r,type:s}=this.state;W(s)?e=this.state.value:this.unexpected();const n=s<=92;return t?n&&this.replaceToken(132):this.checkReservedWord(e,r,n,!1),this.next(),e}checkReservedWord(t,e,r,s){if(!(t.length>10)&&function(t){return ft.has(t)}(t))if(r&&function(t){return ot.has(t)}(t))this.raise(g.UnexpectedKeyword,e,{keyword:t});else if((this.state.strict?s?dt:ht:lt)(t,this.inModule))this.raise(g.UnexpectedReservedWord,e,{reservedWord:t});else if("yield"===t){if(this.prodParam.hasYield)return void this.raise(g.YieldBindingIdentifier,e)}else if("await"===t){if(this.prodParam.hasAwait)return void this.raise(g.AwaitBindingIdentifier,e);if(this.scope.inStaticBlock)return void this.raise(g.AwaitBindingIdentifierInStaticBlock,e);this.expressionScope.recordAsyncArrowParametersError(e)}else if("arguments"===t&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(g.ArgumentsInClass,e)}recordAwaitIfAllowed(){const t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){const e=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(g.AwaitExpressionFormalParameter,e),this.eat(55)&&this.raise(g.ObsoleteAwaitStar,e),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(e.argument=this.parseMaybeUnary(null,!0)),this.finishNode(e,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;const{type:t}=this.state;return 53===t||10===t||0===t||G(t)||102===t&&!this.state.containsEsc||137===t||56===t||this.hasPlugin("v8intrinsic")&&54===t}parseYield(){const t=this.startNode();this.expressionScope.recordParameterInitializerError(g.YieldInParameter,t),this.next();let e=!1,r=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:r=this.parseMaybeAssign()}return t.delegate=e,t.argument=r,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===t.type&&this.raise(g.PipelineHeadSequenceExpression,e)}parseSmartPipelineBodyInStyle(t,e){if(this.isSimpleReference(t)){const r=this.startNodeAt(e);return r.callee=t,this.finishNode(r,"PipelineBareFunction")}{const r=this.startNodeAt(e);return this.checkSmartPipeTopicBodyEarlyErrors(e),r.expression=t,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(g.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipelineTopicUnused,t)}withTopicBindingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSmartMixTopicForbiddingContext(t){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return t();{const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,t);return this.state.inFSharpPipelineDirectBody=r,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const e=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(e,8,"module")}finally{r()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}}const Me={kind:1},Le={kind:2},Oe=/[\uD800-\uDFFF]/u,De=/in(?:stanceof)?/y;class Fe extends Ie{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.comments,this.options.tokens&&(t.tokens=function(t,e){for(let r=0;r<t.length;r++){const s=t[r],{type:n}=s;if("number"==typeof n){if(138===n){const{loc:e,start:n,value:a,end:o}=s,c=n+1,u=i(e.start,1);t.splice(r,1,new Ht({type:X(27),value:"#",start:n,end:c,startLoc:e.start,endLoc:u}),new Ht({type:X(132),value:a,start:c,end:o,startLoc:u,endLoc:e.end})),r++;continue}if(G(n)){const{loc:a,start:o,value:c,end:u}=s,l=o+1,h=i(a.start,1);let p,d,f,m,y;p=96===e.charCodeAt(o)?new Ht({type:X(22),value:"`",start:o,end:l,startLoc:a.start,endLoc:h}):new Ht({type:X(8),value:"}",start:o,end:l,startLoc:a.start,endLoc:h}),24===n?(f=u-1,m=i(a.end,-1),d=null===c?null:c.slice(1,-1),y=new Ht({type:X(22),value:"`",start:f,end:u,startLoc:m,endLoc:a.end})):(f=u-2,m=i(a.end,-2),d=null===c?null:c.slice(1,-2),y=new Ht({type:X(23),value:"${",start:f,end:u,startLoc:m,endLoc:a.end})),t.splice(r,1,p,new Ht({type:X(20),value:d,start:l,end:f,startLoc:h,endLoc:m}),y),r+=2;continue}s.type=X(n)}}return t}(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,e=139,r=this.options.sourceType){if(t.sourceType=r,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(const[t,e]of Array.from(this.scope.undefinedExports))this.raise(g.ModuleExportUndefined,e,{localName:t});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return s=139===e?this.finishNode(t,"Program"):this.finishNodeAt(t,"Program",i(this.state.startLoc,-1)),s}stmtToDirective(t){const e=t;e.type="Directive",e.value=e.expression,delete e.expression;const r=e.value,s=r.value,n=this.input.slice(r.start,r.end),i=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",i),this.addExtra(r,"expressionValue",s),r.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}chStartsBindingIdentifier(t,e){if(it(t)){if(De.lastIndex=e,De.test(this.input)){const t=this.codePointAtPos(De.lastIndex);if(!at(t)&&92!==t)return!1}return!0}return 92===t}chStartsBindingPattern(t){return 91===t||123===t}hasFollowingBindingAtom(){const t=this.nextTokenStart(),e=this.codePointAtPos(t);return this.chStartsBindingPattern(e)||this.chStartsBindingIdentifier(e,t)}hasInLineFollowingBindingIdentifierOrBrace(){const t=this.nextTokenInLineStart(),e=this.codePointAtPos(t);return 123===e||this.chStartsBindingIdentifier(e,t)}startsUsingForOf(){const{type:t,containsEsc:e}=this.lookahead();return!(102===t&&!e)&&(H(t)&&!this.hasFollowingLineBreak()?(this.expectPlugin("explicitResourceManagement"),!0):void 0)}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);const e=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(e,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let e=0;return this.options.annexB&&!this.state.strict&&(e|=4,t&&(e|=8)),this.parseStatementLike(e)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let e=null;return this.match(26)&&(e=this.parseDecorators(!0)),this.parseStatementContent(t,e)}parseStatementContent(t,e){const r=this.state.type,s=this.startNode(),n=!!(2&t),i=!!(4&t),a=1&t;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(46===this.lookaheadCharCode())break;return i||this.raise(this.state.strict?g.StrictFunction:this.options.annexB?g.SloppyFunctionAnnexB:g.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&i);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(e,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?n||this.raise(g.UnexpectedLexicalDeclaration,s):this.raise(g.AwaitUsingNotInAsyncContext,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(g.UnexpectedUsingDeclaration,this.state.startLoc):n||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;const t=this.nextTokenStart(),e=this.codePointAtPos(t);if(91!==e){if(!n&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(e,t)&&123!==e)break}}case 75:n||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const t=this.state.value;return this.parseVarStatement(s,t)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{const t=this.lookaheadCharCode();if(40===t||46===t)break}case 82:{let t;return this.options.allowImportExportEverywhere||a||this.raise(g.UnexpectedImportExport,this.state.startLoc),this.next(),83===r?(t=this.parseImport(s),"ImportDeclaration"!==t.type||t.importKind&&"value"!==t.importKind||(this.sawUnambiguousESM=!0)):(t=this.parseExport(s,e),("ExportNamedDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&("ExportAllDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&"ExportDefaultDeclaration"!==t.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(t),t}default:if(this.isAsyncFunction())return n||this.raise(g.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&i)}const o=this.state.value,c=this.parseExpression();return H(r)&&"Identifier"===c.type&&this.eat(14)?this.parseLabeledStatement(s,o,c,t):this.parseExpressionStatement(s,c,e)}assertModuleNodeAllowed(t){this.options.allowImportExportEverywhere||this.inModule||this.raise(g.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(t,e,r){return t&&(e.decorators&&e.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorsBeforeAfterExport,e.decorators[0]),e.decorators.unshift(...t)):e.decorators=t,this.resetStartLocationFromNode(e,t[0]),r&&this.resetStartLocationFromNode(r,e)),e}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){const e=[];do{e.push(this.parseDecorator())}while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(g.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(g.UnexpectedLeadingDecorator,this.state.startLoc);return e}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){const e=this.state.startLoc;let r;if(this.match(10)){const e=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(e,r);const s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(r),!1===this.getPluginOption("decorators","allowCallParenthesized")&&t.expression!==r&&this.raise(g.DecoratorArgumentsOutsideParentheses,s)}else{for(r=this.parseIdentifier(!1);this.eat(16);){const t=this.startNodeAt(e);t.object=r,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),t.property=this.parsePrivateName()):t.property=this.parseIdentifier(!0),t.computed=!1,r=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){const e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let r;for(r=0;r<this.state.labels.length;++r){const s=this.state.labels[r];if(null==t.label||s.name===t.label.name){if(null!=s.kind&&(e||1===s.kind))break;if(t.label&&e)break}}if(r===this.state.labels.length){const r=e?"BreakStatement":"ContinueStatement";this.raise(g.IllegalBreakContinue,t,{type:r})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(Me),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Me);let e=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(e=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==e&&this.unexpected(e),this.parseFor(t,null);const r=this.isContextual(100);{const s=this.isContextual(96)&&this.startsAwaitUsing(),n=s||this.isContextual(107)&&this.startsUsingForOf(),i=r&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||i){const r=this.startNode();let i;s?(i="await using",this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):i=this.state.value,this.next(),this.parseVar(r,!0,i);const a=this.finishNode(r,"VariableDeclaration"),o=this.match(58);return o&&n&&this.raise(g.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(t,a,e):(null!==e&&this.unexpected(e),this.parseFor(t,a))}}const s=this.isContextual(95),n=new Qt,i=this.parseExpression(!0,n),a=this.isContextual(102);if(a&&(r&&this.raise(g.ForOfLet,i),null===e&&s&&"Identifier"===i.type&&this.raise(g.ForOfAsync,i)),a||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(i,!0);const r=a?"ForOfStatement":"ForInStatement";return this.checkLVal(i,{type:r}),this.parseForIn(t,i,e)}return this.checkExpressionErrors(n,!0),null!==e&&this.unexpected(e),this.parseFor(t,i)}parseFunctionStatement(t,e,r){return this.next(),this.parseFunction(t,1|(r?2:0)|(e?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(g.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];let r;this.expect(5),this.state.labels.push(Le),this.scope.enter(0);for(let t;!this.match(8);)if(this.match(61)||this.match(65)){const s=this.match(61);r&&this.finishNode(r,"SwitchCase"),e.push(r=this.startNode()),r.consequent=[],this.next(),s?r.test=this.parseExpression():(t&&this.raise(g.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),t=!0,r.test=null),this.expect(14)}else r?r.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(g.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===t.type?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){const e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(0)),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,t.handler||t.finalizer||this.raise(g.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,e,r=!1){return this.next(),this.parseVar(t,!1,e,r),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Me),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(g.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,r,s){for(const t of this.state.labels)t.name===e&&this.raise(g.LabelRedeclaration,r,{labelName:e});const n=(i=this.state.type)>=90&&i<=92?1:this.match(71)?2:null;var i;for(let e=this.state.labels.length-1;e>=0;e--){const r=this.state.labels[e];if(r.statementStart!==t.start)break;r.statementStart=this.state.start,r.kind=n}return this.state.labels.push({name:e,kind:n,statementStart:this.state.start}),t.body=8&s?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e,r){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,r){const s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,r),e&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,r,s,n){const i=t.body=[],a=t.directives=[];this.parseBlockOrModuleBlockBody(i,e?a:void 0,r,s,n)}parseBlockOrModuleBlockBody(t,e,r,s,n){const i=this.state.strict;let a=!1,o=!1;for(;!this.match(s);){const s=r?this.parseModuleItem():this.parseStatementListItem();if(e&&!o){if(this.isValidDirective(s)){const t=this.stmtToDirective(s);e.push(t),a||"use strict"!==t.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}t.push(s)}null==n||n.call(this,a),i||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,r){const s=this.match(58);return this.next(),s?null!==r&&this.unexpected(r):t.await=null!==r,"VariableDeclaration"!==e.type||null==e.declarations[0].init||s&&this.options.annexB&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type||this.raise(g.ForInOfLoopInitializer,e,{type:s?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===e.type&&this.raise(g.InvalidLhs,e,{ancestor:{type:"ForStatement"}}),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,e,r,s=!1){const n=t.declarations=[];for(t.kind=r;;){const t=this.startNode();if(this.parseVarId(t,r),t.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==t.init||s||("Identifier"===t.id.type||e&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(t,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){const r=this.parseBindingAtom();"using"!==e&&"await using"!==e||"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(g.UsingDeclarationHasBindingPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===e?5:8201),t.id=r}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,e=0){const r=2&e,s=!!(1&e),n=s&&!(4&e),i=!!(8&e);this.initFunction(t,i),this.match(55)&&(r&&this.raise(g.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Xt(i,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),s&&!r&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=a,t}parseFunctionId(t){return t||H(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(new qt(3)),t.params=this.parseBindingList(11,41,2|(e?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,e,r){this.next();const s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,r),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return"Identifier"===t.type&&"constructor"===t.name||"StringLiteral"===t.type&&"constructor"===t.value}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,e){this.classScope.enter();const r={hadConstructor:!1,hadSuperClass:t};let s=[];const n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(g.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}const t=this.startNode();s.length&&(t.decorators=s,this.resetStartLocationFromNode(t,s[0]),s=[]),this.parseClassMember(n,t,r),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(g.DecoratorConstructor,t)}})),this.state.strict=e,this.next(),s.length)throw this.raise(g.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,e){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const s=e;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}if(this.isClassProperty()){const s=e;return s.computed=!1,s.key=r,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(t,e,r){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5))return void this.parseClassStaticBlock(t,e)}this.parseClassMemberWithIsStatic(t,e,r,s)}parseClassMemberWithIsStatic(t,e,r,s){const n=e,i=e,a=e,o=e,c=e,u=n,l=n;if(e.static=s,this.parsePropertyNamePrefixOperator(e),this.eat(55)){u.kind="method";const e=this.match(138);return this.parseClassElementName(u),e?void this.pushClassPrivateMethod(t,i,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(g.ConstructorIsGenerator,n.key),void this.pushClassMethod(t,n,!0,!1,!1,!1))}const h=!this.state.containsEsc&&H(this.state.type),p=this.parseClassElementName(e),d=h?p.name:null,f=this.isPrivateName(p),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(u.kind="method",f)return void this.pushClassPrivateMethod(t,i,!1,!1);const s=this.isNonstaticConstructor(n);let a=!1;s&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(g.DuplicateConstructor,p),s&&this.hasPlugin("typescript")&&e.override&&this.raise(g.OverrideOnConstructor,p),r.hadConstructor=!0,a=r.hadSuperClass),this.pushClassMethod(t,n,!1,!1,s,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);const e=this.match(138);this.parseClassElementName(a),this.pushClassAccessorProperty(t,c,e)}else{this.resetPreviousNodeTrailingComments(p),u.kind=d;const e=this.match(138);this.parseClassElementName(n),e?this.pushClassPrivateMethod(t,i,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(g.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(p);const e=this.eat(55);l.optional&&this.unexpected(m),u.kind="method";const r=this.match(138);this.parseClassElementName(u),this.parsePostMemberNameModifiers(l),r?this.pushClassPrivateMethod(t,i,e,!0):(this.isNonstaticConstructor(n)&&this.raise(g.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,e,!0,!1,!1))}}parseClassElementName(t){const{type:e,value:r}=this.state;if(132!==e&&133!==e||!t.static||"prototype"!==r||this.raise(g.StaticPrototype,this.state.startLoc),138===e){"constructor"===r&&this.raise(g.ConstructorClassPrivateField,this.state.startLoc);const e=this.parsePrivateName();return t.key=e,e}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,e){var r;this.scope.enter(208);const s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=e.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(e,"StaticBlock")),null!=(r=e.decorators)&&r.length&&this.raise(g.DecoratorStaticBlock,e)}pushClassProperty(t,e){!e.computed&&this.nameIsConstructor(e.key)&&this.raise(g.ConstructorClassField,e.key),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){const r=this.parseClassPrivateProperty(e);t.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(t,e,r){r||e.computed||!this.nameIsConstructor(e.key)||this.raise(g.ConstructorClassField,e.key);const s=this.parseClassAccessorProperty(e);t.body.push(s),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,e,r,s,n,i){t.body.push(this.parseMethod(e,r,s,n,i,"ClassMethod",!0))}pushClassPrivateMethod(t,e,r,s){const n=this.parseMethod(e,r,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);const i="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,i)}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Jt()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,r,s=8331){if(H(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,s);else{if(!r&&e)throw this.raise(g.MissingClassName,this.state.startLoc);t.id=null}}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,e){const r=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,r),n=!s||this.eat(12),i=n&&this.eatExportStar(t),a=i&&this.maybeParseExportNamespaceSpecifier(t),o=n&&(!a||this.eat(12)),c=s||i;if(i&&!a){if(s&&this.unexpected(),e)throw this.raise(g.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}const u=this.maybeParseExportNamedSpecifiers(t);let l;if(s&&n&&!i&&!u&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),c||u){if(l=!1,e)throw this.raise(g.UnsupportedDecoratorExport,t);this.parseExportFrom(t,c)}else l=this.maybeParseExportDeclaration(t);if(c||u||l){var h;const r=t;if(this.checkExport(r,!0,!1,!!r.source),"ClassDeclaration"===(null==(h=r.declaration)?void 0:h.type))this.maybeTakeDecorators(e,r.declaration,r);else if(e)throw this.raise(g.UnsupportedDecoratorExport,t);return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=t,s=this.parseExportDefaultExpression();if(r.declaration=s,"ClassDeclaration"===s.type)this.maybeTakeDecorators(e,s,r);else if(e)throw this.raise(g.UnsupportedDecoratorExport,t);return this.checkExport(r,!0,!0),this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,e){if(e||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==e?void 0:e.loc.start);const r=e||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var e;null!=(e=t).specifiers||(e.specifiers=[]);const r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){const e=t;e.specifiers||(e.specifiers=[]);const r="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(r)),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(g.UnsupportedDefaultExport,this.state.startLoc);const e=this.parseMaybeAssignAllowIn();return this.semicolon(),e}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:t}=this.state;if(H(t)){if(95===t&&!this.state.containsEsc||100===t)return!1;if((130===t||129===t)&&!this.state.containsEsc){const{type:t}=this.lookahead();if(H(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const e=this.nextTokenStart(),r=this.isUnparsedContextual(e,"from");if(44===this.input.charCodeAt(e)||H(this.state.type)&&r)return!0;if(this.match(65)&&r){const t=this.input.charCodeAt(this.nextTokenStartSince(e+4));return 34===t||39===t}return!1}parseExportFrom(t,e){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):e&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:t}=this.state;return 26===t&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(g.UsingDeclarationExport,this.state.startLoc),!0):74===t||75===t||68===t||80===t||this.isLet()||this.isAsyncFunction()}checkExport(t,e,r,s){var n;if(e)if(r){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var i;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||null!=(i=e.extra)&&i.parenthesized||this.raise(g.ExportDefaultFromAsIdentifier,e)}}else if(null!=(n=t.specifiers)&&n.length)for(const e of t.specifiers){const{exported:t}=e,r="Identifier"===t.type?t.name:t.value;if(this.checkDuplicateExports(e,r),!s&&e.local){const{local:t}=e;"Identifier"!==t.type?this.raise(g.ExportBindingIsString,e,{localName:t.value,exportName:r}):(this.checkReservedWord(t.name,t.loc.start,!0,!1),this.scope.checkLocalExport(t))}}else if(t.declaration){const e=t.declaration;if("FunctionDeclaration"===e.type||"ClassDeclaration"===e.type){const{id:r}=e;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(t,r.name)}else if("VariableDeclaration"===e.type)for(const t of e.declarations)this.checkDeclaration(t.id)}}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(const e of t.properties)this.checkDeclaration(e);else if("ArrayPattern"===t.type)for(const e of t.elements)e&&this.checkDeclaration(e);else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&("default"===e?this.raise(g.DuplicateDefaultExport,t):this.raise(g.DuplicateExport,t,{exportName:e})),this.exportedIdentifiers.add(e)}parseExportSpecifiers(t){const e=[];let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;const s=this.isContextual(130),n=this.match(133),i=this.startNode();i.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(i,n,t,s))}return e}parseExportSpecifier(t,e,r,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=function(t){const{type:e,start:r,end:s,loc:n,range:i,extra:a}=t;if("Placeholder"===e)return function(t){return re(t)}(t);const o=Object.create(ee);return o.type=e,o.start=r,o.end=s,o.loc=n,o.range=i,void 0!==t.raw?o.raw=t.raw:o.extra=a,o.value=t.value,o}(t.local):t.exported||(t.exported=re(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){const t=this.parseStringLiteral(this.state.value),e=Oe.exec(t.value);return e&&this.raise(g.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return null!=t.assertions&&t.assertions.some((({key:t,value:e})=>"json"===e.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)))}checkImportReflection(t){const{specifiers:e}=t,r=1===e.length?e[0].type:null;if("source"===t.phase)"ImportDefaultSpecifier"!==r&&this.raise(g.SourcePhaseImportRequiresDefault,e[0].loc.start);else if("defer"===t.phase)"ImportNamespaceSpecifier"!==r&&this.raise(g.DeferImportRequiresNamespace,e[0].loc.start);else if(t.module){var s;"ImportDefaultSpecifier"!==r&&this.raise(g.ImportReflectionNotBinding,e[0].loc.start),(null==(s=t.assertions)?void 0:s.length)>0&&this.raise(g.ImportReflectionHasAssertion,e[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&"ExportAllDeclaration"!==t.type){const{specifiers:e}=t;if(null!=e){const t=e.find((t=>{let e;if("ExportSpecifier"===t.type?e=t.local:"ImportSpecifier"===t.type&&(e=t.imported),void 0!==e)return"Identifier"===e.type?"default"!==e.name:"default"!==e.value}));void 0!==t&&this.raise(g.ImportJSONBindingNotDefault,t.loc.start)}}}isPotentialImportPhase(t){return!t&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(t,e,r,s){e||("module"===r?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,e){if(!this.isPotentialImportPhase(e))return this.applyImportPhase(t,e,null),null;const r=this.parseIdentifier(!0),{type:s}=this.state;return(W(s)?98!==s||102===this.lookaheadCharCode():12!==s)?(this.resetPreviousIdentifierLeadingComments(r),this.applyImportPhase(t,e,r.name,r.loc.start),null):(this.applyImportPhase(t,e,null),r)}isPrecedingIdImportPhase(t){const{type:e}=this.state;return H(e)?98!==e||102===this.lookaheadCharCode():12!==e}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,e){t.specifiers=[];const r=!this.maybeParseDefaultImportSpecifier(t,e)||this.eat(12),s=r&&this.maybeParseStarImportSpecifier(t);return r&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return null!=t.specifiers||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,e,r){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,r))}finishImportSpecifier(t,e,r=8201){return this.checkLVal(t.local,{type:e},r),this.finishNode(t,e)}parseImportAttributes(){this.expect(5);const t=[],e=new Set;do{if(this.match(8))break;const r=this.startNode(),s=this.state.value;if(e.has(s)&&this.raise(g.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),e.add(s),this.match(133)?r.key=this.parseStringLiteral(s):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){const t=[],e=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(g.ModuleAttributeDifferentFromType,r.key),e.has(r.key.name)&&this.raise(g.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),e.add(r.key.name),this.expect(14),!this.match(133))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let e,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?e=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),e=this.parseImportAttributes()),r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(g.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),e=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))e=[];else{if(!this.hasPlugin("moduleAttributes"))return;e=[]}!r&&this.hasPlugin("importAssertions")?t.assertions=e:t.attributes=e}maybeParseDefaultImportSpecifier(t,e){if(e){const r=this.startNodeAtNode(e);return r.local=e,t.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!W(this.state.type)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(55)){const e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else{if(this.eat(14))throw this.raise(g.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const r=this.startNode(),s=this.match(133),n=this.isContextual(130);r.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(r,s,"type"===t.importKind||"typeof"===t.importKind,n,void 0);t.specifiers.push(i)}}parseImportSpecifier(t,e,r,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{const{imported:r}=t;if(e)throw this.raise(g.ImportBindingIsString,t,{importName:r.value});this.checkReservedWord(r.name,t.loc.start,!0,!0),t.local||(t.local=re(r))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return"Identifier"===t.type&&"this"===t.name}}class je extends Fe{constructor(t,e,r){super(t=function(t){if(null==t)return Object.assign({},Ne);if(null!=t.annexB&&!1!==t.annexB)throw new Error("The `annexB` option can only be set to `false`.");const e={};for(const s of Object.keys(Ne)){var r;e[s]=null!=(r=t[s])?r:Ne[s]}return e}(t),e),this.options=t,this.initializeScopes(),this.plugins=r,this.filename=t.sourceFilename}getScopeHandler(){return yt}parse(){this.enterInitialScopes();const t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}}const Re=function(t){const e={};for(const r of Object.keys(t))e[r]=X(t[r]);return e}(U);function Be(t,e){let r=je;const s=new Map;if(null!=t&&t.plugins){for(const e of t.plugins){let t,r;"string"==typeof e?t=e:[t,r]=e,s.has(t)||s.set(t,r||{})}!function(t){if(t.has("decorators")){if(t.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=t.get("decorators").decoratorsBeforeExport;if(null!=e&&"boolean"!=typeof e)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const r=t.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)throw new Error("'allowCallParenthesized' must be a boolean.")}if(t.has("flow")&&t.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(t.has("placeholders")&&t.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(t.has("pipelineOperator")){var e;const r=t.get("pipelineOperator").proposal;if(!Ae.includes(r)){const t=Ae.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${t}.`)}const s="hash"===(null==(e=t.get("recordAndTuple"))?void 0:e.syntaxType);if("hack"===r){if(t.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(t.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const e=t.get("pipelineOperator").topicToken;if(!ke.includes(e)){const t=ke.map((t=>`"${t}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${t}.`)}if("#"===e&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}else if("smart"===r&&s)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",t.get("recordAndTuple")])}\`.`)}if(t.has("moduleAttributes")){if(t.has("importAttributes")||t.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if("may-2020"!==t.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(t.has("importAttributes")&&t.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(t.has("recordAndTuple")){const e=t.get("recordAndTuple").syntaxType;if(null!=e){const t=["hash","bar"];if(!t.includes(e))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+t.map((t=>`'${t}'`)).join(", "))}}if(t.has("asyncDoExpressions")&&!t.has("doExpressions")){const t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(t.has("optionalChainingAssign")&&"2023-07"!==t.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}(s),r=function(t){const e=[];for(const r of Ce)t.has(r)&&e.push(r);const r=e.join("|");let s=Ye.get(r);if(!s){s=je;for(const t of e)s=Ee[t](s);Ye.set(r,s)}return s}(s)}return new r(t,e,s)}const Ye=new Map;e.parse=function(t,e){var r;if("unambiguous"!==(null==(r=e)?void 0:r.sourceType))return Be(e,t).parse();e=Object.assign({},e);try{e.sourceType="module";const r=Be(e,t),s=r.parse();if(r.sawUnambiguousESM)return s;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Be(e,t).parse()}catch(t){}else s.program.sourceType="script";return s}catch(r){try{return e.sourceType="script",Be(e,t).parse()}catch(t){}throw r}},e.parseExpression=function(t,e){const r=Be(e,t);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},e.tokTypes=Re},2559:(t,e,r)=>{"use strict";function s(t,e,r){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:r;throw new TypeError("Private element is not present on this object")}r.d(e,{A:()=>s})},6330:(t,e,r)=>{"use strict";function s(t,e,r,s,n,i,a){try{var o=t[i](a),c=o.value}catch(t){return void r(t)}o.done?e(c):Promise.resolve(c).then(s,n)}function n(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function o(t){s(a,n,i,o,c,"next",t)}function c(t){s(a,n,i,o,c,"throw",t)}o(void 0)}))}}r.d(e,{A:()=>n})},2016:(t,e,r)=>{"use strict";function s(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}r.d(e,{A:()=>s})},5152:(t,e,r)=>{"use strict";function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,{A:()=>s})},829:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(2559);function n(t,e){return t.get((0,s.A)(t,e))}},918:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(2016);function n(t,e,r){(0,s.A)(t,e),e.set(t,r)}},6121:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(2559);function n(t,e,r){return t.set((0,s.A)(t,e),r),r}},5536:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(2559);function n(t,e,r){return r((0,s.A)(t,e))}},4635:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(2016);function n(t,e){(0,s.A)(t,e),e.add(t)}},414:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(1369);function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(0,s.A)(n.key),n)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}},4586:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(1369);function n(t,e,r){return(e=(0,s.A)(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},9740:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var s=r(4586);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){(0,s.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},1369:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(7545);function n(t){var e=function(t,e){if("object"!=(0,s.A)(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=(0,s.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==(0,s.A)(e)?e:e+""}},7545:(t,e,r)=>{"use strict";function s(t){return s="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},s(t)}r.d(e,{A:()=>s})},2193:(t,e,r)=>{"use strict";r.d(e,{n:()=>n});var s=r(7551);const n=async t=>(await s.http.get("api/auth/login",t)).data},3443:(t,e,r)=>{"use strict";r.d(e,{e:()=>n});var s=r(7551);const n=async t=>(await s.http.get("api/v1/runtime_standalone",t)).data},7773:(t,e,r)=>{"use strict";r.d(e,{K:()=>n});var s=r(7551);const n=async(t,e)=>(await s.http.get("api/auth/v2/bootstrap",{...e,params:t})).data},9663:(t,e,r)=>{"use strict";r.d(e,{m:()=>n});var s=r(7551);const n=async(t,e,r)=>(await s.http.get(`api/auth/v2/bootstrap/${t}`,{...r,params:e})).data},9150:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s=r(7551);const n=async(t,e)=>(await s.http.post("api/contract/single_search",t,e)).data},8518:(t,e,r)=>{"use strict";r.d(e,{y:()=>a});var s=r(9740),n=r(6330),i=r(7551),a=function(){var t=(0,n.A)((function*(t,e,r,n){return(yield i.http.get("api/gateway/cmdb.instance.GetDetail/object/".concat(t,"/instance/").concat(e),(0,s.A)((0,s.A)({},n),{},{params:r}))).data}));return function(e,r,s,n){return t.apply(this,arguments)}}()},3733:(t,e,r)=>{"use strict";r.d(e,{n:()=>i});var s=r(6330),n=r(7551),i=function(){var t=(0,s.A)((function*(t,e,r){return(yield n.http.post("api/gateway/cmdb.instance.PostSearch/object/".concat(t,"/instance/_search"),e,r)).data}));return function(e,r,s){return t.apply(this,arguments)}}()},5075:(t,e,r)=>{"use strict";r.d(e,{D:()=>a});var s=r(9740),n=r(6330),i=r(7551),a=function(){var t=(0,n.A)((function*(t,e,r){return(yield i.http.get("api/gateway/micro_app.installed_micro_app.GetMenusInfo/api/v1/micro-app/menus/".concat(t),(0,s.A)((0,s.A)({},r),{},{params:e}))).data}));return function(e,r,s){return t.apply(this,arguments)}}()},8187:(t,e,r)=>{"use strict";r.d(e,{V:()=>i});var s=r(6330),n=r(7551),i=function(){var t=(0,s.A)((function*(t,e){return(yield n.http.post("api/gateway/micro_app.permission.ValidatePermissions/api/micro_app/v1/permission/validate",t,e)).data}));return function(e,r){return t.apply(this,arguments)}}()},4408:(t,e,r)=>{"use strict";if(r.d(e,{a:()=>a}),792==r.j)var s=r(6330);var n,i=r(7551),a=792==r.j?(n=(0,s.A)((function*(t,e){return(yield i.http.get("api/gateway/micro_app_standalone.runtime.RuntimeMicroAppStandalone/api/v1/micro_app_standalone/runtime/".concat(t),e)).data})),function(t,e){return n.apply(this,arguments)}):null},8638:(t,e,r)=>{"use strict";r.d(e,{k:()=>i});var s=r(6330),n=r(7551),i=function(){var t=(0,s.A)((function*(t,e){return(yield n.http.post("api/gateway/micro_app_standalone.runtime.SearchMicroAppStandalone/api/v1/micro_app_standalone/search",t,e)).data}));return function(e,r){return t.apply(this,arguments)}}()},3601:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var s={};try{s.EventTarget=(new EventTarget).constructor}catch(t){!function(t,e){var r=t.create,n=t.defineProperty,i=a.prototype;function a(){e.set(this,r(null))}function o(t,e,r){n(t,e,{configurable:!0,writable:!0,value:r})}function c(t){var e=t.options;return e&&e.once&&t.target.removeEventListener(this.type,t.listener),"function"==typeof t.listener?t.listener.call(t.target,this):t.listener.handleEvent(this),this._stopImmediatePropagationFlag}o(i,"addEventListener",(function(t,r,s){for(var n=e.get(this),i=n[t]||(n[t]=[]),a=0,o=i.length;a<o;a++)if(i[a].listener===r)return;i.push({target:this,listener:r,options:s})})),o(i,"dispatchEvent",(function(t){var r=e.get(this)[t.type];return r&&(o(t,"target",this),o(t,"currentTarget",this),r.slice(0).some(c,t),delete t.currentTarget,delete t.target),!0})),o(i,"removeEventListener",(function(t,r){for(var s=e.get(this),n=s[t]||(s[t]=[]),i=0,a=n.length;i<a;i++)if(n[i].listener===r)return void n.splice(i,1)})),s.EventTarget=a}(Object,new WeakMap)}const n=s.EventTarget},7542:(t,e,r)=>{"use strict";r.d(e,{X2:()=>k,Ot:()=>_,ki:()=>E,lO:()=>C});var s=r(4396),n={create:function(t){var e={time:(0,s.mU)(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(t){e.messagesCallback&&e.messagesCallback(t.data)},e},close:function(t){t.bc.close(),t.subFns=[]},onMessage:function(t,e){t.messagesCallback=e},postMessage:function(t,e){try{return t.bc.postMessage(e,!1),s.o}catch(t){return Promise.reject(t)}},canBeUsed:function(){if("undefined"!=typeof globalThis&&globalThis.Deno&&globalThis.Deno.args)return!0;if("undefined"==typeof window&&"undefined"==typeof self||"function"!=typeof BroadcastChannel)return!1;if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0},type:"native",averageResponseTime:function(){return 150},microSeconds:s.mU};class i{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,a()),this._to||(this._to=!0,setTimeout((()=>{this._to=!1,function(t){const e=a()-t.ttl,r=t.map[Symbol.iterator]();for(;;){const s=r.next().value;if(!s)return;const n=s[0];if(!(s[1]<e))return;t.map.delete(n)}}(this)}),0))}clear(){this.map.clear()}}function a(){return Date.now()}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return void 0===e.webWorkerSupport&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=45e3),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&"function"==typeof t.idb.onclose&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=6e4),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=12e4),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),void 0===e.node.useFastPath&&(e.node.useFastPath=!0),e}var c=s.mU,u="messages",l={durability:"relaxed"};function h(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function p(t){t.commit&&t.commit()}function d(t){t.closed||f(t).then((function(){return(0,s.yy)(t.options.idb.fallbackInterval)})).then((function(){return d(t)}))}function f(t){return t.closed?s.o:t.messagesCallback?function(t,e){var r=t.transaction(u,"readonly",l),s=r.objectStore(u),n=[],i=IDBKeyRange.bound(e+1,1/0);if(s.getAll){var a=s.getAll(i);return new Promise((function(t,e){a.onerror=function(t){return e(t)},a.onsuccess=function(e){t(e.target.result)}}))}return new Promise((function(t,a){var o=function(){try{return i=IDBKeyRange.bound(e+1,1/0),s.openCursor(i)}catch(t){return s.openCursor()}}();o.onerror=function(t){return a(t)},o.onsuccess=function(s){var i=s.target.result;i?i.value.id<e+1?i.continue(e+1):(n.push(i.value),i.continue()):(p(r),t(n))}}))}(t.db,t.lastCursorId).then((function(e){var r=e.filter((function(t){return!!t})).map((function(e){return e.id>t.lastCursorId&&(t.lastCursorId=e.id),e})).filter((function(e){return function(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}(e,t)})).sort((function(t,e){return t.time-e.time}));return r.forEach((function(e){t.messagesCallback&&(t.eMIs.add(e.id),t.messagesCallback(e.data))})),s.o})):s.o}var m={create:function(t,e){return e=o(e),function(t){var e="pubkey.broadcast-channel-0-"+t,r=h().open(e);return r.onupgradeneeded=function(t){t.target.result.createObjectStore(u,{keyPath:"id",autoIncrement:!0})},new Promise((function(t,e){r.onerror=function(t){return e(t)},r.onsuccess=function(){t(r.result)}}))}(t).then((function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:(0,s.zs)(),eMIs:new i(2*e.idb.ttl),writeBlockPromise:s.o,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},d(n),n}))},close:function(t){t.closed=!0,t.db.close()},onMessage:function(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,f(t)},postMessage:function(t,e){return t.writeBlockPromise=t.writeBlockPromise.then((function(){return function(t,e,r){var s={uuid:e,time:Date.now(),data:r},n=t.transaction([u],"readwrite",l);return new Promise((function(t,e){n.oncomplete=function(){return t()},n.onerror=function(t){return e(t)},n.objectStore(u).add(s),p(n)}))}(t.db,t.uuid,e)})).then((function(){0===(0,s.HO)(0,10)&&function(t){return(e=t.db,r=t.options.idb.ttl,s=Date.now()-r,n=e.transaction(u,"readonly",l),i=n.objectStore(u),a=[],new Promise((function(t){i.openCursor().onsuccess=function(e){var r=e.target.result;if(r){var i=r.value;i.time<s?(a.push(i),r.continue()):(p(n),t(a))}else t(a)}}))).then((function(e){return function(t,e){if(t.closed)return Promise.resolve([]);var r=t.db.transaction(u,"readwrite",l).objectStore(u);return Promise.all(e.map((function(t){var e=r.delete(t);return new Promise((function(t){e.onsuccess=function(){return t()}}))})))}(t,e.map((function(t){return t.id})))}));var e,r,s,n,i,a}(t)})),t.writeBlockPromise},canBeUsed:function(){return!!h()},type:"idb",averageResponseTime:function(t){return 2*t.idb.fallbackInterval},microSeconds:c},y=s.mU;function g(){var t;if("undefined"==typeof window)return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch(t){}return t}function v(t){return"pubkey.broadcastChannel-"+t}function x(){var t=g();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch(t){return!1}return!0}var b={create:function(t,e){if(e=o(e),!x())throw new Error("BroadcastChannel: localstorage cannot be used");var r=(0,s.zs)(),n=new i(e.localstorage.removeTimeout),a={channelName:t,uuid:r,eMIs:n};return a.listener=function(t,e){var s=v(t),i=function(t){var e;t.key===s&&(e=JSON.parse(t.newValue),a.messagesCallback&&e.uuid!==r&&e.token&&!n.has(e.token)&&(e.data.time&&e.data.time<a.messagesCallbackTime||(n.add(e.token),a.messagesCallback(e.data))))};return window.addEventListener("storage",i),i}(t),a},close:function(t){var e;e=t.listener,window.removeEventListener("storage",e)},onMessage:function(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e},postMessage:function(t,e){return new Promise((function(r){(0,s.yy)().then((function(){var n=v(t.channelName),i={token:(0,s.zs)(),time:Date.now(),data:e,uuid:t.uuid},a=JSON.stringify(i);g().setItem(n,a);var o=document.createEvent("Event");o.initEvent("storage",!0,!0),o.key=n,o.newValue=a,window.dispatchEvent(o),r()}))}))},canBeUsed:x,type:"localstorage",averageResponseTime:function(){var t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?240:120},microSeconds:y},w=r(3459),P=[n,m,b];function T(t){var e=[].concat(t.methods,P).filter(Boolean);if(t.type){if("simulate"===t.type)return w.MQ;var r=e.find((function(e){return e.type===t.type}));if(r)return r;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||(e=e.filter((function(t){return"idb"!==t.type})));var s=e.find((function(t){return t.canBeUsed()}));if(s)return s;throw new Error("No usable method found in "+JSON.stringify(P.map((function(t){return t.type}))))}var S,_=new Set,A=0,k=function(t,e){var r,n;this.id=A++,_.add(this),this.name=t,S&&(e=S),this.options=o(e),this.method=T(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,n=(r=this).method.create(r.name,r.options),(0,s.yL)(n)?(r._prepP=n,n.then((function(t){r._state=t}))):r._state=n};function E(t){var e=T(t=o(t));return"node"===e.type?e.clearNodeFolder().then((function(){return!0})):s.fg}function C(t){S=t}function N(t,e,r){var n={time:t.method.microSeconds(),type:e,data:r};return(t._prepP?t._prepP:s.o).then((function(){var e=t.method.postMessage(t._state,n);return t._uMP.add(e),e.catch().then((function(){return t._uMP.delete(e)})),e}))}function I(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function M(t,e,r){t._addEL[e].push(r),function(t){if(!t._iL&&I(t)){var e=function(e){t._addEL[e.type].forEach((function(t){e.time>=t.time&&t.fn(e.data)}))},r=t.method.microSeconds();t._prepP?t._prepP.then((function(){t._iL=!0,t.method.onMessage(t._state,e,r)})):(t._iL=!0,t.method.onMessage(t._state,e,r))}}(t)}function L(t,e,r){t._addEL[e]=t._addEL[e].filter((function(t){return t!==r})),function(t){if(t._iL&&!I(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}(t)}k._pubkey=!0,k.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return N(this,"message",t)},postInternal:function(t){return N(this,"internal",t)},set onmessage(t){var e={time:this.method.microSeconds(),fn:t};L(this,"message",this._onML),t&&"function"==typeof t?(this._onML=e,M(this,"message",e)):this._onML=null},addEventListener:function(t,e){M(this,t,{time:this.method.microSeconds(),fn:e})},removeEventListener:function(t,e){L(this,t,this._addEL[t].find((function(t){return t.fn===e})))},close:function(){var t=this;if(!this.closed){_.delete(this),this.closed=!0;var e=this._prepP?this._prepP:s.o;return this._onML=null,this._addEL.message=[],e.then((function(){return Promise.all(Array.from(t._uMP))})).then((function(){return Promise.all(t._befC.map((function(t){return t()})))})).then((function(){return t.method.close(t._state)}))}},get type(){return this.method.type},get isClosed(){return this.closed}}},706:(t,e,r)=>{"use strict";if(r.r(e),r.d(e,{BroadcastChannel:()=>s.X2,OPEN_BROADCAST_CHANNELS:()=>s.Ot,beLeader:()=>i.P,clearNodeFolder:()=>s.ki,createLeaderElection:()=>n.X,enforceOptions:()=>s.lO}),792==r.j)var s=r(7542);if(792==r.j)var n=r(5840);if(792==r.j)var i=r(52)},52:(t,e,r)=>{"use strict";r.d(e,{P:()=>l,r:()=>u});var s=r(2171),n=r(311),i="[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?n.i:s.O,a=new Set,o=!1;function c(){var t=[];return a.forEach((function(e){t.push(e()),a.delete(e)})),Promise.all(t)}function u(t,e){var r={context:"leader",action:e,token:t.token};return t.broadcastChannel.postInternal(r)}function l(t){t.isLeader=!0,t._hasLeader=!0;var e=function(t){if(o||(o=!0,i(c)),"function"!=typeof t)throw new Error("Listener is no function");return a.add(t),{remove:function(){return a.delete(t)},run:function(){return a.delete(t),t()}}}((function(){return t.die()}));t._unl.push(e);var r=function(e){"leader"===e.context&&"apply"===e.action&&u(t,"tell"),"leader"!==e.context||"tell"!==e.action||t._dpLC||(t._dpLC=!0,t._dpL(),u(t,"tell"))};return t.broadcastChannel.addEventListener("internal",r),t._lstns.push(r),u(t,"tell")}},6268:(t,e,r)=>{"use strict";r.d(e,{_:()=>i});var s=r(4396),n=r(52),i=function(t,e){var r=this;this.broadcastChannel=t,t._befC.push((function(){return r.die()})),this._options=e,this.isLeader=!1,this.isDead=!1,this.token=(0,s.zs)(),this._lstns=[],this._unl=[],this._dpL=function(){},this._dpLC=!1,this._wKMC={},this.lN="pubkey-bc||"+t.method.type+"||"+t.name};i.prototype={hasLeader:function(){var t=this;return navigator.locks.query().then((function(e){var r=e.held?e.held.filter((function(e){return e.name===t.lN})):[];return!!(r&&r.length>0)}))},awaitLeadership:function(){var t=this;if(!this._wLMP){this._wKMC.c=new AbortController;var e=new Promise((function(e,r){t._wKMC.res=e,t._wKMC.rej=r}));this._wLMP=new Promise((function(r){navigator.locks.request(t.lN,{signal:t._wKMC.c.signal},(function(){return t._wKMC.c=void 0,(0,n.P)(t),r(),e})).catch((function(){}))}))}return this._wLMP},set onduplicate(t){},die:function(){var t=this;return this._lstns.forEach((function(e){return t.broadcastChannel.removeEventListener("internal",e)})),this._lstns=[],this._unl.forEach((function(t){return t.remove()})),this._unl=[],this.isLeader&&(this.isLeader=!1),this.isDead=!0,this._wKMC.res&&this._wKMC.res(),this._wKMC.c&&this._wKMC.c.abort("LeaderElectionWebLock.die() called"),(0,n.r)(this,"death")}}},5840:(t,e,r)=>{"use strict";r.d(e,{X:()=>o});var s=r(4396),n=r(52);if(792==r.j)var i=r(6268);var a=function(t,e){var r=this;this.broadcastChannel=t,this._options=e,this.isLeader=!1,this._hasLeader=!1,this.isDead=!1,this.token=(0,s.zs)(),this._aplQ=s.o,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1;var n=function(t){"leader"===t.context&&("death"===t.action&&(r._hasLeader=!1),"tell"===t.action&&(r._hasLeader=!0))};this.broadcastChannel.addEventListener("internal",n),this._lstns.push(n)};function o(t,e){if(t._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");e=function(t,e){return t||(t={}),(t=JSON.parse(JSON.stringify(t))).fallbackInterval||(t.fallbackInterval=3e3),t.responseTime||(t.responseTime=e.method.averageResponseTime(e.options)),t}(e,t);var r=(0,s.UU)()?new i._(t,e):new a(t,e);return t._befC.push((function(){return r.die()})),t._leaderElector=r,r}a.prototype={hasLeader:function(){return Promise.resolve(this._hasLeader)},applyOnce:function(t){var e=this;return this.isLeader?(0,s.yy)(0,!0):this.isDead?(0,s.yy)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then((function(){return function(){if(e.isLeader)return s.aS;var r,i=!1,a=new Promise((function(t){r=function(){i=!0,t()}})),o=function(t){"leader"===t.context&&t.token!=e.token&&("apply"===t.action&&t.token>e.token&&r(),"tell"===t.action&&(r(),e._hasLeader=!0))};e.broadcastChannel.addEventListener("internal",o);var c=t?4*e._options.responseTime:e._options.responseTime;return(0,n.r)(e,"apply").then((function(){return Promise.race([(0,s.yy)(c),a.then((function(){return Promise.reject(new Error)}))])})).then((function(){return(0,n.r)(e,"apply")})).then((function(){return Promise.race([(0,s.yy)(c),a.then((function(){return Promise.reject(new Error)}))])})).catch((function(){})).then((function(){return e.broadcastChannel.removeEventListener("internal",o),!i&&(0,n.P)(e).then((function(){return!0}))}))}()})).then((function(){e._aplQC=e._aplQC-1})),this._aplQ.then((function(){return e.isLeader})))},awaitLeadership:function(){return this._aLP||(this._aLP=(t=this).isLeader?s.o:new Promise((function(e){var r=!1;function n(){r||(r=!0,t.broadcastChannel.removeEventListener("internal",i),e(!0))}t.applyOnce().then((function(){t.isLeader&&n()})),function e(){return(0,s.yy)(t._options.fallbackInterval).then((function(){if(!t.isDead&&!r)return t.isLeader?void n():t.applyOnce(!0).then((function(){t.isLeader?n():e()}))}))}();var i=function(e){"leader"===e.context&&"death"===e.action&&(t._hasLeader=!1,t.applyOnce().then((function(){t.isLeader&&n()})))};t.broadcastChannel.addEventListener("internal",i),t._lstns.push(i)}))),this._aLP;var t},set onduplicate(t){this._dpL=t},die:function(){var t=this;return this._lstns.forEach((function(e){return t.broadcastChannel.removeEventListener("internal",e)})),this._lstns=[],this._unl.forEach((function(t){return t.remove()})),this._unl=[],this.isLeader&&(this._hasLeader=!1,this.isLeader=!1),this.isDead=!0,(0,n.r)(this,"death")}}},3459:(t,e,r)=>{"use strict";r.d(e,{MQ:()=>i});var s=r(4396).mU,n=new Set,i={create:function(t){var e={time:s(),name:t,messagesCallback:null};return n.add(e),e},close:function(t){n.delete(t)},onMessage:function(t,e){t.messagesCallback=e},postMessage:function(t,e){return new Promise((function(r){return setTimeout((function(){Array.from(n).forEach((function(r){r.name===t.name&&r!==t&&r.messagesCallback&&r.time<e.time&&r.messagesCallback(e)})),r()}),5)}))},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:s}},4396:(t,e,r)=>{"use strict";function s(t){return t&&"function"==typeof t.then}r.d(e,{HO:()=>c,UU:()=>p,aS:()=>i,fg:()=>n,mU:()=>h,o:()=>a,yL:()=>s,yy:()=>o,zs:()=>u});var n=Promise.resolve(!1),i=Promise.resolve(!0),a=Promise.resolve();function o(t,e){return t||(t=0),new Promise((function(r){return setTimeout((function(){return r(e)}),t)}))}function c(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function u(){return Math.random().toString(36).substring(2)}var l=0;function h(){var t=1e3*Date.now();return t<=l&&(t=l+1),l=t,t}function p(){return"undefined"!=typeof navigator&&void 0!==navigator.locks&&"function"==typeof navigator.locks.request}},726:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>w});var s=r(5152),n=r(414),i=[],a=i.forEach,o=i.slice,c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,u={name:"cookie",lookup:function(t){var e;if(t.lookupCookie&&"undefined"!=typeof document){var r=function(t){for(var e="".concat(t,"="),r=document.cookie.split(";"),s=0;s<r.length;s++){for(var n=r[s];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(e))return n.substring(e.length,n.length)}return null}(t.lookupCookie);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupCookie&&"undefined"!=typeof document&&function(t,e,r,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+60*r*1e3)),s&&(n.domain=s),document.cookie=function(t,e,r){var s=r||{};s.path=s.path||"/";var n=encodeURIComponent(e),i="".concat(t,"=").concat(n);if(s.maxAge>0){var a=s.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(a))}if(s.domain){if(!c.test(s.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(s.domain)}if(s.path){if(!c.test(s.path))throw new TypeError("option path is invalid");i+="; Path=".concat(s.path)}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw new TypeError("option expires is invalid");i+="; Expires=".concat(s.expires.toUTCString())}if(s.httpOnly&&(i+="; HttpOnly"),s.secure&&(i+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i}(t,encodeURIComponent(e),n)}(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},l={name:"querystring",lookup:function(t){var e;if("undefined"!=typeof window){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var s=r.substring(1).split("&"),n=0;n<s.length;n++){var i=s[n].indexOf("=");i>0&&s[n].substring(0,i)===t.lookupQuerystring&&(e=s[n].substring(i+1))}}return e}},h=null,p=function(){if(null!==h)return h;try{h="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){h=!1}return h},d={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&p()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&p()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},f=null,m=function(){if(null!==f)return f;try{f="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){f=!1}return f},y={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&m()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&m()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},g={name:"navigator",lookup:function(t){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)e.push(navigator.languages[r]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},v={name:"htmlTag",lookup:function(t){var e,r=t.htmlTag||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(e=r.getAttribute("lang")),e}},x={name:"path",lookup:function(t){var e;if("undefined"!=typeof window){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if("number"==typeof t.lookupFromPathIndex){if("string"!=typeof r[t.lookupFromPathIndex])return;e=r[t.lookupFromPathIndex].replace("/","")}else e=r[0].replace("/","")}return e}},b={name:"subdomain",lookup:function(t){var e="number"==typeof t.lookupFromSubdomainIndex?t.lookupFromSubdomainIndex+1:1,r="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[e]}},w=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,t),this.type="languageDetector",this.detectors={},this.init(e,r)}return(0,n.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=function(t){return a.call(o.call(arguments,1),(function(e){if(e)for(var r in e)void 0===t[r]&&(t[r]=e[r])})),t}(e,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(t){return t.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(u),this.addDetector(l),this.addDetector(d),this.addDetector(y),this.addDetector(g),this.addDetector(v),this.addDetector(x),this.addDetector(b)}},{key:"addDetector",value:function(t){return this.detectors[t.name]=t,this}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var r=[];return t.forEach((function(t){if(e.detectors[t]){var s=e.detectors[t].lookup(e.options);s&&"string"==typeof s&&(s=[s]),s&&(r=r.concat(s))}})),r=r.map((function(t){return e.options.convertDetectedLanguage(t)})),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var r=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){r.detectors[e]&&r.detectors[e].cacheUserLanguage(t,r.options)})))}}]),t}();w.type="languageDetector"},843:(t,e,r)=>{"use strict";r.r(e),r.d(e,{changeLanguage:()=>mt,createInstance:()=>ut,default:()=>ct,dir:()=>lt,exists:()=>vt,getFixedT:()=>yt,hasLoadedNamespace:()=>bt,init:()=>ht,loadLanguages:()=>Pt,loadNamespaces:()=>wt,loadResources:()=>pt,reloadResources:()=>dt,setDefaultNamespace:()=>xt,t:()=>gt,use:()=>ft});var s=r(7545),n=r(5152),i=r(414);function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}function u(t,e){if(e&&("object"==(0,s.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return a(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var h=r(4586);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=Array(e);r<e;r++)s[r]=t[r];return s}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},y=new(function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.A)(this,t),this.init(e,r)}return(0,i.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||m,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,r,s){return s&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,f(f({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),g=function(){function t(){(0,n.A)(this,t),this.observers={}}return(0,i.A)(t,[{key:"on",value:function(t,e){var r=this;return t.split(" ").forEach((function(t){r.observers[t]=r.observers[t]||[],r.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach((function(t){t.apply(void 0,r)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(e){e.apply(e,[t].concat(r))}))}}]),t}();function v(){var t,e,r=new Promise((function(r,s){t=r,e=s}));return r.resolve=t,r.reject=e,r}function x(t){return null==t?"":""+t}function b(t,e,r){function s(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function n(){return!t||"string"==typeof t}for(var i="string"!=typeof e?[].concat(e):e.split(".");i.length>1;){if(n())return{};var a=s(i.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return n()?{}:{obj:t,k:s(i.shift())}}function w(t,e,r){var s=b(t,e,Object);s.obj[s.k]=r}function P(t,e){var r=b(t,e),s=r.obj,n=r.k;if(s)return s[n]}function T(t,e,r){for(var s in e)"__proto__"!==s&&"constructor"!==s&&(s in t?"string"==typeof t[s]||t[s]instanceof String||"string"==typeof e[s]||e[s]instanceof String?r&&(t[s]=e[s]):T(t[s],e[s],r):t[s]=e[s]);return t}function S(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function A(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return _[t]})):t}var k="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,E=[" ",",","?","!",";"];function C(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var s=e.split(r),n=t,i=0;i<s.length;++i){if(!n)return;if("string"==typeof n[s[i]]&&i+1<s.length)return;if(void 0===n[s[i]]){for(var a=2,o=s.slice(i,i+a).join(r),c=n[o];void 0===c&&s.length>i+a;)a++,c=n[o=s.slice(i,i+a).join(r)];if(void 0===c)return;if(null===c)return null;if(e.endsWith(o)){if("string"==typeof c)return c;if(o&&"string"==typeof c[o])return c[o]}var u=s.slice(i+a).join(r);return u?C(c,u,r):void 0}n=n[s[i]]}return n}}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function I(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var M=function(t){c(o,t);var e,r,s=(e=o,r=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,s=l(e);if(r){var n=l(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return u(this,t)});function o(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,n.A)(this,o),e=s.call(this),k&&g.call(a(e)),e.data=t||{},e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return(0,i.A)(o,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,i=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[t,e];r&&"string"!=typeof r&&(a=a.concat(r)),r&&"string"==typeof r&&(a=a.concat(n?r.split(n):r)),t.indexOf(".")>-1&&(a=t.split("."));var o=P(this.data,a);return o||!i||"string"!=typeof r?o:C(this.data&&this.data[t]&&this.data[t][e],r,n)}},{key:"addResource",value:function(t,e,r,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=[t,e];r&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=e,e=(a=t.split("."))[1]),this.addNamespaces(e),w(this.data,a,s),n.silent||this.emit("added",t,e,r,s)}},{key:"addResources",value:function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var n in r)"string"!=typeof r[n]&&"[object Array]"!==Object.prototype.toString.apply(r[n])||this.addResource(t,e,n,r[n],{silent:!0});s.silent||this.emit("added",t,e,r)}},{key:"addResourceBundle",value:function(t,e,r,s,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];t.indexOf(".")>-1&&(s=r,r=e,e=(a=t.split("."))[1]),this.addNamespaces(e);var o=P(this.data,a)||{};s?T(o,r,n):o=I(I({},o),r),w(this.data,a,o),i.silent||this.emit("added",t,e,r)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?I(I({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((function(t){return e[t]&&Object.keys(e[t]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}(g),L={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,s,n){var i=this;return t.forEach((function(t){i.processors[t]&&(e=i.processors[t].process(e,r,s,n))})),e}};function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var F={},j=function(t){c(h,t);var e,r,o=(e=h,r=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,s=l(e);if(r){var n=l(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return u(this,t)});function h(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.A)(this,h),e=o.call(this),k&&g.call(a(e)),function(t,e,r){["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(t){e[t]&&(r[t]=e[t])}))}(0,t,a(e)),e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=y.create("translator"),e}return(0,i.A)(h,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var r=this.resolve(t,e);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(t,e){var r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var s=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,n=e.ns||this.options.defaultNS||[],i=r&&t.indexOf(r)>-1,a=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,r){e=e||"",r=r||"";var s=E.filter((function(t){return e.indexOf(t)<0&&r.indexOf(t)<0}));if(0===s.length)return!0;var n=new RegExp("(".concat(s.map((function(t){return"?"===t?"\\?":t})).join("|"),")")),i=!n.test(t);if(!i){var a=t.indexOf(r);a>0&&!n.test(t.substring(0,a))&&(i=!0)}return i}(t,r,s));if(i&&!a){var o=t.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:t,namespaces:n};var c=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(c[0])>-1)&&(n=c.shift()),t=c.join(s)}return"string"==typeof n&&(n=[n]),{key:t,namespaces:n}}},{key:"translate",value:function(t,e,r){var n=this;if("object"!==(0,s.A)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"===(0,s.A)(e)&&(e=D({},e)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,a=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,o=this.extractFromKey(t[t.length-1],e),c=o.key,u=o.namespaces,l=u[u.length-1],p=e.lng||this.language,d=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(d){var f=e.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(l).concat(f).concat(c),usedKey:c,exactUsedKey:c,usedLng:p,usedNS:l}:"".concat(l).concat(f).concat(c)}return i?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:l}:c}var m=this.resolve(t,e),y=m&&m.res,g=m&&m.usedKey||c,v=m&&m.exactUsedKey||c,x=Object.prototype.toString.apply(y),b=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&y&&"string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(x)<0&&("string"!=typeof b||"[object Array]"!==x)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,D(D({},e),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return i?(m.res=P,m):P}if(a){var T="[object Array]"===x,S=T?[]:{},_=T?v:g;for(var A in y)if(Object.prototype.hasOwnProperty.call(y,A)){var k="".concat(_).concat(a).concat(A);S[A]=this.translate(k,D(D({},e),{joinArrays:!1,ns:u})),S[A]===k&&(S[A]=y[A])}y=S}}else if(w&&"string"==typeof b&&"[object Array]"===x)(y=y.join(b))&&(y=this.extendTranslation(y,t,e,r));else{var E=!1,C=!1,N=void 0!==e.count&&"string"!=typeof e.count,I=h.hasDefaultValue(e),M=N?this.pluralResolver.getSuffix(p,e.count,e):"",L=e["defaultValue".concat(M)]||e.defaultValue;!this.isValidLookup(y)&&I&&(E=!0,y=L),this.isValidLookup(y)||(C=!0,y=c);var O=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:y,F=I&&L!==y&&this.options.updateMissing;if(C||E||F){if(this.logger.log(F?"updateKey":"missingKey",p,l,c,F?L:y),a){var j=this.resolve(c,D(D({},e),{},{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var Y=0;Y<B.length;Y++)R.push(B[Y]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(e.lng||this.language):R.push(e.lng||this.language);var U=function(t,r,s){var i=I&&s!==y?s:O;n.options.missingKeyHandler?n.options.missingKeyHandler(t,l,r,i,F,e):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(t,l,r,i,F,e),n.emit("missingKey",t,l,r,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?R.forEach((function(t){n.pluralResolver.getSuffixes(t,e).forEach((function(r){U([t],c+r,e["defaultValue".concat(r)]||L)}))})):U(R,c,L))}y=this.extendTranslation(y,t,e,m,r),C&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(l,":").concat(c)),(C||E)&&this.options.parseMissingKeyHandler&&(y="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,E?y:void 0):this.options.parseMissingKeyHandler(y))}return i?(m.res=y,m):y}},{key:"extendTranslation",value:function(t,e,r,s,n){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,D(D({},this.options.interpolation.defaultVariables),r),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(D(D({},r),{interpolation:D(D({},this.options.interpolation),r.interpolation)}));var a,o="string"==typeof t&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){var c=t.match(this.interpolator.nestingRegexp);a=c&&c.length}var u=r.replace&&"string"!=typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(u=D(D({},this.options.interpolation.defaultVariables),u)),t=this.interpolator.interpolate(t,u,r.lng||this.language,r),o){var l=t.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&s&&s.res&&(r.lng=s.usedLng),!1!==r.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,s=new Array(t),a=0;a<t;a++)s[a]=arguments[a];return n&&n[0]===s[0]&&!r.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(s[0]," in key: ").concat(e[0])),null):i.translate.apply(i,s.concat([e]))}),r)),r.interpolation&&this.interpolator.reset()}var h=r.postProcess||this.options.postProcess,p="string"==typeof h?[h]:h;return null!=t&&p&&p.length&&!1!==r.applyPostProcessor&&(t=L.handle(p,t,e,this.options&&this.options.postProcessPassResolved?D({i18nResolved:s},r):r,this)),t}},{key:"resolve",value:function(t){var e,r,s,n,i,a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!a.isValidLookup(e)){var c=a.extractFromKey(t,o),u=c.key;r=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var h=void 0!==o.count&&"string"!=typeof o.count,p=h&&!o.ordinal&&0===o.count&&a.pluralResolver.shouldUseIntlApi(),d=void 0!==o.context&&("string"==typeof o.context||"number"==typeof o.context)&&""!==o.context,f=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);l.forEach((function(t){a.isValidLookup(e)||(i=t,!F["".concat(f[0],"-").concat(t)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(F["".concat(f[0],"-").concat(t)]=!0,a.logger.warn('key "'.concat(r,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(r){if(!a.isValidLookup(e)){n=r;var i,c=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,u,r,t,o);else{var l;h&&(l=a.pluralResolver.getSuffix(r,o.count,o));var f="".concat(a.options.pluralSeparator,"zero");if(h&&(c.push(u+l),p&&c.push(u+f)),d){var m="".concat(u).concat(a.options.contextSeparator).concat(o.context);c.push(m),h&&(c.push(m+l),p&&c.push(m+f))}}for(;i=c.pop();)a.isValidLookup(e)||(s=i,e=a.getResource(r,t,i,o))}})))}))}})),{res:e,usedKey:r,exactUsedKey:s,usedLng:n,usedNS:i}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,r,s):this.resourceStore.getResource(t,e,r,s)}}],[{key:"hasDefaultValue",value:function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}]),h}(g);function R(t){return t.charAt(0).toUpperCase()+t.slice(1)}var B=function(){function t(e){(0,n.A)(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return(0,i.A)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.split("-");return this.options.lowerCaseLng?r=r.map((function(t){return t.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=R(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),e.indexOf(r[1].toLowerCase())>-1&&(r[1]=R(r[1].toLowerCase())),e.indexOf(r[2].toLowerCase())>-1&&(r[2]=R(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,r=this;return t?(t.forEach((function(t){if(!e){var s=r.formatLanguageCode(t);r.options.supportedLngs&&!r.isSupportedCode(s)||(e=s)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var s=r.getLanguagePartFromCode(t);if(r.isSupportedCode(s))return e=s;e=r.options.supportedLngs.find((function(t){return t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:0===t.indexOf(s)?t:void 0}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,e){var r=this,s=this.getFallbackCodes(e||this.options.fallbackLng||[],t),n=[],i=function(t){t&&(r.isSupportedCode(t)?n.push(t):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(t))):"string"==typeof t&&i(this.formatLanguageCode(t)),s.forEach((function(t){n.indexOf(t)<0&&i(r.formatLanguageCode(t))})),n}}]),t}(),Y=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],U={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},H=["v1","v2","v3"],W={zero:0,one:1,two:2,few:3,many:4,other:5},z=function(){function t(e){var r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.A)(this,t),this.languageUtils=e,this.options=s,this.logger=y.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(r={},Y.forEach((function(t){t.lngs.forEach((function(e){r[e]={numbers:t.nr,plurals:U[t.fc]}}))})),r)}return(0,i.A)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,e);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,r).map((function(t){return"".concat(e).concat(t)}))}},{key:"getSuffixes",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.getRule(t,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((function(t,e){return W[t]-W[e]})).map((function(t){return"".concat(e.options.prepend).concat(t)})):s.numbers.map((function(s){return e.getSuffix(t,s,r)})):[]}},{key:"getSuffix",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.getRule(t,r);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(s.select(e)):this.getSuffixRetroCompatible(s,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var r=this,s=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),n=t.numbers[s];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===n?n="plural":1===n&&(n=""));var i=function(){return r.options.prepend&&n.toString()?r.options.prepend+n.toString():n.toString()};return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?"_plural_".concat(n.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?i():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}},{key:"shouldUseIntlApi",value:function(){return!H.includes(this.options.compatibilityJSON)}}]),t}();function V(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?V(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $(t,e,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(t,e,r){var s=P(t,r);return void 0!==s?s:P(e,r)}(t,e,r);return!i&&n&&"string"==typeof r&&void 0===(i=C(t,r,s))&&(i=C(e,r,s)),i}var K=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.A)(this,t),this.logger=y.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return(0,i.A)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:A,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?S(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?S(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?S(e.nestingPrefix):e.nestingPrefixEscaped||S("$t("),this.nestingSuffix=e.nestingSuffix?S(e.nestingSuffix):e.nestingSuffixEscaped||S(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(t,e,r,s){var n,i,a,o=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(t.indexOf(o.formatSeparator)<0){var n=$(e,c,t,o.options.keySeparator,o.options.ignoreJSONStructure);return o.alwaysFormat?o.format(n,void 0,r,q(q(q({},s),e),{},{interpolationkey:t})):n}var i=t.split(o.formatSeparator),a=i.shift().trim(),u=i.join(o.formatSeparator).trim();return o.format($(e,c,a,o.options.keySeparator,o.options.ignoreJSONStructure),u,r,q(q(q({},s),e),{},{interpolationkey:a}))};this.resetRegExp();var h=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&void 0!==s.interpolation.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return u(t)}},{regex:this.regexp,safeValue:function(t){return o.escapeValue?u(o.escape(t)):u(t)}}].forEach((function(e){for(a=0;n=e.regex.exec(t);){var r=n[1].trim();if(void 0===(i=l(r)))if("function"==typeof h){var c=h(t,n,s);i="string"==typeof c?c:""}else if(s&&Object.prototype.hasOwnProperty.call(s,r))i="";else{if(p){i=n[0];continue}o.logger.warn("missed to pass in variable ".concat(r," for interpolating ").concat(t)),i=""}else"string"==typeof i||o.useRawValueToEscape||(i=x(i));var u=e.safeValue(i);if(t=t.replace(n[0],u),p?(e.regex.lastIndex+=i.length,e.regex.lastIndex-=n[0].length):e.regex.lastIndex=0,++a>=o.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var r,s,n,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(t,e){var r=this.nestingOptionsSeparator;if(t.indexOf(r)<0)return t;var s=t.split(new RegExp("".concat(r,"[ ]*{"))),i="{".concat(s[1]);t=s[0];var a=(i=this.interpolate(i,n)).match(/'/g),o=i.match(/"/g);(a&&a.length%2==0&&!o||o.length%2!=0)&&(i=i.replace(/'/g,'"'));try{n=JSON.parse(i),e&&(n=q(q({},e),n))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(r).concat(i)}return delete n.defaultValue,t}for(;r=this.nestingRegexp.exec(t);){var c=[];(n=(n=q({},a)).replace&&"string"!=typeof n.replace?n.replace:n).applyPostProcessor=!1,delete n.defaultValue;var u=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){var l=r[1].split(this.formatSeparator).map((function(t){return t.trim()}));r[1]=l.shift(),c=l,u=!0}if((s=e(o.call(this,r[1].trim(),n),n))&&r[0]===t&&"string"!=typeof s)return s;"string"!=typeof s&&(s=x(s)),s||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),s=""),u&&(s=c.reduce((function(t,e){return i.format(t,e,a.lng,q(q({},a),{},{interpolationkey:r[1].trim()}))}),s.trim())),t=t.replace(r[0],s),this.regexp.lastIndex=0}return t}}]),t}();function J(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function G(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?J(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):J(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X(t){var e={};return function(r,s,n){var i=s+JSON.stringify(n),a=e[i];return a||(a=t(s,n),e[i]=a),a(r)}}var Z=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.A)(this,t),this.logger=y.create("formatter"),this.options=e,this.formats={number:X((function(t,e){var r=new Intl.NumberFormat(t,G({},e));return function(t){return r.format(t)}})),currency:X((function(t,e){var r=new Intl.NumberFormat(t,G(G({},e),{},{style:"currency"}));return function(t){return r.format(t)}})),datetime:X((function(t,e){var r=new Intl.DateTimeFormat(t,G({},e));return function(t){return r.format(t)}})),relativetime:X((function(t,e){var r=new Intl.RelativeTimeFormat(t,G({},e));return function(t){return r.format(t,e.range||"day")}})),list:X((function(t,e){var r=new Intl.ListFormat(t,G({},e));return function(t){return r.format(t)}}))},this.init(e)}return(0,i.A)(t,[{key:"init",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=X(e)}},{key:"format",value:function(t,e,r){var s=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce((function(t,e){var i=function(t){var e=t.toLowerCase().trim(),r={};if(t.indexOf("(")>-1){var s=t.split("(");e=s[0].toLowerCase().trim();var n=s[1].substring(0,s[1].length-1);"currency"===e&&n.indexOf(":")<0?r.currency||(r.currency=n.trim()):"relativetime"===e&&n.indexOf(":")<0?r.range||(r.range=n.trim()):n.split(";").forEach((function(t){if(t){var e=function(t){if(Array.isArray(t))return t}(i=t.split(":"))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(i)||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.")}(),s=e[0],n=e.slice(1).join(":").trim().replace(/^'+|'+$/g,"");r[s.trim()]||(r[s.trim()]=n),"false"===n&&(r[s.trim()]=!1),"true"===n&&(r[s.trim()]=!0),isNaN(n)||(r[s.trim()]=parseInt(n,10))}var i}))}return{formatName:e,formatOptions:r}}(e),a=i.formatName,o=i.formatOptions;if(s.formats[a]){var c=t;try{var u=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},l=u.locale||u.lng||n.locale||n.lng||r;c=s.formats[a](t,l,G(G(G({},o),n),u))}catch(t){s.logger.warn(t)}return c}return s.logger.warn("there was no format function for ".concat(a)),t}),t)}}]),t}();function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var et=function(t){c(o,t);var e,r,s=(e=o,r=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,s=l(e);if(r){var n=l(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return u(this,t)});function o(t,e,r){var i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,n.A)(this,o),i=s.call(this),k&&g.call(a(i)),i.backend=t,i.store=e,i.services=r,i.languageUtils=r.languageUtils,i.options=c,i.logger=y.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=c.maxParallelReads||10,i.readingCalls=0,i.maxRetries=c.maxRetries>=0?c.maxRetries:5,i.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,c.backend,c),i}return(0,i.A)(o,[{key:"queueLoad",value:function(t,e,r,s){var n=this,i={},a={},o={},c={};return t.forEach((function(t){var s=!0;e.forEach((function(e){var o="".concat(t,"|").concat(e);!r.reload&&n.store.hasResourceBundle(t,e)?n.state[o]=2:n.state[o]<0||(1===n.state[o]?void 0===a[o]&&(a[o]=!0):(n.state[o]=1,s=!1,void 0===a[o]&&(a[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===c[e]&&(c[e]=!0)))})),s||(o[t]=!0)})),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(t,e,r){var s=t.split("|"),n=s[0],i=s[1];e&&this.emit("failedLoading",n,i,e),r&&this.store.addResourceBundle(n,i,r),this.state[t]=e?-1:2;var a={};this.queue.forEach((function(r){var s,o,c,u,l;s=r.loaded,o=i,(u=(c=b(s,[n],Object)).obj)[l=c.k]=u[l]||[],u[l].push(o),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(r,t),e&&r.errors.push(e),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((function(t){a[t]||(a[t]={});var e=r.loaded[t];e.length&&e.forEach((function(e){void 0===a[t][e]&&(a[t][e]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,r){var s=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:t,ns:e,fcName:r,tried:n,wait:i,callback:a});else{this.readingCalls++;var o=function(o,c){if(s.readingCalls--,s.waitingReads.length>0){var u=s.waitingReads.shift();s.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}o&&c&&n<s.maxRetries?setTimeout((function(){s.read.call(s,t,e,r,n+1,2*i,a)}),i):a(o,c)},c=this.backend[r].bind(this.backend);if(2!==c.length)return c(t,e,o);try{var u=c(t,e);u&&"function"==typeof u.then?u.then((function(t){return o(null,t)})).catch(o):o(null,u)}catch(t){o(t)}}}},{key:"prepareLoading",value:function(t,e){var r=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var i=this.queueLoad(t,e,s,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach((function(t){r.loadOne(t)}))}},{key:"load",value:function(t,e,r){this.prepareLoading(t,e,{},r)}},{key:"reload",value:function(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}},{key:"loadOne",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=t.split("|"),n=s[0],i=s[1];this.read(n,i,"read",void 0,void 0,(function(s,a){s&&e.logger.warn("".concat(r,"loading namespace ").concat(i," for language ").concat(n," failed"),s),!s&&a&&e.logger.log("".concat(r,"loaded namespace ").concat(i," for language ").concat(n),a),e.loaded(t,s,a)}))}},{key:"saveMissing",value:function(t,e,r,s,n){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend&&this.backend.create){var o=tt(tt({},i),{},{isUpdate:n}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var u;(u=5===c.length?c(t,e,r,s,o):c(t,e,r,s))&&"function"==typeof u.then?u.then((function(t){return a(null,t)})).catch(a):a(null,u)}catch(t){a(t)}else c(t,e,r,s,a,o)}t&&t[0]&&this.store.addResource(t[0],e,r,s)}}}]),o}(g);function rt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===(0,s.A)(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===(0,s.A)(t[2])||"object"===(0,s.A)(t[3])){var r=t[3]||t[2];Object.keys(r).forEach((function(t){e[t]=r[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,r,s){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function st(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function nt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function it(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(r),!0).forEach((function(e){(0,h.A)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function at(){}var ot=function(t){c(h,t);var e,r,o=(e=h,r=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,s=l(e);if(r){var n=l(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return u(this,t)});function h(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if((0,n.A)(this,h),t=o.call(this),k&&g.call(a(t)),t.options=st(r),t.services={},t.logger=y,t.modules={external:[]},e=a(t),Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})),s&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,s),u(t,a(t));setTimeout((function(){t.init(r,s)}),0)}return t}return(0,i.A)(h,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(r=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));var s=rt();function n(t){return t?"function"==typeof t?new t:t:null}if(this.options=it(it(it({},s),this.options),st(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=it(it({},s.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){var i;this.modules.logger?y.init(n(this.modules.logger),this.options):y.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"undefined"!=typeof Intl&&(i=Z);var a=new B(this.options);this.store=new M(this.options.resources,this.options);var o=this.services;o.logger=y,o.resourceStore=this.store,o.languageUtils=a,o.pluralResolver=new z(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!i||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(o.formatter=n(i),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new K(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new et(n(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),n=1;n<r;n++)s[n-1]=arguments[n];t.emit.apply(t,[e].concat(s))})),this.modules.languageDetector&&(o.languageDetector=n(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=n(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(function(e){for(var r=arguments.length,s=new Array(r>1?r-1:0),n=1;n<r;n++)s[n-1]=arguments[n];t.emit.apply(t,[e].concat(s))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.format=this.options.interpolation.format,r||(r=at),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(e){t[e]=function(){var r;return(r=t.store)[e].apply(r,arguments),t}}));var u=v(),l=function(){var e=function(e,s){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),u.resolve(s),r(e,s)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at,s="string"==typeof t?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&"cimode"===s.toLowerCase())return r();var n=[],i=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){n.indexOf(t)<0&&n.push(t)}))};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(t){return i(t)})),this.options.preload&&this.options.preload.forEach((function(t){return i(t)})),this.services.backendConnector.load(n,this.options.ns,(function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),r(t)}))}else r(null)}},{key:"reloadResources",value:function(t,e,r){var s=v();return t||(t=this.languages),e||(e=this.options.ns),r||(r=at),this.services.backendConnector.reload(t,e,(function(t){s.resolve(),r(t)})),s}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&L.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var r=this.languages[e];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}},{key:"changeLanguage",value:function(t,e){var r=this;this.isLanguageChangingTo=t;var s=v();this.emit("languageChanging",t);var n=function(t){r.language=t,r.languages=r.services.languageUtils.toResolveHierarchy(t),r.resolvedLanguage=void 0,r.setResolvedLanguage(t)},i=function(i){t||i||!r.services.languageDetector||(i=[]);var a="string"==typeof i?i:r.services.languageUtils.getBestMatchFromCodes(i);a&&(r.language||n(a),r.translator.language||r.translator.changeLanguage(a),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage&&r.services.languageDetector.cacheUserLanguage(a)),r.loadResources(a,(function(t){!function(t,i){i?(n(i),r.translator.changeLanguage(i),r.isLanguageChangingTo=void 0,r.emit("languageChanged",i),r.logger.log("languageChanged",i)):r.isLanguageChangingTo=void 0,s.resolve((function(){return r.t.apply(r,arguments)})),e&&e(t,(function(){return r.t.apply(r,arguments)}))}(t,a)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect()),s}},{key:"getFixedT",value:function(t,e,r){var n=this,i=function t(e,i){var a;if("object"!==(0,s.A)(i)){for(var o=arguments.length,c=new Array(o>2?o-2:0),u=2;u<o;u++)c[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([e,i].concat(c))}else a=it({},i);a.lng=a.lng||t.lng,a.lngs=a.lngs||t.lngs,a.ns=a.ns||t.ns,a.keyPrefix=a.keyPrefix||r||t.keyPrefix;var l,h=n.options.keySeparator||".";return l=a.keyPrefix&&Array.isArray(e)?e.map((function(t){return"".concat(a.keyPrefix).concat(h).concat(t)})):a.keyPrefix?"".concat(a.keyPrefix).concat(h).concat(e):e,n.t(l,a)};return"string"==typeof t?i.lng=t:i.lngs=t,i.ns=e,i.keyPrefix=r,i}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=r.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;var a=function(t,r){var s=e.services.backendConnector.state["".concat(t,"|").concat(r)];return-1===s||2===s};if(r.precheck){var o=r.precheck(this,a);if(void 0!==o)return o}return!(!this.hasResourceBundle(s,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(s,t)||n&&!a(i,t)))}},{key:"loadNamespaces",value:function(t,e){var r=this,s=v();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){r.options.ns.indexOf(t)<0&&r.options.ns.push(t)})),this.loadResources((function(t){s.resolve(),e&&e(t)})),s):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var r=v();"string"==typeof t&&(t=[t]);var s=this.options.preload||[],n=t.filter((function(t){return s.indexOf(t)<0}));return n.length?(this.options.preload=s.concat(n),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";var e=this.services&&this.services.languageUtils||new B(rt());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:at,s=it(it(it({},this.options),e),{isClone:!0}),n=new h(s);return void 0===e.debug&&void 0===e.prefix||(n.logger=n.logger.clone(e)),["store","services","language"].forEach((function(e){n[e]=t[e]})),n.services=it({},this.services),n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n.translator=new j(n.services,n.options),n.translator.on("*",(function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];n.emit.apply(n,[t].concat(r))})),n.init(s,r),n.translator.options=n.options,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),h}(g);(0,h.A)(ot,"createInstance",(function(){return new ot(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var ct=ot.createInstance();ct.createInstance=ot.createInstance;var ut=ct.createInstance,lt=ct.dir,ht=ct.init,pt=ct.loadResources,dt=ct.reloadResources,ft=ct.use,mt=ct.changeLanguage,yt=ct.getFixedT,gt=ct.t,vt=ct.exists,xt=ct.setDefaultNamespace,bt=ct.hasLoadedNamespace,wt=ct.loadNamespaces,Pt=ct.loadLanguages}}]);
|