From d0b56559e0d33c5fc6f0adc1cc8b43834c1d857a Mon Sep 17 00:00:00 2001 From: Simon Legander Date: Mon, 5 Aug 2019 10:27:50 +0200 Subject: [PATCH] Update standalone bundle. --- standalone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone.js b/standalone.js index 7711eff3..81f6f6ee 100644 --- a/standalone.js +++ b/standalone.js @@ -76,7 +76,7 @@ var r=n(179),a=n(180),i=n(27);function s(){return u.TYPED_ARRAY_SUPPORT?21474836 object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,a,i=r.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,n=i,a=o,t.copy(n,a),o+=s.data.length,s=s.next;return i},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(a.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(188),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,a,i,s,o,u=1,c={},l=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){f(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(a=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&f(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),r=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n0)throw s(e,m,y,"uses non-zero precision (not supported)");switch(t.match(/-/)&&(l=!0),t.match(/0/)&&(p="0"),t.match(/\+/)&&(d=!0),o){case"s":if(null==h)throw s(e,m,y,"attempted to print undefined or null as a string (argument "+E+" to sprintf)");b+=u(p,n,l,h.toString());break;case"d":h=Math.floor(h);case"f":b+=(d=d&&h>0?"+":"")+u(p,n,l,h.toString());break;case"x":b+=u(p,n,l,h.toString(16));break;case"j":0===n&&(n=10),b+=a.inspect(h,!1,n);break;case"r":b+=c(h);break;default:throw s(e,m,y,"is not supported")}}else b+="%";return b+=v}function s(e,t,n,a){return r.equal(typeof e,"string"),r.equal(typeof n,"string"),r.equal(typeof t,"number"),r.equal(typeof a,"string"),new Error('format string "'+e+'": conversion specifier "'+n+'" at character '+t+" "+a)}function o(e){var t=Array.prototype.slice.call(arguments,1);return e.write(i.apply(this,t))}function u(e,t,n,r){for(var a=r;a.lengtht.page===e),s={type:r.Group,id:e,entries:i};t.pages.has(e)&&(s.page=t.pages.get(e)),a.push(s)}}(e.page,t,n,a):function(e,t){const n={type:r.External,entry:e};t.push(n)}(e,a)}e.exports=function(e){const t=new Set;for(const n of e.entries)a(n,e,t,e.flow)}},function(e,t,n){const{CheckType:r,FlowItemType:a,PostSpecies:i,VariableType:s}=n(2),{UnrecognizedError:o}=n(1);function u(e){return e.variables&&e.variables.find(c)||e.checks&&e.checks.find(l)}function c(e){return e.type===s.JSONPath}function l(e){return[r.JSONPath,r.JSONPathValue].includes(e.type)}function p(e){switch(e.type){case a.External:return d(e.entry);case a.Group:return e.entries.find(d);default:throw new o({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function d({request:e}){return e.state.post.species===i.Structured&&"application/x-www-form-urlencoded"===e.post.type&&e.state.params.plural&&e.state.params.variable}function h(e){switch(e.type){case a.External:return f(e.entry);case a.Group:return e.entries.find(f);default:throw new o({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function f({request:e}){return e.state.post.species===i.Structured&&"multipart/form-data"===e.post.type&&e.state.params.variable}e.exports=function(e,t){if(e.log.entries){t.imports.http=!0;const n=e.log.entries;n.find(e=>e.pageref)&&(t.imports.group=!0),n.find(e=>e.checks&&e.checks.length)&&(t.imports.check=!0),n.find(u)&&(t.imports.jsonpath=!0),t.flow.find(p)&&(t.imports.formUrlEncode=!0),t.flow.find(h)&&(t.imports.MimeBuilder=!0)}}},function(e,t,n){const r=n(202);e.exports=function(e,t){r(e.log,t)}},function(e,t,n){const r=n(203),a=n(204),i=n(205),s=n(240),o=n(242);e.exports=function(e,t){e.options&&o(e.options,t),e.creator&&a(e.creator,t),e.browser&&r(e.browser,t),e.comment&&t.comment.push(e.comment),e.pages&&s(e.pages,t),e.entries&&i(e.entries,t)}},function(e,t){e.exports=function(e,t){const n=[];e.name&&(e.version?n.push(`Browser: ${e.name} ${e.version}`):n.push(`Browser: ${e.name}`)),e.comment&&n.push(e.comment),n.length&&t.comment.push(n.join("\n"))}},function(e,t){e.exports=function(e,t){const n=[];e.name&&(e.version?n.push(`Creator: ${e.name} ${e.version}`):n.push(`Creator: ${e.name}`)),e.comment&&n.push(e.comment),n.length&&t.comment.push(n.join("\n"))}},function(e,t,n){const r=n(206);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t,n){const r=n(207),a=n(220),i=n(237),s=n(238),{entrySpec:o}=n(16);e.exports=function(e,t){const n=o();e.pageref&&(n.page=e.pageref),e.comment&&(n.comment=e.comment),a(e.request,n.request),e.checks&&r(e.checks,n.checks),e.variables&&s(e.variables,n.variables),i(n),t.entries.push(n)}},function(e,t,n){const r=n(208);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t,n){const r=n(209),a=n(34),i=n(219),{checkState:s}=n(16),{CheckTypeEncoding:o}=n(2);e.exports=function(e,t){const n={type:e.type,state:s()};e.comment&&(n.comment=e.comment),r[o.get(e.type)](e,n),i(n),t.set(a(e),n)}},function(e,t,n){Object.assign(t,{JSONPath:n(210),JSONPathValue:n(211),Regex:n(212),Text:n(213)})},function(e,t){e.exports=function(e,t){t.expression=e.expression}},function(e,t){e.exports=function(e,t){t.expression=e.expression,t.condition=e.condition,t.value=e.value}},function(e,t){e.exports=function(e,t){t.subject=e.subject,t.expression=e.expression,e.flags&&(t.flags=e.flags)}},function(e,t){e.exports=function(e,t){t.subject=e.subject,t.condition=e.condition,t.value=e.value}},function(e,t,n){const r=n(215),a=n(216),i=n(217),s=n(218),{CheckType:o}=n(2),{UnrecognizedError:u}=n(1);e.exports=function(e){switch(e.type){case o.JSONPath:return r(e);case o.JSONPathValue:return a(e);case o.Regex:return i(e);case o.Text:return s(e);default:throw new u({name:"UnrecognizedCheckType"},`Unrecognized check type: ${e.type}`)}}},function(e,t){e.exports=function(e){return[e.expression,"exists"].join(" ")}},function(e,t,n){const r=n(35);e.exports=function(e){return[e.expression,r(e.condition),e.value].join(" ")}},function(e,t,n){const r=n(36);function a(e){return`/${e.expression}/${e.flags||""}`}e.exports=function(e){return[r(e.subject),"matches",a(e)].join(" ")}},function(e,t,n){const r=n(35),a=n(36);e.exports=function(e){return[a(e.subject),r(e.condition),e.value].join(" ")}},function(e,t,n){const{CheckCondition:r,CheckSubject:a,CheckType:i}=n(2);e.exports=function(e){e.state.negated=function(e){return e.condition===r.NotContains}(e),e.state.plural=function(e){return e.subject===a.ResponseHeaders||e.type===i.JSONPathValue}(e)}},function(e,t,n){const r=n(221),a=n(225),i=n(227),s=n(230),o=n(232),{emptyObject:u}=n(3);e.exports=function(e,t){t.method=e.method.toUpperCase(),t.address=e.url,e.comment&&(t.comment=e.comment),e.queryString&&s(e.queryString,t.query),e.headers&&a(e.headers,t.headers),e.cookies&&r(e.cookies,t.cookies),e.postData&&!u(e.postData)&&(i(e.postData,t.post),function(e,t){if(!t.has("Content-Type")){const n={value:e},r=new Set([n]);t.set("Content-Type",r)}}(e.postData.mimeType,t.headers)),o(t)}},function(e,t,n){const r=n(222);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t,n){const r=n(223),a=n(0);e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.path&&(n.path=e.path),e.domain&&(n.domain=e.domain),e.expires&&function(e,t){const n=a(e,a.ISO_8601);n.utc(),t.expires=r.date.http(n)}(e.expires,n),"boolean"==typeof e.httpOnly&&(n.httpOnly=e.httpOnly),"boolean"==typeof e.secure&&(n.secure=e.secure),e.comment&&(n.comment=e.comment),t.set(e.name,n)}},function(e,t){const n=Object.freeze({http:e=>e.format("ddd, DD MMM YYYY HH:mm:ss [GMT]"),iso8601:e=>e.format()});Object.assign(t,{date:n})},function(e,t,n){var r={"./af":38,"./af.js":38,"./ar":39,"./ar-dz":40,"./ar-dz.js":40,"./ar-kw":41,"./ar-kw.js":41,"./ar-ly":42,"./ar-ly.js":42,"./ar-ma":43,"./ar-ma.js":43,"./ar-sa":44,"./ar-sa.js":44,"./ar-tn":45,"./ar-tn.js":45,"./ar.js":39,"./az":46,"./az.js":46,"./be":47,"./be.js":47,"./bg":48,"./bg.js":48,"./bm":49,"./bm.js":49,"./bn":50,"./bn.js":50,"./bo":51,"./bo.js":51,"./br":52,"./br.js":52,"./bs":53,"./bs.js":53,"./ca":54,"./ca.js":54,"./cs":55,"./cs.js":55,"./cv":56,"./cv.js":56,"./cy":57,"./cy.js":57,"./da":58,"./da.js":58,"./de":59,"./de-at":60,"./de-at.js":60,"./de-ch":61,"./de-ch.js":61,"./de.js":59,"./dv":62,"./dv.js":62,"./el":63,"./el.js":63,"./en-SG":64,"./en-SG.js":64,"./en-au":65,"./en-au.js":65,"./en-ca":66,"./en-ca.js":66,"./en-gb":67,"./en-gb.js":67,"./en-ie":68,"./en-ie.js":68,"./en-il":69,"./en-il.js":69,"./en-nz":70,"./en-nz.js":70,"./eo":71,"./eo.js":71,"./es":72,"./es-do":73,"./es-do.js":73,"./es-us":74,"./es-us.js":74,"./es.js":72,"./et":75,"./et.js":75,"./eu":76,"./eu.js":76,"./fa":77,"./fa.js":77,"./fi":78,"./fi.js":78,"./fo":79,"./fo.js":79,"./fr":80,"./fr-ca":81,"./fr-ca.js":81,"./fr-ch":82,"./fr-ch.js":82,"./fr.js":80,"./fy":83,"./fy.js":83,"./ga":84,"./ga.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it-ch":97,"./it-ch.js":97,"./it.js":96,"./ja":98,"./ja.js":98,"./jv":99,"./jv.js":99,"./ka":100,"./ka.js":100,"./kk":101,"./kk.js":101,"./km":102,"./km.js":102,"./kn":103,"./kn.js":103,"./ko":104,"./ko.js":104,"./ku":105,"./ku.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=i,e.exports=a,a.id=224},function(e,t,n){const r=n(226);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.comment&&(n.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(n)}},function(e,t,n){const r=n(228);e.exports=function(e,t){t.type=e.mimeType,e.text?t.value=e.text:e.params&&e.params.length&&(t.params=new Map,r(e.params,t.params)),e.comment&&(t.comment=e.comment)}},function(e,t,n){const r=n(229);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.fileName&&(n.fileName=e.fileName),e.contentType&&(n.type=e.contentType),e.comment&&(n.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(n)}},function(e,t,n){const r=n(231);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.comment&&(n.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(n)}},function(e,t,n){const r=n(233),a=n(234),i=n(235),s=n(236);e.exports=function(e){s(e),r(e),i(e),a(e)}},function(e,t,n){const r=n(4),{AddressSpecies:a}=n(2);e.exports=function(e){const t=e.state.address;t.variable=function(e){return r.variable.test(e.address)}(e),t.variableStart=function(e){return r.variableStart.test(e.address)}(e),t.species=function(e){return function(e){return!(e.state.address.variable||e.query.size)}(e)&&a.Fixed||function(e){return!!e.query.size&&!(e.state.address.variable||e.state.query.variable)}(e)&&a.Constructed||function(e){return e.state.address.variable&&!(e.state.address.variableStart||e.query.size)}(e)&&a.Resolved||a.Runtime}(e)}},function(e,t,n){const r=n(4);e.exports=function(e){const t=e.state.params;t.plural=function(e){return!!e.post.params&&!![...e.post.params.values()].find(e=>e.size>1)}(e),t.variable=function(e){return!(!e.post.params||![...e.post.params.keys()].find(e=>r.variable.test(e))&&![...e.post.params.values()].find(e=>[...e].find(({value:e})=>e&&r.variable.test(e))))}(e)}},function(e,t,n){const{PostSpecies:r}=n(2);e.exports=function(e){e.state.post.species=function(e){return e.params?r.Structured:e.text||e.type?r.Unstructured:r.Empty}(e.post)}},function(e,t,n){const r=n(4);e.exports=function(e){e.state.query.variable=function(e){return!(![...e.query.keys()].find(e=>r.variable.test(e))&&![...e.query.values()].find(e=>[...e].find(({value:e})=>e&&r.variable.test(e))))}(e)}},function(e,t,n){const{PostSpecies:r}=n(2);e.exports=function(e){e.state.expanded=function(e){return e.request.state.post.species!==r.Empty||e.checks.size||e.variables.size}(e)}},function(e,t,n){const r=n(239);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={type:e.type,expression:e.expression};e.comment&&(n.comment=e.comment),t.set(e.name,n)}},function(e,t,n){const r=n(241);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={name:e.title};e.comment&&(n.comment=e.comment),t.pages.set(e.id,n)}},function(e,t){e.exports=function(e,t){t.options={...e}}},function(e,t,n){const r=n(244),a=n(247);e.exports=function(e){const t=a(e);return r(t)}},function(e,t,n){const r=n(245),a=n(246);e.exports=function(e){return r.format(e,{semi:!0,parser:"babel",plugins:[a]})}},function(e,t,n){(function(t){var n;n=function(){"use strict";var e="Prettier is an opinionated code formatter",n={prettier:"./bin/prettier.js"},r={node:">=6"},a={"@angular/compiler":"7.2.9","@babel/code-frame":"7.0.0","@babel/parser":"7.2.0","@glimmer/syntax":"0.38.4","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"1.6.0","angular-estree-parser":"1.1.5","angular-html-parser":"1.2.0",camelcase:"4.1.0",chalk:"2.1.0","cjk-regex":"2.0.0",cosmiconfig:"5.0.7",dashify:"0.2.2",dedent:"0.7.0",diff:"3.2.0",editorconfig:"0.15.2","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"1.0.5",esutils:"2.0.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.84.0","get-stream":"3.0.0",globby:"6.1.0",graphql:"14.2.0","html-element-attributes":"2.0.0","html-styles":"1.0.0","html-tag-names":"1.1.2",ignore:"4.0.6","is-ci":"2.0.0","jest-docblock":"23.2.0","json-stable-stringify":"1.0.1",leven:"2.1.0","lines-and-columns":"1.1.6","linguist-languages":"6.2.1-dev.20180706","lodash.uniqby":"4.7.0",mem:"1.1.0",minimatch:"3.0.4",minimist:"1.2.0","n-readlines":"1.0.0","normalize-path":"3.0.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","postcss-less":"1.1.5","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","regexp-util":"1.2.2","remark-math":"1.0.4","remark-parse":"5.0.0",resolve:"1.5.0",semver:"5.4.1","string-width":"3.0.0",typescript:"3.4.1","unicode-regex":"2.0.0",unified:"6.1.6",vnopts:"1.0.2",yaml:"1.0.2","yaml-unist-parser":"1.0.0"},i={"@babel/cli":"7.2.0","@babel/core":"7.2.0","@babel/preset-env":"7.2.0","babel-loader":"8.0.4",benchmark:"2.1.4","builtin-modules":"2.0.0",codecov:"codecov/codecov-node#e427d900309adb50746a39a50aa7d80071a5ddd0","cross-env":"5.0.5",eslint:"4.18.2","eslint-config-prettier":"2.9.0","eslint-friendly-formatter":"3.0.0","eslint-plugin-import":"2.9.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.7.0",execa:"0.10.0",jest:"23.3.0","jest-junit":"5.0.0","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.1.0",mkdirp:"0.5.1",prettier:"1.18.0",prettylint:"1.0.0",rimraf:"2.6.2",rollup:"0.47.6","rollup-plugin-alias":"1.4.0","rollup-plugin-babel":"4.0.0-beta.4","rollup-plugin-commonjs":"8.2.6","rollup-plugin-json":"2.1.1","rollup-plugin-node-builtins":"2.0.0","rollup-plugin-node-globals":"1.1.0","rollup-plugin-node-resolve":"2.0.0","rollup-plugin-replace":"1.2.1","rollup-plugin-uglify":"3.0.0",shelljs:"0.8.1","snapshot-diff":"0.4.0","strip-ansi":"4.0.0",tempy:"0.2.1",webpack:"3.12.0"},s={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","test-integration":"jest tests_integration","perf-repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter","lint-docs":"prettylint {.,docs,website,website/blog}/*.md","lint-dist":'eslint --no-eslintrc --no-ignore --env=browser "dist/!(bin-prettier|index|third-party).js"',build:"node --max-old-space-size=2048 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js"},o={name:"prettier",version:"1.18.2",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:a,devDependencies:i,scripts:s},u=Object.freeze({name:"prettier",version:"1.18.2",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:a,devDependencies:i,scripts:s,default:o}),c="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t){return e(t={exports:{}},t.exports),t.exports}var d=p(function(e,t){function n(){}function r(e,t,n,r,a){for(var i=0,s=t.length,o=0,u=0;ie.length?n:e}),c.value=e.join(p)}else c.value=e.join(n.slice(o,o+c.count));o+=c.count,c.added||(u+=c.count)}}var d=t[s-1];return s>1&&(d.added||d.removed)&&e.equals("",d.value)&&(t[s-2].value+=d.value,t.pop()),t}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],a=n.callback;"function"==typeof n&&(a=n,n={}),this.options=n;var i=this;function s(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,u=e.length,c=1,l=o+u,p=[{newPos:-1,components:[]}],d=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=o&&d+1>=u)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*c;n<=c;n+=2){var a=void 0,l=p[n-1],d=p[n+1],h=(d?d.newPos:0)-n;l&&(p[n-1]=void 0);var f=l&&l.newPos+1=o&&h+1>=u)return s(r(i,a.components,t,e,i.useLongestToken));p[n]=a}else p[n]=void 0}var y;c++}if(a)!function e(){setTimeout(function(){if(c>l)return a();h()||e()},0)}();else for(;c<=l;){var f=h();if(f)return f}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var a=t.length,i=n.length,s=e.newPos,o=s-r,u=0;s+11)throw new Error("applyPatch only works with a single input.");t=t[0]}var a=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,o=n.compareLine||function(e,t,n,r){return t===r},u=0,c=n.fuzzFactor||0,l=0,p=0,d=void 0,h=void 0;function f(e,t){for(var n=0;nc)return!1;t++}}return!0}for(var m=0;m0?c(y.lines.slice(-o.context)):[],p-=h.length,d-=h.length)}(s=h).push.apply(s,n(i.map(function(e){return(t.added?"+":"-")+e}))),t.added?m+=i.length:f+=i.length}else{if(p)if(i.length<=2*o.context&&e=u.length-2&&i.length<=o.context){var b=/\n$/.test(r),E=/\n$/.test(a);0!=i.length||b?b&&E||h.push("\\ No newline at end of file"):h.splice(v.oldLines,0,"\\ No newline at end of file")}l.push(v),p=0,d=0,h=[]}f+=i.length,m+=i.length}},D=0;D/g,">")).replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],r=0;r"):a.removed&&t.push(""),t.push(n(a.value)),a.added?t.push(""):a.removed&&t.push("")}return t.join("")}});l($);var q=p(function(e,t){t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var n,r=(n=d)&&n.__esModule?n:{default:n};t.Diff=r.default,t.diffChars=h.diffChars,t.diffWords=m.diffWords,t.diffWordsWithSpace=m.diffWordsWithSpace,t.diffLines=y.diffLines,t.diffTrimmedLines=y.diffTrimmedLines,t.diffSentences=g.diffSentences,t.diffCss=D.diffCss,t.diffJson=O.diffJson,t.diffArrays=N.diffArrays,t.structuredPatch=z.structuredPatch,t.createTwoFilesPatch=z.createTwoFilesPatch,t.createPatch=z.createPatch,t.applyPatch=H.applyPatch,t.applyPatches=H.applyPatches,t.parsePatch=I.parsePatch,t.convertChangesToDMP=W.convertChangesToDMP,t.convertChangesToXML=$.convertChangesToXML,t.canonicalize=O.canonicalize});l(q);var U={},J=Object.freeze({default:U}),V=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var a=e[2];"?"!==a&&"."!==a||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var i=e.split(/[\/\\]+/);return!1!==t&&""===i[i.length-1]&&i.pop(),r+i.join("/")},G=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Q=[],K=[],X="undefined"!=typeof Uint8Array?Uint8Array:Array,Z=!1;function ee(){Z=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Q[a>>12&63]+Q[a>>6&63]+Q[63&a]);return i.join("")}function ne(e){var t;Z||ee();for(var n=e.length,r=n%3,a="",i=[],s=0,o=n-r;so?o:s+16383));return 1===r?(t=e[n-1],a+=Q[t>>2],a+=Q[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=Q[t>>10],a+=Q[t>>4&63],a+=Q[t<<2&63],a+="="),i.push(a),i.join("")}function re(e,t,n,r,a){var i,s,o=8*a-r-1,u=(1<>1,l=-7,p=n?a-1:0,d=n?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-l)-1,h>>=-l,l+=o;l>0;i=256*i+e[t+p],p+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)}function ae(e,t,n,r,a,i){var s,o,u,c=8*i-a-1,l=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?d/u:d*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(t*u-1)*Math.pow(2,a),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,a),s=0));a>=8;e[n+h]=255&o,h+=f,o/=256,a-=8);for(s=s<0;e[n+h]=255&s,h+=f,s/=256,c-=8);e[n+h-f]|=128*m}var ie={}.toString,se=Array.isArray||function(e){return"[object Array]"==ie.call(e)};function oe(){return ce.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ue(e,t){if(oe()=oe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe().toString(16)+" bytes");return 0|e}function me(e){return!(null==e||!e._isBuffer)}function ye(e,t){if(me(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ze(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return We(e).length;default:if(r)return ze(e).length;t=(""+t).toLowerCase(),r=!0}}function ge(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function De(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=ce.from(t,r)),me(t))return 0===t.length?-1:_e(e,t,n,r,a);if("number"==typeof t)return t&=255,ce.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_e(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function _e(e,t,n,r,a){var i,s=1,o=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var l=-1;for(i=n;io&&(n=o-u),i=n;i>=0;i--){for(var p=!0,d=0;da&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function Me(e,t,n){return 0===t&&n===e.length?ne(e):ne(e.slice(t,n))}function Ae(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:c>223?3:c>191?2:1;if(a+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[a+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[a+1],s=e[a+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[a+1],s=e[a+2],o=e[a+3],128==(192&i)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=p}return function(e){var t=e.length;if(t<=ke)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Le(this,t,n);case"utf8":case"utf-8":return Ae(this,t,n);case"ascii":return Te(this,t,n);case"latin1":case"binary":return Se(this,t,n);case"base64":return Me(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},ce.prototype.equals=function(e){if(!me(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ce.compare(this,e)},ce.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ce.prototype.compare=function(e,t,n,r,a){if(!me(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(i,s),u=this.slice(r,a),c=e.slice(t,n),l=0;la)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return ve(this,e,t,n);case"utf8":case"utf-8":return be(this,e,t,n);case"ascii":return Ee(this,e,t,n);case"latin1":case"binary":return xe(this,e,t,n);case"base64":return we(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},ce.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ke=4096;function Te(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ye(e,t,n,r,a,i){if(!me(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function je(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function Be(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function Oe(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ne(e,t,n,r,a){return a||Oe(e,0,n,4),ae(e,t,n,r,23,4),n+4}function Ie(e,t,n,r,a){return a||Oe(e,0,n,8),ae(e,t,n,r,52,8),n+8}ce.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},ce.prototype.readUInt8=function(e,t){return t||Pe(e,1,this.length),this[e]},ce.prototype.readUInt16LE=function(e,t){return t||Pe(e,2,this.length),this[e]|this[e+1]<<8},ce.prototype.readUInt16BE=function(e,t){return t||Pe(e,2,this.length),this[e]<<8|this[e+1]},ce.prototype.readUInt32LE=function(e,t){return t||Pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ce.prototype.readUInt32BE=function(e,t){return t||Pe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ce.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Pe(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},ce.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Pe(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},ce.prototype.readInt8=function(e,t){return t||Pe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ce.prototype.readInt16LE=function(e,t){t||Pe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ce.prototype.readInt16BE=function(e,t){t||Pe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ce.prototype.readInt32LE=function(e,t){return t||Pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ce.prototype.readInt32BE=function(e,t){return t||Pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ce.prototype.readFloatLE=function(e,t){return t||Pe(e,4,this.length),re(this,e,!0,23,4)},ce.prototype.readFloatBE=function(e,t){return t||Pe(e,4,this.length),re(this,e,!1,23,4)},ce.prototype.readDoubleLE=function(e,t){return t||Pe(e,8,this.length),re(this,e,!0,52,8)},ce.prototype.readDoubleBE=function(e,t){return t||Pe(e,8,this.length),re(this,e,!1,52,8)},ce.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ye(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},ce.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,1,255,0),ce.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ce.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,65535,0),ce.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):je(this,e,t,!0),t+2},ce.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,65535,0),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):je(this,e,t,!1),t+2},ce.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,4294967295,0),ce.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Be(this,e,t,!0),t+4},ce.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,4294967295,0),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Be(this,e,t,!1),t+4},ce.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);Ye(this,e,t,n,a-1,-a)}var i=0,s=1,o=0;for(this[t]=255&e;++i>0)-o&255;return t+n},ce.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);Ye(this,e,t,n,a-1,-a)}var i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},ce.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,1,127,-128),ce.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ce.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,32767,-32768),ce.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):je(this,e,t,!0),t+2},ce.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,32767,-32768),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):je(this,e,t,!1),t+2},ce.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,2147483647,-2147483648),ce.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Be(this,e,t,!0),t+4},ce.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Be(this,e,t,!1),t+4},ce.prototype.writeFloatLE=function(e,t,n){return Ne(this,e,t,!0,n)},ce.prototype.writeFloatBE=function(e,t,n){return Ne(this,e,t,!1,n)},ce.prototype.writeDoubleLE=function(e,t,n){return Ie(this,e,t,!0,n)},ce.prototype.writeDoubleBE=function(e,t,n){return Ie(this,e,t,!1,n)},ce.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!ce.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function We(e){return function(e){var t,n,r,a,i,s;Z||ee();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[o-2]?2:"="===e[o-1]?1:0,s=new X(3*o/4-i),r=i>0?o-4:o;var u=0;for(t=0,n=0;t>16&255,s[u++]=a>>8&255,s[u++]=255&a;return 2===i?(a=K[e.charCodeAt(t)]<<2|K[e.charCodeAt(t+1)]>>4,s[u++]=255&a):1===i&&(a=K[e.charCodeAt(t)]<<10|K[e.charCodeAt(t+1)]<<4|K[e.charCodeAt(t+2)]>>2,s[u++]=a>>8&255,s[u++]=255&a),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Re,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $e(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ue=J&&U||J,Je=function(){function e(t,n){v(this,e),(n=n||{}).readChunk||(n.readChunk=1024),n.newLineCharacter?n.newLineCharacter=n.newLineCharacter.charCodeAt(0):n.newLineCharacter=10,this.fd="number"==typeof t?t:Ue.openSync(t,"r"),this.options=n,this.newLineCharacter=n.newLineCharacter,this.reset()}return E(e,[{key:"_searchInBuffer",value:function(e,t){for(var n=-1,r=0;r<=e.length;r++){if(e[r]===t){n=r;break}}return n}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){Ue.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,n=[],r=0,a=0;;){var i=e[r++];if(i===this.newLineCharacter)t=e.slice(a,r),n.push(t),a=r;else if(!i)break}var s=e.slice(a,r);return s.length&&n.push(s),n}},{key:"_readChunk",value:function(e){var t,n=0,r=[];do{var a=new ce(this.options.readChunk);n+=t=Ue.readSync(this.fd,a,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(a)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var i=ce.concat(r);return t1)for(var n=1;n)?=?)";var C=o++;s[C]=s[c]+"|x|X|\\*";var M=o++;s[M]=s[u]+"|x|X|\\*";var A=o++;s[A]="[v=\\s]*("+s[M]+")(?:\\.("+s[M]+")(?:\\.("+s[M]+")(?:"+s[m]+")?"+s[D]+"?)?)?";var k=o++;s[k]="[v=\\s]*("+s[C]+")(?:\\.("+s[C]+")(?:\\.("+s[C]+")(?:"+s[y]+")?"+s[D]+"?)?)?";var T=o++;s[T]="^"+s[w]+"\\s*"+s[A]+"$";var S=o++;s[S]="^"+s[w]+"\\s*"+s[k]+"$";var L=o++;s[L]="(?:~>?)";var F=o++;s[F]="(\\s*)"+s[L]+"\\s+",i[F]=new RegExp(s[F],"g");var P=o++;s[P]="^"+s[L]+s[A]+"$";var Y=o++;s[Y]="^"+s[L]+s[k]+"$";var j=o++;s[j]="(?:\\^)";var B=o++;s[B]="(\\s*)"+s[j]+"\\s+",i[B]=new RegExp(s[B],"g");var O=o++;s[O]="^"+s[j]+s[A]+"$";var N=o++;s[N]="^"+s[j]+s[k]+"$";var I=o++;s[I]="^"+s[w]+"\\s*("+E+")$|^$";var R=o++;s[R]="^"+s[w]+"\\s*("+b+")$|^$";var H=o++;s[H]="(\\s*)"+s[w]+"\\s*("+E+"|"+s[A]+")",i[H]=new RegExp(s[H],"g");var z=o++;s[z]="^\\s*("+s[A]+")\\s+-\\s+("+s[A]+")\\s*$";var W=o++;s[W]="^\\s*("+s[k]+")\\s+-\\s+("+s[k]+")\\s*$";var $=o++;s[$]="(<|>)?=?\\s*\\*";for(var q=0;q<34;q++)n(q,s[q]),i[q]||(i[q]=new RegExp(s[q]));function U(e,t){if(e instanceof J)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t?i[x]:i[v]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(e instanceof J){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof J))return new J(e,t);n("SemVer",e,t),this.loose=t;var s=e.trim().match(t?i[x]:i[v]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new J(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var n=U(e),r=U(t);if(n.prerelease.length||r.prerelease.length){for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return"pre"+a;return"prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return a},t.compareIdentifiers=G;var V=/^[0-9]+$/;function G(e,t){var n=V.test(e),r=V.test(t);return n&&r&&(e=+e,t=+t),n&&!r?-1:r&&!n?1:et?1:0}function Q(e,t,n){return new J(e,n).compare(new J(t,n))}function K(e,t,n){return Q(e,t,n)>0}function X(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){var a;switch(t){case"===":"object"===_(e)&&(e=e.version),"object"===_(n)&&(n=n.version),a=e===n;break;case"!==":"object"===_(e)&&(e=e.version),"object"===_(n)&&(n=n.version),a=e!==n;break;case"":case"=":case"==":a=Z(e,n,r);break;case"!=":a=ee(e,n,r);break;case">":a=K(e,n,r);break;case">=":a=te(e,n,r);break;case"<":a=X(e,n,r);break;case"<=":a=ne(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return a}function ae(e,t){if(e instanceof ae){if(e.loose===t)return e;e=e.value}if(!(this instanceof ae))return new ae(e,t);n("comparator",e,t),this.loose=t,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return G(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,n){return Q(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=K,t.lt=X,t.eq=Z,t.neq=ee,t.gte=te,t.lte=ne,t.cmp=re,t.Comparator=ae;var ie={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof ae)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function oe(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,n,r,a,i,s,o,u,c,l,p,d){return((t=oe(n)?"":oe(r)?">="+n+".0.0":oe(a)?">="+n+"."+r+".0":">="+t)+" "+(o=oe(u)?"":oe(c)?"<"+(+u+1)+".0.0":oe(l)?"<"+u+"."+(+c+1)+".0":p?"<="+u+"."+c+"."+l+"-"+p:"<="+o)).trim()}function ce(e,t){for(var r=0;r0){var a=e[r].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function pe(e,t,n,r){var a,i,s,o,u;switch(e=new J(e,r),t=new se(t,r),n){case">":a=K,i=ne,s=X,o=">",u=">=";break;case"<":a=X,i=te,s=K,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,d=d||e,a(e.semver,p.semver,r)?p=e:s(e.semver,d.semver,r)&&(d=e)}),p.operator===o||p.operator===u)return!1;if((!d.operator||d.operator===o)&&i(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}ae.prototype.parse=function(e){var t=this.loose?i[I]:i[R],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new J(n[2],this.loose):this.semver=ie},ae.prototype.toString=function(){return this.value},ae.prototype.test=function(e){return n("Comparator.test",e,this.loose),this.semver===ie||("string"==typeof e&&(e=new J(e,this.loose)),re(e,this.operator,this.semver,this.loose))},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new se(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new se(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),a=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||a||i&&s||o||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),n("range",e,t);var r=t?i[W]:i[z];e=e.replace(r,ue),n("hyphen replace",e),e=e.replace(i[H],"$1$2$3"),n("comparator trim",e,i[H]),e=(e=(e=e.replace(i[F],"$1~")).replace(i[B],"$1^")).split(/\s+/).join(" ");var a=t?i[I]:i[R],s=e.split(" ").map(function(e){return function(e,t){return n("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){n("caret",e,t);var r=t?i[N]:i[O];return e.replace(r,function(t,r,a,i,s){var o;return n("caret",e,t,r,a,i,s),oe(r)?o="":oe(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":oe(i)?o="0"===r?">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":">="+r+"."+a+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),"-"!==s.charAt(0)&&(s="-"+s),o="0"===r?"0"===a?">="+r+"."+a+"."+i+s+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+s+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+s+" <"+(+r+1)+".0.0"):(n("no pr"),o="0"===r?"0"===a?">="+r+"."+a+"."+i+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+" <"+(+r+1)+".0.0"),n("caret return",o),o})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var r=t?i[Y]:i[P];return e.replace(r,function(t,r,a,i,s){var o;return n("tilde",e,t,r,a,i,s),oe(r)?o="":oe(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":oe(i)?o=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":s?(n("replaceTilde pr",s),"-"!==s.charAt(0)&&(s="-"+s),o=">="+r+"."+a+"."+i+s+" <"+r+"."+(+a+1)+".0"):o=">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0",n("tilde return",o),o})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var r=t?i[S]:i[T];return e.replace(r,function(t,r,a,i,s,o){n("xRange",e,t,r,a,i,s,o);var u=oe(a),c=u||oe(i),l=c||oe(s),p=l;return"="===r&&p&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&p?(c&&(i=0),l&&(s=0),">"===r?(r=">=",c?(a=+a+1,i=0,s=0):l&&(i=+i+1,s=0)):"<="===r&&(r="<",c?a=+a+1:i=+i+1),t=r+a+"."+i+"."+s):c?t=">="+a+".0.0 <"+(+a+1)+".0.0":l&&(t=">="+a+"."+i+".0 <"+a+"."+(+i+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(s=s.filter(function(e){return!!e.match(a)})),s=s.map(function(e){return new ae(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.loose));for(var t=0;t",n)},t.outside=pe,t.prerelease=function(e,t){var n=U(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)}}),vt=function(e,t){return Object.keys(e).reduce(function(n,r){return n.concat(Object.assign(x({},t,r),e[r]))},[])},bt=p(function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function Bt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function Ot(e){return this instanceof Ot?(this.v=e,this):new Ot(e)}var Nt=Object.freeze({__extends:function(e,t){function n(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Yt},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":_(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function o(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?a(e.value):new n(function(t){t(e.value)}).then(s,o)}u((r=r.apply(e,t||[])).next())})},__generator:function(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1||o(e,t)})})}function o(e,t){try{(n=a[e](t)).value instanceof Ot?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){o("next",e)}function c(e){o("throw",e)}function l(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:Ot(e[r](t)),done:"return"===r}:a?a(t):t}:a}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=jt(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,a,(t=e[n](t)).done,t.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),It=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(e){if(null===e||"object"!==_(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(function(e){return t.apiDescriptor.value(e)}).join(", "),"]");var n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(function(n){return"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))}).join(", ")," }")},pair:function(e){var n=e.key,r=e.value;return t.apiDescriptor.value(x({},n,r))}}});l(It);var Rt=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(It,t)});l(Rt);var Ht=/[|\\{}()[\]^$+*?.]/g,zt=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ht,"\\$&")},Wt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$t=p(function(e){var t={};for(var n in Wt)Wt.hasOwnProperty(n)&&(t[Wt[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=r[a].channels,s=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:i}),Object.defineProperty(r[a],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,s=Math.min(r,a,i),o=Math.max(r,a,i),u=o-s;return o===s?t=0:r===o?t=(a-i)/u:a===o?t=2+(i-r)/u:i===o&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+o)/2,[t,100*(o===s?0:n<=.5?u/(o+s):u/(2-o-s)),100*n]},r.rgb.hsv=function(e){var t,n,r=e[0],a=e[1],i=e[2],s=Math.min(r,a,i),o=Math.max(r,a,i),u=o-s;return n=0===o?0:u/o*1e3/10,o===s?t=0:r===o?t=(a-i)/u:a===o?t=2+(i-r)/u:i===o&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,o/255*1e3/10]},r.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[r.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,a,i,s=1/0;for(var o in Wt)if(Wt.hasOwnProperty(o)){var u=Wt[o],c=(a=e,i=u,Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],a=t[1],i=t[2];return a/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,a,i,s=e[0]/360,o=e[1]/100,u=e[2]/100;if(0===o)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+o):u+o-u*o),a=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c]=255*i;return a},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),100*((r+n)/2)]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,u,s];case 1:return[o,r,s];case 2:return[s,r,u];case 3:return[s,o,r];case 4:return[u,s,r];case 5:return[r,s,o]}},r.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,s=e[2]/100,o=Math.max(s,.01);return r=(2-i)*s,n=i*o,[a,100*(n=(n/=(t=(2-i)*o)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,a,i,s,o,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),a=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,s=a,o=c;break;case 1:i=a,s=n,o=c;break;case 2:i=c,s=n,o=a;break;case 3:i=c,s=a,o=n;break;case 4:i=a,s=c,o=n;break;case 5:i=n,s=c,o=a}return[255*i,255*s,255*o]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},r.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,s=e[2]/100;return n=-.9689*a+1.8758*i+.0415*s,r=.0557*a+-.204*i+1.057*s,t=(t=3.2406*a+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),s=Math.pow(t,3),o=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),s=Math.min(Math.min(n,r),a),o=i-s;return t=o<=0?0:i===n?(r-a)/o%6:i===r?2+(a-n)/o:4+(n-r)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?s/(1-o):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,i=[0,0,0],s=t%1*6,o=s%1,u=1-o;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-n)*r,[255*(n*i[0]+a),255*(n*i[1]+a),255*(n*i[2]+a)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),qt=Object.keys($t);function Ut(e){var t=function(){for(var e={},t=qt.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===_(n))for(var r=n.length,a=0;a1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var Qt,Kt=Gt,Xt=p(function(e){var t=function(e,t){return function(){var n=e.apply(Kt,arguments);return"[".concat(n+t,"m")}},n=function(e,t){return function(){var n=e.apply(Kt,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},r=function(e,t){return function(){var n=e.apply(Kt,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(var i=Object.keys(a),s=0;s=2,has16m:e>=3}}(function(e){if(!1===Qt)return 0;if(tn("color=16m")||tn("color=full")||tn("color=truecolor"))return 3;if(tn("color=256"))return 2;if(e&&!e.isTTY&&!0!==Qt)return 0;var t=Qt?1:0;if("win32"===Dt.platform){var n=nn.release().split(".");return Number(Dt.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in rn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in rn})||"codeship"===rn.CI_NAME?1:t;if("TEAMCITY_VERSION"in rn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rn.TEAMCITY_VERSION)?1:0;if("truecolor"===rn.COLORTERM)return 3;if("TERM_PROGRAM"in rn){var r=parseInt((rn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rn.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rn.TERM)?1:"COLORTERM"in rn?1:(rn.TERM,t)}(e))}tn("no-color")||tn("no-colors")||tn("color=false")?Qt=!1:(tn("color")||tn("colors")||tn("color=true")||tn("color=always"))&&(Qt=!0),"FORCE_COLOR"in rn&&(Qt=0===rn.FORCE_COLOR.length||0!==parseInt(rn.FORCE_COLOR,10));var sn={supportsColor:an,stdout:an(Dt.stdout),stderr:an(Dt.stderr)},on=p(function(e){var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function o(e,t){var n,i=[],o=t.trim().split(/\s*,\s*/g),u=!0,c=!1,l=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));i.push(n[2].replace(a,function(e,t,n){return t?s(t):n}))}else i.push(Number(h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return i}function u(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var a=t[1];if(t[2]){var i=o(a,t[2]);r.push([a].concat(i))}else r.push([a])}return r}function c(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var d,h=u.styles[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var f=d.value;n[f[0]]=u.inverse?null:f.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw p}}}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}for(var m=e,y=Object.keys(n),g=0;g0?m[D].apply(m,n[D]):m[D]}}return m}e.exports=function(e,n){var r=[],a=[],i=[];if(n.replace(t,function(t,n,o,l,p,d){if(n)i.push(s(n));else if(l){var h=i.join("");i=[],a.push(0===r.length?h:c(e,r)(h)),r.push({inverse:o,styles:u(l)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(c(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)}),a.push(i.join("")),r.length>0){var o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(o)}return a.join("")}}),un=p(function(e){var t=sn.stdout,n="win32"===Dt.platform&&!(Dt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),i=Object.create(null);function s(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return s(t,e),t.template=function(){var e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],a=1;a1)for(var a=1;at.length&&(e=t,t=n);var r=e.length,a=t.length;if(0===r)return a;if(0===a)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-a);)r--,a--;if(0===r)return a;for(var i,s,o,u,c=0;cs?u>s?s+1:u:u>o?o+1:u;return s},yn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=function(e,t,n){var r=n.descriptor,a=n.logger,i=n.schemas,s=["Ignored unknown option ".concat(un.default.yellow(r.pair({key:e,value:t})),".")],o=Object.keys(i).sort().find(function(t){return mn(e,t)<3});o&&s.push("Did you mean ".concat(un.default.blue(r.key(o)),"?")),a.warn(s.join(" "))}});l(yn);var gn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(yn,t)});l(gn);var Dn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(ln,t),Nt.__exportStar(dn,t),Nt.__exportStar(gn,t)});l(Dn);var _n=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){for(var r=new e(t),s=Object.create(r),o=0;o2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){var n=r("object"===_(e)&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===_(e)&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}});l(wn);var Cn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(e){var n;return v(this,t),(n=T(this,C(t).call(this,e)))._choices=wn.mapFromArray(e.choices.map(function(e){return e&&"object"===_(e)?e:{value:e}}),"value"),n}return w(t,_n.Schema),E(t,[{key:"expected",value:function(e){var t=this,n=e.descriptor,r=Array.from(this._choices.keys()).map(function(e){return t._choices.get(e)}).filter(function(e){return!e.deprecated}).map(function(e){return e.value}).sort(wn.comparePrimitive).map(n.value),a=r.slice(0,-2),i=r.slice(-2);return a.concat(i.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),t}();t.ChoiceSchema=n});l(Cn);var Mn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return v(this,t),T(this,C(t).apply(this,arguments))}return w(t,_n.Schema),E(t,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),t}();t.NumberSchema=n});l(Mn);var An=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return v(this,t),T(this,C(t).apply(this,arguments))}return w(t,Mn.NumberSchema),E(t,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,n){return!0===n.normalizeValidateResult(S(C(t.prototype),"validate",this).call(this,e,n),e)&&wn.isInt(e)}}]),t}();t.IntegerSchema=n});l(An);var kn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return v(this,t),T(this,C(t).apply(this,arguments))}return w(t,_n.Schema),E(t,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),t}();t.StringSchema=n});l(kn);var Tn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(vn,t),Nt.__exportStar(bn,t),Nt.__exportStar(En,t),Nt.__exportStar(xn,t),Nt.__exportStar(Cn,t),Nt.__exportStar(An,t),Nt.__exportStar(Mn,t),Nt.__exportStar(kn,t)});l(Tn);var Sn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=It.apiDescriptor,t.defaultUnknownHandler=yn.levenUnknownHandler,t.defaultInvalidHandler=dn.commonInvalidHandler,t.defaultDeprecatedHandler=cn.commonDeprecatedHandler});l(Sn);var Ln=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e,t,r){return new n(t,r).normalize(e)};var n=function(){function e(t,n){v(this,e);var r=n||{},a=r.logger,i=void 0===a?console:a,s=r.descriptor,o=void 0===s?Sn.defaultDescriptor:s,u=r.unknown,c=void 0===u?Sn.defaultUnknownHandler:u,l=r.invalid,p=void 0===l?Sn.defaultInvalidHandler:l,d=r.deprecated,h=void 0===d?Sn.defaultDeprecatedHandler:d;this._utils={descriptor:o,logger:i||{warn:function(){}},schemas:wn.recordFromArray(t,"name"),normalizeDefaultResult:wn.normalizeDefaultResult,normalizeDeprecatedResult:wn.normalizeDeprecatedResult,normalizeForwardResult:wn.normalizeForwardResult,normalizeRedirectResult:wn.normalizeRedirectResult,normalizeValidateResult:wn.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=p,this._deprecatedHandler=h,this.cleanHistory()}return E(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=wn.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,n={},r=[e],a=function(){for(;0!==r.length;){var e=r.shift(),a=t._applyNormalization(e,n);r.push.apply(r,P(a))}};a();for(var i=Object.keys(this._utils.schemas),s=0;s=8&&Number(e[0])>=10&&Number(e[2])>=10586?2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in n})||"codeship"===n.CI_NAME?1:0;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in n){var t=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)?1:"COLORTERM"in n?1:(n.TERM,0)}();"FORCE_COLOR"in n&&(r=0===parseInt(n.FORCE_COLOR,10)?0:r||1),e.exports=Dt&&(0!==(t=r)&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3})}),jn=p(function(e){var t=/(?:\\(u[a-f0-9]{4}|x[a-f0-9]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[0-9a-f]{4}|x[0-9a-f]{2}|.)|([^\\])/gi,i={n:"\n",r:"\r",t:"\t",b:"\b",f:"\f",v:"\v",0:"\0","\\":"\\",e:"",a:""};function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i[e]||e}function o(e,t){var n,i=[],o=t.trim().split(/\s*,\s*/g),u=!0,c=!1,l=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));i.push(n[2].replace(a,function(e,t,n){return t?s(t):n}))}else i.push(Number(h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return i}function u(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var a=t[1];if(t[2]){var i=o(a,t[2]);r.push([a].concat(i))}else r.push([a])}return r}function c(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var d,h=u.styles[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var f=d.value;n[f[0]]=u.inverse?null:f.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw p}}}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}for(var m=e,y=Object.keys(n),g=0;g0?m[D].apply(m,n[D]):m[D]}}return m}e.exports=function(e,n){var r=[],a=[],i=[];if(n.replace(t,function(t,n,o,l,p,d){if(n)i.push(s(n));else if(l){var h=i.join("");i=[],a.push(0===r.length?h:c(e,r)(h)),r.push({inverse:o,styles:u(l)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(c(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)}),a.push(i.join("")),r.length>0){var o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(o)}return a.join("")}}),Bn="win32"===Dt.platform&&!(Dt.env.TERM||"").toLowerCase().startsWith("xterm"),On=["ansi","ansi","ansi256","ansi16m"],Nn=new Set(["gray"]),In=Object.create(null);function Rn(e,t){t=t||{};var n=Yn?Yn.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Hn(e){if(!this||!(this instanceof Hn)||this.template){var t={};return Rn(t,e),t.template=function(){var e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],a=1;a1)for(var r=1;r2&&void 0!==arguments[2]?arguments[2]:{},r=n.logger,a=n.isCLI,i=void 0!==a&&a,s=n.passThrough,o=void 0!==s&&s,u=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:x({},e,t)}:function(e,t){return x({},e,t)}:Fn.levenUnknownHandler,c=i?nr:Fn.apiDescriptor,l=function(e,t){var n=t.isCLI,r=[];n&&r.push(Fn.AnySchema.create({name:"_"}));var a=!0,i=!1,s=void 0;try{for(var o,u=e[Symbol.iterator]();!(a=(o=u.next()).done);a=!0){var c=o.value;r.push(ir(c,{isCLI:n,optionInfos:e})),c.alias&&n&&r.push(Fn.AliasSchema.create({name:c.alias,sourceName:c.name}))}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}return r}(t,{isCLI:i}),p=new Fn.Normalizer(l,{logger:r,unknown:u,descriptor:c}),d=!1!==r;d&&tr&&(p._hasDeprecationWarned=tr);var h=p.normalize(e);return d&&(tr=p._hasDeprecationWarned),h}function ir(e,t){var n,r=t.isCLI,a=t.optionInfos,i={name:e.name},s={};switch(e.type){case"int":n=Fn.IntegerSchema,r&&(i.preprocess=function(e){return Number(e)});break;case"choice":n=Fn.ChoiceSchema,i.choices=e.choices.map(function(t){return"object"===_(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t});break;case"boolean":n=Fn.BooleanSchema;break;case"flag":n=rr,i.flags=a.map(function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])}).reduce(function(e,t){return e.concat(t)},[]);break;case"path":n=Fn.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=function(t,n,r){return e.exception(t)||n.validate(t,r)}:i.validate=function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(s.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(s.deprecated=!0),r&&!e.array){var o=i.preprocess||function(e){return e};i.preprocess=function(e,t,n){return t.preprocess(o(Array.isArray(e)?e[e.length-1]:e),n)}}return e.array?Fn.ArraySchema.create(Object.assign(r?{preprocess:function(e){return[].concat(e)}}:{},s,{valueSchema:n.create(i)})):n.create(Object.assign({},i,s))}var sr={normalizeApiOptions:function(e,t,n){return ar(e,t,n)},normalizeCliOptions:function(e,t,n){return ar(e,t,Object.assign({isCLI:!0},n))}},or=function(e){return e.length>0?e[e.length-1]:null},ur=function e(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},cr=function e(t){var n=t.nodes&&or(t.nodes);if(n&&t.source&&!t.source.end&&(t=n),t.__location)return t.__location.endOffset;var r=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(r,e(t.typeAnnotation)):t.loc&&!r?t.loc.end:r},lr=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});l(lr);var pr,dr=p(function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()}),hr=p(function(e){!function(){var t,n,r,a,i,s;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?a[e]:n.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()}),fr=p(function(e){!function(){var t=hr;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e){var n,r,a;if(0===e.length)return!1;if(a=e.charCodeAt(0),!t.isIdentifierStartES5(a))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(i=e.charCodeAt(n))&&i<=57343))return!1;a=1024*(a-55296)+(i-56320)+65536}if(!s(a))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:a,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return s(e)&&!a(e,t)},isIdentifierES6:function(e,t){return o(e)&&!i(e,t)}}}()}),mr=p(function(e,t){t.ast=dr,t.code=hr,t.keyword=fr}),yr=p(function(e){e.exports=function(e,t){t=t||Dt.argv;var n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),a=t.indexOf("--");return-1!==r&&(-1===a||r=2,has16m:e>=3}}(function(e){if(!1===pr)return 0;if(yr("color=16m")||yr("color=full")||yr("color=truecolor"))return 3;if(yr("color=256"))return 2;if(e&&!e.isTTY&&!0!==pr)return 0;var t=pr?1:0;if("win32"===Dt.platform){var n=nn.release().split(".");return Number(Dt.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in gr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in gr})||"codeship"===gr.CI_NAME?1:t;if("TEAMCITY_VERSION"in gr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gr.TEAMCITY_VERSION)?1:0;if("truecolor"===gr.COLORTERM)return 3;if("TERM_PROGRAM"in gr){var r=parseInt((gr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gr.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gr.TERM)?1:"COLORTERM"in gr?1:(gr.TERM,t)}(e))}yr("no-color")||yr("no-colors")||yr("color=false")?pr=!1:(yr("color")||yr("colors")||yr("color=true")||yr("color=always"))&&(pr=!0),"FORCE_COLOR"in gr&&(pr=0===gr.FORCE_COLOR.length||0!==parseInt(gr.FORCE_COLOR,10));var _r={supportsColor:Dr,stdout:Dr(Dt.stdout),stderr:Dr(Dt.stderr)},vr=p(function(e){var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function o(e,t){var n,i=[],o=t.trim().split(/\s*,\s*/g),u=!0,c=!1,l=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));i.push(n[2].replace(a,function(e,t,n){return t?s(t):n}))}else i.push(Number(h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return i}function u(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var a=t[1];if(t[2]){var i=o(a,t[2]);r.push([a].concat(i))}else r.push([a])}return r}function c(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var d,h=u.styles[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var f=d.value;n[f[0]]=u.inverse?null:f.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw p}}}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}for(var m=e,y=Object.keys(n),g=0;g0?m[D].apply(m,n[D]):m[D]}}return m}e.exports=function(e,n){var r=[],a=[],i=[];if(n.replace(t,function(t,n,o,l,p,d){if(n)i.push(s(n));else if(l){var h=i.join("");i=[],a.push(0===r.length?h:c(e,r)(h)),r.push({inverse:o,styles:u(l)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(c(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)}),a.push(i.join("")),r.length>0){var o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(o)}return a.join("")}}),br=p(function(e){var t=_r.stdout,n="win32"===Dt.platform&&!(Dt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),i=Object.create(null);function s(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return s(t,e),t.template=function(){var e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],a=1;a1)for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};if(c(t)){var a=l(t),i=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(a);return function(e,t){return t.replace(n().default,function(){for(var t=arguments.length,a=new Array(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;var s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Dt.emitWarning)Dt.emitWarning(s,"DeprecationWarning");else{var o=new Error(s);o.name="DeprecationWarning",console.warn(new Error(s))}}return n=Math.max(n,0),i(e,{start:{column:n,line:t}},a)};var r=!1;var a=/\r\n|[\n\r\u2028\u2029]/;function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(r.highlightCode||r.forceColor)&&(0,n().shouldHighlight)(r),s=(0,n().getChalk)(r),o=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=function(e,t){return i?e(t):t};i&&(e=(0,n().default)(e,r));var c=e.split(a),l=function(e,t,n){var r=Object.assign({column:0,line:-1},e.start),a=Object.assign({},r,e.end),i=n||{},s=i.linesAbove,o=void 0===s?2:s,u=i.linesBelow,c=void 0===u?3:u,l=r.line,p=r.column,d=a.line,h=a.column,f=Math.max(l-(o+1),0),m=Math.min(t.length,d+c);-1===l&&(f=0),-1===d&&(m=t.length);var y=d-l,g={};if(y)for(var D=0;D<=y;D++){var _=D+l;if(p)if(0===D){var v=t[_-1].length;g[_]=[p,v-p]}else if(D===y)g[_]=[0,h];else{var b=t[_-D].length;g[_]=[0,b]}else g[_]=!0}else g[l]=p===h?!p||[p,0]:[p,h-p];return{start:f,end:m,markerLines:g}}(t,c,r),p=l.start,d=l.end,h=l.markerLines,f=t.start&&"number"==typeof t.start.column,m=String(d).length,y=c.slice(p,d).map(function(e,t){var n=p+1+t,a=" ".concat(n).slice(-m),i=" ".concat(a," | "),s=h[n],c=!h[n+1];if(s){var l="";if(Array.isArray(s)){var d=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),f=s[1]||1;l=["\n ",u(o.gutter,i.replace(/\d/g," ")),d,u(o.marker,"^").repeat(f)].join(""),c&&r.message&&(l+=" "+u(o.message,r.message))}return[u(o.marker,">"),u(o.gutter,i),e,l].join("")}return" ".concat(u(o.gutter,i)).concat(e)}).join("\n");return r.message&&!f&&(y="".concat(" ".repeat(m+1)).concat(r.message,"\n").concat(y)),i?s.reset(y):y}});l(xr);var wr=Ve.ConfigError,Cr=ur,Mr=cr,Ar=Object.getOwnPropertyNames,kr=Object.getOwnPropertyDescriptor;function Tr(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,s=e.plugins[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var o=i.value;if(o.parsers){var u=!0,c=!1,l=void 0;try{for(var p,d=Ar(o.parsers)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;Object.defineProperty(t,h,kr(o.parsers,h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return t}function Sr(e,t){if(t=t||Tr(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Cr,locEnd:Mr};if("string"==typeof e.parser){if(t.hasOwnProperty(e.parser))return t[e.parser];throw new wr("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Lr={parse:function(e,t){var n=Tr(t),r=Object.keys(n).reduce(function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t].parse}})},{}),a=Sr(t,n);try{return a.preprocess&&(e=a.preprocess(e,t)),{text:e,ast:a.parse(e,r,t)}}catch(t){var i=t.loc;if(i){var s=xr;throw t.codeFrame=s.codeFrameColumns(e,i,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Sr},Fr=Ve.UndefinedParserError,Pr=Ft.getSupportInfo,Yr=Lr.resolveParser,jr={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Br(e,t){var n=V(e).split("/"),r=n[n.length-1].toLowerCase(),a=Pr(null,{plugins:t}).languages.find(function(t){return null!==t.since&&(t.extensions&&t.extensions.some(function(e){return r.endsWith(e)})||t.filenames&&t.filenames.find(function(e){return e.toLowerCase()===r})||-1===r.indexOf(".")&&t.interpreters&&-1!==t.interpreters.indexOf(function(e){if("string"!=typeof e)return"";var t;try{t=Ue.openSync(e,"r")}catch(e){return""}try{var n=new Je(t).next().toString("utf8"),r=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];var a=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return a?a[1]:""}catch(e){return""}finally{try{Ue.closeSync(t)}catch(e){}}}(e)))});return a&&a.parsers[0]}var Or=function(e,t){t=t||{};var n=Object.assign({},e),r=Pr(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=r.reduce(function(e,t){return void 0!==t.default?Object.assign(e,x({},t.name,t.default)):e},Object.assign({},jr));if(!n.parser)if(n.filepath){if(n.parser=Br(n.filepath,n.plugins),!n.parser)throw new Fr("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var i=Yr(sr.normalizeApiOptions(n,[r.find(function(e){return"parser"===e.name})],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;var s=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find(function(e){return e.printers&&e.printers[t]});if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=s.printers[n.astFormat];var o=r.filter(function(e){return e.pluginDefaults&&e.pluginDefaults[s.name]}).reduce(function(e,t){return Object.assign(e,x({},t.name,t.pluginDefaults[s.name]))},{}),u=Object.assign({},a,o);return Object.keys(u).forEach(function(e){null==n[e]&&(n[e]=u[e])}),"json"===n.parser&&(n.trailingComma="none"),sr.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(jr)},t))},Nr=function e(t,n,r){if(Array.isArray(t))return t.map(function(t){return e(t,n,r)}).filter(function(e){return e});if(!t||"object"!==_(t))return t;for(var a={},i=Object.keys(t),s=0;s0){for(var a=0;a<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}}),Qr=p(function(e){e.exports=function(e){return!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))}}),Kr=p(function(e){var t=/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;e.exports=function(e){if("string"!=typeof(e=e.replace(t," "))||0===e.length)return 0;e=function(e){return"string"==typeof e?e.replace(Gr(),""):e}(e);for(var n=0,r=0;r=127&&a<=159||(a>=768&&a<=879||(a>65535&&r++,n+=Qr(a)?2:1))}return n}}),Xr=/[^\x20-\x7F]/;function Zr(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function ea(e){return function(t,n,r){var a=r&&r.backwards;if(!1===n)return!1;for(var i=t.length,s=n;s>=0&&s"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){da[e]=t})});var fa={"==":!0,"!=":!0,"===":!0,"!==":!0},ma={"*":!0,"/":!0,"%":!0},ya={">>":!0,">>>":!0,"<<":!0};function ga(e,t,n){for(var r=0,a=n=n||0;a(n.match(s.regex)||[]).length?s.quote:i.quote);return o}function _a(e,t,n){var r='"'===t?"'":'"',a=e.replace(/\\([\s\S])|(['"])/g,function(e,a,i){return a===r?a:i===t?"\\"+i:i||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(a)?a:"\\"+a)});return t+a+t}function va(e){return e&&e.comments&&e.comments.length>0&&e.comments.some(function(e){return"prettier-ignore"===e.value.trim()})}function ba(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Ea,xa={replaceEndOfLineWith:function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var s,o=e.split("\n")[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;0!==n.length&&n.push(t),n.push(u)}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}return n},getStringWidth:function(e){return e?Xr.test(e)?Kr(e):e.length:0},getMaxContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(zt(t),")+"),"g"));return null===n?0:n.reduce(function(e,n){return Math.max(e,n.length/t.length)},0)},getMinNotPresentContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(zt(t),")+"),"g"));if(null===n)return 0;var r=new Map,a=0,i=!0,s=!1,o=void 0;try{for(var u,c=n[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value.length/t.length;r.set(l,!0),l>a&&(a=l)}}catch(e){s=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw o}}for(var p=1;p1?e[e.length-2]:null},getLast:or,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:la,getNextNonSpaceNonCommentCharacterIndex:pa,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(pa(e,t,n))},skip:ea,skipWhitespace:ta,skipSpaces:na,skipToLineEnd:ra,skipEverythingButNewLine:aa,skipInlineComment:ia,skipTrailingComment:sa,skipNewline:oa,isNextLineEmptyAfterIndex:ca,isNextLineEmpty:function(e,t,n){return ca(e,n(t))},isPreviousLineEmpty:function(e,t,n){var r=n(t)-1;return r=oa(e,r=na(e,r,{backwards:!0}),{backwards:!0}),(r=na(e,r,{backwards:!0}))!==oa(e,r,{backwards:!0})},hasNewline:ua,hasNewlineInRange:function(e,t,n){for(var r=t;r=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},Ca=function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},Ma=xa.getStringWidth,Aa=Ca,ka=Vr.concat,Ta=Vr.fill,Sa=Vr.cursor,La=1,Fa=2;function Pa(e,t){return ja(e,{type:"indent"},t)}function Ya(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?ja(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):ja(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function ja(e,t,n){var r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t),a="",i=0,s=0,o=0,u=!0,c=!1,l=void 0;try{for(var p,d=r[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;switch(h.type){case"indent":y(),n.useTabs?f(1):m(n.tabWidth);break;case"stringAlign":y(),a+=h.n,i+=h.n.length;break;case"numberAlign":s+=1,o+=h.n;break;default:throw new Error("Unexpected type '".concat(h.type,"'"))}}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return g(),Object.assign({},e,{value:a,length:i,queue:r});function f(e){a+="\t".repeat(e),i+=n.tabWidth*e}function m(e){a+=" ".repeat(e),i+=e}function y(){n.useTabs?function(){s>0&&f(s);D()}():g()}function g(){o>0&&m(o),D()}function D(){s=0,o=0}}function Ba(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){var n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Oa(e,t,n,r,a){for(var i=t.length,s=[e],o=[];n>=0;)if(0!==s.length){var u=s.pop(),c=u[0],l=u[1],p=u[2];if("string"==typeof p)o.push(p),n-=Ma(p);else switch(p.type){case"concat":for(var d=p.parts.length-1;d>=0;d--)s.push([c,l,p.parts[d]]);break;case"indent":s.push([Pa(c,r),l,p.contents]);break;case"align":s.push([Ya(c,p.n,r),l,p.contents]);break;case"trim":n+=Ba(o);break;case"group":if(a&&p.break)return!1;s.push([c,p.break?La:l,p.contents]),p.id&&(Ea[p.id]=s[s.length-1][1]);break;case"fill":for(var h=p.parts.length-1;h>=0;h--)s.push([c,l,p.parts[h]]);break;case"if-break":var f=p.groupId?Ea[p.groupId]:l;f===La&&p.breakContents&&s.push([c,l,p.breakContents]),f===Fa&&p.flatContents&&s.push([c,l,p.flatContents]);break;case"line":switch(l){case Fa:if(!p.hard){p.soft||(o.push(" "),n-=1);break}return!0;case La:return!0}}}else{if(0===i)return!0;s.push(t[i-1]),i--}return!1}var Na={};function Ia(e,t,n,r){for(var a=[e];0!==a.length;){var i=a.pop();if(i!==Na){var s=!0;if(t&&!1===t(i)&&(s=!1),n&&(a.push(i),a.push(Na)),s)if("concat"===i.type||"fill"===i.type)for(var o=i.parts.length-1;o>=0;--o)a.push(i.parts[o]);else if("if-break"===i.type)i.flatContents&&a.push(i.flatContents),i.breakContents&&a.push(i.breakContents);else if("group"===i.type&&i.expandedStates)if(r)for(var u=i.expandedStates.length-1;u>=0;--u)a.push(i.expandedStates[u]);else a.push(i.contents);else i.contents&&a.push(i.contents)}else n(a.pop())}}function Ra(e,t){if("concat"===e.type||"fill"===e.type){var n=e.parts.map(function(e){return Ra(e,t)});return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){var r=e.breakContents&&Ra(e.breakContents,t),a=e.flatContents&&Ra(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:a}))}if(e.contents){var i=Ra(e.contents,t);return t(Object.assign({},e,{contents:i}))}return t(e)}function Ha(e,t,n){var r=n,a=!1;return Ia(e,function(e){var n=t(e);if(void 0!==n&&(a=!0,r=n),a)return!1}),r}function za(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Wa(e){return!("group"!==e.type||!e.break)||(!("line"!==e.type||!e.hard)||("break-parent"===e.type||void 0))}function $a(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function qa(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Ua(e){if("concat"===e.type){for(var t=[],n=0;n=0;h--)i.push([l,p,d.parts[h]]);break;case"indent":i.push([Pa(l,t),p,d.contents]);break;case"align":i.push([Ya(l,d.n,t),p,d.contents]);break;case"trim":a-=Ba(s);break;case"group":switch(p){case Fa:if(!o){i.push([l,d.break?La:Fa,d.contents]);break}case La:o=!1;var f=[l,Fa,d.contents],m=n-a;if(!d.break&&Oa(f,i,m,t))i.push(f);else if(d.expandedStates){var y=d.expandedStates[d.expandedStates.length-1];if(d.break){i.push([l,La,y]);break}for(var g=1;g=d.expandedStates.length){i.push([l,La,y]);break}var D=d.expandedStates[g],_=[l,Fa,D];if(Oa(_,i,m,t)){i.push(_);break}}}else i.push([l,La,d.contents])}d.id&&(Ea[d.id]=i[i.length-1][1]);break;case"fill":var v=n-a,b=d.parts;if(0===b.length)break;var E=b[0],x=[l,Fa,E],w=[l,La,E],C=Oa(x,[],v,t,!0);if(1===b.length){C?i.push(x):i.push(w);break}var M=b[1],A=[l,Fa,M],k=[l,La,M];if(2===b.length){C?(i.push(A),i.push(x)):(i.push(k),i.push(w));break}b.splice(0,2);var T=[l,p,Ta(b)],S=b[0];Oa([l,Fa,ka([E,M,S])],[],v,t,!0)?(i.push(T),i.push(A),i.push(x)):C?(i.push(T),i.push(k),i.push(x)):(i.push(T),i.push(k),i.push(w));break;case"if-break":var L=d.groupId?Ea[d.groupId]:p;L===La&&d.breakContents&&i.push([l,p,d.breakContents]),L===Fa&&d.flatContents&&i.push([l,p,d.flatContents]);break;case"line-suffix":u.push([l,p,d.contents]);break;case"line-suffix-boundary":u.length>0&&i.push([l,p,{type:"line",hard:!0}]);break;case"line":switch(p){case Fa:if(!d.hard){d.soft||(s.push(" "),a+=1);break}o=!0;case La:if(u.length){i.push([l,p,d]),[].push.apply(i,u.reverse()),u=[];break}d.literal?l.root?(s.push(r,l.root.value),a=l.root.length):(s.push(r),a=0):(a-=Ba(s),s.push(r+l.value),a=l.length)}}}var F=s.indexOf(Sa.placeholder);if(-1!==F){var P=s.indexOf(Sa.placeholder,F+1),Y=s.slice(0,F).join(""),j=s.slice(F+1,P).join("");return{formatted:Y+j+s.slice(P+1).join(""),cursorNodeStart:Y.length,cursorNodeText:j}}return{formatted:s.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ha(e,Wa,!1)},isLineNext:function(e){return Ha(e,za,!1)},traverseDoc:Ia,findInDoc:Ha,mapDoc:Ra,propagateBreaks:function(e){var t=new Set,n=[];Ia(e,function(e){if("break-parent"===e.type&&$a(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}},function(e){"group"===e.type&&n.pop().break&&$a(n)},!0)},removeLines:function(e){return Ra(e,qa)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){var n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:function(e){return Ja(Ua(e))}}},Ga=Va.utils.mapDoc,Qa={getMaxContinuousCount:xa.getMaxContinuousCount,getStringWidth:xa.getStringWidth,getAlignmentSize:xa.getAlignmentSize,getIndentSize:xa.getIndentSize,skip:xa.skip,skipWhitespace:xa.skipWhitespace,skipSpaces:xa.skipSpaces,skipNewline:xa.skipNewline,skipToLineEnd:xa.skipToLineEnd,skipEverythingButNewLine:xa.skipEverythingButNewLine,skipInlineComment:xa.skipInlineComment,skipTrailingComment:xa.skipTrailingComment,hasNewline:xa.hasNewline,hasNewlineInRange:xa.hasNewlineInRange,hasSpaces:xa.hasSpaces,isNextLineEmpty:function(e,t,n){return xa.isNextLineEmpty(e,t,n.locEnd)},isNextLineEmptyAfterIndex:xa.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,n){return xa.isPreviousLineEmpty(e,t,n.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,n){return xa.getNextNonSpaceNonCommentCharacterIndex(e,t,n.locEnd)},mapDoc:Ga,makeString:xa.makeString,addLeadingComment:xa.addLeadingComment,addDanglingComment:xa.addDanglingComment,addTrailingComment:xa.addTrailingComment},Ka=Rr&&Ir||Rr,Xa=Va.builders,Za=Xa.concat,ei=Xa.hardline,ti=Xa.breakParent,ni=Xa.indent,ri=Xa.lineSuffix,ai=Xa.join,ii=Xa.cursor,si=xa.hasNewline,oi=xa.skipNewline,ui=xa.isPreviousLineEmpty,ci=Qa.addLeadingComment,li=Qa.addDanglingComment,pi=Qa.addTrailingComment,di=Symbol("child-nodes");function hi(e,t,n){if(e){var r,a=t.printer,i=t.locStart,s=t.locEnd;if(n){if(e&&a.canAttachComment&&a.canAttachComment(e)){var o;for(o=n.length-1;o>=0&&!(i(n[o])<=i(e)&&s(n[o])<=s(e));--o);return void n.splice(o+1,0,e)}}else if(e[di])return e[di];if(a.getCommentChildNodes?r=a.getCommentChildNodes(e):e&&"object"===_(e)&&(r=Object.keys(e).filter(function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e}).map(function(t){return e[t]})),r)return n||Object.defineProperty(e,di,{value:n=[],enumerable:!1}),r.forEach(function(e){hi(e,t,n)}),n}}function fi(e,t,n){var r=e.length;if(0!==r){var a,i=e[0],s=i.precedingNode,o=i.followingNode,u=n.locStart(o);for(a=r;a>0;--a){var c=e[a-1];Ka.strictEqual(c.precedingNode,s),Ka.strictEqual(c.followingNode,o);var l=t.slice(n.locEnd(c),u).trim();if(""!==l&&!/^\(+$/.test(l))break;u=n.locStart(c)}e.forEach(function(e,t){t=0)return void pi(t,o)}!function e(t,n,r){for(var a,i,s=r.locStart,o=r.locEnd,u=hi(t,r),c=0,l=u.length;c>1,d=u[p];if(s(d)-s(n)<=0&&o(n)-o(d)<=0)return n.enclosingNode=d,void e(d,n,r);if(o(d)-s(n)<=0)a=d,c=p+1;else{if(!(o(n)-s(d)<=0))throw new Error("Comment location overlaps with node location");i=d,l=p}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){var h=n.enclosingNode.quasis,f=yi(h,n,r);a&&yi(h,a,r)!==f&&(a=null),i&&yi(h,i,r)!==f&&(i=null)}a&&(n.precedingNode=a),i&&(n.followingNode=i)}(t,o,r);var c=o.precedingNode,l=o.enclosingNode,p=o.followingNode,d=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:function(){return!1},h=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:function(){return!1},f=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:function(){return!1},m=e.length-1===u;if(si(n,i(o),{backwards:!0}))d(o,n,r,t,m)||(p?ci(p,o):c?pi(c,o):li(l||t,o));else if(si(n,s(o)))h(o,n,r,t,m)||(c?pi(c,o):p?ci(p,o):li(l||t,o));else if(f(o,n,r,t,m));else if(c&&p){var y=a.length;y>0&&a[y-1].followingNode!==o.followingNode&&fi(a,n,r),a.push(o)}else c?pi(c,o):p?ci(p,o):li(l||t,o)}),fi(a,n,r),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}},printComments:function(e,t,n,r){var a=e.getValue(),i=t(e),s=a&&a.comments;if(!s||0===s.length)return Di(e,n,i);var o=[],u=[r?";":"",i];return e.each(function(e){var t=e.getValue(),r=t.leading,a=t.trailing;if(r){var i=function(e,t,n){var r=e.getValue(),a=mi(e,n);if(!a)return"";var i=n.printer.isBlockComment&&n.printer.isBlockComment(r);return Za(i?[a,si(n.originalText,n.locEnd(r))?ei:" "]:[a,ei])}(e,0,n);if(!i)return;o.push(i);var s=n.originalText;si(s,oi(s,n.locEnd(t)))&&o.push(ei)}else a&&u.push(function(e,t,n){var r=e.getValue(),a=mi(e,n);if(!a)return"";var i=n.printer.isBlockComment&&n.printer.isBlockComment(r),s=e.getNode(1),o=e.getNode(2),u=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===s;if(si(n.originalText,n.locStart(r),{backwards:!0})){var c=ui(n.originalText,r,n.locStart);return ri(Za([ei,c?ei:"",a]))}return Za(i||u?[" ",a]:[ri(Za([" ",a])),i?"":ti])}(e,0,n))},"comments"),Di(e,n,Za(o.concat(u)))},printDanglingComments:function(e,t,n,r){var a=[],i=e.getValue();return i&&i.comments?(e.each(function(e){var n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||a.push(mi(e,t))},"comments"),0===a.length?"":n?ai(ei,a):ni(Za([ei,ai(ei,a)]))):""},getSortedChildNodes:hi};function vi(e){Ka.ok(this instanceof vi),this.stack=[e]}function bi(e,t){var n=Ei(e.stack,t);return-1===n?null:e.stack[n]}function Ei(e,t){for(var n=e.length-1;n>=0;n-=2){var r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}vi.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},vi.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},vi.prototype.getNode=function(e){return bi(this,~~e)},vi.prototype.getParentNode=function(e){return bi(this,1+~~e)},vi.prototype.call=function(e){for(var t=this.stack,n=t.length,r=t[n-1],a=arguments.length,i=1;i2&&void 0!==arguments[2]?arguments[2]:0,r=t.printer;r.preprocess&&(e=r.preprocess(e,t));var a=new Map;var i=function e(n,i){var s,o=n.getValue(),u=o&&"object"===_(o)&&void 0===i;return u&&a.has(o)?a.get(o):(s=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?Pi(n,t,e,i):_i.printComments(n,function(n){return Pi(n,t,e,i)},t,i&&i.needsSemi),u&&a.set(o,s),s)}(new xi(e));return n>0&&(i=Si(ki([Ti,i]),n,t.tabWidth)),Li.propagateBreaks(i),i}function Pi(e,t,n,r){Ka.ok(e instanceof xi);var a=e.getValue(),i=t.printer;if(i.hasPrettierIgnore&&i.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(a),t.locEnd(a));if(a)try{var s=Ci.printSubtree(e,n,t,Fi);if(s)return s}catch(e){if(c.PRETTIER_DEBUG)throw e}return i.print(e,t,n,r)}var Yi=Fi;function ji(e,t,n,r,a){r=r||function(){return!0},a=a||[];var i=n.locStart(e,n.locStart),s=n.locEnd(e,n.locEnd);if(i<=t&&t<=s){var o=!0,u=!1,c=void 0;try{for(var l,p=_i.getSortedChildNodes(e,n)[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var d=ji(l.value,t,n,r,[e].concat(a));if(d)return d}}catch(e){u=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw c}}if(r(e))return{node:e,parentNodes:a}}}function Bi(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var Oi={calculateRange:function(e,t,n){var r,a=e.slice(t.rangeStart,t.rangeEnd),i=Math.max(t.rangeStart+a.search(/\S/),t.rangeStart);for(r=t.rangeEnd;r>t.rangeStart&&!e[r-1].match(/\S/);--r);var s=ji(n,i,t,function(e){return Bi(t,e)}),o=ji(n,r,t,function(e){return Bi(t,e)});if(!s||!o)return{rangeStart:0,rangeEnd:0};var u=function(e,t,n){var r=e.node,a=t.node;if(r===a)return{startNode:r,endNode:a};var i=!0,s=!1,o=void 0;try{for(var u,c=t.parentNodes[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;if(!("Program"!==l.type&&"File"!==l.type&&n.locStart(l)>=n.locStart(e.node)))break;a=l}}catch(e){s=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw o}}var p=!0,d=!1,h=void 0;try{for(var f,m=e.parentNodes[Symbol.iterator]();!(p=(f=m.next()).done);p=!0){var y=f.value;if(!("Program"!==y.type&&"File"!==y.type&&n.locEnd(y)<=n.locEnd(t.node)))break;r=y}}catch(e){d=!0,h=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw h}}return{startNode:r,endNode:a}}(s,o,t),c=u.startNode,l=u.endNode;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:ji},Ni=Or,Ii=wa,Ri=Ca,Hi=Va.utils.mapDoc,zi=Va.printer.printDocToString,Wi=Va.debug.printDocToDebug,$i=65279,qi=Symbol("cursor"),Ui={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Ji(e,t,n){var r=t.comments;return r&&(delete t.comments,_i.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimRight(),r}function Vi(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;var r=Lr.parse(e,t),a=r.ast;if(e=r.text,t.cursorOffset>=0){var i=Oi.findNodeAtOffset(a,t.cursorOffset,t);i&&i.node&&(t.cursorNode=i.node)}var s=Ji(e,a,t),o=Yi(a,t,n),u=Ri(t.endOfLine),c=zi("lf"===t.endOfLine?o:Hi(o,function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,u):e}),t);if(function(e){if(e){for(var t=0;t0){var l=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(l)),c.formatted=l+Ri(t.endOfLine)}if(t.cursorOffset>=0){var p,d,h,f,m;if(t.cursorNode&&c.cursorNodeText?(p=t.locStart(t.cursorNode),d=e.slice(p,t.locEnd(t.cursorNode)),h=t.cursorOffset-p,f=c.cursorNodeStart,m=c.cursorNodeText):(p=0,d=e,h=t.cursorOffset,f=0,m=c.formatted),d===m)return{formatted:c.formatted,cursorOffset:f+h};var y=d.split("");y.splice(h,0,qi);var g=m.split(""),D=q.diffArrays(y,g),_=f,v=!0,b=!1,E=void 0;try{for(var x,w=D[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var C=x.value;if(C.removed){if(C.value.indexOf(qi)>-1)break}else _+=C.count}}catch(e){b=!0,E=e}finally{try{v||null==w.return||w.return()}finally{if(b)throw E}}return{formatted:c.formatted,cursorOffset:_}}return{formatted:c.formatted}}function Gi(e,t){var n=Lr.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Ii(e));var a=t.cursorOffset>=0,i=t.rangeStart>0,s=t.rangeEnd=0;u--){var c=o[u];e=e.slice(0,t[c])+Ui[c]+e.slice(t[c])}e=e.replace(/\r\n?/g,"\n");for(var l=function(n){var r=o[n];e=e.replace(Ui[r],function(e,n){return t[r]=n,""})},p=0;pe.length&&(t.rangeEnd=e.length);var h=i||s?function(e,t){var n=Lr.parse(e,t),r=n.ast;e=n.text;var a,i=Oi.calculateRange(e,t,r),s=i.rangeStart,o=i.rangeEnd,u=e.slice(s,o),c=Math.min(s,e.lastIndexOf("\n",s)+1),l=e.slice(c,s),p=xa.getAlignmentSize(l,t.tabWidth),d=Vi(u,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=s&&t.cursorOffset=o?y=t.cursorOffset-o+(s+h.length):void 0!==d.cursorOffset&&(y=d.cursorOffset+s),"lf"===t.endOfLine)a=f+h+m;else{var g=Ri(t.endOfLine);if(y>=0){for(var D=[f,h,m],_=0,v=y;_t.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),fs=p(function(e,t){var n,r;function a(){return n=(e=hs)&&e.__esModule?e:{default:e};var e}function i(){return r=nn}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(u);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(u);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function(e){var t=e.comments,s=void 0===t?"":t,o=e.pragmas,u=void 0===o?{}:o,c=(0,(n||a()).default)(s)||(r||i()).EOL,l=Object.keys(u),p=l.map(function(e){return m(e,u[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+c}).join("");if(!s){if(0===l.length)return"";if(1===l.length&&!Array.isArray(u[l[0]])){var d=u[l[0]];return"".concat("/**"," ").concat(m(l[0],d)[0]).concat(" */")}}var h=s.split(c).map(function(e){return"".concat(" *"," ").concat(e)}).join(c)+c;return"/**"+c+(s?h:"")+(s&&l.length?" *"+c:"")+p+" */"};var s=/\*\/$/,o=/^\/\*\*/,u=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,d=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,h=/(\r?\n|^) *\* ?/g;function f(e){var t=(0,(n||a()).default)(e)||(r||i()).EOL;e=e.replace(o,"").replace(s,"").replace(h,"$1");for(var u="";u!==e;)u=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();for(var f,m=Object.create(null),y=e.replace(d,"").replace(l,"").trimRight();f=d.exec(e);){var g=f[2].replace(c,"");"string"==typeof m[f[1]]||Array.isArray(m[f[1]])?m[f[1]]=[].concat(m[f[1]],g):m[f[1]]=g}return{comments:y,pragmas:m}}function m(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});l(fs);var ms={hasPragma:function(e){var t=Object.keys(fs.parse(fs.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},insertPragma:function(e){var t=fs.parseWithComments(fs.extract(e)),n=Object.assign({format:""},t.pragmas),r=fs.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),a=fs.strip(e);return r+(a.startsWith("\n")?"\n":"\n\n")+a}},ys={"---":"yaml","+++":"toml"},gs=function(e){var t=Object.keys(ys).map(zt).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};var r=n[0].replace(/\n$/,""),a=n[1],i=n[2];return{frontMatter:{type:ys[a],value:i,raw:r},content:n[0].replace(/[^\n]/g," ")+e.slice(n[0].length)}},Ds=["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"];function _s(e,t){for(var n,r=[].concat(t),a=-1;n=e.getParentNode(++a);)if(-1!==r.indexOf(n.type))return a;return-1}function vs(e,t){var n=_s(e,t);return-1===n?null:e.getParentNode(n)}function bs(e){return"value-operator"===e.type&&"*"===e.value}function Es(e){return"value-operator"===e.type&&"/"===e.value}function xs(e){return"value-operator"===e.type&&"+"===e.value}function ws(e){return"value-operator"===e.type&&"-"===e.value}function Cs(e){return"value-operator"===e.type&&"%"===e.value}function Ms(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function As(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&Ms(e.groups[0])}var ks=vs,Ts=function(e){var t=vs(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},Ss=function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Ls=function(e,t){var n=vs(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},Fs=function(e){var t=vs(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},Ps=function(e,t){var n=[].concat(t),r=vs(e,"css-atrule");return r&&-1!==n.indexOf(r.name.toLowerCase())},Ys=function(e){var t=e.getValue(),n=vs(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},js=function(e,t){var n=vs(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},Bs=function(e){return-1!==as.indexOf(e.toLowerCase())},Os=function(e){return-1!==["initial","inherit","unset","revert"].indexOf(e.toLowerCase())},Ns=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},Is=function(e,t){var n=e.getParentNode();if(!n)return!1;var r=n.nodes;return r&&r.indexOf(t)===r.length-1},Rs=function(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},Hs=function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},zs=function(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},Ws=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},$s=bs,qs=Es,Us=xs,Js=ws,Vs=function(e){return bs(e)||Es(e)||xs(e)||ws(e)||Cs(e)},Gs=function(e){return"value-word"===e.type&&"in"===e.value},Qs=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},Ks=function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},Xs=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},Zs=function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},eo=function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},to=function(e){return e.raws&&""===e.raws.before},no=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},ro=function(e){return e.name.startsWith("prettier-placeholder")},ao=function(e){return e.prop.startsWith("@prettier-placeholder")},io=function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},so=Ms,oo=function(e){var t=e.getValue();if(0===t.groups.length)return!1;var n=e.getParentNode(1);if(!(As(t)||n&&As(n)))return!1;var r=vs(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!As(n)||"value-func"===n.type},uo=function(e){return"value-comment"===e.type&&e.inline},co=function(e){return"value-word"===e.type&&"#"===e.value},lo=function(e){return"value-word"===e.type&&"{"===e.value},po=function(e){return"value-word"===e.type&&"}"===e.value},ho=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},fo=function(e){return"value-colon"===e.type},mo=function(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},yo=function(e){return"value-func"===e.type&&-1!==Ds.indexOf(e.value.toLowerCase())},go=function(e){var t=gs(e),n=t.frontMatter,r=t.content;return(n?n.raw+"\n\n":"")+ms.insertPragma(r)},Do=xa.printNumber,_o=xa.printString,vo=xa.hasIgnoreComment,bo=xa.hasNewline,Eo=Qa.isNextLineEmpty,xo=Va.builders,wo=xo.concat,Co=xo.join,Mo=xo.line,Ao=xo.hardline,ko=xo.softline,To=xo.group,So=xo.fill,Lo=xo.indent,Fo=xo.dedent,Po=xo.ifBreak,Yo=Va.utils.removeLines,jo=ks,Bo=Ts,Oo=Ss,No=Ls,Io=Fs,Ro=Ps,Ho=Ys,zo=js,Wo=Bs,$o=Os,qo=Ns,Uo=Is,Jo=Rs,Vo=Hs,Go=zs,Qo=Ws,Ko=$s,Xo=qs,Zo=Us,eu=Js,tu=Vs,nu=Gs,ru=Qs,au=Ks,iu=Xs,su=Zs,ou=eo,uu=to,cu=so,lu=no,pu=ro,du=ao,hu=io,fu=oo,mu=uo,yu=co,gu=lo,Du=po,_u=ho,vu=fo,bu=mo,Eu=yo;function xu(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function wu(e,t,n){var r=e.getValue(),a=[],i=0;return e.map(function(e){var s=r.nodes[i-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){var o=e.getValue();a.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else a.push(e.call(n));i!==r.nodes.length-1&&("css-comment"===r.nodes[i+1].type&&!bo(t.originalText,t.locStart(r.nodes[i+1]),{backwards:!0})&&"yaml"!==r.nodes[i].type&&"toml"!==r.nodes[i].type||"css-atrule"===r.nodes[i+1].type&&"else"===r.nodes[i+1].name&&"css-comment"!==r.nodes[i].type?a.push(" "):(a.push(Ao),Eo(t.originalText,e.getValue(),t)&&"yaml"!==r.nodes[i].type&&"toml"!==r.nodes[i].type&&a.push(Ao))),i++},"nodes"),wo(a)}var Cu=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Mu=RegExp(Cu.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Au(e,t){return e.replace(Cu,function(e){return _o(e,t)})}function ku(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Tu(e){return e.replace(Mu,function(e,t,n,r,a){return!n&&r?(n||"")+Su(r)+Oo(a||""):e})}function Su(e){return Do(e).replace(/\.0(?=$|e)/,"")}var Lu={print:function(e,t,n){var r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"yaml":case"toml":return wo([r.raw,Ao]);case"css-root":var a=wu(e,t,n);return a.parts.length?wo([a,Ao]):a;case"css-comment":if(r.raws.content)return r.raws.content;var i=t.originalText.slice(t.locStart(r),t.locEnd(r)),s=r.raws.text||r.text;return-1===i.indexOf(s)?r.raws.inline?wo(["// ",s]):wo(["/* ",s," */"]):i;case"css-rule":return wo([e.call(n,"selector"),r.important?" !important":"",r.nodes?wo([" {",r.nodes.length>0?Lo(wo([Ao,wu(e,t,n)])):"",Ao,"}",Vo(r)?";":""]):";"]);case"css-decl":var o=e.getParentNode();return wo([r.raws.before.replace(/[\s;]/g,""),Io(e)?r.prop:Oo(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",su(r)?Yo(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?wo([" {",Lo(wo([ko,wu(e,t,n)])),ko,"}"]):du(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"]);case"css-atrule":var u=e.getParentNode();return wo(["@",lu(r)||r.name.endsWith(":")?r.name:Oo(r.name),r.params?wo([lu(r)?"":pu(r)&&/^\s*\n/.test(r.raws.afterName)?/^\s*\n\s*\n/.test(r.raws.afterName)?wo([Ao,Ao]):Ao:" ",e.call(n,"params")]):"",r.selector?Lo(wo([" ",e.call(n,"selector")])):"",r.value?To(wo([" ",e.call(n,"value"),Jo(r)?ou(r)?" ":Mo:""])):"else"===r.name?" ":"",r.nodes?wo([Jo(r)?"":" ","{",Lo(wo([r.nodes.length>0?ko:"",wu(e,t,n)])),ko,"}"]):pu(r)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"]);case"media-query-list":var c=[];return e.each(function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||c.push(e.call(n))},"nodes"),To(Lo(Co(Mo,c)));case"media-query":return wo([Co(" ",e.map(n,"nodes")),Uo(e,r)?"":","]);case"media-type":return Tu(Au(r.value,t));case"media-feature-expression":return r.nodes?wo(["(",wo(e.map(n,"nodes")),")"]):r.value;case"media-feature":return Oo(Au(r.value.replace(/ +/g," "),t));case"media-colon":return wo([r.value," "]);case"media-value":return Tu(Au(r.value,t));case"media-keyword":return Au(r.value,t);case"media-url":return Au(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return To(wo([Ro(e,"custom-selector")?wo([jo(e,"css-atrule").customSelector,Mo]):"",Co(wo([",",Ro(e,["extend","custom-selector","nest"])?Mo:Ao]),e.map(n,"nodes"))]));case"selector-selector":return To(Lo(wo(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return Au(r.value,t);case"selector-tag":var l=e.getParentNode(),p=l&&l.nodes.indexOf(r),d=p&&l.nodes[p-1];return wo([r.namespace?wo([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===d.type?r.value:Tu(Wo(r.value)||zo(e,r.value)?r.value.toLowerCase():r.value)]);case"selector-id":return wo(["#",r.value]);case"selector-class":return wo([".",Tu(Au(r.value,t))]);case"selector-attribute":return wo(["[",r.namespace?wo([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?ku(Au(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){var h=e.getParentNode(),f="selector-selector"===h.type&&h.nodes[0]===r?"":Mo;return wo([f,r.value,Uo(e,r)?"":" "])}var m=r.value.trim().startsWith("(")?Mo:"",y=Tu(Au(r.value.trim(),t))||Mo;return wo([m,y]);case"selector-universal":return wo([r.namespace?wo([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return wo([Oo(r.value),r.nodes&&r.nodes.length>0?wo(["(",Co(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":var g=jo(e,"css-rule");return g&&g.isSCSSNesterProperty?Tu(Au(Oo(r.value),t)):r.value;case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return wo([r.inline?"//":"/*",r.value,r.inline?"":"*/"]);case"value-comma_group":for(var D=e.getParentNode(),_=e.getParentNode(1),v=Bo(e),b=v&&"value-value"===D.type&&("grid"===v||v.startsWith("grid-template")),E=jo(e,"css-atrule"),x=E&&Jo(E),w=e.map(n,"groups"),C=[],M=No(e,"url"),A=!1,k=!1,T=0;T0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return wo([r.open?e.call(n,"open"):"",Co(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){for(var z=e.map(n,"groups"),W=[],$=0;$0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):"",cc(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?Zu(['"""',tc,ec(tc,r.value.replace(/"""/g,"\\$&").split("\n")),tc,'"""']):Zu(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Zu(["$",e.call(n,"name")]);case"ListValue":return ac(Zu(["[",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.map(n,"values"))])),rc,"]"]));case"ObjectValue":return ac(Zu(["{",t.bracketSpacing&&r.fields.length>0?" ":"",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.map(n,"fields"))])),rc,sc("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Zu([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Zu(["@",e.call(n,"name"),r.arguments.length>0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Zu([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Zu([" = ",e.call(n,"defaultValue")]):"",cc(e,n,r)]);case"TypeExtensionDefinition":return Zu(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Zu([" implements ",ec(pc(t.originalText.substr(t.locStart(r),t.locEnd(r))),e.map(n,"interfaces"))]):"",cc(e,n,r),r.fields.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"fields"))])),tc,"}"]):""]);case"FieldDefinition":return Zu([e.call(n,"description"),r.description?tc:"",e.call(n,"name"),r.arguments.length>0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):"",": ",e.call(n,"type"),cc(e,n,r)]);case"DirectiveDefinition":return Zu([e.call(n,"description"),r.description?tc:"","directive ","@",e.call(n,"name"),r.arguments.length>0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):"",Zu([" on ",ec(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),cc(e,n,r),r.values.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"values"))])),tc,"}"]):""]);case"EnumValueDefinition":return Zu([e.call(n,"description"),r.description?tc:"",e.call(n,"name"),cc(e,n,r)]);case"InputValueDefinition":return Zu([e.call(n,"description"),r.description?r.description.block?tc:nc:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Zu([" = ",e.call(n,"defaultValue")]):"",cc(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),cc(e,n,r),r.fields.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"fields"))])),tc,"}"]):""]);case"SchemaDefinition":return Zu(["schema",cc(e,n,r)," {",r.operationTypes.length>0?ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"operationTypes"))])):"",tc,"}"]);case"OperationTypeDefinition":return Zu([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),cc(e,n,r),r.fields.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"fields"))])),tc,"}"]):""]);case"FragmentSpread":return Zu(["...",e.call(n,"name"),cc(e,n,r)]);case"InlineFragment":return Zu(["...",r.typeCondition?Zu([" on ",e.call(n,"typeCondition")]):"",cc(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return ac(Zu([e.call(n,"description"),r.description?tc:"",ac(Zu(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),cc(e,n,r),r.types.length>0?Zu([" =",sc(""," "),ic(Zu([sc(Zu([nc," "])),ec(Zu([nc,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),cc(e,n,r)]);case"NonNullType":return Zu([e.call(n,"type"),"!"]);case"ListType":return Zu(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:oc,insertPragma:Ku,printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},hc={bracketSpacing:Fu.bracketSpacing},fc=[".graphql",".gql"],mc={name:"GraphQL",type:"data",extensions:fc,tmScope:"source.graphql",aceMode:"text",languageId:139},yc=Object.freeze({name:"GraphQL",type:"data",extensions:fc,tmScope:"source.graphql",aceMode:"text",languageId:139,default:mc}),gc={languages:[Yu(yc&&mc||yc,{override:{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}})],options:hc,printers:{graphql:dc}},Dc=Va.builders,_c=Dc.concat,vc=Dc.join,bc=Dc.softline,Ec=Dc.hardline,xc=Dc.line,wc=Dc.group,Cc=Dc.indent,Mc=Dc.ifBreak,Ac=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function kc(e,t){return e.call(t,"path")}function Tc(e,t){var n=e.getValue(),r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Sc(e,t){var n=[];return n.push(kc(e,t)),n=n.concat(Tc(e,t)),Cc(wc(vc(xc,n)))}function Lc(e){var t=e.getValue();return t.program&&t.program.blockParams.length?_c([" as |",t.program.blockParams.join(" "),"|"]):""}function Fc(e,t){return wc(_c(["{{#",Sc(e,t),Lc(e),bc,"}}"]))}function Pc(e,t){return _c(["{{/",e.call(t,"path"),"}}"])}var Yc={print:function(e,t,n){var r=e.getValue();if(!r)return"";switch(r.type){case"Program":return wc(vc(bc,e.map(n,"body").filter(function(e){return""!==e})));case"ElementNode":var a=r.tag[0],i=-1!==r.tag.indexOf("."),s=a.toUpperCase()===a||i,o=r.children.length>0,u=s&&!o||-1!==Ac.indexOf(r.tag),c=u?_c([" />",bc]):">",l=u?"/>":">";return _c([wc(_c(["<",r.tag,function(e,t){return Cc(_c([r.attributes.length?xc:"",vc(xc,e.map(t,"attributes")),r.modifiers.length?xc:"",vc(xc,e.map(t,"modifiers")),r.comments.length?xc:"",vc(xc,e.map(t,"comments"))]))}(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Mc(bc,""),Mc(l,c)])),wc(_c([Cc(vc(bc,[""].concat(e.map(n,"children")))),Mc(o?Ec:"",""),u?"":_c([""])]))]);case"BlockStatement":var p=e.getParentNode(1),d=p&&p.inverse&&1===p.inverse.body.length&&p.inverse.body[0]===r&&"if"===p.inverse.body[0].path.parts[0],h=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],f=h?function(e){return e}:Cc;if(r.inverse)return _c([d?_c(["{{else ",Sc(e,n),"}}"]):Fc(e,n),Cc(_c([Ec,e.call(n,"program")])),r.inverse&&!h?_c([Ec,"{{else}}"]):"",r.inverse?f(_c([Ec,e.call(n,"inverse")])):"",d?"":_c([Ec,Pc(e,n)])]);if(d)return _c([_c(["{{else ",Sc(e,n),"}}"]),Cc(_c([Ec,e.call(n,"program")]))]);var m=r.params.length>0||r.hash.pairs.length>0,y=r.program.body.length>0;return _c([Fc(e,n),wc(_c([Cc(_c([bc,e.call(n,"program")])),m&&y?Ec:bc,Pc(e,n)]))]);case"ElementModifierStatement":case"MustacheStatement":var g=e.getParentNode(1),D=g&&"ConcatStatement"===g.type;return wc(_c([!1===r.escaped?"{{{":"{{",Sc(e,n),D?"":bc,!1===r.escaped?"}}}":"}}"]));case"SubExpression":var _=Tc(e,n),v=_.length>0?Cc(_c([xc,wc(vc(xc,_))])):"";return wc(_c(["(",kc(e,n),v,bc,")"]));case"AttrNode":var b="TextNode"===r.value.type;if(b&&r.value.loc.start.column===r.value.loc.end.column)return _c([r.name]);var E=b?'"':"";return _c([r.name,"=",E,e.call(n,"value"),E]);case"ConcatStatement":return _c(['"',wc(Cc(vc(bc,e.map(function(e){return n(e)},"parts").filter(function(e){return""!==e})))),'"']);case"Hash":return _c([vc(xc,e.map(n,"pairs"))]);case"HashPair":return _c([r.key,"=",e.call(n,"value")]);case"TextNode":var x="",w="";if(e.stack.indexOf("attributes")>=0){var C=e.getParentNode(0);if("ConcatStatement"===C.type){var M=C.parts,A=M.indexOf(r);A>0&&"MustacheStatement"===M[A-1].type&&(x=" "),A-1?"--":"";return _c(["{{!",k,r.value,k,"}}"]);case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return _c(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return function(e,t){var n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},a=t.singleQuote?r:n,i=a===r?n:r,s=!1;if(e.includes(a.quote)||e.includes(i.quote)){var o=(e.match(a.regex)||[]).length,u=(e.match(i.regex)||[]).length;s=o>u}var c=s?i:a,l=e.replace(c.regex,"\\".concat(c.quote));return"".concat(c.quote).concat(l).concat(c.quote)}(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,"TextNode"===e.type){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},jc=["hbs","htmlbars"],Bc=[".handlebars",".hbs"],Oc={name:"Handlebars",type:"markup",group:"HTML",aliases:jc,extensions:Bc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},Nc=Object.freeze({name:"Handlebars",type:"markup",group:"HTML",aliases:jc,extensions:Bc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:Oc}),Ic={languages:[Yu(Nc&&Oc||Nc,{override:{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}})],printers:{glimmer:Yc}},Rc=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],Hc=["title"],zc=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],Wc=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],$c=["autoplay","controls","crossorigin","loop","muted","preload","src"],qc=["href","target"],Uc=["color","face","size"],Jc=["dir"],Vc=["cite"],Gc=["alink","background","bgcolor","link","text","vlink"],Qc=["clear"],Kc=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Xc=["height","width"],Zc=["align"],el=["align","char","charoff","span","valign","width"],tl=["align","char","charoff","span","valign","width"],nl=["value"],rl=["cite","datetime"],al=["open"],il=["title"],sl=["open"],ol=["compact"],ul=["align"],cl=["compact"],ll=["height","src","type","width"],pl=["disabled","form","name"],dl=["color","face","size"],hl=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],fl=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],ml=["cols","rows"],yl=["align"],gl=["align"],Dl=["align"],_l=["align"],vl=["align"],bl=["align"],El=["profile"],xl=["align","noshade","size","width"],wl=["manifest","version"],Cl=["align","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],Ml=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Al=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],kl=["cite","datetime"],Tl=["prompt"],Sl=["accesskey","for","form"],Ll=["accesskey","align"],Fl=["type","value"],Pl=["as","charset","color","crossorigin","href","hreflang","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Yl=["name"],jl=["compact"],Bl=["charset","content","http-equiv","name","scheme"],Ol=["high","low","max","min","optimum","value"],Nl=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Il=["compact","reversed","start","type"],Rl=["disabled","label"],Hl=["disabled","label","selected","value"],zl=["for","form","name"],Wl=["align"],$l=["name","type","value","valuetype"],ql=["width"],Ul=["max","value"],Jl=["cite"],Vl=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Gl=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Ql=["name"],Kl=["media","sizes","src","srcset","type"],Xl=["media","nonce","title","type"],Zl=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],ep=["align","char","charoff","valign"],tp=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],np=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],rp=["align","char","charoff","valign"],ap=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],ip=["align","char","charoff","valign"],sp=["datetime"],op=["align","bgcolor","char","charoff","valign"],up=["default","kind","label","src","srclang"],cp=["compact","type"],lp=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],pp={a:Rc,abbr:Hc,applet:zc,area:Wc,audio:$c,base:qc,basefont:Uc,bdo:Jc,blockquote:Vc,body:Gc,br:Qc,button:Kc,canvas:Xc,caption:Zc,col:el,colgroup:tl,data:nl,del:rl,details:al,dfn:il,dialog:sl,dir:ol,div:ul,dl:cl,embed:ll,fieldset:pl,font:dl,form:hl,frame:fl,frameset:ml,h1:yl,h2:gl,h3:Dl,h4:_l,h5:vl,h6:bl,head:El,hr:xl,html:wl,iframe:Cl,img:Ml,input:Al,ins:kl,isindex:Tl,label:Sl,legend:Ll,li:Fl,link:Pl,map:Yl,menu:jl,meta:Bl,meter:Ol,object:Nl,ol:Il,optgroup:Rl,option:Hl,output:zl,p:Wl,param:$l,pre:ql,progress:Ul,q:Jl,script:Vl,select:Gl,slot:Ql,source:Kl,style:Xl,table:Zl,tbody:ep,td:tp,textarea:np,tfoot:rp,th:ap,thead:ip,time:sp,tr:op,track:up,ul:cp,video:lp,"*":["accesskey","autocapitalize","class","contenteditable","dir","draggable","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"]},dp=Object.freeze({a:Rc,abbr:Hc,applet:zc,area:Wc,audio:$c,base:qc,basefont:Uc,bdo:Jc,blockquote:Vc,body:Gc,br:Qc,button:Kc,canvas:Xc,caption:Zc,col:el,colgroup:tl,data:nl,del:rl,details:al,dfn:il,dialog:sl,dir:ol,div:ul,dl:cl,embed:ll,fieldset:pl,font:dl,form:hl,frame:fl,frameset:ml,h1:yl,h2:gl,h3:Dl,h4:_l,h5:vl,h6:bl,head:El,hr:xl,html:wl,iframe:Cl,img:Ml,input:Al,ins:kl,isindex:Tl,label:Sl,legend:Ll,li:Fl,link:Pl,map:Yl,menu:jl,meta:Bl,meter:Ol,object:Nl,ol:Il,optgroup:Rl,option:Hl,output:zl,p:Wl,param:$l,pre:ql,progress:Ul,q:Jl,script:Vl,select:Gl,slot:Ql,source:Kl,style:Xl,table:Zl,tbody:ep,td:tp,textarea:np,tfoot:rp,th:ap,thead:ip,time:sp,tr:op,track:up,ul:cp,video:lp,default:pp}),hp=dp&&pp||dp,fp={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"none",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},mp="inline",yp={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},gp="normal";function Dp(e){var t=Object.create(null),n=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){t[i.value]=!0}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return t}function _p(e,t){return!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||(!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||("ieConditionalComment"===e.type&&!e.complete||("vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!Fp(e)||!e.children.some(function(e){return"text"!==e.type&&"interpolation"!==e.type})))))}function vp(e){return"attribute"!==e.type&&!bp(e)&&(!!e.parent&&("number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])))}function bp(e){return"text"===e.type||"comment"===e.type}function Ep(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function xp(e){return"yaml"===e.type||"toml"===e.type}function wp(e){return Pp(e).startsWith("pre")}function Cp(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Mp(e){return Sp(e)||"element"===e.type&&"br"===e.fullName||Ap(e)}function Ap(e){return kp(e)&&Tp(e)}function kp(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Sp(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function Lp(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Fp(e){return Pp(e).startsWith("pre")}function Pp(e){return"element"===e.type&&!e.namespace&&yp[e.name]||gp}Dp(as),function(e,t){for(var n=Object.create(null),r=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=0,r=e.stack.length-1;r>=0;r--){var a=e.stack[r];a&&"object"===_(a)&&!Array.isArray(a)&&t(a)&&n++}return n},Op=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=1/0,n=!0,r=!1,a=void 0;try{for(var i,s=e.split("\n")[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var o=i.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var u=o.match(/^\s*/)[0].length;o.length!==u&&u")})},function(e,t){if("html"===t.parser)return e;var n=/\{\{([\s\S]+?)\}\}/g;return e.map(function(e){if(!ed(e))return e;var t=[],r=!0,a=!1,i=void 0;try{for(var s,o=e.children[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;if("text"===u.type)for(var c=u.sourceSpan.constructor,l=u.sourceSpan.start,p=null,d=u.value.split(n),h=0;h$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})})},function(e){return e.map(function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:nd(e)}):e.clone({children:e.children.map(function(e){return Object.assign({},e,{isLeadingSpaceSensitive:ad(e),isTrailingSpaceSensitive:id(e)})}).map(function(e,t,n){return Object.assign({},e,{isLeadingSpaceSensitive:0===t?e.isLeadingSpaceSensitive:n[t-1].isTrailingSpaceSensitive&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:t===n.length-1?e.isTrailingSpaceSensitive:n[t+1].isLeadingSpaceSensitive&&e.isTrailingSpaceSensitive})})}):e})},function(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map(function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var r=[],a=0;a")+i.firstChild.value+"")+o.value,sourceSpan:new u(s.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:c,hasTrailingSpaces:l}))}else r.push(i)}return e.clone({children:r})}}return e})}],ud=function(e,t){for(var n=0;n|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},fd=function(e,t){var n=function(e){var t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,n=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(n){var r={};r.for=n[3].trim();var a=n[1].trim().replace(/^\(|\)$/g,""),i=a.match(t);return i?(r.alias=a.replace(t,""),r.iterator1=i[1].trim(),i[2]&&(r.iterator2=i[2].trim())):r.alias=a,{left:"".concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(",")),operator:n[2],right:r.for}}}(e),r=n.left,a=n.operator,i=n.right;return pd([dd(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",a," ",t(i,{parser:"__js_expression"})])},md=function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})},yd=p(function(e){var t,n;t=c,n=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function a(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var i,s,o,u,c,l=e.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,D=[];;){if(a(d),g>=l)return D;i=a(h),s=[],","===i.slice(-1)?(i=i.replace(f,""),v()):_()}function _(){for(a(p),o="",u="in descriptor";;){if(c=e.charAt(g),"in descriptor"===u)if(r(c))o&&(s.push(o),o="",u="after descriptor");else{if(","===c)return g+=1,o&&s.push(o),void v();if("("===c)o+=c,u="in parens";else{if(""===c)return o&&s.push(o),void v();o+=c}}else if("in parens"===u)if(")"===c)o+=c,u="in descriptor";else{if(""===c)return s.push(o),void v();o+=c}else if("after descriptor"===u)if(r(c));else{if(""===c)return void v();u="in descriptor",g-=1}g+=1}}function v(){var t,r,a,o,u,c,l,p,d,h=!1,f={};for(o=0;o\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function wh(e){switch(Ka(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function Ch(e,t){if(Ka(!e.isSelfClosing),Zd(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}var Ah={preprocess:ud,print:function(e,t,n){var r,a=e.getValue();switch(a.type){case"root":return xd.concat([Sd(uh(e,t,n)),Ld]);case"element":case"ieConditionalComment":var i=1===a.children.length&&"interpolation"===a.firstChild.type&&a.firstChild.isLeadingSpaceSensitive&&!a.firstChild.hasLeadingSpaces&&a.lastChild.isTrailingSpaceSensitive&&!a.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return oh([Sd(oh([Sd(ch(e,t,n),{id:s}),0===a.children.length?a.hasDanglingSpaces&&a.isDanglingSpaceSensitive?jd:"":oh([Wd(a)?Ad:"",(r=oh([i?Fd(Nd,"",{groupId:s}):a.firstChild.hasLeadingSpaces&&a.firstChild.isLeadingSpaceSensitive?jd:"text"===a.firstChild.type&&a.isWhitespaceSensitive&&a.isIndentationSensitive?kd(Nd):Nd,uh(e,t,n)]),i?Fd(Pd(r),r,{groupId:s}):Gd(a)&&"root"===a.parent.type&&"vue"===t.parser?r:Pd(r)),(a.next?gh(a.next):Dh(a.parent))?a.lastChild.hasTrailingSpaces&&a.lastChild.isTrailingSpaceSensitive?" ":"":i?Fd(Nd,"",{groupId:s}):a.lastChild.hasTrailingSpaces&&a.lastChild.isTrailingSpaceSensitive?jd:("comment"===a.lastChild.type||"text"===a.lastChild.type&&a.isWhitespaceSensitive&&a.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Rd(e,function(e){return e.parent&&"root"!==e.parent.type}),"}$")).test(a.lastChild.value)?"":Nd])])),dh(a,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return oh([lh(a),fh(a)]);case"interpolation":return oh([lh(a,t),oh(e.map(n,"children")),fh(a,t)]);case"text":if("interpolation"===a.parent.type){var o=/\n[^\S\n]*?$/,u=o.test(a.value),c=u?a.value.replace(o,""):a.value;return oh([oh(nh(c,Bd)),u?Ld:""])}return Td(Kd([].concat(vh(a,t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?nh(t,Bd):nh(Hd(t.replace(/^\s*?\n|\n\s*?$/g,"")),Ld):Yd(jd,t.split(/[\t\n\f\r ]+/)).parts}(a),Eh(a,t))));case"docType":return oh([Sd(oh([lh(a,t)," ",a.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),fh(a,t)]);case"comment":return oh([vh(a,t),oh(nh(t.originalText.slice(t.locStart(a),t.locEnd(a)),Bd)),Eh(a,t)]);case"attribute":if(null===a.value)return a.rawName;var l=th(a.value),p=Id(l,"'")0)||n&&"Decorator"===n.type)&&(e.decorators&&0!==e.decorators.length?Rh(e.decorators[e.decorators.length-1],r):Ih(e,r),!0)}function Vh(e,t,n,r,a){return t&&n&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==xa.getNextNonSpaceNonCommentCharacter(e,n,a.locEnd)?(Rh(n,r),!0):!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type)&&(Rh(n,r),!0)}function Gh(e,t,n,r,a,i){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Rh(t,a),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&("ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"FunctionDeclaration"===n.type||"ObjectMethod"===n.type||"ClassMethod"===n.type)&&")"===xa.getNextNonSpaceNonCommentCharacter(e,a,i.locEnd))return Rh(t,a),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){var s=function(){if(0!==n.params.length)return xa.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(xa.getLast(n.params)));var t=xa.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(n.id));return xa.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(i.locStart(a)>s)return zh(r,a),!0}return!1}function Qh(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(Ih(e,t),!0)}function Kh(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Hh(t,n):Ih(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(r?Hh(e,n):Ih(e,n),!0)}var Xh={handleOwnLineComment:function(e,t,n,r,a){var i=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(Gh(t,i,s,o,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(Ih(e,n),!0)}(s,o,e)||$h(t,i,s,o,e,n)||qh(t,i,s,o,e,n)||Uh(s,i,o,e)||Jh(s,0,o,e)||Qh(s,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(Ih(e,n),!0)}(s,0,e)||function(e,t,n,r){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type)&&(Rh(e,r),!0)}(i,s,0,e)||Kh(s,r,e,a)||function(e,t,n,r,a){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&xa.hasNewline(e,a.locEnd(r)))&&(Rh(n,r),!0)}(t,s,i,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(Ih(e,t),!0)}(s,e)||Vh(t,s,i,e,n))},handleEndOfLineComment:function(e,t,n,r,a){var i=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(Gh(t,i,s,o,e,n)||function(e,t,n,r,a,i){var s=t&&!xa.hasNewlineInRange(a,i.locEnd(t),i.locStart(r));return!(t&&s||!e||"ConditionalExpression"!==e.type||!n)&&(Ih(n,r),!0)}(s,i,o,e,t,n)||Qh(s,e)||$h(t,i,s,o,e,n)||qh(t,i,s,o,e,n)||Uh(s,i,o,e)||Jh(s,0,o,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type)&&(Ih(e,t),!0)}(s,e)||function(e,t,n){return!!(t&&"CallExpression"===t.type&&e&&t.callee===e&&t.arguments.length>0)&&(Ih(t.arguments[0],n),!0)}(i,s,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(Ih(e,t),!0)}(s,e)||Kh(s,r,e,a)||function(e,t,n){return!(!e||"TypeAlias"!==e.type)&&(Ih(e,n),!0)}(s,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type)&&(Ih(t,n),!0)}(s,o,e))},handleRemainingComment:function(e,t,n,r,a){var i=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!($h(t,i,s,o,e,n)||qh(t,i,s,o,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(Rh(e.value.left,n),!0)}(s,i,e)||function(e,t,n,r){return")"===xa.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)&&(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(Hh(t.value,n),!0):(Hh(t,n),!0))}(t,s,e,n)||Vh(t,s,i,e,n)||Kh(s,r,e,a)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var a=Qa.getNextNonSpaceNonCommentCharacterIndex(e,n,r);return"=>"===e.substr(a,2)&&(Hh(t,n),!0)}(t,s,e,n)||function(e,t,n,r,a){return"("===xa.getNextNonSpaceNonCommentCharacter(e,r,a.locEnd)&&(!(!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(Rh(n,r),!0))}(t,s,i,e,n)||function(e,t,n,r,a){return!(!t||"TSMappedType"!==t.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(Ih(r.name,a),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(Rh(n.constraint,a),!0))}(0,s,i,o,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(Rh(e,t),!0)}(s,e))},hasLeadingComment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(function(e){return e.leading&&t(e)})},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},Zh=Xh.isBlockComment,ef=Xh.hasLeadingComment,tf=Va.builders,nf=tf.indent,rf=tf.join,af=tf.hardline,sf=tf.softline,of=tf.literalline,uf=tf.concat,cf=tf.group,lf=tf.dedentToRoot,pf=Va.utils,df=pf.mapDoc,hf=pf.stripTrailingHardline;function ff(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function mf(e,t){return df(e,function(e){if(!e.parts)return e;var n=[];return e.parts.forEach(function(e){"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):ff(e)):n.push(e)}),Object.assign({},e,{parts:n})})}function yf(e){var t=[],n=!1;return e.map(function(e){return e.trim()}).forEach(function(e,r,a){""!==e&&(""===a[r-1]&&n?t.push(uf([af,e])):t.push(e),n=!0)}),0===t.length?null:rf(af,t)}function gf(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(function(e){return"jsx"===e.name.name})||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function Df(e){return wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function _f(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return bf(n.object)||Ef(n);case"CallExpression":return bf(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(bf(n.callee.object.object)||Ef(n.callee.object))||"CallExpression"===n.callee.object.type&&bf(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function vf(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function bf(e){return"Identifier"===e.type&&"styled"===e.name}function Ef(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function xf(e,t){return ef(e,function(e){return Zh(e)&&e.value===" ".concat(t," ")})}function wf(e,t){var n=e.stack.slice(),r=null,a=n.pop(),i=!0,s=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;if(void 0===a)return!1;if("number"==typeof r&&(r=n.pop(),a=n.pop()),!l(a,r))return!1;r=n.pop(),a=n.pop()}}catch(e){s=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw o}}return!0}var Cf=0,Mf=function(e,t,n,r){var a,i=e.getValue(),s=e.getParentNode(),o=e.getParentNode(1);switch(i.type){case"TemplateLiteral":if([gf,_f,vf,Df].some(function(t){return t(e)})){var u=i.quasis.map(function(e){return e.value.raw}),c=0,l=u.reduce(function(e,t,n){return 0==n?t:e+"@prettier-placeholder-"+c+++"-id"+t},"");return function(e,t,n){var r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";var a=r.expressions?t.map(n,"expressions"):[],i=function(e,t){if(!t||!t.length)return e;var n=t.slice(),r=0,a=df(e,function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,a=t.indexOf("@"),i=a+1;if(a>-1&&"string"==typeof t[i]&&t[i].startsWith("prettier-placeholder")){var s=t[a],o=t[i],u=t.slice(i+1);t=t.slice(0,a).concat([s+o]).concat(u)}var c=t.findIndex(function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")});if(c>-1){var l=t[c],p=t.slice(c+1),d=l.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),h=d[1],f=d[2],m=n[h];r++,t=t.slice(0,c).concat(["${",m,"}"+f]).concat(p)}return Object.assign({},e,{parts:t})});return n.length===r?a:null}(e,a);if(!i)throw new Error("Couldn't insert all the expressions");return uf(["`",nf(uf([af,hf(i)])),sf,"`"])}(n(l,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),n=e.getParentNode();return xf(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){var p=i.expressions?e.map(t,"expressions"):[],d=i.quasis.length;if(1===d&&""===i.quasis[0].value.raw.trim())return"``";for(var h=[],f=0;f2&&""===D[0].trim()&&""===D[1].trim(),E=_>2&&""===D[_-1].trim()&&""===D[_-2].trim(),x=D.every(function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)});if(!y&&/#[^\r\n]*$/.test(D[_-1]))return null;var w=null;(w=x?yf(D):hf(n(g,{parser:"graphql"})))?(w=mf(w,!1),!m&&b&&h.push(""),h.push(w),!y&&E&&h.push("")):m||y||!b||h.push(""),v&&h.push(uf(["${",v,"}"]))}return uf(["`",nf(uf([af,rf(af,h)])),af,"`"])}var C=function(e){return xf(e.getValue(),"HTML")||wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function(e){return wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(C)return function(e,t,n,r,a){var i=e.getValue(),s=Cf;Cf=Cf+1>>>0;var o=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS")},u=i.quasis.map(function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+o(t)}).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";var l=RegExp(o("(\\d+)"),"g"),p=df(hf(n(u,{parser:r})),function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(l),r=0;rh||(("||"===l||"??"===l)&&"&&"===d||(p===h&&"right"===r?(Ka.strictEqual(n.right,a),!0):p===h&&!xa.shouldFlatten(l,d)||(p1?"(":"",qf($f([",",Uf]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(function(e){return qf($f([",",Uf]),e.map(n,"params"))},"program","body",0):void 0},Gf=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[]});default:return e}},Qf=xa.getParentExportDeclaration,Kf=xa.isExportDeclaration,Xf=xa.shouldFlatten,Zf=xa.getNextNonSpaceNonCommentCharacter,em=xa.hasNewline,tm=xa.hasNewlineInRange,nm=xa.getLast,rm=xa.getStringWidth,am=xa.printString,im=xa.printNumber,sm=xa.hasIgnoreComment,om=xa.skipWhitespace,um=xa.hasNodeIgnoreComment,cm=xa.getPenultimate,lm=xa.startsWithNoLookaheadToken,pm=xa.getIndentSize,dm=xa.matchAncestorTypes,hm=xa.getPreferredQuote,fm=Qa.isNextLineEmpty,mm=Qa.isNextLineEmptyAfterIndex,ym=Qa.getNextNonSpaceNonCommentCharacterIndex,gm=mr.keyword.isIdentifierNameES5,Dm=ms.insertPragma,_m=Vf,vm=Jf,bm=Sf,Em=Lf,xm=Ff,wm=Pf,Cm=jf,Mm=Yf,Am=new WeakMap,km=Va.builders,Tm=km.concat,Sm=km.join,Lm=km.line,Fm=km.hardline,Pm=km.softline,Ym=km.literalline,jm=km.group,Bm=km.indent,Om=km.align,Nm=km.conditionalGroup,Im=km.fill,Rm=km.ifBreak,Hm=km.breakParent,zm=km.lineSuffixBoundary,Wm=km.addAlignmentToDoc,$m=km.dedent,qm=Va.utils,Um=qm.willBreak,Jm=qm.isLineNext,Vm=qm.isEmpty,Gm=qm.removeLines,Qm=Va.printer.printDocToString,Km=0;function Xm(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function Zm(e,t){return tm(t.originalText,t.locStart(e.decorators[0]),t.locEnd(nm(e.decorators)))||em(t.originalText,t.locEnd(nm(e.decorators)))}function ey(e,t,n){var r=e.getValue();return jm(Tm([Sm(Lm,e.map(n,"decorators")),Zm(r,t)?Fm:Lm]))}function ty(e,t,n,r){var a,i,s=e.getValue(),o=s[r.testNodePropertyName],u=s[r.consequentNodePropertyName],c=s[r.alternateNodePropertyName],l=[],p=!1,d=e.getParentNode(),h=d.type===r.conditionalNodeType,f=0;do{i=a||s,a=e.getParentNode(f),f++}while(a&&a.type===r.conditionalNodeType);var m=a||d,y=i;if(r.shouldCheckJsx&&(Ty(o)||Ty(u)||Ty(c)||function(e){return Boolean(function(e){var t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(Ty))}(y))){p=!0,h=!0;var g=function(e){return Tm([Rm("(",""),Bm(Tm([Pm,e])),Pm,Rm(")","")])},D=function(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value};l.push(" ? ",D(u)?e.call(n,r.consequentNodePropertyName):g(e.call(n,r.consequentNodePropertyName))," : ",c.type===r.conditionalNodeType||D(c)?e.call(n,r.alternateNodePropertyName):g(e.call(n,r.alternateNodePropertyName)))}else{var _=Tm([Lm,"? ",u.type===r.conditionalNodeType?Rm("","("):"",Om(2,e.call(n,r.consequentNodePropertyName)),u.type===r.conditionalNodeType?Rm("",")"):"",Lm,": ",c.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):Om(2,e.call(n,r.alternateNodePropertyName))]);l.push(d.type!==r.conditionalNodeType||d[r.alternateNodePropertyName]===s?_:t.useTabs?$m(Bm(_)):Om(Math.max(0,t.tabWidth-2),_))}var v,b,E=!(p||"MemberExpression"!==d.type&&"OptionalMemberExpression"!==d.type||d.computed);return v=Tm([].concat((b=Tm(r.beforeParts()),d.type===r.conditionalNodeType&&d[r.alternateNodePropertyName]===s?Om(2,b):b),h?Tm(l):Bm(Tm(l)),r.afterParts(E))),r.breakNested?d===m?jm(v):v:jm(v)}function ny(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t}function ry(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function ay(e,t,n){var r=[],a=e.getNode(),i="ClassBody"===a.type;return e.map(function(e,s){var o=e.getValue();if(o&&"EmptyStatement"!==o.type){var u=n(e),c=t.originalText,l=[];if(t.semi||i||fg(t,e)||!function(e,t){if("ExpressionStatement"!==e.getNode().type)return!1;return e.call(function(e){return function e(t,n){var r=t.getValue();var a=zf(t,n)||"ParenthesizedExpression"===r.type||"TypeCastExpression"===r.type||"ArrowFunctionExpression"===r.type&&!my(t,n)||"ArrayExpression"===r.type||"ArrayPattern"===r.type||"UnaryExpression"===r.type&&r.prefix&&("+"===r.operator||"-"===r.operator)||"TemplateLiteral"===r.type||"TemplateElement"===r.type||Ty(r)||"BindExpression"===r.type&&!r.object||"RegExpLiteral"===r.type||"Literal"===r.type&&r.pattern||"Literal"===r.type&&r.regex;if(a)return!0;if(!xm(r))return!1;return t.call.apply(t,[function(t){return e(t,n)}].concat(Em(t,r)))}(e,t)},"expression")}(e,t)?l.push(u):o.comments&&o.comments.some(function(e){return e.leading})?l.push(n(e,{needsSemi:!0})):l.push(";",u),!t.semi&&i)if(function(e){var t=e.getNode();if("ClassProperty"!==t.type)return!1;var n=t.key&&t.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation))return!0}(e))l.push(";");else if("ClassProperty"===o.type){(function(e){if(!e)return;if(e.static||e.accessibility)return!1;if(!e.computed){var t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":var n=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!n&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!r);default:return!1}})(a.body[s+1])&&l.push(";")}fm(c,o,t)&&!function(e){var t=e.getParentNode();if(!t)return!0;var n=e.getValue(),r=(t.body||t.consequent).filter(function(e){return"EmptyStatement"!==e.type});return r&&r[r.length-1]===n}(e)&&l.push(Fm),r.push(Tm(l))}}),Sm(Fm,r)}function iy(e,t,n){var r=e.getNode(),a=e.getParentNode(),i=r.key;if("consistent"===t.quoteProps&&!Am.has(a)){var s=(a.properties||a.body||a.members).some(function(e){return!e.computed&&e.key&&ug(e.key)&&!sg(e,t)});Am.set(a,s)}if("Identifier"===i.type&&!r.computed&&("json"===t.parser||"consistent"===t.quoteProps&&Am.get(a))){var o=am(JSON.stringify(i.name),t);return e.call(function(e){return _i.printComments(e,function(){return o},t)},"key")}return r.computed||!sg(r,t)||"as-needed"!==t.quoteProps&&("consistent"!==t.quoteProps||Am.get(a))?e.call(n,"key"):e.call(function(e){return _i.printComments(e,function(){return i.value},t)},"key")}function sy(e,t,n){var r=e.getNode(),a=t.semi?";":"",i=r.kind,s=[];"ObjectMethod"!==r.type&&"ClassMethod"!==r.type&&"ClassPrivateMethod"!==r.type||(r.value=r),r.value.async&&s.push("async "),i&&"init"!==i&&"method"!==i&&"constructor"!==i?(Ka.ok("get"===i||"set"===i),s.push(i," ")):r.value.generator&&s.push("*");var o=iy(e,t,n);return r.computed&&(o=Tm(["[",o,"]"])),s.push(o,Tm(e.call(function(e){return[hy(e,t,n),jm(Tm([fy(e,n,t),Dy(e,n,t)]))]},"value"))),r.value.body&&0!==r.value.body.length?s.push(" ",e.call(n,"value","body")):s.push(a),Tm(s)}function oy(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type||"TSAsExpression"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||Ty(e.body))}function uy(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)}var cy=new Set(["pipe","pipeP","pipeK","compose","composeFlipped","composeP","composeK","flow","flowRight","connect","createSelector"]),ly=new Set(["connect"]);function py(e,t,n){var r=e.getValue(),a=r.arguments;if(0===a.length)return Tm(["(",_i.printDanglingComments(e,t,!0),")"]);if(2===a.length&&"ArrowFunctionExpression"===a[0].type&&0===a[0].params.length&&"BlockStatement"===a[0].body.type&&"ArrayExpression"===a[1].type&&!a.find(function(e){return e.leadingComments||e.trailingComments}))return Tm(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);var i=!1,s=!1,o=a.length-1,u=e.map(function(e,r){var a=e.getNode(),u=[n(e)];return r===o||(fm(t.originalText,a,t)?(0===r&&(s=!0),i=!0,u.push(",",Fm,Fm)):u.push(",",Lm)),Tm(u)},"arguments"),c=r.callee&&"Import"===r.callee.type||!Xm(t,"all")?"":",";function l(){return jm(Tm(["(",Bm(Tm([Lm,Tm(u)])),c,Lm,")"]),{shouldBreak:!0})}if(function e(t){switch(t.type){case"OptionalMemberExpression":case"MemberExpression":return e(t.property)&&!ly.has(t.property.name);case"Identifier":return cy.has(t.name);case"StringLiteral":case"Literal":return cy.has(t.value)}}(r.callee)&&a.length>1)return l();var p=function(e){if(2!==e.length)return!1;var t=e[0],n=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||oy(n))}(a),d=function(e){var t=nm(e),n=cm(e);return!Wy(t)&&!$y(t)&&oy(t)&&(!n||n.type!==t.type)}(a);if(p||d){var h,f=(p?u.slice(1).some(Um):u.slice(0,-1).some(Um))||i,m=0;e.each(function(e){p&&0===m&&(h=[Tm([e.call(function(e){return n(e,{expandFirstArg:!0})}),u.length>1?",":"",s?Fm:Lm,s?Fm:""])].concat(u.slice(1))),d&&m===a.length-1&&(h=u.slice(0,-1).concat(e.call(function(e){return n(e,{expandLastArg:!0})}))),m++},"arguments");var y=u.some(Um);return Tm([y?Hm:"",Nm([Tm([Rm(Bm(Tm(["(",Pm,Tm(h)])),Tm(["(",Tm(h)])),y?Tm([Rm(c),Pm]):"",")"]),Tm(p?["(",jm(h[0],{shouldBreak:!0}),Tm(h.slice(1)),")"]:["(",Tm(u.slice(0,-1)),jm(nm(h),{shouldBreak:!0}),")"]),l()],{shouldBreak:f})])}return jm(Tm(["(",Bm(Tm([Pm,Tm(u)])),Rm(c),Pm,")"]),{shouldBreak:u.some(Um)||i})}function dy(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var a=e.getParentNode(),i=r.definite||a&&"VariableDeclarator"===a.type&&a.definite,s="DeclareFunction"===a.type&&a.id===r;return Uy(t.originalText,r.typeAnnotation,t)?Tm([" /*: ",e.call(n,"typeAnnotation")," */"]):Tm([s?"":i?"!: ":": ",e.call(n,"typeAnnotation")])}function hy(e,t,n){var r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function fy(e,t,n,r,a){var i=e.getValue(),s=e.getParentNode(),o=i.parameters?"parameters":"params",u=pg(s),c=Zy(i),l=r&&!(i[o]&&i[o].some(function(e){return e.comments})),p=a?hy(e,0,t):"",d=[];if(i[o]){var h=i[o].length-1;d=e.map(function(e,r){var a=[],s=e.getValue();return a.push(t(e)),r===h?i.rest&&a.push(",",Lm):u||c||l?a.push(", "):fm(n.originalText,s,n)?a.push(",",Fm,Fm):a.push(",",Lm),Tm(a)},o)}if(i.rest&&d.push(Tm(["...",e.call(t,"rest")])),0===d.length)return Tm([p,"(",_i.printDanglingComments(e,n,!0,function(e){return")"===Zf(n.originalText,e,n.locEnd)}),")"]);var f=nm(i[o]);if(l)return jm(Tm([Gm(p),"(",Tm(d.map(Gm)),")"]));if(c)return Tm([p,"(",Tm(d),")"]);if(u)return Tm([p,"(",Tm(d),")"]);if((Jy(s,n)||function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||Qy(e,e.typeAnnotation,t))}(s,n)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===i)&&1===i[o].length&&null===i[o][0].name&&i[o][0].typeAnnotation&&null===i.typeParameters&&uy(i[o][0].typeAnnotation)&&!i.rest)return"always"===n.arrowParens?Tm(["(",Tm(d),")"]):Tm(d);var m=!(f&&"RestElement"===f.type||i.rest);return Tm([p,"(",Bm(Tm([Pm,Tm(d)])),Rm(m&&Xm(n,"all")?",":""),Pm,")"])}function my(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function(e){return!(1!==e.params.length||e.rest||e.typeParameters||rg(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue()))}function yy(e,t,n){var r=e.getValue(),a=[];return r.async&&a.push("async "),a.push("function"),r.generator&&a.push("*"),r.id&&a.push(" ",e.call(t,"id")),a.push(hy(e,0,t),jm(Tm([fy(e,t,n),Dy(e,t,n)])),r.body?" ":"",e.call(t,"body")),Tm(a)}function gy(e,t,n){var r=e.getValue(),a=[];if(r.async&&a.push("async "),r.generator&&a.push("*"),r.method||"get"===r.kind||"set"===r.kind)return sy(e,t,n);var i=iy(e,t,n);return r.computed?a.push("[",i,"]"):a.push(i),a.push(hy(e,0,n),jm(Tm([fy(e,n,t),Dy(e,n,t)]))," ",e.call(n,"body")),Tm(a)}function Dy(e,t,n){var r=e.getValue(),a=e.call(t,"returnType");if(r.returnType&&Uy(n.originalText,r.returnType,n))return Tm([" /*: ",a," */"]);var i=[a];return r.returnType&&r.returnType.typeAnnotation&&i.unshift(": "),r.predicate&&i.push(r.returnType?" ":": ",e.call(t,"predicate")),Tm(i)}function _y(e,t,n){var r=e.getValue(),a=t.semi?";":"",i=["export "],s=r.default||"ExportDefaultDeclaration"===r.type;if(s&&i.push("default "),i.push(_i.printDanglingComments(e,t,!0)),ag(r)&&i.push(Fm),r.declaration)i.push(e.call(n,"declaration")),s&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&i.push(a);else{if(r.specifiers&&r.specifiers.length>0){var o=[],u=[],c=[];e.each(function(t){var r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?u.push(n(t)):"ExportNamespaceSpecifier"===r&&c.push(Tm(["* as ",n(t)]))},"specifiers");var l=0!==c.length&&0!==o.length,p=0!==u.length&&(0!==c.length||0!==o.length);i.push("type"===r.exportKind?"type ":"",Tm(u),Tm([p?", ":""]),Tm(c),Tm([l?", ":""]),0!==o.length?jm(Tm(["{",Bm(Tm([t.bracketSpacing?Lm:Pm,Sm(Tm([",",Lm]),o)])),Rm(Xm(t)?",":""),t.bracketSpacing?Lm:Pm,"}"])):"")}else i.push("{}");r.source&&i.push(" from ",e.call(n,"source")),i.push(a)}return Tm(i)}function vy(e,t){var n=Qf(e);return n?Ka.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Tm(t)}function by(e){if(!e.variance)return null;var t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}}function Ey(e,t,n){var r=e.getValue();return r.modifiers&&r.modifiers.length?Tm([Sm(" ",e.map(n,"modifiers"))," "]):""}function xy(e,t,n,r){var a=e.getValue();if(!a[r])return"";if(!Array.isArray(a[r]))return e.call(n,r);var i=e.getNode(2);return null!=i&&pg(i)||0===a[r].length||1===a[r].length&&(Xy(a[r][0])||"GenericTypeAnnotation"===a[r][0].type&&Xy(a[r][0].id)||"TSTypeReference"===a[r][0].type&&Xy(a[r][0].typeName)||"NullableTypeAnnotation"===a[r][0].type)?Tm(["<",Sm(", ",e.map(n,r)),">"]):jm(Tm(["<",Bm(Tm([Pm,Sm(Tm([",",Lm]),e.map(n,r))])),Rm("typescript"!==t.parser&&Xm(t,"all")?",":""),Pm,">"]))}function wy(e,t,n){var r=e.getValue(),a=[];r.abstract&&a.push("abstract "),a.push("class"),r.id&&a.push(" ",e.call(n,"id")),a.push(e.call(n,"typeParameters"));var i=[];if(r.superClass){var s=Tm(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?i.push(jm(Tm([Lm,e.call(function(e){return _i.printComments(e,function(){return s},t)},"superClass")]))):a.push(Tm([" ",e.call(function(e){return _i.printComments(e,function(){return s},t)},"superClass")]))}else r.extends&&r.extends.length>0&&a.push(" extends ",Sm(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&i.push(Lm,"mixins ",jm(Bm(Sm(Tm([",",Lm]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&i.push(Lm,"implements",jm(Bm(Tm([Lm,Sm(Tm([",",Lm]),e.map(n,"implements"))])))),i.length>0&&a.push(jm(Bm(Tm(i)))),r.body&&r.body.comments&&qy(t.originalText,r.body,t)?a.push(Fm):a.push(" "),a.push(e.call(n,"body")),a}function Cy(e){var t=e.getValue();return t.optional?"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?":""}function My(e,t,n){var r=e.call(n,"property"),a=e.getValue(),i=Cy(e);return a.computed?!a.property||og(a.property)?Tm([i,"[",r,"]"]):jm(Tm([i,"[",Bm(Tm([Pm,r])),Pm,"]"])):Tm([i,".",r])}function Ay(e,t,n){return Tm(["::",e.call(n,"callee")])}function ky(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}function Ty(e){return"JSXElement"===e.type||"JSXFragment"===e.type}var Sy=new RegExp("[^ \n\r\t]"),Ly=new RegExp("([ \n\r\t]+)");function Fy(e){return ig(e)&&(Sy.test(mg(e))||!/\n/.test(mg(e)))}function Py(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?Pm:Fm:Pm}function Yy(e,t,n,r){return e?Fm:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?Fm:Pm:Fm}function jy(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type}function By(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object}function Oy(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||("ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Ty(e.right)))}function Ny(e,t,n,r){return qy(r.originalText,t,r)?Bm(Tm([Fm,n])):jy(t)&&!Oy(t)||"ConditionalExpression"===t.type&&jy(t.test)&&!Oy(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||ug(e)||"MemberExpression"===e.type)&&(ug(t)||function e(t){if("MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type)return!1;if("Identifier"===t.object.type)return!0;return e(t.object)}(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?jm(Bm(Tm([Lm,n]))):Tm([" ",n])}function Iy(e,t,n,r,a,i){if(!r)return t;var s=Ny(e,r,a,i);return jm(Tm([t,n,s]))}function Ry(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Tm([" ",t]):Bm(Tm([Lm,t]))}function Hy(e,t,n){var r=mg(e),a=n||"DirectiveLiteral"===e.type;return am(r,t,a)}function zy(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Wy(e){return e.comments&&e.comments.some(function(e){return e.leading})}function $y(e){return e.comments&&e.comments.some(function(e){return e.trailing})}function qy(e,t,n){return Ty(t)?um(t):t.comments&&t.comments.some(function(t){return t.leading&&em(e,n.locEnd(t))})}function Uy(e,t,n){var r=n.locStart(t),a=om(e,n.locEnd(t));return"/*"===e.substr(r,2)&&"*/"===e.substr(a,2)}function Jy(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Vy(e,t))}function Vy(e,t){return Gy(e)||Qy(e,e.value,t)}function Gy(e){return"get"===e.kind||"set"===e.kind}function Qy(e,t,n){return n.locStart(e)===n.locStart(t)}function Ky(e,t){return("flow"===t.parser||"typescript"===t.parser)&&(t.originalText.slice(0,t.locStart(e)).match(/declare[ \t]*$/)||t.originalText.slice(e.range[0],e.range[1]).startsWith("declare "))}function Xy(e){if(uy(e)||cg(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter(function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type}).length,n=e.types.filter(function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}).length;if(e.types.length-1===t&&n>0)return!0}return!1}function Zy(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&cg(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&cg(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function eg(e){return e.quasis.some(function(e){return e.value.raw.includes("\n")})}function tg(e,t,n){return("TemplateLiteral"===e.type&&eg(e)||"TaggedTemplateExpression"===e.type&&eg(e.quasi))&&!em(t,n.locStart(e),{backwards:!0})}function ng(e,t,n,r){var a=[],i=[];return e.each(function(e){a.push(Tm(i)),a.push(jm(r(e))),i=[",",Lm],e.getValue()&&fm(t.originalText,e.getValue(),t)&&i.push(Pm)},n),Tm(a)}function rg(e){return e.comments&&e.comments.some(function(e){return!e.leading&&!e.trailing})}function ag(e){if(!e.comments)return!1;var t=nm(e.comments.filter(function(e){return!e.leading&&!e.trailing}));return t&&!Xh.isBlockComment(t)}function ig(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function sg(e,t){return ug(e.key)&&gm(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)}function og(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function ug(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function cg(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type}var lg=/^(skip|[fx]?(it|describe|test))$/;function pg(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(dg(e)&&t&&pg(t))return hg(e.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(e))return dg(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("Identifier"===e.callee.type&&lg.test(e.callee.name)||("MemberExpression"===(n=e).callee.type||"OptionalMemberExpression"===n.callee.type)&&"Identifier"===n.callee.object.type&&"Identifier"===n.callee.property.type&&lg.test(n.callee.object.name)&&("only"===n.callee.property.name||"skip"===n.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(e.arguments[0])||ug(e.arguments[0])))return!(e.arguments[2]&&!og(e.arguments[2]))&&((2===e.arguments.length?hg(e.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(e.arguments[1])&&e.arguments[1].params.length<=1)||dg(e.arguments[1]));var n;return!1}function dg(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function hg(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function fg(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Ty(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1==r.body.length}function mg(e){return e.extra?e.extra.raw:e.raw}function yg(e){return e}var gg={preprocess:Gf,print:function(e,t,n,r){var a=e.getValue(),i=!1,s=function(e,t,n,r){var a=e.getValue(),i=t.semi?";":"";if(!a)return"";if("string"==typeof a)return a;var s=_m(e,t,n);if(s)return s;var o,u=[];switch(a.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return Tm([e.call(n,"node"),Fm]);case"File":return a.program&&a.program.interpreter&&u.push(e.call(function(e){return e.call(n,"interpreter")},"program")),u.push(e.call(n,"program")),Tm(u);case"Program":return a.directives&&e.each(function(e){u.push(n(e),i,Fm),fm(t.originalText,e.getValue(),t)&&u.push(Fm)},"directives"),u.push(e.call(function(e){return ay(e,t,n)},"body")),u.push(_i.printDanglingComments(e,t,!0)),(a.body.length||a.comments)&&u.push(Fm),Tm(u);case"EmptyStatement":return"";case"ExpressionStatement":if(a.directive)return Tm([Hy(a.expression,t,!0),i]);if("__vue_event_binding"===t.parser){var c=e.getParentNode();if("Program"===c.type&&1===c.body.length&&c.body[0]===a)return Tm([e.call(n,"expression"),vm(a.expression)?";":""])}return Tm([e.call(n,"expression"),fg(t,e)?"":i]);case"ParenthesizedExpression":return Tm(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Iy(a.left,e.call(n,"left"),Tm([" ",a.operator]),a.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var l=e.getParentNode(),p=e.getParentNode(1),d=a!==l.body&&("IfStatement"===l.type||"WhileStatement"===l.type||"DoWhileStatement"===l.type),h=function e(t,n,r,a,i){var s=[],o=t.getValue();if(jy(o)){Xf(o.operator,o.left.operator)?s=s.concat(t.call(function(t){return e(t,n,r,!0,i)},"left")):s.push(t.call(n,"left"));var u=Oy(o),c=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===r.parser)&&!qy(r.originalText,o.right,r),l="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&0!==o.arguments.length?jm(Bm(Tm([Pm,": ",Sm(Tm([Pm,":",Rm(" ")]),t.map(n,"arguments").map(function(e){return Om(2,jm(e))}))]))):"",d=Tm(u?[l," ",t.call(n,"right"),p]:[c?Pm:"",l,c?" ":Lm,t.call(n,"right"),p]),h=t.getParentNode(),f=!(i&&"LogicalExpression"===o.type)&&h.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;s.push(" ",f?jm(d):d),a&&o.comments&&(s=_i.printComments(t,function(){return Tm(s)},r))}else s.push(t.call(n));return s}(e,n,t,!1,d);if(d)return Tm(h);if("UnaryExpression"===l.type||("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&!l.computed)return jm(Tm([Bm(Tm([Pm,Tm(h)])),Pm]));var f="ReturnStatement"===l.type||"JSXExpressionContainer"===l.type&&"JSXAttribute"===p.type||"NGPipeExpression"!==a.type&&("NGRoot"===l.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===l.type&&"NGMicrosyntax"===p.type&&1===p.body.length)||a===l.body&&"ArrowFunctionExpression"===l.type||a!==l.body&&"ForStatement"===l.type||"ConditionalExpression"===l.type&&"ReturnStatement"!==p.type&&"CallExpression"!==p.type,m="AssignmentExpression"===l.type||"VariableDeclarator"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"ObjectProperty"===l.type||"Property"===l.type,y=jy(a.left)&&Xf(a.operator,a.left.operator);if(f||Oy(a)&&!y||!Oy(a)&&m)return jm(Tm(h));if(0===h.length)return"";var g=Ty(a.right),D=Tm(g?h.slice(1,-1):h.slice(1)),v=Symbol("logicalChain-"+ ++Km),b=jm(Tm([h.length>0?h[0]:"",Bm(D)]),{id:v});if(!g)return b;var E=nm(h);return jm(Tm([b,Rm(Bm(E),E,{groupId:v})]));case"AssignmentPattern":return Tm([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":var x=!("ArrayExpression"===a.expression.type||"ObjectExpression"===a.expression.type),w=jm(Tm(["<",Bm(Tm([Pm,e.call(n,"typeAnnotation")])),Pm,">"])),C=Tm([Rm("("),Bm(Tm([Pm,e.call(n,"expression")])),Pm,Rm(")")]);return x?Nm([Tm([w,e.call(n,"expression")]),Tm([w,jm(C,{shouldBreak:!0})]),Tm([w,e.call(n,"expression")])]):jm(Tm([w,e.call(n,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var M,A=e.getParentNode(),k=0;do{M=e.getParentNode(k),k++}while(M&&("MemberExpression"===M.type||"OptionalMemberExpression"===M.type||"TSNonNullExpression"===M.type));var T=M&&("NewExpression"===M.type||"BindExpression"===M.type||"VariableDeclarator"===M.type&&"Identifier"!==M.id.type||"AssignmentExpression"===M.type&&"Identifier"!==M.left.type)||a.computed||"Identifier"===a.object.type&&"Identifier"===a.property.type&&"MemberExpression"!==A.type&&"OptionalMemberExpression"!==A.type;return Tm([e.call(n,"object"),T?My(e,0,n):jm(Bm(Tm([Pm,My(e,0,n)])))]);case"MetaProperty":return Tm([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return a.object&&u.push(e.call(n,"object")),u.push(jm(Bm(Tm([Pm,Ay(e,0,n)])))),Tm(u);case"Identifier":return Tm([a.name,Cy(e),dy(e,t,n)]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Tm(["...",e.call(n,"argument"),dy(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return u.push(yy(e,n,t)),a.body||u.push(i),Tm(u);case"ArrowFunctionExpression":a.async&&u.push("async "),my(e,t)?u.push(e.call(n,"params",0)):u.push(jm(Tm([fy(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),Dy(e,n,t)])));var S=_i.printDanglingComments(e,t,!0,function(e){var n=ym(t.originalText,e,t);return"=>"===t.originalText.substr(n,2)});S&&u.push(" ",S),u.push(" =>");var L=e.call(function(e){return n(e,r)},"body");if(!qy(t.originalText,a.body,t)&&("ArrayExpression"===a.body.type||"ObjectExpression"===a.body.type||"BlockStatement"===a.body.type||Ty(a.body)||tg(a.body,t.originalText,t)||"ArrowFunctionExpression"===a.body.type||"DoExpression"===a.body.type))return jm(Tm([Tm(u)," ",L]));if("SequenceExpression"===a.body.type)return jm(Tm([Tm(u),jm(Tm([" (",Bm(Tm([Pm,L])),Pm,")"]))]));var F=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(a.comments&&a.comments.length),Y=r&&r.expandLastArg&&Xm(t,"all"),j="ConditionalExpression"===a.body.type&&!lm(a.body,!1);return jm(Tm([Tm(u),jm(Tm([Bm(Tm([Lm,j?Rm("","("):"",L,j?Rm("",")"):""])),F?Tm([Rm(Y?",":""),Pm]):""]))]));case"MethodDefinition":case"TSAbstractMethodDefinition":return a.decorators&&0!==a.decorators.length&&u.push(ey(e,t,n)),a.accessibility&&u.push(a.accessibility+" "),a.static&&u.push("static "),"TSAbstractMethodDefinition"===a.type&&u.push("abstract "),u.push(sy(e,t,n)),Tm(u);case"YieldExpression":return u.push("yield"),a.delegate&&u.push("*"),a.argument&&u.push(" ",e.call(n,"argument")),Tm(u);case"AwaitExpression":return Tm(["await ",e.call(n,"argument")]);case"ImportSpecifier":return a.importKind&&u.push(e.call(n,"importKind")," "),u.push(e.call(n,"imported")),a.local&&a.local.name!==a.imported.name&&u.push(" as ",e.call(n,"local")),Tm(u);case"ExportSpecifier":return u.push(e.call(n,"local")),a.exported&&a.exported.name!==a.local.name&&u.push(" as ",e.call(n,"exported")),Tm(u);case"ImportNamespaceSpecifier":return u.push("* as "),u.push(e.call(n,"local")),Tm(u);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return Tm(["export = ",e.call(n,"expression"),i]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return _y(e,t,n);case"ExportAllDeclaration":return u.push("export "),"type"===a.exportKind&&u.push("type "),u.push("* from ",e.call(n,"source"),i),Tm(u);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":u.push("import "),a.importKind&&"value"!==a.importKind&&u.push(a.importKind+" ");var B=[],O=[];return a.specifiers&&a.specifiers.length>0?(e.each(function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?B.push(n(e)):O.push(n(e))},"specifiers"),B.length>0&&u.push(Sm(", ",B)),B.length>0&&O.length>0&&u.push(", "),1===O.length&&0===B.length&&a.specifiers&&!a.specifiers.some(function(e){return e.comments})?u.push(Tm(["{",t.bracketSpacing?" ":"",Tm(O),t.bracketSpacing?" ":"","}"])):O.length>=1&&u.push(jm(Tm(["{",Bm(Tm([t.bracketSpacing?Lm:Pm,Sm(Tm([",",Lm]),O)])),Rm(Xm(t)?",":""),t.bracketSpacing?Lm:Pm,"}"]))),u.push(" from ")):(a.importKind&&"type"===a.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(a),t.locStart(a.source))))&&u.push("{} from "),u.push(e.call(n,"source"),i),Tm(u);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var N=e.call(function(e){return ay(e,t,n)},"body"),I=a.body.find(function(e){return"EmptyStatement"!==e.type}),R=a.directives&&a.directives.length>0,H=e.getParentNode(),z=e.getParentNode(1);return I||R||rg(a)||"ArrowFunctionExpression"!==H.type&&"FunctionExpression"!==H.type&&"FunctionDeclaration"!==H.type&&"ObjectMethod"!==H.type&&"ClassMethod"!==H.type&&"ClassPrivateMethod"!==H.type&&"ForStatement"!==H.type&&"WhileStatement"!==H.type&&"DoWhileStatement"!==H.type&&"DoExpression"!==H.type&&("CatchClause"!==H.type||z.finalizer)&&"TSModuleDeclaration"!==H.type?(u.push("{"),R&&e.each(function(e){u.push(Bm(Tm([Fm,n(e),i]))),fm(t.originalText,e.getValue(),t)&&u.push(Fm)},"directives"),I&&u.push(Bm(Tm([Fm,N]))),u.push(_i.printDanglingComments(e,t)),u.push(Fm,"}"),Tm(u)):"{}";case"ReturnStatement":return u.push("return"),a.argument&&(function(e,t){if(qy(e.originalText,t,e))return!0;if(xm(t))for(var n,r=t;n=bm(r);)if(r=n,qy(e.originalText,r,e))return!0;return!1}(t,a.argument)?u.push(Tm([" (",Bm(Tm([Fm,e.call(n,"argument")])),Fm,")"])):"LogicalExpression"===a.argument.type||"BinaryExpression"===a.argument.type||"SequenceExpression"===a.argument.type?u.push(jm(Tm([Rm(" ("," "),Bm(Tm([Pm,e.call(n,"argument")])),Pm,Rm(")")]))):u.push(" ",e.call(n,"argument"))),rg(a)&&u.push(" ",_i.printDanglingComments(e,t,!0)),u.push(i),Tm(u);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var W="NewExpression"===a.type,$=Cy(e);if(!W&&"Identifier"===a.callee.type&&("require"===a.callee.name||"define"===a.callee.name)||1===a.arguments.length&&tg(a.arguments[0],t.originalText,t)||!W&&pg(a,e.getParentNode()))return Tm([W?"new ":"",e.call(n,"callee"),$,hy(e,0,n),Tm(["(",Sm(", ",e.map(n,"arguments")),")"])]);var q="Identifier"===a.callee.type&&Cm(a.callee.trailingComments);return q&&(a.callee.trailingComments[0].printed=!0),!W&&By(a.callee)?function(e,t,n){var r=[];function a(e){var n=t.originalText,r=ym(n,e,t),a=n.charAt(r);return")"==a?mm(n,r+1,t):fm(n,e,t)}var i=e.getValue();r.unshift({node:i,printed:Tm([Cy(e),hy(e,0,n),py(e,t,n)])}),e.call(function(e){return function e(i){var s=i.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!By(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?By(s)?(r.unshift({node:s,needsParens:zf(i,t),printed:_i.printComments(i,function(){return"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?My(i,0,n):Ay(i,0,n)},t)}),i.call(function(t){return e(t)},"object")):"TSNonNullExpression"===s.type?(r.unshift({node:s,printed:_i.printComments(i,function(){return"!"},t)}),i.call(function(t){return e(t)},"expression")):r.unshift({node:s,printed:i.call(n)}):(r.unshift({node:s,printed:Tm([_i.printComments(i,function(){return Tm([Cy(i),hy(i,0,n),py(i,t,n)])},t),a(s)?Fm:""])}),i.call(function(t){return e(t)},"callee"))}(e)},"callee");for(var s=[],o=[r[0]],u=1;u0&&s.push(o);var p=s.length>=2&&!s[1][0].node.comments&&function(n){var r=e.getParentNode(),a=r&&"ExpressionStatement"===r.type,i=n[1].length&&n[1][0].node.computed;if(1===n[0].length){var s=n[0][0].node;return"ThisExpression"===s.type||"Identifier"===s.type&&(l(s.name)||a&&function(e){return e.length<=t.tabWidth}(s.name)||i)}var o=nm(n[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(l(o.property.name)||i)}(s);function d(e){var t=e.map(function(e){return e.printed});return e.length>0&&e[e.length-1].needsParens?Tm(["("].concat(P(t),[")"])):Tm(t)}var h=s.map(d),f=Tm(h),m=p?3:2,y=s.slice(0,m).reduce(function(e,t){return e.concat(t)},[]),g=y.slice(1,-1).some(function(e){return Wy(e.node)})||y.slice(0,-1).some(function(e){return $y(e.node)})||s[m]&&Wy(s[m][0].node);if(s.length<=m&&!g)return jm(f);var D,_=nm(p?s.slice(1,2)[0]:s[0]).node,v="CallExpression"!==_.type&&"OptionalCallExpression"!==_.type&&a(_),b=Tm([d(s[0]),p?Tm(s.slice(1,2).map(d)):"",v?Fm:"",function(e){return 0===e.length?"":Bm(jm(Tm([Fm,Sm(Fm,e.map(d))])))}(s.slice(p?2:1))]),E=r.map(function(e){var t=e.node;return t}).filter(ky);return g||E.length>=3||h.slice(0,-1).some(Um)||(D=nm(h),ky(nm(nm(s)).node)&&Um(D)&&E.slice(0,-1).some(function(e){return e.arguments.some(hg)}))?jm(b):Tm([Um(f)||v?Hm:"",Nm([f,b])])}(e,t,n):Tm([W?"new ":"",e.call(n,"callee"),$,q?"/*:: ".concat(a.callee.trailingComments[0].value.substring(2).trim()," */"):"",hy(e,0,n),py(e,t,n)]);case"TSInterfaceDeclaration":return Ky(a,t)&&u.push("declare "),u.push(a.abstract?"abstract ":"",Ey(e,0,n),"interface ",e.call(n,"id"),a.typeParameters?e.call(n,"typeParameters"):""," "),a.extends&&a.extends.length&&u.push(jm(Bm(Tm([Pm,"extends ",(1===a.extends.length?yg:Bm)(Sm(Tm([",",Lm]),e.map(n,"extends")))," "])))),u.push(e.call(n,"body")),Tm(u);case"ObjectTypeInternalSlot":return Tm([a.static?"static ":"","[[",e.call(n,"id"),"]]",Cy(e),a.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var U;U="TSTypeLiteral"===a.type?"members":"TSInterfaceBody"===a.type?"body":"properties";var J="ObjectTypeAnnotation"===a.type,V=[];J&&V.push("indexers","callProperties","internalSlots"),V.push(U);var G=V.map(function(e){return a[e][0]}).sort(function(e,n){return t.locStart(e)-t.locStart(n)})[0],Q=e.getParentNode(0),K=J&&Q&&("InterfaceDeclaration"===Q.type||"DeclareInterface"===Q.type||"DeclareClass"===Q.type)&&"body"===e.getName(),X="TSInterfaceBody"===a.type||K||"ObjectPattern"===a.type&&"FunctionDeclaration"!==Q.type&&"FunctionExpression"!==Q.type&&"ArrowFunctionExpression"!==Q.type&&"AssignmentPattern"!==Q.type&&"CatchClause"!==Q.type&&a.properties.some(function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)})||"ObjectPattern"!==a.type&&G&&tm(t.originalText,t.locStart(a),t.locStart(G)),Z=K?";":"TSInterfaceBody"===a.type||"TSTypeLiteral"===a.type?Rm(i,";"):",",ee=a.exact?"{|":"{",te=a.exact?"|}":"}",ne=[];V.forEach(function(r){e.each(function(e){var r=e.getValue();ne.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});var re=[],ae=ne.sort(function(e,t){return e.loc-t.loc}).map(function(e){var n=Tm(re.concat(jm(e.printed)));return re=[Z,Lm],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!um(e.node)||re.shift(),fm(t.originalText,e.node,t)&&re.push(Fm),n});a.inexact&&ae.push(Tm(re.concat(jm("..."))));var ie,se=nm(a[U]),oe=!(se&&("RestProperty"===se.type||"RestElement"===se.type||um(se)||a.inexact));if(0!==ae.length||a.typeAnnotation)ie=Tm([ee,Bm(Tm([t.bracketSpacing?Lm:Pm,Tm(ae)])),Rm(oe&&(","!==Z||Xm(t))?Z:""),Tm([t.bracketSpacing?Lm:Pm,te]),Cy(e),dy(e,t,n)]);else{if(!rg(a))return Tm([ee,te]);ie=jm(Tm([ee,_i.printDanglingComments(e,t),Pm,te,Cy(e)]))}var ue=e.getParentNode(2);return"ObjectPattern"===a.type&&Q&&Zy(Q)&&Q.params[0]===a||Xy(a)&&ue&&Zy(ue)&&ue.params[0].typeAnnotation&&ue.params[0].typeAnnotation.typeAnnotation===a?ie:jm(ie,{shouldBreak:X});case"ObjectProperty":case"Property":return a.method||"get"===a.kind||"set"===a.kind?sy(e,t,n):(a.shorthand?u.push(e.call(n,"value")):(ce=a.computed?Tm(["[",e.call(n,"key"),"]"]):iy(e,t,n),u.push(Iy(a.key,ce,":",a.value,e.call(n,"value"),t))),Tm(u));var ce;case"ClassMethod":case"ClassPrivateMethod":return a.decorators&&0!==a.decorators.length&&u.push(ey(e,t,n)),a.static&&u.push("static "),u=u.concat(gy(e,t,n)),Tm(u);case"ObjectMethod":return gy(e,t,n);case"Decorator":return Tm(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===a.elements.length)rg(a)?u.push(jm(Tm(["[",_i.printDanglingComments(e,t),Pm,"]"]))):u.push("[]");else{var le=nm(a.elements),pe=!(le&&"RestElement"===le.type),de=pe&&null===le;u.push(jm(Tm(["[",Bm(Tm([Pm,ng(e,t,"elements",n)])),de?",":"",Rm(pe&&!de&&Xm(t)?",":""),_i.printDanglingComments(e,t,!0),Pm,"]"])))}return u.push(Cy(e),dy(e,t,n)),Tm(u);case"SequenceExpression":var he=e.getParentNode(0);if("ExpressionStatement"===he.type||"ForStatement"===he.type){var fe=[];return e.each(function(e){0===e.getName()?fe.push(n(e)):fe.push(",",Bm(Tm([Lm,n(e)])))},"expressions"),jm(Tm(fe))}return jm(Tm([Sm(Tm([",",Lm]),e.map(n,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return zy(a);case"NumericLiteral":return im(a.extra.raw);case"BigIntLiteral":return Tm([im(a.extra?a.extra.rawValue:a.value),"n"]);case"BooleanLiteral":case"StringLiteral":case"Literal":if(a.regex)return zy(a.regex);if("number"==typeof a.value)return im(a.raw);if("string"!=typeof a.value)return""+a.value;var me=e.getParentNode(1),ye="typescript"===t.parser&&"string"==typeof a.value&&me&&("Program"===me.type||"BlockStatement"===me.type);return Hy(a,t,ye);case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Hy(a,t);case"UnaryExpression":return u.push(a.operator),/[a-z]$/.test(a.operator)&&u.push(" "),u.push(e.call(n,"argument")),Tm(u);case"UpdateExpression":return u.push(e.call(n,"argument"),a.operator),a.prefix&&u.reverse(),Tm(u);case"ConditionalExpression":return ty(e,t,n,{beforeParts:function(){return[e.call(n,"test")]},afterParts:function(e){return[e?Pm:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,De=e.map(function(e){return n(e)},"declarations"),_e=e.getParentNode(),ve="ForStatement"===_e.type||"ForInStatement"===_e.type||"ForOfStatement"===_e.type||"ForAwaitStatement"===_e.type,be=a.declarations.some(function(e){return e.init});return 1!==De.length||a.declarations[0].comments?De.length>0&&(ge=Bm(De[0])):ge=De[0],u=[Ky(a,t)?"declare ":"",a.kind,ge?Tm([" ",ge]):"",Bm(Tm(De.slice(1).map(function(e){return Tm([",",be&&!ve?Fm:Lm,e])})))],ve&&_e.body!==a||u.push(i),jm(Tm(u));case"TSTypeAliasDeclaration":a.declare&&u.push("declare ");var Ee=Ny(a.id,a.typeAnnotation,a.typeAnnotation&&e.call(n,"typeAnnotation"),t);return u.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",Ee,i),jm(Tm(u));case"VariableDeclarator":return Iy(a.id,e.call(n,"id")," =",a.init,a.init&&e.call(n,"init"),t);case"WithStatement":return jm(Tm(["with (",e.call(n,"object"),")",Ry(a.body,e.call(n,"body"))]));case"IfStatement":var xe=Ry(a.consequent,e.call(n,"consequent")),we=jm(Tm(["if (",jm(Tm([Bm(Tm([Pm,e.call(n,"test")])),Pm])),")",xe]));if(u.push(we),a.alternate){var Ce=$y(a.consequent)&&a.consequent.comments.some(function(e){return e.trailing&&!Xh.isBlockComment(e)})||ag(a),Me="BlockStatement"===a.consequent.type&&!Ce;u.push(Me?" ":Fm),rg(a)&&u.push(_i.printDanglingComments(e,t,!0),Ce?Fm:" "),u.push("else",jm(Ry(a.alternate,e.call(n,"alternate"),"IfStatement"===a.alternate.type)))}return Tm(u);case"ForStatement":var Ae=Ry(a.body,e.call(n,"body")),ke=_i.printDanglingComments(e,t,!0),Te=ke?Tm([ke,Pm]):"";return a.init||a.test||a.update?Tm([Te,jm(Tm(["for (",jm(Tm([Bm(Tm([Pm,e.call(n,"init"),";",Lm,e.call(n,"test"),";",Lm,e.call(n,"update")])),Pm])),")",Ae]))]):Tm([Te,jm(Tm(["for (;;)",Ae]))]);case"WhileStatement":return jm(Tm(["while (",jm(Tm([Bm(Tm([Pm,e.call(n,"test")])),Pm])),")",Ry(a.body,e.call(n,"body"))]));case"ForInStatement":return jm(Tm([a.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Ry(a.body,e.call(n,"body"))]));case"ForOfStatement":case"ForAwaitStatement":var Se="ForAwaitStatement"===a.type||a.await;return jm(Tm(["for",Se?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Ry(a.body,e.call(n,"body"))]));case"DoWhileStatement":var Le=Ry(a.body,e.call(n,"body")),Fe=jm(Tm(["do",Le]));return u=[Fe],"BlockStatement"===a.body.type?u.push(" "):u.push(Fm),u.push("while ("),u.push(jm(Tm([Bm(Tm([Pm,e.call(n,"test")])),Pm])),")",i),Tm(u);case"DoExpression":return Tm(["do ",e.call(n,"body")]);case"BreakStatement":return u.push("break"),a.label&&u.push(" ",e.call(n,"label")),u.push(i),Tm(u);case"ContinueStatement":return u.push("continue"),a.label&&u.push(" ",e.call(n,"label")),u.push(i),Tm(u);case"LabeledStatement":return"EmptyStatement"===a.body.type?Tm([e.call(n,"label"),":;"]):Tm([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Tm(["try ",e.call(n,"block"),a.handler?Tm([" ",e.call(n,"handler")]):"",a.finalizer?Tm([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(a.param){var Pe=a.param.comments&&a.param.comments.some(function(e){return!Xh.isBlockComment(e)||e.leading&&em(t.originalText,t.locEnd(e))||e.trailing&&em(t.originalText,t.locStart(e),{backwards:!0})}),Ye=e.call(n,"param");return Tm(["catch ",Tm(Pe?["(",Bm(Tm([Pm,Ye])),Pm,") "]:["(",Ye,") "]),e.call(n,"body")])}return Tm(["catch ",e.call(n,"body")]);case"ThrowStatement":return Tm(["throw ",e.call(n,"argument"),i]);case"SwitchStatement":return Tm([jm(Tm(["switch (",Bm(Tm([Pm,e.call(n,"discriminant")])),Pm,")"]))," {",a.cases.length>0?Bm(Tm([Fm,Sm(Fm,e.map(function(e){var r=e.getValue();return Tm([e.call(n),a.cases.indexOf(r)!==a.cases.length-1&&fm(t.originalText,r,t)?Fm:""])},"cases"))])):"",Fm,"}"]);case"SwitchCase":a.test?u.push("case ",e.call(n,"test"),":"):u.push("default:");var je=a.consequent.filter(function(e){return"EmptyStatement"!==e.type});if(je.length>0){var Be=e.call(function(e){return ay(e,t,n)},"consequent");u.push(1===je.length&&"BlockStatement"===je[0].type?Tm([" ",Be]):Bm(Tm([Fm,Be])))}return Tm(u);case"DebuggerStatement":return Tm(["debugger",i]);case"JSXAttribute":if(u.push(e.call(n,"name")),a.value){var Oe;if(ug(a.value)){var Ne=mg(a.value),Ie=Ne.replace(/'/g,"'").replace(/"/g,'"'),Re=hm(Ie,t.jsxSingleQuote?"'":'"'),He="'"===Re?"'":""";Ie=Ie.slice(1,-1).replace(new RegExp(Re,"g"),He),Oe=Tm([Re,Ie,Re])}else Oe=e.call(n,"value");u.push("=",Oe)}return Tm(u);case"JSXIdentifier":return""+a.name;case"JSXNamespacedName":return Sm(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return Sm(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return Sm(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Tm(["{",e.call(function(e){var r=Tm(["...",n(e)]),a=e.getValue();return a.comments&&a.comments.length?Tm([Bm(Tm([Pm,_i.printComments(e,function(){return r},t)])),Pm]):r},"JSXSpreadAttribute"===a.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var ze=e.getParentNode(0),We="JSXAttribute"===ze.type&&a.expression.comments&&a.expression.comments.length>0,$e=!We&&("ArrayExpression"===a.expression.type||"ObjectExpression"===a.expression.type||"ArrowFunctionExpression"===a.expression.type||"CallExpression"===a.expression.type||"OptionalCallExpression"===a.expression.type||"FunctionExpression"===a.expression.type||"JSXEmptyExpression"===a.expression.type||"TemplateLiteral"===a.expression.type||"TaggedTemplateExpression"===a.expression.type||"DoExpression"===a.expression.type||Ty(ze)&&("ConditionalExpression"===a.expression.type||jy(a.expression)));return jm(Tm($e?["{",e.call(n,"expression"),zm,"}"]:["{",Bm(Tm([Pm,e.call(n,"expression")])),Pm,zm,"}"]));case"JSXFragment":case"JSXElement":var qe=_i.printComments(e,function(){return function(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return ig(t)&&!Fy(t)}(r))return Tm([e.call(n,"openingElement"),e.call(n,"closingElement")]);var a="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),i="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return Tm([a,Tm(e.map(n,"children")),i]);r.children=r.children.map(function(e){return"JSXExpressionContainer"===(t=e).type&&ig(t.expression)&&" "===t.expression.value&&!t.expression.comments?{type:"JSXText",value:" ",raw:" "}:e;var t});for(var s=r.children.filter(Ty).length>0,o=r.children.filter(function(e){return"JSXExpressionContainer"===e.type}).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1,c=Um(a)||s||u||o,l=t.singleQuote?"{' '}":'{" "}',p=Rm(Tm([l,Pm])," "),d=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,h=function(e,t,n,r,a){var i=e.getValue(),s=[];return e.map(function(e,t){var o=e.getValue();if(ig(o)){var u=mg(o);if(Fy(o)){var c,l=u.split(Ly);if(""===l[0]){if(s.push(""),l.shift(),/\n/.test(l[0])){var p=i.children[t+1];s.push(Yy(a,l[1],o,p))}else s.push(r);l.shift()}if(""===nm(l)&&(l.pop(),c=l.pop()),0===l.length)return;if(l.forEach(function(e,t){t%2==1?s.push(Lm):s.push(e)}),void 0!==c)if(/\n/.test(c)){var d=i.children[t+1];s.push(Yy(a,nm(s),o,d))}else s.push(r);else{var h=i.children[t+1];s.push(Py(a,nm(s),o,h))}}else/\n/.test(u)?u.match(/\n/g).length>1&&(s.push(""),s.push(Fm)):(s.push(""),s.push(r))}else{var f=n(e);s.push(f);var m=i.children[t+1];if(m&&Fy(m)){var y=mg(m).trim().split(Ly)[0];s.push(Py(a,y,o,m))}else s.push(Fm)}},"children"),s}(e,0,n,p,d),f=r.children.filter(function(e){return Fy(e)}).length>0,m=h.length-2;m>=0;m--){var y=""===h[m]&&""===h[m+1],g=h[m]===Fm&&""===h[m+1]&&h[m+2]===Fm,D=(h[m]===Pm||h[m]===Fm)&&""===h[m+1]&&h[m+2]===p,_=h[m]===p&&""===h[m+1]&&(h[m+2]===Pm||h[m+2]===Fm),v=h[m]===p&&""===h[m+1]&&h[m+2]===p,b=h[m]===Pm&&""===h[m+1]&&h[m+2]===Fm||h[m]===Fm&&""===h[m+1]&&h[m+2]===Pm;g&&f||y||D||v||b?h.splice(m,2):_&&h.splice(m+1,2)}for(;h.length&&(Jm(nm(h))||Vm(nm(h)));)h.pop();for(;h.length&&(Jm(h[0])||Vm(h[0]))&&(Jm(h[1])||Vm(h[1]));)h.shift(),h.shift();var E=[];h.forEach(function(e,t){if(e===p){if(1===t&&""===h[t-1])return 2===h.length?void E.push(l):void E.push(Tm([l,Fm]));if(t===h.length-1)return void E.push(l);if(""===h[t-1]&&h[t-2]===Fm)return void E.push(l)}E.push(e),Um(e)&&(c=!0)});var x=f?Im(E):jm(Tm(E),{shouldBreak:!0}),w=jm(Tm([a,Bm(Tm([Fm,x])),Fm,i]));return c?w:Nm([jm(Tm([a,Tm(h),i])),w])}(e,t,n)},t);return function(e,t){var n=e.getParentNode();if(!n)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;var r=dm(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"]);return jm(Tm([Rm("("),Bm(Tm([Pm,t])),Pm,Rm(")")]),{shouldBreak:r})}(e,qe);case"JSXOpeningElement":var Ue=e.getValue(),Je=Ue.name&&Ue.name.comments&&Ue.name.comments.length>0;if(Ue.selfClosing&&!Ue.attributes.length&&!Je)return Tm(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(Ue.attributes&&1===Ue.attributes.length&&Ue.attributes[0].value&&ug(Ue.attributes[0].value)&&!Ue.attributes[0].value.value.includes("\n")&&!Je&&(!Ue.attributes[0].comments||!Ue.attributes[0].comments.length))return jm(Tm(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Tm(e.map(n,"attributes")),Ue.selfClosing?" />":">"]));var Ve=Ue.attributes.length&&$y(nm(Ue.attributes)),Ge=!Ue.attributes.length&&!Je||t.jsxBracketSameLine&&(!Je||Ue.attributes.length)&&!Ve,Qe=Ue.attributes&&Ue.attributes.some(function(e){return e.value&&ug(e.value)&&e.value.value.includes("\n")});return jm(Tm(["<",e.call(n,"name"),e.call(n,"typeParameters"),Tm([Bm(Tm(e.map(function(e){return Tm([Lm,n(e)])},"attributes"))),Ue.selfClosing?Lm:Ge?">":Pm]),Ue.selfClosing?"/>":Ge?"":">"]),{shouldBreak:Qe});case"JSXClosingElement":return Tm([""]);case"JSXOpeningFragment":case"JSXClosingFragment":var Ke=a.comments&&a.comments.length,Xe=Ke&&!a.comments.every(Xh.isBlockComment),Ze="JSXOpeningFragment"===a.type;return Tm([Ze?"<":""]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var et=a.comments&&!a.comments.every(Xh.isBlockComment);return Tm([_i.printDanglingComments(e,t,!et),et?Fm:""]);case"ClassBody":return a.comments||0!==a.body.length?Tm(["{",a.body.length>0?Bm(Tm([Fm,e.call(function(e){return ay(e,t,n)},"body")])):_i.printDanglingComments(e,t),Fm,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":a.decorators&&0!==a.decorators.length&&u.push(ey(e,t,n)),a.accessibility&&u.push(a.accessibility+" "),a.static&&u.push("static "),"TSAbstractClassProperty"===a.type&&u.push("abstract "),a.readonly&&u.push("readonly ");var tt=by(a);return tt&&u.push(tt),a.computed?u.push("[",e.call(n,"key"),"]"):u.push(iy(e,t,n)),u.push(Cy(e)),u.push(dy(e,t,n)),a.value&&u.push(" =",Ny(a.key,a.value,e.call(n,"value"),t)),u.push(i),jm(Tm(u));case"ClassDeclaration":case"ClassExpression":return Ky(a,t)&&u.push("declare "),u.push(Tm(wy(e,t,n))),Tm(u);case"TSInterfaceHeritage":return u.push(e.call(n,"expression")),a.typeParameters&&u.push(e.call(n,"typeParameters")),Tm(u);case"TemplateElement":return Sm(Ym,a.value.raw.split(/\r?\n/g));case"TemplateLiteral":var nt=e.map(n,"expressions"),rt=e.getParentNode();if(function(e,t){var n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))}(a,rt)){var at=function(e,t,n){var r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(function(e){return 0!==e.length})){for(var a=[],i=t.map(function(e){return"${"+Qm(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"}),s=[{hasLineBreak:!1,cells:[]}],o=1;o ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),dt&&u.push(")"),jm(Tm(u));case"TSRestType":return Tm(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Tm([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Tm([e.call(n,"name"),Cy(e),a.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Tm([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===a.type||Ky(a,t))&&u.push("declare "),u.push("interface"),"DeclareInterface"!==a.type&&"InterfaceDeclaration"!==a.type||u.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),a.extends.length>0&&u.push(jm(Bm(Tm([Lm,"extends ",(1===a.extends.length?yg:Bm)(Sm(Tm([",",Lm]),e.map(n,"extends")))])))),u.push(" ",e.call(n,"body")),jm(Tm(u));case"ClassImplements":case"InterfaceExtends":return Tm([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return Tm([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var ht=e.map(n,"types"),ft=[],mt=!1,yt=0;yt1&&(mt=!0),ft.push(" & ",yt>1?Bm(ht[yt]):ht[yt])):ft.push(Bm(Tm([" &",Lm,ht[yt]])));return jm(Tm(ft));case"TSUnionType":case"UnionTypeAnnotation":var gt=e.getParentNode(),Dt=!("TypeParameterInstantiation"===gt.type||"TSTypeParameterInstantiation"===gt.type||"GenericTypeAnnotation"===gt.type||"TSTypeReference"===gt.type||"TSTypeAssertion"===gt.type||"FunctionTypeParam"===gt.type&&!gt.name||("TypeAlias"===gt.type||"VariableDeclarator"===gt.type||"TSTypeAliasDeclaration"===gt.type)&&qy(t.originalText,a,t)),_t=Xy(a),vt=e.map(function(e){var r=e.call(n);return _t||(r=Om(2,r)),_i.printComments(e,function(){return r},t)},"types");if(_t)return Sm(" | ",vt);var bt,Et=Dt&&!qy(t.originalText,a,t),xt=Tm([Rm(Tm([Et?Lm:"","| "])),Sm(Tm([Lm,"| "]),vt)]);if("TSUnionType"===a.type){var wt=e.getParentNode(2),Ct=e.getParentNode(3);bt=wt&&"TSParenthesizedType"===wt.type&&Ct&&("TSUnionType"===Ct.type||"TSIntersectionType"===Ct.type)}else bt=zf(e,t);return jm(bt?Tm([Bm(xt),Pm]):Dt?Bm(xt):xt);case"NullableTypeAnnotation":return Tm(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return a.static&&u.push("static "),u.push(e.call(n,"value")),Tm(u);case"ObjectTypeIndexer":var Mt=by(a);return Tm([Mt||"","[",e.call(n,"id"),a.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")]);case"ObjectTypeProperty":var At=by(a),kt="";return a.proto?kt="proto ":a.static&&(kt="static "),Tm([kt,Gy(a)?a.kind+" ":"",At||"",iy(e,t,n),Cy(e),Vy(a,t)?"":": ",e.call(n,"value")]);case"QualifiedTypeIdentifier":return Tm([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Hy(a,t);case"NumberLiteralTypeAnnotation":return Ka.strictEqual(_(a.value),"number"),null!=a.extra?im(a.extra.raw):im(a.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===a.type||Ky(a,t))&&u.push("declare ");var Tt=Ny(a.id,a.right,e.call(n,"right"),t);return u.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",Tt,i),jm(Tm(u));case"TypeCastExpression":var St=e.getValue(),Lt=St&&St.typeAnnotation&&St.typeAnnotation.range&&t.originalText.substring(St.typeAnnotation.range[0]).match(/^\/\*\s*:/);return Tm(["(",e.call(n,"expression"),Lt?" /*":"",": ",e.call(n,"typeAnnotation"),Lt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var Ft=e.getValue(),Pt=Ft.range?t.originalText.substring(0,Ft.range[0]).lastIndexOf("/*"):-1,Yt=Pt>=0&&t.originalText.substring(Pt).match(/^\/\*\s*::/);return Yt?Tm(["/*:: ",xy(e,t,n,"params")," */"]):xy(e,t,n,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return xy(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":var jt=e.getParentNode();if("TSMappedType"===jt.type)return u.push("[",e.call(n,"name")),a.constraint&&u.push(" in ",e.call(n,"constraint")),u.push("]"),Tm(u);var Bt=by(a);Bt&&u.push(Bt),u.push(e.call(n,"name")),a.bound&&(u.push(": "),u.push(e.call(n,"bound"))),a.constraint&&u.push(" extends ",e.call(n,"constraint")),a.default&&u.push(" = ",e.call(n,"default"));var Ot=e.getNode(2);return jt.params&&1===jt.params.length&&t.filepath&&/\.tsx$/i.test(t.filepath)&&!a.constraint&&"ArrowFunctionExpression"===Ot.type&&u.push(","),Tm(u);case"TypeofTypeAnnotation":return Tm(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Tm(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return Tm([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Tm([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return a.export&&u.push("export "),a.accessibility&&u.push(a.accessibility+" "),a.static&&u.push("static "),a.readonly&&u.push("readonly "),a.computed&&u.push("["),u.push(iy(e,t,n)),a.computed&&u.push("]"),u.push(Cy(e)),a.typeAnnotation&&(u.push(": "),u.push(e.call(n,"typeAnnotation"))),a.initializer&&u.push(" = ",e.call(n,"initializer")),Tm(u);case"TSParameterProperty":return a.accessibility&&u.push(a.accessibility+" "),a.export&&u.push("export "),a.static&&u.push("static "),a.readonly&&u.push("readonly "),u.push(e.call(n,"parameter")),Tm(u);case"TSTypeReference":return Tm([e.call(n,"typeName"),xy(e,t,n,"typeParameters")]);case"TSTypeQuery":return Tm(["typeof ",e.call(n,"exprName")]);case"TSParenthesizedType":return e.call(n,"typeAnnotation");case"TSIndexSignature":var Nt=e.getParentNode();return Tm([a.export?"export ":"",a.accessibility?Tm([a.accessibility," "]):"",a.static?"static ":"",a.readonly?"readonly ":"","[",a.parameters?Tm(e.map(n,"parameters")):"","]: ",e.call(n,"typeAnnotation"),"ClassBody"===Nt.type?i:""]);case"TSTypePredicate":return Tm([e.call(n,"parameterName")," is ",e.call(n,"typeAnnotation")]);case"TSNonNullExpression":return Tm([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Tm([a.isTypeOf?"typeof ":"","import(",e.call(n,"parameter"),")",a.qualifier?Tm([".",e.call(n,"qualifier")]):"",xy(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Tm([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==a.type&&u.push("new "),u.push(jm(fy(e,n,t,!1,!0))),a.returnType){var It="TSConstructorType"===a.type;u.push(It?" => ":": ",e.call(n,"returnType"))}return Tm(u);case"TSTypeOperator":return Tm([a.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":var Rt=tm(t.originalText,t.locStart(a),t.locEnd(a));return jm(Tm(["{",Bm(Tm([t.bracketSpacing?Lm:Pm,a.readonly?Tm([ny(a.readonly,"readonly")," "]):"",Ey(e,0,n),e.call(n,"typeParameter"),a.optional?ny(a.optional,"?"):"",": ",e.call(n,"typeAnnotation"),Rt&&t.semi?";":""])),_i.printDanglingComments(e,t,!0),t.bracketSpacing?Lm:Pm,"}"]),{shouldBreak:Rt});case"TSMethodSignature":return u.push(a.accessibility?Tm([a.accessibility," "]):"",a.export?"export ":"",a.static?"static ":"",a.readonly?"readonly ":"",a.computed?"[":"",e.call(n,"key"),a.computed?"]":"",Cy(e),fy(e,n,t,!1,!0)),a.returnType&&u.push(": ",e.call(n,"returnType")),jm(Tm(u));case"TSNamespaceExportDeclaration":return u.push("export as namespace ",e.call(n,"id")),t.semi&&u.push(";"),jm(Tm(u));case"TSEnumDeclaration":return Ky(a,t)&&u.push("declare "),a.modifiers&&u.push(Ey(e,0,n)),a.const&&u.push("const "),u.push("enum ",e.call(n,"id")," "),0===a.members.length?u.push(jm(Tm(["{",_i.printDanglingComments(e,t),Pm,"}"]))):u.push(jm(Tm(["{",Bm(Tm([Fm,ng(e,t,"members",n),Xm(t,"es5")?",":""])),_i.printDanglingComments(e,t,!0),Fm,"}"]))),Tm(u);case"TSEnumMember":return u.push(e.call(n,"id")),a.initializer&&u.push(" = ",e.call(n,"initializer")),Tm(u);case"TSImportEqualsDeclaration":return a.isExport&&u.push("export "),u.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&u.push(";"),jm(Tm(u));case"TSExternalModuleReference":return Tm(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":var Ht=e.getParentNode(),zt=ig(a.id),Wt="TSModuleDeclaration"===Ht.type,$t=a.body&&"TSModuleDeclaration"===a.body.type;if(Wt)u.push(".");else{!0===a.declare&&u.push("declare "),u.push(Ey(e,0,n));var qt=t.originalText.slice(t.locStart(a),t.locStart(a.id)),Ut="Identifier"===a.id.type&&"global"===a.id.name&&!/namespace|module/.test(qt);Ut||u.push(zt||/(^|\s)module(\s|$)/.test(qt)?"module ":"namespace ")}return u.push(e.call(n,"id")),$t?u.push(e.call(n,"body")):a.body?u.push(" ",jm(e.call(n,"body"))):u.push(i),Tm(u);case"PrivateName":return Tm(["#",e.call(n,"id")]);case"TSConditionalType":return ty(e,t,n,{beforeParts:function(){return[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")]},afterParts:function(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return Tm(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return u.push("#!",a.value,Fm),fm(t.originalText,a,t)&&u.push(Fm),Tm(u);case"NGRoot":return Tm([].concat(e.call(n,"node"),a.node.comments&&0!==a.node.comments.length?Tm([" //",a.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return jm(Sm(Tm([";",Lm]),e.map(function(e){return function(e){return wm(e.getValue(),function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(e)?n(e):Tm(["(",n(e),")"])},"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Tm([a.prefix,":",a.value]);case"NGMicrosyntax":return Tm(e.map(function(e,t){return Tm([0===t?"":ry(e.getValue(),t,a)?" ":Tm([";",Lm]),n(e)])},"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(a.name)?a.name:JSON.stringify(a.name);case"NGMicrosyntaxExpression":return Tm([e.call(n,"expression"),null===a.alias?"":Tm([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":var Jt=e.getName(),Vt=e.getParentNode(),Gt=ry(a,Jt,Vt)||(1===Jt&&("then"===a.key.name||"else"===a.key.name)||2===Jt&&"else"===a.key.name&&"NGMicrosyntaxKeyedExpression"===Vt.body[Jt-1].type&&"then"===Vt.body[Jt-1].key.name)&&"NGMicrosyntaxExpression"===Vt.body[0].type;return Tm([e.call(n,"key"),Gt?" ":": ",e.call(n,"expression")]);case"NGMicrosyntaxLet":return Tm(["let ",e.call(n,"key"),null===a.value?"":Tm([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return Tm([e.call(n,"key")," as ",e.call(n,"alias")]);default:throw new Error("unknown type: "+JSON.stringify(a.type))}}(e,t,n,r);if(!a||Vm(s))return s;var o=Qf(e),u=[];if("ClassMethod"===a.type||"ClassPrivateMethod"===a.type||"ClassProperty"===a.type||"TSAbstractClassProperty"===a.type||"ClassPrivateProperty"===a.type||"MethodDefinition"===a.type||"TSAbstractMethodDefinition"===a.type);else if(a.decorators&&a.decorators.length>0&&!(o&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(a.decorators[0]))){var c="ClassExpression"===a.type||"ClassDeclaration"===a.type||Zm(a,t)?Fm:Lm;e.each(function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,u.push(n(e),c)},"decorators"),o&&u.unshift(Fm)}else Kf(a)&&a.declaration&&a.declaration.decorators&&a.declaration.decorators.length>0&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(a.declaration.decorators[0])?e.each(function(e){var t="Decorator"===e.getValue().type?"":"@";u.push(t,n(e),Fm)},"declaration","decorators"):i=zf(e,t);var l=[];if(i&&l.unshift("("),l.push(s),i){var p=e.getValue();Mm(p)&&(l.push(" /*"),l.push(p.trailingComments[0].value.trimLeft()),l.push("*/"),p.trailingComments[0].printed=!0),l.push(")")}return u.length>0?jm(Tm(u.concat(l))):Tm(l)},embed:Mf,insertPragma:Dm,massageAstNode:Af,hasPrettierIgnore:function(e){return sm(e)||function(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&Ty(t)&&Ty(n)))return!1;for(var r=n.children.indexOf(t),a=null,i=r;i>0;i--){var s=n.children[i-1];if("JSXText"!==s.type||Fy(s)){a=s;break}}return a&&"JSXExpressionContainer"===a.type&&"JSXEmptyExpression"===a.expression.type&&a.expression.comments&&a.expression.comments.find(function(e){return"prettier-ignore"===e.value.trim()})}(e)},willPrintOwnComments:function(e){var t=e.getValue(),n=e.getParentNode();return(t&&(Ty(t)||Mm(t)||n&&"CallExpression"===n.type&&(Cm(t.leadingComments)||Cm(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&!sm(e)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){var n=e.getValue();switch(n.type){case"CommentBlock":case"Block":if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every(function(e){return"*"===e.trim()[0]})}(n)){var r=function(e){var t=e.value.split("\n");return Tm(["/*",Sm(Fm,t.map(function(e,n){return 0===n?e.trimRight():" "+(n x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:Fu.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Fu.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},Cg=["js","node"],Mg=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],Ag=["Jakefile"],kg=["node"],Tg={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Cg,extensions:Mg,filenames:Ag,interpreters:kg,languageId:183},Sg=Object.freeze({name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Cg,extensions:Mg,filenames:Ag,interpreters:kg,languageId:183,default:Tg}),Lg=[".jsx"],Fg={name:"JSX",type:"programming",group:"JavaScript",extensions:Lg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},Pg=Object.freeze({name:"JSX",type:"programming",group:"JavaScript",extensions:Lg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:Fg}),Yg=["ts"],jg=[".ts",".tsx"],Bg={name:"TypeScript",type:"programming",color:"#2b7489",aliases:Yg,extensions:jg,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},Og=Object.freeze({name:"TypeScript",type:"programming",color:"#2b7489",aliases:Yg,extensions:jg,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:Bg}),Ng=[".json",".avsc",".geojson",".gltf",".JSON-tmLanguage",".jsonl",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest"],Ig=[".arcconfig",".htmlhintrc",".tern-config",".tern-project","composer.lock","mcmod.info"],Rg={name:"JSON",type:"data",tmScope:"source.json",group:"JavaScript",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Ng,filenames:Ig,languageId:174},Hg=Object.freeze({name:"JSON",type:"data",tmScope:"source.json",group:"JavaScript",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Ng,filenames:Ig,languageId:174,default:Rg}),zg=["jsonc"],Wg=[".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],$g=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","tsconfig.json"],qg={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:zg,extensions:Wg,filenames:$g,languageId:423},Ug=Object.freeze({name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:zg,extensions:Wg,filenames:$g,languageId:423,default:qg}),Jg=[".json5"],Vg={name:"JSON5",type:"data",extensions:Jg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},Gg=Object.freeze({name:"JSON5",type:"data",extensions:Jg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:Vg}),Qg=Sg&&Tg||Sg,Kg=Pg&&Fg||Pg,Xg=Og&&Bg||Og,Zg=Hg&&Rg||Hg,eD=Ug&&qg||Ug,tD=Gg&&Vg||Gg,nD={languages:[Yu(Qg,{override:{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"]},extend:{interpreters:["nodejs"]}}),Yu(Qg,{override:{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}}),Yu(Kg,{override:{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]}}),Yu(Xg,{override:{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript","typescriptreact"]}}),Yu(Zg,{override:{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}}),Yu(Zg,{override:{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"]},extend:{filenames:[".prettierrc"]}}),Yu(eD,{override:{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"]},extend:{filenames:[".eslintrc"]}}),Yu(tD,{override:{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}})],options:wg,printers:{estree:gg,"estree-json":xg}},rD="[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312e\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u32fe\\u3300-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fea\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",aD="[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",iD="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0af0\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166d-\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e49\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc9\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]",sD=xa.getLast,oD=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],uD=oD.concat(["tableCell","paragraph","heading"]),cD=new RegExp(aD),lD=new RegExp(iD),pD={mapAst:function(e,t){return function e(n,r,a){a=a||[];var i=Object.assign({},t(n,r,a));return i.children&&(i.children=i.children.map(function(t,n){return e(t,n,[i].concat(a))})),i}(e,null,null)},splitText:function(e,t){var n="non-cjk",r="cj-letter",a="cjk-punctuation",i=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(rD,")\n(").concat(rD,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(function(e,t,o){t%2!=1?(0!==t&&t!==o.length-1||""!==e)&&e.split(new RegExp("(".concat(rD,")"))).forEach(function(e,t,i){(0!==t&&t!==i.length-1||""!==e)&&(t%2!=0?s(lD.test(e)?{type:"word",value:e,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:cD.test(e)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&s({type:"word",value:e,kind:n,hasLeadingPunctuation:lD.test(e[0]),hasTrailingPunctuation:lD.test(sD(e))}))}):i.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),i;function s(e){var t,s,o=sD(i);o&&"word"===o.type&&(o.kind===n&&e.kind===r&&!o.hasTrailingPunctuation||o.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(t=n,s=a,o.kind===t&&e.kind===s||o.kind===s&&e.kind===t||[o.value,e.value].some(function(e){return/\u3000/.test(e)})||i.push({type:"whitespace",value:""}))),i.push(e)}},punctuationPattern:iD,getFencedCodeBlockValue:function(e,t){var n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,a=new RegExp("^\\s{0,".concat(r,"}")),i=n.split("\n"),s=n[r],o=n.slice(r).match(new RegExp("^[".concat(s,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(o)).test(i[i.length-1].slice(c(i.length-1)));return i.slice(1,u?-1:void 0).map(function(e,t){return e.slice(c(t+1)).replace(a,"")}).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function(e,t){var n=F(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:n[1],marker:n[2],leadingSpaces:n[3]}},INLINE_NODE_TYPES:oD,INLINE_NODE_WRAPPER_TYPES:uD},dD=Va.builders,hD=dD.hardline,fD=dD.literalline,mD=dD.concat,yD=dD.markAsRoot,gD=Va.utils.mapDoc,DD=pD.getFencedCodeBlockValue,_D=function(e,t,n,r){var a=e.getValue();if("code"===a.type&&null!==a.lang){var i=a.lang.match(/^[A-Za-z0-9_-]+/),s=function(e){var t=Ft.getSupportInfo(null,{plugins:r.plugins}).languages.find(function(t){return t.name.toLowerCase()===e||t.aliases&&-1!==t.aliases.indexOf(e)||t.extensions&&t.extensions.find(function(t){return t.substring(1)===e})});return t?t.parsers[0]:null}(i?i[0]:"");if(s){var o=r.__inJsTemplate?"~":"`",u=o.repeat(Math.max(3,xa.getMaxContinuousCount(a.value,o)+1)),c=n(DD(a,r.originalText),{parser:s});return yD(mD([u,a.lang,hD,l(c),u]))}}if("yaml"===a.type)return yD(mD(["---",hD,a.value&&a.value.trim()?l(n(a.value,{parser:"yaml"})):"","---"]));switch(a.type){case"importExport":return n(a.value,{parser:"babel"});case"jsx":return n(a.value,{parser:"__js_expression"})}return null;function l(e){return gD(e,function(e){return"string"==typeof e&&e.includes("\n")?mD(e.split(/(\n)/g).map(function(e,t){return t%2==0?e:fD})):e})}},vD=p(function(e){var t=["format","prettier"];function n(e){var n="@(".concat(t.join("|"),")"),r=new RegExp(["\x3c!--\\s*".concat(n,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(n,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),a=e.match(r);return a&&0===a.index}e.exports={startWithPragma:n,hasPragma:function(e){return n(gs(e).content.trimLeft())},insertPragma:function(e){var n=gs(e),r="\x3c!-- @".concat(t[0]," --\x3e");return n.frontMatter?"".concat(n.frontMatter.raw,"\n\n").concat(r,"\n\n").concat(n.content):"".concat(r,"\n\n").concat(n.content)}}}),bD=pD.getOrderedListItemInfo,ED=pD.mapAst,xD=pD.splitText,wD=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function CD(e,t,n){return ED(e,function(e){if(!e.children)return e;var r=e.children.reduce(function(e,r){var a=e[e.length-1];return a&&t(a,r)?e.splice(-1,1,n(a,r)):e.push(r),e},[]);return Object.assign({},e,{children:r})})}var MD=function(e,t){return e=function(e){return CD(e,function(e,t){return"importExport"===e.type&&"importExport"===t.type},function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}})}(e=function(e){return ED(e,function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})})}(e=function(e,t){return ED(e,function(e,n,r){var a=F(r,1),i=a[0];if("text"!==e.type)return e;var s=e.value;return"paragraph"===i.type&&(0===n&&(s=s.trimLeft()),n===i.children.length-1&&(s=s.trimRight())),{type:"sentence",position:e.position,children:xD(s,t)}})}(e=function(e,t){return ED(e,function(e,r,a){if("list"===e.type&&0!==e.children.length){for(var i=0;i1)return!0;var s=n(a);if(-1===s)return!1;if(1===e.children.length)return s%t.tabWidth==0;var o=n(i);return s===o&&(s%t.tabWidth==0||bD(i,t.originalText).leadingSpaces.length>1)}(e)}return e});function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return ED(e,function(e,n,r){if("code"===e.type){var a=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=a,a)for(var i=0;iu?u:s));return TD([c,ND(c,e.call(n))])}})])}function e_(e,t){return function(e,t,n){n=n||function(){return!0};var r=-1,a=!0,i=!1,s=void 0;try{for(var o,u=t.children[Symbol.iterator]();!(a=(o=u.next()).done);a=!0){var c=o.value;if(c.type===e.type&&n(c)?r++:r=-1,c===e)return r}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}}(e,t,function(t){return t.ordered===e.ordered})}function t_(e,t){for(var n,r=[].concat(t),a=-1;n=e.getParentNode(++a);)if(-1!==r.indexOf(n.type))return a;return-1}function n_(e,t){var n=t_(e,t);return-1===n?null:e.getParentNode(n)}function r_(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return YD;var r="always"===n.proseWrap&&!n_(e,KD);return""!==t?r?LD:" ":r?jD:""}function a_(e,t,n){var r=[],a=null,i=e.getValue().children;return i.forEach(function(e,t){switch(o_(e)){case"start":null===a&&(a={index:t,offset:e.position.end.offset});break;case"end":null!==a&&(r.push({start:a,end:{index:t,offset:e.position.start.offset}}),a=null)}}),i_(e,t,n,{processor:function(e,a){if(0!==r.length){var s=r[0];if(a===s.start.index)return TD([i[s.start.index].value,t.originalText.slice(s.start.offset,s.end.offset),i[s.end.index].value]);if(s.start.index$/);return null!==t&&(t[1]?t[1]:"next")}function u_(e,t){var n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function c_(e,t){var n=[" "].concat(t||[]);return new RegExp(n.map(function(e){return"\\".concat(e)}).join("|")).test(e)?"<".concat(e,">"):e}function l_(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+l_(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var r=e.split("'").length-1,a=e.split('"').length-1,i=r>a?'"':a>r?"'":t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}function p_(e){return e.reduce(function(e,t){var n=xa.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}var d_={preprocess:MD,print:function(e,t,n){var r,a=e.getValue();if(function(e){var t=n_(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return TD(qD(t.originalText.slice(a.position.start.offset,a.position.end.offset),t).map(function(n){return"word"===n.type?n.value:""===n.value?"":r_(e,n.value,t)}));switch(a.type){case"root":return 0===a.children.length?"":TD([(r=a_(e,t,n),HD(r,function(e){if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach(function(e){"concat"===e.type?t.push.apply(t,e.parts):""!==e&&t.push(e)}),Object.assign({},e,{parts:p_(t)})})),-1===QD.indexOf(s_(a).type)?YD:""]);case"paragraph":return i_(e,t,n,{postprocessor:OD});case"sentence":return i_(e,t,n);case"word":return a.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(UD,")(_+)"),"(_+)(".concat(UD,"|$)")].join("|"),"g"),function(e,t,n,r,a){return(n?"".concat(t).concat(n):"".concat(r).concat(a)).replace(/_/g,"\\_")});case"whitespace":var i=e.getParentNode(),s=i.children.indexOf(a),o=i.children[s+1],u=o&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(o.value)?"never":t.proseWrap;return r_(e,a.value,{proseWrap:u});case"emphasis":var c=e.getParentNode(),l=c.children.indexOf(a),p=c.children[l-1],d=c.children[l+1],h=p&&"sentence"===p.type&&p.children.length>0&&"word"===xa.getLast(p.children).type&&!xa.getLast(p.children).hasTrailingPunctuation||d&&"sentence"===d.type&&d.children.length>0&&"word"===d.children[0].type&&!d.children[0].hasLeadingPunctuation||n_(e,"emphasis")?"*":"_";return TD([h,i_(e,t,n),h]);case"strong":return TD(["**",i_(e,t,n),"**"]);case"delete":return TD(["~~",i_(e,t,n),"~~"]);case"inlineCode":var f=xa.getMinNotPresentContinuousCount(a.value,"`"),m="`".repeat(f||1),y=f?" ":"";return TD([m,y,a.value,y,m]);case"link":switch(t.originalText[a.position.start.offset]){case"<":var g=a.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(a.position.start.offset+1,a.position.start.offset+1+"mailto:".length)?a.url.slice("mailto:".length):a.url;return TD(["<",g,">"]);case"[":return TD(["[",i_(e,t,n),"](",c_(a.url,")"),l_(a.title,t),")"]);default:return t.originalText.slice(a.position.start.offset,a.position.end.offset)}case"image":return TD(["![",a.alt||"","](",c_(a.url,")"),l_(a.title,t),")"]);case"blockquote":return TD(["> ",ND("> ",i_(e,t,n))]);case"heading":return TD(["#".repeat(a.depth)+" ",i_(e,t,n)]);case"code":if(a.isIndented){var D=" ".repeat(4);return ND(D,TD([D,TD(GD(a.value,YD))]))}var _=t.__inJsTemplate?"~":"`",v=_.repeat(Math.max(3,xa.getMaxContinuousCount(a.value,_)+1));return TD([v,a.lang||"",YD,TD(GD(WD(a,t.originalText),YD)),YD,v]);case"yaml":case"toml":return t.originalText.slice(a.position.start.offset,a.position.end.offset);case"html":var b=e.getParentNode(),E="root"===b.type&&xa.getLast(b.children)===a?a.value.trimRight():a.value,x=/^$/.test(E);return TD(GD(E,x?YD:PD(FD)));case"list":var w=e_(a,e.getParentNode()),C=a.ordered&&a.children.length>1&&1==+$D(a.children[1],t.originalText).numberText;return i_(e,t,n,{processor:function(e,r){var i,s=(i=a.ordered?(0===r?a.start:C?1:a.start+r)+(w%2==0?". ":") "):w%2==0?"- ":"* ",a.isAligned||a.hasIndentedCodeblock?function(e,t){var n,r=0==(n=e.length%t.tabWidth)?0:t.tabWidth-n;return e+" ".repeat(r>=4?0:r)}(i,t):i);return TD([s,ND(" ".repeat(s.length),ZD(e,t,n,s))])}});case"thematicBreak":var M=t_(e,"list");return-1===M?"---":e_(e.getParentNode(M),e.getParentNode(M+1))%2==0?"***":"---";case"linkReference":return TD(["[",i_(e,t,n),"]","full"===a.referenceType?TD(["[",a.identifier,"]"]):"collapsed"===a.referenceType?"[]":""]);case"imageReference":switch(a.referenceType){case"full":return TD(["![",a.alt||"","][",a.identifier,"]"]);default:return TD(["![",a.alt,"]","collapsed"===a.referenceType?"[]":""])}case"definition":var A="always"===t.proseWrap?LD:" ";return RD(TD([TD(["[",a.identifier,"]:"]),ID(TD([A,c_(a.url),null===a.title?"":TD([A,l_(a.title,t,!1)])]))]));case"footnote":return TD(["[^",i_(e,t,n),"]"]);case"footnoteReference":return TD(["[^",a.identifier,"]"]);case"footnoteDefinition":var k=e.getParentNode().children[e.getName()+1],T=1===a.children.length&&"paragraph"===a.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&a.children[0].position.start.line===a.children[0].position.end.line);return TD(["[^",a.identifier,"]: ",T?i_(e,t,n):RD(TD([ND(" ".repeat(t.tabWidth),i_(e,t,n,{processor:function(e,t){return 0===t?RD(TD([jD,jD,e.call(n)])):e.call(n)}})),k&&"footnoteDefinition"===k.type?jD:""]))]);case"table":return function(e,t,n){var r=YD.parts[0],a=e.getValue(),i=[];e.map(function(e){var r=[];e.map(function(e){r.push(zD(e.call(n),t).formatted)},"children"),i.push(r)},"children");var s=i.reduce(function(e,t){return e.map(function(e,n){return Math.max(e,xa.getStringWidth(t[n]))})},i[0].map(function(){return 3})),o=SD(r,[l(i[0]),c(),SD(r,i.slice(1).map(function(e){return l(e)}))]);if("never"!==t.proseWrap)return TD([kD,o]);var u=SD(r,[l(i[0],!0),c(!0),SD(r,i.slice(1).map(function(e){return l(e,!0)}))]);return TD([kD,RD(BD(u,o))]);function c(e){return TD(["| ",SD(" | ",s.map(function(t,n){var r=e?3:t;switch(a.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}}))," |"])}function l(e,t){return TD(["| ",SD(" | ",t?e:e.map(function(e,t){switch(a.align[t]){case"right":return n=e,r=s[t],i=r-xa.getStringWidth(n),TD([" ".repeat(i),n]);case"center":return function(e,t){var n=t-xa.getStringWidth(e),r=Math.floor(n/2),a=n-r;return TD([" ".repeat(r),e," ".repeat(a)])}(e,s[t]);default:return function(e,t){var n=t-xa.getStringWidth(e);return TD([e," ".repeat(n)])}(e,s[t])}var n,r,i}))," |"])}}(e,t,n);case"tableCell":return i_(e,t,n);case"break":return/\s/.test(t.originalText[a.position.start.offset])?TD([" ",PD(FD)]):TD(["\\",YD]);case"liquidNode":return TD(GD(a.value,YD));case"importExport":case"jsx":return a.value;case"math":return TD(["$$",YD,a.value?TD([TD(GD(a.value,YD)),YD]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(a),t.locEnd(a));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(a.type)))}},embed:_D,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&vD.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===o_(e.getParentNode().children[t-1])},insertPragma:vD.insertPragma},h_={proseWrap:Fu.proseWrap,singleQuote:Fu.singleQuote},f_=["pandoc"],m_=[".md",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".workbook"],y_={name:"Markdown",type:"prose",aliases:f_,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:m_,tmScope:"source.gfm",languageId:222},g_=Object.freeze({name:"Markdown",type:"prose",aliases:f_,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:m_,tmScope:"source.gfm",languageId:222,default:y_}),D_={languages:[Yu(g_&&y_||g_,{override:{since:"1.8.0",parsers:["remark"],vscodeLanguageIds:["markdown"]},extend:{filenames:["README"]}}),Yu({name:"MDX",extensions:[".mdx"]},{override:{since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"]}})],options:h_,printers:{mdast:d_}},__=function(e){return/^\s*@(prettier|format)\s*$/.test(e)},v_=function(e){return"# @format\n\n".concat(e)},b_=xa.getLast;function E_(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function x_(e){return"prettier-ignore"===e.value.trim()}function w_(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function C_(e){return e&&e.middleComments&&0!==e.middleComments.length}function M_(e){return e&&e.indicatorComment}function A_(e){return e&&e.trailingComment}function k_(e){return e&&e.endComments&&0!==e.endComments.length}function T_(e){var t=[],n=void 0,r=!0,a=!1,i=void 0;try{for(var s,o=e.split(/( +)/g)[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;" "!==u?" "===n?t.push(u):t.push((t.pop()||"")+u):void 0===n&&t.unshift(""),n=u}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var S_={getLast:b_,getAncestorCount:function(e,t){for(var n=0,r=e.stack.length-1,a=0;a=0&&0===t[r].length;r--)n++;return 0===n?t:n>=2&&!a?t.slice(0,-(n-1)):t.slice(0,-n)}},getFlowScalarLineContents:function(e,t,n){var r=t.split("\n").map(function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimRight():e.trimLeft()});return"preserve"===n.proseWrap?r.map(function(e){return 0===e.length?[]:[e]}):r.map(function(e){return 0===e.length?[]:T_(e)}).reduce(function(t,n,a){return 0===a||0===r[a-1].length||0===n.length||"quoteDouble"===e&&b_(b_(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])},[]).map(function(e){return"never"===n.proseWrap?[e.join(" ")]:e})},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(b_(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var n=e.getParentNode();return k_(n.head)&&x_(b_(n.head.endComments))}return w_(t)&&x_(b_(t.leadingComments))},hasLeadingComments:w_,hasMiddleComments:C_,hasIndicatorComment:M_,hasTrailingComment:A_,hasEndComments:k_},L_=v_,F_=__,P_=S_.getAncestorCount,Y_=S_.getBlockValueLineContents,j_=S_.getFlowScalarLineContents,B_=S_.getLast,O_=S_.getLastDescendantNode,N_=S_.hasLeadingComments,I_=S_.hasMiddleComments,R_=S_.hasIndicatorComment,H_=S_.hasTrailingComment,z_=S_.hasEndComments,W_=S_.hasPrettierIgnore,$_=S_.isLastDescendantNode,q_=S_.isNextLineEmpty,U_=S_.isNode,J_=S_.isEmptyNode,V_=S_.defineShortcut,G_=S_.mapNode,Q_=Va.builders,K_=Q_.conditionalGroup,X_=Q_.breakParent,Z_=Q_.concat,ev=Q_.dedent,tv=Q_.dedentToRoot,nv=Q_.fill,rv=Q_.group,av=Q_.hardline,iv=Q_.ifBreak,sv=Q_.join,ov=Q_.line,uv=Q_.lineSuffix,cv=Q_.literalline,lv=Q_.markAsRoot,pv=Q_.softline,dv=xa.replaceEndOfLineWith;function hv(e){switch(e.type){case"document":V_(e,"head",function(){return e.children[0]}),V_(e,"body",function(){return e.children[1]});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":V_(e,"content",function(){return e.children[0]});break;case"mappingItem":case"flowMappingItem":V_(e,"key",function(){return e.children[0]}),V_(e,"value",function(){return e.children[1]})}return e}function fv(e,t,n,r,a){switch(e.type){case"root":return Z_([sv(av,n.map(function(t,r){var i=e.children[r],s=e.children[r+1];return Z_([a(t),gv(i,s)?Z_([av,"...",H_(i)?Z_([" ",n.call(a,"trailingComment")]):""]):!s||H_(s.head)?"":Z_([av,"---"])])},"children")),0===e.children.length||(C=O_(e),U_(C,["blockLiteral","blockFolded"])&&"keep"===C.chomping)?"":av]);case"document":var i=t.children[n.getName()+1];return sv(av,["head"===Dv(e,i,t,r)?sv(av,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(a,"head"),Z_(["---",H_(e.head)?Z_([" ",n.call(a,"head","trailingComment")]):""])].filter(Boolean)):"",(w=e,0!==w.body.children.length||z_(w.body)?n.call(a,"body"):"")].filter(Boolean));case"documentHead":return sv(av,[].concat(n.map(a,"children"),n.map(a,"endComments")));case"documentBody":var s=sv(av,n.map(a,"children")).parts,o=sv(av,n.map(a,"endComments")).parts,u=0===s.length||0===o.length?"":function(e){return U_(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":Z_([av,av]):av}(O_(e));return Z_([].concat(s,u,o));case"directive":return Z_(["%",sv(" ",[e.name].concat(e.parameters))]);case"comment":return Z_(["#",e.value]);case"alias":return Z_(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return Z_(["&",e.value]);case"plain":return Ev(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var c=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&c.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(c)){var l="quoteDouble"===e.type?'"':"'";return Z_([l,Ev(e.type,c,r),l])}if(c.includes('"'))return Z_(["'",Ev(e.type,"quoteDouble"===e.type?c.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):c,r),"'"]);if(c.includes("'"))return Z_(['"',Ev(e.type,"quoteSingle"===e.type?c.replace(/''/g,"'"):c,r),'"']);var p=r.singleQuote?"'":'"';return Z_([p,Ev(e.type,c,r),p]);case"blockFolded":case"blockLiteral":var d=P_(n,function(e){return U_(e,["sequence","mapping"])}),h=$_(n);return Z_(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",R_(e)?Z_([" ",n.call(a,"indicatorComment")]):"",(null===e.indent?ev:tv)(mv(null===e.indent?r.tabWidth:e.indent-1+d,Z_(Y_(e,{parentIndent:d,isLastDescendant:h,options:r}).reduce(function(t,n,r,a){return t.concat(0===r?av:"",nv(sv(ov,n).parts),r!==a.length-1?0===n.length?av:lv(cv):"keep"===e.chomping&&h?0===n.length?tv(av):tv(cv):"")},[]))))]);case"sequence":return sv(av,n.map(a,"children"));case"sequenceItem":return Z_(["- ",mv(2,e.content?n.call(a,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(a,"content"):"";case"mapping":return sv(av,n.map(a,"children"));case"mappingItem":case"flowMappingItem":var f=J_(e.key),m=J_(e.value);if(f&&m)return Z_([": "]);var y=n.call(a,"key"),g=n.call(a,"value");if(m)return"flowMappingItem"===e.type&&"flowMapping"===t.type?y:"mappingItem"!==e.type||!_v(e.key.content,r)||H_(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?Z_(["? ",mv(2,y)]):Z_([y,vv(e)?" ":"",":"]);if(f)return Z_([": ",mv(2,g)]);var D=Symbol("mappingKey");return N_(e.value)||!yv(e.key.content)?Z_(["? ",mv(2,y),av,sv("",n.map(a,"value","leadingComments").map(function(e){return Z_([e,av])})),": ",mv(2,g)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||N_(e.key.content)||I_(e.key.content)||H_(e.key.content)||z_(e.key)||N_(e.value.content)||I_(e.value.content)||z_(e.value)||!_v(e.value.content,r)?K_([Z_([rv(Z_([iv("? "),rv(mv(2,y),{id:D})])),iv(Z_([av,": ",mv(2,g)]),M(Z_([vv(e)?" ":"",":",N_(e.value.content)||z_(e.value)&&e.value.content&&!U_(e.value.content,["mapping","sequence"])||"mapping"===t.type&&H_(e.key.content)&&yv(e.value.content)||U_(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?av:e.value.content?ov:"",g])),{groupId:D})])]):Z_([y,vv(e)?" ":"",": ",g]);case"flowMapping":case"flowSequence":var _="flowMapping"===e.type?"{":"[",v="flowMapping"===e.type?"}":"]",b="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?ov:pv,E=0!==e.children.length&&("flowMappingItem"===(x=B_(e.children)).type&&J_(x.key)&&J_(x.value));return Z_([_,M(Z_([b,Z_(n.map(function(t,n){return Z_([a(t),n===e.children.length-1?"":Z_([",",ov,e.children[n].position.start.line!==e.children[n+1].position.start.line?bv(t,r.originalText):""])])},"children")),iv(",","")])),E?"":b,v]);case"flowSequenceItem":return n.call(a,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var x,w,C;function M(e){return Q_.align(" ".repeat(r.tabWidth),e)}}function mv(e,t){return"number"==typeof e&&e>0?Q_.align(" ".repeat(e),t):Q_.align(e,t)}function yv(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function gv(e,t){return H_(e)||t&&(0!==t.head.children.length||z_(t.head))}function Dv(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||z_(e.head)||H_(e.head)?"head":!gv(e,t)&&(!!t&&"root")}function _v(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function vv(e){return e.key.content&&"alias"===e.key.content.type}function bv(e,t){var n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&q_(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,pv):""}function Ev(e,t,n){var r=j_(e,t,n);return sv(av,r.map(function(e){return nv(sv(ov,e).parts)}))}var xv={preprocess:function(e){return G_(e,hv)},print:function(e,t,n){var r=e.getValue(),a=e.getParentNode(),i=r.tag?e.call(n,"tag"):"",s=r.anchor?e.call(n,"anchor"):"",o=U_(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!$_(e)?bv(e,t.originalText):"";return Z_(["mappingValue"!==r.type&&N_(r)?Z_([sv(av,e.map(n,"leadingComments")),av]):"",i,i&&s?" ":"",s,i||s?U_(r,["sequence","mapping"])&&!I_(r)?av:" ":"",I_(r)?Z_([1===r.middleComments.length?"":av,sv(av,e.map(n,"middleComments")),av]):"",W_(e)?Z_(dv(t.originalText.slice(r.position.start.offset,r.position.end.offset),cv)):rv(fv(r,a,e,t,n)),H_(r)&&!U_(r,["document","documentHead"])?uv(Z_(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&yv(r)?"":X_,e.call(n,"trailingComment")])):"",o,z_(r)&&!U_(r,["documentHead","documentBody"])?mv("sequenceItem"===r.type?2:0,Z_([av,sv(av,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(U_(t))switch(delete t.position,t.type){case"comment":if(F_(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:L_},wv={bracketSpacing:Fu.bracketSpacing,singleQuote:Fu.singleQuote,proseWrap:Fu.proseWrap},Cv=["yml"],Mv=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],Av=[".clang-format",".clang-tidy",".gemrc","glide.lock"],kv={name:"YAML",type:"data",tmScope:"source.yaml",aliases:Cv,extensions:Mv,filenames:Av,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},Tv=Object.freeze({name:"YAML",type:"data",tmScope:"source.yaml",aliases:Cv,extensions:Mv,filenames:Av,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:kv}),Sv={languages:[Yu(Tv&&kv||Tv,{override:{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]}})],printers:{yaml:xv},options:wv},Lv=Tt.version,Fv=Ft.getSupportInfo,Pv=[Qu,gc,Ic,Nh,nD,D_,Sv],Yv=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function jv(e){return function(){var t=Array.from(arguments),n=t[1]&&t[1].plugins||[];return Yv(n)||(n=Object.values(n)),t[1]=Object.assign({},t[1],{plugins:Pv.concat(n)}),e.apply(null,t)}}var Bv=jv(Qi);return{formatWithCursor:Bv,format:function(e,t){return Bv(e,t).formatted},check:function(e,t){return Bv(e,t).formatted===e},doc:Va,getSupportInfo:jv(Fv),version:Lv,util:Qa,__debug:{parse:jv(Ki),formatAST:jv(Xi),formatDoc:jv(Zi),printToDoc:jv(es),printDocToString:jv(ts)}}},e.exports=n()}).call(this,n(7))},function(e,t,n){e.exports=function(){"use strict";var e=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=n(function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var n=t.filter(function(e){return"\r\n"===e}).length;return n>t.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),a={EOL:"\n"},i=Object.freeze({default:a}),s=i&&a||i,o=n(function(e,t){var n,a;function i(){return n=(e=r)&&e.__esModule?e:{default:e};var e}function o(){return a=s}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(l);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(l);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return y(e).pragmas},t.parseWithComments=y,t.print=function(e){var t=e.comments,r=void 0===t?"":t,s=e.pragmas,u=void 0===s?{}:s,c=(0,(n||i()).default)(r)||(a||o()).EOL,l=Object.keys(u),p=l.map(function(e){return g(e,u[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+c}).join("");if(!r){if(0===l.length)return"";if(1===l.length&&!Array.isArray(u[l[0]])){var d=u[l[0]];return"".concat("/**"," ").concat(g(l[0],d)[0]).concat(" */")}}var h=r.split(c).map(function(e){return"".concat(" *"," ").concat(e)}).join(c)+c;return"/**"+c+(r?h:"")+(r&&l.length?" *"+c:"")+p+" */"};var u=/\*\/$/,c=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,p=/(^|\s+)\/\/([^\r\n]*)/g,d=/^(\r?\n)+/,h=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function y(e){var t=(0,(n||i()).default)(e)||(a||o()).EOL;e=e.replace(c,"").replace(u,"").replace(m,"$1");for(var r="";r!==e;)r=e,e=e.replace(h,"".concat(t,"$1 $2").concat(t));e=e.replace(d,"").trimRight();for(var s,l=Object.create(null),y=e.replace(f,"").replace(d,"").trimRight();s=f.exec(e);){var g=s[2].replace(p,"");"string"==typeof l[s[1]]||Array.isArray(l[s[1]])?l[s[1]]=[].concat(l[s[1]],g):l[s[1]]=g}return{comments:y,pragmas:l}}function g(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});t(o);var u=function(e){return e.length>0?e[e.length-1]:null},c={locStart:function e(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var n=t.nodes&&u(t.nodes);if(n&&t.source&&!t.source.end&&(t=n),t.__location)return t.__location.endOffset;var r=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(r,e(t.typeAnnotation)):t.loc&&!r?t.loc.end:r}};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(function(e){e.exports=function(e){e=Object.assign({onlyFirst:!1},e);var t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}}),d=n(function(e){e.exports=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}});function h(e){return function(t,n,r){var a=r&&r.backwards;if(!1===n)return!1;for(var i=t.length,s=n;s>=0&&s=127&&a<=159||a>=768&&a<=879||(a>65535&&r++,n+=d(a)?2:1)}return n}}),h(/\s/),h(" \t"),h(",; \t"),h(/[^\r\n]/);var f={};[["|>"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){f[e]=t})});var m=u,y=function(e,t){return function e(t,n){if(t&&"object"===l(t))if(Array.isArray(t)){var r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;e(u,n)}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}}else if("string"==typeof t.type){for(var c=Object.keys(t),p=0;p",{beforeExpr:a}),template:new i("template"),ellipsis:new i("...",{beforeExpr:a}),backQuote:new i("`",{startsExpr:!0}),dollarBraceL:new i("${",{beforeExpr:a,startsExpr:!0}),at:new i("@"),hash:new i("#"),interpreterDirective:new i("#!..."),eq:new i("=",{beforeExpr:a,isAssign:!0}),assign:new i("_=",{beforeExpr:a,isAssign:!0}),incDec:new i("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new i("!",{beforeExpr:a,prefix:!0,startsExpr:!0}),tilde:new i("~",{beforeExpr:a,prefix:!0,startsExpr:!0}),pipeline:new o("|>",0),nullishCoalescing:new o("??",1),logicalOR:new o("||",1),logicalAND:new o("&&",2),bitwiseOR:new o("|",3),bitwiseXOR:new o("^",4),bitwiseAND:new o("&",5),equality:new o("==/!=",6),relational:new o("",7),bitShift:new o("<>",8),plusMin:new i("+/-",{beforeExpr:a,binop:9,prefix:!0,startsExpr:!0}),modulo:new o("%",10),star:new o("*",10),slash:new o("/",10),exponent:new i("**",{beforeExpr:a,binop:11,rightAssociative:!0})},c={break:new s("break"),case:new s("case",{beforeExpr:a}),catch:new s("catch"),continue:new s("continue"),debugger:new s("debugger"),default:new s("default",{beforeExpr:a}),do:new s("do",{isLoop:!0,beforeExpr:a}),else:new s("else",{beforeExpr:a}),finally:new s("finally"),for:new s("for",{isLoop:!0}),function:new s("function",{startsExpr:!0}),if:new s("if"),return:new s("return",{beforeExpr:a}),switch:new s("switch"),throw:new s("throw",{beforeExpr:a,prefix:!0,startsExpr:!0}),try:new s("try"),var:new s("var"),let:new s("let"),const:new s("const"),while:new s("while",{isLoop:!0}),with:new s("with"),new:new s("new",{beforeExpr:a,startsExpr:!0}),this:new s("this",{startsExpr:!0}),super:new s("super",{startsExpr:!0}),class:new s("class",{startsExpr:!0}),extends:new s("extends",{beforeExpr:a}),export:new s("export"),import:new s("import",{startsExpr:!0}),yield:new s("yield",{beforeExpr:a,startsExpr:!0}),null:new s("null",{startsExpr:!0}),true:new s("true",{startsExpr:!0}),false:new s("false",{startsExpr:!0}),in:new s("in",{beforeExpr:a,binop:7}),instanceof:new s("instanceof",{beforeExpr:a,binop:7}),typeof:new s("typeof",{beforeExpr:a,prefix:!0,startsExpr:!0}),void:new s("void",{beforeExpr:a,prefix:!0,startsExpr:!0}),delete:new s("delete",{beforeExpr:a,prefix:!0,startsExpr:!0})};function l(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}Object.keys(c).forEach(function(e){u["_"+e]=c[e]});var p=/\r\n?|\n|\u2028|\u2029/,d=new RegExp(p.source,"g");function h(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var f=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function m(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var y=function(e,t,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r},g={braceStatement:new y("{",!1),braceExpression:new y("{",!0),templateQuasi:new y("${",!1),parenStatement:new y("(",!1),parenExpression:new y("(",!0),template:new y("`",!0,!0,function(e){return e.readTmplToken()}),functionExpression:new y("function",!0),functionStatement:new y("function",!1)};function D(e){var t=e.split(" ");return function(e){return t.indexOf(e)>=0}}u.parenR.updateContext=u.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===g.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},u.name.updateContext=function(e){var t=!1;e!==u.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.state.inGenerator)&&(t=!0),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},u.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?g.braceStatement:g.braceExpression),this.state.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.state.context.push(g.templateQuasi),this.state.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.state.context.push(t?g.parenStatement:g.parenExpression),this.state.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u.semi||e===u._else||e===u._return&&p.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(e===u.colon||e===u.braceL)&&this.curContext()===g.b_stat?this.state.context.push(g.functionStatement):this.state.context.push(g.functionExpression),this.state.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===g.template?this.state.context.pop():this.state.context.push(g.template),this.state.exprAllowed=!1};var _={6:D("enum await"),strict:D("implements interface let package private protected public static yield"),strictBind:D("eval arguments")},v=D("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 let const class extends export import yield super"),b="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",E="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",x=new RegExp("["+b+"]"),w=new RegExp("["+b+E+"]");b=E=null;var C=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,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],M=[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 A(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function k(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&x.test(String.fromCharCode(e)):A(e,C)))}function T(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&w.test(String.fromCharCode(e)):A(e,C)||A(e,M))))}var S=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function L(e){return"type"===e.importKind||"typeof"===e.importKind}function F(e){return(e.type===u.name||!!e.type.keyword)&&"from"!==e.value}var P={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},Y=/\*?\s*@((?:no)?flow)\b/,j={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},B=/^[\da-fA-F]+$/,O=/^\d+$/;function N(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function I(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return I(e.object)+"."+I(e.property);throw new Error("Node had unexpected type: "+e.type)}g.j_oTag=new y("...",!0,!0),u.jsxName=new i("jsxName"),u.jsxText=new i("jsxText",{beforeExpr:!0}),u.jsxTagStart=new i("jsxTagStart",{startsExpr:!0}),u.jsxTagEnd=new i("jsxTagEnd"),u.jsxTagStart.updateContext=function(){this.state.context.push(g.j_expr),this.state.context.push(g.j_oTag),this.state.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===g.j_oTag&&e===u.slash||t===g.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===g.j_expr):this.state.exprAllowed=!0};var R={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1},H=function(e,t){this.line=e,this.column=t},z=function(e,t){this.start=e,this.end=t};function W(e){return e[e.length-1]}var $=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.raise=function(e,t,n){var r=void 0===n?{}:n,a=r.missingPluginNames,i=r.code,s=function(e,t){var n,r=1,a=0;for(d.lastIndex=0;(n=d.exec(e))&&n.index0)){var t,n,r,a,i,s=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(r=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(s.length>0){var o=W(s);o.trailingComments&&o.trailingComments[0].start>=e.end&&(r=o.trailingComments,delete o.trailingComments)}for(s.length>0&&W(s).start>=e.start&&(t=s.pop());s.length>0&&W(s).start>=e.start;)n=s.pop();if(!n&&t&&(n=t),t&&this.state.leadingComments.length>0){var u=W(this.state.leadingComments);if("ObjectProperty"===t.type){if(u.start>=e.start&&this.state.commentPreviousNode){for(i=0;i0&&(t.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){var c=W(e.arguments);if(c&&u.start>=c.start&&u.end<=e.end&&this.state.commentPreviousNode){for(i=0;i0&&(c.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}}if(n){if(n.leadingComments)if(n!==e&&n.leadingComments.length>0&&W(n.leadingComments).end<=e.start)e.leadingComments=n.leadingComments,delete n.leadingComments;else for(a=n.leadingComments.length-2;a>=0;--a)if(n.leadingComments[a].end<=e.start){e.leadingComments=n.leadingComments.splice(0,a+1);break}}else if(this.state.leadingComments.length>0)if(W(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(i=0;i0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(a=0;ae.start);a++);var l=this.state.leadingComments.slice(0,a);l.length&&(e.leadingComments=l),0===(r=this.state.leadingComments.slice(a)).length&&(r=null)}this.state.commentPreviousNode=e,r&&(r.length&&r[0].start>=e.start&&W(r).end<=e.end?e.innerComments=r:e.trailingComments=r),s.push(e)}},t}(function(){function e(){this.sawUnambiguousESM=!1}var t=e.prototype;return t.isReservedWord=function(e){return"await"===e?this.inModule:_[6](e)},t.hasPlugin=function(e){return Object.hasOwnProperty.call(this.plugins,e)},t.getPluginOption=function(e,t){if(this.hasPlugin(e))return this.plugins[e][t]},e}())),q=function(){function e(){}var t=e.prototype;return t.init=function(e,t){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=!1,this.inFunction=!1,this.inParameters=!1,this.maybeInArrowParameters=!1,this.inGenerator=!1,this.inAsync=!1,this.inPipeline=!1,this.inPropertyName=!1,this.inType=!1,this.inClassProperty=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isIterator=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldOrAwaitInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=e.startLine,this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[g.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},t.curPosition=function(){return new H(this.curLine,this.pos-this.lineStart)},t.clone=function(t){var n=this,r=new e;return Object.keys(this).forEach(function(e){var a=n[e];t&&"context"!==e||!Array.isArray(a)||(a=a.slice()),r[e]=a}),r},e}(),U=function(e){return e>=48&&e<=57},J={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},V={bin:[48,49]};V.oct=V.bin.concat([50,51,52,53,54,55]),V.dec=V.oct.concat([56,57]),V.hex=V.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);var G=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.addExtra=function(e,t,n){e&&((e.extra=e.extra||{})[t]=n)},n.isRelational=function(e){return this.match(u.relational)&&this.state.value===e},n.isLookaheadRelational=function(e){var t=this.lookahead();return t.type==u.relational&&t.value==e},n.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,u.relational)},n.eatRelational=function(e){return!!this.isRelational(e)&&(this.next(),!0)},n.isContextual=function(e){return this.match(u.name)&&this.state.value===e&&!this.state.containsEsc},n.isLookaheadContextual=function(e){var t=this.lookahead();return t.type===u.name&&t.value===e},n.eatContextual=function(e){return this.isContextual(e)&&this.eat(u.name)},n.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},n.canInsertSemicolon=function(){return this.match(u.eof)||this.match(u.braceR)||this.hasPrecedingLineBreak()},n.hasPrecedingLineBreak=function(){return p.test(this.input.slice(this.state.lastTokEnd,this.state.start))},n.isLineTerminator=function(){return this.eat(u.semi)||this.canInsertSemicolon()},n.semicolon=function(){this.isLineTerminator()||this.unexpected(null,u.semi)},n.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},n.unexpected=function(e,t){throw void 0===t&&(t="Unexpected token"),"string"!=typeof t&&(t='Unexpected token, expected "'+t.label+'"'),this.raise(null!=e?e:this.state.start,t)},n.expectPlugin=function(e,t){if(!this.hasPlugin(e))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling the parser plugin: '"+e+"'",{missingPluginNames:[e]});return!0},n.expectOnePlugin=function(e,t){var n=this;if(!e.some(function(e){return n.hasPlugin(e)}))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '"+e.join(", ")+"'",{missingPluginNames:e})},t}(function(e){function t(t,n){var r;return(r=e.call(this)||this).state=new q,r.state.init(t,n),r.isLookahead=!1,r}r(t,e);var n=t.prototype;return n.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new z(e.startLoc,e.endLoc)}(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},n.eat=function(e){return!!this.match(e)&&(this.next(),!0)},n.match=function(e){return this.state.type===e},n.isKeyword=function(e){return v(e)},n.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state;return this.state=e,t},n.setStrict=function(e){if(this.state.strict=e,this.match(u.num)||this.match(u.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(u.eof):e.override?e.override(this):this.readToken(this.input.codePointAt(this.state.pos))},n.readToken=function(e){k(e)||92===e?this.readWord():this.getTokenFromCode(e)},n.pushComment=function(e,t,n,r,a,i){var s={type:e?"CommentBlock":"CommentLine",value:t,start:n,end:r,loc:new z(a,i)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(s),this.state.comments.push(s),this.addComment(s))},n.skipBlockComment=function(){var e,t=this.state.curPosition(),n=this.state.pos,r=this.input.indexOf("*/",this.state.pos+=2);for(-1===r&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=r+2,d.lastIndex=n;(e=d.exec(this.input))&&e.index=48&&t<=57&&this.raise(this.state.pos,"Unexpected digit after hash token"),(this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(u.hash);"smart"===this.getPluginOption("pipelineOperator","proposal")?this.finishOp(u.hash,1):this.raise(this.state.pos,"Unexpected character '#'")}},n.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)this.readNumber(!0);else{var t=this.input.charCodeAt(this.state.pos+2);46===e&&46===t?(this.state.pos+=3,this.finishToken(u.ellipsis)):(++this.state.pos,this.finishToken(u.dot))}},n.readToken_slash=function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},n.readToken_interpreter=function(){if(0!==this.state.pos||this.state.input.length<2)return!1;var e=this.state.pos;this.state.pos+=1;var t=this.input.charCodeAt(this.state.pos);if(33!==t)return!1;for(;10!==t&&13!==t&&8232!==t&&8233!==t&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(u.question)):(this.state.pos+=2,this.finishToken(u.questionDot)):61===t?this.finishOp(u.assign,3):this.finishOp(u.nullishCoalescing,2)},n.getTokenFromCode=function(e){switch(e){case 35:return void this.readToken_numberSign();case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(u.parenL);case 41:return++this.state.pos,void this.finishToken(u.parenR);case 59:return++this.state.pos,void this.finishToken(u.semi);case 44:return++this.state.pos,void this.finishToken(u.comma);case 91:return++this.state.pos,void this.finishToken(u.bracketL);case 93:return++this.state.pos,void this.finishToken(u.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.braceBarL,2):(++this.state.pos,this.finishToken(u.braceL)));case 125:return++this.state.pos,void this.finishToken(u.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.doubleColon,2):(++this.state.pos,this.finishToken(u.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(u.at);case 96:return++this.state.pos,void this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(u.tilde,1)}this.raise(this.state.pos,"Unexpected character '"+String.fromCodePoint(e)+"'")},n.finishOp=function(e,t){var n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)},n.readRegexp=function(){for(var e,t,n=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.state.pos);if(p.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.state.pos}var a=this.input.slice(n,this.state.pos);++this.state.pos;for(var i="";this.state.pos-1)i.indexOf(s)>-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,i+=s;else{if(!T(o)&&92!==o)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(u.regexp,{pattern:a,flags:i})},n.readInt=function(e,t){for(var n=this.state.pos,r=16===e?J.hex:J.decBinOct,a=16===e?V.hex:10===e?V.dec:8===e?V.oct:V.bin,i=0,s=0,o=null==t?1/0:t;s-1||r.indexOf(p)>-1||Number.isNaN(p))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((c=u>=97?u-97+10:u>=65?u-65+10:U(u)?u-48:1/0)>=e)break;++this.state.pos,i=i*e+c}return this.state.pos===n||null!=t&&this.state.pos-n!==t?null:i},n.readRadixNumber=function(e){var t=this.state.pos,n=!1;this.state.pos+=2;var r=this.readInt(e);if(null==r&&this.raise(this.state.start+2,"Expected number in radix "+e),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,n=!0),k(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number"),n){var a=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(u.bigint,a)}else this.finishToken(u.num,r)},n.readNumber=function(e){var t=this.state.pos,n=!1,r=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);a&&(this.state.strict&&this.raise(t,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(t,this.state.pos))&&(a=!1));var i=this.input.charCodeAt(this.state.pos);46!==i||a||(++this.state.pos,this.readInt(10),n=!0,i=this.input.charCodeAt(this.state.pos)),69!==i&&101!==i||a||(43!==(i=this.input.charCodeAt(++this.state.pos))&&45!==i||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),n=!0,i=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===i&&((n||a)&&this.raise(t,"Invalid BigIntLiteral"),++this.state.pos,r=!0),k(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number");var s=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");if(r)this.finishToken(u.bigint,s);else{var o=a?parseInt(s,8):parseFloat(s);this.finishToken(u.num,o)}},n.readCodePoint=function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var n=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=n-2,null;this.raise(n,"Code point out of bounds")}}else t=this.readHexChar(4,e);return t},n.readString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos):8232===r||8233===r?(++this.state.pos,++this.state.curLine):h(r)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)},n.readTmplToken=function(){for(var e="",t=this.state.pos,n=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(u.template)?36===r?(this.state.pos+=2,void this.finishToken(u.dollarBraceL)):(++this.state.pos,void this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(u.template,n?null:e));if(92===r){e+=this.input.slice(t,this.state.pos);var a=this.readEscapedChar(!0);null===a?n=!0:e+=a,t=this.state.pos}else if(h(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},n.readEscapedChar=function(e){var t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return"\n";case 114:return"\r";case 120:var r=this.readHexChar(2,t);return null===r?null:String.fromCharCode(r);case 117:var a=this.readCodePoint(t);return null===a?null:String.fromCodePoint(a);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(n>=48&&n<=55){var i=this.state.pos-1,s=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(s,8);if(o>255&&(s=s.slice(0,-1),o=parseInt(s,8)),o>0){if(e)return this.state.invalidTemplateEscapePosition=i,null;this.state.strict?this.raise(i,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=i)}return this.state.pos+=s.length-1,String.fromCharCode(o)}return String.fromCharCode(n)}},n.readHexChar=function(e,t){var n=this.state.pos,r=this.readInt(16,e);return null===r&&(t?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),r},n.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,n=this.state.pos;this.state.pos=0;s--){var o=this.state.labels[s];if(o.statementStart!==e.start)break;o.statementStart=this.state.start,o.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!==e.body.kind||"FunctionDeclaration"==e.body.type&&(this.state.strict||e.body.generator||e.body.async))&&this.raise(e.body.start,"Invalid labeled declaration"),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},n.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},n.parseBlock=function(e){var t=this.startNode();return this.expect(u.braceL),this.parseBlockBody(t,e,!1,u.braceR),this.finishNode(t,"BlockStatement")},n.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},n.parseBlockBody=function(e,t,n,r){var a=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?i:void 0,n,r)},n.parseBlockOrModuleBlockBody=function(e,t,n,r){for(var a,i,s=!1;!this.eat(r);){s||!this.state.containsOctal||i||(i=this.state.octalPosition);var o=this.parseStatement(!0,n);if(t&&!s&&this.isValidDirective(o)){var u=this.stmtToDirective(o);t.push(u),void 0===a&&"use strict"===u.value.value&&(a=this.state.strict,this.setStrict(!0),i&&this.raise(i,"Octal literal in strict mode"))}else s=!0,e.push(o)}!1===a&&this.setStrict(!1)},n.parseFor=function(e,t){var n=this;return e.init=t,this.expect(u.semi),e.test=this.match(u.semi)?null:this.parseExpression(),this.expect(u.semi),e.update=this.match(u.parenR)?null:this.parseExpression(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext(function(){return n.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(e,"ForStatement")},n.parseForIn=function(e,t,n){var r=this,a=this.match(u._in)?"ForInStatement":"ForOfStatement";return n?this.eatContextual("of"):this.next(),"ForOfStatement"===a&&(e.await=!!n),e.left=t,e.right=this.parseExpression(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext(function(){return r.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(e,a)},n.parseVar=function(e,t,n){var r=e.declarations=[];for(e.kind=n.keyword;;){var a=this.startNode();if(this.parseVarHead(a),this.eat(u.eq)?a.init=this.parseMaybeAssign(t):(n!==u._const||this.match(u._in)||this.isContextual("of")?"Identifier"===a.id.type||t&&(this.match(u._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.hasPlugin("typescript")||this.unexpected(),a.init=null),r.push(this.finishNode(a,"VariableDeclarator")),!this.eat(u.comma))break}return e},n.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},n.parseFunction=function(e,t,n,r,a){var i=this,s=this.state.inFunction,o=this.state.inMethod,c=this.state.inAsync,l=this.state.inGenerator,p=this.state.inClassProperty;return this.state.inFunction=!0,this.state.inMethod=!1,this.state.inClassProperty=!1,this.initFunction(e,r),this.match(u.star)&&(e.generator=!0,this.next()),!t||a||this.match(u.name)||this.match(u._yield)||this.unexpected(),t||(this.state.inAsync=r,this.state.inGenerator=e.generator),(this.match(u.name)||this.match(u._yield))&&(e.id=this.parseBindingIdentifier()),t&&(this.state.inAsync=r,this.state.inGenerator=e.generator),this.parseFunctionParams(e),this.withTopicForbiddingContext(function(){i.parseFunctionBodyAndFinish(e,t?"FunctionDeclaration":"FunctionExpression",n)}),this.state.inFunction=s,this.state.inMethod=o,this.state.inAsync=c,this.state.inGenerator=l,this.state.inClassProperty=p,e},n.parseFunctionParams=function(e,t){var n=this.state.inParameters;this.state.inParameters=!0,this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,t),this.state.inParameters=n},n.parseClass=function(e,t,n){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,n),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},n.isClassProperty=function(){return this.match(u.eq)||this.match(u.semi)||this.match(u.braceR)},n.isClassMethod=function(){return this.match(u.parenL)},n.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},n.parseClassBody=function(e){var t=this,n=this.state.strict;this.state.strict=!0,this.state.classLevel++;var r={hadConstructor:!1},a=[],i=this.startNode();i.body=[],this.expect(u.braceL),this.withTopicForbiddingContext(function(){for(;!t.eat(u.braceR);)if(t.eat(u.semi))a.length>0&&t.raise(t.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(t.match(u.at))a.push(t.parseDecorator());else{var e=t.startNode();a.length&&(e.decorators=a,t.resetStartLocationFromNode(e,a[0]),a=[]),t.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&t.raise(e.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}}),a.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(i,"ClassBody"),this.state.classLevel--,this.state.strict=n},n.parseClassMember=function(e,t,n){var r=!1,a=this.state.containsEsc;if(this.match(u.name)&&"static"===this.state.value){var i=this.parseIdentifier(!0);if(this.isClassMethod()){var s=t;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,void this.pushClassMethod(e,s,!1,!1,!1)}if(this.isClassProperty()){var o=t;return o.computed=!1,o.key=i,o.static=!1,void e.body.push(this.parseClassProperty(o))}if(a)throw this.unexpected();r=!0}this.parseClassMemberWithIsStatic(e,t,n,r)},n.parseClassMemberWithIsStatic=function(e,t,n,r){var a=t,i=t,s=t,o=t,c=a,l=a;if(t.static=r,this.eat(u.star))return c.kind="method",this.parseClassPropertyName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),void this.pushClassMethod(e,a,!0,!1,!1));var p=this.parseClassPropertyName(t),d="PrivateName"===p.type,h="Identifier"===p.type;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,i,!1,!1);var f=this.isNonstaticConstructor(a);f&&(a.kind="constructor",a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.start,"Duplicate constructor in the same class"),n.hadConstructor=!0),this.pushClassMethod(e,a,!1,!1,f)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s);else if(h&&"async"===p.name&&!this.isLineTerminator()){var m=this.eat(u.star);c.kind="method",this.parseClassPropertyName(c),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,i,m,!0):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.pushClassMethod(e,a,m,!0,!1))}else!h||"get"!==p.name&&"set"!==p.name||this.isLineTerminator()&&this.match(u.star)?this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s):this.unexpected():(c.kind=p.name,this.parseClassPropertyName(a),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(e,a,!1,!1,!1)),this.checkGetterSetterParams(a))},n.parseClassPropertyName=function(e){var t=this.parsePropertyName(e);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,"Classes may not have static property named prototype"),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,"Classes may not have a private field named '#constructor'"),t},n.pushClassProperty=function(e,t){this.isNonstaticConstructor(t)&&this.raise(t.key.start,"Classes may not have a non-static field named 'constructor'"),e.body.push(this.parseClassProperty(t))},n.pushClassPrivateProperty=function(e,t){this.expectPlugin("classPrivateProperties",t.key.start),e.body.push(this.parseClassPrivateProperty(t))},n.pushClassMethod=function(e,t,n,r,a){e.body.push(this.parseMethod(t,n,r,a,"ClassMethod"))},n.pushClassPrivateMethod=function(e,t,n,r){this.expectPlugin("classPrivateMethods",t.key.start),e.body.push(this.parseMethod(t,n,r,!1,"ClassPrivateMethod"))},n.parsePostMemberNameModifiers=function(e){},n.parseAccessModifier=function(){},n.parseClassPrivateProperty=function(e){var t=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,e.value=this.eat(u.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=t,this.finishNode(e,"ClassPrivateProperty")},n.parseClassProperty=function(e){e.typeAnnotation||this.expectPlugin("classProperties");var t=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,this.match(u.eq)?(this.expectPlugin("classProperties"),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=t,this.finishNode(e,"ClassProperty")},n.parseClassId=function(e,t,n){this.match(u.name)?e.id=this.parseIdentifier():n||!t?e.id=null:this.unexpected(null,"A class name is required")},n.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts():null},n.parseExport=function(e){if(this.shouldParseExportStar()){if(this.parseExportStar(e),"ExportAllDeclaration"===e.type)return e}else if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();t.exported=this.parseIdentifier(!0);var n=[this.finishNode(t,"ExportDefaultSpecifier")];if(e.specifiers=n,this.match(u.comma)&&this.lookahead().type===u.star){this.expect(u.comma);var r=this.startNode();this.expect(u.star),this.expectContextual("as"),r.exported=this.parseIdentifier(),n.push(this.finishNode(r,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(u._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var a=this.lookahead();a.type!==u._function&&this.unexpected(a.start,'Unexpected token, expected "function"')}e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)}else e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e)}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},n.isAsyncFunction=function(){if(!this.isContextual("async"))return!1;var e=this.state,t=e.input,n=e.pos;f.lastIndex=n;var r=f.exec(t);if(!r||!r.length)return!1;var a=n+r[0].length;return!(p.test(t.slice(n,a))||"function"!==t.slice(a,a+8)||a+8!==t.length&&T(t.charAt(a+8)))},n.parseExportDefaultExpression=function(){var e=this.startNode(),t=this.isAsyncFunction();if(this.eat(u._function)||t)return t&&(this.eatContextual("async"),this.expect(u._function)),this.parseFunction(e,!0,!1,t,!0);if(this.match(u._class))return this.parseClass(e,!0,!0);if(this.match(u.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(u._let)||this.match(u._const)||this.match(u._var))return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var n=this.parseMaybeAssign();return this.semicolon(),n},n.parseExportDeclaration=function(e){return this.parseStatement(!0)},n.isExportDefaultSpecifier=function(){if(this.match(u.name))return"async"!==this.state.value;if(!this.match(u._default))return!1;var e=this.lookahead();return e.type===u.comma||e.type===u.name&&"from"===e.value},n.parseExportSpecifiersMaybe=function(e){this.eat(u.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},n.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(u.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},n.shouldParseExportStar=function(){return this.match(u.star)},n.parseExportStar=function(e){this.expect(u.star),this.isContextual("as")?this.parseExportNamespace(e):(this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration"))},n.parseExportNamespace=function(e){this.expectPlugin("exportNamespaceFrom");var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next(),t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)},n.shouldParseExportDeclaration=function(){if(this.match(u.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isAsyncFunction()},n.checkExport=function(e,t,n){if(t)if(n)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var r=0,a=e.specifiers;r-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},n.raiseDuplicateExportError=function(e,t){throw this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},n.parseExportSpecifiers=function(){var e,t=[],n=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(n)n=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;var r=this.match(u._default);r&&!e&&(e=!0);var a=this.startNode();a.local=this.parseIdentifier(r),a.exported=this.eatContextual("as")?this.parseIdentifier(!0):a.local.__clone(),t.push(this.finishNode(a,"ExportSpecifier"))}return e&&!this.isContextual("from")&&this.unexpected(),t},n.parseImport=function(e){return this.match(u.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(u.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},n.shouldParseDefaultImport=function(e){return this.match(u.name)},n.parseImportSpecifierLocal=function(e,t,n,r){t.local=this.parseIdentifier(),this.checkLVal(t.local,!0,void 0,r),e.specifiers.push(this.finishNode(t,n))},n.parseImportSpecifiers=function(e){var t=!0;if(!this.shouldParseDefaultImport(e)||(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),this.eat(u.comma))){if(this.match(u.star)){var n=this.startNode();return this.next(),this.expectContextual("as"),void this.parseImportSpecifierLocal(e,n,"ImportNamespaceSpecifier","import namespace specifier")}for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.eat(u.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(u.comma),this.eat(u.braceR))break;this.parseImportSpecifier(e)}}},n.parseImportSpecifier=function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},t}(function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}},n.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(u.eof)||this.unexpected(),e.comments=this.state.comments,e},n.parseExpression=function(e,t){var n=this.state.start,r=this.state.startLoc,a=this.parseMaybeAssign(e,t);if(this.match(u.comma)){var i=this.startNodeAt(n,r);for(i.expressions=[a];this.eat(u.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return a},n.parseMaybeAssign=function(e,t,n,r){var a,i=this.state.start,s=this.state.startLoc;if(this.match(u._yield)&&this.state.inGenerator){var o=this.parseYield();return n&&(o=n.call(this,o,i,s)),o}t?a=!1:(t={start:0},a=!0),(this.match(u.parenL)||this.match(u.name)||this.match(u._yield))&&(this.state.potentialArrowAt=this.state.start);var c=this.parseMaybeConditional(e,t,r);if(n&&(c=n.call(this,c,i,s)),this.state.type.isAssign){var l,p=this.startNodeAt(i,s),d=this.state.value;return p.operator=d,"??="===d&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==d&&"&&="!==d||this.expectPlugin("logicalAssignment"),p.left=this.match(u.eq)?this.toAssignable(c,void 0,"assignment expression"):c,t.start=0,this.checkLVal(c,void 0,void 0,"assignment expression"),c.extra&&c.extra.parenthesized&&("ObjectPattern"===c.type?l="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===c.type&&(l="`([a]) = 0` use `([a] = 0)`"),l&&this.raise(c.start,"You're trying to assign to a parenthesized expression, eg. instead of "+l)),this.next(),p.right=this.parseMaybeAssign(e),this.finishNode(p,"AssignmentExpression")}return a&&t.start&&this.unexpected(t.start),c},n.parseMaybeConditional=function(e,t,n){var r=this.state.start,a=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e,t);return"ArrowFunctionExpression"===s.type&&s.start===i?s:t&&t.start?s:this.parseConditional(s,e,r,a,n)},n.parseConditional=function(e,t,n,r,a){if(this.eat(u.question)){var i=this.startNodeAt(n,r);return i.test=e,i.consequent=this.parseMaybeAssign(),this.expect(u.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return e},n.parseExprOps=function(e,t){var n=this.state.start,r=this.state.startLoc,a=this.state.potentialArrowAt,i=this.parseMaybeUnary(t);return"ArrowFunctionExpression"===i.type&&i.start===a?i:t&&t.start?i:this.parseExprOp(i,n,r,-1,e)},n.parseExprOp=function(e,t,n,r,a){var i=this.state.type.binop;if(!(null==i||a&&this.match(u._in))&&i>r){var s=this.startNodeAt(t,n),o=this.state.value;s.left=e,s.operator=o,"**"!==o||"UnaryExpression"!==e.type||e.extra&&e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var c=this.state.type;if(c===u.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)):c===u.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),c===u.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(u.name)&&"await"===this.state.value&&this.state.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return s.right=this.parseExprOpRightExpr(c,i,a),this.finishNode(s,c===u.logicalOR||c===u.logicalAND||c===u.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(s,t,n,r,a)}return e},n.parseExprOpRightExpr=function(e,t,n){var r=this;switch(e){case u.pipeline:if("smart"===this.getPluginOption("pipelineOperator","proposal")){var a=this.state.start,i=this.state.startLoc;return this.withTopicPermittingContext(function(){return r.parseSmartPipelineBody(r.parseExprOpBaseRightExpr(e,t,n),a,i)})}default:return this.parseExprOpBaseRightExpr(e,t,n)}},n.parseExprOpBaseRightExpr=function(e,t,n){var r=this.state.start,a=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,a,e.rightAssociative?t-1:t,n)},n.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),n=this.match(u.incDec);if(t.operator=this.state.value,t.prefix=!0,"throw"===t.operator&&this.expectPlugin("throwExpressions"),this.next(),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),n)this.checkLVal(t.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===t.operator){var r=t.argument;"Identifier"===r.type?this.raise(t.start,"Deleting local variable in strict mode"):"MemberExpression"===r.type&&"PrivateName"===r.property.type&&this.raise(t.start,"Deleting a private field is not allowed")}return this.finishNode(t,n?"UpdateExpression":"UnaryExpression")}var a=this.state.start,i=this.state.startLoc,s=this.parseExprSubscripts(e);if(e&&e.start)return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(a,i);o.operator=this.state.value,o.prefix=!1,o.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(o,"UpdateExpression")}return s},n.parseExprSubscripts=function(e){var t=this.state.start,n=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return"ArrowFunctionExpression"===a.type&&a.start===r?a:e&&e.start?a:this.parseSubscripts(a,t,n)},n.parseSubscripts=function(e,t,n,r){var a={optionalChainMember:!1,stop:!1};do{e=this.parseSubscript(e,t,n,r,a)}while(!a.stop);return e},n.parseSubscript=function(e,t,n,r,a){if(!r&&this.eat(u.doubleColon)){var i=this.startNodeAt(t,n);return i.object=e,i.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n,r)}if(this.match(u.questionDot)){if(this.expectPlugin("optionalChaining"),a.optionalChainMember=!0,r&&this.lookahead().type==u.parenL)return a.stop=!0,e;this.next();var s=this.startNodeAt(t,n);if(this.eat(u.bracketL))return s.object=e,s.property=this.parseExpression(),s.computed=!0,s.optional=!0,this.expect(u.bracketR),this.finishNode(s,"OptionalMemberExpression");if(this.eat(u.parenL)){var o=this.atPossibleAsync(e);return s.callee=e,s.arguments=this.parseCallExpressionArguments(u.parenR,o),s.optional=!0,this.finishNode(s,"OptionalCallExpression")}return s.object=e,s.property=this.parseIdentifier(!0),s.computed=!1,s.optional=!0,this.finishNode(s,"OptionalMemberExpression")}if(this.eat(u.dot)){var c=this.startNodeAt(t,n);return c.object=e,c.property=this.parseMaybePrivateName(),c.computed=!1,a.optionalChainMember?(c.optional=!1,this.finishNode(c,"OptionalMemberExpression")):this.finishNode(c,"MemberExpression")}if(this.eat(u.bracketL)){var l=this.startNodeAt(t,n);return l.object=e,l.property=this.parseExpression(),l.computed=!0,this.expect(u.bracketR),a.optionalChainMember?(l.optional=!1,this.finishNode(l,"OptionalMemberExpression")):this.finishNode(l,"MemberExpression")}if(!r&&this.match(u.parenL)){var p=this.state.maybeInArrowParameters,d=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;var h=this.atPossibleAsync(e);this.next();var f=this.startNodeAt(t,n);f.callee=e;var m={start:-1};return f.arguments=this.parseCallExpressionArguments(u.parenR,h,m),a.optionalChainMember?this.finishOptionalCallExpression(f):this.finishCallExpression(f),h&&this.shouldParseAsyncArrow()?(a.stop=!0,m.start>-1&&this.raise(m.start,"A trailing comma is not permitted after the rest element"),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),f),this.state.yieldOrAwaitInPossibleArrowParameters=d):(this.toReferencedListDeep(f.arguments),this.state.yieldOrAwaitInPossibleArrowParameters=this.state.yieldOrAwaitInPossibleArrowParameters||d),this.state.maybeInArrowParameters=p,f}return this.match(u.backQuote)?this.parseTaggedTemplateExpression(t,n,e,a):(a.stop=!0,e)},n.parseTaggedTemplateExpression=function(e,t,n,r,a){var i=this.startNodeAt(e,t);return i.tag=n,i.quasi=this.parseTemplate(!0),a&&(i.typeParameters=a),r.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(i,"TaggedTemplateExpression")},n.atPossibleAsync=function(e){return!this.state.containsEsc&&this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon()},n.finishCallExpression=function(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");var t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"CallExpression")},n.finishOptionalCallExpression=function(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");var t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"OptionalCallExpression")},n.parseCallExpressionArguments=function(e,t,n){for(var r,a=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(u.comma),this.eat(e))break;this.match(u.parenL)&&!r&&(r=this.state.start),a.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0,t?n:void 0))}return t&&r&&this.shouldParseAsyncArrow()&&this.unexpected(),a},n.shouldParseAsyncArrow=function(){return this.match(u.arrow)},n.parseAsyncArrowFromCallExpression=function(e,t){return this.expect(u.arrow),this.parseArrowExpression(e,t.arguments,!0),e},n.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},n.parseExprAtom=function(e){this.state.type===u.slash&&this.readRegexp();var t,n=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case u._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),t=this.startNode(),this.next(),this.match(u.parenL)||this.match(u.bracketL)||this.match(u.dot)||this.unexpected(),this.match(u.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(t.start,"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."),this.finishNode(t,"Super");case u._import:return this.lookahead().type===u.dot?this.parseImportMetaProperty():(this.expectPlugin("dynamicImport"),t=this.startNode(),this.next(),this.match(u.parenL)||this.unexpected(null,u.parenL),this.finishNode(t,"Import"));case u._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case u._yield:this.state.inGenerator&&this.unexpected();case u.name:t=this.startNode();var r="await"===this.state.value&&(this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction),a=this.state.containsEsc,i=this.shouldAllowYieldIdentifier(),s=this.parseIdentifier(r||i);if("await"===s.name){if(this.state.inAsync||this.inModule||!this.state.inFunction&&this.options.allowAwaitOutsideFunction)return this.parseAwait(t)}else{if(!a&&"async"===s.name&&this.match(u._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(t,!1,!1,!0);if(n&&!this.canInsertSemicolon()&&"async"===s.name&&this.match(u.name)){var o=this.state.yieldOrAwaitInPossibleArrowParameters,c=this.state.inAsync;this.state.yieldOrAwaitInPossibleArrowParameters=null,this.state.inAsync=!0;var l=[this.parseIdentifier()];return this.expect(u.arrow),this.parseArrowExpression(t,l,!0),this.state.yieldOrAwaitInPossibleArrowParameters=o,this.state.inAsync=c,t}}if(n&&!this.canInsertSemicolon()&&this.eat(u.arrow)){var p=this.state.yieldOrAwaitInPossibleArrowParameters;return this.state.yieldOrAwaitInPossibleArrowParameters=null,this.parseArrowExpression(t,[s]),this.state.yieldOrAwaitInPossibleArrowParameters=p,t}return s;case u._do:this.expectPlugin("doExpressions");var d=this.startNode();this.next();var h=this.state.inFunction,f=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,d.body=this.parseBlock(!1),this.state.inFunction=h,this.state.labels=f,this.finishNode(d,"DoExpression");case u.regexp:var m=this.state.value;return(t=this.parseLiteral(m.value,"RegExpLiteral")).pattern=m.pattern,t.flags=m.flags,t;case u.num:return this.parseLiteral(this.state.value,"NumericLiteral");case u.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case u.string:return this.parseLiteral(this.state.value,"StringLiteral");case u._null:return t=this.startNode(),this.next(),this.finishNode(t,"NullLiteral");case u._true:case u._false:return this.parseBooleanLiteral();case u.parenL:return this.parseParenAndDistinguishExpression(n);case u.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(u.bracketR,!0,e),this.state.maybeInArrowParameters||this.toReferencedList(t.elements),this.finishNode(t,"ArrayExpression");case u.braceL:return this.parseObj(!1,e);case u._function:return this.parseFunctionExpression();case u.at:this.parseDecorators();case u._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate(!1);case u.doubleColon:t=this.startNode(),this.next(),t.object=null;var y=t.callee=this.parseNoCallExpr();if("MemberExpression"===y.type)return this.finishNode(t,"BindExpression");throw this.raise(y.start,"Binding should be performed on object property.");case u.hash:if(this.state.inPipeline){if(t=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(t.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext())return this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference");throw this.raise(t.start,"Topic reference was used in a lexical context without topic binding")}default:throw this.unexpected()}},n.parseBooleanLiteral=function(){var e=this.startNode();return e.value=this.match(u._true),this.next(),this.finishNode(e,"BooleanLiteral")},n.parseMaybePrivateName=function(){if(this.match(u.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var e=this.startNode(),t=this.state.end;this.next();var n=this.state.start;return 0!=n-t&&this.raise(n,"Unexpected space between # and identifier"),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)},n.parseFunctionExpression=function(){var e=this.startNode(),t=this.startNode();return this.next(),t=this.createIdentifier(t,"function"),this.state.inGenerator&&this.eat(u.dot)?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},n.parseMetaProperty=function(e,t,n){e.meta=t,"function"===t.name&&"sent"===n&&(this.isContextual(n)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(e.property.start,"The only valid meta property for "+t.name+" is "+t.name+"."+n),this.finishNode(e,"MetaProperty")},n.parseImportMetaProperty=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.expect(u.dot),"import"===t.name&&(this.isContextual("meta")?this.expectPlugin("importMeta"):this.hasPlugin("importMeta")||this.raise(t.start,"Dynamic imports require a parameter: import('a.js')")),this.inModule||this.raise(t.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(e,t,"meta")},n.parseLiteral=function(e,t,n,r){n=n||this.state.start,r=r||this.state.startLoc;var a=this.startNodeAt(n,r);return this.addExtra(a,"rawValue",e),this.addExtra(a,"raw",this.input.slice(n,this.state.end)),a.value=e,this.next(),this.finishNode(a,t)},n.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},n.parseParenAndDistinguishExpression=function(e){var t,n=this.state.start,r=this.state.startLoc;this.expect(u.parenL);var a=this.state.maybeInArrowParameters,i=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;for(var s,o,c=this.state.start,l=this.state.startLoc,p=[],d={start:0},h={start:0},f=!0;!this.match(u.parenR);){if(f)f=!1;else if(this.expect(u.comma,h.start||null),this.match(u.parenR)){o=this.state.start;break}if(this.match(u.ellipsis)){var m=this.state.start,y=this.state.startLoc;if(s=this.state.start,p.push(this.parseParenItem(this.parseRest(),m,y)),this.match(u.comma)){var g=this.lookahead().type===u.parenR?"A trailing comma is not permitted after the rest element":"Rest parameter must be last formal parameter";this.raise(this.state.start,g)}break}p.push(this.parseMaybeAssign(!1,d,this.parseParenItem,h))}var D=this.state.start,_=this.state.startLoc;this.expect(u.parenR),this.state.maybeInArrowParameters=a;var v=this.startNodeAt(n,r);if(e&&this.shouldParseArrow()&&(v=this.parseArrow(v))){for(var b=0;b1?((t=this.startNodeAt(c,l)).expressions=p,this.finishNodeAt(t,"SequenceExpression",D,_)):t=p[0],this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",n),t},n.shouldParseArrow=function(){return!this.canInsertSemicolon()},n.parseArrow=function(e){if(this.eat(u.arrow))return e},n.parseParenItem=function(e,t,n){return e},n.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(u.dot)){var n=this.parseMetaProperty(e,t,"target");if(!this.state.inFunction&&!this.state.inClassProperty){var r="new.target can only be used in functions";this.hasPlugin("classProperties")&&(r+=" or class properties"),this.raise(n.start,r)}return n}return e.callee=this.parseNoCallExpr(),"OptionalMemberExpression"!==e.callee.type&&"OptionalCallExpression"!==e.callee.type||this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"),this.eat(u.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(e),this.finishNode(e,"NewExpression")},n.parseNewArguments=function(e){if(this.eat(u.parenL)){var t=this.parseExprList(u.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]},n.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition||0,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(u.backQuote),this.finishNode(t,"TemplateElement")},n.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(u.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(u.braceR),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},n.parseObj=function(e,t){var n=[],r=Object.create(null),a=!0,i=this.startNode();i.properties=[],this.next();for(var s=null;!this.eat(u.braceR);){if(a)a=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;if(this.match(u.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(u.at);)n.push(this.parseDecorator());var o=this.startNode(),c=!1,l=!1,p=void 0,d=void 0;if(n.length&&(o.decorators=n,n=[]),this.match(u.ellipsis)){if(o=this.parseSpread(e?{start:0}:void 0),e&&this.toAssignable(o,!0,"object pattern"),i.properties.push(o),!e)continue;var h=this.state.start;if(null!==s)this.unexpected(s,"Cannot have multiple rest elements when destructuring");else{if(this.eat(u.braceR))break;if(!this.match(u.comma)||this.lookahead().type!==u.braceR){s=h;continue}this.unexpected(h,"A trailing comma is not permitted after the rest element")}}o.method=!1,(e||t)&&(p=this.state.start,d=this.state.startLoc),e||(c=this.eat(u.star));var f=this.state.containsEsc;if(!e&&this.isContextual("async")){c&&this.unexpected();var m=this.parseIdentifier();this.match(u.colon)||this.match(u.parenL)||this.match(u.braceR)||this.match(u.eq)||this.match(u.comma)?(o.key=m,o.computed=!1):(l=!0,c=this.eat(u.star),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,p,d,c,l,e,t,f),this.checkPropClash(o,r),o.shorthand&&this.addExtra(o,"shorthand",!0),i.properties.push(o)}return null!==s&&this.unexpected(s,"The rest element has to be the last element when destructuring"),n.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},n.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(u.string)||this.match(u.num)||this.match(u.bracketL)||this.match(u.name)||!!this.state.type.keyword)},n.checkGetterSetterParams=function(e){var t="get"===e.kind?0:1,n=e.start;e.params.length!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&"RestElement"===e.params[0].type&&this.raise(n,"setter function argument must not be a rest parameter")},n.parseObjectMethod=function(e,t,n,r,a){return n||t||this.match(u.parenL)?(r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,"ObjectMethod")):!a&&this.isGetterOrSetterMethod(e,r)?((t||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):void 0},n.parseObjectProperty=function(e,t,n,r,a){return e.shorthand=!1,this.eat(u.colon)?(e.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,a),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),r?e.value=this.parseMaybeDefault(t,n,e.key.__clone()):this.match(u.eq)&&a?(a.start||(a.start=this.state.start),e.value=this.parseMaybeDefault(t,n,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},n.parseObjPropValue=function(e,t,n,r,a,i,s,o){var u=this.parseObjectMethod(e,r,a,i,o)||this.parseObjectProperty(e,t,n,i,s);return u||this.unexpected(),u},n.parsePropertyName=function(e){if(this.eat(u.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR);else{var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=t}return e.key},n.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=!!t},n.parseMethod=function(e,t,n,r,a){var i=this.state.inFunction,s=this.state.inMethod,o=this.state.inAsync,u=this.state.inGenerator;this.state.inFunction=!0,this.state.inMethod=e.kind||!0,this.state.inAsync=n,this.state.inGenerator=t,this.initFunction(e,n),e.generator=!!t;var c=r;return this.parseFunctionParams(e,c),this.parseFunctionBodyAndFinish(e,a),this.state.inFunction=i,this.state.inMethod=s,this.state.inAsync=o,this.state.inGenerator=u,e},n.parseArrowExpression=function(e,t,n){var r=this.state.yieldOrAwaitInPossibleArrowParameters;r&&("YieldExpression"===r.type?this.raise(r.start,"yield is not allowed in the parameters of an arrow function inside a generator"):this.raise(r.start,"await is not allowed in the parameters of an arrow function inside an async function"));var a=this.state.inFunction;this.state.inFunction=!0,this.initFunction(e,n),t&&this.setArrowFunctionParameters(e,t);var i=this.state.inAsync,s=this.state.inGenerator,o=this.state.maybeInArrowParameters;return this.state.inAsync=n,this.state.inGenerator=!1,this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.state.inAsync=i,this.state.inGenerator=s,this.state.inFunction=a,this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")},n.setArrowFunctionParameters=function(e,t){e.params=this.toAssignableList(t,!0,"arrow function parameters")},n.isStrictBody=function(e){if("BlockStatement"===e.body.type&&e.body.directives.length)for(var t=0,n=e.body.directives;t" after pipeline body; arrow function in pipeline body must be parenthesized');if("PipelineTopicExpression"===t&&"SequenceExpression"===e.type)throw this.raise(n,"Pipeline body may not be a comma-separated sequence expression")},n.parseSmartPipelineBodyInStyle=function(e,t,n,r){var a=this.startNodeAt(n,r);switch(t){case"PipelineBareFunction":a.callee=e;break;case"PipelineBareConstructor":a.callee=e.callee;break;case"PipelineBareAwaitedFunction":a.callee=e.argument;break;case"PipelineTopicExpression":if(!this.topicReferenceWasUsedInCurrentTopicContext())throw this.raise(n,"Pipeline is in topic style but does not use topic reference");a.expression=e;break;default:throw this.raise(n,"Unknown pipeline style "+t)}return this.finishNode(a,t)},n.checkSmartPipelineBodyStyle=function(e){return e.type,this.isSimpleReference(e)?"PipelineBareFunction":"PipelineTopicExpression"},n.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},n.withTopicPermittingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},n.withTopicForbiddingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},n.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},n.primaryTopicReferenceIsAllowedInCurrentTopicContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},n.topicReferenceWasUsedInCurrentTopicContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},t}(function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.toAssignable=function(e,t,n){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=0;r0)for(var t=0,n=e.body.body;t=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:h(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},n.jsxReadNewLine=function(e){var t,n=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===n&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,t},n.jsxReadString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):h(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}return t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)},n.jsxReadEntity=function(){for(var e,t="",n=0,r=this.input[this.state.pos],a=++this.state.pos;this.state.pos"):!N(a)&&N(i)?this.raise(i.start,"Expected corresponding JSX closing tag for <"+I(a.name)+">"):N(a)||N(i)||I(i.name)!==I(a.name)&&this.raise(i.start,"Expected corresponding JSX closing tag for <"+I(a.name)+">")}return N(a)?(n.openingFragment=a,n.closingFragment=i):(n.openingElement=a,n.closingElement=i),n.children=r,this.match(u.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"),N(a)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")},n.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)},n.parseExprAtom=function(t){return this.match(u.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(u.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.state.input.charCodeAt(this.state.pos)?(this.finishToken(u.jsxTagStart),this.jsxParseElement()):e.prototype.parseExprAtom.call(this,t)},n.readToken=function(t){if(this.state.inPropertyName)return e.prototype.readToken.call(this,t);var n=this.curContext();if(n===g.j_expr)return this.jsxReadToken();if(n===g.j_oTag||n===g.j_cTag){if(k(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(u.jsxTagEnd);if((34===t||39===t)&&n===g.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed&&33!==this.state.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(u.jsxTagStart)):e.prototype.readToken.call(this,t)},n.updateContext=function(t){if(this.match(u.braceL)){var n=this.curContext();n===g.j_oTag?this.state.context.push(g.braceExpression):n===g.j_expr?this.state.context.push(g.templateQuasi):e.prototype.updateContext.call(this,t),this.state.exprAllowed=!0}else{if(!this.match(u.slash)||t!==u.jsxTagStart)return e.prototype.updateContext.call(this,t);this.state.context.length-=2,this.state.context.push(g.j_cTag),this.state.exprAllowed=!1}},t}(e)},flow:function(e){return function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).flowPragma=void 0,r}r(t,e);var n=t.prototype;return n.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},n.addComment=function(t){if(void 0===this.flowPragma){var n=Y.exec(t.value);if(n)if("flow"===n[1])this.flowPragma="flow";else{if("noflow"!==n[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else this.flowPragma=null}return e.prototype.addComment.call(this,t)},n.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||u.colon);var n=this.flowParseType();return this.state.inType=t,n},n.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,n=this.state.start;this.expect(u.modulo);var r=this.state.startLoc;return this.expectContextual("checks"),t.line===r.line&&t.column===r.column-1||this.raise(n,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(u.parenL)?(e.value=this.parseExpression(),this.expect(u.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},n.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(u.colon);var t=null,n=null;return this.match(u.modulo)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(u.modulo)&&(n=this.flowParsePredicate())),[t,n]},n.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},n.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(u.parenL);var a=this.flowParseFunctionTypeParams();n.params=a.params,n.rest=a.rest,this.expect(u.parenR);var i=this.flowParseTypeAndPredicateInitialiser();return n.returnType=i[0],e.predicate=i[1],r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},n.flowParseDeclare=function(e,t){if(this.match(u._class))return this.flowParseDeclareClass(e);if(this.match(u._function))return this.flowParseDeclareFunction(e);if(this.match(u._var))return this.flowParseDeclareVariable(e);if(this.isContextual("module"))return this.lookahead().type===u.dot?this.flowParseDeclareModuleExports(e):(t&&this.unexpected(null,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(u._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()},n.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(e,"DeclareVariable")},n.flowParseDeclareModule=function(e){var t=this;this.next(),this.match(u.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var n=e.body=this.startNode(),r=n.body=[];for(this.expect(u.braceL);!this.match(u.braceR);){var a=this.startNode();if(this.match(u._import)){var i=this.lookahead();"type"!==i.value&&"typeof"!==i.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.next(),this.parseImport(a)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),a=this.flowParseDeclare(a,!0);r.push(a)}this.expect(u.braceR),this.finishNode(n,"BlockStatement");var s=null,o=!1,c="Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return r.forEach(function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(o&&t.unexpected(e.start,"Duplicate `declare module.exports` statement"),"ES"===s&&t.unexpected(e.start,c),s="CommonJS",o=!0):("CommonJS"===s&&t.unexpected(e.start,c),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")},n.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(u._export),this.eat(u._default))return this.match(u._function)||this.match(u._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u._const)||this.match(u._let)||(this.isContextual("type")||this.isContextual("interface"))&&!t){var n=this.state.value,r=P[n];this.unexpected(this.state.start,"`declare export "+n+"` is not supported. Use `"+r+"` instead")}if(this.match(u._var)||this.match(u._function)||this.match(u._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u.star)||this.match(u.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()},n.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(u.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},n.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},n.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),this.finishNode(e,"DeclareOpaqueType")},n.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},n.flowParseInterfaceish=function(e,t){if(void 0===t&&(t=!1),e.id=this.flowParseRestrictedIdentifier(!t),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(u.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},n.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},n.flowParseInterface=function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")},n.checkNotUnderscore=function(e){if("_"===e)throw this.unexpected(null,"`_` is only allowed as a type argument to call or new")},n.checkReservedType=function(e,t){S.indexOf(e)>-1&&this.raise(t,"Cannot overwrite reserved type "+e)},n.flowParseRestrictedIdentifier=function(e){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(e)},n.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(u.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},n.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(u.colon)&&(e.supertype=this.flowParseTypeInitialiser(u.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(u.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},n.flowParseTypeParameter=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!1),!e&&t)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");var n=this.state.start,r=this.startNode(),a=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=a,r.bound=i.typeAnnotation,this.match(u.eq)?e?(this.eat(u.eq),r.default=this.flowParseType()):this.unexpected():t&&this.unexpected(n,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(r,"TypeParameter")},n.flowParseTypeParameterDeclaration=function(e){void 0===e&&(e=!0);var t=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(e,r);n.params.push(a),a.default&&(r=!0),this.isRelational(">")||this.expect(u.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=t,this.finishNode(n,"TypeParameterDeclaration")},n.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");var n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(u.comma);return this.state.noAnonFunctionType=n,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},n.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(u.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},n.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},n.flowParseObjectPropertyKey=function(){return this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0)},n.flowParseObjectTypeIndexer=function(e,t,n){return e.static=t,this.lookahead().type===u.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(u.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")},n.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(u.bracketR),this.expect(u.bracketR),this.isRelational("<")||this.match(u.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(u.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},n.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(u.parenL);!this.match(u.parenR)&&!this.match(u.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(u.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},n.flowParseObjectTypeCallProperty=function(e,t){var n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")},n.flowParseObjectType=function(e){var t=e.allowStatic,n=e.allowExact,r=e.allowSpread,a=e.allowProto,i=e.allowInexact,s=this.state.inType;this.state.inType=!0;var o,c,l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];var p=!1;for(n&&this.match(u.braceBarL)?(this.expect(u.braceBarL),o=u.braceBarR,c=!0):(this.expect(u.braceL),o=u.braceR,c=!1),l.exact=c;!this.match(o);){var d=!1,h=null,f=this.startNode();if(a&&this.isContextual("proto")){var m=this.lookahead();m.type!==u.colon&&m.type!==u.question&&(this.next(),h=this.state.start,t=!1)}if(t&&this.isContextual("static")){var y=this.lookahead();y.type!==u.colon&&y.type!==u.question&&(this.next(),d=!0)}var g=this.flowParseVariance();if(this.eat(u.bracketL))null!=h&&this.unexpected(h),this.eat(u.bracketL)?(g&&this.unexpected(g.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(f,d))):l.indexers.push(this.flowParseObjectTypeIndexer(f,d,g));else if(this.match(u.parenL)||this.isRelational("<"))null!=h&&this.unexpected(h),g&&this.unexpected(g.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(f,d));else{var D="init";if(this.isContextual("get")||this.isContextual("set")){var _=this.lookahead();_.type!==u.name&&_.type!==u.string&&_.type!==u.num||(D=this.state.value,this.next())}var v=this.flowParseObjectTypeProperty(f,d,h,g,D,r,i);null===v?p=!0:l.properties.push(v)}this.flowObjectTypeSemicolon()}this.expect(o),r&&(l.inexact=p);var b=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=s,b},n.flowParseObjectTypeProperty=function(e,t,n,r,a,i,s){if(this.match(u.ellipsis)){i||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),null!=n&&this.unexpected(n),r&&this.unexpected(r.start,"Spread properties cannot have variance"),this.expect(u.ellipsis);var o=this.eat(u.comma)||this.eat(u.semi);if(this.match(u.braceR)){if(s)return null;this.unexpected(null,"Explicit inexact syntax is only allowed inside inexact objects")}return this.match(u.braceBarR)&&this.unexpected(null,"Explicit inexact syntax cannot appear inside an explicit exact object type"),o&&this.unexpected(null,"Explicit inexact syntax must appear at the end of an inexact object"),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty")}e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=a;var c=!1;return this.isRelational("<")||this.match(u.parenL)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==a&&"set"!==a||this.flowCheckGetterSetterParams(e)):("init"!==a&&this.unexpected(),e.method=!1,this.eat(u.question)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=c,this.finishNode(e,"ObjectTypeProperty")},n.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,n=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&e.value.rest&&this.raise(n,"setter function argument must not be a rest parameter")},n.flowObjectTypeSemicolon=function(){this.eat(u.semi)||this.eat(u.comma)||this.match(u.braceR)||this.match(u.braceBarR)||this.unexpected()},n.flowParseQualifiedTypeIdentifier=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;for(var r=n||this.parseIdentifier();this.eat(u.dot);){var a=this.startNodeAt(e,t);a.qualification=r,a.id=this.parseIdentifier(),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},n.flowParseGenericType=function(e,t,n){var r=this.startNodeAt(e,t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},n.flowParseTypeofType=function(){var e=this.startNode();return this.expect(u._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},n.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(u.bracketL);this.state.pos0){var D=l.concat();if(g.length>0){this.state=c,this.state.noArrowAt=D;for(var _=0;_1&&this.raise(c.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),f&&1===y.length){this.state=c,this.state.noArrowAt=D.concat(y[0].start);var E=this.tryParseConditionalConsequent();h=E.consequent,f=E.failed}this.getArrowLikeExpressions(h,!0)}return this.state.noArrowAt=l,this.expect(u.colon),p.test=t,p.consequent=h,p.alternate=this.forwardNoArrowParamsConversionAt(p,function(){return s.parseMaybeAssign(n,void 0,void 0,void 0)}),this.finishNode(p,"ConditionalExpression")},n.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssign(),t=!this.match(u.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},n.getArrowLikeExpressions=function(t,n){for(var r=this,a=[t],i=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type?(s.typeParameters||!s.returnType?(this.toAssignableList(s.params,!0,"arrow function parameters"),e.prototype.checkFunctionNameAndParams.call(this,s,!0)):i.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}if(n){for(var o=0;o1)&&t||this.raise(r.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return e},n.checkLVal=function(t,n,r,a){if("TypeCastExpression"!==t.type)return e.prototype.checkLVal.call(this,t,n,r,a)},n.parseClassProperty=function(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},n.parseClassPrivateProperty=function(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},n.isClassMethod=function(){return this.isRelational("<")||e.prototype.isClassMethod.call(this)},n.isClassProperty=function(){return this.match(u.colon)||e.prototype.isClassProperty.call(this)},n.isNonstaticConstructor=function(t){return!this.match(u.colon)&&e.prototype.isNonstaticConstructor.call(this,t)},n.pushClassMethod=function(t,n,r,a,i){n.variance&&this.unexpected(n.variance.start),delete n.variance,this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterDeclaration(!1)),e.prototype.pushClassMethod.call(this,t,n,r,a,i)},n.pushClassPrivateMethod=function(t,n,r,a){n.variance&&this.unexpected(n.variance.start),delete n.variance,this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,n,r,a)},n.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var n=t.implements=[];do{var r=this.startNode();r.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,n.push(this.finishNode(r,"ClassImplements"))}while(this.eat(u.comma))}},n.parsePropertyName=function(t){var n=this.flowParseVariance(),r=e.prototype.parsePropertyName.call(this,t);return t.variance=n,r},n.parseObjPropValue=function(t,n,r,a,i,s,o,c){var l;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(l=this.flowParseTypeParameterDeclaration(!1),this.match(u.parenL)||this.unexpected()),e.prototype.parseObjPropValue.call(this,t,n,r,a,i,s,o,c),l&&((t.value||t).typeParameters=l)},n.parseAssignableListItemTypes=function(e){if(this.eat(u.question)){if("Identifier"!==e.type)throw this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature.");e.optional=!0}return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.finishNode(e,e.type),e},n.parseMaybeDefault=function(t,n,r){var a=e.prototype.parseMaybeDefault.call(this,t,n,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start")}throw new Error("Unreachable")},n.tsParseList=function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n},n.tsParseDelimitedList=function(e,t){return ne(this.tsParseDelimitedListWorker(e,t,!0))},n.tsTryParseDelimitedList=function(e,t){return this.tsParseDelimitedListWorker(e,t,!1)},n.tsParseDelimitedListWorker=function(e,t,n){for(var r=[];!this.tsIsListTerminator(e);){var a=t();if(null==a)return;if(r.push(a),!this.eat(u.comma)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(u.comma))}}return r},n.tsParseBracketedList=function(e,t,n,r){r||(n?this.expect(u.bracketL):this.expectRelational("<"));var a=this.tsParseDelimitedList(e,t);return n?this.expect(u.bracketR):this.expectRelational(">"),a},n.tsParseEntityName=function(e){for(var t=this.parseIdentifier();this.eat(u.dot);){var n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t},n.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},n.tsParseThisTypePredicate=function(e){this.next();var t=this.startNode();return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(t,"TSTypePredicate")},n.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},n.tsParseTypeQuery=function(){var e=this.startNode();return this.expect(u._typeof),e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")},n.tsParseTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(u._extends),e.default=this.tsEatThenParseType(u.eq),this.finishNode(e,"TSTypeParameter")},n.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},n.tsParseTypeParameters=function(){var e=this.startNode();return this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(e,"TSTypeParameterDeclaration")},n.tsFillSignature=function(e,t){var n=e===u.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(u.parenL),t.parameters=this.tsParseBindingListForSignature(),n?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))},n.tsParseBindingListForSignature=function(){var e=this;return this.parseBindingList(u.parenR).map(function(t){if("Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type)throw e.unexpected(t.start,"Name in a signature must be an Identifier or ObjectPattern, instead got "+t.type);return t})},n.tsParseTypeMemberSemicolon=function(){this.eat(u.comma)||this.semicolon()},n.tsParseSignatureMember=function(e){var t=this.startNode();return"TSConstructSignatureDeclaration"===e&&this.expect(u._new),this.tsFillSignature(u.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},n.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(u.name)&&this.match(u.colon)},n.tsTryParseIndexSignature=function(e){if(this.match(u.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(u.bracketL);var t=this.parseIdentifier();this.expect(u.colon),t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.expect(u.bracketR),e.parameters=[t];var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},n.tsParsePropertyOrMethodSignature=function(e,t){this.parsePropertyName(e),this.eat(u.question)&&(e.optional=!0);var n=e;if(t||!this.match(u.parenL)&&!this.isRelational("<")){var r=n;t&&(r.readonly=!0);var a=this.tsTryParseTypeAnnotation();return a&&(r.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}var i=n;return this.tsFillSignature(u.colon,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSMethodSignature")},n.tsParseTypeMember=function(){if(this.match(u.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration");if(this.match(u._new)&&this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this)))return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var e=this.startNode(),t=!!this.tsParseModifier(["readonly"]),n=this.tsTryParseIndexSignature(e);return n?(t&&(e.readonly=!0),n):this.tsParsePropertyOrMethodSignature(e,t)},n.tsIsStartOfConstructSignature=function(){return this.next(),this.match(u.parenL)||this.isRelational("<")},n.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},n.tsParseObjectTypeMembers=function(){this.expect(u.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(u.braceR),e},n.tsIsStartOfMappedType=function(){return this.next(),this.eat(u.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(u.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(u._in))))},n.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(u._in),this.finishNode(e,"TSTypeParameter")},n.tsParseMappedType=function(){var e=this.startNode();return this.expect(u.braceL),this.match(u.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(u.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),this.expect(u.bracketR),this.match(u.plusMin)?(e.optional=this.state.value,this.next(),this.expect(u.question)):this.eat(u.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(u.braceR),this.finishNode(e,"TSMappedType")},n.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var n=!1;return t.elementTypes.forEach(function(r,a){"TSRestType"===r.type?a!==t.elementTypes.length-1&&e.raise(r.start,"A rest element must be last in a tuple type."):"TSOptionalType"===r.type?n=!0:n&&e.raise(r.start,"A required element cannot follow an optional element.")}),this.finishNode(t,"TSTupleType")},n.tsParseTupleElementType=function(){if(this.match(u.ellipsis)){var e=this.startNode();return this.next(),e.typeAnnotation=this.tsParseType(),this.finishNode(e,"TSRestType")}var t=this.tsParseType();if(this.eat(u.question)){var n=this.startNodeAtNode(t);return n.typeAnnotation=t,this.finishNode(n,"TSOptionalType")}return t},n.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(u.parenL),e.typeAnnotation=this.tsParseType(),this.expect(u.parenR),this.finishNode(e,"TSParenthesizedType")},n.tsParseFunctionOrConstructorType=function(e){var t=this.startNode();return"TSConstructorType"===e&&this.expect(u._new),this.tsFillSignature(u.arrow,t),this.finishNode(t,e)},n.tsParseLiteralTypeNode=function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case u.num:return e.parseLiteral(e.state.value,"NumericLiteral");case u.string:return e.parseLiteral(e.state.value,"StringLiteral");case u._true:case u._false:return e.parseBooleanLiteral();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")},n.tsParseNonArrayType=function(){switch(this.state.type){case u.name:case u._void:case u._null:var e=this.match(u._void)?"TSVoidKeyword":this.match(u._null)?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&this.lookahead().type!==u.dot){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case u.string:case u.num:case u._true:case u._false:return this.tsParseLiteralTypeNode();case u.plusMin:if("-"===this.state.value){var n=this.startNode();if(this.next(),!this.match(u.num))throw this.unexpected();return n.literal=this.parseLiteral(-this.state.value,"NumericLiteral",n.start,n.loc.start),this.finishNode(n,"TSLiteralType")}break;case u._this:var r=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r;case u._typeof:return this.tsParseTypeQuery();case u.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case u.bracketL:return this.tsParseTupleType();case u.parenL:return this.tsParseParenthesizedType()}throw this.unexpected()},n.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(u.bracketL);)if(this.match(u.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(u.bracketR),e=this.finishNode(t,"TSArrayType")}else{var n=this.startNodeAtNode(e);n.objectType=e,n.indexType=this.tsParseType(),this.expect(u.bracketR),e=this.finishNode(n,"TSIndexedAccessType")}return e},n.tsParseTypeOperator=function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),this.finishNode(t,"TSTypeOperator")},n.tsParseInferType=function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")},n.tsParseTypeOperatorOrHigher=function(){var e=this,t=["keyof","unique"].find(function(t){return e.isContextual(t)});return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},n.tsParseUnionOrIntersectionType=function(e,t,n){this.eat(n);var r=t();if(this.match(n)){for(var a=[r];this.eat(n);)a.push(t());var i=this.startNodeAtNode(r);i.types=a,r=this.finishNode(i,e)}return r},n.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),u.bitwiseAND)},n.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),u.bitwiseOR)},n.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(u.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},n.tsSkipParameterStart=function(){if(this.match(u.name)||this.match(u._this))return this.next(),!0;if(this.match(u.braceL)){var e=1;for(this.next();e>0;)this.match(u.braceL)?++e:this.match(u.braceR)&&--e,this.next();return!0}return!1},n.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(u.parenR)||this.match(u.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(u.colon)||this.match(u.comma)||this.match(u.question)||this.match(u.eq))return!0;if(this.match(u.parenR)&&(this.next(),this.match(u.arrow)))return!0}return!1},n.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType(function(){var n=t.startNode();t.expect(e);var r=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!r)return t.tsParseTypeAnnotation(!1,n);var a=t.tsParseTypeAnnotation(!1),i=t.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=a,n.typeAnnotation=t.finishNode(i,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")})},n.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(u.colon)?this.tsParseTypeOrTypePredicateAnnotation(u.colon):void 0},n.tsTryParseTypeAnnotation=function(){return this.match(u.colon)?this.tsParseTypeAnnotation():void 0},n.tsTryParseType=function(){return this.tsEatThenParseType(u.colon)},n.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},n.tsParseTypeAnnotation=function(e,t){var n=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType(function(){e&&n.expect(u.colon),t.typeAnnotation=n.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")},n.tsParseType=function(){re(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(u._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(u.question),t.trueType=this.tsParseType(),this.expect(u.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")},n.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(u._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()},n.tsParseTypeAssertion=function(){var e=this,t=this.startNode();return t.typeAnnotation=this.tsInType(function(){return e.tsParseType()}),this.expectRelational(">"),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},n.tsParseHeritageClause=function(){return this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this))},n.tsParseExpressionWithTypeArguments=function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")},n.tsParseInterfaceDeclaration=function(e){e.id=this.parseIdentifier(),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(u._extends)&&(e.extends=this.tsParseHeritageClause());var t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},n.tsParseTypeAliasDeclaration=function(e){return e.id=this.parseIdentifier(),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsExpectThenParseType(u.eq),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},n.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},n.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},n.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},n.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType(function(){return t.expect(e)})},n.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType(function(){return e.next()})},n.tsDoThenParseType=function(e){var t=this;return this.tsInType(function(){return e(),t.tsParseType()})},n.tsParseEnumMember=function(){var e=this.startNode();return e.id=this.match(u.string)?this.parseLiteral(this.state.value,"StringLiteral"):this.parseIdentifier(!0),this.eat(u.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")},n.tsParseEnumDeclaration=function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.expect(u.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(u.braceR),this.finishNode(e,"TSEnumDeclaration")},n.tsParseModuleBlock=function(){var e=this.startNode();return this.expect(u.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,u.braceR),this.finishNode(e,"TSModuleBlock")},n.tsParseModuleOrNamespaceDeclaration=function(e){if(e.id=this.parseIdentifier(),this.eat(u.dot)){var t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t),e.body=t}else e.body=this.tsParseModuleBlock();return this.finishNode(e,"TSModuleDeclaration")},n.tsParseAmbientExternalModuleDeclaration=function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(u.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(u.braceL)?e.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(e,"TSModuleDeclaration")},n.tsParseImportEqualsDeclaration=function(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.expect(u.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},n.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookahead().type===u.parenL},n.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},n.tsParseExternalModuleReference=function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(u.parenL),!this.match(u.string))throw this.unexpected();return e.expression=this.parseLiteral(this.state.value,"StringLiteral"),this.expect(u.parenR),this.finishNode(e,"TSExternalModuleReference")},n.tsLookAhead=function(e){var t=this.state.clone(),n=e();return this.state=t,n},n.tsTryParseAndCatch=function(e){var t=this.state.clone();try{return e()}catch(e){if(e instanceof SyntaxError)return void(this.state=t);throw e}},n.tsTryParse=function(e){var t=this.state.clone(),n=e();return void 0!==n&&!1!==n?n:void(this.state=t)},n.nodeWithSamePosition=function(e,t){var n=this.startNodeAtNode(e);return n.type=t,n.end=e.end,n.loc.end=e.loc.end,e.leadingComments&&(n.leadingComments=e.leadingComments),e.trailingComments&&(n.trailingComments=e.trailingComments),e.innerComments&&(n.innerComments=e.innerComments),n},n.tsTryParseDeclare=function(e){switch(this.state.type){case u._function:return this.next(),this.parseFunction(e,!0);case u._class:return this.parseClass(e,!0,!1);case u._const:if(this.match(u._const)&&this.isLookaheadContextual("enum"))return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case u._var:case u._let:return this.parseVarStatement(e,this.state.type);case u.name:var t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}},n.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},n.tsParseExpressionStatement=function(e,t){switch(t.name){case"declare":var n=this.tsTryParseDeclare(e);if(n)return n.declare=!0,n;break;case"global":if(this.match(u.braceL)){var r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}},n.tsParseDeclaration=function(e,t,n){switch(t){case"abstract":if(n||this.match(u._class)){var r=e;return r.abstract=!0,n&&this.next(),this.parseClass(r,!0,!1)}break;case"enum":if(n||this.match(u.name))return n&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(n||this.match(u.name))return n&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(n&&this.next(),this.match(u.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(n||this.match(u.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(n||this.match(u.name))return n&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(n||this.match(u.name))return n&&this.next(),this.tsParseTypeAliasDeclaration(e)}},n.tsTryParseGenericAsyncArrowFunction=function(t,n){var r=this,a=this.tsTryParseAndCatch(function(){var a=r.startNodeAt(t,n);return a.typeParameters=r.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(u.arrow),a});if(a){var i=this.state.inAsync,s=this.state.inGenerator;return this.state.inAsync=!0,this.state.inGenerator=!1,a.id=null,a.generator=!1,a.expression=!0,a.async=!0,this.parseFunctionBody(a,!0),this.state.inAsync=i,this.state.inGenerator=s,this.finishNode(a,"ArrowFunctionExpression")}},n.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType(function(){return e.tsInNoContext(function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))})}),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")},n.tsIsDeclarationStart=function(){if(this.match(u.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},n.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},n.parseAssignableListItem=function(e,t){var n,r=!1;e&&(n=this.parseAccessModifier(),r=!!this.tsParseModifier(["readonly"]));var a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);var i=this.parseMaybeDefault(a.start,a.loc.start,a);if(n||r){var s=this.startNodeAtNode(i);if(t.length&&(s.decorators=t),n&&(s.accessibility=n),r&&(s.readonly=r),"Identifier"!==i.type&&"AssignmentPattern"!==i.type)throw this.raise(s.start,"A parameter property may not be declared using a binding pattern.");return s.parameter=i,this.finishNode(s,"TSParameterProperty")}return t.length&&(a.decorators=t),i},n.parseFunctionBodyAndFinish=function(t,n,r){!r&&this.match(u.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(u.colon));var a="FunctionDeclaration"===n?"TSDeclareFunction":"ClassMethod"===n?"TSDeclareMethod":void 0;a&&!this.match(u.braceL)&&this.isLineTerminator()?this.finishNode(t,a):e.prototype.parseFunctionBodyAndFinish.call(this,t,n,r)},n.parseSubscript=function(t,n,r,a,i){var s=this;if(!this.hasPrecedingLineBreak()&&this.match(u.bang)){this.state.exprAllowed=!1,this.next();var o=this.startNodeAt(n,r);return o.expression=t,this.finishNode(o,"TSNonNullExpression")}if(this.isRelational("<")){var c=this.tsTryParseAndCatch(function(){if(!a&&s.atPossibleAsync(t)){var e=s.tsTryParseGenericAsyncArrowFunction(n,r);if(e)return e}var o=s.startNodeAt(n,r);o.callee=t;var c=s.tsParseTypeArguments();if(c){if(!a&&s.eat(u.parenL))return o.arguments=s.parseCallExpressionArguments(u.parenR,!1),o.typeParameters=c,s.finishCallExpression(o);if(s.match(u.backQuote))return s.parseTaggedTemplateExpression(n,r,t,i,c)}s.unexpected()});if(c)return c}return e.prototype.parseSubscript.call(this,t,n,r,a,i)},n.parseNewArguments=function(t){var n=this;if(this.isRelational("<")){var r=this.tsTryParseAndCatch(function(){var e=n.tsParseTypeArguments();return n.match(u.parenL)||n.unexpected(),e});r&&(t.typeParameters=r)}e.prototype.parseNewArguments.call(this,t)},n.parseExprOp=function(t,n,r,a,i){if(ne(u._in.binop)>a&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var s=this.startNodeAt(n,r);return s.expression=t,s.typeAnnotation=this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.parseExprOp(s,n,r,a,i)}return e.prototype.parseExprOp.call(this,t,n,r,a,i)},n.checkReservedWord=function(e,t,n,r){},n.checkDuplicateExports=function(){},n.parseImport=function(t){return this.match(u.name)&&this.lookahead().type===u.eq?this.tsParseImportEqualsDeclaration(t):e.prototype.parseImport.call(this,t)},n.parseExport=function(t){if(this.match(u._import))return this.expect(u._import),this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(u.eq)){var n=t;return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"TSExportAssignment")}if(this.eatContextual("as")){var r=t;return this.expectContextual("namespace"),r.id=this.parseIdentifier(),this.semicolon(),this.finishNode(r,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t)},n.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===u._class},n.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),this.parseClass(t,!0,!0),t.abstract=!0,t}if("interface"===this.state.value){var n=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(n)return n}return e.prototype.parseExportDefaultExpression.call(this)},n.parseStatementContent=function(t,n){if(this.state.type===u._const){var r=this.lookahead();if(r.type===u.name&&"enum"===r.value){var a=this.startNode();return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(a,!0)}}return e.prototype.parseStatementContent.call(this,t,n)},n.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},n.parseClassMember=function(t,n,r){var a=this.parseAccessModifier();a&&(n.accessibility=a),e.prototype.parseClassMember.call(this,t,n,r)},n.parseClassMemberWithIsStatic=function(t,n,r,a){var i=n,s=n,o=n,u=!1,c=!1;switch(this.tsParseModifier(["abstract","readonly"])){case"readonly":c=!0,u=!!this.tsParseModifier(["abstract"]);break;case"abstract":u=!0,c=!!this.tsParseModifier(["readonly"])}if(u&&(i.abstract=!0),c&&(o.readonly=!0),!u&&!a&&!i.accessibility){var l=this.tsTryParseIndexSignature(n);if(l)return void t.body.push(l)}if(c)return i.static=a,this.parseClassPropertyName(s),this.parsePostMemberNameModifiers(i),void this.pushClassProperty(t,s);e.prototype.parseClassMemberWithIsStatic.call(this,t,n,r,a)},n.parsePostMemberNameModifiers=function(e){this.eat(u.question)&&(e.optional=!0)},n.parseExpressionStatement=function(t,n){return("Identifier"===n.type?this.tsParseExpressionStatement(t,n):void 0)||e.prototype.parseExpressionStatement.call(this,t,n)},n.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||e.prototype.shouldParseExportDeclaration.call(this)},n.parseConditional=function(t,n,r,a,i){if(!i||!this.match(u.question))return e.prototype.parseConditional.call(this,t,n,r,a,i);var s=this.state.clone();try{return e.prototype.parseConditional.call(this,t,n,r,a)}catch(e){if(!(e instanceof SyntaxError))throw e;return this.state=s,i.start=e.pos||this.state.start,t}},n.parseParenItem=function(t,n,r){if(t=e.prototype.parseParenItem.call(this,t,n,r),this.eat(u.question)&&(t.optional=!0),this.match(u.colon)){var a=this.startNodeAt(n,r);return a.expression=t,a.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(a,"TSTypeCastExpression")}return t},n.parseExportDeclaration=function(t){var n,r=this.eatContextual("declare");return this.match(u.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=e.prototype.parseExportDeclaration.call(this,t)),n&&r&&(n.declare=!0),n},n.parseClassId=function(t,n,r){if(n&&!r||!this.isContextual("implements")){e.prototype.parseClassId.apply(this,arguments);var a=this.tsTryParseTypeParameters();a&&(t.typeParameters=a)}},n.parseClassProperty=function(t){!t.optional&&this.eat(u.bang)&&(t.definite=!0);var n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),e.prototype.parseClassProperty.call(this,t)},n.pushClassMethod=function(t,n,r,a,i){var s=this.tsTryParseTypeParameters();s&&(n.typeParameters=s),e.prototype.pushClassMethod.call(this,t,n,r,a,i)},n.pushClassPrivateMethod=function(t,n,r,a){var i=this.tsTryParseTypeParameters();i&&(n.typeParameters=i),e.prototype.pushClassPrivateMethod.call(this,t,n,r,a)},n.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause())},n.parseObjPropValue=function(t){var n,r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r);for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;se).join("\n\n")}},function(e,t){const n={jsonpath:'import jsonpath from "jslib.k6.io/jsonpath/1.0.2/index.js"',formurlencoded:'import formurlencoded from "jslib.k6.io/form-urlencoded/3.0.0/index.js"'};e.exports=function(e){if(function(e){return Object.values(e).find(e=>e)}(e)){const t=[];return function(e,t){const n=["sleep"];(e.check||e.group)&&(e.check&&n.push("check"),e.group&&n.push("group"));const r=n.join(", ");t.push(`import { ${r} } from "k6";`)}(e,t),function(e,t){e.http&&t.push('import http from "k6/http";')}(e,t),function(e,t){(e.formUrlEncode||e.jsonpath||e.MimeBuilder)&&(t.length>0&&t.push("\n"),e.formUrlEncode&&t.push(n.formurlencoded),e.jsonpath&&t.push(n.jsonpath))}(e,t),t.join("\n")}return null}},function(e,t,n){const r=n(9);e.exports=function(e){return e.comment.length?r(e.comment.join("\n")):null}},function(e,t,n){const r=n(165),a=n(251),i=n(252),s=n(307);e.exports=function(e){const t=[a(e.declares),s(e),i(e),"sleep(1);"].filter(e=>e);return`export default function() ${r(t)}`}},function(e,t){e.exports=function(e){if(e.size)return`let ${[...e].sort().join(", ")};`;return null}},function(e,t,n){const r=n(166),a=n(305),{FlowItemType:i}=n(2),{UnrecognizedError:s}=n(1);e.exports=function(e){if(e.flow.length)return e.flow.map(e=>(function(e){switch(e.type){case i.External:return r(e.entry);case i.Group:return a(e);default:throw new s({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}})(e)).join("\n\n");return null}},function(e,t,n){const r=n(9),a=n(254),i=n(255);e.exports=function(e){const t=[a(e),i(e.request)].filter(e=>e).join("\n\n");return t?r(t):null}},function(e,t){e.exports=function(e){return e.comment||e.request.comment?[e.comment,e.request.comment].filter(e=>e).join("\n"):null}},function(e,t,n){const{lineBreak:r}=n(4);function a([e,t]){const n=t.size>1,a=[...t].map((t,a)=>(function(e,t,n,a){return t.comment?r.test(t.comment)?""+`${i(e,n,a)}:\n${t.comment}`:`${i(e,n,a)}: ${t.comment}`:null})(e,t,n,a)).filter(e=>e);return a.length?a.join("\n"):null}function i(e,t,n){return t?`${e}[${n}]`:`${e}`}e.exports=function(e){const t=e.state;if(t.address.variable||!e.query.size||t.query.variable)return null;{const t=[...e.query].map(a).filter(e=>e);return t.length?""+`Query string notes:\n${t.join("\n")}`:null}}},function(e,t,n){const r=n(257),a=n(275),i=n(303);e.exports=function(e){return[a(e.request),r(e.checks),i(e.variables)].filter(e=>e).join("\n")}},function(e,t,n){const r=n(258),a=n(15);e.exports=function(e){if(e.size){const t=[...e].map(([e,t])=>r(e,t));return`check(response, ${a(t)});`}return null}},function(e,t,n){const r=n(259),{CheckType:a}=n(2),{UnrecognizedError:i}=n(1);e.exports=function(e,t){switch(t.type){case a.Text:return r.Text(e,t);case a.JSONPathValue:return r.JSONPathValue(e,t);case a.JSONPath:return r.JSONPath(e,t);case a.Regex:return r.Regex(e,t);default:throw new i({name:"UnrecognizedCheckType"},`Unrecognized check type: ${t.type}`)}}},function(e,t,n){Object.assign(t,{JSONPath:n(260),JSONPathValue:n(263),Regex:n(264),Text:n(265)})},function(e,t,n){const r=n(10),a=n(5);function i(e){return`response => ${function(e){const t=a(e.expression);return""+`{\n${r(`return !!${`jsonpath.query(response.json(), ${t})`}.length;`)}\n}`}(e)}`}e.exports=function(e,t){const n={name:e,value:i(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t){e.exports=function(e,t=""){return JSON.stringify(e.join(t))}},function(e,t){e.exports=function(e){return JSON.stringify(e)}},function(e,t,n){const r=n(167),a=n(10),i=n(5);function s(e){const t={subject:o(e),comparison:r(e.condition,u(e)),negated:e.state.negated};return t.body=function(e){const t=e.negated?"!":"!!",n=""+`const values = ${e.subject};\nreturn ${t}values.find(value => value${e.comparison});`;return""+`{\n${a(n)}\n}`}(t),`response => ${t.body}`}function o(e){return`jsonpath.query(response.json(), ${i(e.expression)})`}function u(e){return i(e.value)}e.exports=function(e,t){const n={name:e,value:s(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t,n){const r=n(10),a=n(5),i=n(168);function s(e){const t={subject:i(e.subject),expression:o(e),flags:u(e)};return t.body=function(e,t){return e.state.plural?function(e){const t=""+`const values = ${e.subject};\nconst expr = new RegExp(${c(e)});\nreturn !!values.find(value => expr.test(value));`;return""+`{\n${r(t)}\n}`}(t):function(e){const t=""+`const expr = new RegExp(${c(e)});\nreturn expr.test(${e.subject});`;return""+`{\n${r(t)}\n}`}(t)}(e,t),`response => ${t.body}`}function o(e){return a(e.expression)}function u(e){return e.flags?a(e.flags):null}function c(e){const t=[];return t.push(e.expression),e.flags&&t.push(e.flags),t.join(", ")}e.exports=function(e,t){const n={name:e,value:s(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t,n){const r=n(167),a=n(10),i=n(5),s=n(168);function o(e){const t={subject:s(e.subject),comparison:r(e.condition,u(e)),negated:e.state.negated};return t.body=function(e,t){return e.state.plural?function(e){const t=e.negated?"!":"!!",n=""+`const values = ${e.subject};\nreturn ${t}values.find(value => value${e.comparison});`;return""+`{\n${a(n)}\n}`}(t):function(e){return(e.negated?"!":"")+e.subject+e.comparison}(t)}(e,t),`response => ${t.body}`}function u(e){return i(e.value)}e.exports=function(e,t){const n={name:e,value:o(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t,n){const r=n(267),a=n(274);e.exports=function(e){return e.length?(e=[...e],a(e),e.map(e=>r(e)).join("\n")):null}},function(e,t,n){const r=n(9),a=n(268),{CommentLocation:i}=n(2),{lineBreak:s,multilineComment:o}=n(4);e.exports=function(e,t){const n=e.comment?r(e.comment):null,u=function(e,t){return t&&o.test(t)||s.test(e.value)||2+e.name.length+2+e.value.length>50?i.Top:i.Suffix}(e,n);return(n&&u===i.Top?`${n}\n`:"")+`${a(e.name)}: ${e.value}`+(t?"":",")+(n&&u===i.Suffix?` ${n}`:"")}},function(e,t,n){const r=n(5),a=n(169),i=n(24),{StringSpecies:s}=n(2),{UnrecognizedError:o}=n(1);e.exports=function(e){switch(a(e)){case s.Identifier:return e;case s.String:return r(e);case s.Template:return`[${i(e)}]`;default:throw new o({name:"UnrecognizedStringSpecies"},`Unrecognized string species: ${e}`)}}},function(e,t){e.exports=function(e){return n.test(e)};const 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)$)(?:[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D])(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])*$/},function(e,t,n){const{variable:r}=n(4);e.exports=function(e){return r.test(e)}},function(e,t,n){const r=n(170);e.exports=function(e,t=""){return["`",e.map(e=>r(e)).join(t),"`"].join("")}},function(e,t,n){const r=n(5);e.exports=function(e){return`vars[${r(e)}]`}},function(e,t,n){const r=n(170);e.exports=function(e){return`\`${r(e)}\``}},function(e,t,n){const r=n(169),{StringSpecies:a}=n(2),{UnrecognizedError:i}=n(1);function s(e,t){const n=r(e.key),s=r(t.key);if(n===s)return e.key>t.key?1:e.keye).join("\n")}(function(e){const t=p();return t.call=function(e){return m.has(e.method)?m.get(e.method):"request"}(e),t.method=function(e){return l(e.method)}(e),t.capacity=function(e){return"GET"!==e.method}(e),r(e,t),function(e,t){t.body=u(e),e.state.post.species===d.Structured&&"multipart/form-data"===e.post.type&&e.state.params.variable&&t.pre.push(c(e.post.params))}(e,t),t.headers=i(e.headers),t.cookies=a(e.cookies),t.options=function(e){if(e.headers||e.cookies){const t=[];return e.headers&&t.push({name:"headers",value:e.headers}),e.cookies&&t.push({name:"cookies",value:e.cookies}),o(t)}return null}(t),t.args=function(e){const t=[];return"request"===e.call&&t.push(e.method),t.push(e.address),e.body?t.push(e.body):e.capacity&&e.options&&t.push("null"),e.options&&t.push(e.options),t}(t),t.compact=function(e){return!e.capacity||1===e.args.length||"null"===e.args[1]}(t),t}(e))}},function(e,t,n){const r=n(277),a=n(279),i=n(280),s=n(281),{AddressSpecies:o}=n(2),{UnrecognizedError:u}=n(1);e.exports=function(e,t){switch(e.state.address.species){case o.Fixed:a(e,t);break;case o.Constructed:r(e,t);break;case o.Resolved:i(e,t);break;case o.Runtime:s(e,t);break;default:throw new u({name:"UnrecognizedAddressSpecies"},`Unrecognized address species: ${e.state.address.species}`)}}},function(e,t,n){const r=n(5),a=n(278);e.exports=function(e,t){const n=new a(e.address);!function(e,t){for(const[n,r]of e.query)for(const{value:e}of r)t.addQuery(n,e)}(e,n),t.address=r(n.toString())}},function(e,t,n){var r,a,i; +*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,a,i=r.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,n=i,a=o,t.copy(n,a),o+=s.data.length,s=s.next;return i},e}(),a&&a.inspect&&a.inspect.custom&&(e.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(a.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(a.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(188),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,a,i,s,o,u=1,c={},l=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){f(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(a=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):r=function(e){setTimeout(f,0,e)}:(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&f(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),r=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n0)throw s(e,m,y,"uses non-zero precision (not supported)");switch(t.match(/-/)&&(l=!0),t.match(/0/)&&(p="0"),t.match(/\+/)&&(d=!0),o){case"s":if(null==h)throw s(e,m,y,"attempted to print undefined or null as a string (argument "+E+" to sprintf)");b+=u(p,n,l,h.toString());break;case"d":h=Math.floor(h);case"f":b+=(d=d&&h>0?"+":"")+u(p,n,l,h.toString());break;case"x":b+=u(p,n,l,h.toString(16));break;case"j":0===n&&(n=10),b+=a.inspect(h,!1,n);break;case"r":b+=c(h);break;default:throw s(e,m,y,"is not supported")}}else b+="%";return b+=v}function s(e,t,n,a){return r.equal(typeof e,"string"),r.equal(typeof n,"string"),r.equal(typeof t,"number"),r.equal(typeof a,"string"),new Error('format string "'+e+'": conversion specifier "'+n+'" at character '+t+" "+a)}function o(e){var t=Array.prototype.slice.call(arguments,1);return e.write(i.apply(this,t))}function u(e,t,n,r){for(var a=r;a.lengtht.page===e),s={type:r.Group,id:e,entries:i};t.pages.has(e)&&(s.page=t.pages.get(e)),a.push(s)}}(e.page,t,n,a):function(e,t){const n={type:r.External,entry:e};t.push(n)}(e,a)}e.exports=function(e){const t=new Set;for(const n of e.entries)a(n,e,t,e.flow)}},function(e,t,n){const{CheckType:r,FlowItemType:a,PostSpecies:i,VariableType:s}=n(2),{UnrecognizedError:o}=n(1);function u(e){return e.variables&&e.variables.find(c)||e.checks&&e.checks.find(l)}function c(e){return e.type===s.JSONPath}function l(e){return[r.JSONPath,r.JSONPathValue].includes(e.type)}function p(e){switch(e.type){case a.External:return d(e.entry);case a.Group:return e.entries.find(d);default:throw new o({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function d({request:e}){return e.state.post.species===i.Structured&&"application/x-www-form-urlencoded"===e.post.type&&e.state.params.plural&&e.state.params.variable}function h(e){switch(e.type){case a.External:return f(e.entry);case a.Group:return e.entries.find(f);default:throw new o({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}}function f({request:e}){return e.state.post.species===i.Structured&&"multipart/form-data"===e.post.type&&e.state.params.variable}e.exports=function(e,t){if(e.log.entries){t.imports.http=!0;const n=e.log.entries;n.find(e=>e.pageref)&&(t.imports.group=!0),n.find(e=>e.checks&&e.checks.length)&&(t.imports.check=!0),n.find(u)&&(t.imports.jsonpath=!0),t.flow.find(p)&&(t.imports.formUrlEncode=!0),t.flow.find(h)&&(t.imports.MimeBuilder=!0)}}},function(e,t,n){const r=n(202);e.exports=function(e,t){r(e.log,t)}},function(e,t,n){const r=n(203),a=n(204),i=n(205),s=n(240),o=n(242);e.exports=function(e,t){e.options&&o(e.options,t),e.creator&&a(e.creator,t),e.browser&&r(e.browser,t),e.comment&&t.comment.push(e.comment),e.pages&&s(e.pages,t),e.entries&&i(e.entries,t)}},function(e,t){e.exports=function(e,t){const n=[];e.name&&(e.version?n.push(`Browser: ${e.name} ${e.version}`):n.push(`Browser: ${e.name}`)),e.comment&&n.push(e.comment),n.length&&t.comment.push(n.join("\n"))}},function(e,t){e.exports=function(e,t){const n=[];e.name&&(e.version?n.push(`Creator: ${e.name} ${e.version}`):n.push(`Creator: ${e.name}`)),e.comment&&n.push(e.comment),n.length&&t.comment.push(n.join("\n"))}},function(e,t,n){const r=n(206);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t,n){const r=n(207),a=n(220),i=n(237),s=n(238),{entrySpec:o}=n(16);e.exports=function(e,t){const n=o();e.pageref&&(n.page=e.pageref),e.comment&&(n.comment=e.comment),a(e.request,n.request),e.checks&&r(e.checks,n.checks),e.variables&&s(e.variables,n.variables),i(n),t.entries.push(n)}},function(e,t,n){const r=n(208);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t,n){const r=n(209),a=n(34),i=n(219),{checkState:s}=n(16),{CheckTypeEncoding:o}=n(2);e.exports=function(e,t){const n={type:e.type,state:s()};e.comment&&(n.comment=e.comment),r[o.get(e.type)](e,n),i(n),t.set(a(e),n)}},function(e,t,n){Object.assign(t,{JSONPath:n(210),JSONPathValue:n(211),Regex:n(212),Text:n(213)})},function(e,t){e.exports=function(e,t){t.expression=e.expression}},function(e,t){e.exports=function(e,t){t.expression=e.expression,t.condition=e.condition,t.value=e.value}},function(e,t){e.exports=function(e,t){t.subject=e.subject,t.expression=e.expression,e.flags&&(t.flags=e.flags)}},function(e,t){e.exports=function(e,t){t.subject=e.subject,t.condition=e.condition,t.value=e.value}},function(e,t,n){const r=n(215),a=n(216),i=n(217),s=n(218),{CheckType:o}=n(2),{UnrecognizedError:u}=n(1);e.exports=function(e){switch(e.type){case o.JSONPath:return r(e);case o.JSONPathValue:return a(e);case o.Regex:return i(e);case o.Text:return s(e);default:throw new u({name:"UnrecognizedCheckType"},`Unrecognized check type: ${e.type}`)}}},function(e,t){e.exports=function(e){return[e.expression,"exists"].join(" ")}},function(e,t,n){const r=n(35);e.exports=function(e){return[e.expression,r(e.condition),e.value].join(" ")}},function(e,t,n){const r=n(36);function a(e){return`/${e.expression}/${e.flags||""}`}e.exports=function(e){return[r(e.subject),"matches",a(e)].join(" ")}},function(e,t,n){const r=n(35),a=n(36);e.exports=function(e){return[a(e.subject),r(e.condition),e.value].join(" ")}},function(e,t,n){const{CheckCondition:r,CheckSubject:a,CheckType:i}=n(2);e.exports=function(e){e.state.negated=function(e){return e.condition===r.NotContains}(e),e.state.plural=function(e){return e.subject===a.ResponseHeaders||e.type===i.JSONPathValue}(e)}},function(e,t,n){const r=n(221),a=n(225),i=n(227),s=n(230),o=n(232),{emptyObject:u}=n(3);e.exports=function(e,t){t.method=e.method.toUpperCase(),t.address=e.url,e.comment&&(t.comment=e.comment),e.queryString&&s(e.queryString,t.query),e.headers&&a(e.headers,t.headers),e.cookies&&r(e.cookies,t.cookies),e.postData&&!u(e.postData)&&(i(e.postData,t.post),function(e,t){if(!t.has("Content-Type")){const n={value:e},r=new Set([n]);t.set("Content-Type",r)}}(e.postData.mimeType,t.headers)),o(t)}},function(e,t,n){const r=n(222);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t,n){const r=n(223),a=n(0);e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.path&&(n.path=e.path),e.domain&&(n.domain=e.domain),e.expires&&function(e,t){const n=a(e,a.ISO_8601);n.utc(),t.expires=r.date.http(n)}(e.expires,n),"boolean"==typeof e.httpOnly&&(n.httpOnly=e.httpOnly),"boolean"==typeof e.secure&&(n.secure=e.secure),e.comment&&(n.comment=e.comment),t.set(e.name,n)}},function(e,t){const n=Object.freeze({http:e=>e.format("ddd, DD MMM YYYY HH:mm:ss [GMT]"),iso8601:e=>e.format()});Object.assign(t,{date:n})},function(e,t,n){var r={"./af":38,"./af.js":38,"./ar":39,"./ar-dz":40,"./ar-dz.js":40,"./ar-kw":41,"./ar-kw.js":41,"./ar-ly":42,"./ar-ly.js":42,"./ar-ma":43,"./ar-ma.js":43,"./ar-sa":44,"./ar-sa.js":44,"./ar-tn":45,"./ar-tn.js":45,"./ar.js":39,"./az":46,"./az.js":46,"./be":47,"./be.js":47,"./bg":48,"./bg.js":48,"./bm":49,"./bm.js":49,"./bn":50,"./bn.js":50,"./bo":51,"./bo.js":51,"./br":52,"./br.js":52,"./bs":53,"./bs.js":53,"./ca":54,"./ca.js":54,"./cs":55,"./cs.js":55,"./cv":56,"./cv.js":56,"./cy":57,"./cy.js":57,"./da":58,"./da.js":58,"./de":59,"./de-at":60,"./de-at.js":60,"./de-ch":61,"./de-ch.js":61,"./de.js":59,"./dv":62,"./dv.js":62,"./el":63,"./el.js":63,"./en-SG":64,"./en-SG.js":64,"./en-au":65,"./en-au.js":65,"./en-ca":66,"./en-ca.js":66,"./en-gb":67,"./en-gb.js":67,"./en-ie":68,"./en-ie.js":68,"./en-il":69,"./en-il.js":69,"./en-nz":70,"./en-nz.js":70,"./eo":71,"./eo.js":71,"./es":72,"./es-do":73,"./es-do.js":73,"./es-us":74,"./es-us.js":74,"./es.js":72,"./et":75,"./et.js":75,"./eu":76,"./eu.js":76,"./fa":77,"./fa.js":77,"./fi":78,"./fi.js":78,"./fo":79,"./fo.js":79,"./fr":80,"./fr-ca":81,"./fr-ca.js":81,"./fr-ch":82,"./fr-ch.js":82,"./fr.js":80,"./fy":83,"./fy.js":83,"./ga":84,"./ga.js":84,"./gd":85,"./gd.js":85,"./gl":86,"./gl.js":86,"./gom-latn":87,"./gom-latn.js":87,"./gu":88,"./gu.js":88,"./he":89,"./he.js":89,"./hi":90,"./hi.js":90,"./hr":91,"./hr.js":91,"./hu":92,"./hu.js":92,"./hy-am":93,"./hy-am.js":93,"./id":94,"./id.js":94,"./is":95,"./is.js":95,"./it":96,"./it-ch":97,"./it-ch.js":97,"./it.js":96,"./ja":98,"./ja.js":98,"./jv":99,"./jv.js":99,"./ka":100,"./ka.js":100,"./kk":101,"./kk.js":101,"./km":102,"./km.js":102,"./kn":103,"./kn.js":103,"./ko":104,"./ko.js":104,"./ku":105,"./ku.js":105,"./ky":106,"./ky.js":106,"./lb":107,"./lb.js":107,"./lo":108,"./lo.js":108,"./lt":109,"./lt.js":109,"./lv":110,"./lv.js":110,"./me":111,"./me.js":111,"./mi":112,"./mi.js":112,"./mk":113,"./mk.js":113,"./ml":114,"./ml.js":114,"./mn":115,"./mn.js":115,"./mr":116,"./mr.js":116,"./ms":117,"./ms-my":118,"./ms-my.js":118,"./ms.js":117,"./mt":119,"./mt.js":119,"./my":120,"./my.js":120,"./nb":121,"./nb.js":121,"./ne":122,"./ne.js":122,"./nl":123,"./nl-be":124,"./nl-be.js":124,"./nl.js":123,"./nn":125,"./nn.js":125,"./pa-in":126,"./pa-in.js":126,"./pl":127,"./pl.js":127,"./pt":128,"./pt-br":129,"./pt-br.js":129,"./pt.js":128,"./ro":130,"./ro.js":130,"./ru":131,"./ru.js":131,"./sd":132,"./sd.js":132,"./se":133,"./se.js":133,"./si":134,"./si.js":134,"./sk":135,"./sk.js":135,"./sl":136,"./sl.js":136,"./sq":137,"./sq.js":137,"./sr":138,"./sr-cyrl":139,"./sr-cyrl.js":139,"./sr.js":138,"./ss":140,"./ss.js":140,"./sv":141,"./sv.js":141,"./sw":142,"./sw.js":142,"./ta":143,"./ta.js":143,"./te":144,"./te.js":144,"./tet":145,"./tet.js":145,"./tg":146,"./tg.js":146,"./th":147,"./th.js":147,"./tl-ph":148,"./tl-ph.js":148,"./tlh":149,"./tlh.js":149,"./tr":150,"./tr.js":150,"./tzl":151,"./tzl.js":151,"./tzm":152,"./tzm-latn":153,"./tzm-latn.js":153,"./tzm.js":152,"./ug-cn":154,"./ug-cn.js":154,"./uk":155,"./uk.js":155,"./ur":156,"./ur.js":156,"./uz":157,"./uz-latn":158,"./uz-latn.js":158,"./uz.js":157,"./vi":159,"./vi.js":159,"./x-pseudo":160,"./x-pseudo.js":160,"./yo":161,"./yo.js":161,"./zh-cn":162,"./zh-cn.js":162,"./zh-hk":163,"./zh-hk.js":163,"./zh-tw":164,"./zh-tw.js":164};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=i,e.exports=a,a.id=224},function(e,t,n){const r=n(226);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.comment&&(n.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(n)}},function(e,t,n){const r=n(228);e.exports=function(e,t){t.type=e.mimeType,e.text?t.value=e.text:e.params&&e.params.length&&(t.params=new Map,r(e.params,t.params)),e.comment&&(t.comment=e.comment)}},function(e,t,n){const r=n(229);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.fileName&&(n.fileName=e.fileName),e.contentType&&(n.type=e.contentType),e.comment&&(n.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(n)}},function(e,t,n){const r=n(231);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={};e.value&&(n.value=e.value),e.comment&&(n.comment=e.comment),t.has(e.name)||t.set(e.name,new Set),t.get(e.name).add(n)}},function(e,t,n){const r=n(233),a=n(234),i=n(235),s=n(236);e.exports=function(e){s(e),r(e),i(e),a(e)}},function(e,t,n){const r=n(4),{AddressSpecies:a}=n(2);e.exports=function(e){const t=e.state.address;t.variable=function(e){return r.variable.test(e.address)}(e),t.variableStart=function(e){return r.variableStart.test(e.address)}(e),t.species=function(e){return function(e){return!(e.state.address.variable||e.query.size)}(e)&&a.Fixed||function(e){return!!e.query.size&&!(e.state.address.variable||e.state.query.variable)}(e)&&a.Constructed||function(e){return e.state.address.variable&&!(e.state.address.variableStart||e.query.size)}(e)&&a.Resolved||a.Runtime}(e)}},function(e,t,n){const r=n(4);e.exports=function(e){const t=e.state.params;t.plural=function(e){return!!e.post.params&&!![...e.post.params.values()].find(e=>e.size>1)}(e),t.variable=function(e){return!(!e.post.params||![...e.post.params.keys()].find(e=>r.variable.test(e))&&![...e.post.params.values()].find(e=>[...e].find(({value:e})=>e&&r.variable.test(e))))}(e)}},function(e,t,n){const{PostSpecies:r}=n(2);e.exports=function(e){e.state.post.species=function(e){return e.params?r.Structured:e.text||e.type?r.Unstructured:r.Empty}(e.post)}},function(e,t,n){const r=n(4);e.exports=function(e){e.state.query.variable=function(e){return!(![...e.query.keys()].find(e=>r.variable.test(e))&&![...e.query.values()].find(e=>[...e].find(({value:e})=>e&&r.variable.test(e))))}(e)}},function(e,t,n){const{PostSpecies:r}=n(2);e.exports=function(e){e.state.expanded=function(e){return e.request.state.post.species!==r.Empty||e.checks.size||e.variables.size}(e)}},function(e,t,n){const r=n(239);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={type:e.type,expression:e.expression};e.comment&&(n.comment=e.comment),t.set(e.name,n)}},function(e,t,n){const r=n(241);e.exports=function(e,t){for(const n of e)r(n,t)}},function(e,t){e.exports=function(e,t){const n={name:e.title};e.comment&&(n.comment=e.comment),t.pages.set(e.id,n)}},function(e,t){e.exports=function(e,t){t.options={...e}}},function(e,t,n){const r=n(244),a=n(247);e.exports=function(e){const t=a(e);return r(t)}},function(e,t,n){const r=n(245),a=n(246);e.exports=function(e){return r.format(e,{semi:!0,parser:"babel",plugins:[a]})}},function(e,t,n){(function(t){var n;n=function(){"use strict";var e="Prettier is an opinionated code formatter",n={prettier:"./bin/prettier.js"},r={node:">=6"},a={"@angular/compiler":"7.2.9","@babel/code-frame":"7.0.0","@babel/parser":"7.2.0","@glimmer/syntax":"0.38.4","@iarna/toml":"2.2.3","@typescript-eslint/typescript-estree":"1.6.0","angular-estree-parser":"1.1.5","angular-html-parser":"1.2.0",camelcase:"4.1.0",chalk:"2.1.0","cjk-regex":"2.0.0",cosmiconfig:"5.0.7",dashify:"0.2.2",dedent:"0.7.0",diff:"3.2.0",editorconfig:"0.15.2","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"1.0.5",esutils:"2.0.2","find-parent-dir":"0.3.0","find-project-root":"1.1.1","flow-parser":"0.84.0","get-stream":"3.0.0",globby:"6.1.0",graphql:"14.2.0","html-element-attributes":"2.0.0","html-styles":"1.0.0","html-tag-names":"1.1.2",ignore:"4.0.6","is-ci":"2.0.0","jest-docblock":"23.2.0","json-stable-stringify":"1.0.1",leven:"2.1.0","lines-and-columns":"1.1.6","linguist-languages":"6.2.1-dev.20180706","lodash.uniqby":"4.7.0",mem:"1.1.0",minimatch:"3.0.4",minimist:"1.2.0","n-readlines":"1.0.0","normalize-path":"3.0.0","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","postcss-less":"1.1.5","postcss-media-query-parser":"0.2.3","postcss-scss":"2.0.0","postcss-selector-parser":"2.2.3","postcss-values-parser":"1.5.0","regexp-util":"1.2.2","remark-math":"1.0.4","remark-parse":"5.0.0",resolve:"1.5.0",semver:"5.4.1","string-width":"3.0.0",typescript:"3.4.1","unicode-regex":"2.0.0",unified:"6.1.6",vnopts:"1.0.2",yaml:"1.0.2","yaml-unist-parser":"1.0.0"},i={"@babel/cli":"7.2.0","@babel/core":"7.2.0","@babel/preset-env":"7.2.0","babel-loader":"8.0.4",benchmark:"2.1.4","builtin-modules":"2.0.0",codecov:"codecov/codecov-node#e427d900309adb50746a39a50aa7d80071a5ddd0","cross-env":"5.0.5",eslint:"4.18.2","eslint-config-prettier":"2.9.0","eslint-friendly-formatter":"3.0.0","eslint-plugin-import":"2.9.0","eslint-plugin-prettier":"2.6.0","eslint-plugin-react":"7.7.0",execa:"0.10.0",jest:"23.3.0","jest-junit":"5.0.0","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.1.0",mkdirp:"0.5.1",prettier:"1.18.0",prettylint:"1.0.0",rimraf:"2.6.2",rollup:"0.47.6","rollup-plugin-alias":"1.4.0","rollup-plugin-babel":"4.0.0-beta.4","rollup-plugin-commonjs":"8.2.6","rollup-plugin-json":"2.1.1","rollup-plugin-node-builtins":"2.0.0","rollup-plugin-node-globals":"1.1.0","rollup-plugin-node-resolve":"2.0.0","rollup-plugin-replace":"1.2.1","rollup-plugin-uglify":"3.0.0",shelljs:"0.8.1","snapshot-diff":"0.4.0","strip-ansi":"4.0.0",tempy:"0.2.1",webpack:"3.12.0"},s={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dist":"node ./scripts/test-dist.js","test-integration":"jest tests_integration","perf-repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf-benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"cross-env EFF_NO_LINK_RULES=true eslint . --format node_modules/eslint-friendly-formatter","lint-docs":"prettylint {.,docs,website,website/blog}/*.md","lint-dist":'eslint --no-eslintrc --no-ignore --env=browser "dist/!(bin-prettier|index|third-party).js"',build:"node --max-old-space-size=2048 ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js","check-deps":"node ./scripts/check-deps.js"},o={name:"prettier",version:"1.18.2",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:a,devDependencies:i,scripts:s},u=Object.freeze({name:"prettier",version:"1.18.2",description:e,bin:n,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",engines:r,dependencies:a,devDependencies:i,scripts:s,default:o}),c="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t){return e(t={exports:{}},t.exports),t.exports}var d=p(function(e,t){function n(){}function r(e,t,n,r,a){for(var i=0,s=t.length,o=0,u=0;ie.length?n:e}),c.value=e.join(p)}else c.value=e.join(n.slice(o,o+c.count));o+=c.count,c.added||(u+=c.count)}}var d=t[s-1];return s>1&&(d.added||d.removed)&&e.equals("",d.value)&&(t[s-2].value+=d.value,t.pop()),t}t.__esModule=!0,t.default=n,n.prototype={diff:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],a=n.callback;"function"==typeof n&&(a=n,n={}),this.options=n;var i=this;function s(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,u=e.length,c=1,l=o+u,p=[{newPos:-1,components:[]}],d=this.extractCommon(p[0],t,e,0);if(p[0].newPos+1>=o&&d+1>=u)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*c;n<=c;n+=2){var a=void 0,l=p[n-1],d=p[n+1],h=(d?d.newPos:0)-n;l&&(p[n-1]=void 0);var f=l&&l.newPos+1=o&&h+1>=u)return s(r(i,a.components,t,e,i.useLongestToken));p[n]=a}else p[n]=void 0}var y;c++}if(a)!function e(){setTimeout(function(){if(c>l)return a();h()||e()},0)}();else for(;c<=l;){var f=h();if(f)return f}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var a=t.length,i=n.length,s=e.newPos,o=s-r,u=0;s+11)throw new Error("applyPatch only works with a single input.");t=t[0]}var a=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,o=n.compareLine||function(e,t,n,r){return t===r},u=0,c=n.fuzzFactor||0,l=0,p=0,d=void 0,h=void 0;function f(e,t){for(var n=0;nc)return!1;t++}}return!0}for(var m=0;m0?c(y.lines.slice(-o.context)):[],p-=h.length,d-=h.length)}(s=h).push.apply(s,n(i.map(function(e){return(t.added?"+":"-")+e}))),t.added?m+=i.length:f+=i.length}else{if(p)if(i.length<=2*o.context&&e=u.length-2&&i.length<=o.context){var b=/\n$/.test(r),E=/\n$/.test(a);0!=i.length||b?b&&E||h.push("\\ No newline at end of file"):h.splice(v.oldLines,0,"\\ No newline at end of file")}l.push(v),p=0,d=0,h=[]}f+=i.length,m+=i.length}},D=0;D/g,">")).replace(/"/g,""")}t.__esModule=!0,t.convertChangesToXML=function(e){for(var t=[],r=0;r"):a.removed&&t.push(""),t.push(n(a.value)),a.added?t.push(""):a.removed&&t.push("")}return t.join("")}});l($);var q=p(function(e,t){t.__esModule=!0,t.canonicalize=t.convertChangesToXML=t.convertChangesToDMP=t.parsePatch=t.applyPatches=t.applyPatch=t.createPatch=t.createTwoFilesPatch=t.structuredPatch=t.diffArrays=t.diffJson=t.diffCss=t.diffSentences=t.diffTrimmedLines=t.diffLines=t.diffWordsWithSpace=t.diffWords=t.diffChars=t.Diff=void 0;var n,r=(n=d)&&n.__esModule?n:{default:n};t.Diff=r.default,t.diffChars=h.diffChars,t.diffWords=m.diffWords,t.diffWordsWithSpace=m.diffWordsWithSpace,t.diffLines=y.diffLines,t.diffTrimmedLines=y.diffTrimmedLines,t.diffSentences=g.diffSentences,t.diffCss=D.diffCss,t.diffJson=O.diffJson,t.diffArrays=N.diffArrays,t.structuredPatch=z.structuredPatch,t.createTwoFilesPatch=z.createTwoFilesPatch,t.createPatch=z.createPatch,t.applyPatch=H.applyPatch,t.applyPatches=H.applyPatches,t.parsePatch=I.parsePatch,t.convertChangesToDMP=W.convertChangesToDMP,t.convertChangesToXML=$.convertChangesToXML,t.canonicalize=O.canonicalize});l(q);var U={},J=Object.freeze({default:U}),V=function(e,t){if("string"!=typeof e)throw new TypeError("expected path to be a string");if("\\"===e||"/"===e)return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&"\\"===e[3]){var a=e[2];"?"!==a&&"."!==a||"\\\\"!==e.slice(0,2)||(e=e.slice(2),r="//")}var i=e.split(/[\/\\]+/);return!1!==t&&""===i[i.length-1]&&i.pop(),r+i.join("/")},G=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Q=[],K=[],X="undefined"!=typeof Uint8Array?Uint8Array:Array,Z=!1;function ee(){Z=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t>18&63]+Q[a>>12&63]+Q[a>>6&63]+Q[63&a]);return i.join("")}function ne(e){var t;Z||ee();for(var n=e.length,r=n%3,a="",i=[],s=0,o=n-r;so?o:s+16383));return 1===r?(t=e[n-1],a+=Q[t>>2],a+=Q[t<<4&63],a+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],a+=Q[t>>10],a+=Q[t>>4&63],a+=Q[t<<2&63],a+="="),i.push(a),i.join("")}function re(e,t,n,r,a){var i,s,o=8*a-r-1,u=(1<>1,l=-7,p=n?a-1:0,d=n?-1:1,h=e[t+p];for(p+=d,i=h&(1<<-l)-1,h>>=-l,l+=o;l>0;i=256*i+e[t+p],p+=d,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=r;l>0;s=256*s+e[t+p],p+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=c}return(h?-1:1)*s*Math.pow(2,i-r)}function ae(e,t,n,r,a,i){var s,o,u,c=8*i-a-1,l=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?d/u:d*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(t*u-1)*Math.pow(2,a),s+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,a),s=0));a>=8;e[n+h]=255&o,h+=f,o/=256,a-=8);for(s=s<0;e[n+h]=255&s,h+=f,s/=256,c-=8);e[n+h-f]|=128*m}var ie={}.toString,se=Array.isArray||function(e){return"[object Array]"==ie.call(e)};function oe(){return ce.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ue(e,t){if(oe()=oe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe().toString(16)+" bytes");return 0|e}function me(e){return!(null==e||!e._isBuffer)}function ye(e,t){if(me(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ze(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return We(e).length;default:if(r)return ze(e).length;t=(""+t).toLowerCase(),r=!0}}function ge(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function De(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=ce.from(t,r)),me(t))return 0===t.length?-1:_e(e,t,n,r,a);if("number"==typeof t)return t&=255,ce.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_e(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function _e(e,t,n,r,a){var i,s=1,o=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){var l=-1;for(i=n;io&&(n=o-u),i=n;i>=0;i--){for(var p=!0,d=0;da&&(r=a):r=a;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var s=0;s>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function Me(e,t,n){return 0===t&&n===e.length?ne(e):ne(e.slice(t,n))}function Ae(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:c>223?3:c>191?2:1;if(a+p<=n)switch(p){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[a+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[a+1],s=e[a+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[a+1],s=e[a+2],o=e[a+3],128==(192&i)&&128==(192&s)&&128==(192&o)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&o)>65535&&u<1114112&&(l=u)}null===l?(l=65533,p=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),a+=p}return function(e){var t=e.length;if(t<=ke)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Le(this,t,n);case"utf8":case"utf-8":return Ae(this,t,n);case"ascii":return Te(this,t,n);case"latin1":case"binary":return Se(this,t,n);case"base64":return Me(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},ce.prototype.equals=function(e){if(!me(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ce.compare(this,e)},ce.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ce.prototype.compare=function(e,t,n,r,a){if(!me(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(i,s),u=this.slice(r,a),c=e.slice(t,n),l=0;la)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return ve(this,e,t,n);case"utf8":case"utf-8":return be(this,e,t,n);case"ascii":return Ee(this,e,t,n);case"latin1":case"binary":return xe(this,e,t,n);case"base64":return we(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},ce.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ke=4096;function Te(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ye(e,t,n,r,a,i){if(!me(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function je(e,t,n,r){t<0&&(t=65535+t+1);for(var a=0,i=Math.min(e.length-n,2);a>>8*(r?a:1-a)}function Be(e,t,n,r){t<0&&(t=4294967295+t+1);for(var a=0,i=Math.min(e.length-n,4);a>>8*(r?a:3-a)&255}function Oe(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ne(e,t,n,r,a){return a||Oe(e,0,n,4),ae(e,t,n,r,23,4),n+4}function Ie(e,t,n,r,a){return a||Oe(e,0,n,8),ae(e,t,n,r,52,8),n+8}ce.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(a*=256);)r+=this[e+--t]*a;return r},ce.prototype.readUInt8=function(e,t){return t||Pe(e,1,this.length),this[e]},ce.prototype.readUInt16LE=function(e,t){return t||Pe(e,2,this.length),this[e]|this[e+1]<<8},ce.prototype.readUInt16BE=function(e,t){return t||Pe(e,2,this.length),this[e]<<8|this[e+1]},ce.prototype.readUInt32LE=function(e,t){return t||Pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ce.prototype.readUInt32BE=function(e,t){return t||Pe(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ce.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Pe(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},ce.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Pe(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},ce.prototype.readInt8=function(e,t){return t||Pe(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ce.prototype.readInt16LE=function(e,t){t||Pe(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ce.prototype.readInt16BE=function(e,t){t||Pe(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ce.prototype.readInt32LE=function(e,t){return t||Pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ce.prototype.readInt32BE=function(e,t){return t||Pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ce.prototype.readFloatLE=function(e,t){return t||Pe(e,4,this.length),re(this,e,!0,23,4)},ce.prototype.readFloatBE=function(e,t){return t||Pe(e,4,this.length),re(this,e,!1,23,4)},ce.prototype.readDoubleLE=function(e,t){return t||Pe(e,8,this.length),re(this,e,!0,52,8)},ce.prototype.readDoubleBE=function(e,t){return t||Pe(e,8,this.length),re(this,e,!1,52,8)},ce.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Ye(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+a]=e/i&255;return t+n},ce.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,1,255,0),ce.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ce.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,65535,0),ce.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):je(this,e,t,!0),t+2},ce.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,65535,0),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):je(this,e,t,!1),t+2},ce.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,4294967295,0),ce.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Be(this,e,t,!0),t+4},ce.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,4294967295,0),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Be(this,e,t,!1),t+4},ce.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);Ye(this,e,t,n,a-1,-a)}var i=0,s=1,o=0;for(this[t]=255&e;++i>0)-o&255;return t+n},ce.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var a=Math.pow(2,8*n-1);Ye(this,e,t,n,a-1,-a)}var i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},ce.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,1,127,-128),ce.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ce.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,32767,-32768),ce.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):je(this,e,t,!0),t+2},ce.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,2,32767,-32768),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):je(this,e,t,!1),t+2},ce.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,2147483647,-2147483648),ce.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Be(this,e,t,!0),t+4},ce.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Ye(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ce.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Be(this,e,t,!1),t+4},ce.prototype.writeFloatLE=function(e,t,n){return Ne(this,e,t,!0,n)},ce.prototype.writeFloatBE=function(e,t,n){return Ne(this,e,t,!1,n)},ce.prototype.writeDoubleLE=function(e,t,n){return Ie(this,e,t,!0,n)},ce.prototype.writeDoubleBE=function(e,t,n){return Ie(this,e,t,!1,n)},ce.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--a)e[a+t]=this[a+n];else if(i<1e3||!ce.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function We(e){return function(e){var t,n,r,a,i,s;Z||ee();var o=e.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[o-2]?2:"="===e[o-1]?1:0,s=new X(3*o/4-i),r=i>0?o-4:o;var u=0;for(t=0,n=0;t>16&255,s[u++]=a>>8&255,s[u++]=255&a;return 2===i?(a=K[e.charCodeAt(t)]<<2|K[e.charCodeAt(t+1)]>>4,s[u++]=255&a):1===i&&(a=K[e.charCodeAt(t)]<<10|K[e.charCodeAt(t+1)]<<4|K[e.charCodeAt(t+2)]>>2,s[u++]=a>>8&255,s[u++]=255&a),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Re,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $e(e,t,n,r){for(var a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function qe(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ue=J&&U||J,Je=function(){function e(t,n){v(this,e),(n=n||{}).readChunk||(n.readChunk=1024),n.newLineCharacter?n.newLineCharacter=n.newLineCharacter.charCodeAt(0):n.newLineCharacter=10,this.fd="number"==typeof t?t:Ue.openSync(t,"r"),this.options=n,this.newLineCharacter=n.newLineCharacter,this.reset()}return E(e,[{key:"_searchInBuffer",value:function(e,t){for(var n=-1,r=0;r<=e.length;r++){if(e[r]===t){n=r;break}}return n}},{key:"reset",value:function(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}},{key:"close",value:function(){Ue.closeSync(this.fd),this.fd=null}},{key:"_extractLines",value:function(e){for(var t,n=[],r=0,a=0;;){var i=e[r++];if(i===this.newLineCharacter)t=e.slice(a,r),n.push(t),a=r;else if(!i)break}var s=e.slice(a,r);return s.length&&n.push(s),n}},{key:"_readChunk",value:function(e){var t,n=0,r=[];do{var a=new ce(this.options.readChunk);n+=t=Ue.readSync(this.fd,a,0,this.options.readChunk,this.fdPosition),this.fdPosition=this.fdPosition+t,r.push(a)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));var i=ce.concat(r);return t1)for(var n=1;n)?=?)";var C=o++;s[C]=s[c]+"|x|X|\\*";var M=o++;s[M]=s[u]+"|x|X|\\*";var A=o++;s[A]="[v=\\s]*("+s[M]+")(?:\\.("+s[M]+")(?:\\.("+s[M]+")(?:"+s[m]+")?"+s[D]+"?)?)?";var k=o++;s[k]="[v=\\s]*("+s[C]+")(?:\\.("+s[C]+")(?:\\.("+s[C]+")(?:"+s[y]+")?"+s[D]+"?)?)?";var T=o++;s[T]="^"+s[w]+"\\s*"+s[A]+"$";var S=o++;s[S]="^"+s[w]+"\\s*"+s[k]+"$";var L=o++;s[L]="(?:~>?)";var F=o++;s[F]="(\\s*)"+s[L]+"\\s+",i[F]=new RegExp(s[F],"g");var P=o++;s[P]="^"+s[L]+s[A]+"$";var Y=o++;s[Y]="^"+s[L]+s[k]+"$";var j=o++;s[j]="(?:\\^)";var B=o++;s[B]="(\\s*)"+s[j]+"\\s+",i[B]=new RegExp(s[B],"g");var O=o++;s[O]="^"+s[j]+s[A]+"$";var N=o++;s[N]="^"+s[j]+s[k]+"$";var I=o++;s[I]="^"+s[w]+"\\s*("+E+")$|^$";var R=o++;s[R]="^"+s[w]+"\\s*("+b+")$|^$";var H=o++;s[H]="(\\s*)"+s[w]+"\\s*("+E+"|"+s[A]+")",i[H]=new RegExp(s[H],"g");var z=o++;s[z]="^\\s*("+s[A]+")\\s+-\\s+("+s[A]+")\\s*$";var W=o++;s[W]="^\\s*("+s[k]+")\\s+-\\s+("+s[k]+")\\s*$";var $=o++;s[$]="(<|>)?=?\\s*\\*";for(var q=0;q<34;q++)n(q,s[q]),i[q]||(i[q]=new RegExp(s[q]));function U(e,t){if(e instanceof J)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t?i[x]:i[v]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(e instanceof J){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof J))return new J(e,t);n("SemVer",e,t),this.loose=t;var s=e.trim().match(t?i[x]:i[v]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new J(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var n=U(e),r=U(t);if(n.prerelease.length||r.prerelease.length){for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return"pre"+a;return"prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return a},t.compareIdentifiers=G;var V=/^[0-9]+$/;function G(e,t){var n=V.test(e),r=V.test(t);return n&&r&&(e=+e,t=+t),n&&!r?-1:r&&!n?1:et?1:0}function Q(e,t,n){return new J(e,n).compare(new J(t,n))}function K(e,t,n){return Q(e,t,n)>0}function X(e,t,n){return Q(e,t,n)<0}function Z(e,t,n){return 0===Q(e,t,n)}function ee(e,t,n){return 0!==Q(e,t,n)}function te(e,t,n){return Q(e,t,n)>=0}function ne(e,t,n){return Q(e,t,n)<=0}function re(e,t,n,r){var a;switch(t){case"===":"object"===_(e)&&(e=e.version),"object"===_(n)&&(n=n.version),a=e===n;break;case"!==":"object"===_(e)&&(e=e.version),"object"===_(n)&&(n=n.version),a=e!==n;break;case"":case"=":case"==":a=Z(e,n,r);break;case"!=":a=ee(e,n,r);break;case">":a=K(e,n,r);break;case">=":a=te(e,n,r);break;case"<":a=X(e,n,r);break;case"<=":a=ne(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return a}function ae(e,t){if(e instanceof ae){if(e.loose===t)return e;e=e.value}if(!(this instanceof ae))return new ae(e,t);n("comparator",e,t),this.loose=t,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return G(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,n){return Q(t,e,n)},t.sort=function(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})},t.rsort=function(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})},t.gt=K,t.lt=X,t.eq=Z,t.neq=ee,t.gte=te,t.lte=ne,t.cmp=re,t.Comparator=ae;var ie={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof ae)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function oe(e){return!e||"x"===e.toLowerCase()||"*"===e}function ue(e,t,n,r,a,i,s,o,u,c,l,p,d){return((t=oe(n)?"":oe(r)?">="+n+".0.0":oe(a)?">="+n+"."+r+".0":">="+t)+" "+(o=oe(u)?"":oe(c)?"<"+(+u+1)+".0.0":oe(l)?"<"+u+"."+(+c+1)+".0":p?"<="+u+"."+c+"."+l+"-"+p:"<="+o)).trim()}function ce(e,t){for(var r=0;r0){var a=e[r].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function pe(e,t,n,r){var a,i,s,o,u;switch(e=new J(e,r),t=new se(t,r),n){case">":a=K,i=ne,s=X,o=">",u=">=";break;case"<":a=X,i=te,s=K,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var c=0;c=0.0.0")),p=p||e,d=d||e,a(e.semver,p.semver,r)?p=e:s(e.semver,d.semver,r)&&(d=e)}),p.operator===o||p.operator===u)return!1;if((!d.operator||d.operator===o)&&i(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}ae.prototype.parse=function(e){var t=this.loose?i[I]:i[R],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new J(n[2],this.loose):this.semver=ie},ae.prototype.toString=function(){return this.value},ae.prototype.test=function(e){return n("Comparator.test",e,this.loose),this.semver===ie||("string"==typeof e&&(e=new J(e,this.loose)),re(e,this.operator,this.semver,this.loose))},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new se(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new se(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),a=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||a||i&&s||o||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),n("range",e,t);var r=t?i[W]:i[z];e=e.replace(r,ue),n("hyphen replace",e),e=e.replace(i[H],"$1$2$3"),n("comparator trim",e,i[H]),e=(e=(e=e.replace(i[F],"$1~")).replace(i[B],"$1^")).split(/\s+/).join(" ");var a=t?i[I]:i[R],s=e.split(" ").map(function(e){return function(e,t){return n("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){n("caret",e,t);var r=t?i[N]:i[O];return e.replace(r,function(t,r,a,i,s){var o;return n("caret",e,t,r,a,i,s),oe(r)?o="":oe(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":oe(i)?o="0"===r?">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":">="+r+"."+a+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),"-"!==s.charAt(0)&&(s="-"+s),o="0"===r?"0"===a?">="+r+"."+a+"."+i+s+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+s+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+s+" <"+(+r+1)+".0.0"):(n("no pr"),o="0"===r?"0"===a?">="+r+"."+a+"."+i+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+" <"+(+r+1)+".0.0"),n("caret return",o),o})}(e,t)}).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var r=t?i[Y]:i[P];return e.replace(r,function(t,r,a,i,s){var o;return n("tilde",e,t,r,a,i,s),oe(r)?o="":oe(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":oe(i)?o=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":s?(n("replaceTilde pr",s),"-"!==s.charAt(0)&&(s="-"+s),o=">="+r+"."+a+"."+i+s+" <"+r+"."+(+a+1)+".0"):o=">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0",n("tilde return",o),o})}(e,t)}).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var r=t?i[S]:i[T];return e.replace(r,function(t,r,a,i,s,o){n("xRange",e,t,r,a,i,s,o);var u=oe(a),c=u||oe(i),l=c||oe(s),p=l;return"="===r&&p&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&p?(c&&(i=0),l&&(s=0),">"===r?(r=">=",c?(a=+a+1,i=0,s=0):l&&(i=+i+1,s=0)):"<="===r&&(r="<",c?a=+a+1:i=+i+1),t=r+a+"."+i+"."+s):c?t=">="+a+".0.0 <"+(+a+1)+".0.0":l&&(t=">="+a+"."+i+".0 <"+a+"."+(+i+1)+".0"),n("xRange return",t),t})}(e,t)}).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[$],"")}(e,t),n("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(s=s.filter(function(e){return!!e.match(a)})),s=s.map(function(e){return new ae(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.loose));for(var t=0;t",n)},t.outside=pe,t.prerelease=function(e,t){var n=U(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)}}),vt=function(e,t){return Object.keys(e).reduce(function(n,r){return n.concat(Object.assign(x({},t,r),e[r]))},[])},bt=p(function(e){e.exports=function(e){var t=void 0;t="string"==typeof e?[e]:e.raw;for(var n="",r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function Bt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function Ot(e){return this instanceof Ot?(this.v=e,this):new Ot(e)}var Nt=Object.freeze({__extends:function(e,t){function n(){this.constructor=e}Pt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Yt},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a=0;o--)(a=e[o])&&(s=(i<3?a(s):i>3?a(t,n,s):a(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":_(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))(function(a,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function o(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?a(e.value):new n(function(t){t(e.value)}).then(s,o)}u((r=r.apply(e,t||[])).next())})},__generator:function(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1||o(e,t)})})}function o(e,t){try{(n=a[e](t)).value instanceof Ot?Promise.resolve(n.value.v).then(u,c):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function u(e){o("next",e)}function c(e){o("throw",e)}function l(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:Ot(e[r](t)),done:"return"===r}:a?a(t):t}:a}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=jt(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,a,(t=e[n](t)).done,t.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),It=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:function(e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)},value:function(e){if(null===e||"object"!==_(e))return JSON.stringify(e);if(Array.isArray(e))return"[".concat(e.map(function(e){return t.apiDescriptor.value(e)}).join(", "),"]");var n=Object.keys(e);return 0===n.length?"{}":"{ ".concat(n.map(function(n){return"".concat(t.apiDescriptor.key(n),": ").concat(t.apiDescriptor.value(e[n]))}).join(", ")," }")},pair:function(e){var n=e.key,r=e.value;return t.apiDescriptor.value(x({},n,r))}}});l(It);var Rt=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(It,t)});l(Rt);var Ht=/[|\\{}()[\]^$+*?.]/g,zt=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Ht,"\\$&")},Wt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$t=p(function(e){var t={};for(var n in Wt)Wt.hasOwnProperty(n)&&(t[Wt[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var i=r[a].channels,s=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:i}),Object.defineProperty(r[a],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,i=e[2]/255,s=Math.min(r,a,i),o=Math.max(r,a,i),u=o-s;return o===s?t=0:r===o?t=(a-i)/u:a===o?t=2+(i-r)/u:i===o&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+o)/2,[t,100*(o===s?0:n<=.5?u/(o+s):u/(2-o-s)),100*n]},r.rgb.hsv=function(e){var t,n,r=e[0],a=e[1],i=e[2],s=Math.min(r,a,i),o=Math.max(r,a,i),u=o-s;return n=0===o?0:u/o*1e3/10,o===s?t=0:r===o?t=(a-i)/u:a===o?t=2+(i-r)/u:i===o&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,o/255*1e3/10]},r.rgb.hwb=function(e){var t=e[0],n=e[1],a=e[2];return[r.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(n,a))),100*(a=1-1/255*Math.max(t,Math.max(n,a)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,a,i,s=1/0;for(var o in Wt)if(Wt.hasOwnProperty(o)){var u=Wt[o],c=(a=e,i=u,Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2)+Math.pow(a[2]-i[2],2));c.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],a=t[1],i=t[2];return a/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116)-16,500*(n-a),200*(a-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.hsl.rgb=function(e){var t,n,r,a,i,s=e[0]/360,o=e[1]/100,u=e[2]/100;if(0===o)return[i=255*u,i,i];t=2*u-(n=u<.5?u*(1+o):u+o-u*o),a=[0,0,0];for(var c=0;c<3;c++)(r=s+1/3*-(c-1))<0&&r++,r>1&&r--,i=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[c]=255*i;return a},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,i=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),100*((r+n)/2)]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*i),u=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,u,s];case 1:return[o,r,s];case 2:return[s,r,u];case 3:return[s,o,r];case 4:return[u,s,r];case 5:return[r,s,o]}},r.hsv.hsl=function(e){var t,n,r,a=e[0],i=e[1]/100,s=e[2]/100,o=Math.max(s,.01);return r=(2-i)*s,n=i*o,[a,100*(n=(n/=(t=(2-i)*o)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,a,i,s,o,u=e[0]/360,c=e[1]/100,l=e[2]/100,p=c+l;switch(p>1&&(c/=p,l/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),a=c+r*((n=1-l)-c),t){default:case 6:case 0:i=n,s=a,o=c;break;case 1:i=a,s=n,o=c;break;case 2:i=c,s=n,o=a;break;case 3:i=c,s=a,o=n;break;case 4:i=a,s=c,o=n;break;case 5:i=n,s=c,o=a}return[255*i,255*s,255*o]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},r.xyz.rgb=function(e){var t,n,r,a=e[0]/100,i=e[1]/100,s=e[2]/100;return n=-.9689*a+1.8758*i+.0415*s,r=.0557*a+-.204*i+1.057*s,t=(t=3.2406*a+-1.5372*i+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var i=Math.pow(n,3),s=Math.pow(t,3),o=Math.pow(r,3);return n=i>.008856?i:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],a=e[2],i=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var s=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255,i=Math.max(Math.max(n,r),a),s=Math.min(Math.min(n,r),a),o=i-s;return t=o<=0?0:i===n?(r-a)/o%6:i===r?2+(a-n)/o:4+(n-r)/o+4,t/=6,[360*(t%=1),100*o,100*(o<1?s/(1-o):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,i=[0,0,0],s=t%1*6,o=s%1,u=1-o;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=u,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=u,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=u}return a=(1-n)*r,[255*(n*i[0]+a),255*(n*i[1]+a),255*(n*i[2]+a)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}),qt=Object.keys($t);function Ut(e){var t=function(){for(var e={},t=qt.length,n=0;n1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"===_(n))for(var r=n.length,a=0;a1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var Qt,Kt=Gt,Xt=p(function(e){var t=function(e,t){return function(){var n=e.apply(Kt,arguments);return"[".concat(n+t,"m")}},n=function(e,t){return function(){var n=e.apply(Kt,arguments);return"[".concat(38+t,";5;").concat(n,"m")}},r=function(e,t){return function(){var n=e.apply(Kt,arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")}};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.grey=a.color.gray;for(var i=Object.keys(a),s=0;s=2,has16m:e>=3}}(function(e){if(!1===Qt)return 0;if(tn("color=16m")||tn("color=full")||tn("color=truecolor"))return 3;if(tn("color=256"))return 2;if(e&&!e.isTTY&&!0!==Qt)return 0;var t=Qt?1:0;if("win32"===Dt.platform){var n=nn.release().split(".");return Number(Dt.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in rn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in rn})||"codeship"===rn.CI_NAME?1:t;if("TEAMCITY_VERSION"in rn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rn.TEAMCITY_VERSION)?1:0;if("truecolor"===rn.COLORTERM)return 3;if("TERM_PROGRAM"in rn){var r=parseInt((rn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rn.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rn.TERM)?1:"COLORTERM"in rn?1:(rn.TERM,t)}(e))}tn("no-color")||tn("no-colors")||tn("color=false")?Qt=!1:(tn("color")||tn("colors")||tn("color=true")||tn("color=always"))&&(Qt=!0),"FORCE_COLOR"in rn&&(Qt=0===rn.FORCE_COLOR.length||0!==parseInt(rn.FORCE_COLOR,10));var sn={supportsColor:an,stdout:an(Dt.stdout),stderr:an(Dt.stderr)},on=p(function(e){var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function o(e,t){var n,i=[],o=t.trim().split(/\s*,\s*/g),u=!0,c=!1,l=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));i.push(n[2].replace(a,function(e,t,n){return t?s(t):n}))}else i.push(Number(h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return i}function u(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var a=t[1];if(t[2]){var i=o(a,t[2]);r.push([a].concat(i))}else r.push([a])}return r}function c(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var d,h=u.styles[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var f=d.value;n[f[0]]=u.inverse?null:f.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw p}}}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}for(var m=e,y=Object.keys(n),g=0;g0?m[D].apply(m,n[D]):m[D]}}return m}e.exports=function(e,n){var r=[],a=[],i=[];if(n.replace(t,function(t,n,o,l,p,d){if(n)i.push(s(n));else if(l){var h=i.join("");i=[],a.push(0===r.length?h:c(e,r)(h)),r.push({inverse:o,styles:u(l)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(c(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)}),a.push(i.join("")),r.length>0){var o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(o)}return a.join("")}}),un=p(function(e){var t=sn.stdout,n="win32"===Dt.platform&&!(Dt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),i=Object.create(null);function s(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return s(t,e),t.template=function(){var e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],a=1;a1)for(var a=1;at.length&&(e=t,t=n);var r=e.length,a=t.length;if(0===r)return a;if(0===a)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-a);)r--,a--;if(0===r)return a;for(var i,s,o,u,c=0;cs?u>s?s+1:u:u>o?o+1:u;return s},yn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.levenUnknownHandler=function(e,t,n){var r=n.descriptor,a=n.logger,i=n.schemas,s=["Ignored unknown option ".concat(un.default.yellow(r.pair({key:e,value:t})),".")],o=Object.keys(i).sort().find(function(t){return mn(e,t)<3});o&&s.push("Did you mean ".concat(un.default.blue(r.key(o)),"?")),a.warn(s.join(" "))}});l(yn);var gn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(yn,t)});l(gn);var Dn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(ln,t),Nt.__exportStar(dn,t),Nt.__exportStar(gn,t)});l(Dn);var _n=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function r(e,t){for(var r=new e(t),s=Object.create(r),o=0;o2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},t.normalizeTransferResult=n,t.normalizeForwardResult=r,t.normalizeRedirectResult=function(e,t){var n=r("object"===_(e)&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"===_(e)&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}});l(wn);var Cn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(e){var n;return v(this,t),(n=T(this,C(t).call(this,e)))._choices=wn.mapFromArray(e.choices.map(function(e){return e&&"object"===_(e)?e:{value:e}}),"value"),n}return w(t,_n.Schema),E(t,[{key:"expected",value:function(e){var t=this,n=e.descriptor,r=Array.from(this._choices.keys()).map(function(e){return t._choices.get(e)}).filter(function(e){return!e.deprecated}).map(function(e){return e.value}).sort(wn.comparePrimitive).map(n.value),a=r.slice(0,-2),i=r.slice(-2);return a.concat(i.join(" or ")).join(", ")}},{key:"validate",value:function(e){return this._choices.has(e)}},{key:"deprecated",value:function(e){var t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}},{key:"forward",value:function(e){var t=this._choices.get(e);return t?t.forward:void 0}},{key:"redirect",value:function(e){var t=this._choices.get(e);return t?t.redirect:void 0}}]),t}();t.ChoiceSchema=n});l(Cn);var Mn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return v(this,t),T(this,C(t).apply(this,arguments))}return w(t,_n.Schema),E(t,[{key:"expected",value:function(){return"a number"}},{key:"validate",value:function(e,t){return"number"==typeof e}}]),t}();t.NumberSchema=n});l(Mn);var An=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return v(this,t),T(this,C(t).apply(this,arguments))}return w(t,Mn.NumberSchema),E(t,[{key:"expected",value:function(){return"an integer"}},{key:"validate",value:function(e,n){return!0===n.normalizeValidateResult(S(C(t.prototype),"validate",this).call(this,e,n),e)&&wn.isInt(e)}}]),t}();t.IntegerSchema=n});l(An);var kn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(){return v(this,t),T(this,C(t).apply(this,arguments))}return w(t,_n.Schema),E(t,[{key:"expected",value:function(){return"a string"}},{key:"validate",value:function(e){return"string"==typeof e}}]),t}();t.StringSchema=n});l(kn);var Tn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Nt.__exportStar(vn,t),Nt.__exportStar(bn,t),Nt.__exportStar(En,t),Nt.__exportStar(xn,t),Nt.__exportStar(Cn,t),Nt.__exportStar(An,t),Nt.__exportStar(Mn,t),Nt.__exportStar(kn,t)});l(Tn);var Sn=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDescriptor=It.apiDescriptor,t.defaultUnknownHandler=yn.levenUnknownHandler,t.defaultInvalidHandler=dn.commonInvalidHandler,t.defaultDeprecatedHandler=cn.commonDeprecatedHandler});l(Sn);var Ln=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e,t,r){return new n(t,r).normalize(e)};var n=function(){function e(t,n){v(this,e);var r=n||{},a=r.logger,i=void 0===a?console:a,s=r.descriptor,o=void 0===s?Sn.defaultDescriptor:s,u=r.unknown,c=void 0===u?Sn.defaultUnknownHandler:u,l=r.invalid,p=void 0===l?Sn.defaultInvalidHandler:l,d=r.deprecated,h=void 0===d?Sn.defaultDeprecatedHandler:d;this._utils={descriptor:o,logger:i||{warn:function(){}},schemas:wn.recordFromArray(t,"name"),normalizeDefaultResult:wn.normalizeDefaultResult,normalizeDeprecatedResult:wn.normalizeDeprecatedResult,normalizeForwardResult:wn.normalizeForwardResult,normalizeRedirectResult:wn.normalizeRedirectResult,normalizeValidateResult:wn.normalizeValidateResult},this._unknownHandler=c,this._invalidHandler=p,this._deprecatedHandler=h,this.cleanHistory()}return E(e,[{key:"cleanHistory",value:function(){this._hasDeprecationWarned=wn.createAutoChecklist()}},{key:"normalize",value:function(e){var t=this,n={},r=[e],a=function(){for(;0!==r.length;){var e=r.shift(),a=t._applyNormalization(e,n);r.push.apply(r,P(a))}};a();for(var i=Object.keys(this._utils.schemas),s=0;s=8&&Number(e[0])>=10&&Number(e[2])>=10586?2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in n})||"codeship"===n.CI_NAME?1:0;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in n){var t=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)?1:"COLORTERM"in n?1:(n.TERM,0)}();"FORCE_COLOR"in n&&(r=0===parseInt(n.FORCE_COLOR,10)?0:r||1),e.exports=Dt&&(0!==(t=r)&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3})}),jn=p(function(e){var t=/(?:\\(u[a-f0-9]{4}|x[a-f0-9]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[0-9a-f]{4}|x[0-9a-f]{2}|.)|([^\\])/gi,i={n:"\n",r:"\r",t:"\t",b:"\b",f:"\f",v:"\v",0:"\0","\\":"\\",e:"",a:""};function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i[e]||e}function o(e,t){var n,i=[],o=t.trim().split(/\s*,\s*/g),u=!0,c=!1,l=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));i.push(n[2].replace(a,function(e,t,n){return t?s(t):n}))}else i.push(Number(h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return i}function u(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var a=t[1];if(t[2]){var i=o(a,t[2]);r.push([a].concat(i))}else r.push([a])}return r}function c(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var d,h=u.styles[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var f=d.value;n[f[0]]=u.inverse?null:f.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw p}}}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}for(var m=e,y=Object.keys(n),g=0;g0?m[D].apply(m,n[D]):m[D]}}return m}e.exports=function(e,n){var r=[],a=[],i=[];if(n.replace(t,function(t,n,o,l,p,d){if(n)i.push(s(n));else if(l){var h=i.join("");i=[],a.push(0===r.length?h:c(e,r)(h)),r.push({inverse:o,styles:u(l)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(c(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)}),a.push(i.join("")),r.length>0){var o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(o)}return a.join("")}}),Bn="win32"===Dt.platform&&!(Dt.env.TERM||"").toLowerCase().startsWith("xterm"),On=["ansi","ansi","ansi256","ansi16m"],Nn=new Set(["gray"]),In=Object.create(null);function Rn(e,t){t=t||{};var n=Yn?Yn.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Hn(e){if(!this||!(this instanceof Hn)||this.template){var t={};return Rn(t,e),t.template=function(){var e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],a=1;a1)for(var r=1;r2&&void 0!==arguments[2]?arguments[2]:{},r=n.logger,a=n.isCLI,i=void 0!==a&&a,s=n.passThrough,o=void 0!==s&&s,u=o?Array.isArray(o)?function(e,t){return-1===o.indexOf(e)?void 0:x({},e,t)}:function(e,t){return x({},e,t)}:Fn.levenUnknownHandler,c=i?nr:Fn.apiDescriptor,l=function(e,t){var n=t.isCLI,r=[];n&&r.push(Fn.AnySchema.create({name:"_"}));var a=!0,i=!1,s=void 0;try{for(var o,u=e[Symbol.iterator]();!(a=(o=u.next()).done);a=!0){var c=o.value;r.push(ir(c,{isCLI:n,optionInfos:e})),c.alias&&n&&r.push(Fn.AliasSchema.create({name:c.alias,sourceName:c.name}))}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}return r}(t,{isCLI:i}),p=new Fn.Normalizer(l,{logger:r,unknown:u,descriptor:c}),d=!1!==r;d&&tr&&(p._hasDeprecationWarned=tr);var h=p.normalize(e);return d&&(tr=p._hasDeprecationWarned),h}function ir(e,t){var n,r=t.isCLI,a=t.optionInfos,i={name:e.name},s={};switch(e.type){case"int":n=Fn.IntegerSchema,r&&(i.preprocess=function(e){return Number(e)});break;case"choice":n=Fn.ChoiceSchema,i.choices=e.choices.map(function(t){return"object"===_(t)&&t.redirect?Object.assign({},t,{redirect:{to:{key:e.name,value:t.redirect}}}):t});break;case"boolean":n=Fn.BooleanSchema;break;case"flag":n=rr,i.flags=a.map(function(e){return[].concat(e.alias||[],e.description?e.name:[],e.oppositeDescription?"no-".concat(e.name):[])}).reduce(function(e,t){return e.concat(t)},[]);break;case"path":n=Fn.StringSchema;break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?i.validate=function(t,n,r){return e.exception(t)||n.validate(t,r)}:i.validate=function(e,t,n){return void 0===e||t.validate(e,n)},e.redirect&&(s.redirect=function(t){return t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0}),e.deprecated&&(s.deprecated=!0),r&&!e.array){var o=i.preprocess||function(e){return e};i.preprocess=function(e,t,n){return t.preprocess(o(Array.isArray(e)?e[e.length-1]:e),n)}}return e.array?Fn.ArraySchema.create(Object.assign(r?{preprocess:function(e){return[].concat(e)}}:{},s,{valueSchema:n.create(i)})):n.create(Object.assign({},i,s))}var sr={normalizeApiOptions:function(e,t,n){return ar(e,t,n)},normalizeCliOptions:function(e,t,n){return ar(e,t,Object.assign({isCLI:!0},n))}},or=function(e){return e.length>0?e[e.length-1]:null},ur=function e(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},cr=function e(t){var n=t.nodes&&or(t.nodes);if(n&&t.source&&!t.source.end&&(t=n),t.__location)return t.__location.endOffset;var r=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(r,e(t.typeAnnotation)):t.loc&&!r?t.loc.end:r},lr=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});l(lr);var pr,dr=p(function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()}),hr=p(function(e){!function(){var t,n,r,a,i,s;function o(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},r=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?a[e]:n.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()}),fr=p(function(e){!function(){var t=hr;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e){var n,r,a;if(0===e.length)return!1;if(a=e.charCodeAt(0),!t.isIdentifierStartES5(a))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(i=e.charCodeAt(n))&&i<=57343))return!1;a=1024*(a-55296)+(i-56320)+65536}if(!s(a))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:a,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:o,isIdentifierES5:function(e,t){return s(e)&&!a(e,t)},isIdentifierES6:function(e,t){return o(e)&&!i(e,t)}}}()}),mr=p(function(e,t){t.ast=dr,t.code=hr,t.keyword=fr}),yr=p(function(e){e.exports=function(e,t){t=t||Dt.argv;var n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),a=t.indexOf("--");return-1!==r&&(-1===a||r=2,has16m:e>=3}}(function(e){if(!1===pr)return 0;if(yr("color=16m")||yr("color=full")||yr("color=truecolor"))return 3;if(yr("color=256"))return 2;if(e&&!e.isTTY&&!0!==pr)return 0;var t=pr?1:0;if("win32"===Dt.platform){var n=nn.release().split(".");return Number(Dt.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in gr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(e){return e in gr})||"codeship"===gr.CI_NAME?1:t;if("TEAMCITY_VERSION"in gr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(gr.TEAMCITY_VERSION)?1:0;if("truecolor"===gr.COLORTERM)return 3;if("TERM_PROGRAM"in gr){var r=parseInt((gr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(gr.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(gr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(gr.TERM)?1:"COLORTERM"in gr?1:(gr.TERM,t)}(e))}yr("no-color")||yr("no-colors")||yr("color=false")?pr=!1:(yr("color")||yr("colors")||yr("color=true")||yr("color=always"))&&(pr=!0),"FORCE_COLOR"in gr&&(pr=0===gr.FORCE_COLOR.length||0!==parseInt(gr.FORCE_COLOR,10));var _r={supportsColor:Dr,stdout:Dr(Dt.stdout),stderr:Dr(Dt.stderr)},vr=p(function(e){var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):i.get(e)||e}function o(e,t){var n,i=[],o=t.trim().split(/\s*,\s*/g),u=!0,c=!1,l=void 0;try{for(var p,d=o[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(isNaN(h)){if(!(n=h.match(r)))throw new Error("Invalid Chalk template style argument: ".concat(h," (in style '").concat(e,"')"));i.push(n[2].replace(a,function(e,t,n){return t?s(t):n}))}else i.push(Number(h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return i}function u(e){n.lastIndex=0;for(var t,r=[];null!==(t=n.exec(e));){var a=t[1];if(t[2]){var i=o(a,t[2]);r.push([a].concat(i))}else r.push([a])}return r}function c(e,t){var n={},r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value,c=!0,l=!1,p=void 0;try{for(var d,h=u.styles[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var f=d.value;n[f[0]]=u.inverse?null:f.slice(1)}}catch(e){l=!0,p=e}finally{try{c||null==h.return||h.return()}finally{if(l)throw p}}}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}for(var m=e,y=Object.keys(n),g=0;g0?m[D].apply(m,n[D]):m[D]}}return m}e.exports=function(e,n){var r=[],a=[],i=[];if(n.replace(t,function(t,n,o,l,p,d){if(n)i.push(s(n));else if(l){var h=i.join("");i=[],a.push(0===r.length?h:c(e,r)(h)),r.push({inverse:o,styles:u(l)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");a.push(c(e,r)(i.join(""))),i=[],r.pop()}else i.push(d)}),a.push(i.join("")),r.length>0){var o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(1===r.length?"":"s"," (`}`)");throw new Error(o)}return a.join("")}}),br=p(function(e){var t=_r.stdout,n="win32"===Dt.platform&&!(Dt.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),i=Object.create(null);function s(e,n){n=n||{};var r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function o(e){if(!this||!(this instanceof o)||this.template){var t={};return s(t,e),t.template=function(){var e=[].slice.call(arguments);return function(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");for(var n=[].slice.call(arguments,2),r=[t.raw[0]],a=1;a1)for(var a=1;a1&&void 0!==arguments[1]?arguments[1]:{};if(c(t)){var a=l(t),i=function(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(a);return function(e,t){return t.replace(n().default,function(){for(var t=arguments.length,a=new Array(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:{};if(!r){r=!0;var s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Dt.emitWarning)Dt.emitWarning(s,"DeprecationWarning");else{var o=new Error(s);o.name="DeprecationWarning",console.warn(new Error(s))}}return n=Math.max(n,0),i(e,{start:{column:n,line:t}},a)};var r=!1;var a=/\r\n|[\n\r\u2028\u2029]/;function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(r.highlightCode||r.forceColor)&&(0,n().shouldHighlight)(r),s=(0,n().getChalk)(r),o=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=function(e,t){return i?e(t):t};i&&(e=(0,n().default)(e,r));var c=e.split(a),l=function(e,t,n){var r=Object.assign({column:0,line:-1},e.start),a=Object.assign({},r,e.end),i=n||{},s=i.linesAbove,o=void 0===s?2:s,u=i.linesBelow,c=void 0===u?3:u,l=r.line,p=r.column,d=a.line,h=a.column,f=Math.max(l-(o+1),0),m=Math.min(t.length,d+c);-1===l&&(f=0),-1===d&&(m=t.length);var y=d-l,g={};if(y)for(var D=0;D<=y;D++){var _=D+l;if(p)if(0===D){var v=t[_-1].length;g[_]=[p,v-p]}else if(D===y)g[_]=[0,h];else{var b=t[_-D].length;g[_]=[0,b]}else g[_]=!0}else g[l]=p===h?!p||[p,0]:[p,h-p];return{start:f,end:m,markerLines:g}}(t,c,r),p=l.start,d=l.end,h=l.markerLines,f=t.start&&"number"==typeof t.start.column,m=String(d).length,y=c.slice(p,d).map(function(e,t){var n=p+1+t,a=" ".concat(n).slice(-m),i=" ".concat(a," | "),s=h[n],c=!h[n+1];if(s){var l="";if(Array.isArray(s)){var d=e.slice(0,Math.max(s[0]-1,0)).replace(/[^\t]/g," "),f=s[1]||1;l=["\n ",u(o.gutter,i.replace(/\d/g," ")),d,u(o.marker,"^").repeat(f)].join(""),c&&r.message&&(l+=" "+u(o.message,r.message))}return[u(o.marker,">"),u(o.gutter,i),e,l].join("")}return" ".concat(u(o.gutter,i)).concat(e)}).join("\n");return r.message&&!f&&(y="".concat(" ".repeat(m+1)).concat(r.message,"\n").concat(y)),i?s.reset(y):y}});l(xr);var wr=Ve.ConfigError,Cr=ur,Mr=cr,Ar=Object.getOwnPropertyNames,kr=Object.getOwnPropertyDescriptor;function Tr(e){var t={},n=!0,r=!1,a=void 0;try{for(var i,s=e.plugins[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var o=i.value;if(o.parsers){var u=!0,c=!1,l=void 0;try{for(var p,d=Ar(o.parsers)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;Object.defineProperty(t,h,kr(o.parsers,h))}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}}}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return t}function Sr(e,t){if(t=t||Tr(e),"function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:Cr,locEnd:Mr};if("string"==typeof e.parser){if(t.hasOwnProperty(e.parser))return t[e.parser];throw new wr("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Lr={parse:function(e,t){var n=Tr(t),r=Object.keys(n).reduce(function(e,t){return Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t].parse}})},{}),a=Sr(t,n);try{return a.preprocess&&(e=a.preprocess(e,t)),{text:e,ast:a.parse(e,r,t)}}catch(t){var i=t.loc;if(i){var s=xr;throw t.codeFrame=s.codeFrameColumns(e,i,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:Sr},Fr=Ve.UndefinedParserError,Pr=Ft.getSupportInfo,Yr=Lr.resolveParser,jr={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Br(e,t){var n=V(e).split("/"),r=n[n.length-1].toLowerCase(),a=Pr(null,{plugins:t}).languages.find(function(t){return null!==t.since&&(t.extensions&&t.extensions.some(function(e){return r.endsWith(e)})||t.filenames&&t.filenames.find(function(e){return e.toLowerCase()===r})||-1===r.indexOf(".")&&t.interpreters&&-1!==t.interpreters.indexOf(function(e){if("string"!=typeof e)return"";var t;try{t=Ue.openSync(e,"r")}catch(e){return""}try{var n=new Je(t).next().toString("utf8"),r=n.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(r)return r[1];var a=n.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return a?a[1]:""}catch(e){return""}finally{try{Ue.closeSync(t)}catch(e){}}}(e)))});return a&&a.parsers[0]}var Or=function(e,t){t=t||{};var n=Object.assign({},e),r=Pr(null,{plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=r.reduce(function(e,t){return void 0!==t.default?Object.assign(e,x({},t.name,t.default)):e},Object.assign({},jr));if(!n.parser)if(n.filepath){if(n.parser=Br(n.filepath,n.plugins),!n.parser)throw new Fr("No parser could be inferred for file: ".concat(n.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),n.parser="babel";var i=Yr(sr.normalizeApiOptions(n,[r.find(function(e){return"parser"===e.name})],{passThrough:!0,logger:!1}));n.astFormat=i.astFormat,n.locEnd=i.locEnd,n.locStart=i.locStart;var s=function(e){var t=e.astFormat;if(!t)throw new Error("getPlugin() requires astFormat to be set");var n=e.plugins.find(function(e){return e.printers&&e.printers[t]});if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}(n);n.printer=s.printers[n.astFormat];var o=r.filter(function(e){return e.pluginDefaults&&e.pluginDefaults[s.name]}).reduce(function(e,t){return Object.assign(e,x({},t.name,t.pluginDefaults[s.name]))},{}),u=Object.assign({},a,o);return Object.keys(u).forEach(function(e){null==n[e]&&(n[e]=u[e])}),"json"===n.parser&&(n.trailingComma="none"),sr.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(jr)},t))},Nr=function e(t,n,r){if(Array.isArray(t))return t.map(function(t){return e(t,n,r)}).filter(function(e){return e});if(!t||"object"!==_(t))return t;for(var a={},i=Object.keys(t),s=0;s0){for(var a=0;a<~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}}),Qr=p(function(e){e.exports=function(e){return!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141))}}),Kr=p(function(e){var t=/\uD83C\uDFF4(?:\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74)\uDB40\uDC7F|\u200D\u2620\uFE0F)|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3]))|\uD83D\uDC69\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83D\uDC69\u200D[\u2695\u2696\u2708])\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC68(?:\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDB0-\uDDB3])|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF9]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD70\uDD73-\uDD76\uDD7A\uDD7C-\uDDA2\uDDB0-\uDDB9\uDDC0-\uDDC2\uDDD0-\uDDFF])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDD1-\uDDDD])/g;e.exports=function(e){if("string"!=typeof(e=e.replace(t," "))||0===e.length)return 0;e=function(e){return"string"==typeof e?e.replace(Gr(),""):e}(e);for(var n=0,r=0;r=127&&a<=159||(a>=768&&a<=879||(a>65535&&r++,n+=Qr(a)?2:1))}return n}}),Xr=/[^\x20-\x7F]/;function Zr(e){if(e)switch(e.type){case"ExportDefaultDeclaration":case"ExportDefaultSpecifier":case"DeclareExportDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return!0}return!1}function ea(e){return function(t,n,r){var a=r&&r.backwards;if(!1===n)return!1;for(var i=t.length,s=n;s>=0&&s"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){da[e]=t})});var fa={"==":!0,"!=":!0,"===":!0,"!==":!0},ma={"*":!0,"/":!0,"%":!0},ya={">>":!0,">>>":!0,"<<":!0};function ga(e,t,n){for(var r=0,a=n=n||0;a(n.match(s.regex)||[]).length?s.quote:i.quote);return o}function _a(e,t,n){var r='"'===t?"'":'"',a=e.replace(/\\([\s\S])|(['"])/g,function(e,a,i){return a===r?a:i===t?"\\"+i:i||(n&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(a)?a:"\\"+a)});return t+a+t}function va(e){return e&&e.comments&&e.comments.length>0&&e.comments.some(function(e){return"prettier-ignore"===e.value.trim()})}function ba(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Ea,xa={replaceEndOfLineWith:function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var s,o=e.split("\n")[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;0!==n.length&&n.push(t),n.push(u)}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}return n},getStringWidth:function(e){return e?Xr.test(e)?Kr(e):e.length:0},getMaxContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(zt(t),")+"),"g"));return null===n?0:n.reduce(function(e,n){return Math.max(e,n.length/t.length)},0)},getMinNotPresentContinuousCount:function(e,t){var n=e.match(new RegExp("(".concat(zt(t),")+"),"g"));if(null===n)return 0;var r=new Map,a=0,i=!0,s=!1,o=void 0;try{for(var u,c=n[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value.length/t.length;r.set(l,!0),l>a&&(a=l)}}catch(e){s=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw o}}for(var p=1;p1?e[e.length-2]:null},getLast:or,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:la,getNextNonSpaceNonCommentCharacterIndex:pa,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(pa(e,t,n))},skip:ea,skipWhitespace:ta,skipSpaces:na,skipToLineEnd:ra,skipEverythingButNewLine:aa,skipInlineComment:ia,skipTrailingComment:sa,skipNewline:oa,isNextLineEmptyAfterIndex:ca,isNextLineEmpty:function(e,t,n){return ca(e,n(t))},isPreviousLineEmpty:function(e,t,n){var r=n(t)-1;return r=oa(e,r=na(e,r,{backwards:!0}),{backwards:!0}),(r=na(e,r,{backwards:!0}))!==oa(e,r,{backwards:!0})},hasNewline:ua,hasNewlineInRange:function(e,t,n){for(var r=t;r=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},Ca=function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},Ma=xa.getStringWidth,Aa=Ca,ka=Vr.concat,Ta=Vr.fill,Sa=Vr.cursor,La=1,Fa=2;function Pa(e,t){return ja(e,{type:"indent"},t)}function Ya(e,t,n){return t===-1/0?e.root||{value:"",length:0,queue:[]}:t<0?ja(e,{type:"dedent"},n):t?"root"===t.type?Object.assign({},e,{root:e}):ja(e,"string"==typeof t?{type:"stringAlign",n:t}:{type:"numberAlign",n:t},n):e}function ja(e,t,n){var r="dedent"===t.type?e.queue.slice(0,-1):e.queue.concat(t),a="",i=0,s=0,o=0,u=!0,c=!1,l=void 0;try{for(var p,d=r[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;switch(h.type){case"indent":y(),n.useTabs?f(1):m(n.tabWidth);break;case"stringAlign":y(),a+=h.n,i+=h.n.length;break;case"numberAlign":s+=1,o+=h.n;break;default:throw new Error("Unexpected type '".concat(h.type,"'"))}}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return g(),Object.assign({},e,{value:a,length:i,queue:r});function f(e){a+="\t".repeat(e),i+=n.tabWidth*e}function m(e){a+=" ".repeat(e),i+=e}function y(){n.useTabs?function(){s>0&&f(s);D()}():g()}function g(){o>0&&m(o),D()}function D(){s=0,o=0}}function Ba(e){if(0===e.length)return 0;for(var t=0;e.length>0&&"string"==typeof e[e.length-1]&&e[e.length-1].match(/^[ \t]*$/);)t+=e.pop().length;if(e.length&&"string"==typeof e[e.length-1]){var n=e[e.length-1].replace(/[ \t]*$/,"");t+=e[e.length-1].length-n.length,e[e.length-1]=n}return t}function Oa(e,t,n,r,a){for(var i=t.length,s=[e],o=[];n>=0;)if(0!==s.length){var u=s.pop(),c=u[0],l=u[1],p=u[2];if("string"==typeof p)o.push(p),n-=Ma(p);else switch(p.type){case"concat":for(var d=p.parts.length-1;d>=0;d--)s.push([c,l,p.parts[d]]);break;case"indent":s.push([Pa(c,r),l,p.contents]);break;case"align":s.push([Ya(c,p.n,r),l,p.contents]);break;case"trim":n+=Ba(o);break;case"group":if(a&&p.break)return!1;s.push([c,p.break?La:l,p.contents]),p.id&&(Ea[p.id]=s[s.length-1][1]);break;case"fill":for(var h=p.parts.length-1;h>=0;h--)s.push([c,l,p.parts[h]]);break;case"if-break":var f=p.groupId?Ea[p.groupId]:l;f===La&&p.breakContents&&s.push([c,l,p.breakContents]),f===Fa&&p.flatContents&&s.push([c,l,p.flatContents]);break;case"line":switch(l){case Fa:if(!p.hard){p.soft||(o.push(" "),n-=1);break}return!0;case La:return!0}}}else{if(0===i)return!0;s.push(t[i-1]),i--}return!1}var Na={};function Ia(e,t,n,r){for(var a=[e];0!==a.length;){var i=a.pop();if(i!==Na){var s=!0;if(t&&!1===t(i)&&(s=!1),n&&(a.push(i),a.push(Na)),s)if("concat"===i.type||"fill"===i.type)for(var o=i.parts.length-1;o>=0;--o)a.push(i.parts[o]);else if("if-break"===i.type)i.flatContents&&a.push(i.flatContents),i.breakContents&&a.push(i.breakContents);else if("group"===i.type&&i.expandedStates)if(r)for(var u=i.expandedStates.length-1;u>=0;--u)a.push(i.expandedStates[u]);else a.push(i.contents);else i.contents&&a.push(i.contents)}else n(a.pop())}}function Ra(e,t){if("concat"===e.type||"fill"===e.type){var n=e.parts.map(function(e){return Ra(e,t)});return t(Object.assign({},e,{parts:n}))}if("if-break"===e.type){var r=e.breakContents&&Ra(e.breakContents,t),a=e.flatContents&&Ra(e.flatContents,t);return t(Object.assign({},e,{breakContents:r,flatContents:a}))}if(e.contents){var i=Ra(e.contents,t);return t(Object.assign({},e,{contents:i}))}return t(e)}function Ha(e,t,n){var r=n,a=!1;return Ia(e,function(e){var n=t(e);if(void 0!==n&&(a=!0,r=n),a)return!1}),r}function za(e){return"string"!=typeof e&&("line"===e.type||void 0)}function Wa(e){return!("group"!==e.type||!e.break)||(!("line"!==e.type||!e.hard)||("break-parent"===e.type||void 0))}function $a(e){if(e.length>0){var t=e[e.length-1];t.expandedStates||(t.break=!0)}return null}function qa(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}function Ua(e){if("concat"===e.type){for(var t=[],n=0;n=0;h--)i.push([l,p,d.parts[h]]);break;case"indent":i.push([Pa(l,t),p,d.contents]);break;case"align":i.push([Ya(l,d.n,t),p,d.contents]);break;case"trim":a-=Ba(s);break;case"group":switch(p){case Fa:if(!o){i.push([l,d.break?La:Fa,d.contents]);break}case La:o=!1;var f=[l,Fa,d.contents],m=n-a;if(!d.break&&Oa(f,i,m,t))i.push(f);else if(d.expandedStates){var y=d.expandedStates[d.expandedStates.length-1];if(d.break){i.push([l,La,y]);break}for(var g=1;g=d.expandedStates.length){i.push([l,La,y]);break}var D=d.expandedStates[g],_=[l,Fa,D];if(Oa(_,i,m,t)){i.push(_);break}}}else i.push([l,La,d.contents])}d.id&&(Ea[d.id]=i[i.length-1][1]);break;case"fill":var v=n-a,b=d.parts;if(0===b.length)break;var E=b[0],x=[l,Fa,E],w=[l,La,E],C=Oa(x,[],v,t,!0);if(1===b.length){C?i.push(x):i.push(w);break}var M=b[1],A=[l,Fa,M],k=[l,La,M];if(2===b.length){C?(i.push(A),i.push(x)):(i.push(k),i.push(w));break}b.splice(0,2);var T=[l,p,Ta(b)],S=b[0];Oa([l,Fa,ka([E,M,S])],[],v,t,!0)?(i.push(T),i.push(A),i.push(x)):C?(i.push(T),i.push(k),i.push(x)):(i.push(T),i.push(k),i.push(w));break;case"if-break":var L=d.groupId?Ea[d.groupId]:p;L===La&&d.breakContents&&i.push([l,p,d.breakContents]),L===Fa&&d.flatContents&&i.push([l,p,d.flatContents]);break;case"line-suffix":u.push([l,p,d.contents]);break;case"line-suffix-boundary":u.length>0&&i.push([l,p,{type:"line",hard:!0}]);break;case"line":switch(p){case Fa:if(!d.hard){d.soft||(s.push(" "),a+=1);break}o=!0;case La:if(u.length){i.push([l,p,d]),[].push.apply(i,u.reverse()),u=[];break}d.literal?l.root?(s.push(r,l.root.value),a=l.root.length):(s.push(r),a=0):(a-=Ba(s),s.push(r+l.value),a=l.length)}}}var F=s.indexOf(Sa.placeholder);if(-1!==F){var P=s.indexOf(Sa.placeholder,F+1),Y=s.slice(0,F).join(""),j=s.slice(F+1,P).join("");return{formatted:Y+j+s.slice(P+1).join(""),cursorNodeStart:Y.length,cursorNodeText:j}}return{formatted:s.join("")}}},utils:{isEmpty:function(e){return"string"==typeof e&&0===e.length},willBreak:function(e){return Ha(e,Wa,!1)},isLineNext:function(e){return Ha(e,za,!1)},traverseDoc:Ia,findInDoc:Ha,mapDoc:Ra,propagateBreaks:function(e){var t=new Set,n=[];Ia(e,function(e){if("break-parent"===e.type&&$a(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}},function(e){"group"===e.type&&n.pop().break&&$a(n)},!0)},removeLines:function(e){return Ra(e,qa)},stripTrailingHardline:function e(t){if("concat"===t.type&&0!==t.parts.length){var n=t.parts[t.parts.length-1];if("concat"===n.type)return 2===n.parts.length&&n.parts[0].hard&&"break-parent"===n.parts[1].type?{type:"concat",parts:t.parts.slice(0,-1)}:{type:"concat",parts:t.parts.slice(0,-1).concat(e(n))}}return t}},debug:{printDocToDebug:function(e){return Ja(Ua(e))}}},Ga=Va.utils.mapDoc,Qa={getMaxContinuousCount:xa.getMaxContinuousCount,getStringWidth:xa.getStringWidth,getAlignmentSize:xa.getAlignmentSize,getIndentSize:xa.getIndentSize,skip:xa.skip,skipWhitespace:xa.skipWhitespace,skipSpaces:xa.skipSpaces,skipNewline:xa.skipNewline,skipToLineEnd:xa.skipToLineEnd,skipEverythingButNewLine:xa.skipEverythingButNewLine,skipInlineComment:xa.skipInlineComment,skipTrailingComment:xa.skipTrailingComment,hasNewline:xa.hasNewline,hasNewlineInRange:xa.hasNewlineInRange,hasSpaces:xa.hasSpaces,isNextLineEmpty:function(e,t,n){return xa.isNextLineEmpty(e,t,n.locEnd)},isNextLineEmptyAfterIndex:xa.isNextLineEmptyAfterIndex,isPreviousLineEmpty:function(e,t,n){return xa.isPreviousLineEmpty(e,t,n.locStart)},getNextNonSpaceNonCommentCharacterIndex:function(e,t,n){return xa.getNextNonSpaceNonCommentCharacterIndex(e,t,n.locEnd)},mapDoc:Ga,makeString:xa.makeString,addLeadingComment:xa.addLeadingComment,addDanglingComment:xa.addDanglingComment,addTrailingComment:xa.addTrailingComment},Ka=Rr&&Ir||Rr,Xa=Va.builders,Za=Xa.concat,ei=Xa.hardline,ti=Xa.breakParent,ni=Xa.indent,ri=Xa.lineSuffix,ai=Xa.join,ii=Xa.cursor,si=xa.hasNewline,oi=xa.skipNewline,ui=xa.isPreviousLineEmpty,ci=Qa.addLeadingComment,li=Qa.addDanglingComment,pi=Qa.addTrailingComment,di=Symbol("child-nodes");function hi(e,t,n){if(e){var r,a=t.printer,i=t.locStart,s=t.locEnd;if(n){if(e&&a.canAttachComment&&a.canAttachComment(e)){var o;for(o=n.length-1;o>=0&&!(i(n[o])<=i(e)&&s(n[o])<=s(e));--o);return void n.splice(o+1,0,e)}}else if(e[di])return e[di];if(a.getCommentChildNodes?r=a.getCommentChildNodes(e):e&&"object"===_(e)&&(r=Object.keys(e).filter(function(e){return"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e}).map(function(t){return e[t]})),r)return n||Object.defineProperty(e,di,{value:n=[],enumerable:!1}),r.forEach(function(e){hi(e,t,n)}),n}}function fi(e,t,n){var r=e.length;if(0!==r){var a,i=e[0],s=i.precedingNode,o=i.followingNode,u=n.locStart(o);for(a=r;a>0;--a){var c=e[a-1];Ka.strictEqual(c.precedingNode,s),Ka.strictEqual(c.followingNode,o);var l=t.slice(n.locEnd(c),u).trim();if(""!==l&&!/^\(+$/.test(l))break;u=n.locStart(c)}e.forEach(function(e,t){t=0)return void pi(t,o)}!function e(t,n,r){for(var a,i,s=r.locStart,o=r.locEnd,u=hi(t,r),c=0,l=u.length;c>1,d=u[p];if(s(d)-s(n)<=0&&o(n)-o(d)<=0)return n.enclosingNode=d,void e(d,n,r);if(o(d)-s(n)<=0)a=d,c=p+1;else{if(!(o(n)-s(d)<=0))throw new Error("Comment location overlaps with node location");i=d,l=p}}if(n.enclosingNode&&"TemplateLiteral"===n.enclosingNode.type){var h=n.enclosingNode.quasis,f=yi(h,n,r);a&&yi(h,a,r)!==f&&(a=null),i&&yi(h,i,r)!==f&&(i=null)}a&&(n.precedingNode=a),i&&(n.followingNode=i)}(t,o,r);var c=o.precedingNode,l=o.enclosingNode,p=o.followingNode,d=r.printer.handleComments&&r.printer.handleComments.ownLine?r.printer.handleComments.ownLine:function(){return!1},h=r.printer.handleComments&&r.printer.handleComments.endOfLine?r.printer.handleComments.endOfLine:function(){return!1},f=r.printer.handleComments&&r.printer.handleComments.remaining?r.printer.handleComments.remaining:function(){return!1},m=e.length-1===u;if(si(n,i(o),{backwards:!0}))d(o,n,r,t,m)||(p?ci(p,o):c?pi(c,o):li(l||t,o));else if(si(n,s(o)))h(o,n,r,t,m)||(c?pi(c,o):p?ci(p,o):li(l||t,o));else if(f(o,n,r,t,m));else if(c&&p){var y=a.length;y>0&&a[y-1].followingNode!==o.followingNode&&fi(a,n,r),a.push(o)}else c?pi(c,o):p?ci(p,o):li(l||t,o)}),fi(a,n,r),e.forEach(function(e){delete e.precedingNode,delete e.enclosingNode,delete e.followingNode})}},printComments:function(e,t,n,r){var a=e.getValue(),i=t(e),s=a&&a.comments;if(!s||0===s.length)return Di(e,n,i);var o=[],u=[r?";":"",i];return e.each(function(e){var t=e.getValue(),r=t.leading,a=t.trailing;if(r){var i=function(e,t,n){var r=e.getValue(),a=mi(e,n);if(!a)return"";var i=n.printer.isBlockComment&&n.printer.isBlockComment(r);return Za(i?[a,si(n.originalText,n.locEnd(r))?ei:" "]:[a,ei])}(e,0,n);if(!i)return;o.push(i);var s=n.originalText;si(s,oi(s,n.locEnd(t)))&&o.push(ei)}else a&&u.push(function(e,t,n){var r=e.getValue(),a=mi(e,n);if(!a)return"";var i=n.printer.isBlockComment&&n.printer.isBlockComment(r),s=e.getNode(1),o=e.getNode(2),u=o&&("ClassDeclaration"===o.type||"ClassExpression"===o.type)&&o.superClass===s;if(si(n.originalText,n.locStart(r),{backwards:!0})){var c=ui(n.originalText,r,n.locStart);return ri(Za([ei,c?ei:"",a]))}return Za(i||u?[" ",a]:[ri(Za([" ",a])),i?"":ti])}(e,0,n))},"comments"),Di(e,n,Za(o.concat(u)))},printDanglingComments:function(e,t,n,r){var a=[],i=e.getValue();return i&&i.comments?(e.each(function(e){var n=e.getValue();!n||n.leading||n.trailing||r&&!r(n)||a.push(mi(e,t))},"comments"),0===a.length?"":n?ai(ei,a):ni(Za([ei,ai(ei,a)]))):""},getSortedChildNodes:hi};function vi(e){Ka.ok(this instanceof vi),this.stack=[e]}function bi(e,t){var n=Ei(e.stack,t);return-1===n?null:e.stack[n]}function Ei(e,t){for(var n=e.length-1;n>=0;n-=2){var r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}vi.prototype.getName=function(){var e=this.stack,t=e.length;return t>1?e[t-2]:null},vi.prototype.getValue=function(){var e=this.stack;return e[e.length-1]},vi.prototype.getNode=function(e){return bi(this,~~e)},vi.prototype.getParentNode=function(e){return bi(this,1+~~e)},vi.prototype.call=function(e){for(var t=this.stack,n=t.length,r=t[n-1],a=arguments.length,i=1;i2&&void 0!==arguments[2]?arguments[2]:0,r=t.printer;r.preprocess&&(e=r.preprocess(e,t));var a=new Map;var i=function e(n,i){var s,o=n.getValue(),u=o&&"object"===_(o)&&void 0===i;return u&&a.has(o)?a.get(o):(s=r.willPrintOwnComments&&r.willPrintOwnComments(n,t)?Pi(n,t,e,i):_i.printComments(n,function(n){return Pi(n,t,e,i)},t,i&&i.needsSemi),u&&a.set(o,s),s)}(new xi(e));return n>0&&(i=Si(ki([Ti,i]),n,t.tabWidth)),Li.propagateBreaks(i),i}function Pi(e,t,n,r){Ka.ok(e instanceof xi);var a=e.getValue(),i=t.printer;if(i.hasPrettierIgnore&&i.hasPrettierIgnore(e))return t.originalText.slice(t.locStart(a),t.locEnd(a));if(a)try{var s=Ci.printSubtree(e,n,t,Fi);if(s)return s}catch(e){if(c.PRETTIER_DEBUG)throw e}return i.print(e,t,n,r)}var Yi=Fi;function ji(e,t,n,r,a){r=r||function(){return!0},a=a||[];var i=n.locStart(e,n.locStart),s=n.locEnd(e,n.locEnd);if(i<=t&&t<=s){var o=!0,u=!1,c=void 0;try{for(var l,p=_i.getSortedChildNodes(e,n)[Symbol.iterator]();!(o=(l=p.next()).done);o=!0){var d=ji(l.value,t,n,r,[e].concat(a));if(d)return d}}catch(e){u=!0,c=e}finally{try{o||null==p.return||p.return()}finally{if(u)throw c}}if(r(e))return{node:e,parentNodes:a}}}function Bi(e,t){if(null==t)return!1;switch(e.parser){case"flow":case"babel":case"typescript":return["FunctionDeclaration","BlockStatement","BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","EmptyStatement","ExpressionStatement","ForInStatement","ForStatement","IfStatement","LabeledStatement","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","VariableDeclaration","WhileStatement","WithStatement","ClassDeclaration","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","TypeAlias","InterfaceDeclaration","TypeAliasDeclaration","ExportAssignment","ExportDeclaration"].indexOf(t.type)>-1;case"json":return["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral"].indexOf(t.type)>-1;case"graphql":return["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"].indexOf(t.kind)>-1;case"vue":return"root"!==t.tag}return!1}var Oi={calculateRange:function(e,t,n){var r,a=e.slice(t.rangeStart,t.rangeEnd),i=Math.max(t.rangeStart+a.search(/\S/),t.rangeStart);for(r=t.rangeEnd;r>t.rangeStart&&!e[r-1].match(/\S/);--r);var s=ji(n,i,t,function(e){return Bi(t,e)}),o=ji(n,r,t,function(e){return Bi(t,e)});if(!s||!o)return{rangeStart:0,rangeEnd:0};var u=function(e,t,n){var r=e.node,a=t.node;if(r===a)return{startNode:r,endNode:a};var i=!0,s=!1,o=void 0;try{for(var u,c=t.parentNodes[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;if(!("Program"!==l.type&&"File"!==l.type&&n.locStart(l)>=n.locStart(e.node)))break;a=l}}catch(e){s=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw o}}var p=!0,d=!1,h=void 0;try{for(var f,m=e.parentNodes[Symbol.iterator]();!(p=(f=m.next()).done);p=!0){var y=f.value;if(!("Program"!==y.type&&"File"!==y.type&&n.locEnd(y)<=n.locEnd(t.node)))break;r=y}}catch(e){d=!0,h=e}finally{try{p||null==m.return||m.return()}finally{if(d)throw h}}return{startNode:r,endNode:a}}(s,o,t),c=u.startNode,l=u.endNode;return{rangeStart:Math.min(t.locStart(c,t.locStart),t.locStart(l,t.locStart)),rangeEnd:Math.max(t.locEnd(c,t.locEnd),t.locEnd(l,t.locEnd))}},findNodeAtOffset:ji},Ni=Or,Ii=wa,Ri=Ca,Hi=Va.utils.mapDoc,zi=Va.printer.printDocToString,Wi=Va.debug.printDocToDebug,$i=65279,qi=Symbol("cursor"),Ui={cursorOffset:"<<>>",rangeStart:"<<>>",rangeEnd:"<<>>"};function Ji(e,t,n){var r=t.comments;return r&&(delete t.comments,_i.attach(r,t,e,n)),t.tokens=[],n.originalText="yaml"===n.parser?e:e.trimRight(),r}function Vi(e,t,n){if(!e||!e.trim().length)return{formatted:"",cursorOffset:0};n=n||0;var r=Lr.parse(e,t),a=r.ast;if(e=r.text,t.cursorOffset>=0){var i=Oi.findNodeAtOffset(a,t.cursorOffset,t);i&&i.node&&(t.cursorNode=i.node)}var s=Ji(e,a,t),o=Yi(a,t,n),u=Ri(t.endOfLine),c=zi("lf"===t.endOfLine?o:Hi(o,function(e){return"string"==typeof e&&-1!==e.indexOf("\n")?e.replace(/\n/g,u):e}),t);if(function(e){if(e){for(var t=0;t0){var l=c.formatted.trim();void 0!==c.cursorNodeStart&&(c.cursorNodeStart-=c.formatted.indexOf(l)),c.formatted=l+Ri(t.endOfLine)}if(t.cursorOffset>=0){var p,d,h,f,m;if(t.cursorNode&&c.cursorNodeText?(p=t.locStart(t.cursorNode),d=e.slice(p,t.locEnd(t.cursorNode)),h=t.cursorOffset-p,f=c.cursorNodeStart,m=c.cursorNodeText):(p=0,d=e,h=t.cursorOffset,f=0,m=c.formatted),d===m)return{formatted:c.formatted,cursorOffset:f+h};var y=d.split("");y.splice(h,0,qi);var g=m.split(""),D=q.diffArrays(y,g),_=f,v=!0,b=!1,E=void 0;try{for(var x,w=D[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var C=x.value;if(C.removed){if(C.value.indexOf(qi)>-1)break}else _+=C.count}}catch(e){b=!0,E=e}finally{try{v||null==w.return||w.return()}finally{if(b)throw E}}return{formatted:c.formatted,cursorOffset:_}}return{formatted:c.formatted}}function Gi(e,t){var n=Lr.resolveParser(t),r=!n.hasPragma||n.hasPragma(e);if(t.requirePragma&&!r)return{formatted:e};"auto"===t.endOfLine&&(t.endOfLine=Ii(e));var a=t.cursorOffset>=0,i=t.rangeStart>0,s=t.rangeEnd=0;u--){var c=o[u];e=e.slice(0,t[c])+Ui[c]+e.slice(t[c])}e=e.replace(/\r\n?/g,"\n");for(var l=function(n){var r=o[n];e=e.replace(Ui[r],function(e,n){return t[r]=n,""})},p=0;pe.length&&(t.rangeEnd=e.length);var h=i||s?function(e,t){var n=Lr.parse(e,t),r=n.ast;e=n.text;var a,i=Oi.calculateRange(e,t,r),s=i.rangeStart,o=i.rangeEnd,u=e.slice(s,o),c=Math.min(s,e.lastIndexOf("\n",s)+1),l=e.slice(c,s),p=xa.getAlignmentSize(l,t.tabWidth),d=Vi(u,Object.assign({},t,{rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>=s&&t.cursorOffset=o?y=t.cursorOffset-o+(s+h.length):void 0!==d.cursorOffset&&(y=d.cursorOffset+s),"lf"===t.endOfLine)a=f+h+m;else{var g=Ri(t.endOfLine);if(y>=0){for(var D=[f,h,m],_=0,v=y;_t.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),fs=p(function(e,t){var n,r;function a(){return n=(e=hs)&&e.__esModule?e:{default:e};var e}function i(){return r=nn}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(u);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(u);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return f(e).pragmas},t.parseWithComments=f,t.print=function(e){var t=e.comments,s=void 0===t?"":t,o=e.pragmas,u=void 0===o?{}:o,c=(0,(n||a()).default)(s)||(r||i()).EOL,l=Object.keys(u),p=l.map(function(e){return m(e,u[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+c}).join("");if(!s){if(0===l.length)return"";if(1===l.length&&!Array.isArray(u[l[0]])){var d=u[l[0]];return"".concat("/**"," ").concat(m(l[0],d)[0]).concat(" */")}}var h=s.split(c).map(function(e){return"".concat(" *"," ").concat(e)}).join(c)+c;return"/**"+c+(s?h:"")+(s&&l.length?" *"+c:"")+p+" */"};var s=/\*\/$/,o=/^\/\*\*/,u=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,c=/(^|\s+)\/\/([^\r\n]*)/g,l=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,d=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,h=/(\r?\n|^) *\* ?/g;function f(e){var t=(0,(n||a()).default)(e)||(r||i()).EOL;e=e.replace(o,"").replace(s,"").replace(h,"$1");for(var u="";u!==e;)u=e,e=e.replace(p,"".concat(t,"$1 $2").concat(t));e=e.replace(l,"").trimRight();for(var f,m=Object.create(null),y=e.replace(d,"").replace(l,"").trimRight();f=d.exec(e);){var g=f[2].replace(c,"");"string"==typeof m[f[1]]||Array.isArray(m[f[1]])?m[f[1]]=[].concat(m[f[1]],g):m[f[1]]=g}return{comments:y,pragmas:m}}function m(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});l(fs);var ms={hasPragma:function(e){var t=Object.keys(fs.parse(fs.extract(e)));return-1!==t.indexOf("prettier")||-1!==t.indexOf("format")},insertPragma:function(e){var t=fs.parseWithComments(fs.extract(e)),n=Object.assign({format:""},t.pragmas),r=fs.print({pragmas:n,comments:t.comments.replace(/^(\s+?\r?\n)+/,"")}).replace(/(\r\n|\r)/g,"\n"),a=fs.strip(e);return r+(a.startsWith("\n")?"\n":"\n\n")+a}},ys={"---":"yaml","+++":"toml"},gs=function(e){var t=Object.keys(ys).map(zt).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};var r=n[0].replace(/\n$/,""),a=n[1],i=n[2];return{frontMatter:{type:ys[a],value:i,raw:r},content:n[0].replace(/[^\n]/g," ")+e.slice(n[0].length)}},Ds=["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"];function _s(e,t){for(var n,r=[].concat(t),a=-1;n=e.getParentNode(++a);)if(-1!==r.indexOf(n.type))return a;return-1}function vs(e,t){var n=_s(e,t);return-1===n?null:e.getParentNode(n)}function bs(e){return"value-operator"===e.type&&"*"===e.value}function Es(e){return"value-operator"===e.type&&"/"===e.value}function xs(e){return"value-operator"===e.type&&"+"===e.value}function ws(e){return"value-operator"===e.type&&"-"===e.value}function Cs(e){return"value-operator"===e.type&&"%"===e.value}function Ms(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function As(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&Ms(e.groups[0])}var ks=vs,Ts=function(e){var t=vs(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},Ss=function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},Ls=function(e,t){var n=vs(e,"value-func");return n&&n.value&&n.value.toLowerCase()===t},Fs=function(e){var t=vs(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},Ps=function(e,t){var n=[].concat(t),r=vs(e,"css-atrule");return r&&-1!==n.indexOf(r.name.toLowerCase())},Ys=function(e){var t=e.getValue(),n=vs(e,"css-atrule");return n&&"import"===n.name&&"url"===t.groups[0].value&&2===t.groups.length},js=function(e,t){var n=vs(e,"css-atrule");return n&&n.name&&n.name.toLowerCase().endsWith("keyframes")&&-1!==["from","to"].indexOf(t.toLowerCase())},Bs=function(e){return-1!==as.indexOf(e.toLowerCase())},Os=function(e){return-1!==["initial","inherit","unset","revert"].indexOf(e.toLowerCase())},Ns=function(e,t){return"less"===e||"scss"===e?"scss"===e:/(\w\s*: [^}:]+|#){|@import[^\n]+(url|,)/.test(t)},Is=function(e,t){var n=e.getParentNode();if(!n)return!1;var r=n.nodes;return r&&r.indexOf(t)===r.length-1},Rs=function(e){return"css-atrule"===e.type&&-1!==["if","else","for","each","while"].indexOf(e.name)},Hs=function(e){return!!e.selector&&("string"==typeof e.selector&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},zs=function(e){return"value-word"===e.type&&-1!==["<",">","<=",">="].indexOf(e.value)},Ws=function(e){return"value-word"===e.type&&-1!==["==","!="].indexOf(e.value)},$s=bs,qs=Es,Us=xs,Js=ws,Vs=function(e){return bs(e)||Es(e)||xs(e)||ws(e)||Cs(e)},Gs=function(e){return"value-word"===e.type&&"in"===e.value},Qs=function(e){return"value-word"===e.type&&-1!==["from","through","end"].indexOf(e.value)},Ks=function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},Xs=function(e){return"value-word"===e.type&&-1!==["and","or","not"].indexOf(e.value)},Zs=function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},eo=function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},to=function(e){return e.raws&&""===e.raws.before},no=function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},ro=function(e){return e.name.startsWith("prettier-placeholder")},ao=function(e){return e.prop.startsWith("@prettier-placeholder")},io=function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},so=Ms,oo=function(e){var t=e.getValue();if(0===t.groups.length)return!1;var n=e.getParentNode(1);if(!(As(t)||n&&As(n)))return!1;var r=vs(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!As(n)||"value-func"===n.type},uo=function(e){return"value-comment"===e.type&&e.inline},co=function(e){return"value-word"===e.type&&"#"===e.value},lo=function(e){return"value-word"===e.type&&"{"===e.value},po=function(e){return"value-word"===e.type&&"}"===e.value},ho=function(e){return-1!==["value-word","value-atword"].indexOf(e.type)},fo=function(e){return"value-colon"===e.type},mo=function(e){return e.value&&-1!==["not","and","or"].indexOf(e.value.toLowerCase())},yo=function(e){return"value-func"===e.type&&-1!==Ds.indexOf(e.value.toLowerCase())},go=function(e){var t=gs(e),n=t.frontMatter,r=t.content;return(n?n.raw+"\n\n":"")+ms.insertPragma(r)},Do=xa.printNumber,_o=xa.printString,vo=xa.hasIgnoreComment,bo=xa.hasNewline,Eo=Qa.isNextLineEmpty,xo=Va.builders,wo=xo.concat,Co=xo.join,Mo=xo.line,Ao=xo.hardline,ko=xo.softline,To=xo.group,So=xo.fill,Lo=xo.indent,Fo=xo.dedent,Po=xo.ifBreak,Yo=Va.utils.removeLines,jo=ks,Bo=Ts,Oo=Ss,No=Ls,Io=Fs,Ro=Ps,Ho=Ys,zo=js,Wo=Bs,$o=Os,qo=Ns,Uo=Is,Jo=Rs,Vo=Hs,Go=zs,Qo=Ws,Ko=$s,Xo=qs,Zo=Us,eu=Js,tu=Vs,nu=Gs,ru=Qs,au=Ks,iu=Xs,su=Zs,ou=eo,uu=to,cu=so,lu=no,pu=ro,du=ao,hu=io,fu=oo,mu=uo,yu=co,gu=lo,Du=po,_u=ho,vu=fo,bu=mo,Eu=yo;function xu(e){switch(e.trailingComma){case"all":case"es5":return!0;case"none":default:return!1}}function wu(e,t,n){var r=e.getValue(),a=[],i=0;return e.map(function(e){var s=r.nodes[i-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){var o=e.getValue();a.push(t.originalText.slice(t.locStart(o),t.locEnd(o)))}else a.push(e.call(n));i!==r.nodes.length-1&&("css-comment"===r.nodes[i+1].type&&!bo(t.originalText,t.locStart(r.nodes[i+1]),{backwards:!0})&&"yaml"!==r.nodes[i].type&&"toml"!==r.nodes[i].type||"css-atrule"===r.nodes[i+1].type&&"else"===r.nodes[i+1].name&&"css-comment"!==r.nodes[i].type?a.push(" "):(a.push(Ao),Eo(t.originalText,e.getValue(),t)&&"yaml"!==r.nodes[i].type&&"toml"!==r.nodes[i].type&&a.push(Ao))),i++},"nodes"),wo(a)}var Cu=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g,Mu=RegExp(Cu.source+"|"+"(".concat(/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g.source,")")+"(".concat(/[a-zA-Z]+/g.source,")?"),"g");function Au(e,t){return e.replace(Cu,function(e){return _o(e,t)})}function ku(e,t){var n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function Tu(e){return e.replace(Mu,function(e,t,n,r,a){return!n&&r?(n||"")+Su(r)+Oo(a||""):e})}function Su(e){return Do(e).replace(/\.0(?=$|e)/,"")}var Lu={print:function(e,t,n){var r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"yaml":case"toml":return wo([r.raw,Ao]);case"css-root":var a=wu(e,t,n);return a.parts.length?wo([a,Ao]):a;case"css-comment":if(r.raws.content)return r.raws.content;var i=t.originalText.slice(t.locStart(r),t.locEnd(r)),s=r.raws.text||r.text;return-1===i.indexOf(s)?r.raws.inline?wo(["// ",s]):wo(["/* ",s," */"]):i;case"css-rule":return wo([e.call(n,"selector"),r.important?" !important":"",r.nodes?wo([" {",r.nodes.length>0?Lo(wo([Ao,wu(e,t,n)])):"",Ao,"}",Vo(r)?";":""]):";"]);case"css-decl":var o=e.getParentNode();return wo([r.raws.before.replace(/[\s;]/g,""),Io(e)?r.prop:Oo(r.prop),":"===r.raws.between.trim()?":":r.raws.between.trim(),r.extend?"":" ",su(r)?Yo(e.call(n,"value")):e.call(n,"value"),r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?wo([" {",Lo(wo([ko,wu(e,t,n)])),ko,"}"]):du(r)&&!o.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"]);case"css-atrule":var u=e.getParentNode();return wo(["@",lu(r)||r.name.endsWith(":")?r.name:Oo(r.name),r.params?wo([lu(r)?"":pu(r)&&/^\s*\n/.test(r.raws.afterName)?/^\s*\n\s*\n/.test(r.raws.afterName)?wo([Ao,Ao]):Ao:" ",e.call(n,"params")]):"",r.selector?Lo(wo([" ",e.call(n,"selector")])):"",r.value?To(wo([" ",e.call(n,"value"),Jo(r)?ou(r)?" ":Mo:""])):"else"===r.name?" ":"",r.nodes?wo([Jo(r)?"":" ","{",Lo(wo([r.nodes.length>0?ko:"",wu(e,t,n)])),ko,"}"]):pu(r)&&!u.raws.semicolon&&";"!==t.originalText[t.locEnd(r)-1]?"":";"]);case"media-query-list":var c=[];return e.each(function(e){var t=e.getValue();"media-query"===t.type&&""===t.value||c.push(e.call(n))},"nodes"),To(Lo(Co(Mo,c)));case"media-query":return wo([Co(" ",e.map(n,"nodes")),Uo(e,r)?"":","]);case"media-type":return Tu(Au(r.value,t));case"media-feature-expression":return r.nodes?wo(["(",wo(e.map(n,"nodes")),")"]):r.value;case"media-feature":return Oo(Au(r.value.replace(/ +/g," "),t));case"media-colon":return wo([r.value," "]);case"media-value":return Tu(Au(r.value,t));case"media-keyword":return Au(r.value,t);case"media-url":return Au(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/gi,")"),t);case"media-unknown":return r.value;case"selector-root":return To(wo([Ro(e,"custom-selector")?wo([jo(e,"css-atrule").customSelector,Mo]):"",Co(wo([",",Ro(e,["extend","custom-selector","nest"])?Mo:Ao]),e.map(n,"nodes"))]));case"selector-selector":return To(Lo(wo(e.map(n,"nodes"))));case"selector-comment":return r.value;case"selector-string":return Au(r.value,t);case"selector-tag":var l=e.getParentNode(),p=l&&l.nodes.indexOf(r),d=p&&l.nodes[p-1];return wo([r.namespace?wo([!0===r.namespace?"":r.namespace.trim(),"|"]):"","selector-nesting"===d.type?r.value:Tu(Wo(r.value)||zo(e,r.value)?r.value.toLowerCase():r.value)]);case"selector-id":return wo(["#",r.value]);case"selector-class":return wo([".",Tu(Au(r.value,t))]);case"selector-attribute":return wo(["[",r.namespace?wo([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.attribute.trim(),r.operator?r.operator:"",r.value?ku(Au(r.value.trim(),t),t):"",r.insensitive?" i":"","]"]);case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){var h=e.getParentNode(),f="selector-selector"===h.type&&h.nodes[0]===r?"":Mo;return wo([f,r.value,Uo(e,r)?"":" "])}var m=r.value.trim().startsWith("(")?Mo:"",y=Tu(Au(r.value.trim(),t))||Mo;return wo([m,y]);case"selector-universal":return wo([r.namespace?wo([!0===r.namespace?"":r.namespace.trim(),"|"]):"",r.value]);case"selector-pseudo":return wo([Oo(r.value),r.nodes&&r.nodes.length>0?wo(["(",Co(", ",e.map(n,"nodes")),")"]):""]);case"selector-nesting":return r.value;case"selector-unknown":var g=jo(e,"css-rule");return g&&g.isSCSSNesterProperty?Tu(Au(Oo(r.value),t)):r.value;case"value-value":case"value-root":return e.call(n,"group");case"value-comment":return wo([r.inline?"//":"/*",r.value,r.inline?"":"*/"]);case"value-comma_group":for(var D=e.getParentNode(),_=e.getParentNode(1),v=Bo(e),b=v&&"value-value"===D.type&&("grid"===v||v.startsWith("grid-template")),E=jo(e,"css-atrule"),x=E&&Jo(E),w=e.map(n,"groups"),C=[],M=No(e,"url"),A=!1,k=!1,T=0;T0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return wo([r.open?e.call(n,"open"):"",Co(",",e.map(n,"groups")),r.close?e.call(n,"close"):""]);if(!r.open){for(var z=e.map(n,"groups"),W=[],$=0;$0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):"",cc(e,n,r),r.selectionSet?" ":"",e.call(n,"selectionSet")]));case"Name":return r.value;case"StringValue":return r.block?Zu(['"""',tc,ec(tc,r.value.replace(/"""/g,"\\$&").split("\n")),tc,'"""']):Zu(['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']);case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return Zu(["$",e.call(n,"name")]);case"ListValue":return ac(Zu(["[",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.map(n,"values"))])),rc,"]"]));case"ObjectValue":return ac(Zu(["{",t.bracketSpacing&&r.fields.length>0?" ":"",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.map(n,"fields"))])),rc,sc("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]));case"ObjectField":case"Argument":return Zu([e.call(n,"name"),": ",e.call(n,"value")]);case"Directive":return Zu(["@",e.call(n,"name"),r.arguments.length>0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):""]);case"NamedType":return e.call(n,"name");case"VariableDefinition":return Zu([e.call(n,"variable"),": ",e.call(n,"type"),r.defaultValue?Zu([" = ",e.call(n,"defaultValue")]):"",cc(e,n,r)]);case"TypeExtensionDefinition":return Zu(["extend ",e.call(n,"definition")]);case"ObjectTypeExtension":case"ObjectTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",e.call(n,"name"),r.interfaces.length>0?Zu([" implements ",ec(pc(t.originalText.substr(t.locStart(r),t.locEnd(r))),e.map(n,"interfaces"))]):"",cc(e,n,r),r.fields.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"fields"))])),tc,"}"]):""]);case"FieldDefinition":return Zu([e.call(n,"description"),r.description?tc:"",e.call(n,"name"),r.arguments.length>0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):"",": ",e.call(n,"type"),cc(e,n,r)]);case"DirectiveDefinition":return Zu([e.call(n,"description"),r.description?tc:"","directive ","@",e.call(n,"name"),r.arguments.length>0?ac(Zu(["(",ic(Zu([rc,ec(Zu([sc("",", "),rc]),e.call(function(e){return lc(e,t,n)},"arguments"))])),rc,")"])):"",Zu([" on ",ec(" | ",e.map(n,"locations"))])]);case"EnumTypeExtension":case"EnumTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",e.call(n,"name"),cc(e,n,r),r.values.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"values"))])),tc,"}"]):""]);case"EnumValueDefinition":return Zu([e.call(n,"description"),r.description?tc:"",e.call(n,"name"),cc(e,n,r)]);case"InputValueDefinition":return Zu([e.call(n,"description"),r.description?r.description.block?tc:nc:"",e.call(n,"name"),": ",e.call(n,"type"),r.defaultValue?Zu([" = ",e.call(n,"defaultValue")]):"",cc(e,n,r)]);case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",e.call(n,"name"),cc(e,n,r),r.fields.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"fields"))])),tc,"}"]):""]);case"SchemaDefinition":return Zu(["schema",cc(e,n,r)," {",r.operationTypes.length>0?ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"operationTypes"))])):"",tc,"}"]);case"OperationTypeDefinition":return Zu([e.call(n,"operation"),": ",e.call(n,"type")]);case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",e.call(n,"name"),cc(e,n,r),r.fields.length>0?Zu([" {",ic(Zu([tc,ec(tc,e.call(function(e){return lc(e,t,n)},"fields"))])),tc,"}"]):""]);case"FragmentSpread":return Zu(["...",e.call(n,"name"),cc(e,n,r)]);case"InlineFragment":return Zu(["...",r.typeCondition?Zu([" on ",e.call(n,"typeCondition")]):"",cc(e,n,r)," ",e.call(n,"selectionSet")]);case"UnionTypeExtension":case"UnionTypeDefinition":return ac(Zu([e.call(n,"description"),r.description?tc:"",ac(Zu(["UnionTypeExtension"===r.kind?"extend ":"","union ",e.call(n,"name"),cc(e,n,r),r.types.length>0?Zu([" =",sc(""," "),ic(Zu([sc(Zu([nc," "])),ec(Zu([nc,"| "]),e.map(n,"types"))]))]):""]))]));case"ScalarTypeExtension":case"ScalarTypeDefinition":return Zu([e.call(n,"description"),r.description?tc:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",e.call(n,"name"),cc(e,n,r)]);case"NonNullType":return Zu([e.call(n,"type"),"!"]);case"ListType":return Zu(["[",e.call(n,"type"),"]"]);default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:function(e,t){delete t.loc,delete t.comments},hasPrettierIgnore:oc,insertPragma:Ku,printComment:function(e){var t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimRight();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},hc={bracketSpacing:Fu.bracketSpacing},fc=[".graphql",".gql"],mc={name:"GraphQL",type:"data",extensions:fc,tmScope:"source.graphql",aceMode:"text",languageId:139},yc=Object.freeze({name:"GraphQL",type:"data",extensions:fc,tmScope:"source.graphql",aceMode:"text",languageId:139,default:mc}),gc={languages:[Yu(yc&&mc||yc,{override:{since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}})],options:hc,printers:{graphql:dc}},Dc=Va.builders,_c=Dc.concat,vc=Dc.join,bc=Dc.softline,Ec=Dc.hardline,xc=Dc.line,wc=Dc.group,Cc=Dc.indent,Mc=Dc.ifBreak,Ac=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function kc(e,t){return e.call(t,"path")}function Tc(e,t){var n=e.getValue(),r=[];return n.params.length>0&&(r=r.concat(e.map(t,"params"))),n.hash&&n.hash.pairs.length>0&&r.push(e.call(t,"hash")),r}function Sc(e,t){var n=[];return n.push(kc(e,t)),n=n.concat(Tc(e,t)),Cc(wc(vc(xc,n)))}function Lc(e){var t=e.getValue();return t.program&&t.program.blockParams.length?_c([" as |",t.program.blockParams.join(" "),"|"]):""}function Fc(e,t){return wc(_c(["{{#",Sc(e,t),Lc(e),bc,"}}"]))}function Pc(e,t){return _c(["{{/",e.call(t,"path"),"}}"])}var Yc={print:function(e,t,n){var r=e.getValue();if(!r)return"";switch(r.type){case"Program":return wc(vc(bc,e.map(n,"body").filter(function(e){return""!==e})));case"ElementNode":var a=r.tag[0],i=-1!==r.tag.indexOf("."),s=a.toUpperCase()===a||i,o=r.children.length>0,u=s&&!o||-1!==Ac.indexOf(r.tag),c=u?_c([" />",bc]):">",l=u?"/>":">";return _c([wc(_c(["<",r.tag,function(e,t){return Cc(_c([r.attributes.length?xc:"",vc(xc,e.map(t,"attributes")),r.modifiers.length?xc:"",vc(xc,e.map(t,"modifiers")),r.comments.length?xc:"",vc(xc,e.map(t,"comments"))]))}(e,n),r.blockParams.length?" as |".concat(r.blockParams.join(" "),"|"):"",Mc(bc,""),Mc(l,c)])),wc(_c([Cc(vc(bc,[""].concat(e.map(n,"children")))),Mc(o?Ec:"",""),u?"":_c([""])]))]);case"BlockStatement":var p=e.getParentNode(1),d=p&&p.inverse&&1===p.inverse.body.length&&p.inverse.body[0]===r&&"if"===p.inverse.body[0].path.parts[0],h=r.inverse&&1===r.inverse.body.length&&"BlockStatement"===r.inverse.body[0].type&&"if"===r.inverse.body[0].path.parts[0],f=h?function(e){return e}:Cc;if(r.inverse)return _c([d?_c(["{{else ",Sc(e,n),"}}"]):Fc(e,n),Cc(_c([Ec,e.call(n,"program")])),r.inverse&&!h?_c([Ec,"{{else}}"]):"",r.inverse?f(_c([Ec,e.call(n,"inverse")])):"",d?"":_c([Ec,Pc(e,n)])]);if(d)return _c([_c(["{{else ",Sc(e,n),"}}"]),Cc(_c([Ec,e.call(n,"program")]))]);var m=r.params.length>0||r.hash.pairs.length>0,y=r.program.body.length>0;return _c([Fc(e,n),wc(_c([Cc(_c([bc,e.call(n,"program")])),m&&y?Ec:bc,Pc(e,n)]))]);case"ElementModifierStatement":case"MustacheStatement":var g=e.getParentNode(1),D=g&&"ConcatStatement"===g.type;return wc(_c([!1===r.escaped?"{{{":"{{",Sc(e,n),D?"":bc,!1===r.escaped?"}}}":"}}"]));case"SubExpression":var _=Tc(e,n),v=_.length>0?Cc(_c([xc,wc(vc(xc,_))])):"";return wc(_c(["(",kc(e,n),v,bc,")"]));case"AttrNode":var b="TextNode"===r.value.type;if(b&&r.value.loc.start.column===r.value.loc.end.column)return _c([r.name]);var E=b?'"':"";return _c([r.name,"=",E,e.call(n,"value"),E]);case"ConcatStatement":return _c(['"',wc(Cc(vc(bc,e.map(function(e){return n(e)},"parts").filter(function(e){return""!==e})))),'"']);case"Hash":return _c([vc(xc,e.map(n,"pairs"))]);case"HashPair":return _c([r.key,"=",e.call(n,"value")]);case"TextNode":var x="",w="";if(e.stack.indexOf("attributes")>=0){var C=e.getParentNode(0);if("ConcatStatement"===C.type){var M=C.parts,A=M.indexOf(r);A>0&&"MustacheStatement"===M[A-1].type&&(x=" "),A-1?"--":"";return _c(["{{!",k,r.value,k,"}}"]);case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return _c(["\x3c!--",r.value,"--\x3e"]);case"StringLiteral":return function(e,t){var n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},a=t.singleQuote?r:n,i=a===r?n:r,s=!1;if(e.includes(a.quote)||e.includes(i.quote)){var o=(e.match(a.regex)||[]).length,u=(e.match(i.regex)||[]).length;s=o>u}var c=s?i:a,l=e.replace(c.regex,"\\".concat(c.quote));return"".concat(c.quote).concat(l).concat(c.quote)}(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:function(e,t){if(delete t.loc,"TextNode"===e.type){if(""===e.chars.replace(/\s+/,""))return null;t.chars=e.chars.replace(/^\s+/,"").replace(/\s+$/,"")}}},jc=["hbs","htmlbars"],Bc=[".handlebars",".hbs"],Oc={name:"Handlebars",type:"markup",group:"HTML",aliases:jc,extensions:Bc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},Nc=Object.freeze({name:"Handlebars",type:"markup",group:"HTML",aliases:jc,extensions:Bc,tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155,default:Oc}),Ic={languages:[Yu(Nc&&Oc||Nc,{override:{since:null,parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}})],printers:{glimmer:Yc}},Rc=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],Hc=["title"],zc=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],Wc=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],$c=["autoplay","controls","crossorigin","loop","muted","preload","src"],qc=["href","target"],Uc=["color","face","size"],Jc=["dir"],Vc=["cite"],Gc=["alink","background","bgcolor","link","text","vlink"],Qc=["clear"],Kc=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],Xc=["height","width"],Zc=["align"],el=["align","char","charoff","span","valign","width"],tl=["align","char","charoff","span","valign","width"],nl=["value"],rl=["cite","datetime"],al=["open"],il=["title"],sl=["open"],ol=["compact"],ul=["align"],cl=["compact"],ll=["height","src","type","width"],pl=["disabled","form","name"],dl=["color","face","size"],hl=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],fl=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],ml=["cols","rows"],yl=["align"],gl=["align"],Dl=["align"],_l=["align"],vl=["align"],bl=["align"],El=["profile"],xl=["align","noshade","size","width"],wl=["manifest","version"],Cl=["align","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],Ml=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],Al=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],kl=["cite","datetime"],Tl=["prompt"],Sl=["accesskey","for","form"],Ll=["accesskey","align"],Fl=["type","value"],Pl=["as","charset","color","crossorigin","href","hreflang","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],Yl=["name"],jl=["compact"],Bl=["charset","content","http-equiv","name","scheme"],Ol=["high","low","max","min","optimum","value"],Nl=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],Il=["compact","reversed","start","type"],Rl=["disabled","label"],Hl=["disabled","label","selected","value"],zl=["for","form","name"],Wl=["align"],$l=["name","type","value","valuetype"],ql=["width"],Ul=["max","value"],Jl=["cite"],Vl=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Gl=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Ql=["name"],Kl=["media","sizes","src","srcset","type"],Xl=["media","nonce","title","type"],Zl=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],ep=["align","char","charoff","valign"],tp=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],np=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],rp=["align","char","charoff","valign"],ap=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],ip=["align","char","charoff","valign"],sp=["datetime"],op=["align","bgcolor","char","charoff","valign"],up=["default","kind","label","src","srclang"],cp=["compact","type"],lp=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],pp={a:Rc,abbr:Hc,applet:zc,area:Wc,audio:$c,base:qc,basefont:Uc,bdo:Jc,blockquote:Vc,body:Gc,br:Qc,button:Kc,canvas:Xc,caption:Zc,col:el,colgroup:tl,data:nl,del:rl,details:al,dfn:il,dialog:sl,dir:ol,div:ul,dl:cl,embed:ll,fieldset:pl,font:dl,form:hl,frame:fl,frameset:ml,h1:yl,h2:gl,h3:Dl,h4:_l,h5:vl,h6:bl,head:El,hr:xl,html:wl,iframe:Cl,img:Ml,input:Al,ins:kl,isindex:Tl,label:Sl,legend:Ll,li:Fl,link:Pl,map:Yl,menu:jl,meta:Bl,meter:Ol,object:Nl,ol:Il,optgroup:Rl,option:Hl,output:zl,p:Wl,param:$l,pre:ql,progress:Ul,q:Jl,script:Vl,select:Gl,slot:Ql,source:Kl,style:Xl,table:Zl,tbody:ep,td:tp,textarea:np,tfoot:rp,th:ap,thead:ip,time:sp,tr:op,track:up,ul:cp,video:lp,"*":["accesskey","autocapitalize","class","contenteditable","dir","draggable","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"]},dp=Object.freeze({a:Rc,abbr:Hc,applet:zc,area:Wc,audio:$c,base:qc,basefont:Uc,bdo:Jc,blockquote:Vc,body:Gc,br:Qc,button:Kc,canvas:Xc,caption:Zc,col:el,colgroup:tl,data:nl,del:rl,details:al,dfn:il,dialog:sl,dir:ol,div:ul,dl:cl,embed:ll,fieldset:pl,font:dl,form:hl,frame:fl,frameset:ml,h1:yl,h2:gl,h3:Dl,h4:_l,h5:vl,h6:bl,head:El,hr:xl,html:wl,iframe:Cl,img:Ml,input:Al,ins:kl,isindex:Tl,label:Sl,legend:Ll,li:Fl,link:Pl,map:Yl,menu:jl,meta:Bl,meter:Ol,object:Nl,ol:Il,optgroup:Rl,option:Hl,output:zl,p:Wl,param:$l,pre:ql,progress:Ul,q:Jl,script:Vl,select:Gl,slot:Ql,source:Kl,style:Xl,table:Zl,tbody:ep,td:tp,textarea:np,tfoot:rp,th:ap,thead:ip,time:sp,tr:op,track:up,ul:cp,video:lp,default:pp}),hp=dp&&pp||dp,fp={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"none",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},mp="inline",yp={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},gp="normal";function Dp(e){var t=Object.create(null),n=!0,r=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){t[i.value]=!0}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return t}function _p(e,t){return!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||(!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||("ieConditionalComment"===e.type&&!e.complete||("vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!Fp(e)||!e.children.some(function(e){return"text"!==e.type&&"interpolation"!==e.type})))))}function vp(e){return"attribute"!==e.type&&!bp(e)&&(!!e.parent&&("number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])))}function bp(e){return"text"===e.type||"comment"===e.type}function Ep(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function xp(e){return"yaml"===e.type||"toml"===e.type}function wp(e){return Pp(e).startsWith("pre")}function Cp(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Mp(e){return Sp(e)||"element"===e.type&&"br"===e.fullName||Ap(e)}function Ap(e){return kp(e)&&Tp(e)}function kp(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Sp(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function Lp(e){return"block"===e||"list-item"===e||e.startsWith("table")}function Fp(e){return Pp(e).startsWith("pre")}function Pp(e){return"element"===e.type&&!e.namespace&&yp[e.name]||gp}Dp(as),function(e,t){for(var n=Object.create(null),r=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:function(){return!0},n=0,r=e.stack.length-1;r>=0;r--){var a=e.stack[r];a&&"object"===_(a)&&!Array.isArray(a)&&t(a)&&n++}return n},Op=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=1/0,n=!0,r=!1,a=void 0;try{for(var i,s=e.split("\n")[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var o=i.value;if(0!==o.length){if(/\S/.test(o[0]))return 0;var u=o.match(/^\s*/)[0].length;o.length!==u&&u")})},function(e,t){if("html"===t.parser)return e;var n=/\{\{([\s\S]+?)\}\}/g;return e.map(function(e){if(!ed(e))return e;var t=[],r=!0,a=!1,i=void 0;try{for(var s,o=e.children[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;if("text"===u.type)for(var c=u.sourceSpan.constructor,l=u.sourceSpan.start,p=null,d=u.value.split(n),h=0;h$/.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset))})})},function(e){return e.map(function(e){return e.children?0===e.children.length?e.clone({isDanglingSpaceSensitive:nd(e)}):e.clone({children:e.children.map(function(e){return Object.assign({},e,{isLeadingSpaceSensitive:ad(e),isTrailingSpaceSensitive:id(e)})}).map(function(e,t,n){return Object.assign({},e,{isLeadingSpaceSensitive:0===t?e.isLeadingSpaceSensitive:n[t-1].isTrailingSpaceSensitive&&e.isLeadingSpaceSensitive,isTrailingSpaceSensitive:t===n.length-1?e.isTrailingSpaceSensitive:n[t+1].isLeadingSpaceSensitive&&e.isTrailingSpaceSensitive})})}):e})},function(e){var t=function(e){return"element"===e.type&&0===e.attrs.length&&1===e.children.length&&"text"===e.firstChild.type&&!/[^\S\xA0]/.test(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev&&"text"===e.prev.type&&e.next&&"text"===e.next.type};return e.map(function(e){if(e.children){var n=e.children.map(t);if(n.some(Boolean)){for(var r=[],a=0;a")+i.firstChild.value+"")+o.value,sourceSpan:new u(s.sourceSpan.start,o.sourceSpan.end),isTrailingSpaceSensitive:c,hasTrailingSpaces:l}))}else r.push(i)}return e.clone({children:r})}}return e})}],ud=function(e,t){for(var n=0;n|^function\s*\(/.test(t)||/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)},fd=function(e,t){var n=function(e){var t=/,([^,}\]]*)(?:,([^,}\]]*))?$/,n=e.match(/([^]*?)\s+(in|of)\s+([^]*)/);if(n){var r={};r.for=n[3].trim();var a=n[1].trim().replace(/^\(|\)$/g,""),i=a.match(t);return i?(r.alias=a.replace(t,""),r.iterator1=i[1].trim(),i[2]&&(r.iterator2=i[2].trim())):r.alias=a,{left:"".concat([r.alias,r.iterator1,r.iterator2].filter(Boolean).join(",")),operator:n[2],right:r.for}}}(e),r=n.left,a=n.operator,i=n.right;return pd([dd(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",a," ",t(i,{parser:"__js_expression"})])},md=function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueSlotScope:!0})},yd=p(function(e){var t,n;t=c,n=function(){return function(e,t){var n=t&&t.logger||console;function r(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function a(t){var n,r=t.exec(e.substring(g));if(r)return n=r[0],g+=n.length,n}for(var i,s,o,u,c,l=e.length,p=/^[ \t\n\r\u000c]+/,d=/^[, \t\n\r\u000c]+/,h=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,m=/^\d+$/,y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,D=[];;){if(a(d),g>=l)return D;i=a(h),s=[],","===i.slice(-1)?(i=i.replace(f,""),v()):_()}function _(){for(a(p),o="",u="in descriptor";;){if(c=e.charAt(g),"in descriptor"===u)if(r(c))o&&(s.push(o),o="",u="after descriptor");else{if(","===c)return g+=1,o&&s.push(o),void v();if("("===c)o+=c,u="in parens";else{if(""===c)return o&&s.push(o),void v();o+=c}}else if("in parens"===u)if(")"===c)o+=c,u="in descriptor";else{if(""===c)return s.push(o),void v();o+=c}else if("after descriptor"===u)if(r(c));else{if(""===c)return void v();u="in descriptor",g-=1}g+=1}}function v(){var t,r,a,o,u,c,l,p,d,h=!1,f={};for(o=0;o\x3c!--\x3e<").concat(e.rawName);default:return"<".concat(e.rawName)}}function wh(e){switch(Ka(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function Ch(e,t){if(Ka(!e.isSelfClosing),Zd(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}var Ah={preprocess:ud,print:function(e,t,n){var r,a=e.getValue();switch(a.type){case"root":return xd.concat([Sd(uh(e,t,n)),Ld]);case"element":case"ieConditionalComment":var i=1===a.children.length&&"interpolation"===a.firstChild.type&&a.firstChild.isLeadingSpaceSensitive&&!a.firstChild.hasLeadingSpaces&&a.lastChild.isTrailingSpaceSensitive&&!a.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id");return oh([Sd(oh([Sd(ch(e,t,n),{id:s}),0===a.children.length?a.hasDanglingSpaces&&a.isDanglingSpaceSensitive?jd:"":oh([Wd(a)?Ad:"",(r=oh([i?Fd(Nd,"",{groupId:s}):a.firstChild.hasLeadingSpaces&&a.firstChild.isLeadingSpaceSensitive?jd:"text"===a.firstChild.type&&a.isWhitespaceSensitive&&a.isIndentationSensitive?kd(Nd):Nd,uh(e,t,n)]),i?Fd(Pd(r),r,{groupId:s}):Gd(a)&&"root"===a.parent.type&&"vue"===t.parser?r:Pd(r)),(a.next?gh(a.next):Dh(a.parent))?a.lastChild.hasTrailingSpaces&&a.lastChild.isTrailingSpaceSensitive?" ":"":i?Fd(Nd,"",{groupId:s}):a.lastChild.hasTrailingSpaces&&a.lastChild.isTrailingSpaceSensitive?jd:("comment"===a.lastChild.type||"text"===a.lastChild.type&&a.isWhitespaceSensitive&&a.isIndentationSensitive)&&new RegExp("\\n\\s{".concat(t.tabWidth*Rd(e,function(e){return e.parent&&"root"!==e.parent.type}),"}$")).test(a.lastChild.value)?"":Nd])])),dh(a,t)]);case"ieConditionalStartComment":case"ieConditionalEndComment":return oh([lh(a),fh(a)]);case"interpolation":return oh([lh(a,t),oh(e.map(n,"children")),fh(a,t)]);case"text":if("interpolation"===a.parent.type){var o=/\n[^\S\n]*?$/,u=o.test(a.value),c=u?a.value.replace(o,""):a.value;return oh([oh(nh(c,Bd)),u?Ld:""])}return Td(Kd([].concat(vh(a,t),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.value;return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?nh(t,Bd):nh(Hd(t.replace(/^\s*?\n|\n\s*?$/g,"")),Ld):Yd(jd,t.split(/[\t\n\f\r ]+/)).parts}(a),Eh(a,t))));case"docType":return oh([Sd(oh([lh(a,t)," ",a.value.replace(/^html\b/i,"html").replace(/\s+/g," ")])),fh(a,t)]);case"comment":return oh([vh(a,t),oh(nh(t.originalText.slice(t.locStart(a),t.locEnd(a)),Bd)),Eh(a,t)]);case"attribute":if(null===a.value)return a.rawName;var l=th(a.value),p=Id(l,"'")0)||n&&"Decorator"===n.type)&&(e.decorators&&0!==e.decorators.length?Rh(e.decorators[e.decorators.length-1],r):Ih(e,r),!0)}function Vh(e,t,n,r,a){return t&&n&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===n.type&&t.key===n&&":"!==xa.getNextNonSpaceNonCommentCharacter(e,n,a.locEnd)?(Rh(n,r),!0):!(!n||!t||"Decorator"!==n.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type)&&(Rh(n,r),!0)}function Gh(e,t,n,r,a,i){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Rh(t,a),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&("ArrowFunctionExpression"===n.type||"FunctionExpression"===n.type||"FunctionDeclaration"===n.type||"ObjectMethod"===n.type||"ClassMethod"===n.type)&&")"===xa.getNextNonSpaceNonCommentCharacter(e,a,i.locEnd))return Rh(t,a),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){var s=function(){if(0!==n.params.length)return xa.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(xa.getLast(n.params)));var t=xa.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,i.locEnd(n.id));return xa.getNextNonSpaceNonCommentCharacterIndexWithStartIndex(e,t+1)}();if(i.locStart(a)>s)return zh(r,a),!0}return!1}function Qh(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(Ih(e,t),!0)}function Kh(e,t,n,r){return t&&t.body&&0===t.body.length?(r?Hh(t,n):Ih(t,n),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(r?Hh(e,n):Ih(e,n),!0)}var Xh={handleOwnLineComment:function(e,t,n,r,a){var i=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(Gh(t,i,s,o,e,n)||function(e,t,n){return!(!e||"MemberExpression"!==e.type||!t||"Identifier"!==t.type)&&(Ih(e,n),!0)}(s,o,e)||$h(t,i,s,o,e,n)||qh(t,i,s,o,e,n)||Uh(s,i,o,e)||Jh(s,0,o,e)||Qh(s,e)||function(e,t,n){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type)&&(Ih(e,n),!0)}(s,0,e)||function(e,t,n,r){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type)&&(Rh(e,r),!0)}(i,s,0,e)||Kh(s,r,e,a)||function(e,t,n,r,a){return!!(n&&"ImportSpecifier"===n.type&&t&&"ImportDeclaration"===t.type&&xa.hasNewline(e,a.locEnd(r)))&&(Rh(n,r),!0)}(t,s,i,e,n)||function(e,t){return!(!e||"AssignmentPattern"!==e.type)&&(Ih(e,t),!0)}(s,e)||Vh(t,s,i,e,n))},handleEndOfLineComment:function(e,t,n,r,a){var i=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!(Gh(t,i,s,o,e,n)||function(e,t,n,r,a,i){var s=t&&!xa.hasNewlineInRange(a,i.locEnd(t),i.locStart(r));return!(t&&s||!e||"ConditionalExpression"!==e.type||!n)&&(Ih(n,r),!0)}(s,i,o,e,t,n)||Qh(s,e)||$h(t,i,s,o,e,n)||qh(t,i,s,o,e,n)||Uh(s,i,o,e)||Jh(s,0,o,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type)&&(Ih(e,t),!0)}(s,e)||function(e,t,n){return!!(t&&"CallExpression"===t.type&&e&&t.callee===e&&t.arguments.length>0)&&(Ih(t.arguments[0],n),!0)}(i,s,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type)&&(Ih(e,t),!0)}(s,e)||Kh(s,r,e,a)||function(e,t,n){return!(!e||"TypeAlias"!==e.type)&&(Ih(e,n),!0)}(s,0,e)||function(e,t,n){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type)&&(Ih(t,n),!0)}(s,o,e))},handleRemainingComment:function(e,t,n,r,a){var i=e.precedingNode,s=e.enclosingNode,o=e.followingNode;return!!($h(t,i,s,o,e,n)||qh(t,i,s,o,e,n)||function(e,t,n){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type)&&(Rh(e.value.left,n),!0)}(s,i,e)||function(e,t,n,r){return")"===xa.getNextNonSpaceNonCommentCharacter(e,n,r.locEnd)&&(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ArrowFunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!(!t||"MethodDefinition"!==t.type||0!==t.value.params.length)&&(Hh(t.value,n),!0):(Hh(t,n),!0))}(t,s,e,n)||Vh(t,s,i,e,n)||Kh(s,r,e,a)||function(e,t,n,r){if(!t||"ArrowFunctionExpression"!==t.type)return!1;var a=Qa.getNextNonSpaceNonCommentCharacterIndex(e,n,r);return"=>"===e.substr(a,2)&&(Hh(t,n),!0)}(t,s,e,n)||function(e,t,n,r,a){return"("===xa.getNextNonSpaceNonCommentCharacter(e,r,a.locEnd)&&(!(!n||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type)&&(Rh(n,r),!0))}(t,s,i,e,n)||function(e,t,n,r,a){return!(!t||"TSMappedType"!==t.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(Ih(r.name,a),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(Rh(n.constraint,a),!0))}(0,s,i,o,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label)&&(Rh(e,t),!0)}(s,e))},hasLeadingComment:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0};return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(function(e){return e.leading&&t(e)})},isBlockComment:function(e){return"Block"===e.type||"CommentBlock"===e.type}},Zh=Xh.isBlockComment,ef=Xh.hasLeadingComment,tf=Va.builders,nf=tf.indent,rf=tf.join,af=tf.hardline,sf=tf.softline,of=tf.literalline,uf=tf.concat,cf=tf.group,lf=tf.dedentToRoot,pf=Va.utils,df=pf.mapDoc,hf=pf.stripTrailingHardline;function ff(e){return e.replace(/([\\`]|\$\{)/g,"\\$1")}function mf(e,t){return df(e,function(e){if(!e.parts)return e;var n=[];return e.parts.forEach(function(e){"string"==typeof e?n.push(t?e.replace(/(\\*)`/g,"$1$1\\`"):ff(e)):n.push(e)}),Object.assign({},e,{parts:n})})}function yf(e){var t=[],n=!1;return e.map(function(e){return e.trim()}).forEach(function(e,r,a){""!==e&&(""===a[r-1]&&n?t.push(uf([af,e])):t.push(e),n=!0)}),0===t.length?null:rf(af,t)}function gf(e){var t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(function(e){return"jsx"===e.name.name})||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}function Df(e){return wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"ArrayExpression"===e.type&&"elements"===t},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}function _f(e){var t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;var n=t.tag;switch(n.type){case"MemberExpression":return bf(n.object)||Ef(n);case"CallExpression":return bf(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(bf(n.callee.object.object)||Ef(n.callee.object))||"CallExpression"===n.callee.object.type&&bf(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}function vf(e){var t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}function bf(e){return"Identifier"===e.type&&"styled"===e.name}function Ef(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function xf(e,t){return ef(e,function(e){return Zh(e)&&e.value===" ".concat(t," ")})}function wf(e,t){var n=e.stack.slice(),r=null,a=n.pop(),i=!0,s=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;if(void 0===a)return!1;if("number"==typeof r&&(r=n.pop(),a=n.pop()),!l(a,r))return!1;r=n.pop(),a=n.pop()}}catch(e){s=!0,o=e}finally{try{i||null==c.return||c.return()}finally{if(s)throw o}}return!0}var Cf=0,Mf=function(e,t,n,r){var a,i=e.getValue(),s=e.getParentNode(),o=e.getParentNode(1);switch(i.type){case"TemplateLiteral":if([gf,_f,vf,Df].some(function(t){return t(e)})){var u=i.quasis.map(function(e){return e.value.raw}),c=0,l=u.reduce(function(e,t,n){return 0==n?t:e+"@prettier-placeholder-"+c+++"-id"+t},"");return function(e,t,n){var r=t.getValue();if(1===r.quasis.length&&!r.quasis[0].value.raw.trim())return"``";var a=r.expressions?t.map(n,"expressions"):[],i=function(e,t){if(!t||!t.length)return e;var n=t.slice(),r=0,a=df(e,function(e){if(!e||!e.parts||!e.parts.length)return e;var t=e.parts,a=t.indexOf("@"),i=a+1;if(a>-1&&"string"==typeof t[i]&&t[i].startsWith("prettier-placeholder")){var s=t[a],o=t[i],u=t.slice(i+1);t=t.slice(0,a).concat([s+o]).concat(u)}var c=t.findIndex(function(e){return"string"==typeof e&&e.startsWith("@prettier-placeholder")});if(c>-1){var l=t[c],p=t.slice(c+1),d=l.match(/@prettier-placeholder-(.+)-id([\s\S]*)/),h=d[1],f=d[2],m=n[h];r++,t=t.slice(0,c).concat(["${",m,"}"+f]).concat(p)}return Object.assign({},e,{parts:t})});return n.length===r?a:null}(e,a);if(!i)throw new Error("Couldn't insert all the expressions");return uf(["`",nf(uf([af,hf(i)])),sf,"`"])}(n(l,{parser:"css"}),e,t)}if(function(e){var t=e.getValue(),n=e.getParentNode();return xf(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)){var p=i.expressions?e.map(t,"expressions"):[],d=i.quasis.length;if(1===d&&""===i.quasis[0].value.raw.trim())return"``";for(var h=[],f=0;f2&&""===D[0].trim()&&""===D[1].trim(),E=_>2&&""===D[_-1].trim()&&""===D[_-2].trim(),x=D.every(function(e){return/^\s*(?:#[^\r\n]*)?$/.test(e)});if(!y&&/#[^\r\n]*$/.test(D[_-1]))return null;var w=null;(w=x?yf(D):hf(n(g,{parser:"graphql"})))?(w=mf(w,!1),!m&&b&&h.push(""),h.push(w),!y&&E&&h.push("")):m||y||!b||h.push(""),v&&h.push(uf(["${",v,"}"]))}return uf(["`",nf(uf([af,rf(af,h)])),af,"`"])}var C=function(e){return xf(e.getValue(),"HTML")||wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t}])}(e)?"html":function(e){return wf(e,[function(e){return"TemplateLiteral"===e.type},function(e,t){return"Property"===e.type&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t}].concat([function(e,t){return"ObjectExpression"===e.type&&"properties"===t},function(e,t){return"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t},function(e,t){return"Decorator"===e.type&&"expression"===t}]))}(e)?"angular":void 0;if(C)return function(e,t,n,r,a){var i=e.getValue(),s=Cf;Cf=Cf+1>>>0;var o=function(e){return"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(s,"_IN_JS")},u=i.quasis.map(function(e,t,n){return t===n.length-1?e.value.cooked:e.value.cooked+o(t)}).join(""),c=e.map(t,"expressions");if(0===c.length&&0===u.trim().length)return"``";var l=RegExp(o("(\\d+)"),"g"),p=df(hf(n(u,{parser:r})),function(e){if("string"!=typeof e)return e;for(var t=[],n=e.split(l),r=0;rh||(("||"===l||"??"===l)&&"&&"===d||(p===h&&"right"===r?(Ka.strictEqual(n.right,a),!0):p===h&&!xa.shouldFlatten(l,d)||(p1?"(":"",qf($f([",",Uf]),e.map(n,"params")),t.length>1?")":""])},"program","body",0):t.__isVueSlotScope?e.call(function(e){return qf($f([",",Uf]),e.map(n,"params"))},"program","body",0):void 0},Gf=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign({},e,{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[]});default:return e}},Qf=xa.getParentExportDeclaration,Kf=xa.isExportDeclaration,Xf=xa.shouldFlatten,Zf=xa.getNextNonSpaceNonCommentCharacter,em=xa.hasNewline,tm=xa.hasNewlineInRange,nm=xa.getLast,rm=xa.getStringWidth,am=xa.printString,im=xa.printNumber,sm=xa.hasIgnoreComment,om=xa.skipWhitespace,um=xa.hasNodeIgnoreComment,cm=xa.getPenultimate,lm=xa.startsWithNoLookaheadToken,pm=xa.getIndentSize,dm=xa.matchAncestorTypes,hm=xa.getPreferredQuote,fm=Qa.isNextLineEmpty,mm=Qa.isNextLineEmptyAfterIndex,ym=Qa.getNextNonSpaceNonCommentCharacterIndex,gm=mr.keyword.isIdentifierNameES5,Dm=ms.insertPragma,_m=Vf,vm=Jf,bm=Sf,Em=Lf,xm=Ff,wm=Pf,Cm=jf,Mm=Yf,Am=new WeakMap,km=Va.builders,Tm=km.concat,Sm=km.join,Lm=km.line,Fm=km.hardline,Pm=km.softline,Ym=km.literalline,jm=km.group,Bm=km.indent,Om=km.align,Nm=km.conditionalGroup,Im=km.fill,Rm=km.ifBreak,Hm=km.breakParent,zm=km.lineSuffixBoundary,Wm=km.addAlignmentToDoc,$m=km.dedent,qm=Va.utils,Um=qm.willBreak,Jm=qm.isLineNext,Vm=qm.isEmpty,Gm=qm.removeLines,Qm=Va.printer.printDocToString,Km=0;function Xm(e,t){switch(t=t||"es5",e.trailingComma){case"all":if("all"===t)return!0;case"es5":if("es5"===t)return!0;case"none":default:return!1}}function Zm(e,t){return tm(t.originalText,t.locStart(e.decorators[0]),t.locEnd(nm(e.decorators)))||em(t.originalText,t.locEnd(nm(e.decorators)))}function ey(e,t,n){var r=e.getValue();return jm(Tm([Sm(Lm,e.map(n,"decorators")),Zm(r,t)?Fm:Lm]))}function ty(e,t,n,r){var a,i,s=e.getValue(),o=s[r.testNodePropertyName],u=s[r.consequentNodePropertyName],c=s[r.alternateNodePropertyName],l=[],p=!1,d=e.getParentNode(),h=d.type===r.conditionalNodeType,f=0;do{i=a||s,a=e.getParentNode(f),f++}while(a&&a.type===r.conditionalNodeType);var m=a||d,y=i;if(r.shouldCheckJsx&&(Ty(o)||Ty(u)||Ty(c)||function(e){return Boolean(function(e){var t=[];return function e(n){"ConditionalExpression"===n.type?(e(n.test),e(n.consequent),e(n.alternate)):t.push(n)}(e),t}(e).find(Ty))}(y))){p=!0,h=!0;var g=function(e){return Tm([Rm("(",""),Bm(Tm([Pm,e])),Pm,Rm(")","")])},D=function(e){return"NullLiteral"===e.type||"Literal"===e.type&&null===e.value};l.push(" ? ",D(u)?e.call(n,r.consequentNodePropertyName):g(e.call(n,r.consequentNodePropertyName))," : ",c.type===r.conditionalNodeType||D(c)?e.call(n,r.alternateNodePropertyName):g(e.call(n,r.alternateNodePropertyName)))}else{var _=Tm([Lm,"? ",u.type===r.conditionalNodeType?Rm("","("):"",Om(2,e.call(n,r.consequentNodePropertyName)),u.type===r.conditionalNodeType?Rm("",")"):"",Lm,": ",c.type===r.conditionalNodeType?e.call(n,r.alternateNodePropertyName):Om(2,e.call(n,r.alternateNodePropertyName))]);l.push(d.type!==r.conditionalNodeType||d[r.alternateNodePropertyName]===s?_:t.useTabs?$m(Bm(_)):Om(Math.max(0,t.tabWidth-2),_))}var v,b,E=!(p||"MemberExpression"!==d.type&&"OptionalMemberExpression"!==d.type||d.computed);return v=Tm([].concat((b=Tm(r.beforeParts()),d.type===r.conditionalNodeType&&d[r.alternateNodePropertyName]===s?Om(2,b):b),h?Tm(l):Bm(Tm(l)),r.afterParts(E))),r.breakNested?d===m?jm(v):v:jm(v)}function ny(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t}function ry(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}function ay(e,t,n){var r=[],a=e.getNode(),i="ClassBody"===a.type;return e.map(function(e,s){var o=e.getValue();if(o&&"EmptyStatement"!==o.type){var u=n(e),c=t.originalText,l=[];if(t.semi||i||fg(t,e)||!function(e,t){if("ExpressionStatement"!==e.getNode().type)return!1;return e.call(function(e){return function e(t,n){var r=t.getValue();var a=zf(t,n)||"ParenthesizedExpression"===r.type||"TypeCastExpression"===r.type||"ArrowFunctionExpression"===r.type&&!my(t,n)||"ArrayExpression"===r.type||"ArrayPattern"===r.type||"UnaryExpression"===r.type&&r.prefix&&("+"===r.operator||"-"===r.operator)||"TemplateLiteral"===r.type||"TemplateElement"===r.type||Ty(r)||"BindExpression"===r.type&&!r.object||"RegExpLiteral"===r.type||"Literal"===r.type&&r.pattern||"Literal"===r.type&&r.regex;if(a)return!0;if(!xm(r))return!1;return t.call.apply(t,[function(t){return e(t,n)}].concat(Em(t,r)))}(e,t)},"expression")}(e,t)?l.push(u):o.comments&&o.comments.some(function(e){return e.leading})?l.push(n(e,{needsSemi:!0})):l.push(";",u),!t.semi&&i)if(function(e){var t=e.getNode();if("ClassProperty"!==t.type)return!1;var n=t.key&&t.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||t.value||t.typeAnnotation))return!0}(e))l.push(";");else if("ClassProperty"===o.type){(function(e){if(!e)return;if(e.static||e.accessibility)return!1;if(!e.computed){var t=e.key&&e.key.name;if("in"===t||"instanceof"===t)return!0}switch(e.type){case"ClassProperty":case"TSAbstractClassProperty":return e.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":var n=e.value?e.value.async:e.async,r=e.value?e.value.generator:e.generator;return!n&&"get"!==e.kind&&"set"!==e.kind&&!(!e.computed&&!r);default:return!1}})(a.body[s+1])&&l.push(";")}fm(c,o,t)&&!function(e){var t=e.getParentNode();if(!t)return!0;var n=e.getValue(),r=(t.body||t.consequent).filter(function(e){return"EmptyStatement"!==e.type});return r&&r[r.length-1]===n}(e)&&l.push(Fm),r.push(Tm(l))}}),Sm(Fm,r)}function iy(e,t,n){var r=e.getNode(),a=e.getParentNode(),i=r.key;if("consistent"===t.quoteProps&&!Am.has(a)){var s=(a.properties||a.body||a.members).some(function(e){return!e.computed&&e.key&&ug(e.key)&&!sg(e,t)});Am.set(a,s)}if("Identifier"===i.type&&!r.computed&&("json"===t.parser||"consistent"===t.quoteProps&&Am.get(a))){var o=am(JSON.stringify(i.name),t);return e.call(function(e){return _i.printComments(e,function(){return o},t)},"key")}return r.computed||!sg(r,t)||"as-needed"!==t.quoteProps&&("consistent"!==t.quoteProps||Am.get(a))?e.call(n,"key"):e.call(function(e){return _i.printComments(e,function(){return i.value},t)},"key")}function sy(e,t,n){var r=e.getNode(),a=t.semi?";":"",i=r.kind,s=[];"ObjectMethod"!==r.type&&"ClassMethod"!==r.type&&"ClassPrivateMethod"!==r.type||(r.value=r),r.value.async&&s.push("async "),i&&"init"!==i&&"method"!==i&&"constructor"!==i?(Ka.ok("get"===i||"set"===i),s.push(i," ")):r.value.generator&&s.push("*");var o=iy(e,t,n);return r.computed&&(o=Tm(["[",o,"]"])),s.push(o,Tm(e.call(function(e){return[hy(e,t,n),jm(Tm([fy(e,n,t),Dy(e,n,t)]))]},"value"))),r.value.body&&0!==r.value.body.length?s.push(" ",e.call(n,"value","body")):s.push(a),Tm(s)}function oy(e){return"ObjectExpression"===e.type&&(e.properties.length>0||e.comments)||"ArrayExpression"===e.type&&(e.elements.length>0||e.comments)||"TSTypeAssertion"===e.type||"TSAsExpression"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type)&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||"CallExpression"===e.body.type||"OptionalCallExpression"===e.body.type||"ConditionalExpression"===e.body.type||Ty(e.body))}function uy(e){return e&&-1!==["AnyTypeAnnotation","NullLiteralTypeAnnotation","GenericTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation","BooleanTypeAnnotation","BooleanLiteralTypeAnnotation","StringTypeAnnotation"].indexOf(e.type)&&!("GenericTypeAnnotation"===e.type&&e.typeParameters)}var cy=new Set(["pipe","pipeP","pipeK","compose","composeFlipped","composeP","composeK","flow","flowRight","connect","createSelector"]),ly=new Set(["connect"]);function py(e,t,n){var r=e.getValue(),a=r.arguments;if(0===a.length)return Tm(["(",_i.printDanglingComments(e,t,!0),")"]);if(2===a.length&&"ArrowFunctionExpression"===a[0].type&&0===a[0].params.length&&"BlockStatement"===a[0].body.type&&"ArrayExpression"===a[1].type&&!a.find(function(e){return e.leadingComments||e.trailingComments}))return Tm(["(",e.call(n,"arguments",0),", ",e.call(n,"arguments",1),")"]);var i=!1,s=!1,o=a.length-1,u=e.map(function(e,r){var a=e.getNode(),u=[n(e)];return r===o||(fm(t.originalText,a,t)?(0===r&&(s=!0),i=!0,u.push(",",Fm,Fm)):u.push(",",Lm)),Tm(u)},"arguments"),c=r.callee&&"Import"===r.callee.type||!Xm(t,"all")?"":",";function l(){return jm(Tm(["(",Bm(Tm([Lm,Tm(u)])),c,Lm,")"]),{shouldBreak:!0})}if(function e(t){switch(t.type){case"OptionalMemberExpression":case"MemberExpression":return e(t.property)&&!ly.has(t.property.name);case"Identifier":return cy.has(t.name);case"StringLiteral":case"Literal":return cy.has(t.value)}}(r.callee)&&a.length>1)return l();var p=function(e){if(2!==e.length)return!1;var t=e[0],n=e[1];return!(t.comments&&t.comments.length||"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"BlockStatement"!==t.body.type)||"FunctionExpression"===n.type||"ArrowFunctionExpression"===n.type||"ConditionalExpression"===n.type||oy(n))}(a),d=function(e){var t=nm(e),n=cm(e);return!Wy(t)&&!$y(t)&&oy(t)&&(!n||n.type!==t.type)}(a);if(p||d){var h,f=(p?u.slice(1).some(Um):u.slice(0,-1).some(Um))||i,m=0;e.each(function(e){p&&0===m&&(h=[Tm([e.call(function(e){return n(e,{expandFirstArg:!0})}),u.length>1?",":"",s?Fm:Lm,s?Fm:""])].concat(u.slice(1))),d&&m===a.length-1&&(h=u.slice(0,-1).concat(e.call(function(e){return n(e,{expandLastArg:!0})}))),m++},"arguments");var y=u.some(Um);return Tm([y?Hm:"",Nm([Tm([Rm(Bm(Tm(["(",Pm,Tm(h)])),Tm(["(",Tm(h)])),y?Tm([Rm(c),Pm]):"",")"]),Tm(p?["(",jm(h[0],{shouldBreak:!0}),Tm(h.slice(1)),")"]:["(",Tm(u.slice(0,-1)),jm(nm(h),{shouldBreak:!0}),")"]),l()],{shouldBreak:f})])}return jm(Tm(["(",Bm(Tm([Pm,Tm(u)])),Rm(c),Pm,")"]),{shouldBreak:u.some(Um)||i})}function dy(e,t,n){var r=e.getValue();if(!r.typeAnnotation)return"";var a=e.getParentNode(),i=r.definite||a&&"VariableDeclarator"===a.type&&a.definite,s="DeclareFunction"===a.type&&a.id===r;return Uy(t.originalText,r.typeAnnotation,t)?Tm([" /*: ",e.call(n,"typeAnnotation")," */"]):Tm([s?"":i?"!: ":": ",e.call(n,"typeAnnotation")])}function hy(e,t,n){var r=e.getValue();return r.typeArguments?e.call(n,"typeArguments"):r.typeParameters?e.call(n,"typeParameters"):""}function fy(e,t,n,r,a){var i=e.getValue(),s=e.getParentNode(),o=i.parameters?"parameters":"params",u=pg(s),c=Zy(i),l=r&&!(i[o]&&i[o].some(function(e){return e.comments})),p=a?hy(e,0,t):"",d=[];if(i[o]){var h=i[o].length-1;d=e.map(function(e,r){var a=[],s=e.getValue();return a.push(t(e)),r===h?i.rest&&a.push(",",Lm):u||c||l?a.push(", "):fm(n.originalText,s,n)?a.push(",",Fm,Fm):a.push(",",Lm),Tm(a)},o)}if(i.rest&&d.push(Tm(["...",e.call(t,"rest")])),0===d.length)return Tm([p,"(",_i.printDanglingComments(e,n,!0,function(e){return")"===Zf(n.originalText,e,n.locEnd)}),")"]);var f=nm(i[o]);if(l)return jm(Tm([Gm(p),"(",Tm(d.map(Gm)),")"]));if(c)return Tm([p,"(",Tm(d),")"]);if(u)return Tm([p,"(",Tm(d),")"]);if((Jy(s,n)||function(e,t){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||Qy(e,e.typeAnnotation,t))}(s,n)||"TypeAlias"===s.type||"UnionTypeAnnotation"===s.type||"TSUnionType"===s.type||"IntersectionTypeAnnotation"===s.type||"FunctionTypeAnnotation"===s.type&&s.returnType===i)&&1===i[o].length&&null===i[o][0].name&&i[o][0].typeAnnotation&&null===i.typeParameters&&uy(i[o][0].typeAnnotation)&&!i.rest)return"always"===n.arrowParens?Tm(["(",Tm(d),")"]):Tm(d);var m=!(f&&"RestElement"===f.type||i.rest);return Tm([p,"(",Bm(Tm([Pm,Tm(d)])),Rm(m&&Xm(n,"all")?",":""),Pm,")"])}function my(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function(e){return!(1!==e.params.length||e.rest||e.typeParameters||rg(e)||"Identifier"!==e.params[0].type||e.params[0].typeAnnotation||e.params[0].comments||e.params[0].optional||e.predicate||e.returnType)}(e.getValue()))}function yy(e,t,n){var r=e.getValue(),a=[];return r.async&&a.push("async "),a.push("function"),r.generator&&a.push("*"),r.id&&a.push(" ",e.call(t,"id")),a.push(hy(e,0,t),jm(Tm([fy(e,t,n),Dy(e,t,n)])),r.body?" ":"",e.call(t,"body")),Tm(a)}function gy(e,t,n){var r=e.getValue(),a=[];if(r.async&&a.push("async "),r.generator&&a.push("*"),r.method||"get"===r.kind||"set"===r.kind)return sy(e,t,n);var i=iy(e,t,n);return r.computed?a.push("[",i,"]"):a.push(i),a.push(hy(e,0,n),jm(Tm([fy(e,n,t),Dy(e,n,t)]))," ",e.call(n,"body")),Tm(a)}function Dy(e,t,n){var r=e.getValue(),a=e.call(t,"returnType");if(r.returnType&&Uy(n.originalText,r.returnType,n))return Tm([" /*: ",a," */"]);var i=[a];return r.returnType&&r.returnType.typeAnnotation&&i.unshift(": "),r.predicate&&i.push(r.returnType?" ":": ",e.call(t,"predicate")),Tm(i)}function _y(e,t,n){var r=e.getValue(),a=t.semi?";":"",i=["export "],s=r.default||"ExportDefaultDeclaration"===r.type;if(s&&i.push("default "),i.push(_i.printDanglingComments(e,t,!0)),ag(r)&&i.push(Fm),r.declaration)i.push(e.call(n,"declaration")),s&&"ClassDeclaration"!==r.declaration.type&&"FunctionDeclaration"!==r.declaration.type&&"TSInterfaceDeclaration"!==r.declaration.type&&"DeclareClass"!==r.declaration.type&&"DeclareFunction"!==r.declaration.type&&"TSDeclareFunction"!==r.declaration.type&&i.push(a);else{if(r.specifiers&&r.specifiers.length>0){var o=[],u=[],c=[];e.each(function(t){var r=e.getValue().type;"ExportSpecifier"===r?o.push(n(t)):"ExportDefaultSpecifier"===r?u.push(n(t)):"ExportNamespaceSpecifier"===r&&c.push(Tm(["* as ",n(t)]))},"specifiers");var l=0!==c.length&&0!==o.length,p=0!==u.length&&(0!==c.length||0!==o.length);i.push("type"===r.exportKind?"type ":"",Tm(u),Tm([p?", ":""]),Tm(c),Tm([l?", ":""]),0!==o.length?jm(Tm(["{",Bm(Tm([t.bracketSpacing?Lm:Pm,Sm(Tm([",",Lm]),o)])),Rm(Xm(t)?",":""),t.bracketSpacing?Lm:Pm,"}"])):"")}else i.push("{}");r.source&&i.push(" from ",e.call(n,"source")),i.push(a)}return Tm(i)}function vy(e,t){var n=Qf(e);return n?Ka.strictEqual(n.type,"DeclareExportDeclaration"):t.unshift("declare "),Tm(t)}function by(e){if(!e.variance)return null;var t=e.variance.kind||e.variance;switch(t){case"plus":return"+";case"minus":return"-";default:return t}}function Ey(e,t,n){var r=e.getValue();return r.modifiers&&r.modifiers.length?Tm([Sm(" ",e.map(n,"modifiers"))," "]):""}function xy(e,t,n,r){var a=e.getValue();if(!a[r])return"";if(!Array.isArray(a[r]))return e.call(n,r);var i=e.getNode(2);return null!=i&&pg(i)||0===a[r].length||1===a[r].length&&(Xy(a[r][0])||"GenericTypeAnnotation"===a[r][0].type&&Xy(a[r][0].id)||"TSTypeReference"===a[r][0].type&&Xy(a[r][0].typeName)||"NullableTypeAnnotation"===a[r][0].type)?Tm(["<",Sm(", ",e.map(n,r)),">"]):jm(Tm(["<",Bm(Tm([Pm,Sm(Tm([",",Lm]),e.map(n,r))])),Rm("typescript"!==t.parser&&Xm(t,"all")?",":""),Pm,">"]))}function wy(e,t,n){var r=e.getValue(),a=[];r.abstract&&a.push("abstract "),a.push("class"),r.id&&a.push(" ",e.call(n,"id")),a.push(e.call(n,"typeParameters"));var i=[];if(r.superClass){var s=Tm(["extends ",e.call(n,"superClass"),e.call(n,"superTypeParameters")]);r.implements&&0!==r.implements.length||r.superClass.comments&&0!==r.superClass.comments.length?i.push(jm(Tm([Lm,e.call(function(e){return _i.printComments(e,function(){return s},t)},"superClass")]))):a.push(Tm([" ",e.call(function(e){return _i.printComments(e,function(){return s},t)},"superClass")]))}else r.extends&&r.extends.length>0&&a.push(" extends ",Sm(", ",e.map(n,"extends")));return r.mixins&&r.mixins.length>0&&i.push(Lm,"mixins ",jm(Bm(Sm(Tm([",",Lm]),e.map(n,"mixins"))))),r.implements&&r.implements.length>0&&i.push(Lm,"implements",jm(Bm(Tm([Lm,Sm(Tm([",",Lm]),e.map(n,"implements"))])))),i.length>0&&a.push(jm(Bm(Tm(i)))),r.body&&r.body.comments&&qy(t.originalText,r.body,t)?a.push(Fm):a.push(" "),a.push(e.call(n,"body")),a}function Cy(e){var t=e.getValue();return t.optional?"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?":""}function My(e,t,n){var r=e.call(n,"property"),a=e.getValue(),i=Cy(e);return a.computed?!a.property||og(a.property)?Tm([i,"[",r,"]"]):jm(Tm([i,"[",Bm(Tm([Pm,r])),Pm,"]"])):Tm([i,".",r])}function Ay(e,t,n){return Tm(["::",e.call(n,"callee")])}function ky(e){return"CallExpression"===e.type||"OptionalCallExpression"===e.type}function Ty(e){return"JSXElement"===e.type||"JSXFragment"===e.type}var Sy=new RegExp("[^ \n\r\t]"),Ly=new RegExp("([ \n\r\t]+)");function Fy(e){return ig(e)&&(Sy.test(mg(e))||!/\n/.test(mg(e)))}function Py(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?Pm:Fm:Pm}function Yy(e,t,n,r){return e?Fm:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?Fm:Pm:Fm}function jy(e){return"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type}function By(e){return"MemberExpression"===e.type||"OptionalMemberExpression"===e.type||"BindExpression"===e.type&&e.object}function Oy(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&0!==e.right.properties.length||("ArrayExpression"===e.right.type&&0!==e.right.elements.length||!!Ty(e.right)))}function Ny(e,t,n,r){return qy(r.originalText,t,r)?Bm(Tm([Fm,n])):jy(t)&&!Oy(t)||"ConditionalExpression"===t.type&&jy(t.test)&&!Oy(t.test)||"StringLiteralTypeAnnotation"===t.type||"ClassExpression"===t.type&&t.decorators&&t.decorators.length||("Identifier"===e.type||ug(e)||"MemberExpression"===e.type)&&(ug(t)||function e(t){if("MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type)return!1;if("Identifier"===t.object.type)return!0;return e(t.object)}(t))&&"json"!==r.parser&&"json5"!==r.parser||"SequenceExpression"===t.type?jm(Bm(Tm([Lm,n]))):Tm([" ",n])}function Iy(e,t,n,r,a,i){if(!r)return t;var s=Ny(e,r,a,i);return jm(Tm([t,n,s]))}function Ry(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?Tm([" ",t]):Bm(Tm([Lm,t]))}function Hy(e,t,n){var r=mg(e),a=n||"DirectiveLiteral"===e.type;return am(r,t,a)}function zy(e){var t=e.flags.split("").sort().join("");return"/".concat(e.pattern,"/").concat(t)}function Wy(e){return e.comments&&e.comments.some(function(e){return e.leading})}function $y(e){return e.comments&&e.comments.some(function(e){return e.trailing})}function qy(e,t,n){return Ty(t)?um(t):t.comments&&t.comments.some(function(t){return t.leading&&em(e,n.locEnd(t))})}function Uy(e,t,n){var r=n.locStart(t),a=om(e,n.locEnd(t));return"/*"===e.substr(r,2)&&"*/"===e.substr(a,2)}function Jy(e,t){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Vy(e,t))}function Vy(e,t){return Gy(e)||Qy(e,e.value,t)}function Gy(e){return"get"===e.kind||"set"===e.kind}function Qy(e,t,n){return n.locStart(e)===n.locStart(t)}function Ky(e,t){return("flow"===t.parser||"typescript"===t.parser)&&(t.originalText.slice(0,t.locStart(e)).match(/declare[ \t]*$/)||t.originalText.slice(e.range[0],e.range[1]).startsWith("declare "))}function Xy(e){if(uy(e)||cg(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){var t=e.types.filter(function(e){return"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type}).length,n=e.types.filter(function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type}).length;if(e.types.length-1===t&&n>0)return!0}return!1}function Zy(e){return e&&e.params&&1===e.params.length&&!e.params[0].comments&&("ObjectPattern"===e.params[0].type||"ArrayPattern"===e.params[0].type||"Identifier"===e.params[0].type&&e.params[0].typeAnnotation&&("TypeAnnotation"===e.params[0].typeAnnotation.type||"TSTypeAnnotation"===e.params[0].typeAnnotation.type)&&cg(e.params[0].typeAnnotation.typeAnnotation)||"FunctionTypeParam"===e.params[0].type&&cg(e.params[0].typeAnnotation)||"AssignmentPattern"===e.params[0].type&&("ObjectPattern"===e.params[0].left.type||"ArrayPattern"===e.params[0].left.type)&&("Identifier"===e.params[0].right.type||"ObjectExpression"===e.params[0].right.type&&0===e.params[0].right.properties.length||"ArrayExpression"===e.params[0].right.type&&0===e.params[0].right.elements.length))&&!e.rest}function eg(e){return e.quasis.some(function(e){return e.value.raw.includes("\n")})}function tg(e,t,n){return("TemplateLiteral"===e.type&&eg(e)||"TaggedTemplateExpression"===e.type&&eg(e.quasi))&&!em(t,n.locStart(e),{backwards:!0})}function ng(e,t,n,r){var a=[],i=[];return e.each(function(e){a.push(Tm(i)),a.push(jm(r(e))),i=[",",Lm],e.getValue()&&fm(t.originalText,e.getValue(),t)&&i.push(Pm)},n),Tm(a)}function rg(e){return e.comments&&e.comments.some(function(e){return!e.leading&&!e.trailing})}function ag(e){if(!e.comments)return!1;var t=nm(e.comments.filter(function(e){return!e.leading&&!e.trailing}));return t&&!Xh.isBlockComment(t)}function ig(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type}function sg(e,t){return ug(e.key)&&gm(e.key.value)&&"json"!==t.parser&&!("typescript"===t.parser&&"ClassProperty"===e.type)}function og(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function ug(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function cg(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type}var lg=/^(skip|[fx]?(it|describe|test))$/;function pg(e,t){if("CallExpression"!==e.type)return!1;if(1===e.arguments.length){if(dg(e)&&t&&pg(t))return hg(e.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(before|after)(Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(e))return dg(e.arguments[0])}else if((2===e.arguments.length||3===e.arguments.length)&&("Identifier"===e.callee.type&&lg.test(e.callee.name)||("MemberExpression"===(n=e).callee.type||"OptionalMemberExpression"===n.callee.type)&&"Identifier"===n.callee.object.type&&"Identifier"===n.callee.property.type&&lg.test(n.callee.object.name)&&("only"===n.callee.property.name||"skip"===n.callee.property.name))&&(function(e){return"TemplateLiteral"===e.type}(e.arguments[0])||ug(e.arguments[0])))return!(e.arguments[2]&&!og(e.arguments[2]))&&((2===e.arguments.length?hg(e.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(e.arguments[1])&&e.arguments[1].params.length<=1)||dg(e.arguments[1]));var n;return!1}function dg(e){return!("CallExpression"!==e.type&&"OptionalCallExpression"!==e.type||"Identifier"!==e.callee.type||"async"!==e.callee.name&&"inject"!==e.callee.name&&"fakeAsync"!==e.callee.name)}function hg(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function fg(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;var n=t.getNode();if(!n.expression||!Ty(n.expression))return!1;var r=t.getParentNode();return"Program"===r.type&&1==r.body.length}function mg(e){return e.extra?e.extra.raw:e.raw}function yg(e){return e}var gg={preprocess:Gf,print:function(e,t,n,r){var a=e.getValue(),i=!1,s=function(e,t,n,r){var a=e.getValue(),i=t.semi?";":"";if(!a)return"";if("string"==typeof a)return a;var s=_m(e,t,n);if(s)return s;var o,u=[];switch(a.type){case"JsExpressionRoot":return e.call(n,"node");case"JsonRoot":return Tm([e.call(n,"node"),Fm]);case"File":return a.program&&a.program.interpreter&&u.push(e.call(function(e){return e.call(n,"interpreter")},"program")),u.push(e.call(n,"program")),Tm(u);case"Program":return a.directives&&e.each(function(e){u.push(n(e),i,Fm),fm(t.originalText,e.getValue(),t)&&u.push(Fm)},"directives"),u.push(e.call(function(e){return ay(e,t,n)},"body")),u.push(_i.printDanglingComments(e,t,!0)),(a.body.length||a.comments)&&u.push(Fm),Tm(u);case"EmptyStatement":return"";case"ExpressionStatement":if(a.directive)return Tm([Hy(a.expression,t,!0),i]);if("__vue_event_binding"===t.parser){var c=e.getParentNode();if("Program"===c.type&&1===c.body.length&&c.body[0]===a)return Tm([e.call(n,"expression"),vm(a.expression)?";":""])}return Tm([e.call(n,"expression"),fg(t,e)?"":i]);case"ParenthesizedExpression":return Tm(["(",e.call(n,"expression"),")"]);case"AssignmentExpression":return Iy(a.left,e.call(n,"left"),Tm([" ",a.operator]),a.right,e.call(n,"right"),t);case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":var l=e.getParentNode(),p=e.getParentNode(1),d=a!==l.body&&("IfStatement"===l.type||"WhileStatement"===l.type||"DoWhileStatement"===l.type),h=function e(t,n,r,a,i){var s=[],o=t.getValue();if(jy(o)){Xf(o.operator,o.left.operator)?s=s.concat(t.call(function(t){return e(t,n,r,!0,i)},"left")):s.push(t.call(n,"left"));var u=Oy(o),c=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===r.parser)&&!qy(r.originalText,o.right,r),l="NGPipeExpression"===o.type?"|":o.operator,p="NGPipeExpression"===o.type&&0!==o.arguments.length?jm(Bm(Tm([Pm,": ",Sm(Tm([Pm,":",Rm(" ")]),t.map(n,"arguments").map(function(e){return Om(2,jm(e))}))]))):"",d=Tm(u?[l," ",t.call(n,"right"),p]:[c?Pm:"",l,c?" ":Lm,t.call(n,"right"),p]),h=t.getParentNode(),f=!(i&&"LogicalExpression"===o.type)&&h.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;s.push(" ",f?jm(d):d),a&&o.comments&&(s=_i.printComments(t,function(){return Tm(s)},r))}else s.push(t.call(n));return s}(e,n,t,!1,d);if(d)return Tm(h);if("UnaryExpression"===l.type||("MemberExpression"===l.type||"OptionalMemberExpression"===l.type)&&!l.computed)return jm(Tm([Bm(Tm([Pm,Tm(h)])),Pm]));var f="ReturnStatement"===l.type||"JSXExpressionContainer"===l.type&&"JSXAttribute"===p.type||"NGPipeExpression"!==a.type&&("NGRoot"===l.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===l.type&&"NGMicrosyntax"===p.type&&1===p.body.length)||a===l.body&&"ArrowFunctionExpression"===l.type||a!==l.body&&"ForStatement"===l.type||"ConditionalExpression"===l.type&&"ReturnStatement"!==p.type&&"CallExpression"!==p.type,m="AssignmentExpression"===l.type||"VariableDeclarator"===l.type||"ClassProperty"===l.type||"TSAbstractClassProperty"===l.type||"ClassPrivateProperty"===l.type||"ObjectProperty"===l.type||"Property"===l.type,y=jy(a.left)&&Xf(a.operator,a.left.operator);if(f||Oy(a)&&!y||!Oy(a)&&m)return jm(Tm(h));if(0===h.length)return"";var g=Ty(a.right),D=Tm(g?h.slice(1,-1):h.slice(1)),v=Symbol("logicalChain-"+ ++Km),b=jm(Tm([h.length>0?h[0]:"",Bm(D)]),{id:v});if(!g)return b;var E=nm(h);return jm(Tm([b,Rm(Bm(E),E,{groupId:v})]));case"AssignmentPattern":return Tm([e.call(n,"left")," = ",e.call(n,"right")]);case"TSTypeAssertion":var x=!("ArrayExpression"===a.expression.type||"ObjectExpression"===a.expression.type),w=jm(Tm(["<",Bm(Tm([Pm,e.call(n,"typeAnnotation")])),Pm,">"])),C=Tm([Rm("("),Bm(Tm([Pm,e.call(n,"expression")])),Pm,Rm(")")]);return x?Nm([Tm([w,e.call(n,"expression")]),Tm([w,jm(C,{shouldBreak:!0})]),Tm([w,e.call(n,"expression")])]):jm(Tm([w,e.call(n,"expression")]));case"OptionalMemberExpression":case"MemberExpression":var M,A=e.getParentNode(),k=0;do{M=e.getParentNode(k),k++}while(M&&("MemberExpression"===M.type||"OptionalMemberExpression"===M.type||"TSNonNullExpression"===M.type));var T=M&&("NewExpression"===M.type||"BindExpression"===M.type||"VariableDeclarator"===M.type&&"Identifier"!==M.id.type||"AssignmentExpression"===M.type&&"Identifier"!==M.left.type)||a.computed||"Identifier"===a.object.type&&"Identifier"===a.property.type&&"MemberExpression"!==A.type&&"OptionalMemberExpression"!==A.type;return Tm([e.call(n,"object"),T?My(e,0,n):jm(Bm(Tm([Pm,My(e,0,n)])))]);case"MetaProperty":return Tm([e.call(n,"meta"),".",e.call(n,"property")]);case"BindExpression":return a.object&&u.push(e.call(n,"object")),u.push(jm(Bm(Tm([Pm,Ay(e,0,n)])))),Tm(u);case"Identifier":return Tm([a.name,Cy(e),dy(e,t,n)]);case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return Tm(["...",e.call(n,"argument"),dy(e,t,n)]);case"FunctionDeclaration":case"FunctionExpression":return u.push(yy(e,n,t)),a.body||u.push(i),Tm(u);case"ArrowFunctionExpression":a.async&&u.push("async "),my(e,t)?u.push(e.call(n,"params",0)):u.push(jm(Tm([fy(e,n,t,r&&(r.expandLastArg||r.expandFirstArg),!0),Dy(e,n,t)])));var S=_i.printDanglingComments(e,t,!0,function(e){var n=ym(t.originalText,e,t);return"=>"===t.originalText.substr(n,2)});S&&u.push(" ",S),u.push(" =>");var L=e.call(function(e){return n(e,r)},"body");if(!qy(t.originalText,a.body,t)&&("ArrayExpression"===a.body.type||"ObjectExpression"===a.body.type||"BlockStatement"===a.body.type||Ty(a.body)||tg(a.body,t.originalText,t)||"ArrowFunctionExpression"===a.body.type||"DoExpression"===a.body.type))return jm(Tm([Tm(u)," ",L]));if("SequenceExpression"===a.body.type)return jm(Tm([Tm(u),jm(Tm([" (",Bm(Tm([Pm,L])),Pm,")"]))]));var F=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!(a.comments&&a.comments.length),Y=r&&r.expandLastArg&&Xm(t,"all"),j="ConditionalExpression"===a.body.type&&!lm(a.body,!1);return jm(Tm([Tm(u),jm(Tm([Bm(Tm([Lm,j?Rm("","("):"",L,j?Rm("",")"):""])),F?Tm([Rm(Y?",":""),Pm]):""]))]));case"MethodDefinition":case"TSAbstractMethodDefinition":return a.decorators&&0!==a.decorators.length&&u.push(ey(e,t,n)),a.accessibility&&u.push(a.accessibility+" "),a.static&&u.push("static "),"TSAbstractMethodDefinition"===a.type&&u.push("abstract "),u.push(sy(e,t,n)),Tm(u);case"YieldExpression":return u.push("yield"),a.delegate&&u.push("*"),a.argument&&u.push(" ",e.call(n,"argument")),Tm(u);case"AwaitExpression":return Tm(["await ",e.call(n,"argument")]);case"ImportSpecifier":return a.importKind&&u.push(e.call(n,"importKind")," "),u.push(e.call(n,"imported")),a.local&&a.local.name!==a.imported.name&&u.push(" as ",e.call(n,"local")),Tm(u);case"ExportSpecifier":return u.push(e.call(n,"local")),a.exported&&a.exported.name!==a.local.name&&u.push(" as ",e.call(n,"exported")),Tm(u);case"ImportNamespaceSpecifier":return u.push("* as "),u.push(e.call(n,"local")),Tm(u);case"ImportDefaultSpecifier":return e.call(n,"local");case"TSExportAssignment":return Tm(["export = ",e.call(n,"expression"),i]);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return _y(e,t,n);case"ExportAllDeclaration":return u.push("export "),"type"===a.exportKind&&u.push("type "),u.push("* from ",e.call(n,"source"),i),Tm(u);case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return e.call(n,"exported");case"ImportDeclaration":u.push("import "),a.importKind&&"value"!==a.importKind&&u.push(a.importKind+" ");var B=[],O=[];return a.specifiers&&a.specifiers.length>0?(e.each(function(e){var t=e.getValue();"ImportDefaultSpecifier"===t.type||"ImportNamespaceSpecifier"===t.type?B.push(n(e)):O.push(n(e))},"specifiers"),B.length>0&&u.push(Sm(", ",B)),B.length>0&&O.length>0&&u.push(", "),1===O.length&&0===B.length&&a.specifiers&&!a.specifiers.some(function(e){return e.comments})?u.push(Tm(["{",t.bracketSpacing?" ":"",Tm(O),t.bracketSpacing?" ":"","}"])):O.length>=1&&u.push(jm(Tm(["{",Bm(Tm([t.bracketSpacing?Lm:Pm,Sm(Tm([",",Lm]),O)])),Rm(Xm(t)?",":""),t.bracketSpacing?Lm:Pm,"}"]))),u.push(" from ")):(a.importKind&&"type"===a.importKind||/{\s*}/.test(t.originalText.slice(t.locStart(a),t.locStart(a.source))))&&u.push("{} from "),u.push(e.call(n,"source"),i),Tm(u);case"Import":return"import";case"TSModuleBlock":case"BlockStatement":var N=e.call(function(e){return ay(e,t,n)},"body"),I=a.body.find(function(e){return"EmptyStatement"!==e.type}),R=a.directives&&a.directives.length>0,H=e.getParentNode(),z=e.getParentNode(1);return I||R||rg(a)||"ArrowFunctionExpression"!==H.type&&"FunctionExpression"!==H.type&&"FunctionDeclaration"!==H.type&&"ObjectMethod"!==H.type&&"ClassMethod"!==H.type&&"ClassPrivateMethod"!==H.type&&"ForStatement"!==H.type&&"WhileStatement"!==H.type&&"DoWhileStatement"!==H.type&&"DoExpression"!==H.type&&("CatchClause"!==H.type||z.finalizer)&&"TSModuleDeclaration"!==H.type?(u.push("{"),R&&e.each(function(e){u.push(Bm(Tm([Fm,n(e),i]))),fm(t.originalText,e.getValue(),t)&&u.push(Fm)},"directives"),I&&u.push(Bm(Tm([Fm,N]))),u.push(_i.printDanglingComments(e,t)),u.push(Fm,"}"),Tm(u)):"{}";case"ReturnStatement":return u.push("return"),a.argument&&(function(e,t){if(qy(e.originalText,t,e))return!0;if(xm(t))for(var n,r=t;n=bm(r);)if(r=n,qy(e.originalText,r,e))return!0;return!1}(t,a.argument)?u.push(Tm([" (",Bm(Tm([Fm,e.call(n,"argument")])),Fm,")"])):"LogicalExpression"===a.argument.type||"BinaryExpression"===a.argument.type||"SequenceExpression"===a.argument.type?u.push(jm(Tm([Rm(" ("," "),Bm(Tm([Pm,e.call(n,"argument")])),Pm,Rm(")")]))):u.push(" ",e.call(n,"argument"))),rg(a)&&u.push(" ",_i.printDanglingComments(e,t,!0)),u.push(i),Tm(u);case"NewExpression":case"OptionalCallExpression":case"CallExpression":var W="NewExpression"===a.type,$=Cy(e);if(!W&&"Identifier"===a.callee.type&&("require"===a.callee.name||"define"===a.callee.name)||1===a.arguments.length&&tg(a.arguments[0],t.originalText,t)||!W&&pg(a,e.getParentNode()))return Tm([W?"new ":"",e.call(n,"callee"),$,hy(e,0,n),Tm(["(",Sm(", ",e.map(n,"arguments")),")"])]);var q="Identifier"===a.callee.type&&Cm(a.callee.trailingComments);return q&&(a.callee.trailingComments[0].printed=!0),!W&&By(a.callee)?function(e,t,n){var r=[];function a(e){var n=t.originalText,r=ym(n,e,t),a=n.charAt(r);return")"==a?mm(n,r+1,t):fm(n,e,t)}var i=e.getValue();r.unshift({node:i,printed:Tm([Cy(e),hy(e,0,n),py(e,t,n)])}),e.call(function(e){return function e(i){var s=i.getValue();"CallExpression"!==s.type&&"OptionalCallExpression"!==s.type||!By(s.callee)&&"CallExpression"!==s.callee.type&&"OptionalCallExpression"!==s.callee.type?By(s)?(r.unshift({node:s,needsParens:zf(i,t),printed:_i.printComments(i,function(){return"OptionalMemberExpression"===s.type||"MemberExpression"===s.type?My(i,0,n):Ay(i,0,n)},t)}),i.call(function(t){return e(t)},"object")):"TSNonNullExpression"===s.type?(r.unshift({node:s,printed:_i.printComments(i,function(){return"!"},t)}),i.call(function(t){return e(t)},"expression")):r.unshift({node:s,printed:i.call(n)}):(r.unshift({node:s,printed:Tm([_i.printComments(i,function(){return Tm([Cy(i),hy(i,0,n),py(i,t,n)])},t),a(s)?Fm:""])}),i.call(function(t){return e(t)},"callee"))}(e)},"callee");for(var s=[],o=[r[0]],u=1;u0&&s.push(o);var p=s.length>=2&&!s[1][0].node.comments&&function(n){var r=e.getParentNode(),a=r&&"ExpressionStatement"===r.type,i=n[1].length&&n[1][0].node.computed;if(1===n[0].length){var s=n[0][0].node;return"ThisExpression"===s.type||"Identifier"===s.type&&(l(s.name)||a&&function(e){return e.length<=t.tabWidth}(s.name)||i)}var o=nm(n[0]).node;return("MemberExpression"===o.type||"OptionalMemberExpression"===o.type)&&"Identifier"===o.property.type&&(l(o.property.name)||i)}(s);function d(e){var t=e.map(function(e){return e.printed});return e.length>0&&e[e.length-1].needsParens?Tm(["("].concat(P(t),[")"])):Tm(t)}var h=s.map(d),f=Tm(h),m=p?3:2,y=s.slice(0,m).reduce(function(e,t){return e.concat(t)},[]),g=y.slice(1,-1).some(function(e){return Wy(e.node)})||y.slice(0,-1).some(function(e){return $y(e.node)})||s[m]&&Wy(s[m][0].node);if(s.length<=m&&!g)return jm(f);var D,_=nm(p?s.slice(1,2)[0]:s[0]).node,v="CallExpression"!==_.type&&"OptionalCallExpression"!==_.type&&a(_),b=Tm([d(s[0]),p?Tm(s.slice(1,2).map(d)):"",v?Fm:"",function(e){return 0===e.length?"":Bm(jm(Tm([Fm,Sm(Fm,e.map(d))])))}(s.slice(p?2:1))]),E=r.map(function(e){var t=e.node;return t}).filter(ky);return g||E.length>=3||h.slice(0,-1).some(Um)||(D=nm(h),ky(nm(nm(s)).node)&&Um(D)&&E.slice(0,-1).some(function(e){return e.arguments.some(hg)}))?jm(b):Tm([Um(f)||v?Hm:"",Nm([f,b])])}(e,t,n):Tm([W?"new ":"",e.call(n,"callee"),$,q?"/*:: ".concat(a.callee.trailingComments[0].value.substring(2).trim()," */"):"",hy(e,0,n),py(e,t,n)]);case"TSInterfaceDeclaration":return Ky(a,t)&&u.push("declare "),u.push(a.abstract?"abstract ":"",Ey(e,0,n),"interface ",e.call(n,"id"),a.typeParameters?e.call(n,"typeParameters"):""," "),a.extends&&a.extends.length&&u.push(jm(Bm(Tm([Pm,"extends ",(1===a.extends.length?yg:Bm)(Sm(Tm([",",Lm]),e.map(n,"extends")))," "])))),u.push(e.call(n,"body")),Tm(u);case"ObjectTypeInternalSlot":return Tm([a.static?"static ":"","[[",e.call(n,"id"),"]]",Cy(e),a.method?"":": ",e.call(n,"value")]);case"ObjectExpression":case"ObjectPattern":case"ObjectTypeAnnotation":case"TSInterfaceBody":case"TSTypeLiteral":var U;U="TSTypeLiteral"===a.type?"members":"TSInterfaceBody"===a.type?"body":"properties";var J="ObjectTypeAnnotation"===a.type,V=[];J&&V.push("indexers","callProperties","internalSlots"),V.push(U);var G=V.map(function(e){return a[e][0]}).sort(function(e,n){return t.locStart(e)-t.locStart(n)})[0],Q=e.getParentNode(0),K=J&&Q&&("InterfaceDeclaration"===Q.type||"DeclareInterface"===Q.type||"DeclareClass"===Q.type)&&"body"===e.getName(),X="TSInterfaceBody"===a.type||K||"ObjectPattern"===a.type&&"FunctionDeclaration"!==Q.type&&"FunctionExpression"!==Q.type&&"ArrowFunctionExpression"!==Q.type&&"AssignmentPattern"!==Q.type&&"CatchClause"!==Q.type&&a.properties.some(function(e){return e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type)})||"ObjectPattern"!==a.type&&G&&tm(t.originalText,t.locStart(a),t.locStart(G)),Z=K?";":"TSInterfaceBody"===a.type||"TSTypeLiteral"===a.type?Rm(i,";"):",",ee=a.exact?"{|":"{",te=a.exact?"|}":"}",ne=[];V.forEach(function(r){e.each(function(e){var r=e.getValue();ne.push({node:r,printed:n(e),loc:t.locStart(r)})},r)});var re=[],ae=ne.sort(function(e,t){return e.loc-t.loc}).map(function(e){var n=Tm(re.concat(jm(e.printed)));return re=[Z,Lm],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!um(e.node)||re.shift(),fm(t.originalText,e.node,t)&&re.push(Fm),n});a.inexact&&ae.push(Tm(re.concat(jm("..."))));var ie,se=nm(a[U]),oe=!(se&&("RestProperty"===se.type||"RestElement"===se.type||um(se)||a.inexact));if(0!==ae.length||a.typeAnnotation)ie=Tm([ee,Bm(Tm([t.bracketSpacing?Lm:Pm,Tm(ae)])),Rm(oe&&(","!==Z||Xm(t))?Z:""),Tm([t.bracketSpacing?Lm:Pm,te]),Cy(e),dy(e,t,n)]);else{if(!rg(a))return Tm([ee,te]);ie=jm(Tm([ee,_i.printDanglingComments(e,t),Pm,te,Cy(e)]))}var ue=e.getParentNode(2);return"ObjectPattern"===a.type&&Q&&Zy(Q)&&Q.params[0]===a||Xy(a)&&ue&&Zy(ue)&&ue.params[0].typeAnnotation&&ue.params[0].typeAnnotation.typeAnnotation===a?ie:jm(ie,{shouldBreak:X});case"ObjectProperty":case"Property":return a.method||"get"===a.kind||"set"===a.kind?sy(e,t,n):(a.shorthand?u.push(e.call(n,"value")):(ce=a.computed?Tm(["[",e.call(n,"key"),"]"]):iy(e,t,n),u.push(Iy(a.key,ce,":",a.value,e.call(n,"value"),t))),Tm(u));var ce;case"ClassMethod":case"ClassPrivateMethod":return a.decorators&&0!==a.decorators.length&&u.push(ey(e,t,n)),a.static&&u.push("static "),u=u.concat(gy(e,t,n)),Tm(u);case"ObjectMethod":return gy(e,t,n);case"Decorator":return Tm(["@",e.call(n,"expression"),e.call(n,"callee")]);case"ArrayExpression":case"ArrayPattern":if(0===a.elements.length)rg(a)?u.push(jm(Tm(["[",_i.printDanglingComments(e,t),Pm,"]"]))):u.push("[]");else{var le=nm(a.elements),pe=!(le&&"RestElement"===le.type),de=pe&&null===le;u.push(jm(Tm(["[",Bm(Tm([Pm,ng(e,t,"elements",n)])),de?",":"",Rm(pe&&!de&&Xm(t)?",":""),_i.printDanglingComments(e,t,!0),Pm,"]"])))}return u.push(Cy(e),dy(e,t,n)),Tm(u);case"SequenceExpression":var he=e.getParentNode(0);if("ExpressionStatement"===he.type||"ForStatement"===he.type){var fe=[];return e.each(function(e){0===e.getName()?fe.push(n(e)):fe.push(",",Bm(Tm([Lm,n(e)])))},"expressions"),jm(Tm(fe))}return jm(Tm([Sm(Tm([",",Lm]),e.map(n,"expressions"))]));case"ThisExpression":return"this";case"Super":return"super";case"NullLiteral":return"null";case"RegExpLiteral":return zy(a);case"NumericLiteral":return im(a.extra.raw);case"BigIntLiteral":return Tm([im(a.extra?a.extra.rawValue:a.value),"n"]);case"BooleanLiteral":case"StringLiteral":case"Literal":if(a.regex)return zy(a.regex);if("number"==typeof a.value)return im(a.raw);if("string"!=typeof a.value)return""+a.value;var me=e.getParentNode(1),ye="typescript"===t.parser&&"string"==typeof a.value&&me&&("Program"===me.type||"BlockStatement"===me.type);return Hy(a,t,ye);case"Directive":return e.call(n,"value");case"DirectiveLiteral":return Hy(a,t);case"UnaryExpression":return u.push(a.operator),/[a-z]$/.test(a.operator)&&u.push(" "),u.push(e.call(n,"argument")),Tm(u);case"UpdateExpression":return u.push(e.call(n,"argument"),a.operator),a.prefix&&u.reverse(),Tm(u);case"ConditionalExpression":return ty(e,t,n,{beforeParts:function(){return[e.call(n,"test")]},afterParts:function(e){return[e?Pm:""]},shouldCheckJsx:!0,conditionalNodeType:"ConditionalExpression",consequentNodePropertyName:"consequent",alternateNodePropertyName:"alternate",testNodePropertyName:"test",breakNested:!0});case"VariableDeclaration":var ge,De=e.map(function(e){return n(e)},"declarations"),_e=e.getParentNode(),ve="ForStatement"===_e.type||"ForInStatement"===_e.type||"ForOfStatement"===_e.type||"ForAwaitStatement"===_e.type,be=a.declarations.some(function(e){return e.init});return 1!==De.length||a.declarations[0].comments?De.length>0&&(ge=Bm(De[0])):ge=De[0],u=[Ky(a,t)?"declare ":"",a.kind,ge?Tm([" ",ge]):"",Bm(Tm(De.slice(1).map(function(e){return Tm([",",be&&!ve?Fm:Lm,e])})))],ve&&_e.body!==a||u.push(i),jm(Tm(u));case"TSTypeAliasDeclaration":a.declare&&u.push("declare ");var Ee=Ny(a.id,a.typeAnnotation,a.typeAnnotation&&e.call(n,"typeAnnotation"),t);return u.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",Ee,i),jm(Tm(u));case"VariableDeclarator":return Iy(a.id,e.call(n,"id")," =",a.init,a.init&&e.call(n,"init"),t);case"WithStatement":return jm(Tm(["with (",e.call(n,"object"),")",Ry(a.body,e.call(n,"body"))]));case"IfStatement":var xe=Ry(a.consequent,e.call(n,"consequent")),we=jm(Tm(["if (",jm(Tm([Bm(Tm([Pm,e.call(n,"test")])),Pm])),")",xe]));if(u.push(we),a.alternate){var Ce=$y(a.consequent)&&a.consequent.comments.some(function(e){return e.trailing&&!Xh.isBlockComment(e)})||ag(a),Me="BlockStatement"===a.consequent.type&&!Ce;u.push(Me?" ":Fm),rg(a)&&u.push(_i.printDanglingComments(e,t,!0),Ce?Fm:" "),u.push("else",jm(Ry(a.alternate,e.call(n,"alternate"),"IfStatement"===a.alternate.type)))}return Tm(u);case"ForStatement":var Ae=Ry(a.body,e.call(n,"body")),ke=_i.printDanglingComments(e,t,!0),Te=ke?Tm([ke,Pm]):"";return a.init||a.test||a.update?Tm([Te,jm(Tm(["for (",jm(Tm([Bm(Tm([Pm,e.call(n,"init"),";",Lm,e.call(n,"test"),";",Lm,e.call(n,"update")])),Pm])),")",Ae]))]):Tm([Te,jm(Tm(["for (;;)",Ae]))]);case"WhileStatement":return jm(Tm(["while (",jm(Tm([Bm(Tm([Pm,e.call(n,"test")])),Pm])),")",Ry(a.body,e.call(n,"body"))]));case"ForInStatement":return jm(Tm([a.each?"for each (":"for (",e.call(n,"left")," in ",e.call(n,"right"),")",Ry(a.body,e.call(n,"body"))]));case"ForOfStatement":case"ForAwaitStatement":var Se="ForAwaitStatement"===a.type||a.await;return jm(Tm(["for",Se?" await":""," (",e.call(n,"left")," of ",e.call(n,"right"),")",Ry(a.body,e.call(n,"body"))]));case"DoWhileStatement":var Le=Ry(a.body,e.call(n,"body")),Fe=jm(Tm(["do",Le]));return u=[Fe],"BlockStatement"===a.body.type?u.push(" "):u.push(Fm),u.push("while ("),u.push(jm(Tm([Bm(Tm([Pm,e.call(n,"test")])),Pm])),")",i),Tm(u);case"DoExpression":return Tm(["do ",e.call(n,"body")]);case"BreakStatement":return u.push("break"),a.label&&u.push(" ",e.call(n,"label")),u.push(i),Tm(u);case"ContinueStatement":return u.push("continue"),a.label&&u.push(" ",e.call(n,"label")),u.push(i),Tm(u);case"LabeledStatement":return"EmptyStatement"===a.body.type?Tm([e.call(n,"label"),":;"]):Tm([e.call(n,"label"),": ",e.call(n,"body")]);case"TryStatement":return Tm(["try ",e.call(n,"block"),a.handler?Tm([" ",e.call(n,"handler")]):"",a.finalizer?Tm([" finally ",e.call(n,"finalizer")]):""]);case"CatchClause":if(a.param){var Pe=a.param.comments&&a.param.comments.some(function(e){return!Xh.isBlockComment(e)||e.leading&&em(t.originalText,t.locEnd(e))||e.trailing&&em(t.originalText,t.locStart(e),{backwards:!0})}),Ye=e.call(n,"param");return Tm(["catch ",Tm(Pe?["(",Bm(Tm([Pm,Ye])),Pm,") "]:["(",Ye,") "]),e.call(n,"body")])}return Tm(["catch ",e.call(n,"body")]);case"ThrowStatement":return Tm(["throw ",e.call(n,"argument"),i]);case"SwitchStatement":return Tm([jm(Tm(["switch (",Bm(Tm([Pm,e.call(n,"discriminant")])),Pm,")"]))," {",a.cases.length>0?Bm(Tm([Fm,Sm(Fm,e.map(function(e){var r=e.getValue();return Tm([e.call(n),a.cases.indexOf(r)!==a.cases.length-1&&fm(t.originalText,r,t)?Fm:""])},"cases"))])):"",Fm,"}"]);case"SwitchCase":a.test?u.push("case ",e.call(n,"test"),":"):u.push("default:");var je=a.consequent.filter(function(e){return"EmptyStatement"!==e.type});if(je.length>0){var Be=e.call(function(e){return ay(e,t,n)},"consequent");u.push(1===je.length&&"BlockStatement"===je[0].type?Tm([" ",Be]):Bm(Tm([Fm,Be])))}return Tm(u);case"DebuggerStatement":return Tm(["debugger",i]);case"JSXAttribute":if(u.push(e.call(n,"name")),a.value){var Oe;if(ug(a.value)){var Ne=mg(a.value),Ie=Ne.replace(/'/g,"'").replace(/"/g,'"'),Re=hm(Ie,t.jsxSingleQuote?"'":'"'),He="'"===Re?"'":""";Ie=Ie.slice(1,-1).replace(new RegExp(Re,"g"),He),Oe=Tm([Re,Ie,Re])}else Oe=e.call(n,"value");u.push("=",Oe)}return Tm(u);case"JSXIdentifier":return""+a.name;case"JSXNamespacedName":return Sm(":",[e.call(n,"namespace"),e.call(n,"name")]);case"JSXMemberExpression":return Sm(".",[e.call(n,"object"),e.call(n,"property")]);case"TSQualifiedName":return Sm(".",[e.call(n,"left"),e.call(n,"right")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Tm(["{",e.call(function(e){var r=Tm(["...",n(e)]),a=e.getValue();return a.comments&&a.comments.length?Tm([Bm(Tm([Pm,_i.printComments(e,function(){return r},t)])),Pm]):r},"JSXSpreadAttribute"===a.type?"argument":"expression"),"}"]);case"JSXExpressionContainer":var ze=e.getParentNode(0),We="JSXAttribute"===ze.type&&a.expression.comments&&a.expression.comments.length>0,$e=!We&&("ArrayExpression"===a.expression.type||"ObjectExpression"===a.expression.type||"ArrowFunctionExpression"===a.expression.type||"CallExpression"===a.expression.type||"OptionalCallExpression"===a.expression.type||"FunctionExpression"===a.expression.type||"JSXEmptyExpression"===a.expression.type||"TemplateLiteral"===a.expression.type||"TaggedTemplateExpression"===a.expression.type||"DoExpression"===a.expression.type||Ty(ze)&&("ConditionalExpression"===a.expression.type||jy(a.expression)));return jm(Tm($e?["{",e.call(n,"expression"),zm,"}"]:["{",Bm(Tm([Pm,e.call(n,"expression")])),Pm,zm,"}"]));case"JSXFragment":case"JSXElement":var qe=_i.printComments(e,function(){return function(e,t,n){var r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;var t=e.children[0];return ig(t)&&!Fy(t)}(r))return Tm([e.call(n,"openingElement"),e.call(n,"closingElement")]);var a="JSXElement"===r.type?e.call(n,"openingElement"):e.call(n,"openingFragment"),i="JSXElement"===r.type?e.call(n,"closingElement"):e.call(n,"closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return Tm([a,Tm(e.map(n,"children")),i]);r.children=r.children.map(function(e){return"JSXExpressionContainer"===(t=e).type&&ig(t.expression)&&" "===t.expression.value&&!t.expression.comments?{type:"JSXText",value:" ",raw:" "}:e;var t});for(var s=r.children.filter(Ty).length>0,o=r.children.filter(function(e){return"JSXExpressionContainer"===e.type}).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1,c=Um(a)||s||u||o,l=t.singleQuote?"{' '}":'{" "}',p=Rm(Tm([l,Pm])," "),d=r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name,h=function(e,t,n,r,a){var i=e.getValue(),s=[];return e.map(function(e,t){var o=e.getValue();if(ig(o)){var u=mg(o);if(Fy(o)){var c,l=u.split(Ly);if(""===l[0]){if(s.push(""),l.shift(),/\n/.test(l[0])){var p=i.children[t+1];s.push(Yy(a,l[1],o,p))}else s.push(r);l.shift()}if(""===nm(l)&&(l.pop(),c=l.pop()),0===l.length)return;if(l.forEach(function(e,t){t%2==1?s.push(Lm):s.push(e)}),void 0!==c)if(/\n/.test(c)){var d=i.children[t+1];s.push(Yy(a,nm(s),o,d))}else s.push(r);else{var h=i.children[t+1];s.push(Py(a,nm(s),o,h))}}else/\n/.test(u)?u.match(/\n/g).length>1&&(s.push(""),s.push(Fm)):(s.push(""),s.push(r))}else{var f=n(e);s.push(f);var m=i.children[t+1];if(m&&Fy(m)){var y=mg(m).trim().split(Ly)[0];s.push(Py(a,y,o,m))}else s.push(Fm)}},"children"),s}(e,0,n,p,d),f=r.children.filter(function(e){return Fy(e)}).length>0,m=h.length-2;m>=0;m--){var y=""===h[m]&&""===h[m+1],g=h[m]===Fm&&""===h[m+1]&&h[m+2]===Fm,D=(h[m]===Pm||h[m]===Fm)&&""===h[m+1]&&h[m+2]===p,_=h[m]===p&&""===h[m+1]&&(h[m+2]===Pm||h[m+2]===Fm),v=h[m]===p&&""===h[m+1]&&h[m+2]===p,b=h[m]===Pm&&""===h[m+1]&&h[m+2]===Fm||h[m]===Fm&&""===h[m+1]&&h[m+2]===Pm;g&&f||y||D||v||b?h.splice(m,2):_&&h.splice(m+1,2)}for(;h.length&&(Jm(nm(h))||Vm(nm(h)));)h.pop();for(;h.length&&(Jm(h[0])||Vm(h[0]))&&(Jm(h[1])||Vm(h[1]));)h.shift(),h.shift();var E=[];h.forEach(function(e,t){if(e===p){if(1===t&&""===h[t-1])return 2===h.length?void E.push(l):void E.push(Tm([l,Fm]));if(t===h.length-1)return void E.push(l);if(""===h[t-1]&&h[t-2]===Fm)return void E.push(l)}E.push(e),Um(e)&&(c=!0)});var x=f?Im(E):jm(Tm(E),{shouldBreak:!0}),w=jm(Tm([a,Bm(Tm([Fm,x])),Fm,i]));return c?w:Nm([jm(Tm([a,Tm(h),i])),w])}(e,t,n)},t);return function(e,t){var n=e.getParentNode();if(!n)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[n.type])return t;var r=dm(e,["ArrowFunctionExpression","CallExpression","JSXExpressionContainer"]);return jm(Tm([Rm("("),Bm(Tm([Pm,t])),Pm,Rm(")")]),{shouldBreak:r})}(e,qe);case"JSXOpeningElement":var Ue=e.getValue(),Je=Ue.name&&Ue.name.comments&&Ue.name.comments.length>0;if(Ue.selfClosing&&!Ue.attributes.length&&!Je)return Tm(["<",e.call(n,"name"),e.call(n,"typeParameters")," />"]);if(Ue.attributes&&1===Ue.attributes.length&&Ue.attributes[0].value&&ug(Ue.attributes[0].value)&&!Ue.attributes[0].value.value.includes("\n")&&!Je&&(!Ue.attributes[0].comments||!Ue.attributes[0].comments.length))return jm(Tm(["<",e.call(n,"name"),e.call(n,"typeParameters")," ",Tm(e.map(n,"attributes")),Ue.selfClosing?" />":">"]));var Ve=Ue.attributes.length&&$y(nm(Ue.attributes)),Ge=!Ue.attributes.length&&!Je||t.jsxBracketSameLine&&(!Je||Ue.attributes.length)&&!Ve,Qe=Ue.attributes&&Ue.attributes.some(function(e){return e.value&&ug(e.value)&&e.value.value.includes("\n")});return jm(Tm(["<",e.call(n,"name"),e.call(n,"typeParameters"),Tm([Bm(Tm(e.map(function(e){return Tm([Lm,n(e)])},"attributes"))),Ue.selfClosing?Lm:Ge?">":Pm]),Ue.selfClosing?"/>":Ge?"":">"]),{shouldBreak:Qe});case"JSXClosingElement":return Tm([""]);case"JSXOpeningFragment":case"JSXClosingFragment":var Ke=a.comments&&a.comments.length,Xe=Ke&&!a.comments.every(Xh.isBlockComment),Ze="JSXOpeningFragment"===a.type;return Tm([Ze?"<":""]);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":var et=a.comments&&!a.comments.every(Xh.isBlockComment);return Tm([_i.printDanglingComments(e,t,!et),et?Fm:""]);case"ClassBody":return a.comments||0!==a.body.length?Tm(["{",a.body.length>0?Bm(Tm([Fm,e.call(function(e){return ay(e,t,n)},"body")])):_i.printDanglingComments(e,t),Fm,"}"]):"{}";case"ClassProperty":case"TSAbstractClassProperty":case"ClassPrivateProperty":a.decorators&&0!==a.decorators.length&&u.push(ey(e,t,n)),a.accessibility&&u.push(a.accessibility+" "),a.static&&u.push("static "),"TSAbstractClassProperty"===a.type&&u.push("abstract "),a.readonly&&u.push("readonly ");var tt=by(a);return tt&&u.push(tt),a.computed?u.push("[",e.call(n,"key"),"]"):u.push(iy(e,t,n)),u.push(Cy(e)),u.push(dy(e,t,n)),a.value&&u.push(" =",Ny(a.key,a.value,e.call(n,"value"),t)),u.push(i),jm(Tm(u));case"ClassDeclaration":case"ClassExpression":return Ky(a,t)&&u.push("declare "),u.push(Tm(wy(e,t,n))),Tm(u);case"TSInterfaceHeritage":return u.push(e.call(n,"expression")),a.typeParameters&&u.push(e.call(n,"typeParameters")),Tm(u);case"TemplateElement":return Sm(Ym,a.value.raw.split(/\r?\n/g));case"TemplateLiteral":var nt=e.map(n,"expressions"),rt=e.getParentNode();if(function(e,t){var n=/^[xf]?(describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))}(a,rt)){var at=function(e,t,n){var r=e.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(r.length>1||r.some(function(e){return 0!==e.length})){for(var a=[],i=t.map(function(e){return"${"+Qm(e,Object.assign({},n,{printWidth:1/0,endOfLine:"lf"})).formatted+"}"}),s=[{hasLineBreak:!1,cells:[]}],o=1;o ":": ",e.call(n,"returnType"),e.call(n,"predicate"),e.call(n,"typeAnnotation")),dt&&u.push(")"),jm(Tm(u));case"TSRestType":return Tm(["...",e.call(n,"typeAnnotation")]);case"TSOptionalType":return Tm([e.call(n,"typeAnnotation"),"?"]);case"FunctionTypeParam":return Tm([e.call(n,"name"),Cy(e),a.name?": ":"",e.call(n,"typeAnnotation")]);case"GenericTypeAnnotation":return Tm([e.call(n,"id"),e.call(n,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return("DeclareInterface"===a.type||Ky(a,t))&&u.push("declare "),u.push("interface"),"DeclareInterface"!==a.type&&"InterfaceDeclaration"!==a.type||u.push(" ",e.call(n,"id"),e.call(n,"typeParameters")),a.extends.length>0&&u.push(jm(Bm(Tm([Lm,"extends ",(1===a.extends.length?yg:Bm)(Sm(Tm([",",Lm]),e.map(n,"extends")))])))),u.push(" ",e.call(n,"body")),jm(Tm(u));case"ClassImplements":case"InterfaceExtends":return Tm([e.call(n,"id"),e.call(n,"typeParameters")]);case"TSClassImplements":return Tm([e.call(n,"expression"),e.call(n,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":for(var ht=e.map(n,"types"),ft=[],mt=!1,yt=0;yt1&&(mt=!0),ft.push(" & ",yt>1?Bm(ht[yt]):ht[yt])):ft.push(Bm(Tm([" &",Lm,ht[yt]])));return jm(Tm(ft));case"TSUnionType":case"UnionTypeAnnotation":var gt=e.getParentNode(),Dt=!("TypeParameterInstantiation"===gt.type||"TSTypeParameterInstantiation"===gt.type||"GenericTypeAnnotation"===gt.type||"TSTypeReference"===gt.type||"TSTypeAssertion"===gt.type||"FunctionTypeParam"===gt.type&&!gt.name||("TypeAlias"===gt.type||"VariableDeclarator"===gt.type||"TSTypeAliasDeclaration"===gt.type)&&qy(t.originalText,a,t)),_t=Xy(a),vt=e.map(function(e){var r=e.call(n);return _t||(r=Om(2,r)),_i.printComments(e,function(){return r},t)},"types");if(_t)return Sm(" | ",vt);var bt,Et=Dt&&!qy(t.originalText,a,t),xt=Tm([Rm(Tm([Et?Lm:"","| "])),Sm(Tm([Lm,"| "]),vt)]);if("TSUnionType"===a.type){var wt=e.getParentNode(2),Ct=e.getParentNode(3);bt=wt&&"TSParenthesizedType"===wt.type&&Ct&&("TSUnionType"===Ct.type||"TSIntersectionType"===Ct.type)}else bt=zf(e,t);return jm(bt?Tm([Bm(xt),Pm]):Dt?Bm(xt):xt);case"NullableTypeAnnotation":return Tm(["?",e.call(n,"typeAnnotation")]);case"TSNullKeyword":case"NullLiteralTypeAnnotation":return"null";case"ThisTypeAnnotation":return"this";case"NumberTypeAnnotation":return"number";case"ObjectTypeCallProperty":return a.static&&u.push("static "),u.push(e.call(n,"value")),Tm(u);case"ObjectTypeIndexer":var Mt=by(a);return Tm([Mt||"","[",e.call(n,"id"),a.id?": ":"",e.call(n,"key"),"]: ",e.call(n,"value")]);case"ObjectTypeProperty":var At=by(a),kt="";return a.proto?kt="proto ":a.static&&(kt="static "),Tm([kt,Gy(a)?a.kind+" ":"",At||"",iy(e,t,n),Cy(e),Vy(a,t)?"":": ",e.call(n,"value")]);case"QualifiedTypeIdentifier":return Tm([e.call(n,"qualification"),".",e.call(n,"id")]);case"StringLiteralTypeAnnotation":return Hy(a,t);case"NumberLiteralTypeAnnotation":return Ka.strictEqual(_(a.value),"number"),null!=a.extra?im(a.extra.raw):im(a.raw);case"StringTypeAnnotation":return"string";case"DeclareTypeAlias":case"TypeAlias":("DeclareTypeAlias"===a.type||Ky(a,t))&&u.push("declare ");var Tt=Ny(a.id,a.right,e.call(n,"right"),t);return u.push("type ",e.call(n,"id"),e.call(n,"typeParameters")," =",Tt,i),jm(Tm(u));case"TypeCastExpression":var St=e.getValue(),Lt=St&&St.typeAnnotation&&St.typeAnnotation.range&&t.originalText.substring(St.typeAnnotation.range[0]).match(/^\/\*\s*:/);return Tm(["(",e.call(n,"expression"),Lt?" /*":"",": ",e.call(n,"typeAnnotation"),Lt?" */":"",")"]);case"TypeParameterDeclaration":case"TypeParameterInstantiation":var Ft=e.getValue(),Pt=Ft.range?t.originalText.substring(0,Ft.range[0]).lastIndexOf("/*"):-1,Yt=Pt>=0&&t.originalText.substring(Pt).match(/^\/\*\s*::/);return Yt?Tm(["/*:: ",xy(e,t,n,"params")," */"]):xy(e,t,n,"params");case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return xy(e,t,n,"params");case"TSTypeParameter":case"TypeParameter":var jt=e.getParentNode();if("TSMappedType"===jt.type)return u.push("[",e.call(n,"name")),a.constraint&&u.push(" in ",e.call(n,"constraint")),u.push("]"),Tm(u);var Bt=by(a);Bt&&u.push(Bt),u.push(e.call(n,"name")),a.bound&&(u.push(": "),u.push(e.call(n,"bound"))),a.constraint&&u.push(" extends ",e.call(n,"constraint")),a.default&&u.push(" = ",e.call(n,"default"));var Ot=e.getNode(2);return jt.params&&1===jt.params.length&&t.filepath&&/\.tsx$/i.test(t.filepath)&&!a.constraint&&"ArrowFunctionExpression"===Ot.type&&u.push(","),Tm(u);case"TypeofTypeAnnotation":return Tm(["typeof ",e.call(n,"argument")]);case"VoidTypeAnnotation":return"void";case"InferredPredicate":return"%checks";case"DeclaredPredicate":return Tm(["%checks(",e.call(n,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSBigIntKeyword":return"bigint";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSUnknownKeyword":return"unknown";case"TSVoidKeyword":return"void";case"TSAsExpression":return Tm([e.call(n,"expression")," as ",e.call(n,"typeAnnotation")]);case"TSArrayType":return Tm([e.call(n,"elementType"),"[]"]);case"TSPropertySignature":return a.export&&u.push("export "),a.accessibility&&u.push(a.accessibility+" "),a.static&&u.push("static "),a.readonly&&u.push("readonly "),a.computed&&u.push("["),u.push(iy(e,t,n)),a.computed&&u.push("]"),u.push(Cy(e)),a.typeAnnotation&&(u.push(": "),u.push(e.call(n,"typeAnnotation"))),a.initializer&&u.push(" = ",e.call(n,"initializer")),Tm(u);case"TSParameterProperty":return a.accessibility&&u.push(a.accessibility+" "),a.export&&u.push("export "),a.static&&u.push("static "),a.readonly&&u.push("readonly "),u.push(e.call(n,"parameter")),Tm(u);case"TSTypeReference":return Tm([e.call(n,"typeName"),xy(e,t,n,"typeParameters")]);case"TSTypeQuery":return Tm(["typeof ",e.call(n,"exprName")]);case"TSParenthesizedType":return e.call(n,"typeAnnotation");case"TSIndexSignature":var Nt=e.getParentNode();return Tm([a.export?"export ":"",a.accessibility?Tm([a.accessibility," "]):"",a.static?"static ":"",a.readonly?"readonly ":"","[",a.parameters?Tm(e.map(n,"parameters")):"","]: ",e.call(n,"typeAnnotation"),"ClassBody"===Nt.type?i:""]);case"TSTypePredicate":return Tm([e.call(n,"parameterName")," is ",e.call(n,"typeAnnotation")]);case"TSNonNullExpression":return Tm([e.call(n,"expression"),"!"]);case"TSThisType":return"this";case"TSImportType":return Tm([a.isTypeOf?"typeof ":"","import(",e.call(n,"parameter"),")",a.qualifier?Tm([".",e.call(n,"qualifier")]):"",xy(e,t,n,"typeParameters")]);case"TSLiteralType":return e.call(n,"literal");case"TSIndexedAccessType":return Tm([e.call(n,"objectType"),"[",e.call(n,"indexType"),"]"]);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSCallSignatureDeclaration"!==a.type&&u.push("new "),u.push(jm(fy(e,n,t,!1,!0))),a.returnType){var It="TSConstructorType"===a.type;u.push(It?" => ":": ",e.call(n,"returnType"))}return Tm(u);case"TSTypeOperator":return Tm([a.operator," ",e.call(n,"typeAnnotation")]);case"TSMappedType":var Rt=tm(t.originalText,t.locStart(a),t.locEnd(a));return jm(Tm(["{",Bm(Tm([t.bracketSpacing?Lm:Pm,a.readonly?Tm([ny(a.readonly,"readonly")," "]):"",Ey(e,0,n),e.call(n,"typeParameter"),a.optional?ny(a.optional,"?"):"",": ",e.call(n,"typeAnnotation"),Rt&&t.semi?";":""])),_i.printDanglingComments(e,t,!0),t.bracketSpacing?Lm:Pm,"}"]),{shouldBreak:Rt});case"TSMethodSignature":return u.push(a.accessibility?Tm([a.accessibility," "]):"",a.export?"export ":"",a.static?"static ":"",a.readonly?"readonly ":"",a.computed?"[":"",e.call(n,"key"),a.computed?"]":"",Cy(e),fy(e,n,t,!1,!0)),a.returnType&&u.push(": ",e.call(n,"returnType")),jm(Tm(u));case"TSNamespaceExportDeclaration":return u.push("export as namespace ",e.call(n,"id")),t.semi&&u.push(";"),jm(Tm(u));case"TSEnumDeclaration":return Ky(a,t)&&u.push("declare "),a.modifiers&&u.push(Ey(e,0,n)),a.const&&u.push("const "),u.push("enum ",e.call(n,"id")," "),0===a.members.length?u.push(jm(Tm(["{",_i.printDanglingComments(e,t),Pm,"}"]))):u.push(jm(Tm(["{",Bm(Tm([Fm,ng(e,t,"members",n),Xm(t,"es5")?",":""])),_i.printDanglingComments(e,t,!0),Fm,"}"]))),Tm(u);case"TSEnumMember":return u.push(e.call(n,"id")),a.initializer&&u.push(" = ",e.call(n,"initializer")),Tm(u);case"TSImportEqualsDeclaration":return a.isExport&&u.push("export "),u.push("import ",e.call(n,"id")," = ",e.call(n,"moduleReference")),t.semi&&u.push(";"),jm(Tm(u));case"TSExternalModuleReference":return Tm(["require(",e.call(n,"expression"),")"]);case"TSModuleDeclaration":var Ht=e.getParentNode(),zt=ig(a.id),Wt="TSModuleDeclaration"===Ht.type,$t=a.body&&"TSModuleDeclaration"===a.body.type;if(Wt)u.push(".");else{!0===a.declare&&u.push("declare "),u.push(Ey(e,0,n));var qt=t.originalText.slice(t.locStart(a),t.locStart(a.id)),Ut="Identifier"===a.id.type&&"global"===a.id.name&&!/namespace|module/.test(qt);Ut||u.push(zt||/(^|\s)module(\s|$)/.test(qt)?"module ":"namespace ")}return u.push(e.call(n,"id")),$t?u.push(e.call(n,"body")):a.body?u.push(" ",jm(e.call(n,"body"))):u.push(i),Tm(u);case"PrivateName":return Tm(["#",e.call(n,"id")]);case"TSConditionalType":return ty(e,t,n,{beforeParts:function(){return[e.call(n,"checkType")," ","extends"," ",e.call(n,"extendsType")]},afterParts:function(){return[]},shouldCheckJsx:!1,conditionalNodeType:"TSConditionalType",consequentNodePropertyName:"trueType",alternateNodePropertyName:"falseType",testNodePropertyName:"checkType",breakNested:!0});case"TSInferType":return Tm(["infer"," ",e.call(n,"typeParameter")]);case"InterpreterDirective":return u.push("#!",a.value,Fm),fm(t.originalText,a,t)&&u.push(Fm),Tm(u);case"NGRoot":return Tm([].concat(e.call(n,"node"),a.node.comments&&0!==a.node.comments.length?Tm([" //",a.node.comments[0].value.trimRight()]):[]));case"NGChainedExpression":return jm(Sm(Tm([";",Lm]),e.map(function(e){return function(e){return wm(e.getValue(),function(e){switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(e)?n(e):Tm(["(",n(e),")"])},"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return Tm([a.prefix,":",a.value]);case"NGMicrosyntax":return Tm(e.map(function(e,t){return Tm([0===t?"":ry(e.getValue(),t,a)?" ":Tm([";",Lm]),n(e)])},"body"));case"NGMicrosyntaxKey":return/^[a-z_$][a-z0-9_$]*(-[a-z_$][a-z0-9_$])*$/i.test(a.name)?a.name:JSON.stringify(a.name);case"NGMicrosyntaxExpression":return Tm([e.call(n,"expression"),null===a.alias?"":Tm([" as ",e.call(n,"alias")])]);case"NGMicrosyntaxKeyedExpression":var Jt=e.getName(),Vt=e.getParentNode(),Gt=ry(a,Jt,Vt)||(1===Jt&&("then"===a.key.name||"else"===a.key.name)||2===Jt&&"else"===a.key.name&&"NGMicrosyntaxKeyedExpression"===Vt.body[Jt-1].type&&"then"===Vt.body[Jt-1].key.name)&&"NGMicrosyntaxExpression"===Vt.body[0].type;return Tm([e.call(n,"key"),Gt?" ":": ",e.call(n,"expression")]);case"NGMicrosyntaxLet":return Tm(["let ",e.call(n,"key"),null===a.value?"":Tm([" = ",e.call(n,"value")])]);case"NGMicrosyntaxAs":return Tm([e.call(n,"key")," as ",e.call(n,"alias")]);default:throw new Error("unknown type: "+JSON.stringify(a.type))}}(e,t,n,r);if(!a||Vm(s))return s;var o=Qf(e),u=[];if("ClassMethod"===a.type||"ClassPrivateMethod"===a.type||"ClassProperty"===a.type||"TSAbstractClassProperty"===a.type||"ClassPrivateProperty"===a.type||"MethodDefinition"===a.type||"TSAbstractMethodDefinition"===a.type);else if(a.decorators&&a.decorators.length>0&&!(o&&t.locStart(o,{ignoreDecorators:!0})>t.locStart(a.decorators[0]))){var c="ClassExpression"===a.type||"ClassDeclaration"===a.type||Zm(a,t)?Fm:Lm;e.each(function(e){var t=e.getValue();t=t.expression?t.expression:t.callee,u.push(n(e),c)},"decorators"),o&&u.unshift(Fm)}else Kf(a)&&a.declaration&&a.declaration.decorators&&a.declaration.decorators.length>0&&t.locStart(a,{ignoreDecorators:!0})>t.locStart(a.declaration.decorators[0])?e.each(function(e){var t="Decorator"===e.getValue().type?"":"@";u.push(t,n(e),Fm)},"declaration","decorators"):i=zf(e,t);var l=[];if(i&&l.unshift("("),l.push(s),i){var p=e.getValue();Mm(p)&&(l.push(" /*"),l.push(p.trailingComments[0].value.trimLeft()),l.push("*/"),p.trailingComments[0].printed=!0),l.push(")")}return u.length>0?jm(Tm(u.concat(l))):Tm(l)},embed:Mf,insertPragma:Dm,massageAstNode:Af,hasPrettierIgnore:function(e){return sm(e)||function(e){var t=e.getValue(),n=e.getParentNode();if(!(n&&t&&Ty(t)&&Ty(n)))return!1;for(var r=n.children.indexOf(t),a=null,i=r;i>0;i--){var s=n.children[i-1];if("JSXText"!==s.type||Fy(s)){a=s;break}}return a&&"JSXExpressionContainer"===a.type&&"JSXEmptyExpression"===a.expression.type&&a.expression.comments&&a.expression.comments.find(function(e){return"prettier-ignore"===e.value.trim()})}(e)},willPrintOwnComments:function(e){var t=e.getValue(),n=e.getParentNode();return(t&&(Ty(t)||Mm(t)||n&&"CallExpression"===n.type&&(Cm(t.leadingComments)||Cm(t.trailingComments)))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&!sm(e)},canAttachComment:function(e){return e.type&&"CommentBlock"!==e.type&&"CommentLine"!==e.type&&"Line"!==e.type&&"Block"!==e.type&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type},printComment:function(e,t){var n=e.getValue();switch(n.type){case"CommentBlock":case"Block":if(function(e){var t="*".concat(e.value,"*").split("\n");return t.length>1&&t.every(function(e){return"*"===e.trim()[0]})}(n)){var r=function(e){var t=e.value.split("\n");return Tm(["/*",Sm(Fm,t.map(function(e,n){return 0===n?e.trimRight():" "+(n x`"},{value:"always",description:"Always include parens. Example: `(x) => x`"}]},bracketSpacing:Fu.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:"JavaScript",type:"boolean",default:!1,description:"Put > on the last line instead of at a new line."},semi:{since:"1.0.0",category:"JavaScript",type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:Fu.singleQuote,jsxSingleQuote:{since:"1.15.0",category:"JavaScript",type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:"JavaScript",type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:"JavaScript",type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"none",description:"No trailing commas."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:!0,deprecated:"0.19.0",redirect:"es5"},{value:!1,deprecated:"0.19.0",redirect:"none"}]}},Cg=["js","node"],Mg=[".js","._js",".bones",".es",".es6",".frag",".gs",".jake",".jsb",".jscad",".jsfl",".jsm",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],Ag=["Jakefile"],kg=["node"],Tg={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Cg,extensions:Mg,filenames:Ag,interpreters:kg,languageId:183},Sg=Object.freeze({name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:Cg,extensions:Mg,filenames:Ag,interpreters:kg,languageId:183,default:Tg}),Lg=[".jsx"],Fg={name:"JSX",type:"programming",group:"JavaScript",extensions:Lg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178},Pg=Object.freeze({name:"JSX",type:"programming",group:"JavaScript",extensions:Lg,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:178,default:Fg}),Yg=["ts"],jg=[".ts",".tsx"],Bg={name:"TypeScript",type:"programming",color:"#2b7489",aliases:Yg,extensions:jg,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},Og=Object.freeze({name:"TypeScript",type:"programming",color:"#2b7489",aliases:Yg,extensions:jg,tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378,default:Bg}),Ng=[".json",".avsc",".geojson",".gltf",".JSON-tmLanguage",".jsonl",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest"],Ig=[".arcconfig",".htmlhintrc",".tern-config",".tern-project","composer.lock","mcmod.info"],Rg={name:"JSON",type:"data",tmScope:"source.json",group:"JavaScript",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Ng,filenames:Ig,languageId:174},Hg=Object.freeze({name:"JSON",type:"data",tmScope:"source.json",group:"JavaScript",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",searchable:!1,extensions:Ng,filenames:Ig,languageId:174,default:Rg}),zg=["jsonc"],Wg=[".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],$g=[".babelrc",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","tsconfig.json"],qg={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:zg,extensions:Wg,filenames:$g,languageId:423},Ug=Object.freeze({name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:zg,extensions:Wg,filenames:$g,languageId:423,default:qg}),Jg=[".json5"],Vg={name:"JSON5",type:"data",extensions:Jg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},Gg=Object.freeze({name:"JSON5",type:"data",extensions:Jg,tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175,default:Vg}),Qg=Sg&&Tg||Sg,Kg=Pg&&Fg||Pg,Xg=Og&&Bg||Og,Zg=Hg&&Rg||Hg,eD=Ug&&qg||Ug,tD=Gg&&Vg||Gg,nD={languages:[Yu(Qg,{override:{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"]},extend:{interpreters:["nodejs"]}}),Yu(Qg,{override:{name:"Flow",since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]}}),Yu(Kg,{override:{since:"0.0.0",parsers:["babel","flow"],vscodeLanguageIds:["javascriptreact"]}}),Yu(Xg,{override:{since:"1.4.0",parsers:["typescript"],vscodeLanguageIds:["typescript","typescriptreact"]}}),Yu(Zg,{override:{name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]}}),Yu(Zg,{override:{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"]},extend:{filenames:[".prettierrc"]}}),Yu(eD,{override:{since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"]},extend:{filenames:[".eslintrc"]}}),Yu(tD,{override:{since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}})],options:wg,printers:{estree:gg,"estree-json":xg}},rD="[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u3000-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312e\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u32fe\\u3300-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fea\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]",aD="[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",iD="[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0af0\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166d-\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e49\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc9\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]",sD=xa.getLast,oD=["liquidNode","inlineCode","emphasis","strong","delete","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],uD=oD.concat(["tableCell","paragraph","heading"]),cD=new RegExp(aD),lD=new RegExp(iD),pD={mapAst:function(e,t){return function e(n,r,a){a=a||[];var i=Object.assign({},t(n,r,a));return i.children&&(i.children=i.children.map(function(t,n){return e(t,n,[i].concat(a))})),i}(e,null,null)},splitText:function(e,t){var n="non-cjk",r="cj-letter",a="cjk-punctuation",i=[];return("preserve"===t.proseWrap?e:e.replace(new RegExp("(".concat(rD,")\n(").concat(rD,")"),"g"),"$1$2")).split(/([ \t\n]+)/).forEach(function(e,t,o){t%2!=1?(0!==t&&t!==o.length-1||""!==e)&&e.split(new RegExp("(".concat(rD,")"))).forEach(function(e,t,i){(0!==t&&t!==i.length-1||""!==e)&&(t%2!=0?s(lD.test(e)?{type:"word",value:e,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:e,kind:cD.test(e)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==e&&s({type:"word",value:e,kind:n,hasLeadingPunctuation:lD.test(e[0]),hasTrailingPunctuation:lD.test(sD(e))}))}):i.push({type:"whitespace",value:/\n/.test(e)?"\n":" "})}),i;function s(e){var t,s,o=sD(i);o&&"word"===o.type&&(o.kind===n&&e.kind===r&&!o.hasTrailingPunctuation||o.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?i.push({type:"whitespace",value:" "}):(t=n,s=a,o.kind===t&&e.kind===s||o.kind===s&&e.kind===t||[o.value,e.value].some(function(e){return/\u3000/.test(e)})||i.push({type:"whitespace",value:""}))),i.push(e)}},punctuationPattern:iD,getFencedCodeBlockValue:function(e,t){var n=t.slice(e.position.start.offset,e.position.end.offset),r=n.match(/^\s*/)[0].length,a=new RegExp("^\\s{0,".concat(r,"}")),i=n.split("\n"),s=n[r],o=n.slice(r).match(new RegExp("^[".concat(s,"]+")))[0],u=new RegExp("^\\s{0,3}".concat(o)).test(i[i.length-1].slice(c(i.length-1)));return i.slice(1,u?-1:void 0).map(function(e,t){return e.slice(c(t+1)).replace(a,"")}).join("\n");function c(t){return e.position.indent[t-1]-1}},getOrderedListItemInfo:function(e,t){var n=F(t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/),4);return{numberText:n[1],marker:n[2],leadingSpaces:n[3]}},INLINE_NODE_TYPES:oD,INLINE_NODE_WRAPPER_TYPES:uD},dD=Va.builders,hD=dD.hardline,fD=dD.literalline,mD=dD.concat,yD=dD.markAsRoot,gD=Va.utils.mapDoc,DD=pD.getFencedCodeBlockValue,_D=function(e,t,n,r){var a=e.getValue();if("code"===a.type&&null!==a.lang){var i=a.lang.match(/^[A-Za-z0-9_-]+/),s=function(e){var t=Ft.getSupportInfo(null,{plugins:r.plugins}).languages.find(function(t){return t.name.toLowerCase()===e||t.aliases&&-1!==t.aliases.indexOf(e)||t.extensions&&t.extensions.find(function(t){return t.substring(1)===e})});return t?t.parsers[0]:null}(i?i[0]:"");if(s){var o=r.__inJsTemplate?"~":"`",u=o.repeat(Math.max(3,xa.getMaxContinuousCount(a.value,o)+1)),c=n(DD(a,r.originalText),{parser:s});return yD(mD([u,a.lang,hD,l(c),u]))}}if("yaml"===a.type)return yD(mD(["---",hD,a.value&&a.value.trim()?l(n(a.value,{parser:"yaml"})):"","---"]));switch(a.type){case"importExport":return n(a.value,{parser:"babel"});case"jsx":return n(a.value,{parser:"__js_expression"})}return null;function l(e){return gD(e,function(e){return"string"==typeof e&&e.includes("\n")?mD(e.split(/(\n)/g).map(function(e,t){return t%2==0?e:fD})):e})}},vD=p(function(e){var t=["format","prettier"];function n(e){var n="@(".concat(t.join("|"),")"),r=new RegExp(["\x3c!--\\s*".concat(n,"\\s*--\x3e"),"\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*".concat(n,"[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e")].join("|"),"m"),a=e.match(r);return a&&0===a.index}e.exports={startWithPragma:n,hasPragma:function(e){return n(gs(e).content.trimLeft())},insertPragma:function(e){var n=gs(e),r="\x3c!-- @".concat(t[0]," --\x3e");return n.frontMatter?"".concat(n.frontMatter.raw,"\n\n").concat(r,"\n\n").concat(n.content):"".concat(r,"\n\n").concat(n.content)}}}),bD=pD.getOrderedListItemInfo,ED=pD.mapAst,xD=pD.splitText,wD=/^([\u0000-\uffff]|[\ud800-\udbff][\udc00-\udfff])$/;function CD(e,t,n){return ED(e,function(e){if(!e.children)return e;var r=e.children.reduce(function(e,r){var a=e[e.length-1];return a&&t(a,r)?e.splice(-1,1,n(a,r)):e.push(r),e},[]);return Object.assign({},e,{children:r})})}var MD=function(e,t){return e=function(e){return CD(e,function(e,t){return"importExport"===e.type&&"importExport"===t.type},function(e,t){return{type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}})}(e=function(e){return ED(e,function(e){return"import"!==e.type&&"export"!==e.type?e:Object.assign({},e,{type:"importExport"})})}(e=function(e,t){return ED(e,function(e,n,r){var a=F(r,1),i=a[0];if("text"!==e.type)return e;var s=e.value;return"paragraph"===i.type&&(0===n&&(s=s.trimLeft()),n===i.children.length-1&&(s=s.trimRight())),{type:"sentence",position:e.position,children:xD(s,t)}})}(e=function(e,t){return ED(e,function(e,r,a){if("list"===e.type&&0!==e.children.length){for(var i=0;i1)return!0;var s=n(a);if(-1===s)return!1;if(1===e.children.length)return s%t.tabWidth==0;var o=n(i);return s===o&&(s%t.tabWidth==0||bD(i,t.originalText).leadingSpaces.length>1)}(e)}return e});function n(e){return 0===e.children.length?-1:e.children[0].position.start.column-1}}(e=function(e,t){return ED(e,function(e,n,r){if("code"===e.type){var a=/^\n?( {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=a,a)for(var i=0;iu?u:s));return TD([c,ND(c,e.call(n))])}})])}function e_(e,t){return function(e,t,n){n=n||function(){return!0};var r=-1,a=!0,i=!1,s=void 0;try{for(var o,u=t.children[Symbol.iterator]();!(a=(o=u.next()).done);a=!0){var c=o.value;if(c.type===e.type&&n(c)?r++:r=-1,c===e)return r}}catch(e){i=!0,s=e}finally{try{a||null==u.return||u.return()}finally{if(i)throw s}}}(e,t,function(t){return t.ordered===e.ordered})}function t_(e,t){for(var n,r=[].concat(t),a=-1;n=e.getParentNode(++a);)if(-1!==r.indexOf(n.type))return a;return-1}function n_(e,t){var n=t_(e,t);return-1===n?null:e.getParentNode(n)}function r_(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return YD;var r="always"===n.proseWrap&&!n_(e,KD);return""!==t?r?LD:" ":r?jD:""}function a_(e,t,n){var r=[],a=null,i=e.getValue().children;return i.forEach(function(e,t){switch(o_(e)){case"start":null===a&&(a={index:t,offset:e.position.end.offset});break;case"end":null!==a&&(r.push({start:a,end:{index:t,offset:e.position.start.offset}}),a=null)}}),i_(e,t,n,{processor:function(e,a){if(0!==r.length){var s=r[0];if(a===s.start.index)return TD([i[s.start.index].value,t.originalText.slice(s.start.offset,s.end.offset),i[s.end.index].value]);if(s.start.index$/);return null!==t&&(t[1]?t[1]:"next")}function u_(e,t){var n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function c_(e,t){var n=[" "].concat(t||[]);return new RegExp(n.map(function(e){return"\\".concat(e)}).join("|")).test(e)?"<".concat(e,">"):e}function l_(e,t,n){if(null==n&&(n=!0),!e)return"";if(n)return" "+l_(e,t,!1);if(e.includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");var r=e.split("'").length-1,a=e.split('"').length-1,i=r>a?'"':a>r?"'":t.singleQuote?"'":'"';return e=e.replace(new RegExp("(".concat(i,")"),"g"),"\\$1"),"".concat(i).concat(e).concat(i)}function p_(e){return e.reduce(function(e,t){var n=xa.getLast(e);return"string"==typeof n&&"string"==typeof t?e.splice(-1,1,n+t):e.push(t),e},[])}var d_={preprocess:MD,print:function(e,t,n){var r,a=e.getValue();if(function(e){var t=n_(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return TD(qD(t.originalText.slice(a.position.start.offset,a.position.end.offset),t).map(function(n){return"word"===n.type?n.value:""===n.value?"":r_(e,n.value,t)}));switch(a.type){case"root":return 0===a.children.length?"":TD([(r=a_(e,t,n),HD(r,function(e){if(!e.parts)return e;if("concat"===e.type&&1===e.parts.length)return e.parts[0];var t=[];return e.parts.forEach(function(e){"concat"===e.type?t.push.apply(t,e.parts):""!==e&&t.push(e)}),Object.assign({},e,{parts:p_(t)})})),-1===QD.indexOf(s_(a).type)?YD:""]);case"paragraph":return i_(e,t,n,{postprocessor:OD});case"sentence":return i_(e,t,n);case"word":return a.value.replace(/[*$]/g,"\\$&").replace(new RegExp(["(^|".concat(UD,")(_+)"),"(_+)(".concat(UD,"|$)")].join("|"),"g"),function(e,t,n,r,a){return(n?"".concat(t).concat(n):"".concat(r).concat(a)).replace(/_/g,"\\_")});case"whitespace":var i=e.getParentNode(),s=i.children.indexOf(a),o=i.children[s+1],u=o&&/^>|^([-+*]|#{1,6}|[0-9]+[.)])$/.test(o.value)?"never":t.proseWrap;return r_(e,a.value,{proseWrap:u});case"emphasis":var c=e.getParentNode(),l=c.children.indexOf(a),p=c.children[l-1],d=c.children[l+1],h=p&&"sentence"===p.type&&p.children.length>0&&"word"===xa.getLast(p.children).type&&!xa.getLast(p.children).hasTrailingPunctuation||d&&"sentence"===d.type&&d.children.length>0&&"word"===d.children[0].type&&!d.children[0].hasLeadingPunctuation||n_(e,"emphasis")?"*":"_";return TD([h,i_(e,t,n),h]);case"strong":return TD(["**",i_(e,t,n),"**"]);case"delete":return TD(["~~",i_(e,t,n),"~~"]);case"inlineCode":var f=xa.getMinNotPresentContinuousCount(a.value,"`"),m="`".repeat(f||1),y=f?" ":"";return TD([m,y,a.value,y,m]);case"link":switch(t.originalText[a.position.start.offset]){case"<":var g=a.url.startsWith("mailto:")&&"mailto:"!==t.originalText.slice(a.position.start.offset+1,a.position.start.offset+1+"mailto:".length)?a.url.slice("mailto:".length):a.url;return TD(["<",g,">"]);case"[":return TD(["[",i_(e,t,n),"](",c_(a.url,")"),l_(a.title,t),")"]);default:return t.originalText.slice(a.position.start.offset,a.position.end.offset)}case"image":return TD(["![",a.alt||"","](",c_(a.url,")"),l_(a.title,t),")"]);case"blockquote":return TD(["> ",ND("> ",i_(e,t,n))]);case"heading":return TD(["#".repeat(a.depth)+" ",i_(e,t,n)]);case"code":if(a.isIndented){var D=" ".repeat(4);return ND(D,TD([D,TD(GD(a.value,YD))]))}var _=t.__inJsTemplate?"~":"`",v=_.repeat(Math.max(3,xa.getMaxContinuousCount(a.value,_)+1));return TD([v,a.lang||"",YD,TD(GD(WD(a,t.originalText),YD)),YD,v]);case"yaml":case"toml":return t.originalText.slice(a.position.start.offset,a.position.end.offset);case"html":var b=e.getParentNode(),E="root"===b.type&&xa.getLast(b.children)===a?a.value.trimRight():a.value,x=/^$/.test(E);return TD(GD(E,x?YD:PD(FD)));case"list":var w=e_(a,e.getParentNode()),C=a.ordered&&a.children.length>1&&1==+$D(a.children[1],t.originalText).numberText;return i_(e,t,n,{processor:function(e,r){var i,s=(i=a.ordered?(0===r?a.start:C?1:a.start+r)+(w%2==0?". ":") "):w%2==0?"- ":"* ",a.isAligned||a.hasIndentedCodeblock?function(e,t){var n,r=0==(n=e.length%t.tabWidth)?0:t.tabWidth-n;return e+" ".repeat(r>=4?0:r)}(i,t):i);return TD([s,ND(" ".repeat(s.length),ZD(e,t,n,s))])}});case"thematicBreak":var M=t_(e,"list");return-1===M?"---":e_(e.getParentNode(M),e.getParentNode(M+1))%2==0?"***":"---";case"linkReference":return TD(["[",i_(e,t,n),"]","full"===a.referenceType?TD(["[",a.identifier,"]"]):"collapsed"===a.referenceType?"[]":""]);case"imageReference":switch(a.referenceType){case"full":return TD(["![",a.alt||"","][",a.identifier,"]"]);default:return TD(["![",a.alt,"]","collapsed"===a.referenceType?"[]":""])}case"definition":var A="always"===t.proseWrap?LD:" ";return RD(TD([TD(["[",a.identifier,"]:"]),ID(TD([A,c_(a.url),null===a.title?"":TD([A,l_(a.title,t,!1)])]))]));case"footnote":return TD(["[^",i_(e,t,n),"]"]);case"footnoteReference":return TD(["[^",a.identifier,"]"]);case"footnoteDefinition":var k=e.getParentNode().children[e.getName()+1],T=1===a.children.length&&"paragraph"===a.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&a.children[0].position.start.line===a.children[0].position.end.line);return TD(["[^",a.identifier,"]: ",T?i_(e,t,n):RD(TD([ND(" ".repeat(t.tabWidth),i_(e,t,n,{processor:function(e,t){return 0===t?RD(TD([jD,jD,e.call(n)])):e.call(n)}})),k&&"footnoteDefinition"===k.type?jD:""]))]);case"table":return function(e,t,n){var r=YD.parts[0],a=e.getValue(),i=[];e.map(function(e){var r=[];e.map(function(e){r.push(zD(e.call(n),t).formatted)},"children"),i.push(r)},"children");var s=i.reduce(function(e,t){return e.map(function(e,n){return Math.max(e,xa.getStringWidth(t[n]))})},i[0].map(function(){return 3})),o=SD(r,[l(i[0]),c(),SD(r,i.slice(1).map(function(e){return l(e)}))]);if("never"!==t.proseWrap)return TD([kD,o]);var u=SD(r,[l(i[0],!0),c(!0),SD(r,i.slice(1).map(function(e){return l(e,!0)}))]);return TD([kD,RD(BD(u,o))]);function c(e){return TD(["| ",SD(" | ",s.map(function(t,n){var r=e?3:t;switch(a.align[n]){case"left":return":"+"-".repeat(r-1);case"right":return"-".repeat(r-1)+":";case"center":return":"+"-".repeat(r-2)+":";default:return"-".repeat(r)}}))," |"])}function l(e,t){return TD(["| ",SD(" | ",t?e:e.map(function(e,t){switch(a.align[t]){case"right":return n=e,r=s[t],i=r-xa.getStringWidth(n),TD([" ".repeat(i),n]);case"center":return function(e,t){var n=t-xa.getStringWidth(e),r=Math.floor(n/2),a=n-r;return TD([" ".repeat(r),e," ".repeat(a)])}(e,s[t]);default:return function(e,t){var n=t-xa.getStringWidth(e);return TD([e," ".repeat(n)])}(e,s[t])}var n,r,i}))," |"])}}(e,t,n);case"tableCell":return i_(e,t,n);case"break":return/\s/.test(t.originalText[a.position.start.offset])?TD([" ",PD(FD)]):TD(["\\",YD]);case"liquidNode":return TD(GD(a.value,YD));case"importExport":case"jsx":return a.value;case"math":return TD(["$$",YD,a.value?TD([TD(GD(a.value,YD)),YD]):"","$$"]);case"inlineMath":return t.originalText.slice(t.locStart(a),t.locEnd(a));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type ".concat(JSON.stringify(a.type)))}},embed:_D,massageAstNode:function(e,t,n){return delete t.position,delete t.raw,"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[ \t\n]+/g," ")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||("yaml"===n.children[0].type||"toml"===n.children[0].type)&&n.children[1]===e)&&"html"===e.type&&vD.startWithPragma(e.value)?null:void 0)},hasPrettierIgnore:function(e){var t=+e.getName();return 0!==t&&"next"===o_(e.getParentNode().children[t-1])},insertPragma:vD.insertPragma},h_={proseWrap:Fu.proseWrap,singleQuote:Fu.singleQuote},f_=["pandoc"],m_=[".md",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".workbook"],y_={name:"Markdown",type:"prose",aliases:f_,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:m_,tmScope:"source.gfm",languageId:222},g_=Object.freeze({name:"Markdown",type:"prose",aliases:f_,aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:m_,tmScope:"source.gfm",languageId:222,default:y_}),D_={languages:[Yu(g_&&y_||g_,{override:{since:"1.8.0",parsers:["remark"],vscodeLanguageIds:["markdown"]},extend:{filenames:["README"]}}),Yu({name:"MDX",extensions:[".mdx"]},{override:{since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"]}})],options:h_,printers:{mdast:d_}},__=function(e){return/^\s*@(prettier|format)\s*$/.test(e)},v_=function(e){return"# @format\n\n".concat(e)},b_=xa.getLast;function E_(e,t){return e&&"string"==typeof e.type&&(!t||-1!==t.indexOf(e.type))}function x_(e){return"prettier-ignore"===e.value.trim()}function w_(e){return e&&e.leadingComments&&0!==e.leadingComments.length}function C_(e){return e&&e.middleComments&&0!==e.middleComments.length}function M_(e){return e&&e.indicatorComment}function A_(e){return e&&e.trailingComment}function k_(e){return e&&e.endComments&&0!==e.endComments.length}function T_(e){var t=[],n=void 0,r=!0,a=!1,i=void 0;try{for(var s,o=e.split(/( +)/g)[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;" "!==u?" "===n?t.push(u):t.push((t.pop()||"")+u):void 0===n&&t.unshift(""),n=u}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}return" "===n&&t.push((t.pop()||"")+" "),""===t[0]&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var S_={getLast:b_,getAncestorCount:function(e,t){for(var n=0,r=e.stack.length-1,a=0;a=0&&0===t[r].length;r--)n++;return 0===n?t:n>=2&&!a?t.slice(0,-(n-1)):t.slice(0,-n)}},getFlowScalarLineContents:function(e,t,n){var r=t.split("\n").map(function(e,t,n){return 0===t&&t===n.length-1?e:0!==t&&t!==n.length-1?e.trim():0===t?e.trimRight():e.trimLeft()});return"preserve"===n.proseWrap?r.map(function(e){return 0===e.length?[]:[e]}):r.map(function(e){return 0===e.length?[]:T_(e)}).reduce(function(t,n,a){return 0===a||0===r[a-1].length||0===n.length||"quoteDouble"===e&&b_(b_(t)).endsWith("\\")?t.concat([n]):t.concat([t.pop().concat(n)])},[]).map(function(e){return"never"===n.proseWrap?[e.join(" ")]:e})},getLastDescendantNode:function e(t){return"children"in t&&0!==t.children.length?e(b_(t.children)):t},hasPrettierIgnore:function(e){var t=e.getValue();if("documentBody"===t.type){var n=e.getParentNode();return k_(n.head)&&x_(b_(n.head.endComments))}return w_(t)&&x_(b_(t.leadingComments))},hasLeadingComments:w_,hasMiddleComments:C_,hasIndicatorComment:M_,hasTrailingComment:A_,hasEndComments:k_},L_=v_,F_=__,P_=S_.getAncestorCount,Y_=S_.getBlockValueLineContents,j_=S_.getFlowScalarLineContents,B_=S_.getLast,O_=S_.getLastDescendantNode,N_=S_.hasLeadingComments,I_=S_.hasMiddleComments,R_=S_.hasIndicatorComment,H_=S_.hasTrailingComment,z_=S_.hasEndComments,W_=S_.hasPrettierIgnore,$_=S_.isLastDescendantNode,q_=S_.isNextLineEmpty,U_=S_.isNode,J_=S_.isEmptyNode,V_=S_.defineShortcut,G_=S_.mapNode,Q_=Va.builders,K_=Q_.conditionalGroup,X_=Q_.breakParent,Z_=Q_.concat,ev=Q_.dedent,tv=Q_.dedentToRoot,nv=Q_.fill,rv=Q_.group,av=Q_.hardline,iv=Q_.ifBreak,sv=Q_.join,ov=Q_.line,uv=Q_.lineSuffix,cv=Q_.literalline,lv=Q_.markAsRoot,pv=Q_.softline,dv=xa.replaceEndOfLineWith;function hv(e){switch(e.type){case"document":V_(e,"head",function(){return e.children[0]}),V_(e,"body",function(){return e.children[1]});break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":V_(e,"content",function(){return e.children[0]});break;case"mappingItem":case"flowMappingItem":V_(e,"key",function(){return e.children[0]}),V_(e,"value",function(){return e.children[1]})}return e}function fv(e,t,n,r,a){switch(e.type){case"root":return Z_([sv(av,n.map(function(t,r){var i=e.children[r],s=e.children[r+1];return Z_([a(t),gv(i,s)?Z_([av,"...",H_(i)?Z_([" ",n.call(a,"trailingComment")]):""]):!s||H_(s.head)?"":Z_([av,"---"])])},"children")),0===e.children.length||(C=O_(e),U_(C,["blockLiteral","blockFolded"])&&"keep"===C.chomping)?"":av]);case"document":var i=t.children[n.getName()+1];return sv(av,["head"===Dv(e,i,t,r)?sv(av,[0===e.head.children.length&&0===e.head.endComments.length?"":n.call(a,"head"),Z_(["---",H_(e.head)?Z_([" ",n.call(a,"head","trailingComment")]):""])].filter(Boolean)):"",(w=e,0!==w.body.children.length||z_(w.body)?n.call(a,"body"):"")].filter(Boolean));case"documentHead":return sv(av,[].concat(n.map(a,"children"),n.map(a,"endComments")));case"documentBody":var s=sv(av,n.map(a,"children")).parts,o=sv(av,n.map(a,"endComments")).parts,u=0===s.length||0===o.length?"":function(e){return U_(e,["blockFolded","blockLiteral"])?"keep"===e.chomping?"":Z_([av,av]):av}(O_(e));return Z_([].concat(s,u,o));case"directive":return Z_(["%",sv(" ",[e.name].concat(e.parameters))]);case"comment":return Z_(["#",e.value]);case"alias":return Z_(["*",e.value]);case"tag":return r.originalText.slice(e.position.start.offset,e.position.end.offset);case"anchor":return Z_(["&",e.value]);case"plain":return Ev(e.type,r.originalText.slice(e.position.start.offset,e.position.end.offset),r);case"quoteDouble":case"quoteSingle":var c=r.originalText.slice(e.position.start.offset+1,e.position.end.offset-1);if("quoteSingle"===e.type&&c.includes("\\")||"quoteDouble"===e.type&&/\\[^"]/.test(c)){var l="quoteDouble"===e.type?'"':"'";return Z_([l,Ev(e.type,c,r),l])}if(c.includes('"'))return Z_(["'",Ev(e.type,"quoteDouble"===e.type?c.replace(/\\"/g,'"').replace(/'/g,"'".repeat(2)):c,r),"'"]);if(c.includes("'"))return Z_(['"',Ev(e.type,"quoteSingle"===e.type?c.replace(/''/g,"'"):c,r),'"']);var p=r.singleQuote?"'":'"';return Z_([p,Ev(e.type,c,r),p]);case"blockFolded":case"blockLiteral":var d=P_(n,function(e){return U_(e,["sequence","mapping"])}),h=$_(n);return Z_(["blockFolded"===e.type?">":"|",null===e.indent?"":e.indent.toString(),"clip"===e.chomping?"":"keep"===e.chomping?"+":"-",R_(e)?Z_([" ",n.call(a,"indicatorComment")]):"",(null===e.indent?ev:tv)(mv(null===e.indent?r.tabWidth:e.indent-1+d,Z_(Y_(e,{parentIndent:d,isLastDescendant:h,options:r}).reduce(function(t,n,r,a){return t.concat(0===r?av:"",nv(sv(ov,n).parts),r!==a.length-1?0===n.length?av:lv(cv):"keep"===e.chomping&&h?0===n.length?tv(av):tv(cv):"")},[]))))]);case"sequence":return sv(av,n.map(a,"children"));case"sequenceItem":return Z_(["- ",mv(2,e.content?n.call(a,"content"):"")]);case"mappingKey":case"mappingValue":return e.content?n.call(a,"content"):"";case"mapping":return sv(av,n.map(a,"children"));case"mappingItem":case"flowMappingItem":var f=J_(e.key),m=J_(e.value);if(f&&m)return Z_([": "]);var y=n.call(a,"key"),g=n.call(a,"value");if(m)return"flowMappingItem"===e.type&&"flowMapping"===t.type?y:"mappingItem"!==e.type||!_v(e.key.content,r)||H_(e.key.content)||t.tag&&"tag:yaml.org,2002:set"===t.tag.value?Z_(["? ",mv(2,y)]):Z_([y,vv(e)?" ":"",":"]);if(f)return Z_([": ",mv(2,g)]);var D=Symbol("mappingKey");return N_(e.value)||!yv(e.key.content)?Z_(["? ",mv(2,y),av,sv("",n.map(a,"value","leadingComments").map(function(e){return Z_([e,av])})),": ",mv(2,g)]):!function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":return e.position.start.line===e.position.end.line;case"alias":return!0;default:return!1}}(e.key.content)||N_(e.key.content)||I_(e.key.content)||H_(e.key.content)||z_(e.key)||N_(e.value.content)||I_(e.value.content)||z_(e.value)||!_v(e.value.content,r)?K_([Z_([rv(Z_([iv("? "),rv(mv(2,y),{id:D})])),iv(Z_([av,": ",mv(2,g)]),M(Z_([vv(e)?" ":"",":",N_(e.value.content)||z_(e.value)&&e.value.content&&!U_(e.value.content,["mapping","sequence"])||"mapping"===t.type&&H_(e.key.content)&&yv(e.value.content)||U_(e.value.content,["mapping","sequence"])&&null===e.value.content.tag&&null===e.value.content.anchor?av:e.value.content?ov:"",g])),{groupId:D})])]):Z_([y,vv(e)?" ":"",": ",g]);case"flowMapping":case"flowSequence":var _="flowMapping"===e.type?"{":"[",v="flowMapping"===e.type?"}":"]",b="flowMapping"===e.type&&0!==e.children.length&&r.bracketSpacing?ov:pv,E=0!==e.children.length&&("flowMappingItem"===(x=B_(e.children)).type&&J_(x.key)&&J_(x.value));return Z_([_,M(Z_([b,Z_(n.map(function(t,n){return Z_([a(t),n===e.children.length-1?"":Z_([",",ov,e.children[n].position.start.line!==e.children[n+1].position.start.line?bv(t,r.originalText):""])])},"children")),iv(",","")])),E?"":b,v]);case"flowSequenceItem":return n.call(a,"content");default:throw new Error("Unexpected node type ".concat(e.type))}var x,w,C;function M(e){return Q_.align(" ".repeat(r.tabWidth),e)}}function mv(e,t){return"number"==typeof e&&e>0?Q_.align(" ".repeat(e),t):Q_.align(e,t)}function yv(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}function gv(e,t){return H_(e)||t&&(0!==t.head.children.length||z_(t.head))}function Dv(e,t,n,r){return n.children[0]===e&&/---(\s|$)/.test(r.originalText.slice(r.locStart(e),r.locStart(e)+4))||0!==e.head.children.length||z_(e.head)||H_(e.head)?"head":!gv(e,t)&&(!!t&&"root")}function _v(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if("preserve"===t.proseWrap)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return-1===e.value.indexOf("\n");case"always":return!/[\n ]/.test(e.value);default:return!1}}function vv(e){return e.key.content&&"alias"===e.key.content.type}function bv(e,t){var n=e.getValue(),r=e.stack[0];return r.isNextEmptyLinePrintedChecklist=r.isNextEmptyLinePrintedChecklist||[],!r.isNextEmptyLinePrintedChecklist[n.position.end.line]&&q_(n,t)?(r.isNextEmptyLinePrintedChecklist[n.position.end.line]=!0,pv):""}function Ev(e,t,n){var r=j_(e,t,n);return sv(av,r.map(function(e){return nv(sv(ov,e).parts)}))}var xv={preprocess:function(e){return G_(e,hv)},print:function(e,t,n){var r=e.getValue(),a=e.getParentNode(),i=r.tag?e.call(n,"tag"):"",s=r.anchor?e.call(n,"anchor"):"",o=U_(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!$_(e)?bv(e,t.originalText):"";return Z_(["mappingValue"!==r.type&&N_(r)?Z_([sv(av,e.map(n,"leadingComments")),av]):"",i,i&&s?" ":"",s,i||s?U_(r,["sequence","mapping"])&&!I_(r)?av:" ":"",I_(r)?Z_([1===r.middleComments.length?"":av,sv(av,e.map(n,"middleComments")),av]):"",W_(e)?Z_(dv(t.originalText.slice(r.position.start.offset,r.position.end.offset),cv)):rv(fv(r,a,e,t,n)),H_(r)&&!U_(r,["document","documentHead"])?uv(Z_(["mappingValue"!==r.type||r.content?" ":"","mappingKey"===a.type&&"mapping"===e.getParentNode(2).type&&yv(r)?"":X_,e.call(n,"trailingComment")])):"",o,z_(r)&&!U_(r,["documentHead","documentBody"])?mv("sequenceItem"===r.type?2:0,Z_([av,sv(av,e.map(n,"endComments"))])):""])},massageAstNode:function(e,t){if(U_(t))switch(delete t.position,t.type){case"comment":if(F_(t.value))return null;break;case"quoteDouble":case"quoteSingle":t.type="quote"}},insertPragma:L_},wv={bracketSpacing:Fu.bracketSpacing,singleQuote:Fu.singleQuote,proseWrap:Fu.proseWrap},Cv=["yml"],Mv=[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yml.mysql"],Av=[".clang-format",".clang-tidy",".gemrc","glide.lock"],kv={name:"YAML",type:"data",tmScope:"source.yaml",aliases:Cv,extensions:Mv,filenames:Av,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407},Tv=Object.freeze({name:"YAML",type:"data",tmScope:"source.yaml",aliases:Cv,extensions:Mv,filenames:Av,aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407,default:kv}),Sv={languages:[Yu(Tv&&kv||Tv,{override:{since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml"]}})],printers:{yaml:xv},options:wv},Lv=Tt.version,Fv=Ft.getSupportInfo,Pv=[Qu,gc,Ic,Nh,nD,D_,Sv],Yv=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function jv(e){return function(){var t=Array.from(arguments),n=t[1]&&t[1].plugins||[];return Yv(n)||(n=Object.values(n)),t[1]=Object.assign({},t[1],{plugins:Pv.concat(n)}),e.apply(null,t)}}var Bv=jv(Qi);return{formatWithCursor:Bv,format:function(e,t){return Bv(e,t).formatted},check:function(e,t){return Bv(e,t).formatted===e},doc:Va,getSupportInfo:jv(Fv),version:Lv,util:Qa,__debug:{parse:jv(Ki),formatAST:jv(Xi),formatDoc:jv(Zi),printToDoc:jv(es),printDocToString:jv(ts)}}},e.exports=n()}).call(this,n(7))},function(e,t,n){e.exports=function(){"use strict";var e=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=n(function(e){e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return null;var n=t.filter(function(e){return"\r\n"===e}).length;return n>t.length-n?"\r\n":"\n"},e.exports.graceful=function(t){return e.exports(t)||"\n"}}),a={EOL:"\n"},i=Object.freeze({default:a}),s=i&&a||i,o=n(function(e,t){var n,a;function i(){return n=(e=r)&&e.__esModule?e:{default:e};var e}function o(){return a=s}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=function(e){var t=e.match(l);return t?t[0].trimLeft():""},t.strip=function(e){var t=e.match(l);return t&&t[0]?e.substring(t[0].length):e},t.parse=function(e){return y(e).pragmas},t.parseWithComments=y,t.print=function(e){var t=e.comments,r=void 0===t?"":t,s=e.pragmas,u=void 0===s?{}:s,c=(0,(n||i()).default)(r)||(a||o()).EOL,l=Object.keys(u),p=l.map(function(e){return g(e,u[e])}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){return" * "+e+c}).join("");if(!r){if(0===l.length)return"";if(1===l.length&&!Array.isArray(u[l[0]])){var d=u[l[0]];return"".concat("/**"," ").concat(g(l[0],d)[0]).concat(" */")}}var h=r.split(c).map(function(e){return"".concat(" *"," ").concat(e)}).join(c)+c;return"/**"+c+(r?h:"")+(r&&l.length?" *"+c:"")+p+" */"};var u=/\*\/$/,c=/^\/\*\*/,l=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,p=/(^|\s+)\/\/([^\r\n]*)/g,d=/^(\r?\n)+/,h=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,m=/(\r?\n|^) *\* ?/g;function y(e){var t=(0,(n||i()).default)(e)||(a||o()).EOL;e=e.replace(c,"").replace(u,"").replace(m,"$1");for(var r="";r!==e;)r=e,e=e.replace(h,"".concat(t,"$1 $2").concat(t));e=e.replace(d,"").trimRight();for(var s,l=Object.create(null),y=e.replace(f,"").replace(d,"").trimRight();s=f.exec(e);){var g=s[2].replace(p,"");"string"==typeof l[s[1]]||Array.isArray(l[s[1]])?l[s[1]]=[].concat(l[s[1]],g):l[s[1]]=g}return{comments:y,pragmas:l}}function g(e,t){return[].concat(t).map(function(t){return"@".concat(e," ").concat(t).trim()})}});t(o);var u=function(e){return e.length>0?e[e.length-1]:null},c={locStart:function e(t,n){return!(n=n||{}).ignoreDecorators&&t.declaration&&t.declaration.decorators&&t.declaration.decorators.length>0?e(t.declaration.decorators[0]):!n.ignoreDecorators&&t.decorators&&t.decorators.length>0?e(t.decorators[0]):t.__location?t.__location.startOffset:t.range?t.range[0]:"number"==typeof t.start?t.start:t.loc?t.loc.start:null},locEnd:function e(t){var n=t.nodes&&u(t.nodes);if(n&&t.source&&!t.source.end&&(t=n),t.__location)return t.__location.endOffset;var r=t.range?t.range[1]:"number"==typeof t.end?t.end:null;return t.typeAnnotation?Math.max(r,e(t.typeAnnotation)):t.loc&&!r?t.loc.end:r}};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var p=n(function(e){e.exports=function(e){e=Object.assign({onlyFirst:!1},e);var t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e.onlyFirst?void 0:"g")}}),d=n(function(e){e.exports=function(e){return!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141)}});function h(e){return function(t,n,r){var a=r&&r.backwards;if(!1===n)return!1;for(var i=t.length,s=n;s>=0&&s=127&&a<=159||a>=768&&a<=879||(a>65535&&r++,n+=d(a)?2:1)}return n}}),h(/\s/),h(" \t"),h(",; \t"),h(/[^\r\n]/);var f={};[["|>"],["||","??"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(e,t){e.forEach(function(e){f[e]=t})});var m=u,y=function(e,t){return function e(t,n){if(t&&"object"===l(t))if(Array.isArray(t)){var r=!0,a=!1,i=void 0;try{for(var s,o=t[Symbol.iterator]();!(r=(s=o.next()).done);r=!0){var u=s.value;e(u,n)}}catch(e){a=!0,i=e}finally{try{r||null==o.return||o.return()}finally{if(a)throw i}}}else if("string"==typeof t.type){for(var c=Object.keys(t),p=0;p",{beforeExpr:a}),template:new i("template"),ellipsis:new i("...",{beforeExpr:a}),backQuote:new i("`",{startsExpr:!0}),dollarBraceL:new i("${",{beforeExpr:a,startsExpr:!0}),at:new i("@"),hash:new i("#"),interpreterDirective:new i("#!..."),eq:new i("=",{beforeExpr:a,isAssign:!0}),assign:new i("_=",{beforeExpr:a,isAssign:!0}),incDec:new i("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:new i("!",{beforeExpr:a,prefix:!0,startsExpr:!0}),tilde:new i("~",{beforeExpr:a,prefix:!0,startsExpr:!0}),pipeline:new o("|>",0),nullishCoalescing:new o("??",1),logicalOR:new o("||",1),logicalAND:new o("&&",2),bitwiseOR:new o("|",3),bitwiseXOR:new o("^",4),bitwiseAND:new o("&",5),equality:new o("==/!=",6),relational:new o("",7),bitShift:new o("<>",8),plusMin:new i("+/-",{beforeExpr:a,binop:9,prefix:!0,startsExpr:!0}),modulo:new o("%",10),star:new o("*",10),slash:new o("/",10),exponent:new i("**",{beforeExpr:a,binop:11,rightAssociative:!0})},c={break:new s("break"),case:new s("case",{beforeExpr:a}),catch:new s("catch"),continue:new s("continue"),debugger:new s("debugger"),default:new s("default",{beforeExpr:a}),do:new s("do",{isLoop:!0,beforeExpr:a}),else:new s("else",{beforeExpr:a}),finally:new s("finally"),for:new s("for",{isLoop:!0}),function:new s("function",{startsExpr:!0}),if:new s("if"),return:new s("return",{beforeExpr:a}),switch:new s("switch"),throw:new s("throw",{beforeExpr:a,prefix:!0,startsExpr:!0}),try:new s("try"),var:new s("var"),let:new s("let"),const:new s("const"),while:new s("while",{isLoop:!0}),with:new s("with"),new:new s("new",{beforeExpr:a,startsExpr:!0}),this:new s("this",{startsExpr:!0}),super:new s("super",{startsExpr:!0}),class:new s("class",{startsExpr:!0}),extends:new s("extends",{beforeExpr:a}),export:new s("export"),import:new s("import",{startsExpr:!0}),yield:new s("yield",{beforeExpr:a,startsExpr:!0}),null:new s("null",{startsExpr:!0}),true:new s("true",{startsExpr:!0}),false:new s("false",{startsExpr:!0}),in:new s("in",{beforeExpr:a,binop:7}),instanceof:new s("instanceof",{beforeExpr:a,binop:7}),typeof:new s("typeof",{beforeExpr:a,prefix:!0,startsExpr:!0}),void:new s("void",{beforeExpr:a,prefix:!0,startsExpr:!0}),delete:new s("delete",{beforeExpr:a,prefix:!0,startsExpr:!0})};function l(e){return null!=e&&"Property"===e.type&&"init"===e.kind&&!1===e.method}Object.keys(c).forEach(function(e){u["_"+e]=c[e]});var p=/\r\n?|\n|\u2028|\u2029/,d=new RegExp(p.source,"g");function h(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var f=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function m(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var y=function(e,t,n,r){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r},g={braceStatement:new y("{",!1),braceExpression:new y("{",!0),templateQuasi:new y("${",!1),parenStatement:new y("(",!1),parenExpression:new y("(",!0),template:new y("`",!0,!0,function(e){return e.readTmplToken()}),functionExpression:new y("function",!0),functionStatement:new y("function",!1)};function D(e){var t=e.split(" ");return function(e){return t.indexOf(e)>=0}}u.parenR.updateContext=u.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===g.braceStatement&&"function"===this.curContext().token&&(e=this.state.context.pop()),this.state.exprAllowed=!e.isExpr}else this.state.exprAllowed=!0},u.name.updateContext=function(e){var t=!1;e!==u.dot&&("of"===this.state.value&&!this.state.exprAllowed||"yield"===this.state.value&&this.state.inGenerator)&&(t=!0),this.state.exprAllowed=t,this.state.isIterator&&(this.state.isIterator=!1)},u.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?g.braceStatement:g.braceExpression),this.state.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.state.context.push(g.templateQuasi),this.state.exprAllowed=!0},u.parenL.updateContext=function(e){var t=e===u._if||e===u._for||e===u._with||e===u._while;this.state.context.push(t?g.parenStatement:g.parenExpression),this.state.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(e){!e.beforeExpr||e===u.semi||e===u._else||e===u._return&&p.test(this.input.slice(this.state.lastTokEnd,this.state.start))||(e===u.colon||e===u.braceL)&&this.curContext()===g.b_stat?this.state.context.push(g.functionStatement):this.state.context.push(g.functionExpression),this.state.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===g.template?this.state.context.pop():this.state.context.push(g.template),this.state.exprAllowed=!1};var _={6:D("enum await"),strict:D("implements interface let package private protected public static yield"),strictBind:D("eval arguments")},v=D("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 let const class extends export import yield super"),b="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",E="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",x=new RegExp("["+b+"]"),w=new RegExp("["+b+E+"]");b=E=null;var C=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,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],M=[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 A(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function k(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&x.test(String.fromCharCode(e)):A(e,C)))}function T(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&w.test(String.fromCharCode(e)):A(e,C)||A(e,M))))}var S=["any","bool","boolean","empty","false","mixed","null","number","static","string","true","typeof","void","interface","extends","_"];function L(e){return"type"===e.importKind||"typeof"===e.importKind}function F(e){return(e.type===u.name||!!e.type.keyword)&&"from"!==e.value}var P={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},Y=/\*?\s*@((?:no)?flow)\b/,j={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},B=/^[\da-fA-F]+$/,O=/^\d+$/;function N(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function I(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return I(e.object)+"."+I(e.property);throw new Error("Node had unexpected type: "+e.type)}g.j_oTag=new y("...",!0,!0),u.jsxName=new i("jsxName"),u.jsxText=new i("jsxText",{beforeExpr:!0}),u.jsxTagStart=new i("jsxTagStart",{startsExpr:!0}),u.jsxTagEnd=new i("jsxTagEnd"),u.jsxTagStart.updateContext=function(){this.state.context.push(g.j_expr),this.state.context.push(g.j_oTag),this.state.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===g.j_oTag&&e===u.slash||t===g.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===g.j_expr):this.state.exprAllowed=!0};var R={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1},H=function(e,t){this.line=e,this.column=t},z=function(e,t){this.start=e,this.end=t};function W(e){return e[e.length-1]}var $=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.raise=function(e,t,n){var r=void 0===n?{}:n,a=r.missingPluginNames,i=r.code,s=function(e,t){var n,r=1,a=0;for(d.lastIndex=0;(n=d.exec(e))&&n.index0)){var t,n,r,a,i,s=this.state.commentStack;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(r=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(s.length>0){var o=W(s);o.trailingComments&&o.trailingComments[0].start>=e.end&&(r=o.trailingComments,delete o.trailingComments)}for(s.length>0&&W(s).start>=e.start&&(t=s.pop());s.length>0&&W(s).start>=e.start;)n=s.pop();if(!n&&t&&(n=t),t&&this.state.leadingComments.length>0){var u=W(this.state.leadingComments);if("ObjectProperty"===t.type){if(u.start>=e.start&&this.state.commentPreviousNode){for(i=0;i0&&(t.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}else if("CallExpression"===e.type&&e.arguments&&e.arguments.length){var c=W(e.arguments);if(c&&u.start>=c.start&&u.end<=e.end&&this.state.commentPreviousNode){for(i=0;i0&&(c.trailingComments=this.state.leadingComments,this.state.leadingComments=[])}}}if(n){if(n.leadingComments)if(n!==e&&n.leadingComments.length>0&&W(n.leadingComments).end<=e.start)e.leadingComments=n.leadingComments,delete n.leadingComments;else for(a=n.leadingComments.length-2;a>=0;--a)if(n.leadingComments[a].end<=e.start){e.leadingComments=n.leadingComments.splice(0,a+1);break}}else if(this.state.leadingComments.length>0)if(W(this.state.leadingComments).end<=e.start){if(this.state.commentPreviousNode)for(i=0;i0&&(e.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(a=0;ae.start);a++);var l=this.state.leadingComments.slice(0,a);l.length&&(e.leadingComments=l),0===(r=this.state.leadingComments.slice(a)).length&&(r=null)}this.state.commentPreviousNode=e,r&&(r.length&&r[0].start>=e.start&&W(r).end<=e.end?e.innerComments=r:e.trailingComments=r),s.push(e)}},t}(function(){function e(){this.sawUnambiguousESM=!1}var t=e.prototype;return t.isReservedWord=function(e){return"await"===e?this.inModule:_[6](e)},t.hasPlugin=function(e){return Object.hasOwnProperty.call(this.plugins,e)},t.getPluginOption=function(e,t){if(this.hasPlugin(e))return this.plugins[e][t]},e}())),q=function(){function e(){}var t=e.prototype;return t.init=function(e,t){this.strict=!1!==e.strictMode&&"module"===e.sourceType,this.input=t,this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.inMethod=!1,this.inFunction=!1,this.inParameters=!1,this.maybeInArrowParameters=!1,this.inGenerator=!1,this.inAsync=!1,this.inPipeline=!1,this.inPropertyName=!1,this.inType=!1,this.inClassProperty=!1,this.noAnonFunctionType=!1,this.hasFlowComment=!1,this.isIterator=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.classLevel=0,this.labels=[],this.decoratorStack=[[]],this.yieldOrAwaitInPossibleArrowParameters=null,this.tokens=[],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=this.lineStart=0,this.curLine=e.startLine,this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=[g.braceStatement],this.exprAllowed=!0,this.containsEsc=this.containsOctal=!1,this.octalPosition=null,this.invalidTemplateEscapePosition=null,this.exportedIdentifiers=[]},t.curPosition=function(){return new H(this.curLine,this.pos-this.lineStart)},t.clone=function(t){var n=this,r=new e;return Object.keys(this).forEach(function(e){var a=n[e];t&&"context"!==e||!Array.isArray(a)||(a=a.slice()),r[e]=a}),r},e}(),U=function(e){return e>=48&&e<=57},J={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},V={bin:[48,49]};V.oct=V.bin.concat([50,51,52,53,54,55]),V.dec=V.oct.concat([56,57]),V.hex=V.dec.concat([65,66,67,68,69,70,97,98,99,100,101,102]);var G=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.addExtra=function(e,t,n){e&&((e.extra=e.extra||{})[t]=n)},n.isRelational=function(e){return this.match(u.relational)&&this.state.value===e},n.isLookaheadRelational=function(e){var t=this.lookahead();return t.type==u.relational&&t.value==e},n.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected(null,u.relational)},n.eatRelational=function(e){return!!this.isRelational(e)&&(this.next(),!0)},n.isContextual=function(e){return this.match(u.name)&&this.state.value===e&&!this.state.containsEsc},n.isLookaheadContextual=function(e){var t=this.lookahead();return t.type===u.name&&t.value===e},n.eatContextual=function(e){return this.isContextual(e)&&this.eat(u.name)},n.expectContextual=function(e,t){this.eatContextual(e)||this.unexpected(null,t)},n.canInsertSemicolon=function(){return this.match(u.eof)||this.match(u.braceR)||this.hasPrecedingLineBreak()},n.hasPrecedingLineBreak=function(){return p.test(this.input.slice(this.state.lastTokEnd,this.state.start))},n.isLineTerminator=function(){return this.eat(u.semi)||this.canInsertSemicolon()},n.semicolon=function(){this.isLineTerminator()||this.unexpected(null,u.semi)},n.expect=function(e,t){this.eat(e)||this.unexpected(t,e)},n.unexpected=function(e,t){throw void 0===t&&(t="Unexpected token"),"string"!=typeof t&&(t='Unexpected token, expected "'+t.label+'"'),this.raise(null!=e?e:this.state.start,t)},n.expectPlugin=function(e,t){if(!this.hasPlugin(e))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling the parser plugin: '"+e+"'",{missingPluginNames:[e]});return!0},n.expectOnePlugin=function(e,t){var n=this;if(!e.some(function(e){return n.hasPlugin(e)}))throw this.raise(null!=t?t:this.state.start,"This experimental syntax requires enabling one of the following parser plugin(s): '"+e.join(", ")+"'",{missingPluginNames:e})},t}(function(e){function t(t,n){var r;return(r=e.call(this)||this).state=new q,r.state.init(t,n),r.isLookahead=!1,r}r(t,e);var n=t.prototype;return n.next=function(){this.options.tokens&&!this.isLookahead&&this.state.tokens.push(new function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new z(e.startLoc,e.endLoc)}(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},n.eat=function(e){return!!this.match(e)&&(this.next(),!0)},n.match=function(e){return this.state.type===e},n.isKeyword=function(e){return v(e)},n.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state;return this.state=e,t},n.setStrict=function(e){if(this.state.strict=e,this.match(u.num)||this.match(u.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(u.eof):e.override?e.override(this):this.readToken(this.input.codePointAt(this.state.pos))},n.readToken=function(e){k(e)||92===e?this.readWord():this.getTokenFromCode(e)},n.pushComment=function(e,t,n,r,a,i){var s={type:e?"CommentBlock":"CommentLine",value:t,start:n,end:r,loc:new z(a,i)};this.isLookahead||(this.options.tokens&&this.state.tokens.push(s),this.state.comments.push(s),this.addComment(s))},n.skipBlockComment=function(){var e,t=this.state.curPosition(),n=this.state.pos,r=this.input.indexOf("*/",this.state.pos+=2);for(-1===r&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=r+2,d.lastIndex=n;(e=d.exec(this.input))&&e.index=48&&t<=57&&this.raise(this.state.pos,"Unexpected digit after hash token"),(this.hasPlugin("classPrivateProperties")||this.hasPlugin("classPrivateMethods"))&&this.state.classLevel>0)return++this.state.pos,void this.finishToken(u.hash);"smart"===this.getPluginOption("pipelineOperator","proposal")?this.finishOp(u.hash,1):this.raise(this.state.pos,"Unexpected character '#'")}},n.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)this.readNumber(!0);else{var t=this.input.charCodeAt(this.state.pos+2);46===e&&46===t?(this.state.pos+=3,this.finishToken(u.ellipsis)):(++this.state.pos,this.finishToken(u.dot))}},n.readToken_slash=function(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.slash,1)},n.readToken_interpreter=function(){if(0!==this.state.pos||this.state.input.length<2)return!1;var e=this.state.pos;this.state.pos+=1;var t=this.input.charCodeAt(this.state.pos);if(33!==t)return!1;for(;10!==t&&13!==t&&8232!==t&&8233!==t&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(u.question)):(this.state.pos+=2,this.finishToken(u.questionDot)):61===t?this.finishOp(u.assign,3):this.finishOp(u.nullishCoalescing,2)},n.getTokenFromCode=function(e){switch(e){case 35:return void this.readToken_numberSign();case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(u.parenL);case 41:return++this.state.pos,void this.finishToken(u.parenR);case 59:return++this.state.pos,void this.finishToken(u.semi);case 44:return++this.state.pos,void this.finishToken(u.comma);case 91:return++this.state.pos,void this.finishToken(u.bracketL);case 93:return++this.state.pos,void this.finishToken(u.bracketR);case 123:return void(this.hasPlugin("flow")&&124===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.braceBarL,2):(++this.state.pos,this.finishToken(u.braceL)));case 125:return++this.state.pos,void this.finishToken(u.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.doubleColon,2):(++this.state.pos,this.finishToken(u.colon)));case 63:return void this.readToken_question();case 64:return++this.state.pos,void this.finishToken(u.at);case 96:return++this.state.pos,void this.finishToken(u.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:case 62:return void this.readToken_lt_gt(e);case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(u.tilde,1)}this.raise(this.state.pos,"Unexpected character '"+String.fromCodePoint(e)+"'")},n.finishOp=function(e,t){var n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)},n.readRegexp=function(){for(var e,t,n=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.state.pos);if(p.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.state.pos}var a=this.input.slice(n,this.state.pos);++this.state.pos;for(var i="";this.state.pos-1)i.indexOf(s)>-1&&this.raise(this.state.pos+1,"Duplicate regular expression flag"),++this.state.pos,i+=s;else{if(!T(o)&&92!==o)break;this.raise(this.state.pos+1,"Invalid regular expression flag")}}this.finishToken(u.regexp,{pattern:a,flags:i})},n.readInt=function(e,t){for(var n=this.state.pos,r=16===e?J.hex:J.decBinOct,a=16===e?V.hex:10===e?V.dec:8===e?V.oct:V.bin,i=0,s=0,o=null==t?1/0:t;s-1||r.indexOf(p)>-1||Number.isNaN(p))&&this.raise(this.state.pos,"Invalid or unexpected token"),++this.state.pos;continue}}if((c=u>=97?u-97+10:u>=65?u-65+10:U(u)?u-48:1/0)>=e)break;++this.state.pos,i=i*e+c}return this.state.pos===n||null!=t&&this.state.pos-n!==t?null:i},n.readRadixNumber=function(e){var t=this.state.pos,n=!1;this.state.pos+=2;var r=this.readInt(e);if(null==r&&this.raise(this.state.start+2,"Expected number in radix "+e),this.hasPlugin("bigInt")&&110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,n=!0),k(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number"),n){var a=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(u.bigint,a)}else this.finishToken(u.num,r)},n.readNumber=function(e){var t=this.state.pos,n=!1,r=!1;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);a&&(this.state.strict&&this.raise(t,"Legacy octal literals are not allowed in strict mode"),/[89]/.test(this.input.slice(t,this.state.pos))&&(a=!1));var i=this.input.charCodeAt(this.state.pos);46!==i||a||(++this.state.pos,this.readInt(10),n=!0,i=this.input.charCodeAt(this.state.pos)),69!==i&&101!==i||a||(43!==(i=this.input.charCodeAt(++this.state.pos))&&45!==i||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),n=!0,i=this.input.charCodeAt(this.state.pos)),this.hasPlugin("bigInt")&&110===i&&((n||a)&&this.raise(t,"Invalid BigIntLiteral"),++this.state.pos,r=!0),k(this.input.codePointAt(this.state.pos))&&this.raise(this.state.pos,"Identifier directly after number");var s=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");if(r)this.finishToken(u.bigint,s);else{var o=a?parseInt(s,8):parseFloat(s);this.finishToken(u.num,o)}},n.readCodePoint=function(e){var t;if(123===this.input.charCodeAt(this.state.pos)){var n=++this.state.pos;if(t=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,e),++this.state.pos,null===t)--this.state.invalidTemplateEscapePosition;else if(t>1114111){if(!e)return this.state.invalidTemplateEscapePosition=n-2,null;this.raise(n,"Code point out of bounds")}}else t=this.readHexChar(4,e);return t},n.readString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.state.pos),t+=this.readEscapedChar(!1),n=this.state.pos):8232===r||8233===r?(++this.state.pos,++this.state.curLine):h(r)?this.raise(this.state.start,"Unterminated string constant"):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)},n.readTmplToken=function(){for(var e="",t=this.state.pos,n=!1;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(u.template)?36===r?(this.state.pos+=2,void this.finishToken(u.dollarBraceL)):(++this.state.pos,void this.finishToken(u.backQuote)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(u.template,n?null:e));if(92===r){e+=this.input.slice(t,this.state.pos);var a=this.readEscapedChar(!0);null===a?n=!0:e+=a,t=this.state.pos}else if(h(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},n.readEscapedChar=function(e){var t=!e,n=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,n){case 110:return"\n";case 114:return"\r";case 120:var r=this.readHexChar(2,t);return null===r?null:String.fromCharCode(r);case 117:var a=this.readCodePoint(t);return null===a?null:String.fromCodePoint(a);case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(n>=48&&n<=55){var i=this.state.pos-1,s=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(s,8);if(o>255&&(s=s.slice(0,-1),o=parseInt(s,8)),o>0){if(e)return this.state.invalidTemplateEscapePosition=i,null;this.state.strict?this.raise(i,"Octal literal in strict mode"):this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=i)}return this.state.pos+=s.length-1,String.fromCharCode(o)}return String.fromCharCode(n)}},n.readHexChar=function(e,t){var n=this.state.pos,r=this.readInt(16,e);return null===r&&(t?this.raise(n,"Bad character escape sequence"):(this.state.pos=n-1,this.state.invalidTemplateEscapePosition=n-1)),r},n.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,n=this.state.pos;this.state.pos=0;s--){var o=this.state.labels[s];if(o.statementStart!==e.start)break;o.statementStart=this.state.start,o.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=this.parseStatement(!0),("ClassDeclaration"==e.body.type||"VariableDeclaration"==e.body.type&&"var"!==e.body.kind||"FunctionDeclaration"==e.body.type&&(this.state.strict||e.body.generator||e.body.async))&&this.raise(e.body.start,"Invalid labeled declaration"),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},n.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},n.parseBlock=function(e){var t=this.startNode();return this.expect(u.braceL),this.parseBlockBody(t,e,!1,u.braceR),this.finishNode(t,"BlockStatement")},n.isValidDirective=function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized},n.parseBlockBody=function(e,t,n,r){var a=e.body=[],i=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?i:void 0,n,r)},n.parseBlockOrModuleBlockBody=function(e,t,n,r){for(var a,i,s=!1;!this.eat(r);){s||!this.state.containsOctal||i||(i=this.state.octalPosition);var o=this.parseStatement(!0,n);if(t&&!s&&this.isValidDirective(o)){var u=this.stmtToDirective(o);t.push(u),void 0===a&&"use strict"===u.value.value&&(a=this.state.strict,this.setStrict(!0),i&&this.raise(i,"Octal literal in strict mode"))}else s=!0,e.push(o)}!1===a&&this.setStrict(!1)},n.parseFor=function(e,t){var n=this;return e.init=t,this.expect(u.semi),e.test=this.match(u.semi)?null:this.parseExpression(),this.expect(u.semi),e.update=this.match(u.parenR)?null:this.parseExpression(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext(function(){return n.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(e,"ForStatement")},n.parseForIn=function(e,t,n){var r=this,a=this.match(u._in)?"ForInStatement":"ForOfStatement";return n?this.eatContextual("of"):this.next(),"ForOfStatement"===a&&(e.await=!!n),e.left=t,e.right=this.parseExpression(),this.expect(u.parenR),e.body=this.withTopicForbiddingContext(function(){return r.parseStatement(!1)}),this.state.labels.pop(),this.finishNode(e,a)},n.parseVar=function(e,t,n){var r=e.declarations=[];for(e.kind=n.keyword;;){var a=this.startNode();if(this.parseVarHead(a),this.eat(u.eq)?a.init=this.parseMaybeAssign(t):(n!==u._const||this.match(u._in)||this.isContextual("of")?"Identifier"===a.id.type||t&&(this.match(u._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.hasPlugin("typescript")||this.unexpected(),a.init=null),r.push(this.finishNode(a,"VariableDeclarator")),!this.eat(u.comma))break}return e},n.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0,void 0,"variable declaration")},n.parseFunction=function(e,t,n,r,a){var i=this,s=this.state.inFunction,o=this.state.inMethod,c=this.state.inAsync,l=this.state.inGenerator,p=this.state.inClassProperty;return this.state.inFunction=!0,this.state.inMethod=!1,this.state.inClassProperty=!1,this.initFunction(e,r),this.match(u.star)&&(e.generator=!0,this.next()),!t||a||this.match(u.name)||this.match(u._yield)||this.unexpected(),t||(this.state.inAsync=r,this.state.inGenerator=e.generator),(this.match(u.name)||this.match(u._yield))&&(e.id=this.parseBindingIdentifier()),t&&(this.state.inAsync=r,this.state.inGenerator=e.generator),this.parseFunctionParams(e),this.withTopicForbiddingContext(function(){i.parseFunctionBodyAndFinish(e,t?"FunctionDeclaration":"FunctionExpression",n)}),this.state.inFunction=s,this.state.inMethod=o,this.state.inAsync=c,this.state.inGenerator=l,this.state.inClassProperty=p,e},n.parseFunctionParams=function(e,t){var n=this.state.inParameters;this.state.inParameters=!0,this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,t),this.state.inParameters=n},n.parseClass=function(e,t,n){return this.next(),this.takeDecorators(e),this.parseClassId(e,t,n),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},n.isClassProperty=function(){return this.match(u.eq)||this.match(u.semi)||this.match(u.braceR)},n.isClassMethod=function(){return this.match(u.parenL)},n.isNonstaticConstructor=function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)},n.parseClassBody=function(e){var t=this,n=this.state.strict;this.state.strict=!0,this.state.classLevel++;var r={hadConstructor:!1},a=[],i=this.startNode();i.body=[],this.expect(u.braceL),this.withTopicForbiddingContext(function(){for(;!t.eat(u.braceR);)if(t.eat(u.semi))a.length>0&&t.raise(t.state.lastTokEnd,"Decorators must not be followed by a semicolon");else if(t.match(u.at))a.push(t.parseDecorator());else{var e=t.startNode();a.length&&(e.decorators=a,t.resetStartLocationFromNode(e,a[0]),a=[]),t.parseClassMember(i,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&t.raise(e.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")}}),a.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(i,"ClassBody"),this.state.classLevel--,this.state.strict=n},n.parseClassMember=function(e,t,n){var r=!1,a=this.state.containsEsc;if(this.match(u.name)&&"static"===this.state.value){var i=this.parseIdentifier(!0);if(this.isClassMethod()){var s=t;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,void this.pushClassMethod(e,s,!1,!1,!1)}if(this.isClassProperty()){var o=t;return o.computed=!1,o.key=i,o.static=!1,void e.body.push(this.parseClassProperty(o))}if(a)throw this.unexpected();r=!0}this.parseClassMemberWithIsStatic(e,t,n,r)},n.parseClassMemberWithIsStatic=function(e,t,n,r){var a=t,i=t,s=t,o=t,c=a,l=a;if(t.static=r,this.eat(u.star))return c.kind="method",this.parseClassPropertyName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(e,i,!0,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be a generator"),void this.pushClassMethod(e,a,!0,!1,!1));var p=this.parseClassPropertyName(t),d="PrivateName"===p.type,h="Identifier"===p.type;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,i,!1,!1);var f=this.isNonstaticConstructor(a);f&&(a.kind="constructor",a.decorators&&this.raise(a.start,"You can't attach decorators to a class constructor"),n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.start,"Duplicate constructor in the same class"),n.hadConstructor=!0),this.pushClassMethod(e,a,!1,!1,f)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s);else if(h&&"async"===p.name&&!this.isLineTerminator()){var m=this.eat(u.star);c.kind="method",this.parseClassPropertyName(c),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,i,m,!0):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't be an async function"),this.pushClassMethod(e,a,m,!0,!1))}else!h||"get"!==p.name&&"set"!==p.name||this.isLineTerminator()&&this.match(u.star)?this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s):this.unexpected():(c.kind=p.name,this.parseClassPropertyName(a),"PrivateName"===c.key.type?this.pushClassPrivateMethod(e,i,!1,!1):(this.isNonstaticConstructor(a)&&this.raise(a.key.start,"Constructor can't have get/set modifier"),this.pushClassMethod(e,a,!1,!1,!1)),this.checkGetterSetterParams(a))},n.parseClassPropertyName=function(e){var t=this.parsePropertyName(e);return e.computed||!e.static||"prototype"!==t.name&&"prototype"!==t.value||this.raise(t.start,"Classes may not have static property named prototype"),"PrivateName"===t.type&&"constructor"===t.id.name&&this.raise(t.start,"Classes may not have a private field named '#constructor'"),t},n.pushClassProperty=function(e,t){this.isNonstaticConstructor(t)&&this.raise(t.key.start,"Classes may not have a non-static field named 'constructor'"),e.body.push(this.parseClassProperty(t))},n.pushClassPrivateProperty=function(e,t){this.expectPlugin("classPrivateProperties",t.key.start),e.body.push(this.parseClassPrivateProperty(t))},n.pushClassMethod=function(e,t,n,r,a){e.body.push(this.parseMethod(t,n,r,a,"ClassMethod"))},n.pushClassPrivateMethod=function(e,t,n,r){this.expectPlugin("classPrivateMethods",t.key.start),e.body.push(this.parseMethod(t,n,r,!1,"ClassPrivateMethod"))},n.parsePostMemberNameModifiers=function(e){},n.parseAccessModifier=function(){},n.parseClassPrivateProperty=function(e){var t=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,e.value=this.eat(u.eq)?this.parseMaybeAssign():null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=t,this.finishNode(e,"ClassPrivateProperty")},n.parseClassProperty=function(e){e.typeAnnotation||this.expectPlugin("classProperties");var t=this.state.inMethod;return this.state.inMethod=!1,this.state.inClassProperty=!0,this.match(u.eq)?(this.expectPlugin("classProperties"),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.state.inClassProperty=!1,this.state.inMethod=t,this.finishNode(e,"ClassProperty")},n.parseClassId=function(e,t,n){this.match(u.name)?e.id=this.parseIdentifier():n||!t?e.id=null:this.unexpected(null,"A class name is required")},n.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts():null},n.parseExport=function(e){if(this.shouldParseExportStar()){if(this.parseExportStar(e),"ExportAllDeclaration"===e.type)return e}else if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");var t=this.startNode();t.exported=this.parseIdentifier(!0);var n=[this.finishNode(t,"ExportDefaultSpecifier")];if(e.specifiers=n,this.match(u.comma)&&this.lookahead().type===u.star){this.expect(u.comma);var r=this.startNode();this.expect(u.star),this.expectContextual("as"),r.exported=this.parseIdentifier(),n.push(this.finishNode(r,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(u._default))return e.declaration=this.parseExportDefaultExpression(),this.checkExport(e,!0,!0),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportDeclaration()){if(this.isContextual("async")){var a=this.lookahead();a.type!==u._function&&this.unexpected(a.start,'Unexpected token, expected "function"')}e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)}else e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e)}return this.checkExport(e,!0),this.finishNode(e,"ExportNamedDeclaration")},n.isAsyncFunction=function(){if(!this.isContextual("async"))return!1;var e=this.state,t=e.input,n=e.pos;f.lastIndex=n;var r=f.exec(t);if(!r||!r.length)return!1;var a=n+r[0].length;return!(p.test(t.slice(n,a))||"function"!==t.slice(a,a+8)||a+8!==t.length&&T(t.charAt(a+8)))},n.parseExportDefaultExpression=function(){var e=this.startNode(),t=this.isAsyncFunction();if(this.eat(u._function)||t)return t&&(this.eatContextual("async"),this.expect(u._function)),this.parseFunction(e,!0,!1,t,!0);if(this.match(u._class))return this.parseClass(e,!0,!0);if(this.match(u.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax"),this.parseDecorators(!1),this.parseClass(e,!0,!0);if(this.match(u._let)||this.match(u._const)||this.match(u._var))return this.raise(this.state.start,"Only expressions, functions or classes are allowed as the `default` export.");var n=this.parseMaybeAssign();return this.semicolon(),n},n.parseExportDeclaration=function(e){return this.parseStatement(!0)},n.isExportDefaultSpecifier=function(){if(this.match(u.name))return"async"!==this.state.value;if(!this.match(u._default))return!1;var e=this.lookahead();return e.type===u.comma||e.type===u.name&&"from"===e.value},n.parseExportSpecifiersMaybe=function(e){this.eat(u.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},n.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(u.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},n.shouldParseExportStar=function(){return this.match(u.star)},n.parseExportStar=function(e){this.expect(u.star),this.isContextual("as")?this.parseExportNamespace(e):(this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration"))},n.parseExportNamespace=function(e){this.expectPlugin("exportNamespaceFrom");var t=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);this.next(),t.exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)},n.shouldParseExportDeclaration=function(){if(this.match(u.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax")}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"let"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isAsyncFunction()},n.checkExport=function(e,t,n){if(t)if(n)this.checkDuplicateExports(e,"default");else if(e.specifiers&&e.specifiers.length)for(var r=0,a=e.specifiers;r-1&&this.raiseDuplicateExportError(e,t),this.state.exportedIdentifiers.push(t)},n.raiseDuplicateExportError=function(e,t){throw this.raise(e.start,"default"===t?"Only one default export allowed per module.":"`"+t+"` has already been exported. Exported identifiers must be unique.")},n.parseExportSpecifiers=function(){var e,t=[],n=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(n)n=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;var r=this.match(u._default);r&&!e&&(e=!0);var a=this.startNode();a.local=this.parseIdentifier(r),a.exported=this.eatContextual("as")?this.parseIdentifier(!0):a.local.__clone(),t.push(this.finishNode(a,"ExportSpecifier"))}return e&&!this.isContextual("from")&&this.unexpected(),t},n.parseImport=function(e){return this.match(u.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(u.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},n.shouldParseDefaultImport=function(e){return this.match(u.name)},n.parseImportSpecifierLocal=function(e,t,n,r){t.local=this.parseIdentifier(),this.checkLVal(t.local,!0,void 0,r),e.specifiers.push(this.finishNode(t,n))},n.parseImportSpecifiers=function(e){var t=!0;if(!this.shouldParseDefaultImport(e)||(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier","default import specifier"),this.eat(u.comma))){if(this.match(u.star)){var n=this.startNode();return this.next(),this.expectContextual("as"),void this.parseImportSpecifierLocal(e,n,"ImportNamespaceSpecifier","import namespace specifier")}for(this.expect(u.braceL);!this.eat(u.braceR);){if(t)t=!1;else if(this.eat(u.colon)&&this.unexpected(null,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),this.expect(u.comma),this.eat(u.braceR))break;this.parseImportSpecifier(e)}}},n.parseImportSpecifier=function(e){var t=this.startNode();t.imported=this.parseIdentifier(!0),this.eatContextual("as")?t.local=this.parseIdentifier():(this.checkReservedWord(t.imported.name,t.start,!0,!0),t.local=t.imported.__clone()),this.checkLVal(t.local,!0,void 0,"import specifier"),e.specifiers.push(this.finishNode(t,"ImportSpecifier"))},t}(function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.checkPropClash=function(e,t){if(!e.computed&&!e.kind){var n=e.key;"__proto__"===("Identifier"===n.type?n.name:String(n.value))&&(t.proto&&this.raise(n.start,"Redefinition of __proto__ property"),t.proto=!0)}},n.getExpression=function(){this.nextToken();var e=this.parseExpression();return this.match(u.eof)||this.unexpected(),e.comments=this.state.comments,e},n.parseExpression=function(e,t){var n=this.state.start,r=this.state.startLoc,a=this.parseMaybeAssign(e,t);if(this.match(u.comma)){var i=this.startNodeAt(n,r);for(i.expressions=[a];this.eat(u.comma);)i.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return a},n.parseMaybeAssign=function(e,t,n,r){var a,i=this.state.start,s=this.state.startLoc;if(this.match(u._yield)&&this.state.inGenerator){var o=this.parseYield();return n&&(o=n.call(this,o,i,s)),o}t?a=!1:(t={start:0},a=!0),(this.match(u.parenL)||this.match(u.name)||this.match(u._yield))&&(this.state.potentialArrowAt=this.state.start);var c=this.parseMaybeConditional(e,t,r);if(n&&(c=n.call(this,c,i,s)),this.state.type.isAssign){var l,p=this.startNodeAt(i,s),d=this.state.value;return p.operator=d,"??="===d&&(this.expectPlugin("nullishCoalescingOperator"),this.expectPlugin("logicalAssignment")),"||="!==d&&"&&="!==d||this.expectPlugin("logicalAssignment"),p.left=this.match(u.eq)?this.toAssignable(c,void 0,"assignment expression"):c,t.start=0,this.checkLVal(c,void 0,void 0,"assignment expression"),c.extra&&c.extra.parenthesized&&("ObjectPattern"===c.type?l="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===c.type&&(l="`([a]) = 0` use `([a] = 0)`"),l&&this.raise(c.start,"You're trying to assign to a parenthesized expression, eg. instead of "+l)),this.next(),p.right=this.parseMaybeAssign(e),this.finishNode(p,"AssignmentExpression")}return a&&t.start&&this.unexpected(t.start),c},n.parseMaybeConditional=function(e,t,n){var r=this.state.start,a=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(e,t);return"ArrowFunctionExpression"===s.type&&s.start===i?s:t&&t.start?s:this.parseConditional(s,e,r,a,n)},n.parseConditional=function(e,t,n,r,a){if(this.eat(u.question)){var i=this.startNodeAt(n,r);return i.test=e,i.consequent=this.parseMaybeAssign(),this.expect(u.colon),i.alternate=this.parseMaybeAssign(t),this.finishNode(i,"ConditionalExpression")}return e},n.parseExprOps=function(e,t){var n=this.state.start,r=this.state.startLoc,a=this.state.potentialArrowAt,i=this.parseMaybeUnary(t);return"ArrowFunctionExpression"===i.type&&i.start===a?i:t&&t.start?i:this.parseExprOp(i,n,r,-1,e)},n.parseExprOp=function(e,t,n,r,a){var i=this.state.type.binop;if(!(null==i||a&&this.match(u._in))&&i>r){var s=this.startNodeAt(t,n),o=this.state.value;s.left=e,s.operator=o,"**"!==o||"UnaryExpression"!==e.type||e.extra&&e.extra.parenthesized||this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var c=this.state.type;if(c===u.pipeline?(this.expectPlugin("pipelineOperator"),this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(e,t)):c===u.nullishCoalescing&&this.expectPlugin("nullishCoalescingOperator"),this.next(),c===u.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(u.name)&&"await"===this.state.value&&this.state.inAsync)throw this.raise(this.state.start,'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal');return s.right=this.parseExprOpRightExpr(c,i,a),this.finishNode(s,c===u.logicalOR||c===u.logicalAND||c===u.nullishCoalescing?"LogicalExpression":"BinaryExpression"),this.parseExprOp(s,t,n,r,a)}return e},n.parseExprOpRightExpr=function(e,t,n){var r=this;switch(e){case u.pipeline:if("smart"===this.getPluginOption("pipelineOperator","proposal")){var a=this.state.start,i=this.state.startLoc;return this.withTopicPermittingContext(function(){return r.parseSmartPipelineBody(r.parseExprOpBaseRightExpr(e,t,n),a,i)})}default:return this.parseExprOpBaseRightExpr(e,t,n)}},n.parseExprOpBaseRightExpr=function(e,t,n){var r=this.state.start,a=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,a,e.rightAssociative?t-1:t,n)},n.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),n=this.match(u.incDec);if(t.operator=this.state.value,t.prefix=!0,"throw"===t.operator&&this.expectPlugin("throwExpressions"),this.next(),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),n)this.checkLVal(t.argument,void 0,void 0,"prefix operation");else if(this.state.strict&&"delete"===t.operator){var r=t.argument;"Identifier"===r.type?this.raise(t.start,"Deleting local variable in strict mode"):"MemberExpression"===r.type&&"PrivateName"===r.property.type&&this.raise(t.start,"Deleting a private field is not allowed")}return this.finishNode(t,n?"UpdateExpression":"UnaryExpression")}var a=this.state.start,i=this.state.startLoc,s=this.parseExprSubscripts(e);if(e&&e.start)return s;for(;this.state.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(a,i);o.operator=this.state.value,o.prefix=!1,o.argument=s,this.checkLVal(s,void 0,void 0,"postfix operation"),this.next(),s=this.finishNode(o,"UpdateExpression")}return s},n.parseExprSubscripts=function(e){var t=this.state.start,n=this.state.startLoc,r=this.state.potentialArrowAt,a=this.parseExprAtom(e);return"ArrowFunctionExpression"===a.type&&a.start===r?a:e&&e.start?a:this.parseSubscripts(a,t,n)},n.parseSubscripts=function(e,t,n,r){var a={optionalChainMember:!1,stop:!1};do{e=this.parseSubscript(e,t,n,r,a)}while(!a.stop);return e},n.parseSubscript=function(e,t,n,r,a){if(!r&&this.eat(u.doubleColon)){var i=this.startNodeAt(t,n);return i.object=e,i.callee=this.parseNoCallExpr(),a.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n,r)}if(this.match(u.questionDot)){if(this.expectPlugin("optionalChaining"),a.optionalChainMember=!0,r&&this.lookahead().type==u.parenL)return a.stop=!0,e;this.next();var s=this.startNodeAt(t,n);if(this.eat(u.bracketL))return s.object=e,s.property=this.parseExpression(),s.computed=!0,s.optional=!0,this.expect(u.bracketR),this.finishNode(s,"OptionalMemberExpression");if(this.eat(u.parenL)){var o=this.atPossibleAsync(e);return s.callee=e,s.arguments=this.parseCallExpressionArguments(u.parenR,o),s.optional=!0,this.finishNode(s,"OptionalCallExpression")}return s.object=e,s.property=this.parseIdentifier(!0),s.computed=!1,s.optional=!0,this.finishNode(s,"OptionalMemberExpression")}if(this.eat(u.dot)){var c=this.startNodeAt(t,n);return c.object=e,c.property=this.parseMaybePrivateName(),c.computed=!1,a.optionalChainMember?(c.optional=!1,this.finishNode(c,"OptionalMemberExpression")):this.finishNode(c,"MemberExpression")}if(this.eat(u.bracketL)){var l=this.startNodeAt(t,n);return l.object=e,l.property=this.parseExpression(),l.computed=!0,this.expect(u.bracketR),a.optionalChainMember?(l.optional=!1,this.finishNode(l,"OptionalMemberExpression")):this.finishNode(l,"MemberExpression")}if(!r&&this.match(u.parenL)){var p=this.state.maybeInArrowParameters,d=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;var h=this.atPossibleAsync(e);this.next();var f=this.startNodeAt(t,n);f.callee=e;var m={start:-1};return f.arguments=this.parseCallExpressionArguments(u.parenR,h,m),a.optionalChainMember?this.finishOptionalCallExpression(f):this.finishCallExpression(f),h&&this.shouldParseAsyncArrow()?(a.stop=!0,m.start>-1&&this.raise(m.start,"A trailing comma is not permitted after the rest element"),f=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,n),f),this.state.yieldOrAwaitInPossibleArrowParameters=d):(this.toReferencedListDeep(f.arguments),this.state.yieldOrAwaitInPossibleArrowParameters=this.state.yieldOrAwaitInPossibleArrowParameters||d),this.state.maybeInArrowParameters=p,f}return this.match(u.backQuote)?this.parseTaggedTemplateExpression(t,n,e,a):(a.stop=!0,e)},n.parseTaggedTemplateExpression=function(e,t,n,r,a){var i=this.startNodeAt(e,t);return i.tag=n,i.quasi=this.parseTemplate(!0),a&&(i.typeParameters=a),r.optionalChainMember&&this.raise(e,"Tagged Template Literals are not allowed in optionalChain"),this.finishNode(i,"TaggedTemplateExpression")},n.atPossibleAsync=function(e){return!this.state.containsEsc&&this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon()},n.finishCallExpression=function(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");var t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"CallExpression")},n.finishOptionalCallExpression=function(e){if("Import"===e.callee.type){1!==e.arguments.length&&this.raise(e.start,"import() requires exactly one argument");var t=e.arguments[0];t&&"SpreadElement"===t.type&&this.raise(t.start,"... is not allowed in import()")}return this.finishNode(e,"OptionalCallExpression")},n.parseCallExpressionArguments=function(e,t,n){for(var r,a=[],i=!0;!this.eat(e);){if(i)i=!1;else if(this.expect(u.comma),this.eat(e))break;this.match(u.parenL)&&!r&&(r=this.state.start),a.push(this.parseExprListItem(!1,t?{start:0}:void 0,t?{start:0}:void 0,t?n:void 0))}return t&&r&&this.shouldParseAsyncArrow()&&this.unexpected(),a},n.shouldParseAsyncArrow=function(){return this.match(u.arrow)},n.parseAsyncArrowFromCallExpression=function(e,t){return this.expect(u.arrow),this.parseArrowExpression(e,t.arguments,!0),e},n.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},n.parseExprAtom=function(e){this.state.type===u.slash&&this.readRegexp();var t,n=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case u._super:return this.state.inMethod||this.state.inClassProperty||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"super is only allowed in object methods and classes"),t=this.startNode(),this.next(),this.match(u.parenL)||this.match(u.bracketL)||this.match(u.dot)||this.unexpected(),this.match(u.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(t.start,"super() is only valid inside a class constructor. Make sure the method name is spelled exactly as 'constructor'."),this.finishNode(t,"Super");case u._import:return this.lookahead().type===u.dot?this.parseImportMetaProperty():(this.expectPlugin("dynamicImport"),t=this.startNode(),this.next(),this.match(u.parenL)||this.unexpected(null,u.parenL),this.finishNode(t,"Import"));case u._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case u._yield:this.state.inGenerator&&this.unexpected();case u.name:t=this.startNode();var r="await"===this.state.value&&(this.state.inAsync||!this.state.inFunction&&this.options.allowAwaitOutsideFunction),a=this.state.containsEsc,i=this.shouldAllowYieldIdentifier(),s=this.parseIdentifier(r||i);if("await"===s.name){if(this.state.inAsync||this.inModule||!this.state.inFunction&&this.options.allowAwaitOutsideFunction)return this.parseAwait(t)}else{if(!a&&"async"===s.name&&this.match(u._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(t,!1,!1,!0);if(n&&!this.canInsertSemicolon()&&"async"===s.name&&this.match(u.name)){var o=this.state.yieldOrAwaitInPossibleArrowParameters,c=this.state.inAsync;this.state.yieldOrAwaitInPossibleArrowParameters=null,this.state.inAsync=!0;var l=[this.parseIdentifier()];return this.expect(u.arrow),this.parseArrowExpression(t,l,!0),this.state.yieldOrAwaitInPossibleArrowParameters=o,this.state.inAsync=c,t}}if(n&&!this.canInsertSemicolon()&&this.eat(u.arrow)){var p=this.state.yieldOrAwaitInPossibleArrowParameters;return this.state.yieldOrAwaitInPossibleArrowParameters=null,this.parseArrowExpression(t,[s]),this.state.yieldOrAwaitInPossibleArrowParameters=p,t}return s;case u._do:this.expectPlugin("doExpressions");var d=this.startNode();this.next();var h=this.state.inFunction,f=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,d.body=this.parseBlock(!1),this.state.inFunction=h,this.state.labels=f,this.finishNode(d,"DoExpression");case u.regexp:var m=this.state.value;return(t=this.parseLiteral(m.value,"RegExpLiteral")).pattern=m.pattern,t.flags=m.flags,t;case u.num:return this.parseLiteral(this.state.value,"NumericLiteral");case u.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case u.string:return this.parseLiteral(this.state.value,"StringLiteral");case u._null:return t=this.startNode(),this.next(),this.finishNode(t,"NullLiteral");case u._true:case u._false:return this.parseBooleanLiteral();case u.parenL:return this.parseParenAndDistinguishExpression(n);case u.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(u.bracketR,!0,e),this.state.maybeInArrowParameters||this.toReferencedList(t.elements),this.finishNode(t,"ArrayExpression");case u.braceL:return this.parseObj(!1,e);case u._function:return this.parseFunctionExpression();case u.at:this.parseDecorators();case u._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate(!1);case u.doubleColon:t=this.startNode(),this.next(),t.object=null;var y=t.callee=this.parseNoCallExpr();if("MemberExpression"===y.type)return this.finishNode(t,"BindExpression");throw this.raise(y.start,"Binding should be performed on object property.");case u.hash:if(this.state.inPipeline){if(t=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(t.start,"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option."),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext())return this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference");throw this.raise(t.start,"Topic reference was used in a lexical context without topic binding")}default:throw this.unexpected()}},n.parseBooleanLiteral=function(){var e=this.startNode();return e.value=this.match(u._true),this.next(),this.finishNode(e,"BooleanLiteral")},n.parseMaybePrivateName=function(){if(this.match(u.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]);var e=this.startNode(),t=this.state.end;this.next();var n=this.state.start;return 0!=n-t&&this.raise(n,"Unexpected space between # and identifier"),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)},n.parseFunctionExpression=function(){var e=this.startNode(),t=this.startNode();return this.next(),t=this.createIdentifier(t,"function"),this.state.inGenerator&&this.eat(u.dot)?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},n.parseMetaProperty=function(e,t,n){e.meta=t,"function"===t.name&&"sent"===n&&(this.isContextual(n)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());var r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(e.property.start,"The only valid meta property for "+t.name+" is "+t.name+"."+n),this.finishNode(e,"MetaProperty")},n.parseImportMetaProperty=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.expect(u.dot),"import"===t.name&&(this.isContextual("meta")?this.expectPlugin("importMeta"):this.hasPlugin("importMeta")||this.raise(t.start,"Dynamic imports require a parameter: import('a.js')")),this.inModule||this.raise(t.start,"import.meta may appear only with 'sourceType: \"module\"'",{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"}),this.sawUnambiguousESM=!0,this.parseMetaProperty(e,t,"meta")},n.parseLiteral=function(e,t,n,r){n=n||this.state.start,r=r||this.state.startLoc;var a=this.startNodeAt(n,r);return this.addExtra(a,"rawValue",e),this.addExtra(a,"raw",this.input.slice(n,this.state.end)),a.value=e,this.next(),this.finishNode(a,t)},n.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e},n.parseParenAndDistinguishExpression=function(e){var t,n=this.state.start,r=this.state.startLoc;this.expect(u.parenL);var a=this.state.maybeInArrowParameters,i=this.state.yieldOrAwaitInPossibleArrowParameters;this.state.maybeInArrowParameters=!0,this.state.yieldOrAwaitInPossibleArrowParameters=null;for(var s,o,c=this.state.start,l=this.state.startLoc,p=[],d={start:0},h={start:0},f=!0;!this.match(u.parenR);){if(f)f=!1;else if(this.expect(u.comma,h.start||null),this.match(u.parenR)){o=this.state.start;break}if(this.match(u.ellipsis)){var m=this.state.start,y=this.state.startLoc;if(s=this.state.start,p.push(this.parseParenItem(this.parseRest(),m,y)),this.match(u.comma)){var g=this.lookahead().type===u.parenR?"A trailing comma is not permitted after the rest element":"Rest parameter must be last formal parameter";this.raise(this.state.start,g)}break}p.push(this.parseMaybeAssign(!1,d,this.parseParenItem,h))}var D=this.state.start,_=this.state.startLoc;this.expect(u.parenR),this.state.maybeInArrowParameters=a;var v=this.startNodeAt(n,r);if(e&&this.shouldParseArrow()&&(v=this.parseArrow(v))){for(var b=0;b1?((t=this.startNodeAt(c,l)).expressions=p,this.finishNodeAt(t,"SequenceExpression",D,_)):t=p[0],this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",n),t},n.shouldParseArrow=function(){return!this.canInsertSemicolon()},n.parseArrow=function(e){if(this.eat(u.arrow))return e},n.parseParenItem=function(e,t,n){return e},n.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);if(this.eat(u.dot)){var n=this.parseMetaProperty(e,t,"target");if(!this.state.inFunction&&!this.state.inClassProperty){var r="new.target can only be used in functions";this.hasPlugin("classProperties")&&(r+=" or class properties"),this.raise(n.start,r)}return n}return e.callee=this.parseNoCallExpr(),"OptionalMemberExpression"!==e.callee.type&&"OptionalCallExpression"!==e.callee.type||this.raise(this.state.lastTokEnd,"constructors in/after an Optional Chain are not allowed"),this.eat(u.questionDot)&&this.raise(this.state.start,"constructors in/after an Optional Chain are not allowed"),this.parseNewArguments(e),this.finishNode(e,"NewExpression")},n.parseNewArguments=function(e){if(this.eat(u.parenL)){var t=this.parseExprList(u.parenR);this.toReferencedList(t),e.arguments=t}else e.arguments=[]},n.parseTemplateElement=function(e){var t=this.startNode();return null===this.state.value&&(e?this.state.invalidTemplateEscapePosition=null:this.raise(this.state.invalidTemplateEscapePosition||0,"Invalid escape sequence in template")),t.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),t.tail=this.match(u.backQuote),this.finishNode(t,"TemplateElement")},n.parseTemplate=function(e){var t=this.startNode();this.next(),t.expressions=[];var n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)this.expect(u.dollarBraceL),t.expressions.push(this.parseExpression()),this.expect(u.braceR),t.quasis.push(n=this.parseTemplateElement(e));return this.next(),this.finishNode(t,"TemplateLiteral")},n.parseObj=function(e,t){var n=[],r=Object.create(null),a=!0,i=this.startNode();i.properties=[],this.next();for(var s=null;!this.eat(u.braceR);){if(a)a=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;if(this.match(u.at))if(this.hasPlugin("decorators"))this.raise(this.state.start,"Stage 2 decorators disallow object literal property decorators");else for(;this.match(u.at);)n.push(this.parseDecorator());var o=this.startNode(),c=!1,l=!1,p=void 0,d=void 0;if(n.length&&(o.decorators=n,n=[]),this.match(u.ellipsis)){if(o=this.parseSpread(e?{start:0}:void 0),e&&this.toAssignable(o,!0,"object pattern"),i.properties.push(o),!e)continue;var h=this.state.start;if(null!==s)this.unexpected(s,"Cannot have multiple rest elements when destructuring");else{if(this.eat(u.braceR))break;if(!this.match(u.comma)||this.lookahead().type!==u.braceR){s=h;continue}this.unexpected(h,"A trailing comma is not permitted after the rest element")}}o.method=!1,(e||t)&&(p=this.state.start,d=this.state.startLoc),e||(c=this.eat(u.star));var f=this.state.containsEsc;if(!e&&this.isContextual("async")){c&&this.unexpected();var m=this.parseIdentifier();this.match(u.colon)||this.match(u.parenL)||this.match(u.braceR)||this.match(u.eq)||this.match(u.comma)?(o.key=m,o.computed=!1):(l=!0,c=this.eat(u.star),this.parsePropertyName(o))}else this.parsePropertyName(o);this.parseObjPropValue(o,p,d,c,l,e,t,f),this.checkPropClash(o,r),o.shorthand&&this.addExtra(o,"shorthand",!0),i.properties.push(o)}return null!==s&&this.unexpected(s,"The rest element has to be the last element when destructuring"),n.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},n.isGetterOrSetterMethod=function(e,t){return!t&&!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&(this.match(u.string)||this.match(u.num)||this.match(u.bracketL)||this.match(u.name)||!!this.state.type.keyword)},n.checkGetterSetterParams=function(e){var t="get"===e.kind?0:1,n=e.start;e.params.length!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&"RestElement"===e.params[0].type&&this.raise(n,"setter function argument must not be a rest parameter")},n.parseObjectMethod=function(e,t,n,r,a){return n||t||this.match(u.parenL)?(r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,"ObjectMethod")):!a&&this.isGetterOrSetterMethod(e,r)?((t||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(e),e):void 0},n.parseObjectProperty=function(e,t,n,r,a){return e.shorthand=!1,this.eat(u.colon)?(e.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,a),this.finishNode(e,"ObjectProperty")):e.computed||"Identifier"!==e.key.type?void 0:(this.checkReservedWord(e.key.name,e.key.start,!0,!0),r?e.value=this.parseMaybeDefault(t,n,e.key.__clone()):this.match(u.eq)&&a?(a.start||(a.start=this.state.start),e.value=this.parseMaybeDefault(t,n,e.key.__clone())):e.value=e.key.__clone(),e.shorthand=!0,this.finishNode(e,"ObjectProperty"))},n.parseObjPropValue=function(e,t,n,r,a,i,s,o){var u=this.parseObjectMethod(e,r,a,i,o)||this.parseObjectProperty(e,t,n,i,s);return u||this.unexpected(),u},n.parsePropertyName=function(e){if(this.eat(u.bracketL))e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR);else{var t=this.state.inPropertyName;this.state.inPropertyName=!0,e.key=this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseMaybePrivateName(),"PrivateName"!==e.key.type&&(e.computed=!1),this.state.inPropertyName=t}return e.key},n.initFunction=function(e,t){e.id=null,e.generator=!1,e.async=!!t},n.parseMethod=function(e,t,n,r,a){var i=this.state.inFunction,s=this.state.inMethod,o=this.state.inAsync,u=this.state.inGenerator;this.state.inFunction=!0,this.state.inMethod=e.kind||!0,this.state.inAsync=n,this.state.inGenerator=t,this.initFunction(e,n),e.generator=!!t;var c=r;return this.parseFunctionParams(e,c),this.parseFunctionBodyAndFinish(e,a),this.state.inFunction=i,this.state.inMethod=s,this.state.inAsync=o,this.state.inGenerator=u,e},n.parseArrowExpression=function(e,t,n){var r=this.state.yieldOrAwaitInPossibleArrowParameters;r&&("YieldExpression"===r.type?this.raise(r.start,"yield is not allowed in the parameters of an arrow function inside a generator"):this.raise(r.start,"await is not allowed in the parameters of an arrow function inside an async function"));var a=this.state.inFunction;this.state.inFunction=!0,this.initFunction(e,n),t&&this.setArrowFunctionParameters(e,t);var i=this.state.inAsync,s=this.state.inGenerator,o=this.state.maybeInArrowParameters;return this.state.inAsync=n,this.state.inGenerator=!1,this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.state.inAsync=i,this.state.inGenerator=s,this.state.inFunction=a,this.state.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")},n.setArrowFunctionParameters=function(e,t){e.params=this.toAssignableList(t,!0,"arrow function parameters")},n.isStrictBody=function(e){if("BlockStatement"===e.body.type&&e.body.directives.length)for(var t=0,n=e.body.directives;t" after pipeline body; arrow function in pipeline body must be parenthesized');if("PipelineTopicExpression"===t&&"SequenceExpression"===e.type)throw this.raise(n,"Pipeline body may not be a comma-separated sequence expression")},n.parseSmartPipelineBodyInStyle=function(e,t,n,r){var a=this.startNodeAt(n,r);switch(t){case"PipelineBareFunction":a.callee=e;break;case"PipelineBareConstructor":a.callee=e.callee;break;case"PipelineBareAwaitedFunction":a.callee=e.argument;break;case"PipelineTopicExpression":if(!this.topicReferenceWasUsedInCurrentTopicContext())throw this.raise(n,"Pipeline is in topic style but does not use topic reference");a.expression=e;break;default:throw this.raise(n,"Unknown pipeline style "+t)}return this.finishNode(a,t)},n.checkSmartPipelineBodyStyle=function(e){return e.type,this.isSimpleReference(e)?"PipelineBareFunction":"PipelineTopicExpression"},n.isSimpleReference=function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}},n.withTopicPermittingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},n.withTopicForbiddingContext=function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}},n.registerTopicReference=function(){this.state.topicContext.maxTopicIndex=0},n.primaryTopicReferenceIsAllowedInCurrentTopicContext=function(){return this.state.topicContext.maxNumOfResolvableTopics>=1},n.topicReferenceWasUsedInCurrentTopicContext=function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0},t}(function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.toAssignable=function(e,t,n){if(e)switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":e.type="ObjectPattern";for(var r=0;r0)for(var t=0,n=e.body.body;t=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?60===n&&this.state.exprAllowed?(++this.state.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.state.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:h(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},n.jsxReadNewLine=function(e){var t,n=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===n&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,t},n.jsxReadString=function(e){for(var t="",n=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):h(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}return t+=this.input.slice(n,this.state.pos++),this.finishToken(u.string,t)},n.jsxReadEntity=function(){for(var e,t="",n=0,r=this.input[this.state.pos],a=++this.state.pos;this.state.pos"):!N(a)&&N(i)?this.raise(i.start,"Expected corresponding JSX closing tag for <"+I(a.name)+">"):N(a)||N(i)||I(i.name)!==I(a.name)&&this.raise(i.start,"Expected corresponding JSX closing tag for <"+I(a.name)+">")}return N(a)?(n.openingFragment=a,n.closingFragment=i):(n.openingElement=a,n.closingElement=i),n.children=r,this.match(u.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"),N(a)?this.finishNode(n,"JSXFragment"):this.finishNode(n,"JSXElement")},n.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)},n.parseExprAtom=function(t){return this.match(u.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(u.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.state.input.charCodeAt(this.state.pos)?(this.finishToken(u.jsxTagStart),this.jsxParseElement()):e.prototype.parseExprAtom.call(this,t)},n.readToken=function(t){if(this.state.inPropertyName)return e.prototype.readToken.call(this,t);var n=this.curContext();if(n===g.j_expr)return this.jsxReadToken();if(n===g.j_oTag||n===g.j_cTag){if(k(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(u.jsxTagEnd);if((34===t||39===t)&&n===g.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed&&33!==this.state.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(u.jsxTagStart)):e.prototype.readToken.call(this,t)},n.updateContext=function(t){if(this.match(u.braceL)){var n=this.curContext();n===g.j_oTag?this.state.context.push(g.braceExpression):n===g.j_expr?this.state.context.push(g.templateQuasi):e.prototype.updateContext.call(this,t),this.state.exprAllowed=!0}else{if(!this.match(u.slash)||t!==u.jsxTagStart)return e.prototype.updateContext.call(this,t);this.state.context.length-=2,this.state.context.push(g.j_cTag),this.state.exprAllowed=!1}},t}(e)},flow:function(e){return function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).flowPragma=void 0,r}r(t,e);var n=t.prototype;return n.shouldParseTypes=function(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma},n.addComment=function(t){if(void 0===this.flowPragma){var n=Y.exec(t.value);if(n)if("flow"===n[1])this.flowPragma="flow";else{if("noflow"!==n[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else this.flowPragma=null}return e.prototype.addComment.call(this,t)},n.flowParseTypeInitialiser=function(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||u.colon);var n=this.flowParseType();return this.state.inType=t,n},n.flowParsePredicate=function(){var e=this.startNode(),t=this.state.startLoc,n=this.state.start;this.expect(u.modulo);var r=this.state.startLoc;return this.expectContextual("checks"),t.line===r.line&&t.column===r.column-1||this.raise(n,"Spaces between ´%´ and ´checks´ are not allowed here."),this.eat(u.parenL)?(e.value=this.parseExpression(),this.expect(u.parenR),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")},n.flowParseTypeAndPredicateInitialiser=function(){var e=this.state.inType;this.state.inType=!0,this.expect(u.colon);var t=null,n=null;return this.match(u.modulo)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(u.modulo)&&(n=this.flowParsePredicate())),[t,n]},n.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},n.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.isRelational("<")?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(u.parenL);var a=this.flowParseFunctionTypeParams();n.params=a.params,n.rest=a.rest,this.expect(u.parenR);var i=this.flowParseTypeAndPredicateInitialiser();return n.returnType=i[0],e.predicate=i[1],r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},n.flowParseDeclare=function(e,t){if(this.match(u._class))return this.flowParseDeclareClass(e);if(this.match(u._function))return this.flowParseDeclareFunction(e);if(this.match(u._var))return this.flowParseDeclareVariable(e);if(this.isContextual("module"))return this.lookahead().type===u.dot?this.flowParseDeclareModuleExports(e):(t&&this.unexpected(null,"`declare module` cannot be used inside another `declare module`"),this.flowParseDeclareModule(e));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(e);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(e);if(this.isContextual("interface"))return this.flowParseDeclareInterface(e);if(this.match(u._export))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()},n.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.semicolon(),this.finishNode(e,"DeclareVariable")},n.flowParseDeclareModule=function(e){var t=this;this.next(),this.match(u.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var n=e.body=this.startNode(),r=n.body=[];for(this.expect(u.braceL);!this.match(u.braceR);){var a=this.startNode();if(this.match(u._import)){var i=this.lookahead();"type"!==i.value&&"typeof"!==i.value&&this.unexpected(null,"Imports within a `declare module` body must always be `import type` or `import typeof`"),this.next(),this.parseImport(a)}else this.expectContextual("declare","Only declares and type imports are allowed inside declare module"),a=this.flowParseDeclare(a,!0);r.push(a)}this.expect(u.braceR),this.finishNode(n,"BlockStatement");var s=null,o=!1,c="Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module";return r.forEach(function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(o&&t.unexpected(e.start,"Duplicate `declare module.exports` statement"),"ES"===s&&t.unexpected(e.start,c),s="CommonJS",o=!0):("CommonJS"===s&&t.unexpected(e.start,c),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")},n.flowParseDeclareExportDeclaration=function(e,t){if(this.expect(u._export),this.eat(u._default))return this.match(u._function)||this.match(u._class)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u._const)||this.match(u._let)||(this.isContextual("type")||this.isContextual("interface"))&&!t){var n=this.state.value,r=P[n];this.unexpected(this.state.start,"`declare export "+n+"` is not supported. Use `"+r+"` instead")}if(this.match(u._var)||this.match(u._function)||this.match(u._class)||this.isContextual("opaque"))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(u.star)||this.match(u.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(e=this.parseExport(e)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e;throw this.unexpected()},n.flowParseDeclareModuleExports=function(e){return this.expectContextual("module"),this.expect(u.dot),this.expectContextual("exports"),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")},n.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},n.flowParseDeclareOpaqueType=function(e){return this.next(),this.flowParseOpaqueType(e,!0),this.finishNode(e,"DeclareOpaqueType")},n.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},n.flowParseInterfaceish=function(e,t){if(void 0===t&&(t=!1),e.id=this.flowParseRestrictedIdentifier(!t),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.implements=[],e.mixins=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(u.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}if(this.isContextual("implements")){this.next();do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})},n.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},n.flowParseInterface=function(e){return this.flowParseInterfaceish(e),this.finishNode(e,"InterfaceDeclaration")},n.checkNotUnderscore=function(e){if("_"===e)throw this.unexpected(null,"`_` is only allowed as a type argument to call or new")},n.checkReservedType=function(e,t){S.indexOf(e)>-1&&this.raise(t,"Cannot overwrite reserved type "+e)},n.flowParseRestrictedIdentifier=function(e){return this.checkReservedType(this.state.value,this.state.start),this.parseIdentifier(e)},n.flowParseTypeAlias=function(e){return e.id=this.flowParseRestrictedIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(u.eq),this.semicolon(),this.finishNode(e,"TypeAlias")},n.flowParseOpaqueType=function(e,t){return this.expectContextual("type"),e.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(u.colon)&&(e.supertype=this.flowParseTypeInitialiser(u.colon)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(u.eq)),this.semicolon(),this.finishNode(e,"OpaqueType")},n.flowParseTypeParameter=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!1),!e&&t)throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");var n=this.state.start,r=this.startNode(),a=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return r.name=i.name,r.variance=a,r.bound=i.typeAnnotation,this.match(u.eq)?e?(this.eat(u.eq),r.default=this.flowParseType()):this.unexpected():t&&this.unexpected(n,"Type parameter declaration needs a default, since a preceding type parameter declaration has a default."),this.finishNode(r,"TypeParameter")},n.flowParseTypeParameterDeclaration=function(e){void 0===e&&(e=!0);var t=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected();var r=!1;do{var a=this.flowParseTypeParameter(e,r);n.params.push(a),a.default&&(r=!0),this.isRelational(">")||this.expect(u.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=t,this.finishNode(n,"TypeParameterDeclaration")},n.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expectRelational("<");var n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)e.params.push(this.flowParseType()),this.isRelational(">")||this.expect(u.comma);return this.state.noAnonFunctionType=n,this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},n.flowParseTypeParameterInstantiationCallOrNew=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(u.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},n.flowParseInterfaceType=function(){var e=this.startNode();if(this.expectContextual("interface"),e.extends=[],this.eat(u._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")},n.flowParseObjectPropertyKey=function(){return this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0)},n.flowParseObjectTypeIndexer=function(e,t,n){return e.static=t,this.lookahead().type===u.colon?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(u.bracketR),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")},n.flowParseObjectTypeInternalSlot=function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(u.bracketR),this.expect(u.bracketR),this.isRelational("<")||this.match(u.parenL)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start))):(e.method=!1,this.eat(u.question)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")},n.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration(!1)),this.expect(u.parenL);!this.match(u.parenR)&&!this.match(u.ellipsis);)e.params.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(u.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},n.flowParseObjectTypeCallProperty=function(e,t){var n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")},n.flowParseObjectType=function(e){var t=e.allowStatic,n=e.allowExact,r=e.allowSpread,a=e.allowProto,i=e.allowInexact,s=this.state.inType;this.state.inType=!0;var o,c,l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];var p=!1;for(n&&this.match(u.braceBarL)?(this.expect(u.braceBarL),o=u.braceBarR,c=!0):(this.expect(u.braceL),o=u.braceR,c=!1),l.exact=c;!this.match(o);){var d=!1,h=null,f=this.startNode();if(a&&this.isContextual("proto")){var m=this.lookahead();m.type!==u.colon&&m.type!==u.question&&(this.next(),h=this.state.start,t=!1)}if(t&&this.isContextual("static")){var y=this.lookahead();y.type!==u.colon&&y.type!==u.question&&(this.next(),d=!0)}var g=this.flowParseVariance();if(this.eat(u.bracketL))null!=h&&this.unexpected(h),this.eat(u.bracketL)?(g&&this.unexpected(g.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(f,d))):l.indexers.push(this.flowParseObjectTypeIndexer(f,d,g));else if(this.match(u.parenL)||this.isRelational("<"))null!=h&&this.unexpected(h),g&&this.unexpected(g.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(f,d));else{var D="init";if(this.isContextual("get")||this.isContextual("set")){var _=this.lookahead();_.type!==u.name&&_.type!==u.string&&_.type!==u.num||(D=this.state.value,this.next())}var v=this.flowParseObjectTypeProperty(f,d,h,g,D,r,i);null===v?p=!0:l.properties.push(v)}this.flowObjectTypeSemicolon()}this.expect(o),r&&(l.inexact=p);var b=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=s,b},n.flowParseObjectTypeProperty=function(e,t,n,r,a,i,s){if(this.match(u.ellipsis)){i||this.unexpected(null,"Spread operator cannot appear in class or interface definitions"),null!=n&&this.unexpected(n),r&&this.unexpected(r.start,"Spread properties cannot have variance"),this.expect(u.ellipsis);var o=this.eat(u.comma)||this.eat(u.semi);if(this.match(u.braceR)){if(s)return null;this.unexpected(null,"Explicit inexact syntax is only allowed inside inexact objects")}return this.match(u.braceBarR)&&this.unexpected(null,"Explicit inexact syntax cannot appear inside an explicit exact object type"),o&&this.unexpected(null,"Explicit inexact syntax must appear at the end of an inexact object"),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty")}e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=a;var c=!1;return this.isRelational("<")||this.match(u.parenL)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.start,e.loc.start)),"get"!==a&&"set"!==a||this.flowCheckGetterSetterParams(e)):("init"!==a&&this.unexpected(),e.method=!1,this.eat(u.question)&&(c=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=c,this.finishNode(e,"ObjectTypeProperty")},n.flowCheckGetterSetterParams=function(e){var t="get"===e.kind?0:1,n=e.start;e.value.params.length+(e.value.rest?1:0)!==t&&("get"===e.kind?this.raise(n,"getter must not have any formal parameters"):this.raise(n,"setter must have exactly one formal parameter")),"set"===e.kind&&e.value.rest&&this.raise(n,"setter function argument must not be a rest parameter")},n.flowObjectTypeSemicolon=function(){this.eat(u.semi)||this.eat(u.comma)||this.match(u.braceR)||this.match(u.braceBarR)||this.unexpected()},n.flowParseQualifiedTypeIdentifier=function(e,t,n){e=e||this.state.start,t=t||this.state.startLoc;for(var r=n||this.parseIdentifier();this.eat(u.dot);){var a=this.startNodeAt(e,t);a.qualification=r,a.id=this.parseIdentifier(),r=this.finishNode(a,"QualifiedTypeIdentifier")}return r},n.flowParseGenericType=function(e,t,n){var r=this.startNodeAt(e,t);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t,n),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")},n.flowParseTypeofType=function(){var e=this.startNode();return this.expect(u._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},n.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(u.bracketL);this.state.pos0){var D=l.concat();if(g.length>0){this.state=c,this.state.noArrowAt=D;for(var _=0;_1&&this.raise(c.start,"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate."),f&&1===y.length){this.state=c,this.state.noArrowAt=D.concat(y[0].start);var E=this.tryParseConditionalConsequent();h=E.consequent,f=E.failed}this.getArrowLikeExpressions(h,!0)}return this.state.noArrowAt=l,this.expect(u.colon),p.test=t,p.consequent=h,p.alternate=this.forwardNoArrowParamsConversionAt(p,function(){return s.parseMaybeAssign(n,void 0,void 0,void 0)}),this.finishNode(p,"ConditionalExpression")},n.tryParseConditionalConsequent=function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssign(),t=!this.match(u.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}},n.getArrowLikeExpressions=function(t,n){for(var r=this,a=[t],i=[];0!==a.length;){var s=a.pop();"ArrowFunctionExpression"===s.type?(s.typeParameters||!s.returnType?(this.toAssignableList(s.params,!0,"arrow function parameters"),e.prototype.checkFunctionNameAndParams.call(this,s,!0)):i.push(s),a.push(s.body)):"ConditionalExpression"===s.type&&(a.push(s.consequent),a.push(s.alternate))}if(n){for(var o=0;o1)&&t||this.raise(r.typeAnnotation.start,"The type cast expression is expected to be wrapped with parenthesis")}return e},n.checkLVal=function(t,n,r,a){if("TypeCastExpression"!==t.type)return e.prototype.checkLVal.call(this,t,n,r,a)},n.parseClassProperty=function(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassProperty.call(this,t)},n.parseClassPrivateProperty=function(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),e.prototype.parseClassPrivateProperty.call(this,t)},n.isClassMethod=function(){return this.isRelational("<")||e.prototype.isClassMethod.call(this)},n.isClassProperty=function(){return this.match(u.colon)||e.prototype.isClassProperty.call(this)},n.isNonstaticConstructor=function(t){return!this.match(u.colon)&&e.prototype.isNonstaticConstructor.call(this,t)},n.pushClassMethod=function(t,n,r,a,i){n.variance&&this.unexpected(n.variance.start),delete n.variance,this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterDeclaration(!1)),e.prototype.pushClassMethod.call(this,t,n,r,a,i)},n.pushClassPrivateMethod=function(t,n,r,a){n.variance&&this.unexpected(n.variance.start),delete n.variance,this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),e.prototype.pushClassPrivateMethod.call(this,t,n,r,a)},n.parseClassSuper=function(t){if(e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();var n=t.implements=[];do{var r=this.startNode();r.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,n.push(this.finishNode(r,"ClassImplements"))}while(this.eat(u.comma))}},n.parsePropertyName=function(t){var n=this.flowParseVariance(),r=e.prototype.parsePropertyName.call(this,t);return t.variance=n,r},n.parseObjPropValue=function(t,n,r,a,i,s,o,c){var l;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&(l=this.flowParseTypeParameterDeclaration(!1),this.match(u.parenL)||this.unexpected()),e.prototype.parseObjPropValue.call(this,t,n,r,a,i,s,o,c),l&&((t.value||t).typeParameters=l)},n.parseAssignableListItemTypes=function(e){if(this.eat(u.question)){if("Identifier"!==e.type)throw this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature.");e.optional=!0}return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),this.finishNode(e,e.type),e},n.parseMaybeDefault=function(t,n,r){var a=e.prototype.parseMaybeDefault.call(this,t,n,r);return"AssignmentPattern"===a.type&&a.typeAnnotation&&a.right.start")}throw new Error("Unreachable")},n.tsParseList=function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n},n.tsParseDelimitedList=function(e,t){return ne(this.tsParseDelimitedListWorker(e,t,!0))},n.tsTryParseDelimitedList=function(e,t){return this.tsParseDelimitedListWorker(e,t,!1)},n.tsParseDelimitedListWorker=function(e,t,n){for(var r=[];!this.tsIsListTerminator(e);){var a=t();if(null==a)return;if(r.push(a),!this.eat(u.comma)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(u.comma))}}return r},n.tsParseBracketedList=function(e,t,n,r){r||(n?this.expect(u.bracketL):this.expectRelational("<"));var a=this.tsParseDelimitedList(e,t);return n?this.expect(u.bracketR):this.expectRelational(">"),a},n.tsParseEntityName=function(e){for(var t=this.parseIdentifier();this.eat(u.dot);){var n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t},n.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},n.tsParseThisTypePredicate=function(e){this.next();var t=this.startNode();return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.finishNode(t,"TSTypePredicate")},n.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},n.tsParseTypeQuery=function(){var e=this.startNode();return this.expect(u._typeof),e.exprName=this.tsParseEntityName(!0),this.finishNode(e,"TSTypeQuery")},n.tsParseTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsEatThenParseType(u._extends),e.default=this.tsEatThenParseType(u.eq),this.finishNode(e,"TSTypeParameter")},n.tsTryParseTypeParameters=function(){if(this.isRelational("<"))return this.tsParseTypeParameters()},n.tsParseTypeParameters=function(){var e=this.startNode();return this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected(),e.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),this.finishNode(e,"TSTypeParameterDeclaration")},n.tsFillSignature=function(e,t){var n=e===u.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(u.parenL),t.parameters=this.tsParseBindingListForSignature(),n?t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))},n.tsParseBindingListForSignature=function(){var e=this;return this.parseBindingList(u.parenR).map(function(t){if("Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type)throw e.unexpected(t.start,"Name in a signature must be an Identifier or ObjectPattern, instead got "+t.type);return t})},n.tsParseTypeMemberSemicolon=function(){this.eat(u.comma)||this.semicolon()},n.tsParseSignatureMember=function(e){var t=this.startNode();return"TSConstructSignatureDeclaration"===e&&this.expect(u._new),this.tsFillSignature(u.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},n.tsIsUnambiguouslyIndexSignature=function(){return this.next(),this.eat(u.name)&&this.match(u.colon)},n.tsTryParseIndexSignature=function(e){if(this.match(u.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(u.bracketL);var t=this.parseIdentifier();this.expect(u.colon),t.typeAnnotation=this.tsParseTypeAnnotation(!1),this.expect(u.bracketR),e.parameters=[t];var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},n.tsParsePropertyOrMethodSignature=function(e,t){this.parsePropertyName(e),this.eat(u.question)&&(e.optional=!0);var n=e;if(t||!this.match(u.parenL)&&!this.isRelational("<")){var r=n;t&&(r.readonly=!0);var a=this.tsTryParseTypeAnnotation();return a&&(r.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSPropertySignature")}var i=n;return this.tsFillSignature(u.colon,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSMethodSignature")},n.tsParseTypeMember=function(){if(this.match(u.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration");if(this.match(u._new)&&this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this)))return this.tsParseSignatureMember("TSConstructSignatureDeclaration");var e=this.startNode(),t=!!this.tsParseModifier(["readonly"]),n=this.tsTryParseIndexSignature(e);return n?(t&&(e.readonly=!0),n):this.tsParsePropertyOrMethodSignature(e,t)},n.tsIsStartOfConstructSignature=function(){return this.next(),this.match(u.parenL)||this.isRelational("<")},n.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},n.tsParseObjectTypeMembers=function(){this.expect(u.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(u.braceR),e},n.tsIsStartOfMappedType=function(){return this.next(),this.eat(u.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(u.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(u._in))))},n.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.parseIdentifierName(e.start),e.constraint=this.tsExpectThenParseType(u._in),this.finishNode(e,"TSTypeParameter")},n.tsParseMappedType=function(){var e=this.startNode();return this.expect(u.braceL),this.match(u.plusMin)?(e.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(u.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),this.expect(u.bracketR),this.match(u.plusMin)?(e.optional=this.state.value,this.next(),this.expect(u.question)):this.eat(u.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(u.braceR),this.finishNode(e,"TSMappedType")},n.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var n=!1;return t.elementTypes.forEach(function(r,a){"TSRestType"===r.type?a!==t.elementTypes.length-1&&e.raise(r.start,"A rest element must be last in a tuple type."):"TSOptionalType"===r.type?n=!0:n&&e.raise(r.start,"A required element cannot follow an optional element.")}),this.finishNode(t,"TSTupleType")},n.tsParseTupleElementType=function(){if(this.match(u.ellipsis)){var e=this.startNode();return this.next(),e.typeAnnotation=this.tsParseType(),this.finishNode(e,"TSRestType")}var t=this.tsParseType();if(this.eat(u.question)){var n=this.startNodeAtNode(t);return n.typeAnnotation=t,this.finishNode(n,"TSOptionalType")}return t},n.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(u.parenL),e.typeAnnotation=this.tsParseType(),this.expect(u.parenR),this.finishNode(e,"TSParenthesizedType")},n.tsParseFunctionOrConstructorType=function(e){var t=this.startNode();return"TSConstructorType"===e&&this.expect(u._new),this.tsFillSignature(u.arrow,t),this.finishNode(t,e)},n.tsParseLiteralTypeNode=function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.state.type){case u.num:return e.parseLiteral(e.state.value,"NumericLiteral");case u.string:return e.parseLiteral(e.state.value,"StringLiteral");case u._true:case u._false:return e.parseBooleanLiteral();default:throw e.unexpected()}}(),this.finishNode(t,"TSLiteralType")},n.tsParseNonArrayType=function(){switch(this.state.type){case u.name:case u._void:case u._null:var e=this.match(u._void)?"TSVoidKeyword":this.match(u._null)?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==e&&this.lookahead().type!==u.dot){var t=this.startNode();return this.next(),this.finishNode(t,e)}return this.tsParseTypeReference();case u.string:case u.num:case u._true:case u._false:return this.tsParseLiteralTypeNode();case u.plusMin:if("-"===this.state.value){var n=this.startNode();if(this.next(),!this.match(u.num))throw this.unexpected();return n.literal=this.parseLiteral(-this.state.value,"NumericLiteral",n.start,n.loc.start),this.finishNode(n,"TSLiteralType")}break;case u._this:var r=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r;case u._typeof:return this.tsParseTypeQuery();case u.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case u.bracketL:return this.tsParseTupleType();case u.parenL:return this.tsParseParenthesizedType()}throw this.unexpected()},n.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(u.bracketL);)if(this.match(u.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(u.bracketR),e=this.finishNode(t,"TSArrayType")}else{var n=this.startNodeAtNode(e);n.objectType=e,n.indexType=this.tsParseType(),this.expect(u.bracketR),e=this.finishNode(n,"TSIndexedAccessType")}return e},n.tsParseTypeOperator=function(e){var t=this.startNode();return this.expectContextual(e),t.operator=e,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),this.finishNode(t,"TSTypeOperator")},n.tsParseInferType=function(){var e=this.startNode();this.expectContextual("infer");var t=this.startNode();return t.name=this.parseIdentifierName(t.start),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")},n.tsParseTypeOperatorOrHigher=function(){var e=this,t=["keyof","unique"].find(function(t){return e.isContextual(t)});return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()},n.tsParseUnionOrIntersectionType=function(e,t,n){this.eat(n);var r=t();if(this.match(n)){for(var a=[r];this.eat(n);)a.push(t());var i=this.startNodeAtNode(r);i.types=a,r=this.finishNode(i,e)}return r},n.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),u.bitwiseAND)},n.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),u.bitwiseOR)},n.tsIsStartOfFunctionType=function(){return!!this.isRelational("<")||this.match(u.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},n.tsSkipParameterStart=function(){if(this.match(u.name)||this.match(u._this))return this.next(),!0;if(this.match(u.braceL)){var e=1;for(this.next();e>0;)this.match(u.braceL)?++e:this.match(u.braceR)&&--e,this.next();return!0}return!1},n.tsIsUnambiguouslyStartOfFunctionType=function(){if(this.next(),this.match(u.parenR)||this.match(u.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(u.colon)||this.match(u.comma)||this.match(u.question)||this.match(u.eq))return!0;if(this.match(u.parenR)&&(this.next(),this.match(u.arrow)))return!0}return!1},n.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType(function(){var n=t.startNode();t.expect(e);var r=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!r)return t.tsParseTypeAnnotation(!1,n);var a=t.tsParseTypeAnnotation(!1),i=t.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=a,n.typeAnnotation=t.finishNode(i,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")})},n.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(u.colon)?this.tsParseTypeOrTypePredicateAnnotation(u.colon):void 0},n.tsTryParseTypeAnnotation=function(){return this.match(u.colon)?this.tsParseTypeAnnotation():void 0},n.tsTryParseType=function(){return this.tsEatThenParseType(u.colon)},n.tsParseTypePredicatePrefix=function(){var e=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},n.tsParseTypeAnnotation=function(e,t){var n=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType(function(){e&&n.expect(u.colon),t.typeAnnotation=n.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")},n.tsParseType=function(){re(this.state.inType);var e=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(u._extends))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsParseNonConditionalType(),this.expect(u.question),t.trueType=this.tsParseType(),this.expect(u.colon),t.falseType=this.tsParseType(),this.finishNode(t,"TSConditionalType")},n.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(u._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()},n.tsParseTypeAssertion=function(){var e=this,t=this.startNode();return t.typeAnnotation=this.tsInType(function(){return e.tsParseType()}),this.expectRelational(">"),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")},n.tsParseHeritageClause=function(){return this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this))},n.tsParseExpressionWithTypeArguments=function(){var e=this.startNode();return e.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")},n.tsParseInterfaceDeclaration=function(e){e.id=this.parseIdentifier(),e.typeParameters=this.tsTryParseTypeParameters(),this.eat(u._extends)&&(e.extends=this.tsParseHeritageClause());var t=this.startNode();return t.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(t,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},n.tsParseTypeAliasDeclaration=function(e){return e.id=this.parseIdentifier(),e.typeParameters=this.tsTryParseTypeParameters(),e.typeAnnotation=this.tsExpectThenParseType(u.eq),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},n.tsInNoContext=function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}},n.tsInType=function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}},n.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},n.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType(function(){return t.expect(e)})},n.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType(function(){return e.next()})},n.tsDoThenParseType=function(e){var t=this;return this.tsInType(function(){return e(),t.tsParseType()})},n.tsParseEnumMember=function(){var e=this.startNode();return e.id=this.match(u.string)?this.parseLiteral(this.state.value,"StringLiteral"):this.parseIdentifier(!0),this.eat(u.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")},n.tsParseEnumDeclaration=function(e,t){return t&&(e.const=!0),e.id=this.parseIdentifier(),this.expect(u.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(u.braceR),this.finishNode(e,"TSEnumDeclaration")},n.tsParseModuleBlock=function(){var e=this.startNode();return this.expect(u.braceL),this.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,u.braceR),this.finishNode(e,"TSModuleBlock")},n.tsParseModuleOrNamespaceDeclaration=function(e){if(e.id=this.parseIdentifier(),this.eat(u.dot)){var t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t),e.body=t}else e.body=this.tsParseModuleBlock();return this.finishNode(e,"TSModuleDeclaration")},n.tsParseAmbientExternalModuleDeclaration=function(e){return this.isContextual("global")?(e.global=!0,e.id=this.parseIdentifier()):this.match(u.string)?e.id=this.parseExprAtom():this.unexpected(),this.match(u.braceL)?e.body=this.tsParseModuleBlock():this.semicolon(),this.finishNode(e,"TSModuleDeclaration")},n.tsParseImportEqualsDeclaration=function(e,t){return e.isExport=t||!1,e.id=this.parseIdentifier(),this.expect(u.eq),e.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")},n.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookahead().type===u.parenL},n.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},n.tsParseExternalModuleReference=function(){var e=this.startNode();if(this.expectContextual("require"),this.expect(u.parenL),!this.match(u.string))throw this.unexpected();return e.expression=this.parseLiteral(this.state.value,"StringLiteral"),this.expect(u.parenR),this.finishNode(e,"TSExternalModuleReference")},n.tsLookAhead=function(e){var t=this.state.clone(),n=e();return this.state=t,n},n.tsTryParseAndCatch=function(e){var t=this.state.clone();try{return e()}catch(e){if(e instanceof SyntaxError)return void(this.state=t);throw e}},n.tsTryParse=function(e){var t=this.state.clone(),n=e();return void 0!==n&&!1!==n?n:void(this.state=t)},n.nodeWithSamePosition=function(e,t){var n=this.startNodeAtNode(e);return n.type=t,n.end=e.end,n.loc.end=e.loc.end,e.leadingComments&&(n.leadingComments=e.leadingComments),e.trailingComments&&(n.trailingComments=e.trailingComments),e.innerComments&&(n.innerComments=e.innerComments),n},n.tsTryParseDeclare=function(e){switch(this.state.type){case u._function:return this.next(),this.parseFunction(e,!0);case u._class:return this.parseClass(e,!0,!1);case u._const:if(this.match(u._const)&&this.isLookaheadContextual("enum"))return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(e,!0);case u._var:case u._let:return this.parseVarStatement(e,this.state.type);case u.name:var t=this.state.value;return"global"===t?this.tsParseAmbientExternalModuleDeclaration(e):this.tsParseDeclaration(e,t,!0)}},n.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)},n.tsParseExpressionStatement=function(e,t){switch(t.name){case"declare":var n=this.tsTryParseDeclare(e);if(n)return n.declare=!0,n;break;case"global":if(this.match(u.braceL)){var r=e;return r.global=!0,r.id=t,r.body=this.tsParseModuleBlock(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1)}},n.tsParseDeclaration=function(e,t,n){switch(t){case"abstract":if(n||this.match(u._class)){var r=e;return r.abstract=!0,n&&this.next(),this.parseClass(r,!0,!1)}break;case"enum":if(n||this.match(u.name))return n&&this.next(),this.tsParseEnumDeclaration(e,!1);break;case"interface":if(n||this.match(u.name))return n&&this.next(),this.tsParseInterfaceDeclaration(e);break;case"module":if(n&&this.next(),this.match(u.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(n||this.match(u.name))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"namespace":if(n||this.match(u.name))return n&&this.next(),this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(n||this.match(u.name))return n&&this.next(),this.tsParseTypeAliasDeclaration(e)}},n.tsTryParseGenericAsyncArrowFunction=function(t,n){var r=this,a=this.tsTryParseAndCatch(function(){var a=r.startNodeAt(t,n);return a.typeParameters=r.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(r,a),a.returnType=r.tsTryParseTypeOrTypePredicateAnnotation(),r.expect(u.arrow),a});if(a){var i=this.state.inAsync,s=this.state.inGenerator;return this.state.inAsync=!0,this.state.inGenerator=!1,a.id=null,a.generator=!1,a.expression=!0,a.async=!0,this.parseFunctionBody(a,!0),this.state.inAsync=i,this.state.inGenerator=s,this.finishNode(a,"ArrowFunctionExpression")}},n.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType(function(){return e.tsInNoContext(function(){return e.expectRelational("<"),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))})}),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")},n.tsIsDeclarationStart=function(){if(this.match(u.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1},n.isExportDefaultSpecifier=function(){return!this.tsIsDeclarationStart()&&e.prototype.isExportDefaultSpecifier.call(this)},n.parseAssignableListItem=function(e,t){var n,r=!1;e&&(n=this.parseAccessModifier(),r=!!this.tsParseModifier(["readonly"]));var a=this.parseMaybeDefault();this.parseAssignableListItemTypes(a);var i=this.parseMaybeDefault(a.start,a.loc.start,a);if(n||r){var s=this.startNodeAtNode(i);if(t.length&&(s.decorators=t),n&&(s.accessibility=n),r&&(s.readonly=r),"Identifier"!==i.type&&"AssignmentPattern"!==i.type)throw this.raise(s.start,"A parameter property may not be declared using a binding pattern.");return s.parameter=i,this.finishNode(s,"TSParameterProperty")}return t.length&&(a.decorators=t),i},n.parseFunctionBodyAndFinish=function(t,n,r){!r&&this.match(u.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(u.colon));var a="FunctionDeclaration"===n?"TSDeclareFunction":"ClassMethod"===n?"TSDeclareMethod":void 0;a&&!this.match(u.braceL)&&this.isLineTerminator()?this.finishNode(t,a):e.prototype.parseFunctionBodyAndFinish.call(this,t,n,r)},n.parseSubscript=function(t,n,r,a,i){var s=this;if(!this.hasPrecedingLineBreak()&&this.match(u.bang)){this.state.exprAllowed=!1,this.next();var o=this.startNodeAt(n,r);return o.expression=t,this.finishNode(o,"TSNonNullExpression")}if(this.isRelational("<")){var c=this.tsTryParseAndCatch(function(){if(!a&&s.atPossibleAsync(t)){var e=s.tsTryParseGenericAsyncArrowFunction(n,r);if(e)return e}var o=s.startNodeAt(n,r);o.callee=t;var c=s.tsParseTypeArguments();if(c){if(!a&&s.eat(u.parenL))return o.arguments=s.parseCallExpressionArguments(u.parenR,!1),o.typeParameters=c,s.finishCallExpression(o);if(s.match(u.backQuote))return s.parseTaggedTemplateExpression(n,r,t,i,c)}s.unexpected()});if(c)return c}return e.prototype.parseSubscript.call(this,t,n,r,a,i)},n.parseNewArguments=function(t){var n=this;if(this.isRelational("<")){var r=this.tsTryParseAndCatch(function(){var e=n.tsParseTypeArguments();return n.match(u.parenL)||n.unexpected(),e});r&&(t.typeParameters=r)}e.prototype.parseNewArguments.call(this,t)},n.parseExprOp=function(t,n,r,a,i){if(ne(u._in.binop)>a&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){var s=this.startNodeAt(n,r);return s.expression=t,s.typeAnnotation=this.tsNextThenParseType(),this.finishNode(s,"TSAsExpression"),this.parseExprOp(s,n,r,a,i)}return e.prototype.parseExprOp.call(this,t,n,r,a,i)},n.checkReservedWord=function(e,t,n,r){},n.checkDuplicateExports=function(){},n.parseImport=function(t){return this.match(u.name)&&this.lookahead().type===u.eq?this.tsParseImportEqualsDeclaration(t):e.prototype.parseImport.call(this,t)},n.parseExport=function(t){if(this.match(u._import))return this.expect(u._import),this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(u.eq)){var n=t;return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"TSExportAssignment")}if(this.eatContextual("as")){var r=t;return this.expectContextual("namespace"),r.id=this.parseIdentifier(),this.semicolon(),this.finishNode(r,"TSNamespaceExportDeclaration")}return e.prototype.parseExport.call(this,t)},n.isAbstractClass=function(){return this.isContextual("abstract")&&this.lookahead().type===u._class},n.parseExportDefaultExpression=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),this.parseClass(t,!0,!0),t.abstract=!0,t}if("interface"===this.state.value){var n=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(n)return n}return e.prototype.parseExportDefaultExpression.call(this)},n.parseStatementContent=function(t,n){if(this.state.type===u._const){var r=this.lookahead();if(r.type===u.name&&"enum"===r.value){var a=this.startNode();return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(a,!0)}}return e.prototype.parseStatementContent.call(this,t,n)},n.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},n.parseClassMember=function(t,n,r){var a=this.parseAccessModifier();a&&(n.accessibility=a),e.prototype.parseClassMember.call(this,t,n,r)},n.parseClassMemberWithIsStatic=function(t,n,r,a){var i=n,s=n,o=n,u=!1,c=!1;switch(this.tsParseModifier(["abstract","readonly"])){case"readonly":c=!0,u=!!this.tsParseModifier(["abstract"]);break;case"abstract":u=!0,c=!!this.tsParseModifier(["readonly"])}if(u&&(i.abstract=!0),c&&(o.readonly=!0),!u&&!a&&!i.accessibility){var l=this.tsTryParseIndexSignature(n);if(l)return void t.body.push(l)}if(c)return i.static=a,this.parseClassPropertyName(s),this.parsePostMemberNameModifiers(i),void this.pushClassProperty(t,s);e.prototype.parseClassMemberWithIsStatic.call(this,t,n,r,a)},n.parsePostMemberNameModifiers=function(e){this.eat(u.question)&&(e.optional=!0)},n.parseExpressionStatement=function(t,n){return("Identifier"===n.type?this.tsParseExpressionStatement(t,n):void 0)||e.prototype.parseExpressionStatement.call(this,t,n)},n.shouldParseExportDeclaration=function(){return!!this.tsIsDeclarationStart()||e.prototype.shouldParseExportDeclaration.call(this)},n.parseConditional=function(t,n,r,a,i){if(!i||!this.match(u.question))return e.prototype.parseConditional.call(this,t,n,r,a,i);var s=this.state.clone();try{return e.prototype.parseConditional.call(this,t,n,r,a)}catch(e){if(!(e instanceof SyntaxError))throw e;return this.state=s,i.start=e.pos||this.state.start,t}},n.parseParenItem=function(t,n,r){if(t=e.prototype.parseParenItem.call(this,t,n,r),this.eat(u.question)&&(t.optional=!0),this.match(u.colon)){var a=this.startNodeAt(n,r);return a.expression=t,a.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(a,"TSTypeCastExpression")}return t},n.parseExportDeclaration=function(t){var n,r=this.eatContextual("declare");return this.match(u.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=e.prototype.parseExportDeclaration.call(this,t)),n&&r&&(n.declare=!0),n},n.parseClassId=function(t,n,r){if(n&&!r||!this.isContextual("implements")){e.prototype.parseClassId.apply(this,arguments);var a=this.tsTryParseTypeParameters();a&&(t.typeParameters=a)}},n.parseClassProperty=function(t){!t.optional&&this.eat(u.bang)&&(t.definite=!0);var n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),e.prototype.parseClassProperty.call(this,t)},n.pushClassMethod=function(t,n,r,a,i){var s=this.tsTryParseTypeParameters();s&&(n.typeParameters=s),e.prototype.pushClassMethod.call(this,t,n,r,a,i)},n.pushClassPrivateMethod=function(t,n,r,a){var i=this.tsTryParseTypeParameters();i&&(n.typeParameters=i),e.prototype.pushClassPrivateMethod.call(this,t,n,r,a)},n.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause())},n.parseObjPropValue=function(t){var n,r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r);for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;se).join("\n\n")}},function(e,t){const n={jsonpath:'import jsonpath from "https://jslib.k6.io/jsonpath/1.0.2/index.js"',formurlencoded:'import formurlencoded from "https://jslib.k6.io/form-urlencoded/3.0.0/index.js"'};e.exports=function(e){if(function(e){return Object.values(e).find(e=>e)}(e)){const t=[];return function(e,t){const n=["sleep"];(e.check||e.group)&&(e.check&&n.push("check"),e.group&&n.push("group"));const r=n.join(", ");t.push(`import { ${r} } from "k6";`)}(e,t),function(e,t){e.http&&t.push('import http from "k6/http";')}(e,t),function(e,t){(e.formUrlEncode||e.jsonpath||e.MimeBuilder)&&(t.length>0&&t.push("\n"),e.formUrlEncode&&t.push(n.formurlencoded),e.jsonpath&&t.push(n.jsonpath))}(e,t),t.join("\n")}return null}},function(e,t,n){const r=n(9);e.exports=function(e){return e.comment.length?r(e.comment.join("\n")):null}},function(e,t,n){const r=n(165),a=n(251),i=n(252),s=n(307);e.exports=function(e){const t=[a(e.declares),s(e),i(e),"sleep(1);"].filter(e=>e);return`export default function() ${r(t)}`}},function(e,t){e.exports=function(e){if(e.size)return`let ${[...e].sort().join(", ")};`;return null}},function(e,t,n){const r=n(166),a=n(305),{FlowItemType:i}=n(2),{UnrecognizedError:s}=n(1);e.exports=function(e){if(e.flow.length)return e.flow.map(e=>(function(e){switch(e.type){case i.External:return r(e.entry);case i.Group:return a(e);default:throw new s({name:"UnrecognizedFlowItemType"},`Unrecognized flow item type: ${e.type}`)}})(e)).join("\n\n");return null}},function(e,t,n){const r=n(9),a=n(254),i=n(255);e.exports=function(e){const t=[a(e),i(e.request)].filter(e=>e).join("\n\n");return t?r(t):null}},function(e,t){e.exports=function(e){return e.comment||e.request.comment?[e.comment,e.request.comment].filter(e=>e).join("\n"):null}},function(e,t,n){const{lineBreak:r}=n(4);function a([e,t]){const n=t.size>1,a=[...t].map((t,a)=>(function(e,t,n,a){return t.comment?r.test(t.comment)?""+`${i(e,n,a)}:\n${t.comment}`:`${i(e,n,a)}: ${t.comment}`:null})(e,t,n,a)).filter(e=>e);return a.length?a.join("\n"):null}function i(e,t,n){return t?`${e}[${n}]`:`${e}`}e.exports=function(e){const t=e.state;if(t.address.variable||!e.query.size||t.query.variable)return null;{const t=[...e.query].map(a).filter(e=>e);return t.length?""+`Query string notes:\n${t.join("\n")}`:null}}},function(e,t,n){const r=n(257),a=n(275),i=n(303);e.exports=function(e){return[a(e.request),r(e.checks),i(e.variables)].filter(e=>e).join("\n")}},function(e,t,n){const r=n(258),a=n(15);e.exports=function(e){if(e.size){const t=[...e].map(([e,t])=>r(e,t));return`check(response, ${a(t)});`}return null}},function(e,t,n){const r=n(259),{CheckType:a}=n(2),{UnrecognizedError:i}=n(1);e.exports=function(e,t){switch(t.type){case a.Text:return r.Text(e,t);case a.JSONPathValue:return r.JSONPathValue(e,t);case a.JSONPath:return r.JSONPath(e,t);case a.Regex:return r.Regex(e,t);default:throw new i({name:"UnrecognizedCheckType"},`Unrecognized check type: ${t.type}`)}}},function(e,t,n){Object.assign(t,{JSONPath:n(260),JSONPathValue:n(263),Regex:n(264),Text:n(265)})},function(e,t,n){const r=n(10),a=n(5);function i(e){return`response => ${function(e){const t=a(e.expression);return""+`{\n${r(`return !!${`jsonpath.query(response.json(), ${t})`}.length;`)}\n}`}(e)}`}e.exports=function(e,t){const n={name:e,value:i(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t){e.exports=function(e,t=""){return JSON.stringify(e.join(t))}},function(e,t){e.exports=function(e){return JSON.stringify(e)}},function(e,t,n){const r=n(167),a=n(10),i=n(5);function s(e){const t={subject:o(e),comparison:r(e.condition,u(e)),negated:e.state.negated};return t.body=function(e){const t=e.negated?"!":"!!",n=""+`const values = ${e.subject};\nreturn ${t}values.find(value => value${e.comparison});`;return""+`{\n${a(n)}\n}`}(t),`response => ${t.body}`}function o(e){return`jsonpath.query(response.json(), ${i(e.expression)})`}function u(e){return i(e.value)}e.exports=function(e,t){const n={name:e,value:s(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t,n){const r=n(10),a=n(5),i=n(168);function s(e){const t={subject:i(e.subject),expression:o(e),flags:u(e)};return t.body=function(e,t){return e.state.plural?function(e){const t=""+`const values = ${e.subject};\nconst expr = new RegExp(${c(e)});\nreturn !!values.find(value => expr.test(value));`;return""+`{\n${r(t)}\n}`}(t):function(e){const t=""+`const expr = new RegExp(${c(e)});\nreturn expr.test(${e.subject});`;return""+`{\n${r(t)}\n}`}(t)}(e,t),`response => ${t.body}`}function o(e){return a(e.expression)}function u(e){return e.flags?a(e.flags):null}function c(e){const t=[];return t.push(e.expression),e.flags&&t.push(e.flags),t.join(", ")}e.exports=function(e,t){const n={name:e,value:s(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t,n){const r=n(167),a=n(10),i=n(5),s=n(168);function o(e){const t={subject:s(e.subject),comparison:r(e.condition,u(e)),negated:e.state.negated};return t.body=function(e,t){return e.state.plural?function(e){const t=e.negated?"!":"!!",n=""+`const values = ${e.subject};\nreturn ${t}values.find(value => value${e.comparison});`;return""+`{\n${a(n)}\n}`}(t):function(e){return(e.negated?"!":"")+e.subject+e.comparison}(t)}(e,t),`response => ${t.body}`}function u(e){return i(e.value)}e.exports=function(e,t){const n={name:e,value:o(t)};return t.comment&&(n.comment=t.comment),n}},function(e,t,n){const r=n(267),a=n(274);e.exports=function(e){return e.length?(e=[...e],a(e),e.map(e=>r(e)).join("\n")):null}},function(e,t,n){const r=n(9),a=n(268),{CommentLocation:i}=n(2),{lineBreak:s,multilineComment:o}=n(4);e.exports=function(e,t){const n=e.comment?r(e.comment):null,u=function(e,t){return t&&o.test(t)||s.test(e.value)||2+e.name.length+2+e.value.length>50?i.Top:i.Suffix}(e,n);return(n&&u===i.Top?`${n}\n`:"")+`${a(e.name)}: ${e.value}`+(t?"":",")+(n&&u===i.Suffix?` ${n}`:"")}},function(e,t,n){const r=n(5),a=n(169),i=n(24),{StringSpecies:s}=n(2),{UnrecognizedError:o}=n(1);e.exports=function(e){switch(a(e)){case s.Identifier:return e;case s.String:return r(e);case s.Template:return`[${i(e)}]`;default:throw new o({name:"UnrecognizedStringSpecies"},`Unrecognized string species: ${e}`)}}},function(e,t){e.exports=function(e){return n.test(e)};const 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)$)(?:[$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D])(?:[$0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF])*$/},function(e,t,n){const{variable:r}=n(4);e.exports=function(e){return r.test(e)}},function(e,t,n){const r=n(170);e.exports=function(e,t=""){return["`",e.map(e=>r(e)).join(t),"`"].join("")}},function(e,t,n){const r=n(5);e.exports=function(e){return`vars[${r(e)}]`}},function(e,t,n){const r=n(170);e.exports=function(e){return`\`${r(e)}\``}},function(e,t,n){const r=n(169),{StringSpecies:a}=n(2),{UnrecognizedError:i}=n(1);function s(e,t){const n=r(e.key),s=r(t.key);if(n===s)return e.key>t.key?1:e.keye).join("\n")}(function(e){const t=p();return t.call=function(e){return m.has(e.method)?m.get(e.method):"request"}(e),t.method=function(e){return l(e.method)}(e),t.capacity=function(e){return"GET"!==e.method}(e),r(e,t),function(e,t){t.body=u(e),e.state.post.species===d.Structured&&"multipart/form-data"===e.post.type&&e.state.params.variable&&t.pre.push(c(e.post.params))}(e,t),t.headers=i(e.headers),t.cookies=a(e.cookies),t.options=function(e){if(e.headers||e.cookies){const t=[];return e.headers&&t.push({name:"headers",value:e.headers}),e.cookies&&t.push({name:"cookies",value:e.cookies}),o(t)}return null}(t),t.args=function(e){const t=[];return"request"===e.call&&t.push(e.method),t.push(e.address),e.body?t.push(e.body):e.capacity&&e.options&&t.push("null"),e.options&&t.push(e.options),t}(t),t.compact=function(e){return!e.capacity||1===e.args.length||"null"===e.args[1]}(t),t}(e))}},function(e,t,n){const r=n(277),a=n(279),i=n(280),s=n(281),{AddressSpecies:o}=n(2),{UnrecognizedError:u}=n(1);e.exports=function(e,t){switch(e.state.address.species){case o.Fixed:a(e,t);break;case o.Constructed:r(e,t);break;case o.Resolved:i(e,t);break;case o.Runtime:s(e,t);break;default:throw new u({name:"UnrecognizedAddressSpecies"},`Unrecognized address species: ${e.state.address.species}`)}}},function(e,t,n){const r=n(5),a=n(278);e.exports=function(e,t){const n=new a(e.address);!function(e,t){for(const[n,r]of e.query)for(const{value:e}of r)t.addQuery(n,e)}(e,n),t.address=r(n.toString())}},function(e,t,n){var r,a,i; /*! * URI.js - Mutating URLs *