1(self.webpackChunkelectrode_docs=self.webpackChunkelectrode_docs||[]).push([[918],{7942:(t,e,n)=>{"use strict";n.d(e,{Zo:()=>l,kt:()=>f});var i=n(959);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var p=i.createContext({}),c=function(t){var e=i.useContext(p),n=e;return t&&(n="function"==typeof t?t(e):a(a({},e),t)),n},l=function(t){var e=c(t.components);return i.createElement(p.Provider,{value:e},t.children)},h="mdxType",u={inlineCode:"code",wrapper:function(t){var e=t.children;return i.createElement(i.Fragment,{},e)}},d=i.forwardRef((function(t,e){var n=t.components,r=t.mdxType,s=t.originalType,p=t.parentName,l=o(t,["components","mdxType","originalType","parentName"]),h=c(n),d=r,f=h["".concat(p,".").concat(d)]||h[d]||u[d]||s;return n?i.createElement(f,a(a({ref:e},l),{},{components:n})):i.createElement(f,a({ref:e},l))}));function f(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var s=n.length,a=new Array(s);a[0]=d;var o={};for(var p in e)hasOwnProperty.call(e,p)&&(o[p]=e[p]);o.originalType=t,o[h]="string"==typeof t?t:r,a[1]=o;for(var c=2;c<s;c++)a[c]=n[c];return i.createElement.apply(null,a)}return i.createElement.apply(null,n)}d.displayName="MDXCreateElement"},6686:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>pa});var i=n(959),r=n(6878),s=n(9184),a=i.createContext(null);function o(t){var e=t.children,n=function(t){return(0,i.useMemo)((function(){return{metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,contentTitle:t.contentTitle,toc:t.toc}}),[t])}(t.content);return i.createElement(a.Provider,{value:n},e)}function p(){var t=(0,i.useContext)(a);if(null===t)throw new s.i6("DocProvider");return t}function c(){var t,e=p(),n=e.metadata,s=e.frontMatter,a=e.assets;return i.createElement(r.d,{title:n.title,description:n.description,keywords:s.keywords,image:null!=(t=a.image)?t:s.image})}var l=n(5924),h=n(8165),u=n(5882),d=n(3706),f=n(3365);function m(t){var e=t.permalink,n=t.title,r=t.subLabel,s=t.isNext;return i.createElement(f.Z,{className:(0,l.Z)("pagination-nav__link",s?"pagination-nav__link--next":"pagination-nav__link--prev"),to:e},r&&i.createElement("div",{className:"pagination-nav__sublabel"},r),i.createElement("div",{className:"pagination-nav__label"},n))}function g(t){var e=t.previous,n=t.next;return i.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,d.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},e&&i.createElement(m,(0,u.Z)({},e,{subLabel:i.createElement(d.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&i.createElement(m,(0,u.Z)({},n,{subLabel:i.createElement(d.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function y(){var t=p().metadata;return i.createElement(g,{previous:t.previous,next:t.next})}var v=n(1663),b=n(2890),x=n(7775),_=n(3742),E=n(1991);var k={unreleased:function(t){var e=t.siteTitle,n=t.versionMetadata;return i.createElement(d.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:e,versionLabel:i.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(t){var e=t.siteTitle,n=t.versionMetadata;return i.createElement(d.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:e,versionLabel:i.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function S(t){var e=k[t.versionMetadata.banner];return i.createElement(e,t)}function w(t){var e=t.versionLabel,n=t.to,r=t.onClick;return i.createElement(d.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:e,latestVersionLink:i.createElement("b",null,i.createElement(f.Z,{to:n,onClick:r},i.createElement(d.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function C(t){var e,n=t.className,r=t.versionMetadata,s=(0,v.Z)().siteConfig.title,a=(0,b.gA)({failfast:!0}).pluginId,o=(0,_.J)(a).savePreferredVersionName,p=(0,b.Jo)(a),c=p.latestDocSuggestion,h=p.latestVersionSuggestion,u=null!=c?c:(e=h).docs.find((function(t){return t.id===e.mainDocId}));return i.createElement("div",{className:(0,l.Z)(n,x.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},i.createElement("div",null,i.createElement(S,{siteTitle:s,versionMetadata:r})),i.createElement("div",{className:"margin-top--md"},i.createElement(w,{versionLabel:h.label,to:u.path,onClick:function(){return o(h.name)}})))}function A(t){var e=t.className,n=(0,E.E)();return n.banner?i.createElement(C,{className:e,versionMetadata:n}):null}function N(t){var e=t.className,n=(0,E.E)();return n.badge?i.createElement("span",{className:(0,l.Z)(e,x.k.docs.docVersionBadge,"badge badge--secondary")},i.createElement(d.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label}},"Version: {versionLabel}")):null}function L(t){var e=t.lastUpdatedAt,n=t.formattedLastUpdatedAt;return i.createElement(d.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:i.createElement("b",null,i.createElement("time",{dateTime:new Date(1e3*e).toISOString()},n))}}," on {date}")}function I(t){var e=t.lastUpdatedBy;return i.createElement(d.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:i.createElement("b",null,e)}}," by {user}")}function P(t){var e=t.lastUpdatedAt,n=t.formattedLastUpdatedAt,r=t.lastUpdatedBy;return i.createElement("span",{className:x.k.common.lastUpdated}
1,i.createElement(d.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:e&&n?i.createElement(L,{lastUpdatedAt:e,formattedLastUpdatedAt:n}):"",byUser:r?i.createElement(I,{lastUpdatedBy:r}):""}},"Last updated{atDate}{byUser}"),!1)}var T=n(950);const O="iconEdit_fAMm";var j=["className"];function R(t){var e=t.className,n=(0,T.Z)(t,j);return i.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,l.Z)(O,e),"aria-hidden":"true"},n),i.createElement("g",null,i.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function V(t){var e=t.editUrl;return i.createElement("a",{href:e,target:"_blank",rel:"noreferrer noopener",className:x.k.common.editThisPage},i.createElement(R,null),i.createElement(d.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}const B="tag_COvp",D="tagRegular_OUut",M="tagWithCount_yYHk";function F(t){var e=t.permalink,n=t.label,r=t.count;return i.createElement(f.Z,{href:e,className:(0,l.Z)(B,r?M:D)},n,r&&i.createElement("span",null,r))}const U="tags_lDQi",Z="tag_nWEp";function H(t){var e=t.tags;return i.createElement(i.Fragment,null,i.createElement("b",null,i.createElement(d.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),i.createElement("ul",{className:(0,l.Z)(U,"padding--none","margin-left--sm")},e.map((function(t){var e=t.label,n=t.permalink;return i.createElement("li",{key:n,className:Z},i.createElement(F,{label:e,permalink:n}))}))))}const z="lastUpdated_wc05";function q(t){return i.createElement("div",{className:(0,l.Z)(x.k.docs.docFooterTagsRow,"row margin-bottom--sm")},i.createElement("div",{className:"col"},i.createElement(H,t)))}function W(t){var e=t.editUrl,n=t.lastUpdatedAt,r=t.lastUpdatedBy,s=t.formattedLastUpdatedAt;return i.createElement("div",{className:(0,l.Z)(x.k.docs.docFooterEditMetaRow,"row")},i.createElement("div",{className:"col"},e&&i.createElement(V,{editUrl:e})),i.createElement("div",{className:(0,l.Z)("col",z)},(n||r)&&i.createElement(P,{lastUpdatedAt:n,formattedLastUpdatedAt:s,lastUpdatedBy:r})))}function X(){var t=p().metadata,e=t.editUrl,n=t.lastUpdatedAt,r=t.formattedLastUpdatedAt,s=t.lastUpdatedBy,a=t.tags,o=a.length>0,c=!!(e||n||s);return o||c?i.createElement("footer",{className:(0,l.Z)(x.k.docs.docFooter,"docusaurus-mt-lg")},o&&i.createElement(q,{tags:a}),c&&i.createElement(W,{editUrl:e,lastUpdatedAt:n,lastUpdatedBy:s,formattedLastUpdatedAt:r})):null}var J=n(9927),K=n(5010),G=["parentIndex"];function Q(t){var e=t.map((function(t){return Object.assign({},t,{parentIndex:-1,children:[]})})),n=Array(7).fill(-1);e.forEach((function(t,e){var i=n.slice(2,t.level);t.parentIndex=Math.max.apply(Math,i),n[t.level]=e}));var i=[];return e.forEach((function(t){var n=t.parentIndex,r=(0,T.Z)(t,G);n>=0?e[n].children.push(r):i.push(r)})),i}function $(t){var e=t.toc,n=t.minHeadingLevel,i=t.maxHeadingLevel;return e.flatMap((function(t){var e=$({toc:t.children,minHeadingLevel:n,maxHeadingLevel:i});return function(t){return t.level>=n&&t.level<=i}(t)?[Object.assign({},t,{children:e})]:e}))}function Y(t){var e=t.getBoundingClientRect();return e.top===e.bottom?Y(t.parentNode):e}function tt(t,e){var n,i,r=e.anchorTopOffset,s=t.find((function(t){return Y(t).top>=r}));return s?function(t){return t.top>0&&t.bottom<window.innerHeight/2}(Y(s))?s:null!=(i=t[t.indexOf(s)-1])?i:null:null!=(n=t[t.length-1])?n:null}function et(){var t=(0,i.useRef)(0),e=(0,K.L)().navbar.hideOnScroll;return(0,i.useEffect)((function(){t.current=e?0:document.querySelector(".navbar").clientHeight}),[e]),t}function nt(t){var e=(0,i.useRef)(void 0),n=et();(0,i.useEffect)((function(){if(!t)return function(){};var i=t.linkClassName,r=t.linkActiveClassName,s=t.minHeadingLevel,a=t.maxHeadingLevel;function o(){var t=function(t){return Array.from(document.getElementsByClassName(t))}(i),o=function(t){for(var e=t.minHeadingLevel,n=t.maxHeadingLevel,i=[],r=e;r<=n;r+=1)i.push("h"+r+".anchor");return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:s,maxHeadingLevel:a}),p=tt(o,{anchorTopOffset:n.current}),c=t.find((function(t){return p&&p.id===function(t){return decodeURIComponent(t.href.substring(t.href.indexOf("#")+1))}(t)}));t.forEach((function(t){!function(t,n){n?(e.current&&e.current!==t&&e.current.classList.remove(r),t.classList.add(r),e.current=t):t.classList.remove(r)}(t,t===c)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),function(){document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[t,n])}function it(t){var e=t.toc,n=t.className,r=t.linkClassName,s=t.isChild;
1return e.length?i.createElement("ul",{className:s?void 0:n},e.map((function(t){return i.createElement("li",{key:t.id},i.createElement("a",{href:"#"+t.id,className:null!=r?r:void 0,dangerouslySetInnerHTML:{__html:t.value}}),i.createElement(it,{isChild:!0,toc:t.children,className:n,linkClassName:r}))}))):null}const rt=i.memo(it);var st=["toc","className","linkClassName","linkActiveClassName","minHeadingLevel","maxHeadingLevel"];function at(t){var e=t.toc,n=t.className,r=void 0===n?"table-of-contents table-of-contents__left-border":n,s=t.linkClassName,a=void 0===s?"table-of-contents__link":s,o=t.linkActiveClassName,p=void 0===o?void 0:o,c=t.minHeadingLevel,l=t.maxHeadingLevel,h=(0,T.Z)(t,st),d=(0,K.L)(),f=null!=c?c:d.tableOfContents.minHeadingLevel,m=null!=l?l:d.tableOfContents.maxHeadingLevel,g=function(t){var e=t.toc,n=t.minHeadingLevel,r=t.maxHeadingLevel;return(0,i.useMemo)((function(){return $({toc:Q(e),minHeadingLevel:n,maxHeadingLevel:r})}),[e,n,r])}({toc:e,minHeadingLevel:f,maxHeadingLevel:m});return nt((0,i.useMemo)((function(){if(a&&p)return{linkClassName:a,linkActiveClassName:p,minHeadingLevel:f,maxHeadingLevel:m}}),[a,p,f,m])),i.createElement(rt,(0,u.Z)({toc:g,className:r,linkClassName:a},h))}const ot="tocCollapsibleButton_bLfU",pt="tocCollapsibleButtonExpanded_L3a7";var ct=["collapsed"];function lt(t){var e=t.collapsed,n=(0,T.Z)(t,ct);return i.createElement("button",(0,u.Z)({type:"button"},n,{className:(0,l.Z)("clean-btn",ot,!e&&pt,n.className)}),i.createElement(d.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component"},"On this page"))}const ht="tocCollapsible_pL1w",ut="tocCollapsibleContent_T_ew",dt="tocCollapsibleExpanded_WVpK";function ft(t){var e=t.toc,n=t.className,r=t.minHeadingLevel,s=t.maxHeadingLevel,a=(0,J.u)({initialState:!0}),o=a.collapsed,p=a.toggleCollapsed;return i.createElement("div",{className:(0,l.Z)(ht,!o&&dt,n)},i.createElement(lt,{collapsed:o,onClick:p}),i.createElement(J.z,{lazy:!0,className:ut,collapsed:o},i.createElement(at,{toc:e,minHeadingLevel:r,maxHeadingLevel:s})))}const mt="tocMobile_WQEU";function gt(){var t=p(),e=t.toc,n=t.frontMatter;return i.createElement(ft,{toc:e,minHeadingLevel:n.toc_min_heading_level,maxHeadingLevel:n.toc_max_heading_level,className:(0,l.Z)(x.k.docs.docTocMobile,mt)})}const yt="tableOfContents_tS3w";var vt=["className"];function bt(t){var e=t.className,n=(0,T.Z)(t,vt);return i.createElement("div",{className:(0,l.Z)(yt,"thin-scrollbar",e)},i.createElement(at,(0,u.Z)({},n,{linkClassName:"table-of-contents__link toc-highlight",linkActiveClassName:"table-of-contents__link--active"})))}function xt(){var t=p(),e=t.toc,n=t.frontMatter;return i.createElement(bt,{toc:e,minHeadingLevel:n.toc_min_heading_level,maxHeadingLevel:n.toc_max_heading_level,className:x.k.docs.docTocDesktop})}
1const _t="anchorWithStickyNavbar_O4te",Et="anchorWithHideOnScrollNavbar_WL7t";var kt=["as","id"];function St(t){var e=t.as,n=t.id,r=(0,T.Z)(t,kt),s=(0,K.L)().navbar.hideOnScroll;return"h1"!==e&&n?i.createElement(e,(0,u.Z)({},r,{className:(0,l.Z)("anchor",s?Et:_t),id:n}),r.children,i.createElement("a",{className:"hash-link",href:"#"+n,title:(0,d.I)({id:"theme.common.headingLinkTitle",message:"Direct link to heading",description:"Title for link to heading"})},"\u200b")):i.createElement(e,(0,u.Z)({},r,{id:void 0}))}var wt=n(7942),Ct=n(2077),At=["mdxType","originalType"];var Nt=n(9106),Lt=n(4168),It=n(9102);const Pt={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]};var Tt={Prism:It.Z,theme:Pt};function Ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jt(){return jt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jt.apply(this,arguments)}var Rt=/\r\n|\r|\n/,Vt=function(t){0===t.length?t.push({types:["plain"],content:"\n",empty:!0}):1===t.length&&""===t[0].content&&(t[0].content="\n",t[0].empty=!0)},Bt=function(t,e){var n=t.length;return n>0&&t[n-1]===e?t:t.concat(e)},Dt=function(t,e){var n=t.plain,i=Object.create(null),r=t.styles.reduce((function(t,n){var i=n.languages,r=n.style;return i&&!i.includes(e)||n.types.forEach((function(e){var n=jt({},t[e],r);t[e]=n})),t}),i);return r.root=n,r.plain=jt({},n,{backgroundColor:null}),r};function Mt(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&-1===e.indexOf(i)&&(n[i]=t[i]);return n}var Ft=function(t){function e(){for(var e=this,n=[],i=arguments.length;i--;)n[i]=arguments[i];t.apply(this,n),Ot(this,"getThemeDict",(function(t){if(void 0!==e.themeDict&&t.theme===e.prevTheme&&t.language===e.prevLanguage)return e.themeDict;e.prevTheme=t.theme,e.prevLanguage=t.language;var n=t.theme?Dt(t.theme,t.language):void 0;return e.themeDict=n})),Ot(this,"getLineProps",(function(t){var n=t.key,i=t.className,r=t.style,s=jt({},Mt(t,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=e.getThemeDict(e.props);return void 0!==a&&(s.style=a.plain),void 0!==r&&(s.style=void 0!==s.style?jt({},s.style,r):r),void 0!==n&&(s.key=n),i&&(s.className+=" "+i),s})),Ot(this,"getStyleForToken",(function(t){var n=t.types,i=t.empty,r=n.length,s=e.getThemeDict(e.props);if(void 0!==s){if(1===r&&"plain"===n[0])return i?{display:"inline-block"}:void 0;if(1===r&&!i)return s[n[0]];var a=i?{display:"inline-block"}:{},o=n.map((function(t){return s[t]}));return Object.assign.apply(Object,[a].concat(o))}})),Ot(this,"getTokenProps",(function(t){var n=t.key,i=t.className,r=t.style,s=t.token,a=jt({},Mt(t,["key","className","style","token"]),{className:"token "+s.types.join(" "),children:s.content,style:e.getStyleForToken(s),key:void 0});return void 0!==r&&(a.style=void 0!==a.style?jt({},a.style,r):r),void 0!==n&&(a.key=n),i&&(a.className+=" "+i),a})),Ot(this,"tokenize",(function(t,e,n,i){var r={code:e,grammar:n,language:i,tokens:[]};t.hooks.run("before-tokenize",r);var s=r.tokens=t.tokenize(r.code,r.grammar,r.language);return t.hooks.run("after-tokenize",r),s}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.props,e=t.Prism,n=t.language,i=t.code,r=t.children,s=this.getThemeDict(this.props),a=e.languages[n],o=function(t){for(var e=[[]],n=[t],i=[0],r=[t.length],s=0,a=0,o=[],p=[o];a>-1;){for(;(s=i[a]++)<r[a];){var c=void 0,l=e[a],h=n[a][s];if("string"==typeof h?(l=a>0?l:["plain"],c=h):(l=Bt(l,h.type),h.alias&&(l=Bt(l,h.alias)),c=h.content),"string"==typeof c){var u=c.split(Rt),d=u.length;o.push({types:l,content:u[0]});for(var f=1;f<d;f++)Vt(o),p.push(o=[]),o.push({types:l,content:u[f]})}else a++,e.push(l),n.push(c),i.push(0),r.push(c.length)}a--,e.pop(),n.pop(),i.pop(),r.pop()}return Vt(o),p}(void 0!==a?this.tokenize(e,i,a,n):[i]);return r({tokens:o,className:"prism-code language-"+n,style:void 0!==s?s.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},e}(i.Component);const Ut=Ft;var Zt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ht="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",zt={5:Ht,6:Ht+" const class extends export import super"},qt=/^in(stanceof)?$/,Wt="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02
1c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7b9\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab65\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",Xt="\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0
1a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf2-\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f",Jt=new RegExp("["+Wt+"]"),Kt=new RegExp("["+Wt+Xt+"]");Wt=Xt=null;var Gt=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,477,28,11,0,9,21,190,52,76,44,33,24,27,35,30,0,12,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,54,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,86,26,230,43,117,63,32,0,257,0,11,39,8,0,22,0,12,39,3,3,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,270,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,68,12,0,67,12,65,1,31,6129,15,754,9486,286,82,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,4149,196,60,67,1213,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,42710,42,4148,12,221,3,5761,15,7472,3104,541],Qt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,525,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,4,9,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,280,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,2214,6,110,6,6,9,792487,239];function $t(t,e){for(var n=65536,i=0;i<e.length;i+=2){if((n+=e[i])>t)return!1;if((n+=e[i+1])>=t)return!0}}function Yt(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Jt.test(String.fromCharCode(t)):!1!==e&&$t(t,Gt)))}function te(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Kt.test(String.fromCharCode(t)):!1!==e&&($t(t,Gt)||$t(t,Qt)))))}var ee=function(t,e){void 0===e&&(e={}
1),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function ne(t,e){return new ee(t,{beforeExpr:!0,binop:e})}var ie={beforeExpr:!0},re={startsExpr:!0},se={};function ae(t,e){return void 0===e&&(e={}),e.keyword=t,se[t]=new ee(t,e)}var oe={num:new ee("num",re),regexp:new ee("regexp",re),string:new ee("string",re),name:new ee("name",re),eof:new ee("eof"),bracketL:new ee("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new ee("]"),braceL:new ee("{",{beforeExpr:!0,startsExpr:!0}),braceR:new ee("}"),parenL:new ee("(",{beforeExpr:!0,startsExpr:!0}),parenR:new ee(")"),comma:new ee(",",ie),semi:new ee(";",ie),colon:new ee(":",ie),dot:new ee("."),question:new ee("?",ie),arrow:new ee("=>",ie),template:new ee("template"),invalidTemplate:new ee("invalidTemplate"),ellipsis:new ee("...",ie),backQuote:new ee("`",re),dollarBraceL:new ee("${",{beforeExpr:!0,startsExpr:!0}),eq:new ee("=",{beforeExpr:!0,isAssign:!0}),assign:new ee("_=",{beforeExpr:!0,isAssign:!0}),incDec:new ee("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new ee("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:ne("||",1),logicalAND:ne("&&",2),bitwiseOR:ne("|",3),bitwiseXOR:ne("^",4),bitwiseAND:ne("&",5),equality:ne("==/!=/===/!==",6),relational:ne("</>/<=/>=",7),bitShift:ne("<</>>/>>>",8),plusMin:new ee("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:ne("%",10),star:ne("*",10),slash:ne("/",10),starstar:new ee("**",{beforeExpr:!0}),_break:ae("break"),_case:ae("case",ie),_catch:ae("catch"),_continue:ae("continue"),_debugger:ae("debugger"),_default:ae("default",ie),_do:ae("do",{isLoop:!0,beforeExpr:!0}),_else:ae("else",ie),_finally:ae("finally"),_for:ae("for",{isLoop:!0}),_function:ae("function",re),_if:ae("if"),_return:ae("return",ie),_switch:ae("switch"),_throw:ae("throw",ie),_try:ae("try"),_var:ae("var"),_const:ae("const"),_while:ae("while",{isLoop:!0}),_with:ae("with"),_new:ae("new",{beforeExpr:!0,startsExpr:!0}),_this:ae("this",re),_super:ae("super",re),_class:ae("class",re),_extends:ae("extends",ie),_export:ae("export"),_import:ae("import"),_null:ae("null",re),_true:ae("true",re),_false:ae("false",re),_in:ae("in",{beforeExpr:!0,binop:7}),_instanceof:ae("instanceof",{beforeExpr:!0,binop:7}),_typeof:ae("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ae("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ae("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},pe=/\r\n?|\n|\u2028|\u2029/,ce=new RegExp(pe.source,"g");function le(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var he=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ue=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,de=Object.prototype,fe=de.hasOwnProperty,me=de.toString;function ge(t,e){return fe.call(t,e)}var ye=Array.isArray||function(t){return"[object Array]"===me.call(t)};function ve(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var be=function(t,e){this.line=t,this.column=e};be.prototype.offset=function(t){return new be(this.line,this.column+t)};var xe=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function _e(t,e){for(var n=1,i=0;;){ce.lastIndex=i;var r=ce.exec(t);if(!(r&&r.index<e))return new be(n,e-i);++n,i=r.index+r[0].length}}var Ee={ecmaVersion:9,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function ke(t,e){return 2|(t?4:0)|(e?8:0)}var Se=function(t,e,n){this.options=t=function(t){var e={};for(var n in Ee)e[n]=t&&ge(t,n)?t[n]:Ee[n];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),ye(e.onToken)){var i=e.onToken;e.onToken=function(t){return i.push(t)}}return ye(e.onComment)&&(e.onComment=function(t,e){return function(n,i,r,s,a,o){var p={type:n?"Block":"Line",value:i,start:r,end:s};t.locations&&(p.loc=new xe(this,a,o)),t.ranges&&(p.range=[r,s]),e.push(p)}}(e,e.onComment)),e}(t),this.sourceFile=t.sourceFile,this.keywords=ve(zt[t.ecmaVersion>=6?6:5]);var i="";if(!t.allowReserved){for(var r=t.ecmaVersion;!(i=Zt[r]);r--);"module"===t.sourceType&&(i+=" await")}this.reservedWords=ve(i);var s=(i?i+" ":"")+Zt.strict;this.reservedWordsStrict=ve(s),this.reservedWordsStrictBind=ve(s+" "+Zt.strictBind),this.input=String(e),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(pe).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=oe.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null}
1,we={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};Se.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},we.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},we.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},we.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},we.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},we.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},we.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Se.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},Se.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,i=0;i<t.length;i++)n=t[i](n);return n},Se.parse=function(t,e){return new this(e,t).parse()},Se.parseExpressionAt=function(t,e,n){var i=new this(n,t,e);return i.nextToken(),i.parseExpression()},Se.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(Se.prototype,we);var Ce=Se.prototype,Ae=/^(?:'((?:\\.|[^'])*?)'|"((?:\\.|[^"])*?)")/;function Ne(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}Ce.strictDirective=function(t){for(;;){ue.lastIndex=t,t+=ue.exec(this.input)[0].length;var e=Ae.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2]))return!0;ue.lastIndex=t+=e[0].length,t+=ue.exec(this.input)[0].length,";"===this.input[t]&&t++}},Ce.eat=function(t){return this.type===t&&(this.next(),!0)},Ce.isContextual=function(t){return this.type===oe.name&&this.value===t&&!this.containsEsc},Ce.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},Ce.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},Ce.canInsertSemicolon=function(){return this.type===oe.eof||this.type===oe.braceR||pe.test(this.input.slice(this.lastTokEnd,this.start))},Ce.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ce.semicolon=function(){this.eat(oe.semi)||this.insertSemicolon()||this.unexpected()},Ce.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},Ce.expect=function(t){this.eat(t)||this.unexpected()},Ce.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},Ce.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},Ce.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,i=t.doubleProto;if(!e)return n>=0||i>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},Ce.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Ce.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var Le=Se.prototype;Le.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==oe.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var i=0,r=Object.keys(this.undefinedExports);i<r.length;i+=1){var s=r[i];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),this.options.ecmaVersion>=6&&(t.sourceType=this.options.sourceType),this.finishNode(t,"Program")};var Ie={kind:"loop"},Pe={kind:"switch"};Le.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ue.lastIndex=this.pos;var e=ue.exec(this.input),n=this.pos+e[0].length,i=this.input.charCodeAt(n);if(91===i)return!0;
1if(t)return!1;if(123===i)return!0;if(Yt(i,!0)){for(var r=n+1;te(this.input.charCodeAt(r),!0);)++r;var s=this.input.slice(n,r);if(!qt.test(s))return!0}return!1},Le.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ue.lastIndex=this.pos;var t=ue.exec(this.input),e=this.pos+t[0].length;return!(pe.test(this.input.slice(this.pos,e))||"function"!==this.input.slice(e,e+8)||e+8!==this.input.length&&te(this.input.charAt(e+8)))},Le.parseStatement=function(t,e,n){var i,r=this.type,s=this.startNode();switch(this.isLet(t)&&(r=oe._var,i="let"),r){case oe._break:case oe._continue:return this.parseBreakContinueStatement(s,r.keyword);case oe._debugger:return this.parseDebuggerStatement(s);case oe._do:return this.parseDoStatement(s);case oe._for:return this.parseForStatement(s);case oe._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!t);case oe._class:return t&&this.unexpected(),this.parseClass(s,!0);case oe._if:return this.parseIfStatement(s);
1case oe._return:return this.parseReturnStatement(s);case oe._switch:return this.parseSwitchStatement(s);case oe._throw:return this.parseThrowStatement(s);case oe._try:return this.parseTryStatement(s);case oe._const:case oe._var:return i=i||this.value,t&&"var"!==i&&this.unexpected(),this.parseVarStatement(s,i);case oe._while:return this.parseWhileStatement(s);case oe._with:return this.parseWithStatement(s);case oe.braceL:return this.parseBlock(!0,s);case oe.semi:return this.parseEmptyStatement(s);case oe._export:case oe._import:return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===oe._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!t);var a=this.value,o=this.parseExpression();return r===oe.name&&"Identifier"===o.type&&this.eat(oe.colon)?this.parseLabeledStatement(s,a,o,t):this.parseExpressionStatement(s,o)}},Le.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat(oe.semi)||this.insertSemicolon()?t.label=null:this.type!==oe.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var r=this.labels[i];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(t.label&&n)break}}return i===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},Le.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},Le.parseDoStatement=function(t){return this.next(),this.labels.push(Ie),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(oe._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(oe.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},Le.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ie),this.enterScope(0),this.expect(oe.parenL),this.type===oe.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===oe._var||this.type===oe._const||n){var i=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(i,!0,r),this.finishNode(i,"VariableDeclaration"),!(this.type===oe._in||this.options.ecmaVersion>=6&&this.isContextual("of"))||1!==i.declarations.length||"var"!==r&&i.declarations[0].init?(e>-1&&this.unexpected(e),this.parseFor(t,i)):(this.options.ecmaVersion>=9&&(this.type===oe._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,i))}var s=new Ne,a=this.parseExpression(!0,s);return this.type===oe._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===oe._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))},Le.parseFunctionStatement=function(t,e,n){return this.next(),this.parseFunction(t,Oe|(n?0:je),!1,e)},Le.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(oe._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},Le.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(oe.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},Le.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(oe.braceL),this.labels.push(Pe),this.enterScope(0);for(var n=!1;this.type!==oe.braceR;)if(this.type===oe._case||this.type===oe._default){var i=this.type===oe._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),i?e.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,e.test=null),this.expect(oe.colon)}
1else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},Le.parseThrowStatement=function(t){return this.next(),pe.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Te=[];Le.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===oe._catch){var e=this.startNode();if(this.next(),this.eat(oe.parenL)){e.param=this.parseBindingAtom();var n="Identifier"===e.param.type;this.enterScope(n?32:0),this.checkLVal(e.param,n?4:2),this.expect(oe.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(oe._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},Le.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},Le.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Ie),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},Le.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},Le.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},Le.parseLabeledStatement=function(t,e,n,i){for(var r=0,s=this.labels;r<s.length;r+=1)s[r].name===e&&this.raise(n.start,"Label '"+e+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===oe._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var p=this.labels[o];if(p.statementStart!==t.start)break;p.statementStart=this.start,p.kind=a}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(i?-1===i.indexOf("label")?i+"label":i:"label"),this.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")},Le.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},Le.parseBlock=function(t,e){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(oe.braceL),t&&this.enterScope(0);!this.eat(oe.braceR);){var n=this.parseStatement(null);e.body.push(n)}return t&&this.exitScope(),this.finishNode(e,"BlockStatement")},Le.parseFor=function(t,e){return t.init=e,this.expect(oe.semi),t.test=this.type===oe.semi?null:this.parseExpression(),this.expect(oe.semi),t.update=this.type===oe.parenR?null:this.parseExpression(),this.expect(oe.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},Le.parseForIn=function(t,e){var n=this.type===oe._in?"ForInStatement":"ForOfStatement";return this.next(),"ForInStatement"===n&&("AssignmentPattern"===e.type||"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(this.strict||"Identifier"!==e.declarations[0].id.type))&&this.raise(e.start,"Invalid assignment in for-in loop head"),t.left=e,t.right="ForInStatement"===n?this.parseExpression():this.parseMaybeAssign(),this.expect(oe.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,n)},Le.parseVar=function(t,e,n){for(t.declarations=[],t.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(oe.eq)?i.init=this.parseMaybeAssign(e):"const"!==n||this.type===oe._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===i.id.type||e&&(this.type===oe._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(oe.comma))break}return t},Le.parseVarId=function(t,e){"const"!==e&&"let"!==e||!this.isContextual("let")||this.raiseRecoverable(this.start,"let is disallowed as a lexically bound name"),t.id=this.parseBindingAtom(),this.checkLVal(t.id,"var"===e?1:2,!1)};var Oe=1,je=2;Le.parseFunction=function(t,e,n,i){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>
1=6&&!i)&&(this.type===oe.star&&e&je&&this.unexpected(),t.generator=this.eat(oe.star)),this.options.ecmaVersion>=8&&(t.async=!!i),e&Oe&&(t.id=4&e&&this.type!==oe.name?null:this.parseIdent(),!t.id||e&je||this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ke(t.async,t.generator)),e&Oe||(t.id=this.type===oe.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,n,!1),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,e&Oe?"FunctionDeclaration":"FunctionExpression")},Le.parseFunctionParams=function(t){this.expect(oe.parenL),t.params=this.parseBindingList(oe.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Le.parseClass=function(t,e){this.next();var n=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var i=this.startNode(),r=!1;for(i.body=[],this.expect(oe.braceL);!this.eat(oe.braceR);){var s=this.parseClassElement(null!==t.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind&&(r&&this.raise(s.start,"Duplicate constructor in the same class"),r=!0))}return t.body=this.finishNode(i,"ClassBody"),this.strict=n,this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Le.parseClassElement=function(t){var e=this;if(this.eat(oe.semi))return null;var n=this.startNode(),i=function(t,i){void 0===i&&(i=!1);var r=e.start,s=e.startLoc;return!(!e.eatContextual(t)||(e.type===oe.parenL||i&&e.canInsertSemicolon())&&(n.key&&e.unexpected(),n.computed=!1,n.key=e.startNodeAt(r,s),n.key.name=t,e.finishNode(n.key,"Identifier"),1))};n.kind="method",n.static=i("static");var r=this.eat(oe.star),s=!1;r||(this.options.ecmaVersion>=8&&i("async",!0)?(s=!0,r=this.options.ecmaVersion>=9&&this.eat(oe.star)):i("get")?n.kind="get":i("set")&&(n.kind="set")),n.key||this.parsePropertyName(n);var a=n.key,o=!1;return n.computed||n.static||!("Identifier"===a.type&&"constructor"===a.name||"Literal"===a.type&&"constructor"===a.value)?n.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),r&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),n.kind="constructor",o=t),this.parseClassMethod(n,r,s,o),"get"===n.kind&&0!==n.value.params.length&&this.raiseRecoverable(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.raiseRecoverable(n.value.start,"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.raiseRecoverable(n.value.params[0].start,"Setter cannot use rest params"),n},Le.parseClassMethod=function(t,e,n,i){return t.value=this.parseMethod(e,n,i),this.finishNode(t,"MethodDefinition")},Le.parseClassId=function(t,e){this.type===oe.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},Le.parseClassSuper=function(t){t.superClass=this.eat(oe._extends)?this.parseExprSubscripts():null},Le.parseExport=function(t,e){if(this.next(),this.eat(oe.star))return this.expectContextual("from"),this.type!==oe.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(oe._default)){var n;if(this.checkExport(e,"default",this.lastTokStart),this.type===oe._function||(n=this.isAsyncFunction())){var i=this.startNode();this.next(),n&&this.next(),t.declaration=this.parseFunction(i,4|Oe,!1,n)}else if(this.type===oe._class){var r=this.startNode();t.declaration=this.parseClass(r,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==oe.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},Le.checkExport=function(t,e,n){t&&(ge(t,e)&&this.raiseRecoverable(n,"Duplicate export '"+e+"'"),t[e]=!0)},Le.checkPatternExport=function(t,e){var n=e.type;if("Identifier"===n)this.checkExport(t,e.name,e.start);else if("ObjectPattern"===n)for(var i=0,r=e.properties;i<r.length;i+=1)this.checkPatternExport(t,r[i]);else if("ArrayPattern"===n)for(var s=0,a=e.elements;s<a.length;s+=1){var o=a[s];o&&this.checkPatternExport(t,o)}else"Property"===n?this.checkPatternExport(t,e.value):"AssignmentPattern"===n?this.checkPatternExport(t,e.left):"RestElement"===n?this.checkPatternExport(t,e.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(t,e.expression)},Le.checkVariableExport=function(t,e){if(t)for(var n=0,i=e;n<i.length;n+=1)this.checkPatternExport(t,i[n].id)},Le.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Le.parseExportSpecifiers=function(t){var e=[],n=!0;for(this.expect(oe.braceL);!this.eat(oe.braceR);){if(n)n=!1;else if(this.expect(oe.comma),this.afterTrailingComma(oe.braceR))break;var i=this.startNode();i.local=this.parseIdent(!0),i.exported=this.eatContextual("as")?this.parseIdent(!0):i.local,this.checkExport(t,i.exported.name,i.exported.start),e.push(this.finishNode(i,"ExportSpecifier"))}return e},Le.parseImport=function(t){return this.next(),this.type===oe.string?(t.specifiers=Te,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.t
vendor: 4,104 bytes, line 1
1ype===oe.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Le.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===oe.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLVal(n.local,2),t.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(oe.comma))return t}if(this.type===oe.star){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLVal(i.local,2),t.push(this.finishNode(i,"ImportNamespaceSpecifier")),t}for(this.expect(oe.braceL);!this.eat(oe.braceR);){if(e)e=!1;else if(this.expect(oe.comma),this.afterTrailingComma(oe.braceR))break;var r=this.startNode();r.imported=this.parseIdent(!0),this.eatContextual("as")?r.local=this.parseIdent():(this.checkUnreserved(r.imported),r.local=r.imported),this.checkLVal(r.local,2),t.push(this.finishNode(r,"ImportSpecifier"))}return t},Le.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},Le.isDirectiveCandidate=function(t){return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var Re=Se.prototype;Re.toAssignable=function(t,e,n){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var i=0,r=t.properties;i<r.length;i+=1){var s=r[i];this.toAssignable(s,e),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,n);break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return t},Re.toAssignableList=function(t,e){for(var n=t.length,i=0;i<n;i++){var r=t[i];r&&this.toAssignable(r,e)}if(n){var s=t[n-1];6===this.options.ecmaVersion&&e&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return t},Re.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},Re.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==oe.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},Re.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case oe.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(oe.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case oe.braceL:return this.parseObj(!0)}return this.parseIdent()},Re.parseBindingList=function(t,e,n){for(var i=[],r=!0;!this.eat(t);)if(r?r=!1:this.expect(oe.comma),e&&this.type===oe.comma)i.push(null);else{if(n&&this.afterTrailingComma(t))break;if(this.type===oe.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),i.push(s),this.type===oe.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}var a=this.parseMaybeDefault(this.start,this.startLoc);
1this.parseBindingListItem(a),i.push(a)}return i},Re.parseBindingListItem=function(t){return t},Re.parseMaybeDefault=function(t,e,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(oe.eq))return n;var i=this.startNodeAt(t,e);return i.left=n,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},Re.checkLVal=function(t,e,n){switch(void 0===e&&(e=0),t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),n&&(ge(n,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),n[t.name]=!0),0!==e&&5!==e&&this.declareName(t.name,e,t.start);break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,r=t.properties;i<r.length;i+=1)this.checkLVal(r[i],e,n);break;case"Property":this.checkLVal(t.value,e,n);break;case"ArrayPattern":for(var s=0,a=t.elements;s<a.length;s+=1){var o=a[s];o&&this.checkLVal(o,e,n)}break;case"AssignmentPattern":this.checkLVal(t.left,e,n);break;case"RestElement":this.checkLVal(t.argument,e,n);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,n);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var Ve=Se.prototype;Ve.checkPropClash=function(t,e,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var i,r=t.key;switch(r.type){case"Identifier":i=r.name;break;case"Literal":i=String(r.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===i&&"init"===s&&(e.proto&&(n&&n.doubleProto<0?n.doubleProto=r.start:this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var a=e[i="$"+i];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(r.start,"Redefinition of property"):a=e[i]={init:!1,get:!1,set:!1},a[s]=!0}}},Ve.parseExpression=function(t,e){var n=this.start,i=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===oe.comma){var s=this.startNodeAt(n,i);for(s.expressions=[r];this.eat(oe.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return r},Ve.parseMaybeAssign=function(t,e,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var i=!1,r=-1,s=-1,a=-1;e?(r=e.parenthesizedAssign,s=e.trailingComma,a=e.shorthandAssign,e.parenthesizedAssign=e.trailingComma=e.shorthandAssign=-1):(e=new Ne,i=!0);var o=this.start,p=this.startLoc;this.type!==oe.parenL&&this.type!==oe.name||(this.potentialArrowAt=this.start);var c=this.parseMaybeConditional(t,e);if(n&&(c=n.call(this,c,o,p)),this.type.isAssign){var l=this.startNodeAt(o,p);return l.operator=this.value,l.left=this.type===oe.eq?this.toAssignable(c,!1,e):c,i||Ne.call(e),e.shorthandAssign=-1,this.checkLVal(c),this.next(),l.right=this.parseMaybeAssign(t),this.finishNode(l,"AssignmentExpression")}return i&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),s>-1&&(e.trailingComma=s),a>-1&&(e.shorthandAssign=a),c},Ve.parseMaybeConditional=function(t,e){var n=this.start,i=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(oe.question)){var s=this.startNodeAt(n,i);return s.test=r,s.consequent=this.parseMaybeAssign(),this.expect(oe.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return r},Ve.parseExprOps=function(t,e){var n=this.start,i=this.startLoc,r=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||r.start===n&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,n,i,-1,t)},Ve.parseExprOp=function(t,e,n,i,r){var s=this.type.binop;if(null!=s&&(!r||this.type!==oe._in)&&s>i){var a=this.type===oe.logicalOR||this.type===oe.logicalAND,o=this.value;this.next();var p=this.start,c=this.startLoc,l=this.parseExprOp(this.parseMaybeUnary(null,!1),p,c,s,r),h=this.buildBinary(e,n,t,l,o,a);return this.parseExprOp(h,e,n,i,r)}return t},Ve.buildBinary=function(t,e,n,i,r,s){var a=this.startNodeAt(t,e);return a.left=n,a.operator=r,a.right=i,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},Ve.parseMaybeUnary=function(t,e){var n,i=this.start,r=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowA
1waitOutsideFunction))n=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===oe.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(s.argument):this.strict&&"delete"===s.operator&&"Identifier"===s.argument.type?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,n=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(n=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return n;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(i,r);o.operator=this.value,o.prefix=!1,o.argument=n,this.checkLVal(n),this.next(),n=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(oe.starstar)?this.buildBinary(i,r,n,this.parseMaybeUnary(null,!1),"**",!1):n},Ve.parseExprSubscripts=function(t){var e=this.start,n=this.startLoc,i=this.parseExprAtom(t),r="ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd);if(this.checkExpressionErrors(t)||r)return i;var s=this.parseSubscripts(i,e,n);return t&&"MemberExpression"===s.type&&(t.parenthesizedAssign>=s.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=s.start&&(t.parenthesizedBind=-1)),s},Ve.parseSubscripts=function(t,e,n,i){for(var r=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&"async"===this.input.slice(t.start,t.end);;){var s=this.parseSubscript(t,e,n,i,r);if(s===t||"ArrowFunctionExpression"===s.type)return s;t=s}},Ve.parseSubscript=function(t,e,n,i,r){var s=this.eat(oe.bracketL);if(s||this.eat(oe.dot)){var a=this.startNodeAt(e,n);a.object=t,a.property=s?this.parseExpression():this.parseIdent(!0),a.computed=!!s,s&&this.expect(oe.bracketR),t=this.finishNode(a,"MemberExpression")}else if(!i&&this.eat(oe.parenL)){var o=new Ne,p=this.yieldPos,c=this.awaitPos,l=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(oe.parenR,this.options.ecmaVersion>=8,!1,o);if(r&&!this.canInsertSemicolon()&&this.eat(oe.arrow))return this.checkPatternErrors(o,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=c,this.awaitIdentPos=l,this.parseArrowExpression(this.startNodeAt(e,n),h,!0);this.checkExpressionErrors(o,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=c||this.awaitPos,this.awaitIdentPos=l||this.awaitIdentPos;var u=this.startNodeAt(e,n);u.callee=t,u.arguments=h,t=this.finishNode(u,"CallExpression")}else if(this.type===oe.backQuote){var d=this.startNodeAt(e,n);d.tag=t,d.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(d,"TaggedTemplateExpression")}return t},Ve.parseExprAtom=function(t){this.type===oe.slash&&this.readRegexp();var e,n=this.potentialArrowAt===this.start;switch(this.type){case oe._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type!==oe.parenL||this.allowDirectSuper||this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==oe.dot&&this.type!==oe.bracketL&&this.type!==oe.parenL&&this.unexpected(),this.finishNode(e,"Super");case oe._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case oe.name:var i=this.start,r=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(oe._function))return this.parseFunction(this.startNodeAt(i,r),0,!1,!0);if(n&&!this.canInsertSemicolon()){if(this.eat(oe.arrow))return this.parseArrowExpression(this.startNodeAt(i,r),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===oe.name&&!s)return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(oe.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,r),[a],!0)}return a;case oe.regexp:var o=this.value;return(e=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},e;case oe.num:case oe.string:return this.parseLiteral(this.value);case oe._null:case oe._true:case oe._false:return(e=this.startNode()).value=this.type===oe._null?null:this.type===oe._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case oe.parenL:var p=this.start,c=this.parseParenAndDistinguishExpression(n);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=p),t.parenthesizedBind<0&&(t.parenthesizedBind=p)),c;case oe.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(oe.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case oe.braceL:return this.parseObj(!1,t);case oe._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case oe._class:return this.parseClass(this.startNode(),!1);case oe._new:return this.parseNew();case oe.backQuote:return this.parseTemplate();default:this.unexpected()}},Ve.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),this.next(),this.finishNode(e,"Literal")},Ve.parseParenExpression=function(){this.expect(oe.parenL);var t=this.parseExpression();return this.expect(oe.parenR),t},Ve.parseParenAndDistinguishExpression=function(t){var e,n=this.start,i=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,o=this.startLoc,p=[],c=!0,l=!1,h=new Ne,u=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==oe.parenR;){if(c?c=!1:this.expect(oe.comma),r&&this.afterTrailingComma(oe.parenR,!0)){l=!0;break}
1if(this.type===oe.ellipsis){s=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===oe.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(oe.parenR),t&&!this.canInsertSemicolon()&&this.eat(oe.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=u,this.awaitPos=d,this.parseParenArrowList(n,i,p);p.length&&!l||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=u||this.yieldPos,this.awaitPos=d||this.awaitPos,p.length>1?((e=this.startNodeAt(a,o)).expressions=p,this.finishNodeAt(e,"SequenceExpression",f,m)):e=p[0]}else e=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(n,i);return g.expression=e,this.finishNode(g,"ParenthesizedExpression")}return e},Ve.parseParenItem=function(t){return t},Ve.parseParenArrowList=function(t,e,n){return this.parseArrowExpression(this.startNodeAt(t,e),n)};var Be=[];Ve.parseNew=function(){var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(oe.dot)){t.meta=e;var n=this.containsEsc;return t.property=this.parseIdent(!0),("target"!==t.property.name||n)&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is new.target"),this.inNonArrowFunction()||this.raiseRecoverable(t.start,"new.target can only be used in functions"),this.finishNode(t,"MetaProperty")}var i=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(),i,r,!0),t.arguments=this.eat(oe.parenL)?this.parseExprList(oe.parenR,this.options.ecmaVersion>=8,!1):Be,this.finishNode(t,"NewExpression")},Ve.parseTemplateElement=function(t){var e=t.isTagged,n=this.startNode();return this.type===oe.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===oe.backQuote,this.finishNode(n,"TemplateElement")},Ve.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:e});for(n.quasis=[i];!i.tail;)this.type===oe.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(oe.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(oe.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(n,"TemplateLiteral")},Ve.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===oe.name||this.type===oe.num||this.type===oe.string||this.type===oe.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===oe.star)&&!pe.test(this.input.slice(this.lastTokEnd,this.start))},Ve.parseObj=function(t,e){var n=this.startNode(),i=!0,r={};for(n.properties=[],this.next();!this.eat(oe.braceR);){if(i)i=!1;else if(this.expect(oe.comma),this.afterTrailingComma(oe.braceR))break;var s=this.parseProperty(t,e);t||this.checkPropClash(s,r,e),n.properties.push(s)}return this.finishNode(n,t?"ObjectPattern":"ObjectExpression")},Ve.parseProperty=function(t,e){var n,i,r,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(oe.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===oe.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===oe.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,e),this.type===oe.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(r=this.start,s=this.startLoc),t||(n=this.eat(oe.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(i=!0,n=this.options.ecmaVersion>=9&&this.eat(oe.star),this.parsePropertyName(a,e)):i=!1,this.parsePropertyValue(a,t,n,i,r,s,e,o),this.finishNode(a,"Property")},Ve.parsePropertyValue=function(t,e,n,i,r,s,a,o){(n||i)&&this.type===oe.colon&&this.unexpected(),this.eat(oe.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===oe.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(n,i)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===oe.comma||this.type===oe.braceR?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((n||i)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),t.kind="init",e?t.value=this.parseMaybeDefault(r,s,t.key):this.type===oe.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,s,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected():((n||i)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1),t.value.params.length!==("get"===t.kind?0:1)?this.raiseRecoverable(t.value.start,"get"===t.kind?"getter should have no params":"setter should have exactly one param"):"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params"))},Ve.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(oe.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(oe.bracketR),t.key;t.computed=!1}return t.key=this.type===oe.num||this.type===oe.string?this.parseExprAtom():this.parseIdent(!0)},Ve.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},Ve.parseMethod=function(t,e,n){var i=this.startNode(),r=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(i),this.options.ecmaVersion>=6&&(i.generator=t),this.options.ecmaVersion>=8&&(i.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|ke(e,i.generator)|(n?128:0)),this.expect(oe.parenL),i.params=this.parseBindingList(oe.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(i,!1,!0),this.yieldPos=r,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(i,"FunctionExpression")},Ve.parseArrowExpression=function(t,e,n){var i=this.yieldPos,r=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|ke(n,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=i,this.awaitPos=r,this.awaitIdentPos=s,this.finishNode(t,"ArrowFunctionExpression")},Ve.parseFunctionBody=function(t,e,n){var i=this.strict,r=!1;if(e&&this.type!==oe.braceL)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);i&&!s||(r=this.strictDirective(this.end))&&s&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var a=this.labels;this.labels=[],r&&(this.strict=!0),this.checkParams(t,!i&&!r&&!e&&!n&&this.isSimpleParamList(t.params)),t.body=this.parseBlock(!1),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=a}this.exitScope(),this.strict&&t.id&&this.checkLVal(t.id,5),this.strict=i},Ve.isSimpleParamList=function(t){for(var e=0,n=t;e<n.length;e+=1)if("Identifier"!==n[e].type)return!1;return!0},Ve.checkParams=function(t,e){for(var n={},i=0,r=t.params;i<r.length;i+=1)this.checkLVal(r[i],1,e?null:n)},Ve.parseExprList=function(t,e,n,i){for(var r=[],s=!0;!this.eat(t);){if(s)s=!1;else if(this.expect(oe.comma),e&&this.afterTrailingComma(t))break;var a=void 0;n&&this.type===oe.comma?a=null:this.type===oe.ellipsis?(a=this.parseSpread(i),i&&this.type===oe.comma&&i.trailingComma<0&&(i.trailingComma=this.start)):a=this.parseMaybeAssign(!1,i),r.push(a)}return r},Ve.checkUnreserved=function(t){var e=t.start,n=t.end,i=t.name;this.inGenerator&&"yield"===i&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===i&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(i)&&this.raise(e,"Unexpected keyword '"+i+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(i)&&(this.inAsync||"await"!==i||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+i+"' is reserved"))},Ve.parseIdent=function(t,e){var n=this.startNode();return t&&"never"===this.options.allowReserved&&(t=!1),this.type===oe.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(),this.finishNode(n,"Identifier"),t||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},Ve.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===oe.semi||this.canInsertSemicolon()||this.type!==oe.star&&!this.t
vendor: 6,199 bytes, line 1
1ype.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(oe.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},Ve.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0),this.finishNode(t,"AwaitExpression")};var De=Se.prototype;De.raise=function(t,e){var n=_e(this.input,t),i=new SyntaxError(e+=" ("+n.line+":"+n.column+")");throw i.pos=t,i.loc=n,i.raisedAt=this.pos,i},De.raiseRecoverable=De.raise,De.curPosition=function(){if(this.options.locations)return new be(this.curLine,this.pos-this.lineStart)};var Me=Se.prototype,Fe=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};Me.enterScope=function(t){this.scopeStack.push(new Fe(t))},Me.exitScope=function(){this.scopeStack.pop()},Me.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},Me.declareName=function(t,e,n){var i=!1;if(2===e){var r=this.currentScope();i=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var s=this.currentScope();i=this.treatFunctionsAsVar?s.lexical.indexOf(t)>-1:s.lexical.indexOf(t)>-1||s.var.indexOf(t)>-1,s.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){i=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],3&o.flags)break}i&&this.raiseRecoverable(n,"Identifier '"+t+"' has already been declared")},Me.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},Me.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Me.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(3&e.flags)return e}},Me.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(3&e.flags&&!(16&e.flags))return e}};var Ue=function(t,e,n){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new xe(t,n)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},Ze=Se.prototype;function He(t,e,n,i){return t.type=e,t.end=n,this.options.locations&&(t.loc.end=i),this.options.ranges&&(t.range[1]=n),t}Ze.startNode=function(){return new Ue(this,this.start,this.startLoc)},Ze.startNodeAt=function(t,e){return new Ue(this,t,e)},Ze.finishNode=function(t,e){return He.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},Ze.finishNodeAt=function(t,e,n,i){return He.call(this,t,e,n,i)};var ze=function(t,e,n,i,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!n,this.override=i,this.generator=!!r},qe={b_stat:new ze("{",!1),b_expr:new ze("{",!0),b_tmpl:new ze("${",!1),p_stat:new ze("(",!1),p_expr:new ze("(",!0),q_tmpl:new ze("`",!0,!0,(function(t){return t.tryReadTemplateToken()})),f_stat:new ze("function",!1),f_expr:new ze("function",!0),f_expr_gen:new ze("function",!0,!1,null,!0),f_gen:new ze("function",!1,!1,null,!0)},We=Se.prototype;We.initialContext=function(){return[qe.b_stat]},We.braceIsBlock=function(t){var e=this.curContext();return e===qe.f_expr||e===qe.f_stat||(t!==oe.colon||e!==qe.b_stat&&e!==qe.b_expr?t===oe._return||t===oe.name&&this.exprAllowed?pe.test(this.input.slice(this.lastTokEnd,this.start)):t===oe._else||t===oe.semi||t===oe.eof||t===oe.parenR||t===oe.arrow||(t===oe.braceL?e===qe.b_stat:t!==oe._var&&t!==oe._const&&t!==oe.name&&!this.exprAllowed):!e.isExpr)},We.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},We.updateContext=function(t){var e,n=this.type;n.keyword&&t===oe.dot?this.exprAllowed=!1:(e=n.updateContext)?e.call(this,t):this.exprAllowed=n.beforeExpr},oe.parenR.updateContext=oe.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===qe.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},oe.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?qe.b_stat:qe.b_expr),this.exprAllowed=!0},oe.dollarBraceL.updateContext=function(){this.context.push(qe.b_tmpl),this.exprAllowed=!0},oe.parenL.updateContext=function(t){this.context.push(t===oe._if||t===oe._for||t===oe._with||t===oe._while?qe.p_stat:qe.p_expr),this.exprAllowed=!0},oe.incDec.updateContext=function(){},oe._function.updateContext=oe._class.updateContext=function(t){!t.beforeExpr||t===oe.semi||t===oe._else||t===oe._return&&pe.test(this.input.slice(this.lastTokEnd,this.start))||(t===oe.colon||t===oe.braceL)&&this.curContext()===qe.b_stat?this.context.push(qe.f_stat):this.context.push(qe.f_expr),this.exprAllowed=!1},oe.backQuote.updateContext=function(){this.curContext()===qe.q_tmpl?this.context.pop():this.context.push(qe.q_tmpl),this.exprAllowed=!1},oe.star.updateContext=function(t){if(t===oe._function){var e=this.context.length-1;this.context[e]=this.context[e]===qe.f_expr?qe.f_expr_gen:qe.f_gen}this.exprAllowed=!0},oe.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==oe.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var Xe="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE L
1owercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Je={9:Xe,10:Xe+" Extended_Pictographic"},Ke="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ge="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Qe={9:Ge,10:Ge+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd"},$e={};function Ye(t){var e=$e[t]={binary:ve(Je[t]+" "+Ke),nonBinary:{General_Category:ve(Ke),Script:ve(Qe[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}Ye(9),Ye(10);var tn=Se.prototype,en=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=$e[t.options.ecmaVersion>=10?10:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function nn(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function rn(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function sn(t){return t>=65&&t<=90||t>=97&&t<=122}function an(t){return sn(t)||95===t}function on(t){return an(t)||pn(t)}function pn(t){return t>=48&&t<=57}function cn(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function ln(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function hn(t){return t>=48&&t<=55}en.prototype.reset=function(t,e,n){var i=-1!==n.indexOf("u");this.start=0|t,this.source=e+"",this.flags=n,this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchN=i&&this.parser.options.ecmaVersion>=9},en.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},en.prototype.at=function(t){var e=this.source,n=e.length;if(t>=n)return-1;var i=e.charCodeAt(t);return!this.switchU||i<=55295||i>=57344||t+1>=n?i:(i<<10)+e.charCodeAt(t+1)-56613888},en.prototype.nextIndex=function(t){var e=this.source,n=e.length;if(t>=n)return n;var i=e.charCodeAt(t);return!this.switchU||i<=55295||i>=57344||t+1>=n?t+1:t+2},en.prototype.current=function(){return this.at(this.pos)},en.prototype.lookahead=function(){return this.at(this.nextIndex(this.pos))},en.prototype.advance=function(){this.pos=this.nextIndex(this.pos)},en.prototype.eat=function(t){return this.current()===t&&(this.advance(),!0)},tn.validateRegExpFlags=function(t){for(var e=t.validFlags,n=t.flags,i=0;i<n.length;i++){var r=n.charAt(i);-1===e.indexOf(r)&&this.raise(t.start,"Invalid regular expression flag"),n.indexOf(r,i+1)>-1&&this.raise(t.start,"Duplicate regular expression flag")}},tn.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},tn.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,n=t.backReferenceNames;e<n.length;e+=1)-1===t.groupNames.indexOf(n[e])&&t.raise("Invalid named capture referenced")},tn.regexp_disjunction=function(t){for(this.regexp_alternative(t);t.eat(124);)this.regexp_alternative(t);this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},tn.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},tn.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!(t.switchU?!this.regexp_eatAtom(t):!this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},tn.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;
vendor: 4,787 bytes, line 1
1if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!n,!0}return t.pos=e,!1},tn.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},tn.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},tn.regexp_eatBracedQuantifier=function(t,e){var n=t.pos;if(t.eat(123)){var i=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(i=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<i&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=n}return!1},tn.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},tn.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},tn.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)&&t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}t.pos=e}return!1},tn.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},tn.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},tn.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},tn.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!rn(e)&&(t.lastIntValue=e,t.advance(),!0)},tn.regexp_eatPatternCharacters=function(t){for(var e=t.pos,n=0;-1!==(n=t.current())&&!rn(n);)t.advance();return t.pos!==e},tn.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e||(t.advance(),0))},tn.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t))return-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),void t.groupNames.push(t.lastStringValue);t.raise("Invalid group")}},tn.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},tn.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=nn(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=nn(t.lastIntValue);return!0}return!1},tn.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return Yt(t,!0)||36===t||95===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},tn.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,n=t.current();return t.advance(),92===n&&this.regexp_eatRegExpUnicodeEscapeSequence(t)&&(n=t.lastIntValue),function(t){return te(t,!0)||36===t||95===t||8204===t||8205===t}(n)?(t.lastIntValue=n,!0):(t.pos=e,!1)},tn.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},tn.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var n=t.lastIntValue;if(t.switchU)return n>t.maxBackReference&&(t.maxBackReference=n),!0;if(n<=t.numCapturingParens)return!0;t.pos=e}return!1},tn.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},tn.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},tn.regexp_eatCControlLetter=function(t){var e=t.pos;
1if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},tn.regexp_eatZero=function(t){return 48===t.current()&&!pn(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},tn.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},tn.regexp_eatControlLetter=function(t){var e=t.current();return!!sn(e)&&(t.lastIntValue=e%32,t.advance(),!0)},tn.regexp_eatRegExpUnicodeEscapeSequence=function(t){var e,n=t.pos;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var i=t.lastIntValue;if(t.switchU&&i>=55296&&i<=56319){var r=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var s=t.lastIntValue;if(s>=56320&&s<=57343)return t.lastIntValue=1024*(i-55296)+(s-56320)+65536,!0}t.pos=r,t.lastIntValue=i}return!0}if(t.switchU&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(e=t.lastIntValue)>=0&&e<=1114111)return!0;t.switchU&&t.raise("Invalid unicode escape"),t.pos=n}return!1},tn.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e||(t.lastIntValue=e,t.advance(),0))},tn.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1},tn.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1},tn.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var n=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t))return this.regexp_validateUnicodePropertyNameAndValue(t,n,t.lastStringValue),!0}return t.pos=e,!!this.regexp_eatLoneUnicodePropertyNameOrValue(t)&&(this.regexp_validateUnicodePropertyNameOrValue(t,t.lastStringValue),!0)},tn.regexp_validateUnicodePropertyNameAndValue=function(t,e,n){ge(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(n)||t.raise("Invalid property value")},tn.regexp_validateUnicodePropertyNameOrValue=function(t,e){t.unicodeProperties.binary.test(e)||t.raise("Invalid property name")},tn.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";an(e=t.current());)t.lastStringValue+=nn(e),t.advance();return""!==t.lastStringValue},tn.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";on(e=t.current());)t.lastStringValue+=nn(e),t.advance();return""!==t.lastStringValue},tn.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},tn.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},tn.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var n=t.lastIntValue;!t.switchU||-1!==e&&-1!==n||t.raise("Invalid character class"),-1!==e&&-1!==n&&e>n&&t.raise("Range out of order in character class")}}},tn.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var n=t.current();(99===n||hn(n))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var i=t.current();return 93!==i&&(t.lastIntValue=i,t.advance(),!0)},tn.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},tn.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!pn(e)&&95!==e||(t.lastIntValue=e%32,t.advance(),0))},tn.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},tn.regexp_eatDecimalDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;pn(n=t.current());)t.lastIntValue=10*t.lastIntValue+(n-48),t.advance();return t.pos!==e},tn.regexp_eatHexDigits=function(t){var e=t.pos,n=0;for(t.lastIntValue=0;cn(n=t.current());)t.lastIntValue=16*t.lastIntValue+ln(n),t.advance();return t.pos!==e},tn.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var n=t.lastIntValue;t.lastIntValue=e<=3&&this.regexp_eatOctalDigit(t)?64*e+8*n+t.lastIntValue:8*e+n}else t.lastIntValue=e;return!0}return!1},tn.regexp_eatOctalDigit=function(t){var e=t.current();return hn(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},tn.regexp_eatFixedHexDigits=function(t,e){var n=t.pos;t.lastIntValue=0;for(var i=0;i<e;++i){var r=t.current();
vendor: 6,488 bytes, line 1
1if(!cn(r))return t.pos=n,!1;t.lastIntValue=16*t.lastIntValue+ln(r),t.advance()}return!0};var un=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new xe(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},dn=Se.prototype;function fn(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}dn.next=function(){this.options.onToken&&this.options.onToken(new un(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},dn.getToken=function(){return this.next(),new un(this)},"undefined"!=typeof Symbol&&(dn[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===oe.eof,value:e}}}}),dn.curContext=function(){return this.context[this.context.length-1]},dn.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(oe.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},dn.readToken=function(t){return Yt(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},dn.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},dn.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),n=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(ce.lastIndex=n;(t=ce.exec(this.input))&&t.index<this.pos;)++this.curLine,this.lineStart=t.index+t[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,i),n,this.pos,e,this.curPosition())},dn.skipLineComment=function(t){for(var e=this.pos,n=this.options.onComment&&this.curPosition(),i=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!le(i);)i=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,n,this.curPosition())},dn.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&he.test(String.fromCharCode(t))))break t;++this.pos}}},dn.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=t,this.value=e,this.updateContext(n)},dn.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(oe.ellipsis)):(++this.pos,this.finishToken(oe.dot))},dn.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(oe.assign,2):this.finishOp(oe.slash,1)},dn.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),n=1,i=42===t?oe.star:oe.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++n,i=oe.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(oe.assign,n+1):this.finishOp(i,n)},dn.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.finishOp(124===t?oe.logicalOR:oe.logicalAND,2):61===e?this.finishOp(oe.assign,2):this.finishOp(124===t?oe.bitwiseOR:oe.bitwiseAND,1)},dn.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(oe.assign,2):this.finishOp(oe.bitwiseXOR,1)},dn.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!pe.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(oe.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(oe.assign,2):this.finishOp(oe.plusMin,1)},dn.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),n=1;return e===t?(n=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(oe.assign,n+1):this.finishOp(oe.bitShift,n)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(n=2),this.finishOp(oe.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},dn.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(oe.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(oe.arrow)):this.finishOp(61===t?oe.eq:oe.prefix,1)},dn.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(oe.parenL);case 41:return++this.pos,this.finishToken(oe.parenR);case 59:return++this.pos,this.finishToken(oe.semi);case 44:return++this.pos,this.finishToken(oe.comma);case 91:return++this.pos,this.finishToken(oe.bracketL);case 93:return++this.pos,this.finishToken(oe.bracketR);case 123:return++this.pos,this.finishToken(oe.braceL);case 125:return++this.pos,this.finishToken(oe.braceR);case 58:return++this.pos,this.finishToken(oe.colon);case 63:return++this.pos,this.finishToken(oe.question);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(oe.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);
1case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 126:return this.finishOp(oe.prefix,1)}this.raise(this.pos,"Unexpected character '"+fn(t)+"'")},dn.finishOp=function(t,e){var n=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,n)},dn.readRegexp=function(){for(var t,e,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var i=this.input.charAt(this.pos);if(pe.test(i)&&this.raise(n,"Unterminated regular expression"),t)t=!1;else{if("["===i)e=!0;else if("]"===i&&e)e=!1;else if("/"===i&&!e)break;t="\\"===i}++this.pos}var r=this.input.slice(n,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new en(this));o.reset(n,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var p=null;try{p=new RegExp(r,a)}catch(t){}return this.finishToken(oe.regexp,{pattern:r,flags:a,value:p})},dn.readInt=function(t,e){for(var n=this.pos,i=0,r=0,s=null==e?1/0:e;r<s;++r){var a,o=this.input.charCodeAt(this.pos);if((a=o>=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=t)break;++this.pos,i=i*t+a}return this.pos===n||null!=e&&this.pos-n!==e?null:i},dn.readRadixNumber=function(t){this.pos+=2;var e=this.readInt(t);return null==e&&this.raise(this.start+2,"Expected number in radix "+t),Yt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(oe.num,e)},dn.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10)||this.raise(e,"Invalid number");var n=this.pos-e>=2&&48===this.input.charCodeAt(e);n&&this.strict&&this.raise(e,"Invalid number"),n&&/[89]/.test(this.input.slice(e,this.pos))&&(n=!1);var i=this.input.charCodeAt(this.pos);46!==i||n||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||n||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),Yt(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var r=this.input.slice(e,this.pos),s=n?parseInt(r,8):parseFloat(r);return this.finishToken(oe.num,s)},dn.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},dn.readString=function(t){for(var e="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===t)break;92===i?(e+=this.input.slice(n,this.pos),e+=this.readEscapedChar(!1),n=this.pos):(le(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(n,this.pos++),this.finishToken(oe.string,e)};var mn={};dn.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(Zt){if(Zt!==mn)throw Zt;this.readInvalidTemplateToken()}this.inTemplateElement=!1},dn.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw mn;this.raise(t,e)},dn.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==oe.template&&this.type!==oe.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(oe.template,t)):36===n?(this.pos+=2,this.finishToken(oe.dollarBraceL)):(++this.pos,this.finishToken(oe.backQuote));if(92===n)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(le(n)){switch(t+=this.input.slice(e,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},dn.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(oe.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},dn.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return fn(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";default:if(e>=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(n=n.slice(0,-1),i=parseInt(n,8)),this.pos+=n.length-1,e=this.input.charCodeAt(this.pos),"0"===n&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-n.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return le(e)?"":String.fromCharCode(e)}},dn.readHexChar=function(t){var e=this.pos,n=this.readInt(16,t);return null===n&&this.invalidStringToken(e,"Bad character escape sequence"),n},dn.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,n=this.pos,i=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(te(r,i))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(e?Yt:te)(a,i)||this.invalidStringToken(s,"Invalid Unicode escape"),t+=fn(a),n=this.pos}e=!1}return t+this.input.slice(n,this.pos)},dn.readWord=function(){var t=this.readWord1(),e=oe.name;return this.keywords.test(t)&&(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+t),e=se[t]),this.finishToken(e,t)};var gn={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",A
1circ:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},yn={version:"6.1.1",parse:function(t,e){return Se.parse(t,e)},parseExpressionAt:function(t,e,n){return Se.parseExpressionAt(t,e,n)},tokenizer:function(t,e){return Se.tokenizer(t,e)},Parser:Se,defaultOptions:Ee,Position:be,SourceLocation:xe,getLineInfo:_e,Node:Ue,TokenType:ee,tokTypes:oe,keywordTypes:se,TokContext:ze,tokContexts:qe,isIdentifierChar:te,isIdentifierStart:Yt,Token:un,isNewLine:le,lineBreak:pe,lineBreakG:ce,nonASCIIwhitespace:he};const vn=/^[\da-fA-F]+$/,bn=/^\d+$/,xn=yn.tokTypes,_n=yn.TokContext,En=yn.tokContexts,kn=yn.TokenType,Sn=yn.isNewLine,wn=yn.isIdentifierStart,Cn=yn.isIdentifierChar,An=new _n("<tag",!1),Nn=new _n("</tag",!1),Ln=new _n("<tag>...</tag>",!0,!0),In={jsxName:new kn("jsxName"),jsxText:new kn("jsxText",{beforeExpr:!0}),jsxTagStart:new kn("jsxTagStart"),jsxTagEnd:new kn("jsxTagEnd")};function Pn(t){return t?"JSXIdentifier"===t.type?t.name:"JSXNamespacedName"===t.type?t.namespace.name+":"+t.name.name:"JSXMemberExpression"===t.type?Pn(t.object)+"."+Pn(t.property):void 0:t}In.jsxTagStart.updateContext=function(){this.context.push(Ln),this.context.push(An),this.exprAllowed=!1},In.jsxTagEnd.updateContext=function(t){let e=this.context.pop();e===An&&t===xn.slash||e===Nn?(this.context.pop(),this.exprAllowed=this.curContext()===Ln):this.exprAllowed=!0};var Tn=function(t){return t=t||{},function(e){return function(t,e){return class extends e{jsx_readToken(){let t="",e=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(In.jsxTagStart)):this.getTokenFromCode(n):(t+=this.input.slice(e,this.pos),this.finishToken(In.jsxText,t));case 38:t+=this.input.slice(e,this.pos),t+=this.jsx_readEntity(),e=this.pos;break;default:Sn(n)?(t+=this.input.slice(e,this.pos),t+=this.jsx_readNewLine(!0),e=this.pos):++this.pos}}}jsx_readNewLine(t){let e,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,e=t?"\n":"\r\n"):e=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),e}jsx_readString(t){let e="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let i=this.input.charCodeAt(this.pos);if(i===t)break;38===i?(e+=this.input.slice(n,this.pos),e+=this.jsx_readEntity(),n=this.pos):Sn(i)?(e+=this.input.slice(n,this.pos),e+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return e+=this.input.slice(n,this.pos++),this.finishToken(xn.string,e)}jsx_readEntity(){let t,e="",n=0,i=this.input[this.pos];"&"!==i&&this.raise(this.pos,"Entity must start with an ampersand");let r=++this.pos;for(;this.pos<this.input.length&&n++<10;){if(";"===(i=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),vn.test(e)&&(t=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),bn.test(e)&&(t=String.fromCharCode(parseInt(e,10)))):t=gn[e];break}e+=i}return t||(this.pos=r,"&")}jsx_readWord(){let t,e=this.pos;do{t=this.input.charCodeAt(++this.pos)}while(Cn(t)||45===t);return this.finishToken(In.jsxName,this.input.slice(e,this.pos))}jsx_parseIdentifier(){let t=this.startNode();return this.type===In.jsxName?t.name=this.value:this.type.keyword?t.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsx_parseNamespacedName(){let e=this.start,n=this.startLoc,i=this.jsx_parseIdentifier();if(!t.allowNamespaces||!this.eat(xn.colon))return i;var r=this.startNodeAt(e,n);return r.namespace=i,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}
1jsx_parseElementName(){if(this.type===In.jsxTagEnd)return"";let e=this.start,n=this.startLoc,i=this.jsx_parseNamespacedName();for(this.type!==xn.dot||"JSXNamespacedName"!==i.type||t.allowNamespacedObjects||this.unexpected();this.eat(xn.dot);){let t=this.startNodeAt(e,n);t.object=i,t.property=this.jsx_parseIdentifier(),i=this.finishNode(t,"JSXMemberExpression")}return i}jsx_parseAttributeValue(){switch(this.type){case xn.braceL:let t=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===t.expression.type&&this.raise(t.start,"JSX attributes must only be assigned a non-empty expression"),t;case In.jsxTagStart:case xn.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let t=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let t=this.startNode();return this.next(),t.expression=this.type===xn.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(xn.braceR),this.finishNode(t,"JSXExpressionContainer")}jsx_parseAttribute(){let t=this.startNode();return this.eat(xn.braceL)?(this.expect(xn.ellipsis),t.argument=this.parseMaybeAssign(),this.expect(xn.braceR),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsx_parseNamespacedName(),t.value=this.eat(xn.eq)?this.jsx_parseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsx_parseOpeningElementAt(t,e){let n=this.startNodeAt(t,e);n.attributes=[];let i=this.jsx_parseElementName();for(i&&(n.name=i);this.type!==xn.slash&&this.type!==In.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(xn.slash),this.expect(In.jsxTagEnd),this.finishNode(n,i?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(t,e){let n=this.startNodeAt(t,e),i=this.jsx_parseElementName();return i&&(n.name=i),this.expect(In.jsxTagEnd),this.finishNode(n,i?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(t,e){let n=this.startNodeAt(t,e),i=[],r=this.jsx_parseOpeningElementAt(t,e),s=null;if(!r.selfClosing){t:for(;;)switch(this.type){case In.jsxTagStart:if(t=this.start,e=this.startLoc,this.next(),this.eat(xn.slash)){s=this.jsx_parseClosingElementAt(t,e);break t}i.push(this.jsx_parseElementAt(t,e));break;case In.jsxText:i.push(this.parseExprAtom());break;case xn.braceL:i.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}Pn(s.name)!==Pn(r.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+Pn(r.name)+">")}let a=r.name?"Element":"Fragment";return n["opening"+a]=r,n["closing"+a]=s,n.children=i,this.type===xn.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+a)}jsx_parseText(t){let e=this.parseLiteral(t);return e.type="JSXText",e}jsx_parseElement(){let t=this.start,e=this.startLoc;return this.next(),this.jsx_parseElementAt(t,e)}parseExprAtom(t){return this.type===In.jsxText?this.jsx_parseText(this.value):this.type===In.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(t)}readToken(t){let e=this.curContext();if(e===Ln)return this.jsx_readToken();if(e===An||e===Nn){if(wn(t))return this.jsx_readWord();if(62==t)return++this.pos,this.finishToken(In.jsxTagEnd);if((34===t||39===t)&&e==An)return this.jsx_readString(t)}return 60===t&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(In.jsxTagStart)):super.readToken(t)}updateContext(t){if(this.type==xn.braceL){var e=this.curContext();e==An?this.context.push(En.b_expr):e==Ln?this.context.push(En.b_tmpl):super.updateContext(t),this.exprAllowed=!0}else{if(this.type!==xn.slash||t!==In.jsxTagStart)return super.updateContext(t);this.context.length-=2,this.context.push(Nn),this.exprAllowed=!1}}}}({allowNamespaces:!1!==t.allowNamespaces,allowNamespacedObjects:!!t.allowNamespacedObjects},e)}};Tn.tokTypes=In;var On,jn,Rn=(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicImportKey=void 0;var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),i=function t(e,n,i){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,n);if(void 0===r){var s=Object.getPrototypeOf(e);return null===s?void 0:t(s,n,i)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(i):void 0};e.default=function(t){return function(e){function s(){return function(t,e){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,t),n(s,[{key:"parseStatement",value:function(t,e,n){return this.type===yn.tokTypes._import&&function(){return/^(\s|\/\/.*|\/\*[^]*?\*\/)*\(/.test(this.input.slice(this.pos))}
1.call(this)?this.parseExpressionStatement(this.startNode(),this.parseExpression()):i(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"parseStatement",this).call(this,t,e,n)}},{key:"parseExprAtom",value:function(t){return this.type===yn.tokTypes._import?function(){var t=this.startNode();return this.next(),this.type!==yn.tokTypes.parenL&&this.unexpected(),this.finishNode(t,r)}.call(this):i(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"parseExprAtom",this).call(this,t)}}]),s}()};var r=e.DynamicImportKey="Import";yn.tokTypes._import.startsExpr=!0}(On={exports:{}},On.exports),(jn=On.exports)&&jn.__esModule&&Object.prototype.hasOwnProperty.call(jn,"default")?jn.default:jn);const Vn=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Bn=yn.tokTypes;function Dn(t){if(this.eat(Bn.eq)){const e=this._inFieldValue;this._inFieldValue=!0,t.value=this.parseExpression(),this._inFieldValue=e}else t.value=null}function Mn(){const t=this.startNode();return t.name=this.value,this.next(),this.finishNode(t,"PrivateName"),"never"==this.options.allowReserved&&this.checkUnreserved(t),t}const Fn=new(0,yn.TokenType)("privateName");function Un(t){var e="";t=t<0?-t<<1|1:t<<1;do{var n=31&t;(t>>=5)>0&&(n|=32),e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[n]}while(t>0);return e}var Zn=function(t,e,n){this.start=t,this.end=e,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Zn.prototype.appendLeft=function(t){this.outro+=t},Zn.prototype.appendRight=function(t){this.intro=this.intro+t},Zn.prototype.clone=function(){var t=new Zn(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t},Zn.prototype.contains=function(t){return this.start<t&&t<this.end},Zn.prototype.eachNext=function(t){for(var e=this;e;)t(e),e=e.next},Zn.prototype.eachPrevious=function(t){for(var e=this;e;)t(e),e=e.previous},Zn.prototype.edit=function(t,e,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this},Zn.prototype.prependLeft=function(t){this.outro=t+this.outro},Zn.prototype.prependRight=function(t){this.intro=t+this.intro},Zn.prototype.split=function(t){var e=t-this.start,n=this.original.slice(0,e),i=this.original.slice(e);this.original=n;var r=new Zn(t,this.end,i);return r.outro=this.outro,this.outro="",this.end=t,this.edited?(r.edit("",!1),this.content=""):this.content=n,r.next=this.next,r.next&&(r.next.previous=r),r.previous=this,this.next=r,r},Zn.prototype.toString=function(){return this.intro+this.content+this.outro},Zn.prototype.trimEnd=function(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&this.split(this.start+e.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),!!this.intro.length||void 0)},Zn.prototype.trimStart=function(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&(this.split(this.end-e.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),!!this.outro.length||void 0)};var Hn=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?Hn=function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"function"==typeof Buffer&&(Hn=function(t){return Buffer.from(t,"utf-8").toString("base64")});var zn=function(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=function(t){for(var e=0,n=0,i=0,r=0,s="",a=0;a<t.length;a++){var o=t[a];if(a>0&&(s+=";"),0!==o.length){for(var p=0,c=[],l=0,h=o;l<h.length;l++){var u=h[l],d=Un(u[0]-p);p=u[0],u.length>1&&(d+=Un(u[1]-e)+Un(u[2]-n)+Un(u[3]-i),e=u[1],n=u[2],i=u[3]),5===u.length&&(d+=Un(u[4]-r),r=u[4]),c.push(d)}s+=c.join(",")}}return s}(t.mappings)};function qn(t){var e=t.split("\n"),n=e.filter((function(t){return/^\t+/.test(t)})),i=e.filter((function(t){return/^ {2,}/.test(t)}));if(0===n.length&&0===i.length)return null;if(n.length>=i.length)return"\t";var r=i.reduce((function(t,e){var n=/^ +/.exec(e)[0].length;return Math.min(n,t)}),1/0);return new Array(r+1).join(" ")}function Wn(t,e){var n=t.split(/[\/\\]/),i=e.split(/[\/\\]/);for(n.pop();n[0]===i[0];)n.shift(),i.shift();if(n.length)for(var r=n.length;r--;)n[r]="..";return n.concat(i).join("/")}zn.prototype.toString=function(){return JSON.stringify(this)},zn.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+Hn(this.toString())};var Xn=Object.prototype.toString;function Jn(t){for(var e=t.split("\n"),n=[],i=0,r=0;i<e.length;i++)n.push(r),r+=e[i].length+1;return function(t){for(var e=0,i=n.length;e<i;){var r=e+i>>1;t<n[r]?i=r:e=r+1}var s=e-1;return{line:s,column:t-n[s]}}}var Kn=function(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Kn.prototype.addEdit=function(t,e,n,i){if(e.length){var r=[this.generatedCodeColumn,t,n.line,n.column];i>=0&&r.push(i),this.rawSegments.push(r)}else this.pending&&this.rawSegments.push(this.pending);this.advance(e),this.pending=null},Kn.prototype.addUneditedChunk=function(t,e,n,i,r){for(var s=e.start,a=!0;s<e.end;)(this.hires||a||r[s])&&this.rawSegments.push([this.generatedCodeColumn,t,i.line,i.column]),"\n"===n[s]?(i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0):(i.column+=1,this.generatedCodeColumn+=1),s+=1,a=!1;this.pending=[this.generatedCodeColumn,t,i.line,i.column]},Kn.prototype.advance=function(t){if(t){var e=t.split("\n");if(e.length>1){for(var n=0;n<e.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}};var Gn="\n",Qn={insertLeft:!1,insertRight:!1,storeName:!1},$n=function(t,e){void 0===e&&(e={});var n=new Zn(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:qn(t)}}),this.byStart[0]=n,this.byEnd[t.length]=n};function Yn(t){var e={};return Object.keys(t).forEach((function(n){"parent"!==n&&"program"!==n&&"keys"!==n&&"__wrapped"!==n&&(e[n]=Array.isArray(t[n])?t[n].map(Yn):t[n]&&t[n].toJSON?t[n].toJSON():t[n])})),e}$n.prototype.addSourcemapLocation=function(t){this.sourcemapLocations[t]=!0},$n.prototype.append=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.outro+=t,this},$n.prototype.appendLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.appendLeft(e):this.intro+=e,this},$n.prototype.appendRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.appendRight(e):this.outro+=e,this},$n.prototype.clone=function(){for(var t=new $n(this.original,{filename:this.filename}),e=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=e.clone();e;){t.byStart[n.start]=n,t.byEnd[n.end]=n;var i=e.next,r=i&&i.clone();r&&(n.next=r,r.previous=n,n=r),e=i}
1return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach((function(e){t.sourcemapLocations[e]=!0})),t},$n.prototype.generateDecodedMap=function(t){var e=this;t=t||{};var n=Object.keys(this.storedNames),i=new Kn(t.hires),r=Jn(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext((function(t){var s=r(t.start);t.intro.length&&i.advance(t.intro),t.edited?i.addEdit(0,t.content,s,t.storeName?n.indexOf(t.original):-1):i.addUneditedChunk(0,t,e.original,s,e.sourcemapLocations),t.outro.length&&i.advance(t.outro)})),{file:t.file?t.file.split(/[\/\\]/).pop():null,sources:[t.source?Wn(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:n,mappings:i.raw}},$n.prototype.generateMap=function(t){return new zn(this.generateDecodedMap(t))},$n.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},$n.prototype.indent=function(t,e){var n=/^[^\r\n]/gm;if("[object Object]"===Xn.call(t)&&(e=t,t=void 0),""===(t=void 0!==t?t:this.indentStr||"\t"))return this;var i={};(e=e||{}).exclude&&("number"==typeof e.exclude[0]?[e.exclude]:e.exclude).forEach((function(t){for(var e=t[0];e<t[1];e+=1)i[e]=!0}));var r=!1!==e.indentStart,s=function(e){return r?""+t+e:(r=!0,e)};this.intro=this.intro.replace(n,s);for(var a=0,o=this.firstChunk;o;){var p=o.end;if(o.edited)i[a]||(o.content=o.content.replace(n,s),o.content.length&&(r="\n"===o.content[o.content.length-1]));else for(a=o.start;a<p;){if(!i[a]){var c=this.original[a];"\n"===c?r=!0:"\r"!==c&&r&&(r=!1,a===o.start?o.prependRight(t):(this._splitChunk(o,a),(o=o.next).prependRight(t)))}a+=1}a=o.end,o=o.next}return this.outro=this.outro.replace(n,s),this},$n.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},$n.prototype.insertLeft=function(t,e){return Qn.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Qn.insertLeft=!0),this.appendLeft(t,e)},$n.prototype.insertRight=function(t,e){return Qn.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Qn.insertRight=!0),this.prependRight(t,e)},$n.prototype.move=function(t,e,n){if(n>=t&&n<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(n);var i=this.byStart[t],r=this.byEnd[e],s=i.previous,a=r.next,o=this.byStart[n];if(!o&&r===this.lastChunk)return this;var p=o?o.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),p&&(p.next=i),o&&(o.previous=r),i.previous||(this.firstChunk=r.next),r.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=p,r.next=o||null,p||(this.firstChunk=i),o||(this.lastChunk=r),this},$n.prototype.overwrite=function(t,e,n,i){if("string"!=typeof n)throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(e),!0===i&&(Qn.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Qn.storeName=!0),i={storeName:!0});var r=void 0!==i&&i.storeName,s=void 0!==i&&i.contentOnly;if(r){var a=this.original.slice(t,e);this.storedNames[a]=!0}var o=this.byStart[t],p=this.byEnd[e];if(o){if(e>o.end&&o.next!==this.byStart[o.end])throw new Error("Cannot overwrite across a split point");if(o.edit(n,r,s),o!==p){for(var c=o.next;c!==p;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var l=new Zn(t,e,"").edit(n,r);p.next=l,l.previous=p}return this},$n.prototype.prepend=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this},$n.prototype.prependLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byEnd[t];return n?n.prependLeft(e):this.intro=e+this.intro,this},$n.prototype.prependRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var n=this.byStart[t];return n?n.prependRight(e):this.outro=e+this.outro,this},$n.prototype.remove=function(t,e){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);for(var n=this.byStart[t];n;)n.intro="",n.outro="",n.edit(""),n=e>n.end?this.byStart[n.end]:null;return this},$n.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""},$n.prototype.lastLine=function(){var t=this.outro.lastIndexOf(Gn);if(-1!==t)return this.outro.substr(t+1);var e=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(-1!==(t=n.outro.lastIndexOf(Gn)))return n.outro.substr(t+1)+e;e=n.outro+e}if(n.content.length>0){if(-1!==(t=n.content.lastIndexOf(Gn)))return n.content.substr(t+1)+e;e=n.content+e}if(n.intro.length>0){if(-1!==(t=n.intro.lastIndexOf(Gn)))return n.intro.substr(t+1)+e;e=n.intro+e}}while(n=n.previous);return-1!==(t=this.intro.lastIndexOf(Gn))?this.intro.substr(t+1)+e:this.intro+e},$n.prototype.slice=function(t,e){for(void 0===t&&(t=0),void 0===e&&(e=this.original.length);t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;for(var n="",i=this.firstChunk;
1i&&(i.start>t||i.end<=t);){if(i.start<e&&i.end>=e)return n;i=i.next}if(i&&i.edited&&i.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var r=i;i;){!i.intro||r===i&&i.start!==t||(n+=i.intro);var s=i.start<e&&i.end>=e;if(s&&i.edited&&i.end!==e)throw new Error("Cannot use replaced character "+e+" as slice end anchor.");if(n+=i.content.slice(r===i?t-i.start:0,s?i.content.length+e-i.end:i.content.length),!i.outro||s&&i.end!==e||(n+=i.outro),s)break;i=i.next}return n},$n.prototype.snip=function(t,e){var n=this.clone();return n.remove(0,t),n.remove(e,n.original.length),n},$n.prototype._split=function(t){if(!this.byStart[t]&&!this.byEnd[t])for(var e=this.lastSearchedChunk,n=t>e.end;e;){if(e.contains(t))return this._splitChunk(e,t);e=n?this.byStart[e.end]:this.byEnd[e.start]}},$n.prototype._splitChunk=function(t,e){if(t.edited&&t.content.length){var n=Jn(this.original)(e);throw new Error("Cannot split a chunk that has already been edited ("+n.line+":"+n.column+' \u2013 "'+t.original+'")')}var i=t.split(e);return this.byEnd[e]=t,this.byStart[e]=i,this.byEnd[i.end]=i,t===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=t,!0},$n.prototype.toString=function(){for(var t=this.intro,e=this.firstChunk;e;)t+=e.toString(),e=e.next;return t+this.outro},$n.prototype.isEmpty=function(){var t=this.firstChunk;do{if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1}while(t=t.next);return!0},$n.prototype.length=function(){var t=this.firstChunk,e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e},$n.prototype.trimLines=function(){return this.trim("[\\r\\n]")},$n.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)},$n.prototype.trimEndAborted=function(t){var e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var n=this.lastChunk;do{var i=n.end,r=n.trimEnd(e);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.previous}while(n);return!1},$n.prototype.trimEnd=function(t){return this.trimEndAborted(t),this},$n.prototype.trimStartAborted=function(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var n=this.firstChunk;do{var i=n.end,r=n.trimStart(e);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),r)return!0;n=n.next}while(n);return!1},$n.prototype.trimStart=function(t){return this.trimStartAborted(t),this};var ti=function(){};function ei(t){var e=[];return ni[t.type](e,t),e}ti.prototype.ancestor=function(t){for(var e=this;t--;)if(!(e=e.parent))return null;return e},ti.prototype.contains=function(t){for(;t;){if(t===this)return!0;t=t.parent}return!1},ti.prototype.findLexicalBoundary=function(){return this.parent.findLexicalBoundary()},ti.prototype.findNearest=function(t){return"string"==typeof t&&(t=new RegExp("^"+t+"$")),t.test(this.type)?this:this.parent.findNearest(t)},ti.prototype.unparenthesizedParent=function(){for(var t=this.parent;t&&"ParenthesizedExpression"===t.type;)t=t.parent;return t},ti.prototype.unparenthesize=function(){for(var t=this;"ParenthesizedExpression"===t.type;)t=t.expression;return t},ti.prototype.findScope=function(t){return this.parent.findScope(t)},ti.prototype.getIndentation=function(){return this.parent.getIndentation()},ti.prototype.initialise=function(t){for(var e=0,n=this.keys;e<n.length;e+=1){var i=this[n[e]];Array.isArray(i)?i.forEach((function(e){return e&&e.initialise(t)})):i&&"object"==typeof i&&i.initialise(t)}},ti.prototype.toJSON=function(){return Yn(this)},ti.prototype.toString=function(){return this.program.magicString.original.slice(this.start,this.end)},ti.prototype.transpile=function(t,e){for(var n=0,i=this.keys;n<i.length;n+=1){var r=this[i[n]];Array.isArray(r)?r.forEach((function(n){return n&&n.transpile(t,e)})):r&&"object"==typeof r&&r.transpile(t,e)}};var ni={Identifier:function(t,e){t.push(e)},ObjectPattern:function(t,e){for(var n=0,i=e.properties;n<i.length;n+=1){var r=i[n];ni[r.type](t,r)}},Property:function(t,e){ni[e.value.type](t,e.value)},ArrayPattern:function(t,e){for(var n=0,i=e.elements;n<i.length;n+=1){var r=i[n];r&&ni[r.type](t,r)}},RestElement:function(t,e){ni[e.argument.type](t,e.argument)},AssignmentPattern:function(t,e){ni[e.left.type](t,e.left)}},ii=Object.create(null);function ri(t){this.parent=(t=t||{}).parent,this.isBlockScope=!!t.block,this.createDeclarationCallback=t.declare;for(var e=this;e.isBlockScope;)e=e.parent;this.functionScope=e,this.identifiers=[],this.declarations=Object.create(null),this.references=Object.create(null),this.blockScopedDeclarations=this.isBlockScope?null:Object.create(null),this.aliases=Object.create(null)}function si(t,e){for(var n="";e--;)n+=t;return n}function ai(t,e,n){void 0===n&&(n=1);var i=Math.max(e.line-5,0),r=e.line,s=String(r).length,a=t.split("\n").slice(i,r),o=a[a.length-1].slice(0,e.column).replace(/\t/g," ").length;return a.map((function(t,e){return n=s,(r=String(e+i+1))+si(" ",n-r.length)+" : "+t.replace(/\t/g," ");var n,r})).join("\n")+"\n"+si(" ",s+3+o)+si("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach((function(t){return ii[t]=!0})),ri.prototype={addDeclaration:function(t,e){for(var n=0,i=ei(t);n<i.length;n+=1){var r=i[n],s=r.name,a={name:s,node:r,kind:e,instances:[]};this.declarations[s]=a,this.isBlockScope&&(this.functionScope.blockScopedDeclarations[s]||(this.functionScope.blockScopedDeclarations[s]=[]),this.functionScope.blockScopedDeclarations[s].push(a))}},addReference:function(t){this.consolidated?this.consolidateReference(t):this.identifiers.push(t)},consolidate:function(){for(var t=0;t<this.identifiers.length;t+=1)this.consolidateReference(this.identifiers[t]);this.consolidated=!0},consolidateReference:function(t){var e=this.declarations[t.name];e?e.instances.push(t):(this.references[t.name]=!0,this.parent&&this.parent.addReference(t))},contains:function(t){return this.declarations[t]||!!this.parent&&this.parent.contains(t)},createIdentifier:function(t){"number"==typeof t&&(t=t.toString());for(var e=t=t.replace(/\s/g,"").replace(/\[([^\]]+)\]/g,"_$1").replace(/[^a-zA-Z0-9_$]/g,"_").replace(/_{2,}/,"_"),n=1;this.declarations[e]||this.references[e]||this.aliases[e]||e in ii;)e=t+"$"+n++;return this.aliases[e]=!0,e},createDeclaration:function(t){var e=this.createIdentifier(t);return this.createDeclarationCallback(e),e},findDeclaration:function(t){return this.declarations[t]||this.parent&&this.parent.findDeclaration(t)},resolveName:function(t){var e=this.findDeclaration(t);return e?e.name:t}};var oi=function(t){function e(e,n){if(t.call(this,e),this.name="CompileError",n){var i=n.program.magicString.original,r=function(t,e){var n,i=t.split("\n"),r=i.length,s=0;for(n=0;n<r;n+=1){var a=s+i[n].length+1;if(a>e)return{line:n+1,column:e-s,char:n};s=a}throw new Error("Could not determine location of character")}(i,n.start);this.message=e+" ("+r.line+":"+r.column+")",this.stack=(new t).stack.replace(new RegExp(".+new "+this.name+".+\\n","m"),""),this.loc=r,this.snippet=ai(i,r,n.end-n.start)}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+"\n"+this.snippet},e.missingTransform=function(t,n,i,r){throw void 0===r&&(r=null),new e("Transforming "+t+" is not "+(r?"fully supported":"implemented")+". Use `transforms: { "+n+": false }` to skip transformation and disable this error"+(r?", or `transforms: { "+r+": true }
1` if you know what you're doing":"")+".",i)},e}(Error);function pi(t,e){for(var n=0;n<t.length;n+=1)if(e(t[n],n))return n;return-1}var ci={Identifier:hi,AssignmentPattern:function(t,e,n,i,r,s,a){var o="Identifier"===i.left.type,p=o?i.left.name:r;s||a.push((function(e,n,r){t.prependRight(i.left.end,n+"if ( "+p+" === void 0 ) "+p),t.move(i.left.end,i.right.end,e),t.appendLeft(i.right.end,r)})),o||li(t,e,n,i.left,r,s,a)},ArrayPattern:function(t,e,n,i,r,s,a){var o=i.start;i.elements.forEach((function(i,p){i&&("RestElement"===i.type?di(t,e,n,o,i.argument,r+".slice("+p+")",s,a):di(t,e,n,o,i,r+"["+p+"]",s,a),o=i.end)})),t.remove(o,i.end)},ObjectPattern:ui};function li(t,e,n,i,r,s,a){ci[i.type](t,e,n,i,r,s,a)}function hi(t,e,n,i,r,s,a){a.push((function(e,a,o){t.overwrite(i.start,i.end,(s?a:a+"var ")+n(i)+" = "+r+o),t.move(i.start,i.end,e)}))}function ui(t,e,n,i,r,s,a){var o=this,p=i.start,c=[];i.properties.forEach((function(i){var l,h;if("Property"===i.type)if(h=i.value,i.computed||"Identifier"!==i.key.type)if(i.computed||"Literal"!==i.key.type){var u=t.slice(i.key.start,i.key.end);l=r+"["+u+"]",c.push("String("+u+")")}else l=r+"["+i.key.raw+"]",c.push(JSON.stringify(String(i.key.value)));else l=r+"."+i.key.name,c.push('"'+i.key.name+'"');else{if("RestElement"!==i.type)throw new oi(o,"Unexpected node of type "+i.type+" in object pattern");h=i.argument,l=e("rest"),a.push((function(e,n,a){var o=i.program.getObjectWithoutPropertiesHelper(t);t.overwrite(i.start,p=i.argument.start,(s?n:n+"var ")+l+" = "+o+"( "+r+", ["+c.join(", ")+"] )"+a),t.move(i.start,p,e)}))}di(t,e,n,p,h,l,s,a),p=i.end})),t.remove(p,i.end)}function di(t,e,n,i,r,s,a,o){switch(r.type){case"Identifier":t.remove(i,r.start),hi(t,0,n,r,s,a,o);break;case"MemberExpression":t.remove(i,r.start),function(t,e,n,i,r,s,a){a.push((function(e,n,s){t.prependRight(i.start,n),t.appendLeft(i.end," = "+r+s),t.move(i.start,i.end,e)}))}(t,0,0,r,s,0,o);break;case"AssignmentPattern":var p,c="Identifier"===r.left.type;p=c?n(r.left):e(s),o.push((function(e,n,i){a?(t.prependRight(r.right.start,p+" = "+s+", "+p+" = "+p+" === void 0 ? "),t.appendLeft(r.right.end," : "+p+i)):(t.prependRight(r.right.start,n+"var "+p+" = "+s+"; if ( "+p+" === void 0 ) "+p+" = "),t.appendLeft(r.right.end,i)),t.move(r.right.start,r.right.end,e)})),c?t.remove(i,r.right.start):(t.remove(i,r.left.start),t.remove(r.left.end,r.right.start),di(t,e,n,i,r.left,p,a,o));break;case"ObjectPattern":t.remove(i,i=r.start);var l=s;r.properties.length>1&&(l=e(s),o.push((function(e,n,o){t.prependRight(r.start,(a?"":n+"var ")+l+" = "),t.overwrite(r.start,i=r.start+1,s),t.appendLeft(i,o),t.overwrite(r.start,i=r.start+1,(a?"":n+"var ")+l+" = "+s+o),t.move(r.start,i,e)}))),ui(t,e,n,r,l,a,o);break;case"ArrayPattern":if(t.remove(i,i=r.start),r.elements.filter(Boolean).length>1){var h=e(s);o.push((function(e,n,o){t.prependRight(r.start,(a?"":n+"var ")+h+" = "),t.overwrite(r.start,i=r.start+1,s,{contentOnly:!0}),t.appendLeft(i,o),t.move(r.start,i,e)})),r.elements.forEach((function(r,s){r&&("RestElement"===r.type?di(t,e,n,i,r.argument,h+".slice("+s+")",a,o):di(t,e,n,i,r,h+"["+s+"]",a,o),i=r.end)}))}else{var u=pi(r.elements,Boolean),d=r.elements[u];"RestElement"===d.type?di(t,e,n,i,d.argument,s+".slice("+u+")",a,o):di(t,e,n,i,d,s+"["+u+"]",a,o),i=d.end}t.remove(i,r.end);break;default:throw new Error("Unexpected node type in destructuring ("+r.type+")")}}var fi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createScope=function(){var t=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new ri({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function(e){return t.createdDeclarations.push(e)}}),this.parentIsFunction&&this.parent.params.forEach((function(e){t.scope.addDeclaration(e,"param")}))},e.prototype.initialise=function(t){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach((function(e){return e.initialise(t)})),this.scope.consolidate()},e.prototype.findLexicalBoundary=function(){return"Program"===this.type||/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},e.prototype.findScope=function(t){return t&&!this.isFunctionBlock?this.parent.findScope(t):this.scope},e.prototype.getArgumentsAlias=function(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},e.prototype.getArgumentsArrayAlias=function(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},e.prototype.getThisAlias=function(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},e.prototype.getIndentation=function(){if(void 0===this.indentation){for(var t=this.program.magicString.original,e=this.synthetic||!this.body.length,n=e?this.start:this.body[0].start;n&&"\n"!==t[n];)n-=1;for(this.indentation="";;){var i=t[n+=1];if(" "!==i&&"\t"!==i)break;this.indentation+=i}
1for(var r=this.program.magicString.getIndentString(),s=this.parent;s;)"constructor"!==s.kind||s.parent.parent.superClass||(this.indentation=this.indentation.replace(r,"")),s=s.parent;e&&(this.indentation+=r)}return this.indentation},e.prototype.transpile=function(e,n){var i,r,s=this,a=this.getIndentation(),o=[];if(this.argumentsAlias&&o.push((function(t,n,i){e.appendLeft(t,n+"var "+s.argumentsAlias+" = arguments"+i)})),this.thisAlias&&o.push((function(t,n,i){e.appendLeft(t,n+"var "+s.thisAlias+" = this"+i)})),this.argumentsArrayAlias&&o.push((function(t,n,i){var r=s.scope.createIdentifier("i");e.appendLeft(t,n+"var "+r+" = arguments.length, "+s.argumentsArrayAlias+" = Array("+r+");\n"+a+"while ( "+r+"-- ) "+s.argumentsArrayAlias+"["+r+"] = arguments["+r+"]"+i)})),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,e,n,a,o):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],e,n,a,o),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(e),t.prototype.transpile.call(this,e,n),this.createdDeclarations.length&&o.push((function(t,n,i){var r=n+"var "+s.createdDeclarations.join(", ")+i;e.appendLeft(t,r)})),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var p=this.body[0];o.length?(e.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),e.prependRight(p.start,"\n"+a+"return "),e.appendLeft(p.end,";\n")):n.arrow&&(e.prependRight(p.start,"{ return "),e.appendLeft(p.end,"; }"))}else o.length&&e.prependRight(this.start,"{").appendLeft(this.end,"}");i=(r=this.body[0])&&"ExpressionStatement"===r.type&&"Literal"===r.expression.type&&"use strict"===r.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var c="\n"+a,l=";";o.forEach((function(t,e){e===o.length-1&&(l=";\n"),t(i,c,l)}))},e.prototype.transpileParameters=function(t,e,n,i,r){var s=this;t.forEach((function(a){if("AssignmentPattern"===a.type&&"Identifier"===a.left.type)n.defaultParameter&&r.push((function(t,n,i){e.prependRight(a.left.end,n+"if ( "+a.left.name+" === void 0 ) "+a.left.name).move(a.left.end,a.right.end,t).appendLeft(a.right.end,i)}));else if("RestElement"===a.type)n.spreadRest&&r.push((function(n,r,o){var p=t[t.length-2];if(p)e.remove(p?p.end:a.start,a.end);else{for(var c=a.start,l=a.end;/\s/.test(e.original[c-1]);)c-=1;for(;/\s/.test(e.original[l]);)l+=1;e.remove(c,l)}var h=a.argument.name,u=s.scope.createIdentifier("len"),d=t.length-1;e.prependRight(n,d?r+"var "+h+" = [], "+u+" = arguments.length - "+d+";\n"+i+"while ( "+u+"-- > 0 ) "+h+"[ "+u+" ] = arguments[ "+u+" + "+d+" ]"+o:r+"var "+h+" = [], "+u+" = arguments.length;\n"+i+"while ( "+u+"-- ) "+h+"[ "+u+" ] = arguments[ "+u+" ]"+o)}));else if("Identifier"!==a.type&&n.parameterDestructuring){var o=s.scope.createIdentifier("ref");li(e,(function(t){return s.scope.createIdentifier(t)}),(function(t){return s.scope.resolveName(t.name)}),a,o,!1,r),e.prependRight(a.start,o)}}))},e.prototype.transpileBlockScopedIdentifiers=function(t){var e=this;Object.keys(this.scope.blockScopedDeclarations).forEach((function(n){for(var i=0,r=e.scope.blockScopedDeclarations[n];i<r.length;i+=1){var s=r[i],a=!1;if("for.let"===s.kind){var o=s.node.findNearest("ForStatement");if(o.shouldRewriteAsFunction){var p=e.scope.createIdentifier(n),c=o.reassigned[n]?e.scope.createIdentifier(n):n;s.name=p,t.overwrite(s.node.start,s.node.end,p,{storeName:!0}),o.aliases[n]={outer:p,inner:c};for(var l=0,h=s.instances;l<h.length;l+=1){var u=h[l],d=o.body.contains(u)?c:p;n!==d&&t.overwrite(u.start,u.end,d,{storeName:!0})}a=!0}}if(!a){var f=e.scope.createIdentifier(n);if(n!==f){s.name=f,t.overwrite(s.node.start,s.node.end,f,{storeName:!0});for(var m=0,g=s.instances;m<g.length;m+=1){var y=g[m];y.rewritten=!0,t.overwrite(y.start,y.end,f,{storeName:!0})}}}}}))},e}(ti);function mi(t){return"Identifier"===t.type&&"arguments"===t.name}function gi(t,e,n){for(var i=n.length;i--;){var r=n[i];if(r&&"SpreadElement"===r.type){var s=r.argument;if("ArrayExpression"===s.type){var a=s.elements;if(!a.some((function(t){return null===t}))){var o=i===n.length-1;0===a.length?t.remove(o&&0!==i?n[i-1].end:r.start,o?e.end-1:n[i+1].start):(t.remove(r.start,a[0].start),t.remove(a[a.length-1].end,o?e.end-1:r.end
1)),n.splice.apply(n,[i,1].concat(a)),i+=a.length}}}}}function yi(t){switch(t.type){case"ArrayExpression":case"CallExpression":case"Identifier":case"ParenthesizedExpression":case"ThisExpression":return!1;default:return!0}}function vi(t,e,n,i,r){for(var s=e.length,a=-1;s--;){var o=e[s];o&&"SpreadElement"===o.type&&(mi(o.argument)&&t.overwrite(o.argument.start,o.argument.end,i),a=s)}if(-1===a)return!1;if(r){for(s=0;s<e.length;s+=1){var p=e[s];"SpreadElement"===p.type?t.remove(p.start,p.argument.start):(t.prependRight(p.start,"["),t.prependRight(p.end,"]"))}return!0}var c=e[a],l=e[a-1];if(l)t.overwrite(l.end,c.start," ].concat( ");else{var h;if(n!==c.start)(h=yi(c.argument))?t.overwrite(n,c.start,"( "):t.remove(n,c.start);else{if("CallExpression"!==c.parent.type)throw new oi("Unsupported spread construct, please raise an issue at https://github.com/bublejs/buble/issues",c);h=yi(c.argument)}t.overwrite(c.end,e[1].start,h?" ).concat( ":".concat( ")}for(s=a;s<e.length;s+=1)(c=e[s])&&("SpreadElement"===c.type?t.remove(c.start,c.argument.start):(t.appendLeft(c.start,"["),t.appendLeft(c.end,"]")));return!0}var bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){if(e.spreadRest&&this.elements.length)for(var n=this.findLexicalBoundary(),i=this.elements.length;i--;){var r=this.elements[i];r&&"SpreadElement"===r.type&&mi(r.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){if(t.prototype.transpile.call(this,e,n),n.spreadRest){if(gi(e,this,this.elements),this.elements.length){var i=this.elements[this.elements.length-1];i&&/\s*,/.test(e.original.slice(i.end,this.end))&&e.overwrite(i.end,this.end-1," ")}if(1===this.elements.length){var r=this.elements[0];r&&"SpreadElement"===r.type&&(mi(r.argument)?e.overwrite(this.start,this.end,"[].concat( "+this.argumentsArrayAlias+" )"):(e.overwrite(this.start,r.argument.start,"[].concat( "),e.overwrite(r.end,this.end," )")))}else vi(e,this.elements,this.start,this.argumentsArrayAlias)&&e.overwrite(this.end-1,this.end,")")}},e}(ti);function xi(t,e){for(;")"!==t.original[e];){if(","===t.original[e])return void t.remove(e,e+1);"/"===t.original[e]&&(e="/"===t.original[e+1]?t.original.indexOf("\n",e):t.original.indexOf("*/",e)+1),e+=1}}var _i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.async&&e.asyncAwait&&oi.missingTransform("async arrow functions","asyncAwait",this),this.body.createScope(),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){for(var i=this.start,r=(this.body||this.params[0]).start-1;"("!==e.original[i]&&i<r;)++i;"("!==e.original[i]&&(i=-1);var s=-1===i;if(n.arrow||this.needsArguments(n)){for(var a=this.body.start;"="!==e.original[a];)a-=1;e.remove(a,this.body.start),t.prototype.transpile.call(this,e,n),s&&(e.prependRight(this.params[0].start,"("),e.appendLeft(this.params[0].end,")"));var o,p=this.parent&&"ExpressionStatement"===this.parent.type,c=p?"!":"";this.async&&(c+="async "),c+="function",p||(c+=" "),(o=s?this.params[0].start:i)>this.start?e.overwrite(this.start,o,c):e.prependRight(this.start,c)}else t.prototype.transpile.call(this,e,n);n.trailingFunctionCommas&&this.params.length&&!s&&xi(e,this.params[this.params.length-1].end)},e.prototype.needsArguments=function(t){return t.spreadRest&&this.params.filter((function(t){return"RestElement"===t.type})).length>0},e}(ti);function Ei(t,e){var n=e.findDeclaration(t.name);if(n&&"const"===n.kind)throw new oi(t.name+" is read-only",t)}var ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),i=n&&n.node.ancestor(3);i&&"ForStatement"===i.type&&i.body.contains(this)&&(i.reassigned[this.left.name]=!0)}t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){"Identifier"===this.left.type&&Ei(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(e,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(e),t.prototype.transpile.call(this,e,n)},e.prototype.transpileDestructuring=function(t){var e=this,n=this.findScope(!0),i=this.findScope(!1),r=n.createDeclaration("assign");t.appendRight(this.left.end,"("+r),t.appendLeft(this.right.end,", ");var s=[];li(t,(function(t){return n.createDeclaration(t)}),(function(t){var e=i.resolveName(t.name);return Ei(t,i),e}),this.left,r,!0,s);var a=", ";
1s.forEach((function(t,n){n===s.length-1&&(a=""),t(e.end,"",a)})),"ExpressionStatement"===this.unparenthesizedParent().type?t.prependRight(this.end,")"):t.appendRight(this.end,", "+r+")")},e.prototype.transpileExponentiation=function(t){for(var e,n=this.findScope(!1),i=this.left.end;"*"!==t.original[i];)i+=1;t.remove(i,i+2);var r=this.left.unparenthesize();if("Identifier"===r.type)e=n.resolveName(r.name);else if("MemberExpression"===r.type){var s,a,o=!1,p=!1,c=this.findNearest(/(?:Statement|Declaration)$/),l=c.getIndentation();"Identifier"===r.property.type?a=r.computed?n.resolveName(r.property.name):r.property.name:(a=n.createDeclaration("property"),p=!0),"Identifier"===r.object.type?s=n.resolveName(r.object.name):(s=n.createDeclaration("object"),o=!0),r.start===c.start?o&&p?(t.prependRight(c.start,s+" = "),t.overwrite(r.object.end,r.property.start,";\n"+l+a+" = "),t.overwrite(r.property.end,r.end,";\n"+l+s+"["+a+"]")):o?(t.prependRight(c.start,s+" = "),t.appendLeft(r.object.end,";\n"+l),t.appendLeft(r.object.end,s)):p&&(t.prepe
1ndRight(r.property.start,a+" = "),t.appendLeft(r.property.end,";\n"+l),t.move(r.property.start,r.property.end,this.start),t.appendLeft(r.object.end,"["+a+"]"),t.remove(r.object.end,r.property.start),t.remove(r.property.end,r.end)):(o&&p?(t.prependRight(r.start,"( "+s+" = "),t.overwrite(r.object.end,r.property.start,", "+a+" = "),t.overwrite(r.property.end,r.end,", "+s+"["+a+"]")):o?(t.prependRight(r.start,"( "+s+" = "),t.appendLeft(r.object.end,", "+s)):p&&(t.prependRight(r.property.start,"( "+a+" = "),t.appendLeft(r.property.end,", "),t.move(r.property.start,r.property.end,r.start),t.overwrite(r.object.end,r.property.start,"["+a+"]"),t.remove(r.property.end,r.end)),p&&t.appendLeft(this.end," )")),e=s+(r.computed||p?"["+a+"]":"."+a)}t.prependRight(this.right.start,"Math.pow( "+e+", "),t.appendLeft(this.right.end," )")},e}(ti),Si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.asyncAwait&&oi.missingTransform("await","asyncAwait",this),t.prototype.initialise.call(this,e)},e}(ti),wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){"**"===this.operator&&n.exponentiation&&(e.prependRight(this.start,"Math.pow( "),e.overwrite(this.left.end,this.right.start,", "),e.appendLeft(this.end," )")),t.prototype.transpile.call(this,e,n)},e}(ti),Ci=/(?:For(?:In|Of)?|While)Statement/,Ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(){var t=this.findNearest(Ci),e=this.findNearest("SwitchCase");t&&(!e||t.depth>e.depth)&&(t.canBreak=!0,this.loop=t)},e.prototype.transpile=function(t){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new oi("Labels are not currently supported in a loop with locally-scoped variables",this);t.overwrite(this.start,this.start+5,"return 'break'")}},e}(ti),Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){if(e.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),i=this.arguments.length;i--;){var r=this.arguments[i];"SpreadElement"===r.type&&mi(r.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){if(n.spreadRest&&this.arguments.length&&gi(e,this,this.arguments),n.spreadRest&&this.arguments.length){var i,r=!1,s=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===s.type&&(e.remove(s.start,s.argument.start),r=!0):r=vi(e,this.arguments,s.start,this.argumentsArrayAlias),r){var a=null;if("Super"===this.callee.type?a=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(a=this.callee.object),a||"MemberExpression"!==this.callee.type)i="void 0";else if("Identifier"===this.callee.object.type)i=this.callee.object.name;else{i=this.findScope(!0).createDeclaration("ref");var o=this.callee.object;e.prependRight(o.start,"("+i+" = "),e.appendLeft(o.end,")")}e.appendLeft(this.callee.end,".apply"),a?(a.noCall=!0,this.arguments.length>1&&("SpreadElement"===s.type?yi(s.argument)&&e.prependRight(s.start,"( "):e.prependRight(s.start,"[ "),e.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?e.prependRight(s.start,i+", "):("SpreadElement"===s.type?yi(s.argument)?e.appendLeft(s.start,i+", ( "):e.appendLeft(s.start,i+", "):e.appendLeft(s.start,i+", [ "),e.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&xi(e,this.arguments[this.arguments.length-1].end),t.prototype.transpile.call(this,e,n)},e}(ti),Li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n,i,r){var s=this;
1if(n.classes){var a=this.parent.name,o=e.getIndentString(),p=this.getIndentation()+(i?o:""),c=p+o,l=pi(this.body,(function(t){return"constructor"===t.kind})),h=this.body[l],u="",d="";if(this.body.length?(e.remove(this.start,this.body[0].start),e.remove(this.body[this.body.length-1].end,this.end)):e.remove(this.start,this.end),h){h.value.body.isConstructorBody=!0;var f=this.body[l+1];l>0&&(e.remove(this.body[l-1].end,h.start),e.move(h.start,f?f.start:this.end-1,this.body[0].start)),i||e.appendLeft(h.end,";")}var m=[];this.body.forEach((function(t){if("FieldDefinition"===t.type&&(m.push(t.computed?"this"+e.slice(t.start,t.end)+";":"this."+e.slice(t.start,t.end)+";"),e.remove(t.start,t.end),""!==e.byStart[t.end].content)){for(var n=0;n<e.byStart[t.end].content.length&&-1===e.byStart[t.end].content.slice(0,n).indexOf(";");n++);n>0&&e.remove(t.end,t.end+n)}}));var g=!1!==this.program.options.namedFunctionExpressions,y=g||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var v="if ( "+r+" ) "+a+".__proto__ = "+r+";\n"+p+a+".prototype = Object.create( "+r+" && "+r+".prototype );\n"+p+a+".prototype.constructor = "+a+";";u+=h?"\n\n"+p+v:(v="function "+a+" () {"+(m.length?"\n"+c+m.join("\n"+c)+"\n"+c:"")+(r?"\n"+c+r+".apply(this, arguments);\n"+p+"}":"}")+(i?"":";")+(this.body.length?"\n\n"+p:"")+v)+"\n\n"+p}else if(!h){var b="function "+(y?a+" ":"")+"() {"+(m.length?"\n"+c+m.join("\n"+c)+"\n"+p:"")+"}";"ClassDeclaration"===this.parent.type&&(b+=";"),this.body.length&&(b+="\n\n"+p),u+=b}h&&m.length&&e.appendLeft(h.value.body.start+1,"\n"+c+m.join("\n"+c));var x,_,E=this.findScope(!1),k=[],S=[];if(this.body.forEach((function(t,i){if("get"!==t.kind&&"set"!==t.kind||!n.getterSetter||oi.missingTransform("getters and setters","getterSetter",t),"FieldDefinition"!==t.type)if("constructor"!==t.kind){t.static&&e.remove(t.start,t.start+(" "==e.original[t.start+6]?7:6));var r,o="method"!==t.kind,c=t.key.name;(ii[c]||t.value.body.scope.references[c])&&(c=E.createIdentifier(c));var h=!1;if(t.computed||"Literal"!==t.key.type||(h=!0,t.computed=!0),o){if(t.computed)throw new Error("Computed accessor properties are not currently supported");e.remove(t.start,t.key.start),t.static?(~S.indexOf(t.key.name)||S.push(t.key.name),_||(_=E.createIdentifier("staticAccessors")),r=""+_):(~k.indexOf(t.key.name)||k.push(t.key.name),x||(x=E.createIdentifier("prototypeAccessors")),r=""+x)}else r=t.static?""+a:a+".prototype";t.computed||(r+="."),(l>0&&i===l+1||0===i&&l===s.body.length-1)&&(r="\n\n"+p+r);var u=t.key.end;if(t.computed)if(h)e.prependRight(t.key.start,"["),e.appendLeft(t.key.end,"]");else{for(;"]"!==e.original[u];)u+=1;u+=1}var d=(o?"."+t.kind:"")+" = "+(t.value.async?"async ":"")+"function"+(t.value.generator?"* ":" ")+(t.computed||o||!g?"":c+" ");e.remove(u,t.value.start),e.prependRight(t.value.start,d),e.appendLeft(t.end,";"),t.value.generator&&e.remove(t.start,t.key.start);var f=t.key.start;if(t.computed&&!h)for(;"["!=e.original[f];)--f;t.start<f?e.overwrite(t.start,f,r):e.prependRight(t.start,r)}else e.overwrite(t.key.start,t.key.end,"function"+(y?" "+a:""))})),k.length||S.length){var w=[],C=[];k.length&&(w.push("var "+x+" = { "+k.map((function(t){return t+": { configurable: true }"})).join(",")+" };"),C.push("Object.defineProperties( "+a+".prototype, "+x+" );")),S.length&&(w.push("var "+_+" = { "+S.map((function(t){return t+": { configurable: true }"})).join(",")+" };"),C.push("Object.defineProperties( "+a+", "+_+" );")),h&&(u+="\n\n"+p),u+=w.join("\n"+p),h||(u+="\n\n"+p),d+="\n\n"+p+C.join("\n"+p)}h?e.appendLeft(h.end,u):e.prependRight(this.start,u),e.appendLeft(this.end,d)}t.prototype.transpile.call(this,e,n)},e}(ti),Ii=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(t,e){if(e.classes){this.superClass||function(t,e){var n=t.start,i=t.end,r=e.getIndentStr
1ing(),s=r.length,a=n-s;t.program.indentExclusions[a]||e.original.slice(a,n)!==r||e.remove(a,n);for(var o,p=new RegExp(r+"\\S","g"),c=e.original.slice(n,i);o=p.exec(c);){var l=n+o.index;t.program.indentExclusions[l]||e.remove(l,l+s)}}(this.body,t);var n=this.superClass&&(this.superClass.name||"superclass"),i=this.getIndentation(),r=i+t.getIndentString(),s="ExportDefaultDeclaration"===this.parent.type;s&&t.remove(this.parent.start,this.start);var a=this.start;this.id?(t.overwrite(a,this.id.start,"var "),a=this.id.end):t.prependLeft(a,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(t.remove(a,this.superClass.start),t.appendLeft(a," = /*@__PURE__*/(function ("+n+") {\n"+r)):(t.overwrite(a,this.superClass.start," = "),t.overwrite(this.superClass.end,this.body.start,"/*@__PURE__*/(function ("+n+") {\n"+r)):a===this.body.start?t.appendLeft(a," = "):t.overwrite(a,this.body.start," = "),this.body.transpile(t,e,!!this.superClass,n);var o=s?"\n\n"+i+"export default "+this.name+";":"";this.superClass?(t.appendLeft(this.end,"\n\n"+r+"return "+this.name+";\n"+i+"}("),t.move(this.superClass.start,this.superClass.end,this.end),t.prependRight(this.end,"));"+o)):o&&t.prependRight(this.end,o)}else this.body.transpile(t,e,!1,null)},e}(ti),Pi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(t,e){if(e.classes){var n=this.superClass&&(this.superClass.name||"superclass"),i=this.getIndentation(),r=i+t.getIndentStr
1ing();this.superClass?(t.remove(this.start,this.superClass.start),t.remove(this.superClass.end,this.body.start),t.appendRight(this.start,"/*@__PURE__*/(function ("+n+") {\n"+r)):t.overwrite(this.start,this.body.start,"/*@__PURE__*/(function () {\n"+r),this.body.transpile(t,e,!0,n);var s="";this.superClass&&(s=t.slice(this.superClass.start,this.superClass.end),t.remove(this.superClass.start,this.superClass.end)),t.appendLeft(this.end,"\n\n"+r+"return "+this.name+";\n"+i+"}("+s+"))")}else this.body.transpile(t,e,!1)},e}(ti),Ti=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(t){if(this.findNearest(Ci).shouldRewriteAsFunction){if(this.label)throw new oi("Labels are not currently supported in a loop with locally-scoped variables",this);t.overwrite(this.start,this.start+8,"return")}},e}(ti),Oi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.moduleExport&&oi.missingTransform("export","moduleExport",this),t.prototype.initialise.call(this,e)},e}(ti),ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.moduleExport&&oi.missingTransform("export","moduleExport",this),t.prototype.initialise.call(this,e)},e}(ti),Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.findScope=function(t){return t||!this.createdScope?this.parent.findScope(t):this.body.scope},e.prototype.initialise=function(e){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),this.thisRefs=[],t.prototype.initialise.call(this,e),e.letConst)for(var n=Object.keys(this.body.scope.declarations),i=n.length;i--;){for(var r=this.body.scope.declarations[n[i]],s=r.instances.length;s--;){var a=r.instances[s].findNearest(/Function/);if(a&&a.depth>this.depth){this.shouldRewriteAsFunction=!0;for(var o=0,p=this.thisRefs;o<p.length;o+=1){var c=p[o];c.alias=c.alias||c.findLexicalBoundary().getThisAlias()}break}}if(this.shouldRewriteAsFunction)break}},e.prototype.transpile=function(e,n){var i="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var r=this.getIndentation(),s=r+e.getIndentStr
1ing(),a=this.args?" "+this.args.join(", ")+" ":"",o=this.params?" "+this.params.join(", ")+" ":"",p=this.findScope(!0),c=p.createIdentifier("loop"),l="var "+c+" = function ("+o+") "+(this.body.synthetic?"{\n"+r+e.getIndentString():""),h=(this.body.synthetic?"\n"+r+"}":"")+";\n\n"+r;if(e.prependRight(this.body.start,l),e.appendLeft(this.body.end,h),e.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var u=p.createIdentifier("returned"),d="{\n"+s+"var "+u+" = "+c+"("+a+");\n";this.canBreak&&(d+="\n"+s+"if ( "+u+" === 'break' ) break;"),this.canReturn&&(d+="\n"+s+"if ( "+u+" ) return "+u+".v;"),e.prependRight(this.body.end,d+="\n"+r+"}")}else{var f=c+"("+a+");";"DoWhileStatement"===this.type?e.overwrite(this.start,this.body.start,"do {\n"+s+f+"\n"+r+"}"):e.prependRight(this.body.end,f)}}else i&&(e.appendLeft(this.body.start,"{ "),e.prependRight(this.body.end," }"));t.prototype.transpile.call(this,e,n)},e}(ti),Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.findScope=function(t){return t||!this.createdScope?this.parent.findScope(t):this.body.scope},e.prototype.transpile=function(e,n){var i=this,r=this.getIndentation()+e.getIndentStr
1ing();if(this.shouldRewriteAsFunction){var s="VariableDeclaration"===this.init.type?this.init.declarations.map((function(t){return ei(t.id)})):[],a=this.aliases;this.args=s.map((function(t){return t in i.aliases?i.aliases[t].outer:t})),this.params=s.map((function(t){return t in i.aliases?i.aliases[t].inner:t}));var o=Object.keys(this.reassigned).map((function(t){return a[t].outer+" = "+a[t].inner+";"}));o.length&&(this.body.synthetic?e.appendLeft(this.body.body[0].end,"; "+o.join(" ")):e.appendLeft(this.body.body[this.body.body.length-1].end,"\n\n"+r+o.join("\n"+r)))}t.prototype.transpile.call(this,e,n)},e}(Ri),Bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.findScope=function(t){return t||!this.createdScope?this.parent.findScope(t):this.body.scope},e.prototype.transpile=function(e,n){var i=this,r="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var s=r?this.left.declarations.map((function(t){return ei(t.id)})):[];this.args=s.map((function(t){return t in i.aliases?i.aliases[t].outer:t})),this.params=s.map((function(t){return t in i.aliases?i.aliases[t].inner:t}))}t.prototype.transpile.call(this,e,n);var a=r?this.left.declarations[0].id:this.left;"Identifier"!==a.type&&this.destructurePattern(e,a,r)},e.prototype.destructurePattern=function(t,e,n){var i=this.findScope(!0),r=this.getIndentation()+t.getIndentStr
1ing(),s=i.createIdentifier("ref"),a=this.body.body.length?this.body.body[0].start:this.body.start+1;t.move(e.start,e.end,a),t.prependRight(e.end,n?s:"var "+s);var o=[];li(t,(function(t){return i.createIdentifier(t)}),(function(t){return i.resolveName(t.name)}),e,s,!1,o);var p=";\n"+r;o.forEach((function(t,e){e===o.length-1&&(p=";\n\n"+r),t(a,"",p)}))},e}(Ri),Di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.forOf&&!e.dangerousForOf&&oi.missingTransform("for-of statements","forOf",this,"dangerousForOf"),this.await&&e.asyncAwait&&oi.missingTransform("for-await-of statements","asyncAwait",this),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){if(t.prototype.transpile.call(this,e,n),n.dangerousForOf)if(this.body.body[0]){var i=this.findScope(!0),r=this.getIndentation(),s=r+e.getIndentString(),a=i.createIdentifier("i"),o=i.createIdentifier("list");this.body.synthetic&&(e.prependRight(this.left.start,"{\n"+s),e.appendLeft(this.body.body[0].end,"\n"+r+"}"));var p=this.body.body[0].start;e.remove(this.left.end,this.right.start),e.move(this.left.start,this.left.end,p),e.prependRight(this.right.start,"var "+a+" = 0, "+o+" = "),e.appendLeft(this.right.end,"; "+a+" < "+o+".length; "+a+" += 1");var c="VariableDeclaration"===this.left.type,l=c?this.left.declarations[0].id:this.left;if("Identifier"!==l.type){var h=[],u=i.createIdentifier("ref");li(e,(function(t){return i.createIdentifier(t)}),(function(t){return i.resolveName(t.name)}),l,u,!c,h);var d=";\n"+s;h.forEach((function(t,e){e===h.length-1&&(d=";\n\n"+s),t(p,"",d)})),c?(e.appendLeft(this.left.start+this.left.kind.length+1,u),e.appendLeft(this.left.end," = "+o+"["+a+"];\n"+s)):e.appendLeft(this.left.end,"var "+u+" = "+o+"["+a+"];\n"+s)}else e.appendLeft(this.left.end," = "+o+"["+a+"];\n\n"+s)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(e.remove(this.start,this.left.start),e.appendLeft(this.left.end,";"),e.remove(this.left.end,this.end)):e.remove(this.start,this.end)},e}(Ri),Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.generator&&e.generator&&oi.missingTransform("generators","generator",this),this.async&&e.asyncAwait&&oi.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){t.prototype.transpile.call(this,e,n),n.trailingFunctionCommas&&this.params.length&&xi(e,this.params[this.params.length-1].end)},e}(ti),Fi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.generator&&e.generator&&oi.missingTransform("generators","generator",this),this.async&&e.asyncAwait&&oi.missingTransform("async functions","asyncAwait",this),this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),t.prototype.initialise.call(this,e);var n,i=this.parent;if(e.conciseMethodProperty&&"Property"===i.type&&"init"===i.kind&&i.method&&"Identifier"===i.key.type||e.classes&&"MethodDefinition"===i.type&&"method"===i.kind&&"Identifier"===i.key.type?n=i.key.name:this.id&&"Identifier"===this.id.type&&(n=this.id.alias||this.id.name),n)for(var r=0,s=this.params;r<s.length;r+=1){var a=s[r];if("Identifier"===a.type&&n===a.name){var o=this.body.scope,p=o.declarations[n],c=o.createIdentifier(n);a.alias=c;for(var l=0,h=p.instances;l<h.length;l+=1)h[l].alias=c;break}}},e.prototype.transpile=function(e,n){t.prototype.transpile.call(this,e,n),n.trailingFunctionCommas&&this.params.length&&xi(e,this.params[this.params.length-1].end)},e}(ti),Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.findScope=function(t){return this.parent.params&&~this.parent.params.indexOf(this)||"FunctionExpression"===this.parent.type&&this===this.parent.id?this.parent.body.scope:this.parent.findScope(t)},e.prototype.initialise=function(t){if(function t(e,n){return"MemberExpression"===e.type?!e.computed&&t(e.object,e):"Identifier"===e.type?!n||!/(Function|Class)Expression/.test(n.type)&&("VariableDeclarator"===n.type?e===n.init:"MemberExpression"===n.type||"MethodDefinition"===n.type?n.computed||e===n.object:"ArrayPattern"!==n.type&&("Property"===n.type?"ObjectPattern"!==n.parent.type&&(n.computed||e===n.value):"MethodDefinition"!==n.type&&("ExportSpecifier"!==n.type||e===n.local))):void 0}(this,this.parent)){if(t.arrow&&"arguments"===this.name&&!this.findScope(!1).contains(this.name)){var e=this.findLexicalBoundary(),n=this.findNearest("ArrowFunctionExpression"),i=this.findNearest(Ci);n&&n.depth>
1e.depth&&(this.alias=e.getArgumentsAlias()),i&&i.body.contains(this)&&i.depth>e.depth&&(this.alias=e.getArgumentsAlias())}this.findScope(!1).addReference(this)}},e.prototype.transpile=function(t){this.alias&&t.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},e}(ti),Zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(e.appendLeft(this.consequent.start,"{ "),e.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(e.appendLeft(this.alternate.start,"{ "),e.prependRight(this.alternate.end," }")),t.prototype.transpile.call(this,e,n)},e}(ti),Hi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.moduleImport&&oi.missingTransform("dynamic import expressions","moduleImport",this),t.prototype.initialise.call(this,e)},e}(ti),zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.moduleImport&&oi.missingTransform("import","moduleImport",this),t.prototype.initialise.call(this,e)},e}(ti),qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.findScope(!0).addDeclaration(this.local,"import"),t.prototype.initialise.call(this,e)},e}(ti),Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){this.findScope(!0).addDeclaration(this.local,"import"),t.prototype.initialise.call(this,e)},e}(ti),Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){var i,r=this.name;e.overwrite(r.start,this.value?this.value.start:this.name.end,(/-/.test(i=r.name)?"'"+i+"'":i)+": "+(this.value?"":"true")),t.prototype.transpile.call(this,e,n)},e}(ti),Ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(t){var e,n=!0,i=this.parent.children[this.parent.children.length-1];(i&&"JSXText"===(e=i).type&&!/\S/.test(e.value)&&/\n/.test(e.value)||this.parent.openingElement.attributes.length)&&(n=!1),t.overwrite(this.start,this.end,n?" )":")")},e}(ti),Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(t){var e,n=!0,i=this.parent.children[this.parent.children.length-1];i&&"JSXText"===(e=i).type&&!/\S/.test(e.value)&&/\n/.test(e.value)&&(n=!1),t.overwrite(this.start,this.end,n?" )":")")},e}(ti);function Gi(t,e){return t=t.replace(/\u00a0/g," "),e&&/\n/.test(t)&&(t=t.replace(/\s+$/,"")),t=t.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(t)}var Qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){t.prototype.transpile.call(this,e,n);var i=this.children.filter((function(t){return"JSXText"!==t.type||/\S/.test(t.raw)||!/\n/.test(t.raw)}));if(i.length){var r,s=(this.openingElement||this.openingFragment).end;for(r=0;r<i.length;r+=1){var a=i[r];if("JSXExpressionContainer"===a.type&&"JSXEmptyExpression"===a.expression.type||e.appendLeft(s,","+("\n"===e.original[s]&&"JSXText"!==a.type?"":" ")),"JSXText"===a.type){var o=Gi(a.value,r===i.length-1);e.overwrite(a.start,a.end,o)}s=a.end}}},e}(ti),$i=/[\u2028-\u2029]/g,Yi={ArrayExpression:bi,ArrowFunctionExpression:_i,AssignmentExpression:ki,AwaitExpression:Si,BinaryExpression:wi,BreakStatement:Ai,CallExpression:Ni,ClassBody:Li,ClassDeclaration:Ii,ClassExpression:Pi,ContinueStatement:Ti,DoWhileStatement:Ri,ExportNamedDeclaration:ji,ExportDefaultDeclaration:Oi,ForStatement:Vi,ForInStatement:Bi,ForOfStatement:Di,FunctionDeclaration:Mi,FunctionExpression:Fi,Identifier:Ui,IfStatement:Zi,Import:Hi,ImportDeclaration:zi,ImportDefaultSpecifier:qi,ImportSpecifier:Wi,JSXAttribute:Xi,JSXClosingElement:Ji,JSXClosingFragment:Ki,JSXElement:Qi,JSXExpressionContainer:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){e.remove(this.start,this.expression.start),e.remove(this.expression.end,this.end),t.prototype.transpile.call(this,e,n)},e}(ti),JSXFragment:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Qi),JSXOpeningElement:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){t.prototype.transpile.call(this,e,n),e.overwrite(this.start,this.name.start,this.program.jsx+"( ");var i="JSXIdentifier"===this.name.type&&this.name.name[0]===this.name.name[0].toLowerCase();i&&e.prependRight(this.name.start,"'");var r=this.attributes.length,s=this.name.end;if(r){var a,o,p,c=!1;for(a=0;a<r;a+=1)if("JSXSpreadAttribute"===this.attributes[a].type){c=!0;break}for(s=this.attributes[0].end,a=0;a<r;a+=1){var l=this.attributes[a];if(a>
10&&(l.start===s?e.prependRight(s,", "):e.overwrite(s,l.start,", ")),c&&"JSXSpreadAttribute"!==l.type){var h=this.attributes[a-1],u=this.attributes[a+1];h&&"JSXSpreadAttribute"!==h.type||e.prependRight(l.start,"{ "),u&&"JSXSpreadAttribute"!==u.type||e.appendLeft(l.end," }")}s=l.end}if(c)if(1===r)p=i?"',":",";else{if(!this.program.options.objectAssign)throw new oi("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);p=i?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",o=")"}else p=i?"', {":", {",o=" }";e.prependRight(this.name.end,p),o&&e.appendLeft(this.attributes[r-1].end,o)}else e.appendLeft(this.name.end,i?"', null":", null"),s=this.name.end;this.selfClosing?e.overwrite(s,this.end,this.attributes.length?")":" )"):e.remove(s,this.end)},e}(ti),JSXOpeningFragment:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(t){t.overwrite(this.start,this.end,this.program.jsx+"( React.Fragment, null")},e}(ti),JSXSpreadAttribute:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){e.remove(this.start,this.argument.start),e.remove(this.argument.end,this.end),t.prototype.transpile.call(this,e,n)},e}(ti),Literal:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(){"string"==typeof this.value&&this.program.indentExclusionElements.push(this)},e.prototype.transpile=function(t,e){e.numericLiteral&&this.raw.match(/^0[bo]/i)&&t.overwrite(this.start,this.end,String(this.value),{storeName:!0,contentOnly:!0}),"string"==typeof this.value&&this.value.match($i)&&t.overwrite(this.start,this.end,this.raw.replace($i,(function(t){return"\u2028"==t?"\\u2028":"\\u2029"})),{contentOnly:!0})},e}(ti),MemberExpression:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){
1n.reservedProperties&&ii[this.property.name]&&(e.overwrite(this.object.end,this.property.start,"['"),e.appendLeft(this.property.end,"']")),t.prototype.transpile.call(this,e,n)},e}(ti),NewExpression:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){if(e.spreadRest&&this.arguments.length)for(var n=this.findLexicalBoundary(),i=this.arguments.length;i--;){var r=this.arguments[i];if("SpreadElement"===r.type&&mi(r.argument)){this.argumentsArrayAlias=n.getArgumentsArrayAlias();break}}t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){if(t.prototype.transpile.call(this,e,n),n.spreadRest&&this.arguments.length&&gi(e,this,this.arguments),n.spreadRest&&this.arguments.length){var i=this.arguments[0];vi(e,this.arguments,i.start,this.argumentsArrayAlias,!0)&&(e.prependRight(this.start+"new".length," (Function.prototype.bind.apply("),e.overwrite(this.callee.end,i.start,", [ null ].concat( "),e.appendLeft(this.end," ))"))}this.arguments.length&&xi(e,this.arguments[this.arguments.length-1].end)},e}(ti),ObjectExpression:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){var i;t.prototype.transpile.call(this,e,n);for(var r=this.start+1,s=0,a=0,o=null,p=null,c=0;c<this.properties.length;++c){var l=this.properties[c];if("SpreadElement"===l.type){var h=l.argument;"ObjectExpression"===h.type||"Literal"===h.type&&"string"!=typeof h.value?"ObjectExpression"===h.type&&h.properties.length>0?(e.remove(l.start,h.properties[0].start),e.remove(h.properties[h.properties.length-1].end,l.end),(i=this.properties).splice.apply(i,[c,1].concat(h.properties)),c--):(e.remove(l.start,c===this.properties.length-1?l.end:this.properties[c+1].start),this.properties.splice(c,1),c--):(s+=1,null===o&&(o=c))}else l.computed&&n.computedProperty&&(a+=1,null===p&&(p=c))}if(!s||n.objectRestSpread||a&&n.computedProperty){if(s){if(!this.program.options.objectAssign)throw new oi("Object spread operator requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);for(var u=this.properties.length;u--;){var d=this.properties[u];if("Property"===d.type&&!a){var f=this.properties[u-1],m=this.properties[u+1];f&&"Property"===f.type||e.prependRight(d.start,"{"),m&&"Property"===m.type||e.appendLeft(d.end,"}")}"SpreadElement"===d.type&&(e.remove(d.start,d.argument.start),e.remove(d.argument.end,d.end))}r=this.properties[0].start,a?"SpreadElement"===this.properties[0].type?(e.overwrite(this.start,r,this.program.options.objectAssign+"({}, "),e.remove(this.end-1,this.end),e.appendRight(this.end,")")):(e.prependLeft(this.start,this.program.options.objectAssign+"("),e.appendRight(this.end,")")):(e.overwrite(this.start,r,this.program.options.objectAssign+"({}, "),e.overwrite(this.properties[this.properties.length-1].end,this.end,")"))}}else s=0,o=null;if(a&&n.computedProperty){var g,y,v=this.getIndentation();"VariableDeclarator"===this.parent.type&&1===this.parent.parent.declarations.length&&"Identifier"===this.parent.id.type?(g=!0,y=this.parent.id.alias||this.parent.id.name):("AssignmentExpression"===this.parent.type&&"ExpressionStatement"===this.parent.parent.type&&"Identifier"===this.parent.left.type||"AssignmentPattern"===this.parent.type&&"Identifier"===this.parent.left.type)&&(g=!0,y=this.parent.left.alias||this.parent.left.name),s&&(g=!1),y=this.findScope(!1).resolveName(y);var b=r,x=this.end;g||(null===o||p<o?(y=this.findScope(!0).createDeclaration("obj"),e.prependRight(this.start,"( "+y+" = ")):y=null);for(var _,E=this.properties.length,k=!1,S=!0,w=0;w<E;w+=1){var C=this.properties[w],A=w>0?this.properties[w-1].end:b;if("Property"===C.type&&(C.computed||_&&!s)){if(0===w&&(A=this.start+1),_=C,y){var N=(g?";\n"+v+y:", "+y)+("Literal"===C.key.type||C.computed?"":".");A<C.start?e.overwrite(A,C.start,N):e.prependRight(C.start,N)}else y=this.findScope(!0).createDeclaration("obj"),e.appendRight(C.start,"( "+y+" = {}, "+y+(C.computed?"":"."));var L=C.key.end;if(C.computed){for(;"]"!==e.original[L];)L+=1;L+=1}"Literal"!==C.key.type||C.computed?C.shorthand||C.method&&!C.computed&&n.c
1onciseMethodProperty?e.overwrite(C.key.start,C.key.end,e.slice(C.key.start,C.key.end).replace(/:/," =")):(C.value.start>L&&e.remove(L,C.value.start),e.prependLeft(L," = ")):e.overwrite(C.start,C.key.end+1,"["+e.slice(C.start,C.key.end)+"] = "),!C.method||!C.computed&&n.conciseMethodProperty||(C.value.generator&&e.remove(C.start,C.key.start),e.prependRight(C.value.start,"function"+(C.value.generator?"*":"")+" "))}else"SpreadElement"===C.type?y&&w>0&&(_||(_=this.properties[w-1]),e.appendLeft(_.end,", "+y+" )"),_=null,y=null):(!S&&s&&(e.prependRight(C.start,"{"),e.appendLeft(C.end,"}")),k=!0);if(S&&("SpreadElement"===C.type||C.computed)){var I=k?this.properties[this.properties.length-1].end:this.end-1;","==e.original[I]&&++I;var P=e.slice(I,x);e.prependLeft(A,P),e.remove(I,x),S=!1}var T=C.end;if(w<E-1&&!k)for(;","!==e.original[T];)T+=1;else w==E-1&&(T=this.end);C.end!=T&&e.overwrite(C.end,T,"",{contentOnly:!0})}!g&&y&&e.appendLeft(_.end,", "+y+" )")}},e}(ti),Property:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){"get"!==this.kind&&"set"!==this.kind||!e.getterSetter||oi.missingTransform("getters and setters","getterSetter",this),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){if(t.prototype.transpile.call(this,e,n),n.conciseMethodProperty&&!this.computed&&"ObjectPattern"!==this.parent.type)if(this.shorthand)e.prependRight(this.start,this.key.name+": ");else if(this.method){var i="";!1!==this.program.options.namedFunctionExpressions&&(i=" "+(i="Literal"===this.key.type&&"number"==typeof this.key.value?"":"Identifier"===this.key.type?ii[this.key.name]||!/^[a-z_$][a-z0-9_$]*$/i.test(this.key.name)||this.value.body.scope.references[this.key.name]?this.findScope(!0).createIdentifier(this.key.name):this.key.name:this.findScope(!0).createIdentifier(this.key.value))),this.start<this.key.start&&e.remove(this.start,this.key.start),e.appendLeft(this.key.end,": "+(this.value.async?"async ":"")+"function"+(this.value.generator?"*":"")+i)}n.reservedProperties&&ii[this.key.name]&&(e.prependRight(this.key.start,"'"),e.appendLeft(this.key.end,"'"))},e}(ti),ReturnStatement:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(t){this.loop=this.findNearest(Ci),this.nearestFunction=this.findNearest(/Function/),this.loop&&(!this.nearestFunction||this.loop.depth>this.nearestFunction.depth)&&(this.loop.canReturn=!0,this.shouldWrap=!0),this.argument&&this.argument.initialise(t)},e.prototype.transpile=function(t,e){var n=this.shouldWrap&&this.loop&&this.loop.shouldRewriteAsFunction;this.argument?(n&&t.prependRight(this.argument.start,"{ v: "),this.argument.transpile(t,e),n&&t.appendLeft(this.argument.end," }")):n&&t.appendLeft(this.start+6," {}")},e}(ti),Super:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(t){if(t.classes){if(this.method=this.findNearest("MethodDefinition"),!this.method)throw new oi("use of super outside class method",this);var e=this.findNearest("ClassBody").parent;if(this.superClassName=e.superClass&&(e.superClass.name||"superclass"),!this.superClassName)throw new oi("super used in base class",this);if(this.isCalled="CallExpression"===this.parent.type&&this===this.parent.callee,"constructor"!==this.method.kind&&this.isCalled)throw new oi("super() not allowed outside class constructor",this);if(this.isMember="MemberExpression"===this.parent.type,!this.isCalled&&!this.isMember)throw new oi("Unexpected use of `super` (expected `super(...)` or `super.*`)",this)}if(t.arrow){var n=this.findLexicalBoundary(),i=this.findNearest("ArrowFunctionExpression"),r=this.findNearest(Ci);i&&i.depth>n.depth&&(this.thisAlias=n.getThisAlias()),r&&r.body.contains(this)&&r.depth>n.depth&&(this.thisAlias=n.getThisAlias())}},e.prototype.transpile=function(t,e){if(e.classes){t.overwrite(this.start,this.end,this.isCalled||this.method.static?this.superClassName:this.superClassName+".prototype",{storeName:!0,contentOnly:!0});var n=this.isCalled?this.parent:this.parent.parent;if(n&&"CallExpression"===n.type){this.noCall||t.appendLeft(n.callee.end,".call");var i=this.thisAlias||"this";n.arguments.length?t.appendLeft(n.arguments[0].start,i+", "):t.appendLeft(n.end-1,""+i)}}},e}(ti),TaggedTemplateExpression:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){e.templateString&&!e.dangerousTaggedTemplateString&&oi.missingTransform("tagged template strings","templateString",this,"dangerousTaggedTemplateString"),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){if(n.templateString&&n.dangerousTaggedTemplateString){var i=this.quasi.expressions.concat(this.quasi.quasis).sort((function(t,e){return t.start-e.start}
1)),r=this.program.body.scope,s=this.quasi.quasis.map((function(t){return JSON.stringify(t.value.cooked)})).join(", "),a=this.program.templateLiteralQuasis[s];a||(a=r.createIdentifier("templateObject"),e.prependLeft(this.program.prependAt,"var "+a+" = Object.freeze(["+s+"]);\n"),this.program.templateLiteralQuasis[s]=a),e.overwrite(this.tag.end,i[0].start,"("+a);var o=i[0].start;i.forEach((function(t){"TemplateElement"===t.type?e.remove(o,t.end):e.overwrite(o,t.start,", "),o=t.end})),e.overwrite(o,this.end,")")}t.prototype.transpile.call(this,e,n)},e}(ti),TemplateElement:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(){this.program.indentExclusionElements.push(this)},e}(ti),TemplateLiteral:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.transpile=function(e,n){if(t.prototype.transpile.call(this,e,n),n.templateString&&"TaggedTemplateExpression"!==this.parent.type){var i=this.expressions.concat(this.quasis).sort((function(t,e){return t.start-e.start||t.end-e.end})).filter((function(t,e){return"TemplateElement"!==t.type||!!t.value.raw||!e}));if(i.length>=3){var r=i[0];"TemplateElement"===r.type&&""===r.value.raw&&"TemplateElement"===i[2].type&&i.shift()}var s=!(1===this.quasis.length&&0===this.expressions.length||"TemplateLiteral"===this.parent.type||"AssignmentExpression"===this.parent.type||"AssignmentPattern"===this.parent.type||"VariableDeclarator"===this.parent.type||"BinaryExpression"===this.parent.type&&"+"===this.parent.operator);s&&e.appendRight(this.start,"(");var a=this.start;i.forEach((function(t,n){var i=0===n?s?"(":"":" + ";if("TemplateElement"===t.type)e.overwrite(a,t.end,i+JSON.stringify(t.value.cooked));else{var r="Identifier"!==t.type;r&&(i+="("),e.remove(a,t.start),i&&e.prependRight(t.start,i),r&&e.appendLeft(t.end,")")}a=t.end})),s&&e.appendLeft(a,")"),e.overwrite(a,this.end,"",{contentOnly:!0})}},e}(ti),ThisExpression:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(t){var e=this.findLexicalBoundary();if(t.letConst)for(var n=this.findNearest(Ci);n&&n.depth>e.depth;)n.thisRefs.push(this),n=n.parent.findNearest(Ci);if(t.arrow){var i=this.findNearest("ArrowFunctionExpression");i&&i.depth>e.depth&&(this.alias=e.getThisAlias())}},e.prototype.transpile=function(t){this.alias&&t.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},e}(ti),UpdateExpression:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){if("Identifier"===this.argument.type){var n=this.findScope(!1).findDeclaration(this.argument.name),i=n&&n.node.ancestor(3);i&&"ForStatement"===i.type&&i.body.contains(this)&&(i.reassigned[this.argument.name]=!0)}t.prototype.initialise.call(this,e)},e.prototype.transpile=function(e,n){"Identifier"===this.argument.type&&Ei(this.argument,this.findScope(!1)),t.prototype.transpile.call(this,e,n)},e}(ti),VariableDeclaration:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(t){this.scope=this.findScope("var"===this.kind),this.declarations.forEach((function(e){return e.initialise(t)}))},e.prototype.transpile=function(t,e){var n=this,i=this.getIndentation(),r=this.kind;if(e.letConst&&"var"!==r&&t.overwrite(this.start,this.start+this.kind.length,r="var",{contentOnly:!0,storeName:!0}),e.destructuring&&"ForOfStatement"!==this.parent.type&&"ForInStatement"!==this.parent.type){var s,a=this.start;this.declarations.forEach((function(r,o){if(r.transpile(t,e),"Identifier"===r.id.type)o>0&&"Identifier"!==n.declarations[o-1].id.type&&t.overwrite(a,r.id.start,"var ");else{var p=Ci.test(n.parent.type);0===o?t.remove(a,r.id.start):t.overwrite(a,r.id.start,";\n"+i);var c="Identifier"===r.init.type&&!r.init.rewritten,l=c?r.init.alias||r.init.name:r.findScope(!0).createIdentifier("ref");a=r.start;var h=[];c?t.remove(r.id.end,r.end):h.push((function(e,n,i){t.prependRight(r.id.end,"var "+l),t.appendLeft(r.init.end,""+i),t.move(r.id.end,r.end,e)}));var u=r.findScope(!1);li(t,(function(t){return u.createIdentifier(t)}),(function(t){return u.resolveName(t.name)}),r.id,l,p,h);var d=p?"var ":"",f=p?", ":";\n"+i;h.forEach((function(t,e){o===n.declarations.length-1&&e===h.length-1&&(f=p?"":";"),t(r.start,0===e?d:"",f)}))}a=r.end,s="Identifier"!==r.id.type})),s&&this.end>a&&t.overwrite(a,this.end,"",{contentOnly:!0})}else this.declarations.forEach((function(n){n.transpile(t,e)}))},e}(ti),VariableDeclarator:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initialise=function(e){var n=this.parent.kind;"let"===n&&"ForStatement"===this.parent.parent.type&&(n="for.let"),this.parent.scope.addDeclaration(this.id,n),t.prototype.initialise.call(this,e)},e.prototype.transpile=function(t,e){if(!this.init&&e.letConst&&"var"!==this.parent.kind){var n=this.findNearest(
1/Function|^For(In|Of)?Statement|^(?:Do)?WhileStatement/);!n||/Function/.test(n.type)||this.isLeftDeclaratorOfLoop()||t.appendLeft(this.id.end," = (void 0)")}this.id&&this.id.transpile(t,e),this.init&&this.init.transpile(t,e)},e.prototype.isLeftDeclaratorOfLoop=function(){return this.parent&&"VariableDeclaration"===this.parent.type&&this.parent.parent&&("ForInStatement"===this.parent.parent.type||"ForOfStatement"===this.parent.parent.type)&&this.parent.parent.left&&this.parent.parent.left.declarations[0]===this},e}(ti),WhileStatement:Ri},tr={Program:["body"],Literal:[]},er={IfStatement:"consequent",ForStatement:"body",ForInStatement:"body",ForOfStatement:"body",WhileStatement:"body",DoWhileStatement:"body",ArrowFunctionExpression:"body"};function nr(t,e,n,i){this.type="Root",this.jsx=i.jsx||"React.createElement",this.options=i,this.source=t,this.magicString=new $n(t),this.ast=e,this.depth=0,function t(e,n){if(e)if("length"in e)for(var i=e.length;i--;)t(e[i],n);else if(!e.__wrapped){e.__wrapped=!0,tr[e.type]||(tr[e.type]=Object.keys(e).filter((function(t){return"object"==typeof e[t]})));var r=er[e.type];if(r&&"BlockStatement"!==e[r].type){var s=e[r];e[r]={start:s.start,end:s.end,type:"BlockStatement",body:[s],synthetic:!0}}e.parent=n,e.program=n.program||n,e.depth=n.depth+1,e.keys=tr[e.type],e.indentation=void 0;for(var a=0,o=tr[e.type];a<o.length;a+=1)t(e[o[a]],e);e.program.magicString.addSourcemapLocation(e.start),e.program.magicString.addSourcemapLocation(e.end),e.__proto__=(("BlockStatement"===e.type?fi:Yi[e.type])||ti).prototype}}(this.body=e,this),this.body.__proto__=fi.prototype,this.templateLiteralQuasis=Object.create(null);for(var r=0;r<this.body.body.length;++r)if(!this.body.body[r].directive){this.prependAt=this.body.body[r].start;break}this.objectWithoutPropertiesHelper=null,this.indentExclusionElements=[],this.body.initialise(n),this.indentExclusions=Object.create(null);for(var s=0,a=this.indentExclusionElements;s<a.length;s+=1)for(var o=a[s],p=o.start;p<o.end;p+=1)this.indentExclusions[p]=!0;this.body.transpile(this.magicString,n)}nr.prototype={export:function(t){return void 0===t&&(t={}),{code:this.magicString.toString(),map:this.magicString.generateMap({file:t.file,source:t.source,includeContent:!1!==t.includeContent})}},findNearest:function(){return null},findScope:function(){return null},getObjectWithoutPropertiesHelper:function(t){return this.objectWithoutPropertiesHelper||(this.objectWithoutPropertiesHelper=this.body.scope.createIdentifier("objectWithoutProperties"),t.prependLeft(this.prependAt,"function "+this.objectWithoutPropertiesHelper+" (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }\n")),this.objectWithoutPropertiesHelper}};var ir=Se.extend(Rn,Tn(),(function(t){return class extends t{getTokenFromCode(t){if(35===t){++this.pos;const t=this.readWord1();return this.finishToken(Fn,t)}return super.getTokenFromCode(t)}parseClass(t,e){this._privateBoundNamesStack=this._privateBoundNamesStack||[];const n=Object.create(this._privateBoundNamesStack[this._privateBoundNamesStack.length-1]||null);this._privateBoundNamesStack.push(n),this._unresolvedPrivateNamesStack=this._unresolvedPrivateNamesStack||[];const i=Object.create(null);this._unresolvedPrivateNamesStack.push(i);const r=super.parseClass(t,e);if(this._privateBoundNamesStack.pop(),this._unresolvedPrivateNamesStack.pop(),this._unresolvedPrivateNamesStack.length)Object.assign(this._unresolvedPrivateNamesStack[this._unresolvedPrivateNamesStack.length-1],i);else{const t=Object.keys(i);t.length&&(t.sort(((t,e)=>i[t]-i[e])),this.raise(i[t[0]],"Usage of undeclared private name"))}return r}parseClassElement(t){if(this.eat(Bn.semi))return null;const e=this.startNode();if(!(this.options.ecmaVersion>=8)||this.type!=Fn){if(this.isContextual("async")){Vn.lastIndex=this.pos;let t=Vn.exec(this.input),n=this.input.charAt(this.pos+t[0].length);if(";"===n||"="===n)return e.key=this.parseIdent(!0),e.computed=!1,Dn.call(this,e),this.finishNode(e,"FieldDefinition"),this.semicolon(),e}return super.parseClassElement.apply(this,arguments)}return e.key=Mn.call(this),e.computed=!1,"constructor"==e.key.name&&this.raise(e.start,"Classes may not have a field named constructor"),Object.prototype.hasOwnProperty.call(this._privateBoundNamesStack[this._privateBoundNamesStack.length-1],e.key.name)&&this.raise(e.start,"Duplicate private element"),this._privateBoundNamesStack[this._privateBoundNamesStack.length-1][e.key.name]=!0,delete this._unresolvedPrivateNamesStack[this._unresolvedPrivateNamesStack.length-1][e.key.name],Dn.call(this,e),this.finishNode(e,"FieldDefinition"),this.semicolon(),e}
1parseClassMethod(t,e,n,i){return e||n||"method"!=t.kind||t.static||this.options.ecmaVersion<8||this.type==Bn.parenL?super.parseClassMethod.apply(this,arguments):(Dn.call(this,t),delete t.kind,delete t.static,t=this.finishNode(t,"FieldDefinition"),this.semicolon(),t)}parseSubscripts(t,e,n,i){for(let r;;){if(!(r=this.eat(Bn.bracketL))&&!this.eat(Bn.dot))return super.parseSubscripts(t,e,n,i);{let i=this.startNodeAt(e,n);i.object=t,r?i.property=this.parseExpression():this.type==Fn?(i.property=Mn.call(this),this._privateBoundNamesStack.length&&this._privateBoundNamesStack[this._privateBoundNamesStack.length-1][i.property.name]||(this._unresolvedPrivateNamesStack[this._unresolvedPrivateNamesStack.length-1][i.property.name]=i.property.start)):i.property=this.parseIdent(!0),i.computed=Boolean(r),r&&this.expect(Bn.bracketR),t=this.finishNode(i,"MemberExpression")}}}parseMaybeUnary(t,e){const n=super.parseMaybeUnary(t,e);return"delete"==n.operator&&"MemberExpression"==n.argument.type&&"PrivateName"==n.argument.property.type&&this.raise(n.start,"Private elements may not be deleted"),n}parseIdent(t,e){const n=super.parseIdent(t,e);return this._inFieldValue&&"arguments"==n.name&&this.raise(n.start,"A class field initializer may not contain arguments"),n}parseExprAtom(t){const e=super.parseExprAtom(t);return this._inFieldValue&&"Super"==e.type&&this.raise(e.start,"A class field initializer may not contain super"),e}}})),rr=["getterSetter","arrow","classes","computedProperty","conciseMethodProperty","defaultParameter","destructuring","forOf","generator","letConst","moduleExport","moduleImport","numericLiteral","parameterDestructuring","spreadRest","stickyRegExp","templateString","exponentiation","reservedProperties","trailingFunctionCommas","asyncAwait","objectRestSpread"],sr=["dangerousTaggedTemplateString","dangerousForOf"];function ar(t,e){return function(t,e){var n;void 0===e&&(e={});var i=null;try{n=ir.parse(t,{ecmaVersion:10,preserveParens:!0,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowHashBang:!0,onComment:function(t,e){if(!i){var n=/@jsx\s+([^\s]+)/.exec(e);n&&(i=n[1])}}}),e.jsx=i||e.jsx}catch(e){throw e.snippet=ai(t,e.loc),e.toString=function(){return e.name+": "+e.message+"\n"+e.snippet},e}var r=Object.create(null);return rr.forEach((function(t){r[t]=!0})),sr.forEach((function(t){r[t]=!0})),Object.keys(e.transforms||{}).forEach((function(t){if("modules"===t)return"moduleImport"in e.transforms||(r.moduleImport=e.transforms.modules),void("moduleExport"in e.transforms||(r.moduleExport=e.transforms.modules));if(!(t in r))throw new Error("Unknown transform '"+t+"'");r[t]=e.transforms[t]})),!0===e.objectAssign&&(e.objectAssign="Object.assign"),new nr(t,n,r,e).export(e)}(t,Object.assign({},e,{transforms:Object.assign({asyncAwait:!1,classes:!1,getterSetter:!1},e.transforms)}))}var or=n(7317),pr=n.n(or),cr={plain:{color:"#C5C8C6",backgroundColor:"#1D1F21"},styles:[{types:["prolog","comment","doctype","cdata"],style:{color:"hsl(30, 20%, 50%)"}},{types:["property","tag","boolean","number","constant","symbol"],style:{color:"hsl(350, 40%, 70%)"}},{types:["attr-name","string","char","builtin","insterted"],style:{color:"hsl(75, 70%, 60%)"}},{types:["operator","entity","url","string","variable","language-css"],style:{color:"hsl(40, 90%, 60%)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["regex","important"],style:{color:"#e90"}},{types:["atrule","attr-value","keyword"],style:{color:"hsl(350, 40%, 70%)"}},{types:["punctuation","symbol"],style:{opacity:"0.7"}}]},lr="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},hr=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ur=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},dr=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},fr=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},mr=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},gr=function(t){function e(){var n,r;hr(this,e);for(var s=arguments.length,a=Array(s),o=0;o<s;o++)a[o]=arguments[o];return n=r=mr(this,t.call.apply(t,[this].concat(a))),r.state={code:""},r.updateContent=function(t){r.setState({code:t},(function(){r.props.onChange&&r.props.onChange(r.state.code)}))},r.highlightCode=function(t){return i.createElement(Ut,{Prism:It.Z,code:t,theme:r.props.theme||cr,language:r.props.language},(function(t){var e=t.tokens,n=t.getLineProps,r=t.getTokenProps;return i.createElement(i.Fragment,null,e.map((function(t,e){return i.createElement("div",n({line:t,key:e}),t.map((function(t,e){return i.createElement("span",r({token:t,key:e}))})))})))}))},mr(r,n)}return dr(e,t),e.getDerivedStateFromProps=function(t,e){return t.code!==e.prevCodeProp?{code:t.code,prevCodeProp:t.code}:null},e.prototype.render=function(){var t=this.props,e=t.style,n=(t.code,t.onChange,t.language,t.theme),r=fr(t,["style","code","onChange","language","theme"]),s=this.state.code,a=n&&"object"===lr(n.plain)?n.plain:{};return i.createElement(Lt.Z,ur({value:s,padding:10,highlight:this.highlightCode,onValueChange:this.updateContent,style:ur({whiteSpace:"pre",fontFamily:"monospace"},a,e)},r))},e}(i.Component),yr=(0,i.createContext)({}),vr={assign:pr()},br={objectAssign:"_poly.assign",transforms:{dangerousForOf:!0,dangerousTaggedTemplateString:!0}},xr=function(t){return ar(t,br).code},_r=function(t,e){return function(n){function r(){return hr(this,r),mr(this,n.apply(this,arguments))}
1return dr(r,n),r.prototype.componentDidCatch=function(t){e(t)},r.prototype.render=function(){return"function"==typeof t?i.createElement(t,null):t},r}(i.Component)},Er=function(t,e){var n=Object.keys(e),r=n.map((function(t){return e[t]}));return(new(Function.prototype.bind.apply(Function,[null].concat(["_poly","React"],n,[t])))).apply(void 0,[vr,i].concat(r))},kr=function(t,e){var n=t.code,i=void 0===n?"":n,r=t.scope,s=void 0===r?{}:r,a=i.trim().replace(/;$/,""),o=xr("return ("+a+")").trim();return _r(Er(o,s),e)},Sr=function(t,e,n){var i=t.code,r=void 0===i?"":i,s=t.scope,a=void 0===s?{}:s;if(!/render\s*\(/.test(r))return n(new SyntaxError("No-Inline evaluations must call `render`."));Er(xr(r),ur({},a,{render:function(t){void 0===t?n(new SyntaxError("`render` must be called with valid JSX.")):e(_r(t,n))}}))},wr=function(t){function e(){var n,i;hr(this,e);for(var r=arguments.length,s=Array(r),a=0;a<r;a++)s[a]=arguments[a];return n=i=mr(this,t.call.apply(t,[this].concat(s))),i.onChange=function(t){var e=i.props,n=e.scope,r=e.transformCode,s=e.noInline;i.transpile({code:t,scope:n,transformCode:r,noInline:s})},i.onError=function(t){i.setState({error:t.toString()})},i.transpile=function(t){var e=t.code,n=t.scope,r=t.transformCode,s=t.noInline,a=void 0!==s&&s,o={code:r?r(e):e,scope:n},p=function(t){return i.setState({element:void 0,error:t.toString()})},c=function(t){return i.setState(ur({},l,{element:t}))},l={unsafeWrapperError:void 0,error:void 0};try{a?(i.setState(ur({},l,{element:null})),Sr(o,c,p)):c(kr(o,p))}catch(h){i.setState(ur({},l,{error:h.toString()}))}},mr(i,n)}return dr(e,t),e.prototype.UNSAFE_componentWillMount=function(){var t=this.props,e=t.code,n=t.scope,i=t.transformCode,r=t.noInline;this.transpile({code:e,scope:n,transformCode:i,noInline:r})},e.prototype.componentDidUpdate=function(t){var e=t.code,n=t.scope,i=t.noInline,r=t.transformCode,s=this.props,a=s.code,o=s.scope,p=s.noInline,c=s.transformCode;a===e&&o===n&&p===i&&c===r||this.transpile({code:a,scope:o,transformCode:c,noInline:p})},e.prototype.render=function(){var t=this.props,e=t.children,n=t.code,r=t.language,s=t.theme,a=t.disabled;return i.createElement(yr.Provider,{value:ur({},this.state,{code:n,language:r,theme:s,disabled:a,onError:this.onError,onChange:this.onChange})},e)},e}(i.Component);function Cr(t){return i.createElement(yr.Consumer,null,(function(e){var n=e.code,r=e.language,s=e.theme,a=e.disabled,o=e.onChange;return i.createElement(gr,ur({theme:s,code:n,language:r,disabled:a,onChange:o},t))}))}function Ar(t){return i.createElement(yr.Consumer,null,(function(e){var n=e.error;return n?i.createElement("pre",t,n):null}))}function Nr(t){var e=t.Component,n=fr(t,["Component"]);return i.createElement(e,n,i.createElement(yr.Consumer,null,(function(t){var e=t.element;return e&&i.createElement(e,null)})))}function Lr(t){var e=t.children,n=t.fallback;return(0,Nt.Z)()?i.createElement(i.Fragment,null,null==e?void 0:e()):null!=n?n:null}wr.defaultProps={code:"",noInline:!1,language:"jsx",disabled:!1},Nr.defaultProps={Component:"div"};var Ir=n(5491),Pr=n(736),Tr=n(309),Or=n(4994);Ir.Z.canUseDOM?i.useLayoutEffect:i.useEffect;var jr=function(t){function e(e,n){var i,r,s,a,o;return(o=t.call(this)||this).name="ReactContextError",o.message="Hook "+(null!=(i=null==(r=o.stack)||null==(s=r.split("\n")[1])||null==(a=s.match((0,Pr.Z)(/at (?:\w+\.)?(\w+)/,{name:1})))?void 0:a.groups.name)?i:"")+" is called outside the <"+e+">. "+(null!=n?n:""),o}return(0,Tr.Z)(e,t),e}((0,Or.Z)(Error));var Rr="localStorage";function Vr(t){if(void 0===t&&(t=Rr),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===t)return null;try{return window[t]}catch(n){return e=n,Br||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",e),Br=!0),null}var e}var Br=!1;var Dr={get:function(){return null},set:function(){},del:function(){}};var Mr=i.createContext(void 0),Fr="theme";!function(t,e){if("undefined"==typeof window)return function(t){function e(){throw new Error('Illegal storage API usage for storage key "'+t+'".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.')}return{get:e,set:e,del:e}}(t);var n=Vr(null==e?void 0:e.persistence)}(Fr);function Ur(){var t=(0,v.Z)().siteConfig.themeConfig.prism,e=function(){var t=(0,i.useContext)(Mr);
1if(null==t)throw new jr("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return t}().colorMode,n=t.theme,r=t.darkTheme||n;return"dark"===e?r:n}const Zr="playgroundContainer_xGaT",Hr="playgroundHeader_cVtd",zr="playgroundEditor_fUhV",qr="playgroundPreview_H_9A";var Wr=["children","transformCode"];function Xr(t){var e=t.children;return i.createElement("div",{className:(0,l.Z)(Hr)},e)}function Jr(){return i.createElement("div",null,"Loading...")}function Kr(){return i.createElement(i.Fragment,null,i.createElement(Xr,null,i.createElement(d.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks"},"Result")),i.createElement("div",{className:qr},i.createElement(Lr,{fallback:i.createElement(Jr,null)},(function(){return i.createElement(i.Fragment,null,i.createElement(Nr,null),i.createElement(Ar,null))}))))}function Gr(){var t=(0,Nt.Z)();return i.createElement(Cr,{key:String(t),className:zr})}function Qr(){return i.createElement(i.Fragment,null,i.createElement(Xr,null,i.createElement(d.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks"},"Live Editor")),i.createElement(Gr,null))}function $r(t){var e,n,r=t.children,s=t.transformCode,a=(0,T.Z)(t,Wr),o=(0,v.Z)().siteConfig.themeConfig.liveCodeBlock.playgroundPosition,p=Ur(),c=null!=(e=null==(n=a.metastring)?void 0:n.includes("noInline"))&&e;return i.createElement("div",{className:Zr},i.createElement(wr,(0,u.Z)({code:r.replace(/\n$/,""),noInline:c,transformCode:null!=s?s:function(t){return t+";"},theme:p},a),"top"===o?i.createElement(i.Fragment,null,i.createElement(Kr,null),i.createElement(Qr,null)):i.createElement(i.Fragment,null,i.createElement(Qr,null),i.createElement(Kr,null))))}const Yr=Object.assign({React:i},i);var ts=n(1016);function es(){var t=(0,K.L)().prism,e=(0,ts.I)().colorMode,n=t.theme,i=t.darkTheme||n;return"dark"===e?i:n}var ns=n(7226),is=n.n(ns),rs=(0,Pr.Z)(/title=(["'])(.*?)\1/,{quote:1,title:2}),ss=(0,Pr.Z)(/\{([\d,-]+)\}/,{range:1}),as={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function os(t,e){var n=t.map((function(t){var n=as[t],i=n.start,r=n.end;return"(?:"+i+"\\s*("+e.flatMap((function(t){var e,n;return[t.line,null==(e=t.block)?void 0:e.start,null==(n=t.block)?void 0:n.end].filter(Boolean)})).join("|")+")\\s*"+r+")"})).join("|");return new RegExp("^\\s*(?:"+n+")\\s*$")}function ps(t,e){var n=t.replace(/\n$/,""),i=e.language,r=e.magicComments,s=e.metastring;if(s&&ss.test(s)){var a=s.match(ss).groups.range;if(0===r.length)throw new Error("A highlight range has been given in code block's metastring (``` "+s+"), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.");var o=r[0].className,p=is()(a).filter((function(t){return t>0})).map((function(t){return[t-1,[o]]}));return{lineClassNames:Object.fromEntries(p),code:n}}if(void 0===i)return{lineClassNames:{},code:n};for(var c=function(t,e){switch(t){case"js":case"javascript":case"ts":case"typescript":return os(["js","jsBlock"],e);case"jsx":case"tsx":return os(["js","jsBlock","jsx"],e);case"html":return os(["js","jsBlock","html"],e);case"python":case"py":case"bash":return os(["bash"],e);case"markdown":case"md":return os(["html","jsx","bash"],e);default:return os(Object.keys(as),e)}}(i,r),l=n.split("\n"),h=Object.fromEntries(r.map((function(t){return[t.className,{start:0,range:""}]}))),u=Object.fromEntries(r.filter((function(t){return t.line})).map((function(t){var e=t.className;return[t.line,e]}))),d=Object.fromEntries(r.filter((function(t){return t.block})).map((function(t){var e=t.className;return[t.block.start,e]}))),f=Object.fromEntries(r.filter((function(t){return t.block})).map((function(t){var e=t.className;return[t.block.end,e]}))),m=0;m<l.length;){var g=l[m].match(c);if(g){var y=g.slice(1).find((function(t){return void 0!==t}));u[y]?h[u[y]].range+=m+",":d[y]?h[d[y]].start=m:f[y]&&(h[f[y]].range+=h[f[y]].start+"-"+(m-1)+","),l.splice(m,1)}else m+=1}n=l.join("\n");var v={};
1return Object.entries(h).forEach((function(t){var e=t[0],n=t[1].range;is()(n).forEach((function(t){null!=v[t]||(v[t]=[]),v[t].push(e)}))})),{lineClassNames:v,code:n}}const cs="codeBlockContainer_Op_Y";var ls=["as"];function hs(t){var e=t.as,n=(0,T.Z)(t,ls),r=function(t){var e={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(t.plain).forEach((function(t){var i=t[0],r=t[1],s=e[i];s&&"string"==typeof r&&(n[s]=r)})),n}(es());return i.createElement(e,(0,u.Z)({},n,{style:r,className:(0,l.Z)(n.className,cs,x.k.common.codeBlock)}))}const us={codeBlockContent:"codeBlockContent_aGc1",codeBlockTitle:"codeBlockTitle_PpgL",codeBlock:"codeBlock_QQ5Q",codeBlockStandalone:"codeBlockStandalone_zrXH",codeBlockLines:"codeBlockLines_H6Zg",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_cCaI",buttonGroup:"buttonGroup_bIQX"};function ds(t){var e=t.children,n=t.className;return i.createElement(hs,{as:"pre",tabIndex:0,className:(0,l.Z)(us.codeBlockStandalone,"thin-scrollbar",n)},i.createElement("code",{className:us.codeBlockLines},e))}var fs={attributes:!0,characterData:!0,childList:!0,subtree:!0};function ms(t,e){var n=(0,i.useState)(),r=n[0],a=n[1],o=(0,i.useCallback)((function(){var e;a(null==(e=t.current)?void 0:e.closest("[role=tabpanel][hidden]"))}),[t,a]);(0,i.useEffect)((function(){o()}),[o]),function(t,e,n){void 0===n&&(n=fs);var r=(0,s.zX)(e),a=(0,s.Ql)(n);(0,i.useEffect)((function(){var e=new MutationObserver(r);return t&&e.observe(t,a),function(){return e.disconnect()}}),[t,r,a])}(r,(function(t){t.forEach((function(t){"attributes"===t.type&&"hidden"===t.attributeName&&(e(),o())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const gs="codeLine_CMOp",ys="codeLineNumber_KKyq",vs="codeLineContent__uHK";function bs(t){var e=t.line,n=t.classNames,r=t.showLineNumbers,s=t.getLineProps,a=t.getTokenProps;1===e.length&&"\n"===e[0].content&&(e[0].content="");var o=s({line:e,className:(0,l.Z)(n,r&&gs)}),p=e.map((function(t,e){return i.createElement("span",(0,u.Z)({key:e},a({token:t,key:e})))}));return i.createElement("span",o,r?i.createElement(i.Fragment,null,i.createElement("span",{className:ys}),i.createElement("span",{className:vs},p)):p,i.createElement("br",null))}const xs={copyButtonCopied:"copyButtonCopied_DXTl",copyButtonIcons:"copyButtonIcons_GkSR",copyButtonIcon:"copyButtonIcon_dA1E",copyButtonSuccessIcon:"copyButtonSuccessIcon_VWe2"};function _s(t){var e=t.code,n=t.className,r=(0,i.useState)(!1),s=r[0],a=r[1],o=(0,i.useRef)(void 0),p=(0,i.useCallback)((function(){!function(t,e){var n=(void 0===e?{}:e).target,i=void 0===n?document.body:n,r=document.createElement("textarea"),s=document.activeElement;r.value=t,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";var a=document.getSelection(),o=!1;a.rangeCount>0&&(o=a.getRangeAt(0)),i.append(r),r.select(),r.selectionStart=0,r.selectionEnd=t.length;var p=!1;try{p=document.execCommand("copy")}catch(c){}r.remove(),o&&(a.removeAllRanges(),a.addRange(o)),s&&s.focus()}(e),a(!0),o.current=window.setTimeout((function(){a(!1)}),1e3)}),[e]);return(0,i.useEffect)((function(){return function(){return window.clearTimeout(o.current)}}),[]),i.createElement("button",{type:"button","aria-label":s?(0,d.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,d.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,d.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,l.Z)("clean-btn",n,xs.copyButton,s&&xs.copyButtonCopied),onClick:p},i.createElement("span",{className:xs.copyButtonIcons,"aria-hidden":"true"},i.createElement("svg",{className:xs.copyButtonIcon,viewBox:"0 0 24 24"},i.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})),i.createElement("svg",{className:xs.copyButtonSuccessIcon,viewBox:"0 0 24 24"},i.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}const Es="wordWrapButtonIcon_DphG",ks="wordWrapButtonEnabled_nb9n";function Ss(t){var e=t.className,n=t.onClick,r=t.isEnabled,s=(0,d.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return i.createElement("button",{type:"button",onClick:n,className:(0,l.Z)("clean-btn",e,r&&ks),"aria-label":s,title:s},i.createElement("svg",{className:Es,viewBox:"0 0 24 24","aria-hidden":"true"},i.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})))}function ws(t){var e,n,r,s,a,o,p,c,h,d,f,m=t.children,g=t.className,y=void 0===g?"":g,v=t.metastring,b=t.title,x=t.showLineNumbers,_=t.language,E=(0,K.L)().prism,k=E.defaultLanguage,S=E.magicComments,w=null!=(e=null!=_?_:null==(n=y.split(" ").find((function(t){return t.startsWith("language-")})))?void 0:n.replace(/language-/,""))?e:k,C=es(),A=(r=(0,i.useState)(!1),s=r[0],a=r[1],o=(0,i.useState)(!1),p=o[0],c=o[1],h=(0,i.useRef)(null),d=(0,i.useCallback)((function(){var t=h.current.querySelector("code");s?t.removeAttribute("style"):(t.style.whiteSpace="pre-wrap",t.style.overflowWrap="anywhere"),a((function(t){return!t}))}),[h,s]),f=(0,i.useCallback)((function(){var t=h.current,e=t.scrollWidth>t.clientWidth||h.current.querySelector("code").hasAttribute("style");c(e)}),[h]),ms(h,f),(0,i.useEffect)((function(){f()}),[s,f]),(0,i.useEffect)((function(){return window.addEventListener("resize",f,{passive:!0}),function(){window.removeEventListener("resize",f)}}),[f]),{codeBlockRef:h,isEnabled:s,isCodeScrollable:p,toggle:d}),N=function(t){var e,n;return null!=(e=null==t||null==(n=t.match(rs))?void 0:n.groups.title)?e:""}(v)||b,L=ps(m,{metastring:v,language:w,magicComments:S}),I=L.lineClassNames,P=L.code,T=null!=x?x:function(t){return Boolean(null==t?void 0:t.includes("showLineNumbers"))}(v);return i.createElement(hs,{as:"div",className:(0,l.Z)(y,w&&!y.includes("language-"+w)&&"language-"+w)},N&&i.createElement("div",{className:us.codeBlockTitle},N),i.createElement("div",{className:us.codeBlockContent},i.createElement(Ut,(0,u.Z)({},Tt,{theme:C,code:P,language:null!=w?w:"text"}),(function(t){var e=t.className,n=t.tokens,r=t.getLineProps,s=t.getTokenProps;return i.createElement("pre",{tabIndex:0,ref:A.codeBlockRef,className:(0,l.Z)(e,us.codeBlock,"thin-scrollbar")},i.createElement("code",{className:(0,l.Z)(us.codeBlockLines,T&&us.codeBlockLinesWithNumbering)},n.map((function(t,e){return i.createElement(bs,{key:e,line:t,getLineProps:r,getTokenProps:s,classNames:I[e],showLineNumbers:T})}))))}
1)),i.createElement("div",{className:us.buttonGroup},(A.isEnabled||A.isCodeScrollable)&&i.createElement(Ss,{className:us.codeButton,onClick:function(){return A.toggle()},isEnabled:A.isEnabled}),i.createElement(_s,{className:us.codeButton,code:P}))))}var Cs=["children"];const As=function(t){return function(e){return e.live?i.createElement($r,(0,u.Z)({scope:Yr},e)):i.createElement(t,e)}}((function(t){var e=t.children,n=(0,T.Z)(t,Cs),r=(0,Nt.Z)(),s=function(t){return i.Children.toArray(t).some((function(t){return(0,i.isValidElement)(t)}))?t:Array.isArray(t)?t.join(""):t}(e),a="string"==typeof s?ws:ds;return i.createElement(a,(0,u.Z)({key:String(r)},n),s)}));const Ns="details_V4h6",Ls="isBrowser_Npad",Is="collapsibleContent_KvQ7";var Ps=["summary","children"];function Ts(t){return!!t&&("SUMMARY"===t.tagName||Ts(t.parentElement))}function Os(t,e){return!!t&&(t===e||Os(t.parentElement,e))}function js(t){var e=t.summary,n=t.children,r=(0,T.Z)(t,Ps),s=(0,Nt.Z)(),a=(0,i.useRef)(null),o=(0,J.u)({initialState:!r.open}),p=o.collapsed,c=o.setCollapsed,h=(0,i.useState)(r.open),d=h[0],f=h[1];return i.createElement("details",(0,u.Z)({},r,{ref:a,open:d,"data-collapsed":p,className:(0,l.Z)(Ns,s&&Ls,r.className),onMouseDown:function(t){Ts(t.target)&&t.detail>1&&t.preventDefault()},onClick:function(t){t.stopPropagation();var e=t.target;Ts(e)&&Os(e,a.current)&&(t.preventDefault(),p?(c(!1),f(!0)):c(!0))}}),null!=e?e:i.createElement("summary",null,"Details"),i.createElement(J.z,{lazy:!1,collapsed:p,disableSSRStyle:!0,onCollapseTransitionEnd:function(t){c(t),f(!t)}},i.createElement("div",{className:Is},n)))}const Rs="details_wkqP";function Vs(t){var e=Object.assign({},(function(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(t),t));return i.createElement(js,(0,u.Z)({},e,{className:(0,l.Z)("alert alert--info",Rs,e.className)}))}function Bs(t){return i.createElement(St,t)}const Ds="containsTaskList_TqF3";const Ms="img_WzGh";const Fs="admonition_HUm3",Us="admonitionHeading_srYD",Zs="admonitionIcon_PcUR",Hs="admonitionContent_xASv";var zs={note:{infimaClassName:"secondary",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:i.createElement(d.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:i.createElement(d.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 12 16"},i.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:i.createElement(d.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:i.createElement(d.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return i.createElement("svg",{viewBox:"0 0 16 16"},i.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:i.createElement(d.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},qs={secondary:"note",important:"info",success:"tip",warning:"danger"};function Ws(t){var e,n=function(t){var e=i.Children.toArray(t),n=e.find((function(t){var e;return i.isValidElement(t)&&"mdxAdmonitionTitle"===(null==(e=t.props)?void 0:e.mdxType)})),r=i.createElement(i.Fragment,null,e.filter((function(t){return t!==n})));return{mdxAdmonitionTitle:n,rest:r}}(t.children),r=n.mdxAdmonitionTitle,s=n.rest;return Object.assign({},t,{title:null!=(e=t.title)?e:r,children:s})}const Xs={head:function(t){var e=i.Children.map(t.children,(function(t){return i.isValidElement(t)?function(t){var e;if(null!=(e=t.props)&&e.mdxType&&t.props.originalType){var n=t.props,r=(n.mdxType,n.originalType,(0,T.Z)(n,At));return i.createElement(t.props.originalType,r)}return t}(t):t}));return i.createElement(Ct.Z,t,e)},code:function(t){var e=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return i.Children.toArray(t.children).every((function(t){var n;return"string"==typeof t&&!t.includes("\n")||(0,i.isValidElement)(t)&&e.includes(null==(n=t.props)?void 0:n.mdxType)}))?i.createElement("code",t):i.createElement(As,t)},a:function(t){return i.createElement(f.Z,t)},pre:function(t){var e;return i.createElement(As,(0,i.isValidElement)(t.children)&&"code"===(null==(e=t.children.props)?void 0:e.originalType)?t.children.props:Object.assign({},t))},details:function(t){var e=i.Children.toArray(t.children),n=e.find((function(t){var e;return i.isValidElement(t)&&"summary"===(null==(e=t.props)?void 0:e.mdxType)})),r=i.createElement(i.Fragment,null,e.filter((function(t){return t!==n})));return i.createElement(Vs,(0,u.Z)({},t,{summary:n}),r)},ul:function(t){return i.createElement("ul",(0,u.Z)({},t,{className:(e=t.className,(0,l.Z)(e,(null==e?void 0:e.includes("contains-task-list"))&&Ds))}));var e},img:function(t){return i.createElement("img",(0,u.Z)({loading:"lazy"},t,{className:(e=t.className,(0,l.Z)(e,Ms))}));var e},h1:function(t){return i.createElement(Bs,(0,u.Z)({as:"h1"},t))},h2:function(t){return i.createElement(Bs,(0,u.Z)({as:"h2"},t))},h3:function(t){return i.createElement(Bs,(0,u.Z)({as:"h3"},t))},h4:function(t){return i.createElement(Bs,(0,u.Z)({as:"h4"},t))},h5:function(t){return i.createElement(Bs,(0,u.Z)({as:"h5"},t))},h6:function(t){return i.createElement(Bs,(0,u.Z)({as:"h6"},t))},admonition:function(t){var e=Ws(t),n=e.children,r=e.type,s=e.title,a=e.icon,o=function(t){var e,n=null!=(e=qs[t])?e:t,i=zs[n];
1return i||(console.warn('No admonition config found for admonition type "'+n+'". Using Info as fallback.'),zs.info)}(r),p=null!=s?s:o.label,c=o.iconComponent,h=null!=a?a:i.createElement(c,null);return i.createElement("div",{className:(0,l.Z)(x.k.common.admonition,x.k.common.admonitionType(t.type),"alert","alert--"+o.infimaClassName,Fs)},i.createElement("div",{className:Us},i.createElement("span",{className:Zs},h),p),i.createElement("div",{className:Hs},n))},mermaid:function(){return null}};function Js(t){var e=t.children;return i.createElement(wt.Zo,{components:Xs},e)}function Ks(t){var e,n,r,s,a=t.children,o=(e=p(),n=e.metadata,r=e.frontMatter,s=e.contentTitle,r.hide_title||void 0!==s?null:n.title);return i.createElement("div",{className:(0,l.Z)(x.k.docs.docMarkdown,"markdown")},o&&i.createElement("header",null,i.createElement(St,{as:"h1"},o)),i.createElement(Js,null,a))}var Gs=n(9803),Qs=n(6595),$s=n(4845);function Ys(t){return i.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},t),i.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}const ta={breadcrumbsContainer:"breadcrumbsContainer_yrZ6",breadcrumbHomeIcon:"breadcrumbHomeIcon_o5QY"};function ea(t){var e=t.children,n=t.href,r="breadcrumbs__link";return t.isLast?i.createElement("span",{className:r,itemProp:"name"},e):n?i.createElement(f.Z,{className:r,href:n,itemProp:"item"},i.createElement("span",{itemProp:"name"},e)):i.createElement("span",{className:r},e)}function na(t){var e=t.children,n=t.active,r=t.index,s=t.addMicrodata;return i.createElement("li",(0,u.Z)({},s&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,l.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n})}),e,i.createElement("meta",{itemProp:"position",content:String(r+1)}))}function ia(){var t=(0,$s.Z)("/");return i.createElement("li",{className:"breadcrumbs__item"},i.createElement(f.Z,{"aria-label":(0,d.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:(0,l.Z)("breadcrumbs__link",ta.breadcrumbsItemLink),href:t},i.createElement(Ys,{className:ta.breadcrumbHomeIcon})))}function ra(){var t=(0,Gs.s1)(),e=(0,Qs.Ns)();return t?i.createElement("nav",{className:(0,l.Z)(x.k.docs.docBreadcrumbs,ta.breadcrumbsContainer),"aria-label":(0,d.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},i.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},e&&i.createElement(ia,null),t.map((function(e,n){var r=n===t.length-1;return i.createElement(na,{key:n,active:r,index:n,addMicrodata:!!e.href},i.createElement(ea,{href:e.href,isLast:r},e.label))})))):null}const sa="docItemContainer_qFsx",aa="docItemCol_Xv8u";function oa(t){var e,n,r,s,a,o,c=t.children,u=(e=p(),n=e.frontMatter,r=e.toc,s=(0,h.i)(),a=n.hide_table_of_contents,o=!a&&r.length>0,{hidden:a,mobile:o?i.createElement(gt,null):void 0,desktop:!o||"desktop"!==s&&"ssr"!==s?void 0:i.createElement(xt,null)});return i.createElement("div",{className:"row"},i.createElement("div",{className:(0,l.Z)("col",!u.hidden&&aa)},i.createElement(A,null),i.createElement("div",{className:sa},i.createElement("article",null,i.createElement(ra,null),i.createElement(N,null),u.mobile,i.createElement(Ks,null,c),i.createElement(X,null)),i.createElement(y,null))),u.desktop&&i.createElement("div",{className:"col col--3"},u.desktop))}function pa(t){var e="docs-doc-id-"+t.content.metadata.unversionedId,n=t.content;return i.createElement(o,{content:t.content},i.createElement(r.FG,{className:e},i.createElement(c,null),i.createElement(oa,null,i.createElement(n,null))))}},1991:(t,e,n)=>{"use strict";n.d(e,{E:()=>o,q:()=>a});var i=n(959),r=n(9184),s=i.createContext(null);function a(t){var e=t.children,n=t.version;return i.createElement(s.Provider,{value:n},e)}function o(){var t=(0,i.useContext)(s);if(null===t)throw new r.i6("DocsVersionProvider");return t}},7317:(t,e,n)=>{n(2532),t.exports=n(9191).Object.assign},147:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2462:(t,e,n)=>{var i=n(5795);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},3512:(t,e,n)=>{var i=n(2904),r=n(6929),s=n(3334);t.exports=function(t){return function(e,n,a){var o,p=i(e),c=r(p.length),l=s(a,c
1);if(t&&n!=n){for(;c>l;)if((o=p[l++])!=o)return!0}else for(;c>l;l++)if((t||l in p)&&p[l]===n)return t||l||0;return!t&&-1}}},5757:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9191:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},3120:(t,e,n)=>{var i=n(147);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},4833:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3382:(t,e,n)=>{t.exports=!n(5930)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},2478:(t,e,n)=>{var i=n(5795),r=n(8727).document,s=i(r)&&i(r.createElement);t.exports=function(t){return s?r.createElement(t):{}}},9003:t=>{t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},764:(t,e,n)=>{var i=n(8727),r=n(9191),s=n(5836),a=n(3408),o=n(3120),p="prototype",c=function(t,e,n){var l,h,u,d,f=t&c.F,m=t&c.G,g=t&c.S,y=t&c.P,v=t&c.B,b=m?i:g?i[e]||(i[e]={}):(i[e]||{})[p],x=m?r:r[e]||(r[e]={}),_=x[p]||(x[p]={});for(l in m&&(n=e),n)u=((h=!f&&b&&void 0!==b[l])?b:n)[l],d=v&&h?o(u,i):y&&"function"==typeof u?o(Function.call,u):u,b&&a(b,l,u,t&c.U),x[l]!=u&&s(x,l,d),y&&_[l]!=u&&(_[l]=u)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},5930:t=>{t.exports=function(t){try{return!!t()}catch(e){return!0}}},3850:(t,e,n)=>{t.exports=n(6927)("native-function-to-string",Function.toString)},8727:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},5692:t=>{var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},5836:(t,e,n)=>{var i=n(8944),r=n(7908);t.exports=n(3382)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},9287:(t,e,n)=>{t.exports=!n(3382)&&!n(5930)((function(){return 7!=Object.defineProperty(n(2478)("div"),"a",{get:function(){return 7}}).a}))},6276:(t,e,n)=>{var i=n(5757);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},5795:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},9379:t=>{t.exports=!1},2690:(t,e,n)=>{"use strict";var i=n(3382),r=n(9659),s=n(9611),a=n(8318),o=n(1687),p=n(6276),c=Object.assign;t.exports=!c||n(5930)((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i}))?function(t,e){for(var n=o(t),c=arguments.length,l=1,h=s.f,u=a.f;c>l;)for(var d,f=p(arguments[l++]),m=h?r(f).concat(h(f)):r(f),g=m.length,y=0;g>y;)d=m[y++],i&&!u.call(f,d)||(n[d]=f[d]);return n}:c},8944:(t,e,n)=>{var i=n(2462),r=n(9287),s=n(3443),a=Object.defineProperty;e.f=n(3382)?Object.defineProperty:function(t,e,n){if(i(t),e=s(e,!0),i(n),r)try{return a(t,e,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},9611:(t,e)=>{e.f=Object.getOwnPropertySymbols},277:(t,e,n)=>{var i=n(5692),r=n(2904),s=n(3512)(!1),a=n(8253)("IE_PROTO");t.exports=function(t,e){var n,o=r(t),p=0,c=[];for(n in o)n!=a&&i(o,n)&&c.push(n);for(;e.length>p;)i(o,n=e[p++])&&(~s(c,n)||c.push(n));return c}},9659:(t,e,n)=>{var i=n(277),r=n(9003);t.exports=Object.keys||function(t){return i(t,r)}},8318:(t,e)=>{e.f={}.propertyIsEnumerable},7908:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3408:(t,e,n)=>{var i=n(8727),r=n(5836),s=n(5692),a=n(7174)("src"),o=n(3850),p="toString",c=(""+o).split(p);n(9191).inspectSource=function(t){return o.call(t)},(t.exports=function(t,e,n,o){var p="function"==typeof n;p&&(s(n,"name")||r(n,"name",e)),t[e]!==n&&(p&&(s(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:o?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,p,(function(){return"function"==typeof this&&this[a]||o.call(this)}))},8253:(t,e,n)=>
1{var i=n(6927)("keys"),r=n(7174);t.exports=function(t){return i[t]||(i[t]=r(t))}},6927:(t,e,n)=>{var i=n(9191),r=n(8727),s="__core-js_shared__",a=r[s]||(r[s]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(9379)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},3334:(t,e,n)=>{var i=n(8434),r=Math.max,s=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):s(t,e)}},8434:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},2904:(t,e,n)=>{var i=n(6276),r=n(4833);t.exports=function(t){return i(r(t))}},6929:(t,e,n)=>{var i=n(8434),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},1687:(t,e,n)=>{var i=n(4833);t.exports=function(t){return Object(i(t))}},3443:(t,e,n)=>{var i=n(5795);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7174:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},2532:(t,e,n)=>{var i=n(764);i(i.S+i.F,"Object",{assign:n(2690)})},7226:(t,e)=>{function n(t){let e,n=[];for(let i of t.split(",").map((t=>t.trim())))if(/^-?\d+$/.test(i))n.push(parseInt(i,10));else if(e=i.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[t,i,r,s]=e;if(i&&s){i=parseInt(i),s=parseInt(s);const t=i<s?1:-1;"-"!==r&&".."!==r&&"\u2025"!==r||(s+=t);for(let e=i;e!==s;e+=t)n.push(e)}}return n}e.default=n,t.exports=n},4168:(t,e,n)=>{"use strict";var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(959));function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var p=90,c=219,l=222,h=192,u=100,d=3e3,f="navigator"in n.g&&/Win/i.test(navigator.platform),m="navigator"in n.g&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),g="npm__react-simple-code-editor__textarea",y="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n."+g+":empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n ."+g+" {\n color: transparent !important;\n }\n\n ."+g+"::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n",v=function(t){function e(){var t,n,r;a(this,e);for(var s=arguments.length,g=Array(s),y=0;y<s;y++)g[y]=arguments[y];return n=r=o(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(g))),r.state={capture:!0},r._recordCurrentState=function(){var t=r._input;if(t){var e=t.value,n=t.selectionStart,i=t.selectionEnd;r._recordChange({value:e,selectionStart:n,selectionEnd:i})}},r._getLines=function(t,e){return t.substring(0,e).split("\n")},r._recordChange=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r._history,s=n.stack,a=n.offset;if(s.length&&a>-1){r._history.stack=s.slice(0,a+1);var o=r._history.stack.length;if(o>u){var p=o-u;r._history.stack=s.slice(p,o),r._history.offset=Math.max(r._history.offset-p,0)}}var c=Date.now();if(e){var l=r._history.stack[r._history.offset];if(l&&c-l.timestamp<d){var h=/[^a-z0-9]([a-z0-9]+)$/i,f=r._getLines(l.value,l.selectionStart).pop().match(h),m=r._getLines(t.value,t.selectionStart).pop().match(h);if(f&&m&&m[1].startsWith(f[1]))return void(r._history.stack[r._history.offset]=i({},t,{timestamp:c}))}}r._history.stack.push(i({},t,{timestamp:c})),r._history.offset++},r._updateInput=function(t){var e=r._input;e&&(e.value=t.value,e.selectionStart=t.selectionStart,e.selectionEnd=t.selectionEnd,r.props.onValueChange(t.value))},r._applyEdits=function(t){var e=r._input,n=r._history.stack[r._history.offset];n&&e&&(r._history.stack[r._history.offset]=i({},n,{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd})),r._recordChange(t),r._updateInput(t)},r._undoEdit=function(){var t=r._history,e=t.stack,n=t.offset,i=e[n-1];i&&(r._updateInput(i),r._history.offset=Math.max(n-1,0))},r._redoEdit=function(){var t=r._history,e=t.stack,n=t.offset,i=e[n+1];i&&(r._updateInput(i),r._history.offset=Math.min(n+1,e.length-1))},r._handleKeyDown=function(t){var e=r.props,n=e.tabSize,i=e.insertSpaces,s=e.ignoreTabKey,a=e.onKeyDown;if(!a||(a(t),!t.defaultPrevented)){27===t.keyCode&&t.target.blur();var o=t.target,u=o.value,d=o.selectionStart,g=o.selectionEnd,y=(i?" ":"\t").repeat(n);if(9===t.keyCode&&!s&&r.state.capture)if(t.preventDefault(),t.shiftKey){var v=r._getLines(u,d),b=v.length-1,x=r._getLines(u,g).length-1,_=u.split("\n").map((function(t,e){return e>=b&&e<=x&&t.startsWith(y)?t.substring(y.length):t})).join("\n");if(u!==_){var E=v[b];r._applyEdits({value:_,selectionStart:E.startsWith(y)?d-y.length:d,selectionEnd:g-(u.length-_.length)})}}else if(d!==g){var k=r._getLines(u,d),S=k.length-1,w=r._getLines(u,g).length-1,C=k[S];r._applyEdits({value:u.split("\n").map((function(t,e){return e>=S&&e<=w?y+t:t})).join("\n"),selectionStart:/\S/.test(C)?d+y.length:d,selectionEnd:g+y.length*(w-S+1)})}else{var A=d+y.length;r._applyEdits({value:u.substring(0,d)+y+u.substring(g),selectionStart:A,selectionEnd:A})}else if(8===t.keyCode){var N=d!==g;if(u.substring(0,d).endsWith(y)&&!N){t.preventDefault();var L=d-y.length;r._applyEdits({value:u.substring(0,d-y.length)+u.substring(g),selectionStart:L,selectionEnd:L})}}else if(13===t.keyCode){if(d===g){var I=r._getLines(u,d).pop().match(/^\s+/);if(I&&I[0]){t.preventDefault();var P="\n"+I[0],T=d+P.length;r._applyEdits({value:u.substring(0,d)+P+u.substring(g),selectionStart:T,selectionEnd:T})}}}else if(57===t.keyCode||t.keyCode===c||t.keyCode===l||t.keyCode===h){var O=void 0;57===t.keyCode&&t.shiftKey?O=["(",")"]:t.keyCode===c?O=t.shiftKey?["{","}"]:["[","]"]:t.keyCode===l?O=t.shiftKey?['"','"']:["'","'"]:t.keyCode!==h||t.shiftKey||(O=["`","`"]),d!==g&&O&&(t.preventDefault(),r._applyEdits({value:u.substring(0,d)+O[0]+u.substring(d,g)+O[1]+u.substring(g),selectionStart:d,selectionEnd:g+2}))}else!(m?t.metaKey&&t.keyCode===p:t.ctrlKey&&t.keyCode===p)||t.shiftKey||t.altKey?(m?t.metaKey&&t.keyCode===p&&t.shiftKey:f?t.ctrlKey&&89===t.keyCode:t.ctrlKey&&t.keyCode===p&&t.shiftKey)&&!t.altKey?(t.preventDefault(),r._redoEdit()):77!==t.keyCode||!t.ctrlKey||m&&!t.shiftKey||(t.preventDefault(),r.setState((function(t){return{capture:!t.capture}}))):(t.preventDefault(),r._undoEdit())}},r._handleChange=function(t){var e=t.target,n=e.value,i=e.selectionStart,s=e.selectionEnd;r._recordChange({value:n,selectionStart:i,selectionEnd:s},!0),r.props.onValueChange(n)},r._history={stack:[],offset:-1},o(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
1(e,t),r(e,[{key:"componentDidMount",value:function(){this._recordCurrentState()}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.style,a=e.padding,o=e.highlight,p=e.textareaId,c=e.autoFocus,l=e.disabled,h=e.form,u=e.maxLength,d=e.minLength,f=e.name,m=e.placeholder,v=e.readOnly,x=e.required,_=e.onClick,E=e.onFocus,k=e.onBlur,S=e.onKeyUp,w=(e.onKeyDown,e.onValueChange,e.tabSize,e.insertSpaces,e.ignoreTabKey,function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),C={paddingTop:a,paddingRight:a,paddingBottom:a,paddingLeft:a},A=o(n);return s.createElement("div",i({},w,{style:i({},b.container,r)}),s.createElement("textarea",{ref:function(e){return t._input=e},style:i({},b.editor,b.textarea,C),className:g,id:p,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:_,onKeyUp:S,onFocus:E,onBlur:k,disabled:l,form:h,maxLength:u,minLength:d,name:f,placeholder:m,readOnly:v,required:x,autoFocus:c,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),s.createElement("pre",i({"aria-hidden":"true",style:i({},b.editor,b.highlight,C)},"string"==typeof A?{dangerouslySetInnerHTML:{__html:A+"<br />"}}:{children:A})),s.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:y}}))}},{key:"session",get:function(){return{history:this._history}},set:function(t){this._history=t.history}}]),e}(s.Component);v.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},e.Z=v;var b={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.